There is not way that qemu driver can work without being able to format/parse JSON. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- m4/virt-driver-qemu.m4 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/m4/virt-driver-qemu.m4 b/m4/virt-driver-qemu.m4 index 80e1d3ad46..af8edaae0d 100644 --- a/m4/virt-driver-qemu.m4 +++ b/m4/virt-driver-qemu.m4 @@ -26,6 +26,15 @@ AC_DEFUN([LIBVIRT_DRIVER_ARG_QEMU], [ ]) AC_DEFUN([LIBVIRT_DRIVER_CHECK_QEMU], [ + dnl There is no way qemu driver will work without JSON support + AC_REQUIRE([LIBVIRT_CHECK_YAJL]) + if test "$with_qemu:$with_yajl" = "yes:no"; then + AC_MSG_ERROR([YAJL or YAJL2 is required to build QEMU driver]) + fi + if test "$with_qemu" = "check"; then + with_qemu=$with_yajl + fi + if test "$with_qemu" = "yes" ; then AC_DEFINE_UNQUOTED([WITH_QEMU], 1, [whether QEMU driver is enabled]) fi -- 2.19.2 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list