From: Julien Cristau Subject: Re: [PATCH] Don't build Intel DRM if $CHOST is not i?86-* or x86_64-* Date: Wed, 1 Feb 2012 21:43:16 +0100 Message-ID: <20120201204316.GN19118@radis.cristau.org> References: <87boqgu5zf.fsf@eliezer.anholt.net> <87ehuj5l2n.fsf@eliezer.anholt.net> <5A68BEB0-7C83-4215-8A10-B5014060C764@freedesktop.org> <87fwex9mwp.fsf@eliezer.anholt.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from coloquinte.cristau.org (coloquinte.cristau.org [91.121.16.100]) by gabe.freedesktop.org (Postfix) with ESMTP id 893059E9D2 for ; Wed, 1 Feb 2012 12:43:19 -0800 (PST) Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Jeremy Huddleston Cc: dri-devel@lists.freedesktop.org, daniel.vetter@ffwll.ch List-Id: dri-devel@lists.freedesktop.org On Mon, Jan 30, 2012 at 15:25:20 -0800, Jeremy Huddleston wrote: > This fixes a failure in 'make check' found by the tinderbox when trying to > build this code on Linux/ppc. This code is only designed to run on > Intel platforms, so don't even bother building it if we're not in that set. > > Found-by: Tinderbox > Signed-off-by: Jeremy Huddleston > --- > > It now causes the intel bits to not build on my Linux/ppc tinderbox, but I'd > appreciate someone verifying that it does the right thing on intel boxes as > well. > > configure.ac | 5 ++++- > 1 files changed, 4 insertions(+), 1 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 773167f..f5ebc1d 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -250,7 +250,10 @@ if test "x$INTEL" != "xno" -o "x$RADEON" != "xno"; then > > else > if test "x$INTEL" != "xno"; then > - INTEL=yes > + case $host_os in > + i?86-*|x86_64-*) INTEL=yes ;; > + *) INTEL=no ;; > + esac > fi don't you want to check host_cpu rather than host_os? Cheers, Julien