From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeremy Huddleston Subject: [PATCH] Don't build Intel DRM if $CHOST is not i?86-* or x86_64-* Date: Mon, 30 Jan 2012 15:25:20 -0800 Message-ID: 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 mail-out.apple.com (mail-out.apple.com [17.151.62.49]) by gabe.freedesktop.org (Postfix) with ESMTP id 076A19E793 for ; Mon, 30 Jan 2012 15:25:55 -0800 (PST) Received: from relay15.apple.com ([17.128.113.54]) by mail-out.apple.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTP id <0LYM00GT4X1L9SR2@mail-out.apple.com> for dri-devel@lists.freedesktop.org; Mon, 30 Jan 2012 15:25:25 -0800 (PST) Received: from vincent.apple.com (vincent.apple.com [17.193.13.146]) by koseret.apple.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPSA id <0LYM00CRPX284B90@koseret.apple.com> for dri-devel@lists.freedesktop.org; Mon, 30 Jan 2012 15:25:24 -0800 (PST) In-reply-to: <87fwex9mwp.fsf@eliezer.anholt.net> 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: Eric Anholt Cc: daniel.vetter@ffwll.ch, dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org 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 if test "x$RADEON" != "xno"; then RADEON=yes -- 1.7.5.4