diff options
author | Andreas Schneider <asn@samba.org> | 2012-10-02 14:25:40 +0200 |
---|---|---|
committer | Andreas Schneider <asn@samba.org> | 2012-10-04 10:20:35 +0200 |
commit | fb3cf6c24270d22dad8ac9a1c12e8d77c8189f11 (patch) | |
tree | ba8b6d4e02f62e076d08e5924a7809beac6800fc | |
parent | 100d38d6e0fae1dc666ae43941570c9f106b73c2 (diff) | |
download | samba-fb3cf6c24270d22dad8ac9a1c12e8d77c8189f11.tar.gz samba-fb3cf6c24270d22dad8ac9a1c12e8d77c8189f11.tar.bz2 samba-fb3cf6c24270d22dad8ac9a1c12e8d77c8189f11.zip |
waf: Build pam_smbpass module only if enabled.
-rw-r--r-- | source3/pam_smbpass/wscript_build | 3 | ||||
-rw-r--r-- | source3/wscript | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/source3/pam_smbpass/wscript_build b/source3/pam_smbpass/wscript_build index 70b21d56b2..a2a2d01384 100644 --- a/source3/pam_smbpass/wscript_build +++ b/source3/pam_smbpass/wscript_build @@ -10,5 +10,6 @@ if bld.CONFIG_SET('WITH_PAM_MODULES'): LIBNTLMSSP LIBTSOCKET''', cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR, realname='pam_smbpass.so', - install_path='${PAMMODULESDIR}' + install_path='${PAMMODULESDIR}', + enabled=bld.env.with_pam_smbpass ) diff --git a/source3/wscript b/source3/wscript index 765f761ece..e4898efa9b 100644 --- a/source3/wscript +++ b/source3/wscript @@ -762,6 +762,9 @@ int i; i = PAM_RADIO_TYPE; conf.DEFINE('WITH_PAM', 1) conf.DEFINE('WITH_PAM_MODULES', 1) + if Options.options.with_pam_smbpass: + conf.env.with_pam_smbpass = True + seteuid = False # |