diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2009-11-01 15:08:49 +0000 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2009-11-01 15:08:49 +0000 |
commit | b0fb6f0b239f2f1a98e8ae5393ee21abfba117b7 (patch) | |
tree | 121b743de3402d6e8167be53521ed933c458713a | |
parent | ab510c2f3e690041b14ebf916fd6de56b64e2a58 (diff) |
fail in configure if PAM functionality is missing
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1016 ef36b2f9-881f-0410-afb5-c4e39611909c
-rw-r--r-- | configure.ac | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 40898c7..64f0c09 100644 --- a/configure.ac +++ b/configure.ac @@ -216,6 +216,12 @@ then ]) AC_CHECK_HEADERS(pam/pam_modules.h) AC_CHECK_HEADERS(security/pam_ext.h) + # at least one of security/pam_modules.h or pam/pam_modules.h is required + if test "x$ac_cv_header_security_pam_modules_h" != "xyes" && \ + test "x$ac_cv_header_pam_pam_modules_h" != "xyes" + then + AC_MSG_ERROR(PAM header files are missing) + fi fi # LDAP-specific headers @@ -290,6 +296,8 @@ then # replace the pam_get_authtok() function if it's unavailable AC_SEARCH_LIBS(pam_get_authtok,pam) AC_REPLACE_FUNCS(pam_get_authtok) + # require the pam_get_data() function + AC_CHECK_FUNCS(pam_get_data,,AC_MSG_ERROR(no PAM library available)) # restore CFLAGS and LIBS CFLAGS="$save_CFLAGS" LIBS="$save_LIBS" |