diff options
author | Matthieu Patou <mat@matws.net> | 2010-07-17 21:45:12 +0400 |
---|---|---|
committer | Matthieu Patou <mat@matws.net> | 2010-07-17 21:46:04 +0400 |
commit | b7a1dd69804e19971b23fc4ebff3bb7234abfad7 (patch) | |
tree | 4da3a1217fa1925e529c226b2bd20a0911ce0ec6 /nsswitch/wscript_build | |
parent | c55f5f2a35a138e130e15eee8206b5f72675b7e8 (diff) | |
download | samba-b7a1dd69804e19971b23fc4ebff3bb7234abfad7.tar.gz |
s4 pam_winbind: don't build if pam header are not installed
Diffstat (limited to 'nsswitch/wscript_build')
-rw-r--r-- | nsswitch/wscript_build | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/nsswitch/wscript_build b/nsswitch/wscript_build index 9303ace0da1..d7086628019 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', + ) |