1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3-waf: use HAVE_ADS env to decide whether to build libads.so

Guenther
This commit is contained in:
Günther Deschner 2011-03-18 15:19:25 +01:00
parent c53e7f8d58
commit 33b8d0a6ff
2 changed files with 5 additions and 2 deletions

View File

@ -910,6 +910,8 @@ return krb5_kt_resolve(context, "WRFILE:api", &keytab);
conf.DEFINE('HAVE_KRB5', '1')
if have_gssapi:
conf.DEFINE('HAVE_GSSAPI', '1')
if conf.CONFIG_SET('HAVE_LDAP'):
conf.env['HAVE_ADS'] = '1'
else:
Logs.warn("krb5 libs don't have all features required for Active Directory support")
conf.undefine('HAVE_KRB5_H')

View File

@ -819,9 +819,10 @@ bld.SAMBA3_SUBSYSTEM('SMBLDAP',
bld.SAMBA3_LIBRARY('ads',
source=LIBADS_SRC,
deps='LIBCLI_LDAP_NDR krb5',
deps='LIBCLI_LDAP_NDR krb5 gssapi gssapi_krb5 ldap lber',
private_library=True,
vars=locals())
vars=locals(),
enabled=bld.env.HAVE_ADS)
bld.SAMBA3_SUBSYSTEM('LIBADS_SERVER',
source=LIBADS_SERVER_SRC,