subdir('meson/libcrypto') # OpenSSL-based signers
subdir('meson/libssl') # OpenSSL libssl
subdir('meson/gnutls') # GnuTLS
+subdir('meson/dot') # DNS over TLS
# Generate config.h ----------------------------------------------------------------------
config_h = configure_file(configuration: conf, output: 'config.h')
--- /dev/null
+# DNS over TLS
+# Inputs: conf dep_libssl dep_gnutls
+
+opt_dot = get_option('dns-over-tls')
+conf.set10('HAVE_DNS_OVER_TLS', opt_dot, description: 'Whether DNS over TLS is enabled')
+
+if opt_dot and not dep_libssl.found() and not dep_gnutls.found()
+ error('DNS over TLS support was requested but neither OpenSSL libssl nor GnuTLS support is enabled')
+endif
+
+summary('DNS over TLS', opt_dot, bool_yn: true, section: 'Configuration')
option('libcrypto', type: 'string', value: 'auto', description: 'Build support for libcrypto-based signers (auto, yes, no, or a path)')
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)')