summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-11-07 10:51:11 +0100
committerAndreas Schneider <asn@cryptomilk.org>2017-11-25 10:14:13 +0100
commit22bf36c85ae11cd280a58729348c76032910dc16 (patch)
treebf049502c4c965c34e54053e2a0afa7323f01bf4 /wscript
parent6cf7abbcfdad84fee57852862ebe44aa6115ca25 (diff)
downloadsamba-22bf36c85ae11cd280a58729348c76032910dc16.tar.gz
build: Move socket_wrapper to third_party
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Alexander Bokovoy <ab@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 6 insertions, 2 deletions
diff --git a/wscript b/wscript
index 35cb9d1b08d..f7bdb1f3d39 100644
--- a/wscript
+++ b/wscript
@@ -135,6 +135,7 @@ def configure(conf):
raise Utils.WafError('Python version 3.x is not supported by Samba yet')
conf.RECURSE('dynconfig')
+ conf.RECURSE('selftest')
if conf.CHECK_FOR_THIRD_PARTY():
conf.RECURSE('third_party')
@@ -154,6 +155,11 @@ def configure(conf):
else:
conf.define('USING_SYSTEM_CMOCKA', 1)
+ if conf.CONFIG_GET('ENABLE_SELFTEST'):
+ if not conf.CHECK_SOCKET_WRAPPER():
+ raise Utils.WafError('socket_wrapper package has not been found.\nIf third_party is installed, check that it is in the proper place.')
+ else:
+ conf.define('USING_SYSTEM_SOCKET_WRAPPER', 1)
conf.RECURSE('lib/ldb')
@@ -182,11 +188,9 @@ def configure(conf):
conf.RECURSE('libcli/smbreadline')
conf.RECURSE('lib/crypto')
conf.RECURSE('pidl')
- conf.RECURSE('selftest')
if conf.CONFIG_GET('ENABLE_SELFTEST'):
conf.RECURSE('lib/nss_wrapper')
conf.RECURSE('lib/resolv_wrapper')
- conf.RECURSE('lib/socket_wrapper')
conf.RECURSE('lib/uid_wrapper')
if Options.options.with_pam:
conf.RECURSE('lib/pam_wrapper')