summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bd92bd0e9..75e11bd4f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1036,9 +1036,10 @@ AC_CHECK_LIB([kvm],[kvm_open])
AC_CHECK_LIB([kstat],[kstat_open])
libsodium=0
-# test for libsodium
+# test for libsodium >=1.017 (introduction of
+# crypto_scalarmult_ed25519_base_noclamp API)
AC_CHECK_HEADER([sodium.h],
- [AC_CHECK_LIB([sodium], [crypto_pwhash_argon2id],
+ [AC_CHECK_LIB([sodium], [crypto_scalarmult_ed25519_base_noclamp],
[libsodium=1])])
AS_IF([test x$libsodium = x0],