peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0211-configure-print-spice-protocol-and-spice-server-vers.patch

Hans de Goede c8dfc6
From 1d2790682dfac06c2358ac99f5e0bad6a065702d Mon Sep 17 00:00:00 2001
Hans de Goede c8dfc6
From: Alon Levy <alevy@redhat.com>
Hans de Goede c8dfc6
Date: Wed, 22 Aug 2012 11:16:26 +0300
Hans de Goede c8dfc6
Subject: [PATCH 211/215] configure: print spice-protocol and spice-server
Hans de Goede c8dfc6
 versions
Hans de Goede c8dfc6
Hans de Goede c8dfc6
Signed-off-by: Alon Levy <alevy@redhat.com>
Hans de Goede c8dfc6
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Hans de Goede c8dfc6
---
Hans de Goede c8dfc6
 configure | 4 +++-
Hans de Goede c8dfc6
 1 file changed, 3 insertions(+), 1 deletion(-)
Hans de Goede c8dfc6
Hans de Goede c8dfc6
diff --git a/configure b/configure
Hans de Goede c8dfc6
index c57d1c1..25c406f 100755
Hans de Goede c8dfc6
--- a/configure
Hans de Goede c8dfc6
+++ b/configure
Hans de Goede c8dfc6
@@ -2711,6 +2711,8 @@ EOF
Hans de Goede c8dfc6
     spice="yes"
Hans de Goede c8dfc6
     libs_softmmu="$libs_softmmu $spice_libs"
Hans de Goede c8dfc6
     QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
Hans de Goede c8dfc6
+    spice_protocol_version=$($pkg_config --modversion spice-protocol)
Hans de Goede c8dfc6
+    spice_server_version=$($pkg_config --modversion spice-server)
Hans de Goede c8dfc6
     if $pkg_config --atleast-version=0.12.0 spice-protocol >/dev/null 2>&1; then
Hans de Goede c8dfc6
         spice_qxl_io_monitors_config_async="yes"
Hans de Goede c8dfc6
     fi
Hans de Goede c8dfc6
@@ -3169,7 +3171,7 @@ echo "libcap-ng support $cap_ng"
Hans de Goede c8dfc6
 echo "vhost-net support $vhost_net"
Hans de Goede c8dfc6
 echo "Trace backend     $trace_backend"
Hans de Goede c8dfc6
 echo "Trace output file $trace_file-<pid>"
Hans de Goede c8dfc6
-echo "spice support     $spice"
Hans de Goede c8dfc6
+echo "spice support     $spice ($spice_protocol_version/$spice_server_version)"
Hans de Goede c8dfc6
 echo "rbd support       $rbd"
Hans de Goede c8dfc6
 echo "xfsctl support    $xfs"
Hans de Goede c8dfc6
 echo "nss used          $smartcard_nss"
Hans de Goede c8dfc6
-- 
Hans de Goede c8dfc6
1.7.12
Hans de Goede c8dfc6