From b4f7231d17ce995bd4b36776a01e3e2ececbe3bd Mon Sep 17 00:00:00 2001 From: Thien-Thi Nguyen Date: Sat, 19 Mar 2022 07:52:15 -0400 Subject: =?UTF-8?q?[build=20int]=20Use=20=E2=80=98MHD=5FVERSION=5FAT=5FLEA?= =?UTF-8?q?ST=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 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(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 5efd4d669..01f1dc20d 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 ]]) -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 -- cgit v1.2.3