diff --git a/meson.build b/meson.build index 80f59d77d8..dd904c7148 100644 --- a/meson.build +++ b/meson.build @@ -1137,7 +1137,8 @@ substs.set('DEFAULT_DNSSEC_MODE', default_dnssec) dns_over_tls = get_option('dns-over-tls') if dns_over_tls != 'false' - have = libgnutls != [] and libgnutls.version().version_compare('>=3.5.3') + have = (conf.get('HAVE_GNUTLS') == 1 and + libgnutls.version().version_compare('>=3.5.3')) if dns_over_tls == 'true' and not have error('DNS-over-TLS support was requested, but dependencies are not available') endif