summaryrefslogtreecommitdiffstats
path: root/src/external/pam.m4
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2014-05-27 23:55:17 +0200
committerJakub Hrozek <jhrozek@redhat.com>2014-06-03 10:01:15 +0200
commit683e1f67d08be7165ea456d4594c4c8a4eddc9b3 (patch)
tree97841eec89ba1708d55c874b64d660c3390a3614 /src/external/pam.m4
parent78eae10aa035bc0e0996189b9d11c8db4904a98d (diff)
downloadsssd-683e1f67d08be7165ea456d4594c4c8a4eddc9b3.tar.gz
sssd-683e1f67d08be7165ea456d4594c4c8a4eddc9b3.tar.xz
sssd-683e1f67d08be7165ea456d4594c4c8a4eddc9b3.zip
PAM: Define compatible macros for some functions.
Functions pam_vsyslog and pam_modutil_getlogin are not available in openpam. This patch conditionally define macros for these function if they are not available. Compatible macros use standard functions vsyslog, getlogin Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/external/pam.m4')
-rw-r--r--src/external/pam.m49
1 files changed, 9 insertions, 0 deletions
diff --git a/src/external/pam.m4 b/src/external/pam.m4
index 90f89bee3..4776b6ae3 100644
--- a/src/external/pam.m4
+++ b/src/external/pam.m4
@@ -18,3 +18,12 @@ AC_CHECK_HEADERS([security/openpam.h],,,[
AC_CHECK_LIB([pam_misc], [misc_conv],
[PAM_MISC_LIBS="-lpam_misc"])
+
+dnl save LIBS to restore later
+save_LIBS="$LIBS"
+LIBS="$PAM_LIBS"
+
+AC_CHECK_FUNCS(pam_modutil_getlogin pam_vsyslog)
+
+dnl restore LIBS
+LIBS="$save_LIBS"