mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-27 15:45:56 -05:00
[chromecast] Try json if pkg-config doesn't find json-c
This commit is contained in:
parent
bd61399e49
commit
a2222c8a52
@ -188,7 +188,10 @@ AS_IF([test "x$enable_chromecast" = "xyes"], [
|
|||||||
AC_DEFINE(CHROMECAST, 1, [Define to 1 to enable Chromecast support])
|
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(LIBPROTOBUF_C, [ libprotobuf-c >= 1.0.0 ], , [ protobuf_old="yes" ])
|
||||||
PKG_CHECK_MODULES(GNUTLS, [ gnutls ])
|
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"], [
|
AS_IF([test "x$protobuf_old" = "xyes"], [
|
||||||
AC_DEFINE(HAVE_PROTOBUF_OLD, 1, [Define to 1 if you have libprotobuf < 1.0.0])
|
AC_DEFINE(HAVE_PROTOBUF_OLD, 1, [Define to 1 if you have libprotobuf < 1.0.0])
|
||||||
|
Loading…
Reference in New Issue
Block a user