ldb: Fix check for third_party
authorAmitay Isaacs <amitay@gmail.com>
Thu, 21 Aug 2014 04:34:03 +0000 (14:34 +1000)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Aug 2014 07:11:06 +0000 (09:11 +0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
lib/ldb/wscript

index be045448711597b6a602013bf7f8253705ceb80b..6d9e8454abd2579d2538afd546ef6fb93850dd0e 100755 (executable)
@@ -13,7 +13,7 @@ while not os.path.exists(srcdir+'/buildtools') and len(srcdir.split('/')) < 5:
     srcdir = srcdir + '/..'
 sys.path.insert(0, srcdir + '/buildtools/wafsamba')
 
-import wafsamba, samba_dist, Options
+import wafsamba, samba_dist, Options, Utils
 
 samba_dist.DIST_DIRS('''lib/ldb:. lib/replace:lib/replace lib/talloc:lib/talloc
                         lib/tdb:lib/tdb lib/tdb:lib/tdb lib/tevent:lib/tevent
@@ -85,7 +85,7 @@ def configure(conf):
 def build(bld):
     bld.RECURSE('lib/tevent')
 
-    if os.path.exists('third_party'):
+    if bld.CHECK_FOR_THIRD_PARTY():
         bld.RECURSE('third_party/popt')
 
     bld.RECURSE('lib/replace')