gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-merchant] 03/04: check for specific jansson version


From: gnunet
Subject: [GNUnet-SVN] [taler-merchant] 03/04: check for specific jansson version using pkgconfig
Date: Sat, 26 Aug 2017 00:15:39 +0200

This is an automated email from the git hooks/post-receive script.

dold pushed a commit to branch master
in repository merchant.

commit 20fa0cd7f044d3d074e5cb1208409b9dadccb7aa
Author: Florian Dold <address@hidden>
AuthorDate: Sat Aug 26 00:09:47 2017 +0200

    check for specific jansson version using pkgconfig
    
    We'll need a feature only available in jansson>=2.3, and it's easier to
    check it using pkgconfig.
---
 configure.ac | 23 +++++------------------
 1 file changed, 5 insertions(+), 18 deletions(-)

diff --git a/configure.ac b/configure.ac
index 11afa00..f3f7b23 100644
--- a/configure.ac
+++ b/configure.ac
@@ -152,27 +152,14 @@ AS_IF([test $microhttpd = 0],
 *** You need libmicrohttpd to build this program.
 *** ]])])
 
-
-# check for libjansson (Jansson JSON library)
 jansson=0
-AC_MSG_CHECKING([for jansson])
-AC_ARG_WITH([jansson],
-            [AS_HELP_STRING([--with-jansson=PFX], [base of jansson 
installation])],
-            [AC_MSG_RESULT([given as $with_jansson])],
-            [AC_MSG_RESULT([not given])
-             with_jansson=yes])
-AS_CASE([$with_jansson],
-        [yes], [],
-        [no], [AC_MSG_ERROR([--with-jansson is required])],
-        [LDFLAGS="-L$with_jansson/lib $LDFLAGS"
-         CPPFLAGS="-I$with_jansson/include $CPPFLAGS"])
-AC_CHECK_LIB(jansson,json_pack,
-  [AC_CHECK_HEADER([jansson.h],[jansson=1])])
-AS_IF([test $jansson = 0],
-  [AC_MSG_ERROR([[
+PKG_CHECK_MODULES([JANSSON], [jansson >= 2.3], 
+                  [LDFLAGS="$JANSSON_LIBS $LDFLAGS"
+                   CPPFLAGS="$JANSSON_CFLAGS $CPPFLAGS"],
+                  [AC_MSG_ERROR([[
 ***
 *** You need libjansson to build this program.
-*** ]])])
+***]])])
 
 # check for libgnurl
 # libgnurl

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]