]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
configure: Improve the reporting when the "virt" plugin cannot be built.
authorFlorian Forster <octo@google.com>
Thu, 30 Nov 2023 09:10:07 +0000 (10:10 +0100)
committerFlorian Forster <octo@google.com>
Thu, 30 Nov 2023 09:10:07 +0000 (10:10 +0100)
configure.ac

index 5383e3e2a62a483b158b7510996beee9a4032bc3..7ddf754ab71a4eaa1d514581f1c0f370837c6001 100644 (file)
@@ -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