From a2222c8a52832ab3044397de31c4139e088eacc2 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Sun, 6 Mar 2016 19:49:24 +0100 Subject: [PATCH] [chromecast] Try json if pkg-config doesn't find json-c --- configure.ac | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 15720ecb..bb7dc93d 100644 --- a/configure.ac +++ b/configure.ac @@ -188,7 +188,10 @@ AS_IF([test "x$enable_chromecast" = "xyes"], [ AC_DEFINE(CHROMECAST, 1, [Define to 1 to enable Chromecast support]) PKG_CHECK_MODULES(LIBPROTOBUF_C, [ libprotobuf-c >= 1.0.0 ], , [ protobuf_old="yes" ]) PKG_CHECK_MODULES(GNUTLS, [ gnutls ]) - PKG_CHECK_MODULES(JSON_C, [ json-c ]) + PKG_CHECK_EXISTS([ json-c ], + [ PKG_CHECK_MODULES(JSON_C, [ json-c ]) ], + [ PKG_CHECK_MODULES(JSON_C, [ json ]) ] + ) ]) AS_IF([test "x$protobuf_old" = "xyes"], [ AC_DEFINE(HAVE_PROTOBUF_OLD, 1, [Define to 1 if you have libprotobuf < 1.0.0])