elif not conf.CHECK_FUNCS('attropen'):
conf.DEFINE('HAVE_XATTR_SUPPORT', 0)
+ 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')
conf.CHECK_FUNCS_IN('dlopen dlsym dlerror dlclose', 'dl',
checklibc=True, headers='dlfcn.h dl.h')
Logs.warn("pthreadpool support cannot be enabled when pthread support was not found")
conf.undefine('WITH_PTHREADPOOL')
- conf.SET_TARGET_TYPE('jansson', 'EMPTY')
-
- if Options.options.with_json is not 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 is not False:
conf.fatal("Jansson JSON support not found. "