* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
+#include "dnsdist-nghttp2-in.hh"
+
+#if defined(HAVE_DNS_OVER_HTTPS) && defined(HAVE_NGHTTP2)
#include "dnsdist-dnsparser.hh"
#include "dnsdist-doh-common.hh"
-#include "dnsdist-nghttp2-in.hh"
#include "dnsdist-proxy-protocol.hh"
#include "dnsparser.hh"
-#if defined(HAVE_DNS_OVER_HTTPS) && defined(HAVE_NGHTTP2)
-
#if 0
class IncomingDoHCrossProtocolContext : public CrossProtocolContext
{
#include "iputils.hh"
#include "libssl.hh"
#include "stat_t.hh"
-#include "dnsdist-idstate.hh"
struct DOH3ServerConfig;
struct DownstreamState;
#ifdef HAVE_DNS_OVER_HTTP3
+#include "dnsdist-idstate.hh"
#include "doq-common.hh"
struct DOH3Frontend
#include "noinitvector.hh"
#include "doq.hh"
#include "stat_t.hh"
-#include "dnsdist-idstate.hh"
struct DOQServerConfig;
struct DownstreamState;
#ifdef HAVE_DNS_OVER_QUIC
+#include "dnsdist-idstate.hh"
#include "doq-common.hh"
struct DOQFrontend
-dep_cdb = dependency('', required: false)
-
dep_cdb = dependency('libcdb', required: false)
if not dep_cdb.found()
opt_libsnmp = get_option('snmp')
-dep_libsnmp = declare_dependency()
+dep_libsnmp = dependency('', required: false)
-if get_option('snmp')
+if opt_libsnmp
snmp_config = find_program('net-snmp-config', required: true)
snmp_ldflags_res = run_command(snmp_config, '--netsnmp-agent-libs', check: true)
snmp_ldflags = snmp_ldflags_res.stdout().strip().split()
-dep_libquiche = declare_dependency()
+dep_libquiche = dependency('', required: false)
opt_libquiche = get_option('quiche')
if (get_option('dns-over-quic') or get_option('dns-over-http3')) and opt_libquiche.allowed()