]> git.proxmox.com Git - qemu.git/commitdiff
configure: Send error message from spice check to /dev/null
authorStefan Weil <weil@mail.berlios.de>
Thu, 7 Oct 2010 19:15:58 +0000 (21:15 +0200)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 9 Oct 2010 08:23:02 +0000 (08:23 +0000)
pkg-config is not always available (e.g. on win32 hosts),
but we don't want to see the 'command not found' error message.

Redirect stdout and stderr to /dev/null.

v2:

* Removed changes which should not have been here.

Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
configure

index b4e9c4c40d83c7e69e58b1b5554523fd86bb3870..d30306195d03c62115fa505369cb8de3762210e9 100755 (executable)
--- a/configure
+++ b/configure
@@ -2092,7 +2092,7 @@ 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 &&\
+  if $pkgconfig --atleast-version=0.5.3 spice-server >/dev/null 2>&1 && \
      compile_prog "$spice_cflags" "$spice_libs" ; then
     spice="yes"
     libs_softmmu="$libs_softmmu $spice_libs"