[SerialICE] New patch to review for serialice: 710b9f8 Hide error messages from pkg_config

Stefan Tauner (stefan.tauner@gmx.at) gerrit at coreboot.org
Mon Oct 15 09:42:35 CEST 2012


Stefan Tauner (stefan.tauner at gmx.at) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1582

-gerrit

commit 710b9f88af90192b086f281ca84d7e099d13cfa6
Author: Stefan Tauner <stefan.tauner at gmx.at>
Date:   Mon Oct 15 09:40:33 2012 +0200

    Hide error messages from pkg_config
    
    We print a clear message and abort anyway if we fail.
    Tested on a system where "lua" is not found, but "lua5.2" is.
    
    Change-Id: Id32749be006a346eb94f189640e842aa6285bdf8
    Signed-off-by: Stefan Tauner <stefan.tauner at gmx.at>
---
 qemu-0.15.x/configure | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/qemu-0.15.x/configure b/qemu-0.15.x/configure
index 74417aa..2eec0fb 100755
--- a/qemu-0.15.x/configure
+++ b/qemu-0.15.x/configure
@@ -1741,8 +1741,8 @@ EOF
     serialice=yes
     libs_softmmu="$lua_ldflags $libs_softmmu"
   else
-    lua_cflags=`$pkg_config --cflags lua || $pkg_config --cflags lua5.2 || $pkg_config --cflags lua5.1`
-    lua_ldflags=`$pkg_config --libs lua || $pkg_config --libs lua5.2 || $pkg_config --libs lua5.1`
+    lua_cflags=`$pkg_config --cflags lua 2> /dev/null || $pkg_config --cflags lua5.2 2> /dev/null || $pkg_config --cflags lua5.1 2> /dev/null`
+    lua_ldflags=`$pkg_config --libs lua 2> /dev/null || $pkg_config --libs lua5.2 2> /dev/null || $pkg_config --libs lua5.1 2> /dev/null`
     if compile_prog "$lua_cflags" "$lua_ldflags" > /dev/null 2> /dev/null ; then
       serialice=yes
       libs_softmmu="$lua_ldflags $libs_softmmu"



More information about the SerialICE mailing list