]> git.ipfire.org Git - thirdparty/collectd.git/commitdiff
configure: Use `elif` instead of two separate `if` blocks.
authorFlorian Forster <octo@google.com>
Fri, 1 Dec 2023 09:43:09 +0000 (10:43 +0100)
committerFlorian Forster <octo@google.com>
Fri, 1 Dec 2023 09:43:09 +0000 (10:43 +0100)
configure.ac

index 7ddf754ab71a4eaa1d514581f1c0f370837c6001..96e196e843001bcd70d6955de9b3eb1e04a387a6 100644 (file)
@@ -7142,11 +7142,10 @@ 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"
+  elif test "x$with_libxml2" != "xyes"; then
+    plugin_virt="$with_libxml2"
   fi
 fi