diff options
author | David Mulder <dmulder@suse.com> | 2022-04-06 12:55:01 -0600 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2022-04-07 17:37:30 +0000 |
commit | b6d416205b2880356852715f4fb49adf8d756bbc (patch) | |
tree | 1fca0f9a40f4a3dd69a618452c222ffb35fb9df8 /wscript | |
parent | a9b5727632f5e6b23478af6e90ec3b3ac4a3e609 (diff) | |
download | samba-b6d416205b2880356852715f4fb49adf8d756bbc.tar.gz |
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 <dmulder@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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') |