[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-exchange] 02/02: [build int] Use ‘MHD_VERSION_AT_LEAST’
From: |
gnunet |
Subject: |
[taler-exchange] 02/02: [build int] Use ‘MHD_VERSION_AT_LEAST’ |
Date: |
Sat, 19 Mar 2022 12:54:06 +0100 |
This is an automated email from the git hooks/post-receive script.
ttn pushed a commit to branch master
in repository exchange.
commit b4f7231d17ce995bd4b36776a01e3e2ececbe3bd
Author: Thien-Thi Nguyen <ttn@gnuvola.org>
AuthorDate: Sat Mar 19 07:52:15 2022 -0400
[build int] Use ‘MHD_VERSION_AT_LEAST’
* configure.ac (microhttpd): Delete shell var.
(MHD_start_daemon): Delete AC_CHECK_LIB.
(MHD_DAEMON_INFO_CURRENT_CONNECTIONS): Delete AC_CHECK_DECL.
(MHD_VERSION_AT_LEAST): New macro call.
---
configure.ac | 10 +---------
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5efd4d66..01f1dc20 100644
--- a/configure.ac
+++ b/configure.ac
@@ -291,7 +291,6 @@ AC_CHECK_HEADERS([gnunet/gnunet_sq_lib.h],
# check for libmicrohttpd
-microhttpd=0
AC_MSG_CHECKING([for microhttpd])
AC_ARG_WITH([microhttpd],
[AS_HELP_STRING([--with-microhttpd=PFX], [base of microhttpd
installation])],
@@ -303,14 +302,7 @@ AS_CASE([$with_microhttpd],
[no], [AC_MSG_ERROR([--with-microhttpd is required])],
[LDFLAGS="-L$with_microhttpd/lib $LDFLAGS"
CPPFLAGS="-I$with_microhttpd/include $CPPFLAGS"])
-AC_CHECK_LIB(microhttpd,MHD_start_daemon,
- [AC_CHECK_HEADER([microhttpd.h],[microhttpd=1])])
-AC_CHECK_DECL([MHD_DAEMON_INFO_CURRENT_CONNECTIONS],,[microhttpd=0],[[#include
<microhttpd.h>]])
-AS_IF([test $microhttpd = 0],
- [AC_MSG_ERROR([[
-***
-*** You need libmicrohttpd >= 0.9.39 to build this program.
-*** ]])])
+MHD_VERSION_AT_LEAST([0.9.39])
# check for libjansson (Jansson JSON library)
jansson=0
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.