From 5e9a2084bfa555295f60485fc83f9bb9245f3fd4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 19 Apr 2001 13:47:12 +0000 Subject: [PATCH] merge from 2_2 --- source/configure.in | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/source/configure.in b/source/configure.in index 8fbcf69a9fb..a67415c6b8c 100644 --- a/source/configure.in +++ b/source/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)