From 4a947eddfad4f384bb02c8e4771a59a7ad01cd8b Mon Sep 17 00:00:00 2001 From: William Jon McCann Date: Thu, 15 Mar 2007 12:55:15 -0400 Subject: fix building pam module on debian systems Only include what is available. Use a alternative to pam_syslog if it isn't available. --- configure.ac | 3 +++ 1 file changed, 3 insertions(+) (limited to 'configure.ac') 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 -- cgit