[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 05/10] add spice into the configure file
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PATCH v6 05/10] add spice into the configure file |
Date: |
Tue, 21 Sep 2010 18:51:36 +0200 |
Signed-off-by: Gerd Hoffmann <address@hidden>
---
configure | 35 +++++++++++++++++++++++++++++++++++
1 files changed, 35 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
index 66b1d0b..695a632 100755
--- a/configure
+++ b/configure
@@ -325,6 +325,7 @@ user_pie="no"
zero_malloc=""
trace_backend="nop"
trace_file="trace"
+spice=""
# OS specific
if check_define __linux__ ; then
@@ -630,6 +631,10 @@ for opt do
;;
--enable-kvm) kvm="yes"
;;
+ --disable-spice) spice="no"
+ ;;
+ --enable-spice) spice="yes"
+ ;;
--enable-profiler) profiler="yes"
;;
--enable-cocoa)
@@ -912,6 +917,8 @@ echo " --enable-vhost-net enable vhost-net
acceleration support"
echo " --trace-backend=B Trace backend nop simple ust"
echo " --trace-file=NAME Full PATH,NAME of file to store traces"
echo " Default:trace-<pid>"
+echo " --disable-spice disable spice"
+echo " --enable-spice enable spice"
echo ""
echo "NOTE: The object files are built at the place where configure is
launched"
exit 1
@@ -2062,6 +2069,29 @@ if compile_prog "" ""; then
gcc_attribute_warn_unused_result=yes
fi
+# spice probe
+if test "$spice" != "no" ; then
+ cat > $TMPC << EOF
+#include <spice.h>
+int main(void) { spice_server_new(); return 0; }
+EOF
+ spice_cflags=$($pkgconfig --cflags spice-protocol spice-server 2>/dev/null)
+ spice_libs=$($pkgconfig --libs spice-protocol spice-server 2>/dev/null)
+ if $pkgconfig --atleast-version=0.5.3 spice-server &&\
+ compile_prog "$spice_cflags" "$spice_libs" ; then
+ spice="yes"
+ libs_softmmu="$libs_softmmu $spice_libs"
+ QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
+ else
+ if test "$spice" = "yes" ; then
+ feature_not_found "spice"
+ fi
+ spice="no"
+ fi
+fi
+
+##########################################
+
##########################################
# check if we have fdatasync
@@ -2245,6 +2275,7 @@ echo "uuid support $uuid"
echo "vhost-net support $vhost_net"
echo "Trace backend $trace_backend"
echo "Trace output file $trace_file-<pid>"
+echo "spice support $spice"
if test $sdl_too_old = "yes"; then
echo "-> Your SDL version is too old - please upgrade to have SDL support"
@@ -2482,6 +2513,10 @@ if test "$fdatasync" = "yes" ; then
echo "CONFIG_FDATASYNC=y" >> $config_host_mak
fi
+if test "$spice" = "yes" ; then
+ echo "CONFIG_SPICE=y" >> $config_host_mak
+fi
+
# XXX: suppress that
if [ "$bsd" = "yes" ] ; then
echo "CONFIG_BSD=y" >> $config_host_mak
--
1.7.1
- [Qemu-devel] [PATCH v6 00/10] initial spice support., Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 04/10] configure: add logging, Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 06/10] spice: core bits, Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 03/10] add pflib: PixelFormat conversion library., Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 05/10] add spice into the configure file,
Gerd Hoffmann <=
- [Qemu-devel] [PATCH v6 02/10] Use machine_init() to register virtfs config options., Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 01/10] Use display types for local display only., Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 08/10] spice: add mouse, Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 07/10] spice: add keyboard, Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 10/10] spice: add tablet support, Gerd Hoffmann, 2010/09/21
- [Qemu-devel] [PATCH v6 09/10] spice: simple display, Gerd Hoffmann, 2010/09/21