summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 089f0493c..94c0a7689 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1046,6 +1046,15 @@ AS_IF([test x$argon = x1],
AC_MSG_ERROR([GNUnet requires argon2.])
])
+libsodium=0
+# test for libsodium
+AC_CHECK_HEADER([sodium.h],
+ [AC_CHECK_LIB([sodium], [sodium_init],
+ [libsodium=1])])
+
+AS_IF([test x$libsodium = x0],
+ [AC_MSG_ERROR([GNUnet requires libsodium.])])
+
# test for libextractor
extractor=0
AC_MSG_CHECKING(for libextractor)