fix #6220
authorSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 24 Apr 2020 08:18:16 +0000 (10:18 +0200)
committerSchanzenbach, Martin <mschanzenbach@posteo.de>
Fri, 24 Apr 2020 08:18:16 +0000 (10:18 +0200)
configure.ac

index b6e44f90e0e159e4b706aac0b1d08e1da03dccd1..bfaf8cf1499f12150a4ee817713d993d324b1ec2 100644 (file)
@@ -1033,8 +1033,15 @@ AS_IF([test x$nss = xfalse],
 AC_CHECK_LIB([kvm],[kvm_open])
 AC_CHECK_LIB([kstat],[kstat_open])
 
+argon=0
 # test for argon2 (for POW)
-AC_CHECK_LIB([argon2],[argon2d_hash_raw])
+AC_CHECK_LIB([argon2],[argon2d_hash_raw], argon=1, argon=0)
+AS_IF([test x$argon = x1],
+[
+ AC_MSG_RESULT([argon2 found])
+],[
+ AC_MSG_ERROR([GNUnet requires argon2.])
+])
 
 # test for libextractor
 extractor=0