From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:37757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuvFt-0007L8-KD for qemu-devel@nongnu.org; Tue, 07 Feb 2012 19:19:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RuvFr-0000Gq-MN for qemu-devel@nongnu.org; Tue, 07 Feb 2012 19:19:25 -0500 Received: from ozlabs.org ([203.10.76.45]:42267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RuvFr-0000G7-9S for qemu-devel@nongnu.org; Tue, 07 Feb 2012 19:19:23 -0500 From: Rusty Russell Date: Wed, 08 Feb 2012 10:47:23 +1030 Message-ID: <878vkegovg.fsf@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] [PATCH] configure: ignore spice libraries on 32 bit. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel As featured on: https://bugs.launchpad.net/qemu-linaro/+bug/928432 Since we compile with -Werror, the presence of spice headers breaks compile. Yet except for x86-64, it doesn't compile, doesn't work, isn't supported. See: http://spice-space.org/faq.html Signed-off-by: Rusty Russell --- configure | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index c9ff673..84118e4 100755 --- a/configure +++ b/configure @@ -2509,7 +2509,7 @@ if compile_prog "" "" ; then need_offsetof=no fi -# spice probe +# spice probe: x86-64 only (see http://spice-space.org/page/FAQ) if test "$spice" != "no" ; then cat > $TMPC << EOF #include @@ -2517,7 +2517,8 @@ int main(void) { spice_server_new(); return 0; } EOF spice_cflags=$($pkg_config --cflags spice-protocol spice-server 2>/dev/null) spice_libs=$($pkg_config --libs spice-protocol spice-server 2>/dev/null) - if $pkg_config --atleast-version=0.6.0 spice-server >/dev/null 2>&1 && \ + if [ "$ARCH" = x86_64 ] && \ + $pkg_config --atleast-version=0.6.0 spice-server >/dev/null 2>&1 && \ compile_prog "$spice_cflags" "$spice_libs" ; then spice="yes" libs_softmmu="$libs_softmmu $spice_libs"