summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-17 00:11:18 +0100
committerGünther Deschner <gd@samba.org>2011-02-17 00:52:42 +0100
commit743b13b8e0bb1a79219d4cd89a4c3e3f75344d2c (patch)
tree3c540d931457fb7f752e5b9f61f634e2b1b91005 /nsswitch
parent9867b7bf34c80a12b936682ab6cb686ab45ca51c (diff)
downloadsamba-743b13b8e0bb1a79219d4cd89a4c3e3f75344d2c.tar.gz
s3-waf: make most of the nsswitch common.
Guenther
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wscript_build13
1 files changed, 10 insertions, 3 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index 691f82f160..a81b01bcbd 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -15,15 +15,22 @@ bld.SAMBA_BINARY('nsstest',
bld.SAMBA_LIBRARY('nss_winbind',
- source='../nsswitch/winbind_nss_linux.c',
+ source='winbind_nss_linux.c',
deps='winbind-client',
realname='libnss_winbind.so.2',
vnum='2')
-if bld.CONFIG_SET('HAVE_PAM_START'):
+
+if bld.CONFIG_SET('WITH_PAM_MODULES') or bld.CONFIG_SET('HAVE_PAM_START'):
bld.SAMBA_LIBRARY('pamwinbind',
- source='../nsswitch/pam_winbind.c',
+ source='pam_winbind.c',
deps='intl talloc wbclient winbind-client LIBINIPARSER pam',
cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
realname='pam_winbind.so',
)
+
+if bld.CONFIG_SET('HAVE_KRB5_LOCATE_PLUGIN_H'):
+ bld.SAMBA_LIBRARY('winbind_krb5_locator',
+ source='winbind_krb5_locator.c',
+ deps='wbclient krb5',
+ realname='winbind_krb5_locator.so')