waf: Only build pam_wrapper if we build with pam
[garming/samba-autobuild/.git] / wscript_build
index 59e0bdfa4ccaa213d86a6baed6f463bd27cf9436..2ddcdcc8557011068289f645402f2b3b3c9fe1b0 100644 (file)
@@ -69,7 +69,7 @@ bld.RECURSE('source4/lib/cmdline')
 bld.RECURSE('source4/lib/http')
 if bld.CONFIG_GET('NSS_WRAPPER'):
     bld.RECURSE('lib/nss_wrapper')
-if bld.CONFIG_GET('PAM_WRAPPER'):
+if bld.CONFIG_GET('PAM_WRAPPER') and Options.options.with_pam:
     bld.RECURSE('lib/pam_wrapper')
 if bld.CONFIG_GET('SOCKET_WRAPPER'):
     bld.RECURSE('lib/socket_wrapper')