]> code.delx.au - pulseaudio/commitdiff
build-sys: json-c changed everything :(
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 27 Apr 2013 03:27:05 +0000 (08:57 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Sat, 27 Apr 2013 03:36:44 +0000 (09:06 +0530)
json-c 0.11 ships a pkg-config file with a different name, and changes
the name of its library as well.

configure.ac

index c8161a47795a32d36fb934be4fff7be85d90f53d..b1bd21ac6e39fd5be7202281de3d03b0a00435f0 100644 (file)
@@ -624,7 +624,8 @@ AM_CONDITIONAL([HAVE_TESTS], [test "x$HAVE_LIBCHECK" = x1])
 
 #### json parsing ####
 
-PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])
+PKG_CHECK_MODULES(LIBJSON, [ json-c >= 0.11 ], [],
+                 [PKG_CHECK_MODULES(LIBJSON, [ json >= 0.9 ])])
 AC_SUBST(LIBJSON_CFLAGS)
 AC_SUBST(LIBJSON_LIBS)