From 35698918f80cb0b10c21fa450bf265564faf981a Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 6 May 2020 16:09:43 +0530 Subject: [PATCH] check for libsodium --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) 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) -- 2.25.1