From: Remi Gacogne Date: Thu, 7 Sep 2023 09:31:24 +0000 (+0200) Subject: dnsdist: Only compile and link doh.cc when h2o support is enabled X-Git-Tag: rec-5.0.0-alpha1~19^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F12678%2Fhead;p=thirdparty%2Fpdns.git dnsdist: Only compile and link doh.cc when h2o support is enabled --- diff --git a/pdns/dnsdistdist/Makefile.am b/pdns/dnsdistdist/Makefile.am index 0c07520108..47686dedf0 100644 --- a/pdns/dnsdistdist/Makefile.am +++ b/pdns/dnsdistdist/Makefile.am @@ -207,7 +207,7 @@ dnsdist_SOURCES = \ dnsparser.hh dnsparser.cc \ dnstap.cc dnstap.hh \ dnswriter.cc dnswriter.hh \ - doh.hh doh.cc \ + doh.hh \ dolog.hh \ ednscookies.cc ednscookies.hh \ ednsoptions.cc ednsoptions.hh \ @@ -424,6 +424,7 @@ dnsdist_LDADD += -lgnutls endif if HAVE_LIBH2OEVLOOP +dnsdist_SOURCES += doh.cc dnsdist_LDADD += $(LIBH2OEVLOOP_LIBS) endif diff --git a/pdns/dnsdistdist/doh.cc b/pdns/dnsdistdist/doh.cc index 3111274e26..8a9f5fef2a 100644 --- a/pdns/dnsdistdist/doh.cc +++ b/pdns/dnsdistdist/doh.cc @@ -1731,4 +1731,4 @@ void H2ODOHFrontend::setup() } #endif /* HAVE_LIBH2OEVLOOP */ -#endif /* HAVE_LIBH2OEVLOOP */ +#endif /* HAVE_DNS_OVER_HTTPS */