mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
a2783fe1a3
This combination is untested and it is reasonable to require this broadly available library for the AD DC build. Doing so keeps the combinational complexity down and ensures we test what we ship. (It was failing to compile). Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
37 lines
1.4 KiB
Python
37 lines
1.4 KiB
Python
#!/usr/bin/env python
|
|
|
|
import Logs, Options, Utils
|
|
import samba3
|
|
|
|
def set_options(opt):
|
|
help = ("Build with JSON auth audit support (default=True). "
|
|
"This requires the jansson devel package.")
|
|
|
|
opt.SAMBA3_ADD_OPTION('json-audit', default=None, help=(help))
|
|
|
|
return
|
|
|
|
def configure(conf):
|
|
conf.SET_TARGET_TYPE('jansson', 'EMPTY')
|
|
|
|
if Options.options.with_json_audit != False:
|
|
if conf.CHECK_CFG(package='jansson', args='--cflags --libs',
|
|
msg='Checking for jansson'):
|
|
conf.CHECK_FUNCS_IN('json_object', 'jansson')
|
|
|
|
if not conf.CONFIG_GET('HAVE_JSON_OBJECT'):
|
|
if Options.options.with_json_audit != False:
|
|
conf.fatal("Jansson JSON support not found. "
|
|
"Try installing libjansson-dev or jansson-devel. "
|
|
"Otherwise, use --without-json-audit to build without "
|
|
"JSON support. "
|
|
"JSON support is required for the JSON "
|
|
"formatted audit log feature and the AD DC")
|
|
if not Options.options.without_ad_dc:
|
|
raise Utils.WafError('--without-json-audit requires '
|
|
'--without-ad-dc. '
|
|
'Jansson JSON library is required for '
|
|
'building the AD DC')
|
|
Logs.info("Building without Jansson JSON log support")
|
|
|