summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2003-09-04 02:23:43 +0000
committerTim Potter <tpot@samba.org>2003-09-04 02:23:43 +0000
commitc7accf6a720d9df0e4cddeeea5ebc53cc382e101 (patch)
tree3910acbd13ac90739de89aee84115720b4209437
parentfb638ddf99897fe846250d07d40e60fbe2a688c9 (diff)
downloadsamba-c7accf6a720d9df0e4cddeeea5ebc53cc382e101.tar.gz
samba-c7accf6a720d9df0e4cddeeea5ebc53cc382e101.tar.bz2
samba-c7accf6a720d9df0e4cddeeea5ebc53cc382e101.zip
Produce an error if --with-pam_smbpass is specified and we can't
find libpam or security/pam_appl.h Also change the warnings when we can't do --with-pam_smbpass when is was requested to errors. (This used to be commit fe3fb58623c27472d54722b780af43c3e272abaf)
-rw-r--r--source3/configure.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/source3/configure.in b/source3/configure.in
index 50ac676bee..92fdfc10cd 100644
--- a/source3/configure.in
+++ b/source3/configure.in
@@ -2740,13 +2740,16 @@ AC_ARG_WITH(pam_smbpass,
yes)
AC_MSG_RESULT(yes)
-# Conditions under which pam_smbpass should not be built.
+ # Conditions under which pam_smbpass should not be built.
if test x$PICFLAG = x; then
- AC_MSG_RESULT([No support for PIC code - disabling pam_smbpass])
+ AC_MSG_ERROR([No support for PIC code])
+ elif test x"$ac_cv_header_security_pam_appl_h" = x"no"; then
+ AC_MSG_ERROR([No security/pam_appl.h found])
elif test x$ac_cv_lib_pam_pam_get_data = xno; then
- AC_MSG_RESULT([No libpam found -- disabling pam_smbpass])
+ AC_MSG_ERROR([No libpam found])
else
+ AUTHLIBS="$AUTHLIBS -lpam"
SHLIB_PROGS="$SHLIB_PROGS bin/pam_smbpass.$SHLIBEXT"
fi
;;
@@ -4110,6 +4113,7 @@ fi
if test x"$with_ldap_support" != x"no"; then
AC_MSG_RESULT([ LDAP_LIBS = $LDAP_LIBS])
fi
+AC_MSG_RESULT([ AUTHLIBS = $AUTHLIBS])
#################################################
# final configure stuff