From: Takashi Iwai Subject: Re: [PATCH alsa-utils] build: Do not try to detect cross-compiler Date: Thu, 08 Oct 2015 19:14:15 +0200 Message-ID: References: <1444320845-3691-1-git-send-email-vapier@gentoo.org> 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 5CC4D264F31 for ; Thu, 8 Oct 2015 19:14:08 +0200 (CEST) In-Reply-To: <1444320845-3691-1-git-send-email-vapier@gentoo.org> 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: Mike Frysinger Cc: alsa-devel@alsa-project.org, raj.khem@gmail.com List-Id: alsa-devel@alsa-project.org On Thu, 08 Oct 2015 18:14:05 +0200, Mike Frysinger wrote: > > From: Mike Frysinger > > 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: Mike Frysinger > --- > Note: this is the same fix that landed in alsa-lib. Applied, thanks. Takashi > > configure.ac | 14 -------------- > 1 file changed, 14 deletions(-) > > diff --git a/configure.ac b/configure.ac > index 8c2d1a5..79a9aaf 100644 > --- a/configure.ac > +++ b/configure.ac > @@ -12,20 +12,6 @@ AM_GNU_GETTEXT_VERSION([0.15]) > > dnl Checks for programs. > > -dnl try to gues cross-compiler if not set > -if test "x$target" != "x$host" -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 ${target_cpu}-${target_os}-gcc >/dev/null 2>&1 \ > - && CC=${target_cpu}-${target-os}-gcc > - which ${target_cpu}-${target_vendor}-${target_os}-gcc >/dev/null 2>&1 \ > - && CC=${target_cpu}-${target_vendor}-${target_os}-gcc > - > - AC_MSG_RESULT($CC) > -fi > - > AC_PROG_CC > dnl AC_PROG_CXX > AC_PROG_INSTALL > -- > 2.5.2 >