From patchwork Wed Oct 18 05:00:00 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: 116192 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5659120qgn; Tue, 17 Oct 2017 22:01:42 -0700 (PDT) X-Google-Smtp-Source: AOwi7QB14Bl+oohthEyRSypXn45hK5C3PvsFWfOtWK4bWBCQoQxftrtB5ezhvvEr3iNo2PyJOK1L X-Received: by 10.107.212.14 with SMTP id l14mr20980519iog.66.1508302902332; Tue, 17 Oct 2017 22:01:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508302902; cv=none; d=google.com; s=arc-20160816; b=H3qr1gvBX9hSOD2DboCu4zwBMH6A9oHV4wh6Wg3knxzq/DPl0CKcJCoQht3wwHEMZy PxDGKzFcmzNW0kSNOjILzxcBXizb5doJe+zgAWWW68oBAZhBYGD2q8VeMXI93k3Eoybe 00vaPc1Lzq19k3ti6Gek79RvO5u1iNpfzFz3jrL52Hp9IDRsqM6fKuao7/WxAmLUDN1T Htr0B6kOad53KuqzM3bNG/6xKg1GeK19IQcbqO3pX3/cdV5W9j+uGmmlvoV/u/9KYJa4 wQrnYZRx5X7MHbqwb+j/8Sv6Hre69toH9OHnFyocJr0yAhQpGVKtY6PzkWEPhSKP1luD 4z4w== 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=43tS51OfD+RHxEmrdYQEwlquykkN97FTfDQlsD2YU8w=; b=lfzqsOBcHAQ5+xcq+Qf5MFBYRxUDdIWJ6ctJcm5adrp/kD9KVylXeBc2FLbQKXYKFs lxl8WqG5YBRcKsTNACb5JJna2vBdgsmjbLzFgoCShYN9viQ7PnJVjissN4SaJN7xRPcc PcPNFDrAoOOMpfWRiWP8ysYR4U3wPVQjD96NnQvFHrd+1jIC+jT7jiE4FGpWlLCxe/mM oRSU6xclh0Zgdu2Yc/qqmIeVJoXETaVW0FZxJCP1Y+/2O1ZTxsA6vHHjGImTqtWQJxLs 5GyeWSTJqMA8KAV8p5FX8jBfFKSh0w9HmVd9Xe+gRJf+BTVhI/WOOy7mmsX4Bp70ZenD ErBQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 (ec2-54-197-127-237.compute-1.amazonaws.com. [54.197.127.237]) by mx.google.com with ESMTP id t64si7876712itd.67.2017.10.17.22.01.41; Tue, 17 Oct 2017 22:01:42 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 as permitted sender) client-ip=54.197.127.237; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.197.127.237 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 C416A62A8E; Wed, 18 Oct 2017 05:01:41 +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=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,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 4C708622E4; Wed, 18 Oct 2017 05:00:31 +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 EC05D622E4; Wed, 18 Oct 2017 05:00:20 +0000 (UTC) Received: from forward105o.mail.yandex.net (forward105o.mail.yandex.net [37.140.190.183]) by lists.linaro.org (Postfix) with ESMTPS id E931C62299 for ; Wed, 18 Oct 2017 05:00:17 +0000 (UTC) Received: from mxback2o.mail.yandex.net (mxback2o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::1c]) by forward105o.mail.yandex.net (Yandex) with ESMTP id 75149444461E for ; Wed, 18 Oct 2017 08:00:16 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback2o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id mseWm1lscr-0GxO2dlZ; Wed, 18 Oct 2017 08:00:16 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 27A3ttiSEF-0FN0FYUl; Wed, 18 Oct 2017 08:00:16 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Wed, 18 Oct 2017 08:00:00 +0300 Message-Id: <1508302806-20268-5-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508302806-20268-1-git-send-email-odpbot@yandex.ru> References: <1508302806-20268-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 235 Subject: [lng-odp] [PATCH v3 4/10] configure: cleanup per-platform if 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 Move setting IMPLEMENTATION_NAME to platform configure.m4. Use AS_IF instead of handcoded if. Use AC_MSG_ERROR instead of echo & exit. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 235 (lumag:plat-def-2) ** https://github.com/Linaro/odp/pull/235 ** Patch: https://github.com/Linaro/odp/pull/235.patch ** Base sha: ec0c3145fcafa09ae3a79875e7e07dd4794583cc ** Merge commit sha: c7d08f738718f049cece37227820be39f1274875 **/ configure.ac | 12 +++--------- platform/linux-generic/m4/configure.m4 | 2 ++ 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/configure.ac b/configure.ac index 442c85db4..c419df0f6 100644 --- a/configure.ac +++ b/configure.ac @@ -165,15 +165,9 @@ AC_SUBST([with_platform]) ########################################################################## # Run platform specific checks and settings ########################################################################## -IMPLEMENTATION_NAME="" -if test "${with_platform}" = "linux-generic"; -then - m4_include([./platform/linux-generic/m4/configure.m4]) - IMPLEMENTATION_NAME="odp-linux" -else - echo "UNSUPPORTED PLATFORM: ${with_platform}" - exit 1 -fi +AS_IF([test "${with_platform}" = "linux-generic"], + [m4_include([./platform/linux-generic/m4/configure.m4])], + [AC_MSG_ERROR([UNSUPPORTED PLATFORM: ${with_platform}])]) AC_DEFINE_UNQUOTED([IMPLEMENTATION_NAME], ["$IMPLEMENTATION_NAME"], [Define to the name of the implementation]) diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 68a270d89..5d7ad35a1 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -1,3 +1,5 @@ +IMPLEMENTATION_NAME="odp-linux" + ODP_VISIBILITY ODP_ATOMIC