From d1e3898a05a860f40a7b34b357917aa873dfd145 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Wed, 3 Mar 2010 11:38:51 +0300 Subject: [PATCH] s4: allow pam_winbind.so to be build on samba4 * Modify the nsswitch/config.m4 to add tests and build that will be put in configure by the autoconf/autoheader We test if there is pam headers and pam library to be able to build the pam module We add s4 build directive (that are normaly in standalone config.mk) this is due to the fact that we need to rely on path that are guessed during configure. Add tests not to build pam_winbind if pam dev files is not present Signed-off-by: Stefan Metzmacher --- nsswitch/config.m4 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nsswitch/config.m4 b/nsswitch/config.m4 index 8d9118322c5..8966e35aa9b 100644 --- a/nsswitch/config.m4 +++ b/nsswitch/config.m4 @@ -35,5 +35,12 @@ SMB_EXT_LIB(PAM, $PAM_LIBS) if test x"$ac_cv_header_security_pam_appl_h" = x"yes" -a x"$ac_cv_lib_ext_pam_pam_start" = x"yes";then SMB_ENABLE(PAM,YES) + if test x"$MERGED_BUILD" != x"1"; then + SMB_BUILD_LIBRARY(pam_winbind,[../nsswitch/pam_winbind.o], + [LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER PAM], + [-DLOCALEDIR=\\\"${datarootdir}/locale\\\"], + [], + [../nsswitch/pam_winbind.\$(SHLIBEXT)]) + fi fi ##### -- 2.11.4.GIT