From 6d01736031f5fa27cb340e2a09f5d894db01a20d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 30 Nov 2023 10:10:07 +0100 Subject: [PATCH] configure: Improve the reporting when the "virt" plugin cannot be built. --- configure.ac | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 5383e3e2a..7ddf754ab 100644 --- a/configure.ac +++ b/configure.ac @@ -6353,12 +6353,12 @@ fi if test "x$with_libvirt" = "xyes"; then with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`" if test $? -ne 0; then - with_libvirt="no" + with_libvirt="no (pkg-config --cflags failed)" fi with_libvirt_ldflags="`$PKG_CONFIG --libs libvirt`" if test $? -ne 0; then - with_libvirt="no" + with_libvirt="no (pkg-config --cflags failed)" fi fi @@ -7140,6 +7140,14 @@ fi if test "x$with_libxml2" = "xyes" && test "x$with_libvirt" = "xyes"; then plugin_virt="yes" +else + plugin_virt="no" + if test "x$with_libxml2" != "xyes"; then + plugin_virt="$with_libxml2" + fi + if test "x$with_libvirt" != "xyes"; then + plugin_virt="$with_libvirt" + fi fi if test "x$with_libxenctrl" = "xyes"; then -- 2.39.5