diff options
author | Ian Stakenvicius <axs@gentoo.org> | 2017-01-27 14:07:21 -0500 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2017-03-10 07:31:12 +0100 |
commit | 7d5db908509ffa099fa4b2ce7351e6bf7d1c06e2 (patch) | |
tree | fa75fbedcf94079abae51f4f994c92bdf51535f8 | |
parent | 5bbcd09382a65f9fb86b446bfbaf58a9b6e13aa1 (diff) | |
download | samba-7d5db908509ffa099fa4b2ce7351e6bf7d1c06e2.tar.gz |
waf: disable-python - configuration adjustments
Adjust configuration to accomodate when --disable-python is set:
- Error when AD-DC is still enabled (and others later as needed)
- Set mandatory=false on SAMBA_CHECK_PYTHON_HEADERS
Signed-off-by: Ian Stakenvicius <axs@gentoo.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
-rw-r--r-- | wscript | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -107,8 +107,12 @@ def configure(conf): conf.SAMBA_CHECK_PERL(mandatory=True) conf.find_program('xsltproc', var='XSLTPROC') + if conf.env.disable_python: + if not (Options.options.without_ad_dc): + raise Utils.WafError('--disable-python requires --without-ad-dc') + conf.SAMBA_CHECK_PYTHON(mandatory=True, version=(2, 6, 0)) - conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=True) + conf.SAMBA_CHECK_PYTHON_HEADERS(mandatory=(not conf.env.disable_python)) if sys.platform == 'darwin' and not conf.env['HAVE_ENVIRON_DECL']: # Mac OSX needs to have this and it's also needed that the python is compiled with this |