diff options
-rw-r--r-- | buildtools/wafsamba/samba_utils.py | 1 | ||||
-rw-r--r-- | source4/lib/tls/wscript | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/buildtools/wafsamba/samba_utils.py b/buildtools/wafsamba/samba_utils.py index fe290a33e1..59003d8212 100644 --- a/buildtools/wafsamba/samba_utils.py +++ b/buildtools/wafsamba/samba_utils.py @@ -23,6 +23,7 @@ def NEW_NODE(node, name): ############################################################# # set a value in a local cache # return False if it's already set +@conf def SET_TARGET_TYPE(ctx, target, value): cache = LOCAL_CACHE(ctx, 'TARGET_TYPE') if target in cache: diff --git a/source4/lib/tls/wscript b/source4/lib/tls/wscript index 6f517de48d..c8427c781f 100644 --- a/source4/lib/tls/wscript +++ b/source4/lib/tls/wscript @@ -12,6 +12,9 @@ def set_options(opt): def configure(conf): conf.env.enable_gnutls = Options.options.enable_gnutls if not conf.env.enable_gnutls: + conf.SET_TARGET_TYPE('gnutls', 'DISABLED') + conf.SET_TARGET_TYPE('gcrypt', 'DISABLED') + conf.SET_TARGET_TYPE('gpg-error', 'DISABLED') return conf.check_cfg(package='gnutls', @@ -44,6 +47,5 @@ def configure(conf): def build(bld): bld.SAMBA_SUBSYSTEM('LIBTLS', source='tls.c tlscert.c', - public_deps='talloc gnutls gcrypt LIBSAMBA-HOSTCONFIG samba_socket', - enabled = bld.env.enable_gnutls + public_deps='talloc gnutls gcrypt LIBSAMBA-HOSTCONFIG samba_socket' ) |