From patchwork Fri May 12 00:00:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 99700 Delivered-To: patch@linaro.org Received: by 10.140.96.100 with SMTP id j91csp52329qge; Thu, 11 May 2017 17:01:27 -0700 (PDT) X-Received: by 10.55.69.67 with SMTP id s64mr1067463qka.221.1494547287676; Thu, 11 May 2017 17:01:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1494547287; cv=none; d=google.com; s=arc-20160816; b=ntTvX2cIyNH0GXbwJoTTNV/U4ZmWpmKwYHJ4+EPWG8FnqkWndO3FaLX523VLkOmwWA hrdKyElQEz8DOhVLh42icB51z3+kcIvwmlPspO759bO/2R/WFlnjRN9X9ar2opa/4ngc m7QHP/Ix66X8Zl4eRyT1Y6DRYOIx1Ks8Pt8FVr+XT1X7Xremyp5Pod1+Vr1uC1q1YG/j iagJDvkU8U86u6A1BrfE2RkNQj2/mWcjJJkVy/2V3CF3nxQwpUnRzhgPEg1khQIO+0sU 8uB5FL7HvVptwtOKvb1JxEO1Ix0hXTlnQDnRqh+7sqc4xwH3xmfRfAmCS67zNrhN4kNm 5TeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=Y0qLLouoOJlFDo3Ufkb+w6W6swCT84wvr6rbKgtEBAc=; b=MAypxlwqQOE2ifRDUiDl91puuwiegE6GElP41KxjH2joB1/r8DFr/Hinrma0OFOBFc LVjLgKqaSTgt+5pGP+qc+DjPT89w3iEPInT0RyDRX0bv4L7ekxyCVPAQaVE19sqgy2RS gQg76XoVPMauy4EpA+Yb7Obc7IU3xqWblz+ORXBTGeQYBawafwZ6SC261Z1vZ2fM/Q3C /zCHx45PFMX+aTWjIEe1z8McXVYrY+rofZ1BofXPKqrnxqLpzY4bRhGMZ0aTJa4JX22z GLn+U+JbHYP/VkheehWG7uWtIhO0CEGbK2jDJ8qg9HMLMdBDSqKB6RjNo5ZKeq6D20PA E0OQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f49si1571046qta.61.2017.05.11.17.01.27; Thu, 11 May 2017 17:01:27 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 3C67E60718; Fri, 12 May 2017 00:01:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 30B8A6071A; Fri, 12 May 2017 00:01:00 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id E4073606A0; Fri, 12 May 2017 00:00:56 +0000 (UTC) Received: from forward3o.cmail.yandex.net (forward3o.cmail.yandex.net [37.9.109.247]) by lists.linaro.org (Postfix) with ESMTPS id 2487360692 for ; Fri, 12 May 2017 00:00:55 +0000 (UTC) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [77.88.29.85]) by forward3o.cmail.yandex.net (Yandex) with ESMTP id B7D9020C0F for ; Fri, 12 May 2017 03:00:53 +0300 (MSK) Received: from smtp2p.mail.yandex.net (localhost.localdomain [127.0.0.1]) by smtp2p.mail.yandex.net (Yandex) with ESMTP id 7974F1A8004C for ; Fri, 12 May 2017 03:00:52 +0300 (MSK) Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id RSE9zcFeCz-0qnOiAuq; Fri, 12 May 2017 03:00:52 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) X-Yandex-Suid-Status: 1 0 From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 12 May 2017 03:00:05 +0300 Message-Id: <1494547205-26483-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494547205-26483-1-git-send-email-odpbot@yandex.ru> References: <1494547205-26483-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 29 Subject: [lng-odp] [PATCH v1 1/1] configure.ac: fix mcx16 vs clang check X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Dmitry Eremin-Solenikov Currently configure script outputs the following error on my sistem, because the syntax is far from being standard. Use standard case/esac instead. ./configure: line 23507: x86_64-pc-linux-gnu: command not found Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 29 (lumag:fix-mcx16) ** https://github.com/Linaro/odp/pull/29 ** Patch: https://github.com/Linaro/odp/pull/29.patch ** Base sha: 91f92891554b9c335e9f51f8ef574b74a37a11fb ** Merge commit sha: 50284f7c8db50fd9e15d6d5e5e3d8f2d47fc6792 **/ configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index d364b8d..7569ebe 100644 --- a/configure.ac +++ b/configure.ac @@ -306,7 +306,8 @@ ODP_CFLAGS="$ODP_CFLAGS $ODP_CFLAGS_EXTRA" ########################################################################## # Check if compiler supports cmpxchng16 on x86-based architectures ########################################################################## -if "${host}" == i?86* -o "${host}" == x86*; then +case "${host}" in + i?86? | x86*) if test "${CC}" != "gcc" -o ${CC_VERSION_MAJOR} -ge 5; then my_save_cflags="$CFLAGS" @@ -319,7 +320,8 @@ if "${host}" == i?86* -o "${host}" == x86*; then ) CFLAGS="$my_save_cflags" fi -fi + ;; +esac ########################################################################## # Default include setup