Don't build ldb tools when there is a system provided ldb.
authorJelmer Vernooij <jelmer@samba.org>
Sun, 14 Nov 2010 12:40:58 +0000 (13:40 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Sun, 14 Nov 2010 17:14:05 +0000 (17:14 +0000)
source4/lib/ldb/wscript

index 28373b545906c8cff723d29a2be94e2989eab45d..b98406f2e6f1e670e8ce390fedd4097d24126ab8 100644 (file)
@@ -208,19 +208,19 @@ def build(bld):
                             includes='include',
                             cflags='-DLDB_MODULESDIR=\"%s\"' % modules_dir)
 
-    bld.SAMBA_LIBRARY('ldb-cmdline',
-                      source='tools/ldbutil.c tools/cmdline.c',
-                      deps='ldb dl popt',
-                      private_library=True)
-
-    LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename'
-    for t in LDB_TOOLS.split():
-        bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
-                         manpages='man/%s.1' % t)
-
-    # ldbtest doesn't get installed
-    bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='ldb-cmdline ldb',
-                     install=False)
+        bld.SAMBA_LIBRARY('ldb-cmdline',
+                          source='tools/ldbutil.c tools/cmdline.c',
+                          deps='ldb dl popt',
+                          private_library=True)
+
+        LDB_TOOLS='ldbadd ldbsearch ldbdel ldbmodify ldbedit ldbrename'
+        for t in LDB_TOOLS.split():
+            bld.SAMBA_BINARY(t, 'tools/%s.c' % t, deps='ldb-cmdline ldb',
+                             manpages='man/%s.1' % t)
+
+        # ldbtest doesn't get installed
+        bld.SAMBA_BINARY('ldbtest', 'tools/ldbtest.c', deps='ldb-cmdline ldb',
+                         install=False)
 
 
 def test(ctx):