summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-04 00:51:50 +0000
committerTim Potter <tpot@samba.org>2003-09-04 00:51:50 +0000
commit7da5c6a0e719470e234ad6597ba33c9667786ab2 (patch)
tree888f5f70bde24de796197ad65da3e4a9c28a7ee1 /source3
parenta9a9d170a61ffaea0c8b7a717091ec8df2342ead (diff)
downloadsamba-7da5c6a0e719470e234ad6597ba33c9667786ab2.tar.gz
samba-7da5c6a0e719470e234ad6597ba33c9667786ab2.tar.bz2
samba-7da5c6a0e719470e234ad6597ba33c9667786ab2.zip
Produce an error if --with-pam is specified but no PAM headers can be
found. (This used to be commit dc43c2dd1b4cd02e996fe10f1684a6571b2fd3de)
Diffstat (limited to 'source3')
-rw-r--r--source3/configure.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/configure.in b/source3/configure.in
index b152f0b46c..50ac676bee 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2710,6 +2710,13 @@ AC_ARG_WITH(pam,
[ case "$withval" in
yes)
AC_MSG_RESULT(yes)
+ if test x"$ac_cv_header_security_pam_appl_h" = x"no"; then
+ if test x"$ac_cv_header_security_pam_modules_h" = x"no"; then
+ if test x"$ac_cv_header_security__pam_macros_h" = x"no"; then
+ AC_MSG_ERROR(--with-pam specified but no PAM headers found)
+ fi
+ fi
+ fi
AC_DEFINE(WITH_PAM,1,[Whether to include PAM support])
AUTHLIBS="$AUTHLIBS -lpam"
with_pam_for_crypt=yes