File: want_bsdauth.m4

package info (click to toggle)
dovecot 1%3A2.4.2%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 59,852 kB
  • sloc: ansic: 824,112; makefile: 8,144; sh: 6,334; cpp: 1,867; python: 1,828; yacc: 412; lex: 320; perl: 281; xml: 232
file content (19 lines) | stat: -rw-r--r-- 520 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
AC_DEFUN([DOVECOT_WANT_BSDAUTH], [
  have_bsdauth=no

  AS_IF([test "$want_bsdauth" != "no"], [
    AC_CHECK_FUNC(auth_userokay, [
      AC_DEFINE(PASSDB_BSDAUTH,, [Build with BSD authentication support])
      have_bsdauth=yes
    ], [
      AS_IF([test "$want_bsdauth" = "yes"], [
        AC_MSG_ERROR(cannot build with BSD authentication support: auth_userokay() not found)
      ])
    ])
  ])
  AS_IF([test "$have_bsdauth" = "no"], [
    not_passdb="$not_passdb bsdauth"
  ], [
    passdb="$passdb bsdauth"
  ])
])