packaging(RHEL-CTDB): don't "make proto" any more.
[Samba/fernandojvsilva.git] / source4 / auth / config.m4
blob9735b17caca07a0190edea5134f00aba736de7db
1 ###############################
2 # start SMB_EXT_LIB_PAM
3 # check for security/pam_appl.h and -lpam
4 AC_CHECK_HEADERS(security/pam_appl.h)
5 AC_CHECK_LIB_EXT(pam, PAM_LIBS, pam_start)
6 if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
7         SMB_ENABLE(PAM,YES)
8 fi
9 SMB_EXT_LIB(PAM, $PAM_LIBS)
10 # end SMB_EXT_LIB_PAM
11 ###############################
13 ################################################
14 # test for where we get crypt() from
15 AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
16 SMB_ENABLE(CRYPT,YES)
17 SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
19 AC_CHECK_FUNCS(crypt16 getauthuid getpwanam)
21 AC_CHECK_HEADERS(sasl/sasl.h)
22 AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init)
24 if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
25         SMB_ENABLE(SASL,YES)
26         SMB_ENABLE(cyrus_sasl,YES)
27         SASL_CFLAGS="$CFLAGS"
28         SASL_CPPFLAGS="$CPPFLAGS"
29         SASL_LDFLAGS="$LDFLAGS"
30         LIB_REMOVE_USR_LIB(SASL_LDFLAGS)
31         CFLAGS_REMOVE_USR_INCLUDE(SASL_CPPFLAGS)
32         CFLAGS_REMOVE_USR_INCLUDE(SASL_CFLAGS)
33 else
34         SMB_ENABLE(cyrus_sasl,NO)
37 SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])