summaryrefslogtreecommitdiff
path: root/dnscrypt/dnscrypt.m4
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 11:54:35 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2018-05-12 11:54:35 +0000
commit15de2de8449b4f5063f93578ae68aa0bc79a205c (patch)
treef0a7e3230212205e7ff88a2900de97026940f63c /dnscrypt/dnscrypt.m4
parent689b65913bba5320ef50befddf4743c6dafde873 (diff)
Vendor import of Unbound 1.6.4.vendor/unbound/1.6.4
Notes
svn path=/vendor/unbound/dist/; revision=333537 svn path=/vendor/unbound/1.6.4/; revision=333538; tag=vendor/unbound/1.6.4
Diffstat (limited to 'dnscrypt/dnscrypt.m4')
-rw-r--r--dnscrypt/dnscrypt.m411
1 files changed, 11 insertions, 0 deletions
diff --git a/dnscrypt/dnscrypt.m4 b/dnscrypt/dnscrypt.m4
index 077d2822174f..7193519fcf03 100644
--- a/dnscrypt/dnscrypt.m4
+++ b/dnscrypt/dnscrypt.m4
@@ -18,8 +18,19 @@ AC_DEFUN([dnsc_DNSCRYPT],
])
AC_SEARCH_LIBS([sodium_init], [sodium], [],
AC_MSG_ERROR([The sodium library was not found. Please install sodium!]))
+ AC_SEARCH_LIBS([crypto_box_curve25519xchacha20poly1305_beforenm], [sodium],
+ [
+ AC_SUBST([ENABLE_DNSCRYPT_XCHACHA20], [1])
+ AC_DEFINE(
+ [USE_DNSCRYPT_XCHACHA20], [1],
+ [Define to 1 to enable dnscrypt with xchacha20 support])
+ ],
+ [
+ AC_SUBST([ENABLE_DNSCRYPT_XCHACHA20], [0])
+ ])
$1
else
+ AC_SUBST([ENABLE_DNSCRYPT_XCHACHA20], [0])
$2
fi
])