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
9 SMB_EXT_LIB(PAM, $PAM_LIBS)
11 ###############################
13 ################################################
14 # test for where we get crypt() from
15 AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
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)
23 SMB_EXT_LIB(SASL, $SASL_LIBS)
25 if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
27 SMB_ENABLE(cyrus_sasl,YES)
29 SMB_ENABLE(cyrus_sasl,NO)