From: Noel Power Date: Tue, 26 Jul 2016 10:47:43 +0000 (+0100) Subject: s3/build: Add support for WSP in configure script. X-Git-Tag: talloc-2.4.2~1040 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3b25146805cd4aa893a12b3de9fc19c6b0ea756;p=thirdparty%2Fsamba.git s3/build: Add support for WSP in configure script. Building wsp cli, tools should be controlled by specifying '--enable-wsp' Note: By default this option is not enabled as the is an experimental feature however it is enabled if configure is called with '--selftest' Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/source3/wscript b/source3/wscript index af4c7d6328b..93cd68d042f 100644 --- a/source3/wscript +++ b/source3/wscript @@ -100,6 +100,7 @@ def options(opt): # default = None means autodetection opt.samba_add_onoff_option('spotlight', with_name="enable", without_name="disable", default=None) + opt.samba_add_onoff_option('wsp', with_name="enable", without_name="disable", default=False) def configure(conf): default_static_modules = [] @@ -1822,6 +1823,14 @@ int main(void) { and conf.CONFIG_GET('HAVE_UTF8_NORMALISATION') ) + conf.env.with_wsp = False + if conf.CONFIG_GET('ENABLE_SELFTEST'): + Options.options.with_wsp = True + if Options.options.with_wsp: + Logs.info("building with WSP support") + conf.DEFINE('WITH_WSP', '1') + conf.env.with_wsp = True + conf.env.with_spotlight = False if Options.options.with_spotlight is not False: backends = ['noindex']