From patchwork Tue Sep 15 15:48:02 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tanu Kaskinen X-Patchwork-Id: 7187601 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 597DE9F336 for ; Tue, 15 Sep 2015 15:49:37 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8B4562054E for ; Tue, 15 Sep 2015 15:49:36 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 64702204D9 for ; Tue, 15 Sep 2015 15:49:32 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id E98162604AA; Tue, 15 Sep 2015 17:49:30 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 95B68260418; Tue, 15 Sep 2015 17:49:22 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1027F260438; Tue, 15 Sep 2015 17:49:21 +0200 (CEST) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) by alsa0.perex.cz (Postfix) with ESMTP id CF63A2602F1 for ; Tue, 15 Sep 2015 17:49:15 +0200 (CEST) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id 0871723582 for ; Tue, 15 Sep 2015 11:49:15 -0400 (EDT) Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Tue, 15 Sep 2015 11:49:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:date:from:message-id:subject:to :x-sasl-enc:x-sasl-enc; s=smtpout; bh=JoN0DE0r4RvLgH27xF3gQUyH4t k=; b=JD/L+Um1S0sD7MX05RXTqzbkyWU5qvncaLS1GKXg6sYaIiyuqAcxxl9Q/Q 4nWv+/XKqLwE82wupTm4G8f+k4zrMwlcI8aPMSM64SZFSfswpPCcWmi5tHd+LKQJ 9yakLBIybza24ChfPYWcxC6tBXPOVNYpuRLJ/i15nFDh/9A90= X-Sasl-enc: A3kdnAeM/K3rKX6EFTRrExHyLr7Cqx912Rh9LG86RyBL 1442332154 Received: from laptop.tanuk.dy.fi (a88-114-110-232.elisa-laajakaista.fi [88.114.110.232]) by mail.messagingengine.com (Postfix) with ESMTPA id 61E24C00025; Tue, 15 Sep 2015 11:49:14 -0400 (EDT) From: Tanu Kaskinen To: alsa-devel@alsa-project.org Date: Tue, 15 Sep 2015 18:48:02 +0300 Message-Id: <1442332082-18220-1-git-send-email-tanuk@iki.fi> X-Mailer: git-send-email 2.5.1 Cc: Takashi Iwai , Khem Raj Subject: [alsa-devel] [PATCH alsa-lib] build: Do not try to detect cross-compiler X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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"