summaryrefslogtreecommitdiff
path: root/auth
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2018-06-22 04:47:10 +1200
committerRalph Boehme <slow@samba.org>2018-06-25 23:01:20 +0200
commit5bb60e2dd714862c3cda69a42f0f58fa4e7d816d (patch)
tree3e72a4da0d8d591c9a98a03ef79a2bd0da5370af /auth
parentb282bcbb759bbb12797922e066aeb12c0df5b2f1 (diff)
downloadsamba-5bb60e2dd714862c3cda69a42f0f58fa4e7d816d.tar.gz
build: Move --without-json-audit and json lib detection to lib/audit_logging
This is the common location of the audit logging code now Signed-off-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'auth')
-rw-r--r--auth/wscript35
1 files changed, 0 insertions, 35 deletions
diff --git a/auth/wscript b/auth/wscript
deleted file mode 100644
index 7b2c65effe0..00000000000
--- a/auth/wscript
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/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("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")
- if 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')
- Logs.info("Building without jansson json log support")
-