summaryrefslogtreecommitdiffstats
path: root/m4/dnsdist_enable_doh.m4
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 21:11:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-13 21:11:59 +0000
commit3cd01b932e1c85394272ae64fae67ebeda92fb00 (patch)
treec5a3115d710afc1879ddea5349362a2bc651733c /m4/dnsdist_enable_doh.m4
parentInitial commit. (diff)
downloaddnsdist-3cd01b932e1c85394272ae64fae67ebeda92fb00.tar.xz
dnsdist-3cd01b932e1c85394272ae64fae67ebeda92fb00.zip
Adding upstream version 1.8.3.upstream/1.8.3
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'm4/dnsdist_enable_doh.m4')
-rw-r--r--m4/dnsdist_enable_doh.m415
1 files changed, 15 insertions, 0 deletions
diff --git a/m4/dnsdist_enable_doh.m4 b/m4/dnsdist_enable_doh.m4
new file mode 100644
index 0000000..876a218
--- /dev/null
+++ b/m4/dnsdist_enable_doh.m4
@@ -0,0 +1,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) @<:@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])
+ ])
+])
+