Build python-ntdb bindings if ntdb was found but python-ntdb was not.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 15 Dec 2014 17:33:49 +0000 (17:33 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 6 Mar 2015 03:41:48 +0000 (04:41 +0100)
Change-Id: I54c248effa63fe65e2bef0d41535d8eec0ef28c0
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/ntdb/wscript

index cb2de80b0d32326ad9cc17025c844f51e854e468..a21c1a3031f471e2b69d721aece9f3dc9491bd3a 100644 (file)
@@ -211,13 +211,13 @@ def build(bld):
                                  deps='ntdb-test-helpers ntdb-api-helpers ntdb-testing',
                                  install=False)
 
-        if not bld.CONFIG_SET('USING_SYSTEM_PYNTDB'):
-            bld.SAMBA_PYTHON('pyntdb',
-                             source='pyntdb.c',
-                             deps='ntdb',
-                             enabled=not bld.env.disable_python,
-                             realname='ntdb.so',
-                             cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
+    if not bld.CONFIG_SET('USING_SYSTEM_PYNTDB'):
+        bld.SAMBA_PYTHON('pyntdb',
+                         source='pyntdb.c',
+                         deps='ntdb',
+                         enabled=not bld.env.disable_python,
+                         realname='ntdb.so',
+                         cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
 
 def testonly(ctx):
     '''run ntdb testsuite'''