summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-21 21:57:22 -0700
committerAndrew Bartlett <abartlet@samba.org>2012-09-22 07:29:22 +0200
commitb8eaa57a100818d337c85ac42828801a59062587 (patch)
treec07993bd6537fb0660c4358b38b4b614b9eda7fc
parentcb157e19cb6e96f319008c7178d04bfe7b30b5b4 (diff)
downloadsamba-b8eaa57a100818d337c85ac42828801a59062587.tar.gz
samba-b8eaa57a100818d337c85ac42828801a59062587.tar.bz2
samba-b8eaa57a100818d337c85ac42828801a59062587.zip
build: Try not build with LDAP if we do not have ldap.h
-rw-r--r--source3/wscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript
index d0e76f3617..23ea327d0b 100644
--- a/source3/wscript
+++ b/source3/wscript
@@ -541,7 +541,7 @@ msg.msg_acctrightslen = sizeof(fd);
conf.DEFINE('LDAP_SET_REBIND_PROC_ARGS', '2')
# last but not least, if ldap_init() exists, we want to use ldap
- if conf.CONFIG_SET('HAVE_LDAP_INIT'):
+ if conf.CONFIG_SET('HAVE_LDAP_INIT') and conf.CONFIG_SET('HAVE_LDAP_H'):
conf.DEFINE('HAVE_LDAP', '1')
conf.DEFINE('LDAP_DEPRECATED', '1')
conf.env['HAVE_LDAP'] = '1'