[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL v2 05/17] configure: add echo_version helper
From: |
Gerd Hoffmann |
Subject: |
[Qemu-devel] [PULL v2 05/17] configure: add echo_version helper |
Date: |
Fri, 13 May 2016 14:32:45 +0200 |
From: Cole Robinson <address@hidden>
Simplifies printing library versions, dependent on if the library
was even found
Signed-off-by: Cole Robinson <address@hidden>
Message-id: address@hidden
Signed-off-by: Gerd Hoffmann <address@hidden>
---
configure | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/configure b/configure
index 8e25a24..76600f4 100755
--- a/configure
+++ b/configure
@@ -4730,6 +4730,12 @@ EOF
fi
fi
+echo_version() {
+ if test "$1" = "yes" ; then
+ echo "($2)"
+ fi
+}
+
# prepend pixman and ftd flags after all config tests are done
QEMU_CFLAGS="$pixman_cflags $fdt_cflags $QEMU_CFLAGS"
libs_softmmu="$pixman_libs $libs_softmmu"
@@ -4787,11 +4793,7 @@ echo "GNUTLS hash $gnutls_hash"
echo "GNUTLS rnd $gnutls_rnd"
echo "libgcrypt $gcrypt"
echo "libgcrypt kdf $gcrypt_kdf"
-if test "$nettle" = "yes"; then
- echo "nettle $nettle ($nettle_version)"
-else
- echo "nettle $nettle"
-fi
+echo "nettle $nettle `echo_version $nettle $nettle_version`"
echo "nettle kdf $nettle_kdf"
echo "libtasn1 $tasn1"
echo "VTE support $vte"
@@ -4843,11 +4845,7 @@ echo "Trace backends $trace_backends"
if have_backend "simple"; then
echo "Trace output file $trace_file-<pid>"
fi
-if test "$spice" = "yes"; then
-echo "spice support $spice ($spice_protocol_version/$spice_server_version)"
-else
-echo "spice support $spice"
-fi
+echo "spice support $spice `echo_version $spice
$spice_protocol_version/$spice_server_version`"
echo "rbd support $rbd"
echo "xfsctl support $xfs"
echo "smartcard support $smartcard"
--
1.8.3.1
- [Qemu-devel] [PULL v2 11/17] ui/gtk: copy to clipboard support, (continued)
- [Qemu-devel] [PULL v2 11/17] ui/gtk: copy to clipboard support, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 16/17] gtk: update grab code for gtk 3.20, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 02/17] ui: sdl2: Release grab before opening console window, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 17/17] gtk: don't leak the GtkBorder with VTE 0.36, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 06/17] configure: report GTK version, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 04/17] configure: error on unknown --with-sdlabi value, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 12/17] spice/gl: add & use qemu_spice_gl_monitor_config, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 13/17] Changed malloc to g_malloc, free to g_free in ui/shader.c, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 10/17] ui: gtk: Fix some deprecation warnings, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 07/17] configure: report SDL version, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 05/17] configure: add echo_version helper,
Gerd Hoffmann <=
- [Qemu-devel] [PULL v2 01/17] ui: gtk: fix crash when terminal inner-border is NULL, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 15/17] spice: fix coverity complains, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 09/17] ui: gtk: Fix a runtime warning on vte >= 0.37, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 03/17] configure: build SDL if only SDL2 available, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 14/17] egl-helpers: fix possible resource leak, Gerd Hoffmann, 2016/05/13
- [Qemu-devel] [PULL v2 08/17] configure: support vte-2.91, Gerd Hoffmann, 2016/05/13
- Re: [Qemu-devel] [PULL v2 00/17] ui patch queue, Peter Maydell, 2016/05/13