From: Takashi Iwai Subject: Re: [PATCH alsa-lib] build: Do not try to detect cross-compiler Date: Wed, 23 Sep 2015 10:39:20 +0200 Message-ID: References: <1442332082-18220-1-git-send-email-tanuk@iki.fi> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id B689926049A for ; Wed, 23 Sep 2015 10:39:20 +0200 (CEST) In-Reply-To: <1442332082-18220-1-git-send-email-tanuk@iki.fi> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Tanu Kaskinen Cc: alsa-devel@alsa-project.org, Khem Raj List-Id: alsa-devel@alsa-project.org On Tue, 15 Sep 2015 17:48:02 +0200, Tanu Kaskinen wrote: > > From: Khem Raj > > cross compilers are passed via path may not be a gcc based cross > compiler in such cases this check fails and try's to force gcc based > cross compiler detection, This code is a convenience that limits the > build system > > Signed-off-by: Khem Raj Applied, thanks. Takashi > --- > configure.ac | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/configure.ac b/configure.ac > index a482b3e..a14e52d 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -27,20 +27,6 @@ AC_PREFIX_DEFAULT(/usr) > > dnl Checks for programs. > > -dnl try to gues cross-compiler if not set > -if test "x$host" != "x$build" -a -z "`echo $CC | grep -e '-gcc'`"; > -then > - AC_MSG_CHECKING(for cross-compiler) > - > - which ${program_prefix}gcc >/dev/null 2>&1 && CC=${program_prefix}gcc > - which ${host_cpu}-${host_os}-gcc >/dev/null 2>&1 \ > - && CC=${host_cpu}-${host_os}-gcc > - which ${host_cpu}-${host_vendor}-${host_os}-gcc >/dev/null 2>&1 \ > - && CC=${host_cpu}-${host_vendor}-${host_os}-gcc > - > - AC_MSG_RESULT($CC) > -fi > - > CFLAGS="$CFLAGS -D_GNU_SOURCE" > > > -- > 2.5.1 >