diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2014-05-27 22:44:17 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2014-06-03 10:01:03 +0200 |
commit | d2d21d45a88d0869f860e215c2cf946f032818ca (patch) | |
tree | dea93f8dbd01e9c4cedb6fe2e6982f395727abb0 /src | |
parent | 5385172799f6dea59fe1c0ef8f482db59bfc9c5c (diff) | |
download | sssd-d2d21d45a88d0869f860e215c2cf946f032818ca.tar.gz sssd-d2d21d45a88d0869f860e215c2cf946f032818ca.tar.xz sssd-d2d21d45a88d0869f860e215c2cf946f032818ca.zip |
CONFIGURE: Enhance detection of pam
Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/external/pam.m4 | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/src/external/pam.m4 b/src/external/pam.m4 index 40c8fd0dc..90f89bee3 100644 --- a/src/external/pam.m4 +++ b/src/external/pam.m4 @@ -1,6 +1,20 @@ AC_SUBST(PAM_LIBS) +AC_SUBST(PAM_MISC_LIBS) -AC_CHECK_HEADERS([security/pam_appl.h security/pam_misc.h security/pam_modules.h], - [AC_CHECK_LIB(pam, pam_get_item, [ PAM_LIBS="-lpam" ], [AC_MSG_ERROR([PAM must support pam_get_item])])], +AC_CHECK_HEADERS([security/pam_appl.h security/pam_modules.h], + [AC_CHECK_LIB([pam], [pam_get_item], + [PAM_LIBS="-lpam"], + [AC_MSG_ERROR([PAM must support pam_get_item])])], [AC_MSG_ERROR([PAM development libraries not installed])] ) + +AC_CHECK_HEADERS([security/pam_ext.h security/pam_modutil.h]) +AC_CHECK_HEADERS([security/pam_misc.h security/_pam_macros.h]) +AC_CHECK_HEADERS([security/openpam.h],,,[ + #ifdef HAVE_SECURITY_PAM_APPL_H + #include <security/pam_appl.h> + #endif + ]) + +AC_CHECK_LIB([pam_misc], [misc_conv], + [PAM_MISC_LIBS="-lpam_misc"]) |