aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac12
1 files changed, 11 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3dd98985..46eef3a7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -217,8 +217,18 @@ AS_IF([test $libgnunetutil != 1],
*** https://gnunet.org
*** ]])])
+libgnunetpq=0
AC_CHECK_HEADERS([gnunet/gnunet_pq_lib.h],
- [AC_CHECK_LIB([gnunetpq], [GNUNET_PQ_connect_with_cfg], libgnunetpq=1)])
+ [AC_CHECK_LIB([gnunetpq], [GNUNET_PQ_query_param_blind_sign_priv], libgnunetpq=1)])
+
+AS_IF([test $libgnunetpq != 1],
+ [AC_MSG_ERROR([[
+***
+*** You need libgnunetpq >= 0.21.2 (API v7) to build this program.
+*** This library is part of GNUnet, available at
+*** https://gnunet.org
+*** ]])])
+
AM_CONDITIONAL(HAVE_GNUNETPQ, test x$libgnunetpq = x1)
TALER_LIB_LDFLAGS="-export-dynamic -no-undefined"