mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
build: Add new dependency on json-c
This will eventually replace Jansson for all JSON parsing. However this commit simply introduces the new dependency in the configure script and documents it. I chose json-c 0.14 as the baseline since that is the version in RHEL 9. Probably earlier versions would work.
This commit is contained in:
@@ -189,6 +189,10 @@ I<Required>.
|
||||
|
||||
I<Required>.
|
||||
|
||||
=item json-c E<ge> 0.14
|
||||
|
||||
I<Required>.
|
||||
|
||||
=item po4a
|
||||
|
||||
I<Required> if compiling from git.
|
||||
|
||||
@@ -304,6 +304,9 @@ LIBS="$old_LIBS"
|
||||
dnl Check for Jansson JSON library (required).
|
||||
PKG_CHECK_MODULES([JANSSON], [jansson >= 2.7])
|
||||
|
||||
dnl Check for JSON-C library (required).
|
||||
PKG_CHECK_MODULES([JSON_C], [json-c >= 0.14])
|
||||
|
||||
dnl Check for C++ (optional, we just use this to test the header works).
|
||||
AC_PROG_CXX
|
||||
|
||||
|
||||
Reference in New Issue
Block a user