Make the DNS over HTTPS support optional

This commit adds two new autoconf options `--enable-doh` (enabled by
default) and `--with-libnghttp2` (mandatory when DoH is enabled).

When DoH support is disabled the library is not linked-in and support
for http(s) protocol is disabled in the netmgr, named and dig.
This commit is contained in:
Ondřej Surý
2021-04-21 13:52:15 +02:00
parent 390a522366
commit 2bb454182b
25 changed files with 223 additions and 71 deletions

View File

@@ -75,6 +75,12 @@ do
n=`expr $n + 1`
echo_i "checking that named-checkconf detects no error in $good ($n)"
ret=0
if ! $FEATURETEST --with-libnghttp2
then
case $good in
good-doh-*.conf) continue;
esac
fi
$CHECKCONF $good > checkconf.out$n 2>&1
if [ $? != 0 ]; then echo_i "failed"; ret=1; fi
status=`expr $status + $ret`