5544c1b
From b132bd0cdb4d684105b91a8173c172296cd191af Mon Sep 17 00:00:00 2001
c8dfc65
From: Alon Levy <alevy@redhat.com>
c8dfc65
Date: Wed, 22 Aug 2012 11:16:26 +0300
5544c1b
Subject: [PATCH] configure: print spice-protocol and spice-server versions
c8dfc65
c8dfc65
Signed-off-by: Alon Levy <alevy@redhat.com>
c8dfc65
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
5544c1b
(cherry picked from commit 2e0e3c399aa8067148055b9ea0edb822c5b584d2)
5544c1b
5544c1b
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
c8dfc65
---
c8dfc65
 configure | 4 +++-
c8dfc65
 1 file changed, 3 insertions(+), 1 deletion(-)
c8dfc65
c8dfc65
diff --git a/configure b/configure
5544c1b
index b5cea26..d7a948f 100755
c8dfc65
--- a/configure
c8dfc65
+++ b/configure
5544c1b
@@ -2670,6 +2670,8 @@ EOF
c8dfc65
     spice="yes"
c8dfc65
     libs_softmmu="$libs_softmmu $spice_libs"
c8dfc65
     QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
c8dfc65
+    spice_protocol_version=$($pkg_config --modversion spice-protocol)
c8dfc65
+    spice_server_version=$($pkg_config --modversion spice-server)
c8dfc65
     if $pkg_config --atleast-version=0.12.0 spice-protocol >/dev/null 2>&1; then
c8dfc65
         spice_qxl_io_monitors_config_async="yes"
c8dfc65
     fi
5544c1b
@@ -3128,7 +3130,7 @@ echo "libcap-ng support $cap_ng"
c8dfc65
 echo "vhost-net support $vhost_net"
c8dfc65
 echo "Trace backend     $trace_backend"
c8dfc65
 echo "Trace output file $trace_file-<pid>"
c8dfc65
-echo "spice support     $spice"
c8dfc65
+echo "spice support     $spice ($spice_protocol_version/$spice_server_version)"
c8dfc65
 echo "rbd support       $rbd"
c8dfc65
 echo "xfsctl support    $xfs"
c8dfc65
 echo "nss used          $smartcard_nss"
c8dfc65
-- 
5544c1b
1.7.12.1
c8dfc65