diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in index 8fbcf69a9f..a67415c6b8 100644 --- a/source3/configure.in +++ b/source3/configure.in @@ -1513,6 +1513,7 @@ AC_ARG_WITH(smbmount, ################################################# # check for a PAM password database +with_pam_for_crypt=no AC_MSG_CHECKING(whether to use PAM password database) AC_ARG_WITH(pam, [ --with-pam Include PAM password database support @@ -1522,6 +1523,7 @@ AC_ARG_WITH(pam, AC_MSG_RESULT(yes) AC_DEFINE(WITH_PAM) LIBS="$LIBS -lpam" + with_pam_for_crypt=yes ;; *) AC_MSG_RESULT(no) @@ -1530,6 +1532,19 @@ AC_ARG_WITH(pam, AC_MSG_RESULT(no) ) + +############################################### +# test for where we get crypt() from, but only +# if not using PAM +if test $with_pam_for_crypt = no; then +AC_CHECK_FUNCS(crypt) +if test x"$ac_cv_func_crypt" = x"no"; then + AC_CHECK_LIB(crypt, crypt, [LIBS="$LIBS -lcrypt"; + AC_DEFINE(HAVE_CRYPT)]) +fi +fi + + ################################################# # check for a TDB password database AC_MSG_CHECKING(whether to use TDB password database) |