summaryrefslogtreecommitdiffstats
path: root/src/external
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 13:52:45 +0200
commitc05bf1914146281a934d573354c2fce2f466706e (patch)
treec5aeb7e1c641315e0b48b3fcb0adf20d051aedef /src/external
parentad962c5a98000c555669b7babd507e3a0c6e4f43 (diff)
downloadsssd-c05bf1914146281a934d573354c2fce2f466706e.tar.gz
sssd-c05bf1914146281a934d573354c2fce2f466706e.tar.xz
sssd-c05bf1914146281a934d573354c2fce2f466706e.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> (cherry picked from commit 683e1f67d08be7165ea456d4594c4c8a4eddc9b3)
Diffstat (limited to 'src/external')
-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"