+ if Options.options.with_ntvfs_fileserver != False:
+ if not (Options.options.without_ad_dc):
+ conf.DEFINE('WITH_NTVFS_FILESERVER', 1)
+ if Options.options.with_ntvfs_fileserver == False:
+ if not (Options.options.without_ad_dc):
+ raise Errors.WafError('--without-ntvfs-fileserver conflicts with --enable-selftest while building the AD DC')
+ conf.RECURSE('testsuite/unittests')
+
+ if Options.options.with_ntvfs_fileserver == True:
+ if Options.options.without_ad_dc:
+ raise Errors.WafError('--with-ntvfs-fileserver conflicts with --without-ad-dc')
+ conf.DEFINE('WITH_NTVFS_FILESERVER', 1)
+
+ if Options.options.with_pthreadpool:
+ if conf.CONFIG_SET('HAVE_PTHREAD'):
+ conf.DEFINE('WITH_PTHREADPOOL', '1')
+ else:
+ 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 != 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 != False:
+ conf.fatal("Jansson JSON support not found. "
+ "Try installing libjansson-dev or jansson-devel. "
+ "Otherwise, use --without-json to build without "
+ "JSON support. "
+ "JSON support is required for the JSON "
+ "formatted audit log feature, the AD DC, and "
+ "the JSON printers of the net utility")
+ if not Options.options.without_ad_dc:
+ raise Errors.WafError('--without-json requires --without-ad-dc. '
+ 'Jansson JSON library is required for '
+ 'building the AD DC')
+ Logs.info("Building without Jansson JSON log support")
+