mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
1115b7b342
These configure checks have the correct flags at configure time, so let's pass them through so they are used at compile time.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
###############################
|
|
# start SMB_EXT_LIB_PAM
|
|
# check for security/pam_appl.h and -lpam
|
|
AC_CHECK_HEADERS(security/pam_appl.h)
|
|
AC_CHECK_LIB_EXT(pam, PAM_LIBS, pam_start)
|
|
if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then
|
|
SMB_ENABLE(PAM,YES)
|
|
fi
|
|
SMB_EXT_LIB(PAM, $PAM_LIBS)
|
|
# end SMB_EXT_LIB_PAM
|
|
###############################
|
|
|
|
################################################
|
|
# test for where we get crypt() from
|
|
AC_CHECK_LIB_EXT(crypt, CRYPT_LIBS, crypt)
|
|
SMB_ENABLE(CRYPT,YES)
|
|
SMB_EXT_LIB(CRYPT, $CRYPT_LIBS)
|
|
|
|
AC_CHECK_FUNCS(crypt16 getauthuid getpwanam)
|
|
|
|
AC_CHECK_HEADERS(sasl/sasl.h)
|
|
AC_CHECK_LIB_EXT(sasl2, SASL_LIBS, sasl_client_init)
|
|
|
|
if test x"$ac_cv_header_sasl_sasl_h" = x"yes" -a x"$ac_cv_lib_ext_sasl2_sasl_client_init" = x"yes";then
|
|
SMB_ENABLE(SASL,YES)
|
|
SMB_ENABLE(cyrus_sasl,YES)
|
|
SASL_CFLAGS="$CFLAGS"
|
|
SASL_CPPFLAGS="$CPPFLAGS"
|
|
SASL_LDFLAGS="$LDFLAGS"
|
|
else
|
|
SMB_ENABLE(cyrus_sasl,NO)
|
|
fi
|
|
|
|
SMB_EXT_LIB(SASL, $SASL_LIBS, [${SASL_CFLAGS}], [${SASL_CPPFLAGS}], [${SASL_LDFLAGS}])
|