]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
virt-driver-qemu.m4: Require YAJL
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 13 Mar 2019 15:40:14 +0000 (16:40 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 14 Mar 2019 16:27:56 +0000 (17:27 +0100)
There is no way that qemu driver can work without being able to
format/parse JSON.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
m4/virt-driver-qemu.m4

index 2912b3c462769bd1a946f337297a5fccbc3e8b87..cb05c342657100dc1aa6dac9658b66901d2063a5 100644 (file)
@@ -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