From 81f38c6a3377e2a1df3bfbb223f98bdaf3fd8ffa Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 8 Jul 2020 12:59:04 +0200 Subject: [PATCH] Use pkgconfig for libmicrohttpd detection See a3766c12585a1db989beacfdac7a0cc46685b59a for why the version bump. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index e781b22..2f0995c 100644 --- a/configure.ac +++ b/configure.ac @@ -31,8 +31,8 @@ PKG_CHECK_MODULES([expat], [expat >= 2.0.0], [], AC_CHECK_LIB([pthread], [main], [], [AC_MSG_ERROR([pthread is required])]) -AC_CHECK_LIB([microhttpd], [main], [], - [AC_MSG_ERROR([microhttpd is required])]) +PKG_CHECK_MODULES([libmicrohttpd], [libmicrohttpd >= 0.9.71], [], + [AC_MSG_ERROR([libmicrohttpd 0.9.71 or higher is required])]) AM_CFLAGS="-Wall -Wno-deprecated-declarations" AM_CFLAGS="$AM_CFLAGS -Wunused -Werror"