From: David Mulder Date: Wed, 6 Apr 2022 18:55:01 +0000 (-0600) Subject: configure: Fail smbd w/o smb1 if selftest when configured with ad_dc X-Git-Tag: tevent-0.12.0~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d416205b2880356852715f4fb49adf8d756bbc;p=thirdparty%2Fsamba.git configure: Fail smbd w/o smb1 if selftest when configured with ad_dc When we build with samba selftest and ad_dc, we must include smb1 in smbd. Signed-off-by: David Mulder Reviewed-by: Jeremy Allison --- diff --git a/wscript b/wscript index 9d928034228..3af4207516d 100644 --- a/wscript +++ b/wscript @@ -394,6 +394,13 @@ def configure(conf): msg="Checking compiler for full RELRO support"): conf.env['ENABLE_RELRO'] = True + if conf.CONFIG_GET('ENABLE_SELFTEST') and \ + Options.options.with_smb1server == False and \ + Options.options.without_ad_dc != True: + conf.fatal('--without-smb1-server cannot be specified with ' + '--enable-selftest/--enable-developer if ' + '--without-ad-dc is NOT set!') + if Options.options.with_smb1server != False: conf.DEFINE('WITH_SMB1SERVER', '1')