aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-08-26 08:22:58 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-08-27 18:52:30 +0200
commitb7612f45da9ea3ff3488a34f2ffd39d0d94713fb (patch)
tree6f26a9ca4db19e6342bc62553f1ab33561479b90 /configure
parentfb648e9cacf4209ddaa8ee67d1a87a9b78a001c6 (diff)
downloadqemu-b7612f45da9ea3ff3488a34f2ffd39d0d94713fb.zip
qemu-b7612f45da9ea3ff3488a34f2ffd39d0d94713fb.tar.gz
qemu-b7612f45da9ea3ff3488a34f2ffd39d0d94713fb.tar.bz2
meson: move pixman detection to meson
When pixman is not installed (or too old), but virglrenderer is available and "configure" has been run with "--disable-system", the build currently aborts when trying to compile vhost-user-gpu (since it requires pixman). Let's skip the build of vhost-user-gpu when pixman is not installed or too old. Instead of adding CONFIG_PIXMAN, it is simpler to move the detection to pixman. Based on a patch by Thomas Huth. <thuth@redhat.com> Fixes: 9b52b17ba5 ("configure: Allow to build tools without pixman") Reported-by: Rafael Kitover <rkitover@gmail.com> Reported-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure21
1 files changed, 2 insertions, 19 deletions
diff --git a/configure b/configure
index 0b78577..9db9bb8 100755
--- a/configure
+++ b/configure
@@ -3924,20 +3924,6 @@ if test "$modules" = yes; then
fi
##########################################
-# pixman support probe
-
-if test "$softmmu" = "no"; then
- pixman_cflags=
- pixman_libs=
-elif $pkg_config --atleast-version=0.21.8 pixman-1 > /dev/null 2>&1; then
- pixman_cflags=$($pkg_config --cflags pixman-1)
- pixman_libs=$($pkg_config --libs pixman-1)
-else
- error_exit "pixman >= 0.21.8 not present." \
- "Please install the pixman devel package."
-fi
-
-##########################################
# libmpathpersist probe
if test "$mpath" != "no" ; then
@@ -6649,8 +6635,8 @@ echo_version() {
fi
}
-# prepend pixman and ftd flags after all config tests are done
-QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
+# prepend ftd flags after all config tests are done
+QEMU_CFLAGS="$fdt_cflags $QEMU_CFLAGS"
QEMU_LDFLAGS="$fdt_ldflags $QEMU_LDFLAGS"
config_host_mak="config-host.mak"
@@ -8056,9 +8042,6 @@ fi
done # for target in $targets
-echo "PIXMAN_CFLAGS=$pixman_cflags" >> $config_host_mak
-echo "PIXMAN_LIBS=$pixman_libs" >> $config_host_mak
-
if [ "$fdt" = "git" ]; then
subdirs="$subdirs dtc"
fi