more precise version check

This commit is contained in:
Christian Grothoff 2018-07-11 18:43:42 +02:00
parent cbed072b27
commit 1e09a0660e
No known key found for this signature in database
GPG Key ID: BF60708B48426C7E

View File

@ -287,12 +287,12 @@ AS_CASE([$with_jansson],
[no], [AC_MSG_ERROR([--with-jansson is required])], [no], [AC_MSG_ERROR([--with-jansson is required])],
[LDFLAGS="-L$with_jansson/lib $LDFLAGS" [LDFLAGS="-L$with_jansson/lib $LDFLAGS"
CPPFLAGS="-I$with_jansson/include $CPPFLAGS"]) CPPFLAGS="-I$with_jansson/include $CPPFLAGS"])
AC_CHECK_LIB(jansson,json_pack, AC_CHECK_LIB(jansson,json_dumpb,
[AC_CHECK_HEADER([jansson.h],[jansson=1])]) [AC_CHECK_HEADER([jansson.h],[jansson=1])])
AS_IF([test $jansson = 0], AS_IF([test $jansson = 0],
[AC_MSG_ERROR([[ [AC_MSG_ERROR([[
*** ***
*** You need libjansson to build this program. *** You need libjansson >= 2.10 to build this program.
*** ]])]) *** ]])])