From patchwork Tue Oct 17 18:59:58 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: 116156 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp5235729qgn; Tue, 17 Oct 2017 12:01:47 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Qs528Nv9GYy0kQo2oEh4ZrlyvzHe0kGl8YaixDa8D7LrkPhiByDPRCh99YKwh3YLxaP1xD X-Received: by 10.107.183.73 with SMTP id h70mr18100912iof.76.1508266907786; Tue, 17 Oct 2017 12:01:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1508266907; cv=none; d=google.com; s=arc-20160816; b=ElkPL1+XWvp/SzGtDF/fiDcmt419PgNsP8NgbW2OHThy6IeBNr//2f3nasBFo1Jp3J ZIA7k4OzOdn1Zi9XXCoxEBvNqFbvs2ae5z3Zvl75li8Ceo/kcll4Nspny0gEFxJYtJHP mO28GfwQsTKHtjazmuN4YlkvF+y6jO/zekOJdD3tdkz84FP2gpzq/Q+oEphzX+fg0Hb6 84cEubeTVD6M8cynVz24Wz0ymtTyycUzFPn6GVMSVqccP3VqHApu0TGEhPTMp6rOXBQ6 AQvi9JIs7qu3ujML3680bnF6P8pT2t+Qn9Ra95BAM7MFhynckMSNoK/7GkQdZsJRqKO4 P+uw== 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=3Pv55zNSYXsZG3ESbgZek6CFJxuUN0fq2HJo3pwBdpU=; b=aHp9NS4Ddhw4zesvFh9TgEPV6ePQlEXroQIEtwuwZFzr4yUUetp8zdpzjpRQvpV4Pn Xzr4qZ66FtgYSG8Z2lub0If7wEuFmL6pvfLuI5+HrGGr+zAsdASWoMYRJbABuZsrNGUM J+5AHG7MBya7j1bfsRL8tRnxUM8c4f7tDWRnfOtPlmFoEqpAYOHJV7GWGP0gp/Ot1uUj a7+1WrokGTtbGK0x81l92bUs3D6jIIxDs7+xnfw9SPjQdH+e3JcwPob4Qw2rMFbObppI 9w57tzSGVYrDbj+GMbkX020q7jKFzW3rIOx49H9wbN7qsI+SQeJJKLhPjUlTsqoj77fk Ed+g== 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 m13si7637149iti.12.2017.10.17.12.01.46; Tue, 17 Oct 2017 12:01:47 -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 B576D62A79; Tue, 17 Oct 2017 19:01:46 +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 35234628C0; Tue, 17 Oct 2017 19:00:24 +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 1A719628C5; Tue, 17 Oct 2017 19:00:18 +0000 (UTC) Received: from forward103o.mail.yandex.net (forward103o.mail.yandex.net [37.140.190.177]) by lists.linaro.org (Postfix) with ESMTPS id C4701628AA for ; Tue, 17 Oct 2017 19:00:13 +0000 (UTC) Received: from mxback7g.mail.yandex.net (mxback7g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:168]) by forward103o.mail.yandex.net (Yandex) with ESMTP id 5A0325883380 for ; Tue, 17 Oct 2017 22:00:12 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback7g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 6thZ1jnqLD-0CkqtAnP; Tue, 17 Oct 2017 22:00:12 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id QgPN3KZgI2-0BuaecrK; Tue, 17 Oct 2017 22:00:11 +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: Tue, 17 Oct 2017 21:59:58 +0300 Message-Id: <1508266806-12588-3-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1508266806-12588-1-git-send-email-odpbot@yandex.ru> References: <1508266806-12588-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 235 Subject: [lng-odp] [PATCH v2 2/10] configure: use AC_CONFIG_COMMANDS_PRE to set conditionals 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 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: 9783e8a21510c37c97bc377ad9b5b2f83aa4b842 **/ configure.ac | 3 --- platform/linux-generic/m4/configure.m4 | 4 ++++ platform/linux-generic/m4/odp_netmap.m4 | 2 ++ platform/linux-generic/m4/odp_pcap.m4 | 4 +++- platform/linux-generic/m4/performance.m4 | 2 ++ 5 files changed, 11 insertions(+), 4 deletions(-) diff --git a/configure.ac b/configure.ac index 80bc3122a..fbf8fe2dd 100644 --- a/configure.ac +++ b/configure.ac @@ -162,9 +162,6 @@ AC_ARG_WITH([platform], AC_SUBST([with_platform]) -AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC], - [test "x$with_platform" = "xlinux-generic"]) - ########################################################################## # Run platform specific checks and settings ########################################################################## diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 7dc83bf87..68a270d89 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -11,6 +11,9 @@ m4_include([platform/linux-generic/m4/odp_schedule.m4]) m4_include([platform/linux-generic/m4/performance.m4]) +AC_CONFIG_COMMANDS_PRE([dnl +AM_CONDITIONAL([PLATFORM_IS_LINUX_GENERIC], + [test "${with_platform}" = "linux-generic"]) AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/libodp-linux.pc platform/linux-generic/include/odp/api/plat/static_inline.h @@ -21,3 +24,4 @@ AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/test/pktio_ipc/Makefile platform/linux-generic/test/ring/Makefile platform/linux-generic/test/performance/Makefile]) +]) diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4 index bd04824bb..e14a027f9 100644 --- a/platform/linux-generic/m4/odp_netmap.m4 +++ b/platform/linux-generic/m4/odp_netmap.m4 @@ -43,4 +43,6 @@ fi ########################################################################## CPPFLAGS=$OLD_CPPFLAGS +AC_CONFIG_COMMANDS_PRE([dnl AM_CONDITIONAL([netmap_support], [test x$netmap_support = xyes ]) +]) diff --git a/platform/linux-generic/m4/odp_pcap.m4 b/platform/linux-generic/m4/odp_pcap.m4 index 0b5b8a2e2..0a8f35186 100644 --- a/platform/linux-generic/m4/odp_pcap.m4 +++ b/platform/linux-generic/m4/odp_pcap.m4 @@ -15,4 +15,6 @@ fi AC_SUBST([PCAP_LIBS]) -AM_CONDITIONAL([HAVE_PCAP], [test $have_pcap = yes]) +AC_CONFIG_COMMANDS_PRE([dnl +AM_CONDITIONAL([HAVE_PCAP], [test x$have_pcap = xyes]) +]) diff --git a/platform/linux-generic/m4/performance.m4 b/platform/linux-generic/m4/performance.m4 index 05b3a9905..f2e7107c0 100644 --- a/platform/linux-generic/m4/performance.m4 +++ b/platform/linux-generic/m4/performance.m4 @@ -5,4 +5,6 @@ AC_ARG_ENABLE([test-perf-proc], [AS_HELP_STRING([--enable-test-perf-proc], [run test in test/performance in process mode])], [test_perf_proc=$enableval], [test_perf_proc=yes]) +AC_CONFIG_COMMANDS_PRE([dnl AM_CONDITIONAL([test_perf_proc], [test x$test_perf_proc = xyes ]) +])