Change requested in launchpad bug #1288352
[packages/centos6/qemu.git] / 0109-configure-print-spice-protocol-and-spice-server-vers.patch
1 From b132bd0cdb4d684105b91a8173c172296cd191af Mon Sep 17 00:00:00 2001
2 From: Alon Levy <alevy@redhat.com>
3 Date: Wed, 22 Aug 2012 11:16:26 +0300
4 Subject: [PATCH] configure: print spice-protocol and spice-server versions
5
6 Signed-off-by: Alon Levy <alevy@redhat.com>
7 Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
8 (cherry picked from commit 2e0e3c399aa8067148055b9ea0edb822c5b584d2)
9
10 Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
11 ---
12  configure | 4 +++-
13  1 file changed, 3 insertions(+), 1 deletion(-)
14
15 diff --git a/configure b/configure
16 index b5cea26..d7a948f 100755
17 --- a/configure
18 +++ b/configure
19 @@ -2670,6 +2670,8 @@ EOF
20      spice="yes"
21      libs_softmmu="$libs_softmmu $spice_libs"
22      QEMU_CFLAGS="$QEMU_CFLAGS $spice_cflags"
23 +    spice_protocol_version=$($pkg_config --modversion spice-protocol)
24 +    spice_server_version=$($pkg_config --modversion spice-server)
25      if $pkg_config --atleast-version=0.12.0 spice-protocol >/dev/null 2>&1; then
26          spice_qxl_io_monitors_config_async="yes"
27      fi
28 @@ -3128,7 +3130,7 @@ echo "libcap-ng support $cap_ng"
29  echo "vhost-net support $vhost_net"
30  echo "Trace backend     $trace_backend"
31  echo "Trace output file $trace_file-<pid>"
32 -echo "spice support     $spice"
33 +echo "spice support     $spice ($spice_protocol_version/$spice_server_version)"
34  echo "rbd support       $rbd"
35  echo "xfsctl support    $xfs"
36  echo "nss used          $smartcard_nss"
37 -- 
38 1.7.12.1
39