summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-06-30 08:09:38 +0200
committerStefan Metzmacher <metze@samba.org>2017-07-02 17:35:19 +0200
commita1158d223711b82eb8d8312fb3f0709d307c0fb7 (patch)
tree39c8b5ff49d2c8441042e5c4e1aa6f31e87c9da7
parent774b2e4f5a77a7996f453b5d7d76514a80011c51 (diff)
downloadsamba-a1158d223711b82eb8d8312fb3f0709d307c0fb7.tar.gz
ldb:wscript: define EXPECTED_SYSTEM_LDB_VERSION_{MAJOR,MINOR,RELEASE}
This indicates what feature set Samba assumes from the used libldb from the system. BUG: https://bugzilla.samba.org/show_bug.cgi?id=12859 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
-rw-r--r--lib/ldb/wscript6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/ldb/wscript b/lib/ldb/wscript
index d827775f5be..2e77f00daf6 100644
--- a/lib/ldb/wscript
+++ b/lib/ldb/wscript
@@ -91,6 +91,12 @@ def configure(conf):
implied_deps='replace talloc tdb tevent'):
conf.define('USING_SYSTEM_LDB', 1)
+ if conf.CONFIG_SET('USING_SYSTEM_LDB'):
+ v = VERSION.split('.')
+ conf.DEFINE('EXPECTED_SYSTEM_LDB_VERSION_MAJOR', int(v[0]))
+ conf.DEFINE('EXPECTED_SYSTEM_LDB_VERSION_MINOR', int(v[1]))
+ conf.DEFINE('EXPECTED_SYSTEM_LDB_VERSION_RELEASE', int(v[2]))
+
if conf.env.standalone_ldb:
conf.CHECK_XSLTPROC_MANPAGES()