summaryrefslogtreecommitdiff
path: root/ctdb/wscript
diff options
context:
space:
mode:
authorMathieu Parent <math.parent@gmail.com>2015-09-24 04:39:17 +0200
committerAmitay Isaacs <amitay@samba.org>2015-09-26 16:52:28 +0200
commit44aff1a1647b2a5e21b06750515410eb3ca03ab1 (patch)
treea7c22329419c8c64be677006ac617e32d8977c42 /ctdb/wscript
parentd493ec1f795ffb4642a4ed8481b686056802859d (diff)
downloadsamba-44aff1a1647b2a5e21b06750515410eb3ca03ab1.tar.gz
ctdb-build: Use socket_wrapper only with selftest
Signed-off-by: Mathieu Parent <math.parent@gmail.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andreas Schneider <asn@samba.org> Autobuild-User(master): Amitay Isaacs <amitay@samba.org> Autobuild-Date(master): Sat Sep 26 16:52:28 CEST 2015 on sn-devel-104
Diffstat (limited to 'ctdb/wscript')
-rwxr-xr-xctdb/wscript6
1 files changed, 4 insertions, 2 deletions
diff --git a/ctdb/wscript b/ctdb/wscript
index 188295d8062..e04891ba817 100755
--- a/ctdb/wscript
+++ b/ctdb/wscript
@@ -107,7 +107,8 @@ def configure(conf):
conf.RECURSE('lib/talloc')
conf.RECURSE('lib/tevent')
conf.RECURSE('lib/tdb')
- conf.RECURSE('lib/socket_wrapper')
+ if conf.env.standalone_ctdb or conf.CONFIG_GET('ENABLE_SELFTEST'):
+ conf.RECURSE('lib/socket_wrapper')
conf.CHECK_HEADERS('sched.h')
conf.CHECK_HEADERS('procinfo.h')
@@ -269,7 +270,8 @@ def build(bld):
bld.RECURSE('lib/talloc')
bld.RECURSE('lib/tevent')
bld.RECURSE('lib/tdb')
- bld.RECURSE('lib/socket_wrapper')
+ if bld.env.standalone_ctdb or bld.CONFIG_GET('SOCKET_WRAPPER'):
+ bld.RECURSE('lib/socket_wrapper')
if bld.env.standalone_ctdb:
# In a combined build is implemented, CTDB will wanted to