diff options
author | Alan T. DeKok <aland@freeradius.org> | 2015-01-16 10:47:43 -0500 |
---|---|---|
committer | Alan T. DeKok <aland@freeradius.org> | 2015-01-16 10:47:43 -0500 |
commit | f6e2fb9a2dd04e23e7ca16350e6c3a8ccbd52d33 (patch) | |
tree | 5a681419d0890f02993e1de8d620be3773c92101 | |
parent | 0c3af1fb2a1ae1befb7a8e366406ded63cb9fa59 (diff) | |
download | libpam-radius-auth-f6e2fb9a2dd04e23e7ca16350e6c3a8ccbd52d33.tar.gz libpam-radius-auth-f6e2fb9a2dd04e23e7ca16350e6c3a8ccbd52d33.zip |
Updates for Solaris. Fixes #872
-rwxr-xr-x | configure | 8 | ||||
-rw-r--r-- | configure.ac | 8 |
2 files changed, 14 insertions, 2 deletions
@@ -4540,7 +4540,13 @@ done for ac_header in security/pam_modules.h pam/pam_modules.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " + #ifdef HAVE_SECURITY_PAM_APPL_H + # include <security/pam_appl.h> + #endif + + +" if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : cat >>confdefs.h <<_ACEOF #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 diff --git a/configure.ac b/configure.ac index f01f2d9..e9e2092 100644 --- a/configure.ac +++ b/configure.ac @@ -179,7 +179,13 @@ AC_CHECK_HEADERS( \ ) AC_CHECK_HEADERS(security/pam_appl.h pam/pam_appl.h) -AC_CHECK_HEADERS(security/pam_modules.h pam/pam_modules.h) +AC_CHECK_HEADERS(security/pam_modules.h pam/pam_modules.h, [], [], + [ + #ifdef HAVE_SECURITY_PAM_APPL_H + # include <security/pam_appl.h> + #endif + ] +) if test x"$ac_cv_header_security_pam_modules_h" != x"yes" -a x"$ac_cv_header_pam_modules_appl_h" != x"yes"; then AC_MSG_ERROR([pam_modules.h not found]) fi |