From: Fred Morcos Date: Wed, 5 Jul 2023 09:51:33 +0000 (+0200) Subject: Meson: ipcipher X-Git-Tag: rec-5.1.0-alpha1~80^2~361 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab2b4fa9382eed9c9dba2d372cd89d9dd4d344a;p=thirdparty%2Fpdns.git Meson: ipcipher --- diff --git a/meson.build b/meson.build index 8404892714..503dbcb371 100644 --- a/meson.build +++ b/meson.build @@ -37,6 +37,7 @@ subdir('meson/libcrypto') # OpenSSL-based signers subdir('meson/libssl') # OpenSSL libssl subdir('meson/gnutls') # GnuTLS subdir('meson/dot') # DNS over TLS +subdir('meson/ipcipher') # IPCipher # Generate config.h ---------------------------------------------------------------------- config_h = configure_file(configuration: conf, output: 'config.h') diff --git a/meson/ipcipher/meson.build b/meson/ipcipher/meson.build new file mode 100644 index 0000000000..54d81399a2 --- /dev/null +++ b/meson/ipcipher/meson.build @@ -0,0 +1,13 @@ +# IPCipher +# Inputs: conf have_libcrypto + +opt_ipcipher = get_option('ipcipher') + +if not have_libcrypto and opt_ipcipher.enabled() + error('ipcipher support was requested but libcrypto is not available') +endif + +enable_ipcipher = have_libcrypto and not opt_ipcipher.disabled() +conf.set10('HAVE_IPCIPHER', enable_ipcipher, description: 'Whether ipcipher support is enabled') +show_colors = have_libcrypto or not opt_ipcipher.auto() +summary('ipcipher', enable_ipcipher, bool_yn: show_colors, section: 'Configuration') diff --git a/meson_options.txt b/meson_options.txt index 08c82df7d6..4701f63efe 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -8,3 +8,4 @@ option('libcrypto', type: 'string', value: 'auto', description: 'Build support f option('libssl', type: 'feature', value: 'auto', description: 'Build support for libssl') option('gnutls', type: 'feature', value: 'auto', description: 'Build support for GnuTLS') option('dns-over-tls', type: 'boolean', value: false, description: 'Enable DNS over TLS (requires GnuTLS or OpenSSL)') +option('ipcipher', type: 'feature', value: 'auto', description: 'Enable ipcipher support (requires libcrypto)')