summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorThomas Huth2021-07-13 11:31:54 +0200
committerPaolo Bonzini2021-07-22 14:44:51 +0200
commitbcf0a7dabd8fe01f948801c49b9a948560fa346d (patch)
tree305ecced64aea8b9f5a2603aa5b547d8e6dbdc0c /configure
parentconfigure: Allow vnc to get disabled with --without-default-features (diff)
downloadqemu-bcf0a7dabd8fe01f948801c49b9a948560fa346d.tar.gz
qemu-bcf0a7dabd8fe01f948801c49b9a948560fa346d.tar.xz
qemu-bcf0a7dabd8fe01f948801c49b9a948560fa346d.zip
configure: Fix the default setting of the "xen" feature
The "xen" variable should either contain "enabled", "disabled" or nothing (for auto detection). But when the user currently runs the configure script with --without-default-features, it gets set to "no" instead. This does not work as expected, the feature will still be enabled if the Xen headers are present. Thus set the variable to "disabled" instead if default_feature switch has been set. Reported-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Message-Id: <20210713093155.677589-4-thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure b/configure
index 468aac58e2..40fa8cc26e 100755
--- a/configure
+++ b/configure
@@ -311,7 +311,7 @@ vnc_sasl="auto"
vnc_jpeg="auto"
vnc_png="auto"
xkbcommon="auto"
-xen="$default_feature"
+xen=${default_feature:+disabled}
xen_ctrl_version="$default_feature"
xen_pci_passthrough="auto"
linux_aio="$default_feature"