diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-03-15 12:55:15 -0400 |
---|---|---|
committer | William Jon McCann <mccann@jhu.edu> | 2007-03-15 12:55:15 -0400 |
commit | 4a947eddfad4f384bb02c8e4771a59a7ad01cd8b (patch) | |
tree | 0e7f73bff4fdca96fdae5650e88978b11a421fe0 /configure.ac | |
parent | 54ad2d581ce690060a29fa8a4b94bf5dddbafc87 (diff) |
fix building pam module on debian systems
Only include what is available. Use a alternative to pam_syslog
if it isn't available.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index e76c10c..49efb75 100644 --- a/configure.ac +++ b/configure.ac @@ -176,6 +176,9 @@ fi AC_SUBST(HAVE_PAM) AC_SUBST(PAM_LIBS) +AC_CHECK_HEADER(security/pam_modutil.h, [AC_DEFINE(HAVE_PAM_MODUTIL_H, [], "Have pam_modutil.h")]) +AC_CHECK_HEADER(security/pam_ext.h, [AC_DEFINE(HAVE_PAM_EXT_H, [], "Have pam_ext.h")]) +AC_CHECK_LIB(pam, pam_syslog, [AC_DEFINE(HAVE_PAM_SYSLOG, [], "Have pam_syslog")]) # Check if we should build the PAM module msg_pam_module=no |