@@ -1488,37 +1488,17 @@ conf.set10('HAVE_OPENSSL_OR_GCRYPT',
14881488lib_openssl_or_gcrypt = conf.get(' PREFER_OPENSSL' ) == 1 ? [libopenssl] : [libgcrypt, libgpg_error]
14891489
14901490dns_over_tls = get_option (' dns-over-tls' )
1491- if dns_over_tls != ' false'
1492- if dns_over_tls == ' gnutls' and conf.get(' PREFER_OPENSSL' ) == 1
1493- error (' Sorry, -Ddns-over-tls=gnutls is not supported when openssl is used as the cryptolib' )
1494- endif
1495-
1496- if dns_over_tls == ' gnutls'
1497- have_openssl = false
1498- else
1499- have_openssl = conf.get(' HAVE_OPENSSL' ) == 1
1500- if dns_over_tls == ' openssl' and not have_openssl
1501- error (' DNS-over-TLS support was requested with openssl, but dependencies are not available' )
1502- endif
1503- endif
1504- if dns_over_tls == ' openssl' or have_openssl
1505- have_gnutls = false
1506- else
1507- have_gnutls = conf.get(' HAVE_GNUTLS' ) == 1 and libgnutls.version().version_compare(' >= 3.6.0' )
1508- if dns_over_tls != ' auto' and not have_gnutls
1509- str = dns_over_tls == ' gnutls' ? ' with gnutls' : ''
1510- error (' DNS-over-TLS support was requested@0@, but dependencies are not available' .format(str))
1511- endif
1512- endif
1513- have = have_gnutls or have_openssl
1514- else
1491+ have_openssl = conf.get(' HAVE_OPENSSL' ) == 1
1492+ if dns_over_tls == ' false'
15151493 have = false
1516- have_gnutls = false
1517- have_openssl = false
1494+ elif dns_over_tls == ' auto'
1495+ have = have_openssl
1496+ elif have_openssl
1497+ have = true
1498+ else
1499+ error (' DNS-over-TLS support was requested, but OpenSSL support is disabled.' )
15181500endif
15191501conf.set10(' ENABLE_DNS_OVER_TLS' , have)
1520- conf.set10(' DNS_OVER_TLS_USE_GNUTLS' , have_gnutls)
1521- conf.set10(' DNS_OVER_TLS_USE_OPENSSL' , have_openssl)
15221502
15231503default_dns_over_tls = get_option (' default-dns-over-tls' )
15241504if default_dns_over_tls != ' no' and conf.get(' ENABLE_DNS_OVER_TLS' ) == 0
@@ -3080,6 +3060,7 @@ foreach tuple : [
30803060
30813061 # optional features
30823062 [' dmi' ],
3063+ [' DNS-over-TLS' ],
30833064 [' idn' ],
30843065 [' polkit' ],
30853066 [' legacy-pkla' , install_polkit_pkla],
@@ -3152,14 +3133,6 @@ else
31523133 missing += ' cryptolib'
31533134endif
31543135
3155- if conf.get(' DNS_OVER_TLS_USE_GNUTLS' ) == 1
3156- found += ' DNS-over-TLS(gnutls)'
3157- elif conf.get(' DNS_OVER_TLS_USE_OPENSSL' ) == 1
3158- found += ' DNS-over-TLS(openssl)'
3159- else
3160- missing += ' DNS-over-TLS'
3161- endif
3162-
31633136summary ({
31643137 ' enabled' : ' , ' .join(found),
31653138 ' disabled' : ' , ' .join(missing)},
0 commit comments