summaryrefslogtreecommitdiff
path: root/wscript
diff options
context:
space:
mode:
authorDavid Mulder <dmulder@suse.com>2022-04-06 12:55:01 -0600
committerJeremy Allison <jra@samba.org>2022-04-07 17:37:30 +0000
commitb6d416205b2880356852715f4fb49adf8d756bbc (patch)
tree1fca0f9a40f4a3dd69a618452c222ffb35fb9df8 /wscript
parenta9b5727632f5e6b23478af6e90ec3b3ac4a3e609 (diff)
downloadsamba-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--wscript7
1 files changed, 7 insertions, 0 deletions
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')