summaryrefslogtreecommitdiff
path: root/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'nsswitch')
-rw-r--r--nsswitch/wscript_build13
1 files changed, 7 insertions, 6 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build
index 9303ace0da..d708662801 100644
--- a/nsswitch/wscript_build
+++ b/nsswitch/wscript_build
@@ -24,9 +24,10 @@ bld.SAMBA_LIBRARY('nsswinbind',
realname='libnss_winbind.so',
vnum='2')
-bld.SAMBA_LIBRARY('pamwinbind',
- source='../nsswitch/pam_winbind.c',
- deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
- cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
- realname='pam_winbind.so',
- )
+if bld.CONFIG_SET('HAVE_PAM_START'):
+ bld.SAMBA_LIBRARY('pamwinbind',
+ source='../nsswitch/pam_winbind.c',
+ deps='talloc LIBWBCLIENT LIBWINBIND-CLIENT LIBINIPARSER pam',
+ cflags='-DLOCALEDIR=\"%s/locale\"' % bld.env.DATADIR,
+ realname='pam_winbind.so',
+ )