mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
8e54bc463a
This avoids this code becoming untested if a package is not installed or the configure test is accidentially broken. Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
17 lines
526 B
Python
17 lines
526 B
Python
#!/usr/bin/env python
|
|
|
|
import Options, Utils
|
|
|
|
conf.SET_TARGET_TYPE('jansson', 'EMPTY')
|
|
|
|
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') and \
|
|
conf.CONFIG_GET('ENABLE_SELFTEST') and \
|
|
(not Options.options.without_ad_dc):
|
|
raise Utils.WafError('jansson JSON library required for '
|
|
'--enable-selftest '
|
|
'when building the AD DC')
|