summaryrefslogtreecommitdiffstats
path: root/m4/dnsdist_enable_doh.m4
blob: baf9118e67296fc499f925d989e7a6f6f455de58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
AC_DEFUN([DNSDIST_ENABLE_DNS_OVER_HTTPS], [
  AC_MSG_CHECKING([whether to enable incoming DNS over HTTPS (DoH) support])
  AC_ARG_ENABLE([dns-over-https],
    AS_HELP_STRING([--enable-dns-over-https], [enable incoming DNS over HTTPS (DoH) support (requires libh2o or nghttp2) @<:@default=no@:>@]),
    [enable_dns_over_https=$enableval],
    [enable_dns_over_https=no]
  )
  AC_MSG_RESULT([$enable_dns_over_https])
  AM_CONDITIONAL([HAVE_DNS_OVER_HTTPS], [test "x$enable_dns_over_https" != "xno"])

  AM_COND_IF([HAVE_DNS_OVER_HTTPS], [
    AC_DEFINE([HAVE_DNS_OVER_HTTPS], [1], [Define to 1 if you enable DNS over HTTPS support])
  ])
])