diff options
-rw-r--r-- | source3/wscript | 3 | ||||
-rw-r--r-- | source3/wscript_build | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/source3/wscript b/source3/wscript index a50510739d..a58c524cb5 100644 --- a/source3/wscript +++ b/source3/wscript @@ -62,6 +62,9 @@ def configure(conf): if Options.options.developer: conf.ADD_CFLAGS('-DDEVELOPER -DDEBUG_PASSWORD') + if Options.options.with_swat: + conf.env['build_swat'] = True + # set a limit on recursing in the waf preprocessor conf.env.preprocessor_recursion_limit = 10 diff --git a/source3/wscript_build b/source3/wscript_build index 04f47dd170..636091e243 100644 --- a/source3/wscript_build +++ b/source3/wscript_build @@ -931,7 +931,7 @@ bld.SAMBA_BINARY('web/swat', source=SWAT_SRC, deps='''talloc tevent cap DYNCONFIG LIBS LIBSMB LIBWBCLIENT PARAM LIB_NONSMBD resolv PASSDB POPT_SAMBA KRBCLIENT''', - enabled=Options.options.with_swat, + enabled=bld.env.build_swat, install_path='${SBINDIR}', vars=locals()) |