From patchwork Tue Aug 22 10: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: 110639 Delivered-To: patch@linaro.org Received: by 10.182.109.195 with SMTP id hu3csp5103595obb; Tue, 22 Aug 2017 03:17:15 -0700 (PDT) X-Received: by 10.55.209.140 with SMTP id o12mr199502qkl.68.1503397035879; Tue, 22 Aug 2017 03:17:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1503397035; cv=none; d=google.com; s=arc-20160816; b=scEQWQo77BHVThYMayl3p3sEdZ0x4jve3DoA4uv7Mqkt+xlMHVOQgO8VMlBYGSu8Lv SVlihBMAtBvYOkNyGCbCYqkhrQIimgMFGxYsAnwi/vJp9Au1rXSCcadaJnXCLRS1gHT1 Vt3QkUZP6NOZA2SpdvG9sShkqDCljEJG/ITjX8N/LZP7/b4s8ovRQfgpeU4sIVigxVaC qGZxpfOB7sQ4fBlOP9KQPQLZMkIOyHA1MgQAaYxn8jXuyI+pj9UbFEP6lHLRCqBNuWgq H48G1UVkunqrGmEutsWjdQPn8Er2Vboq1qUC6KZhIdaFfJB2eJrU5S81mjV3CCTPL4t1 ac7g== 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=AojbbjjkpUjaQmx+K/Idw1AhbMlrqyhJ1Pw+zsuBz1w=; b=Jz6vz81Bei4BNHs7tWoS5Lcoa0UqVor1JLcevHf5VFsxCZDp9JOQKqvHTAy+PlZUWZ 3/Wy+Ur9L6GAG+sH3Kx4eBYKBvwWxpfPkFaVdPXu2HL9/sddxQil7wSRZnqXI3XHAXMf 4/4ApHNS88eQfC5d04pPf/tJkoyDWOwB+5veLTvfZ5/xfrGf9HeLf+08AcNJccfEGODo vk1yg9NiPQsEYgEFOir+uhnH1s66JD6lN9gbbA8PC3siPt5wV3ZdQj3ePYy4us+9qize yw/yK5nV6VIujFX9Zu1KkpR1v/avDQ3mmBA4XkUhciLAbaelFNXrM76XTsJF8BoTH67g 2SfQ== 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 u27si4218543qtk.228.2017.08.22.03.17.15; Tue, 22 Aug 2017 03:17:15 -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 85C5C60DBD; Tue, 22 Aug 2017 10:17:15 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, 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 50CF865BFF; Tue, 22 Aug 2017 10:02:05 +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 87C2E644C3; Tue, 22 Aug 2017 10:01:32 +0000 (UTC) Received: from forward105p.mail.yandex.net (forward105p.mail.yandex.net [77.88.28.108]) by lists.linaro.org (Postfix) with ESMTPS id 665D1644FC for ; Tue, 22 Aug 2017 10:00:27 +0000 (UTC) Received: from mxback3j.mail.yandex.net (mxback3j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10c]) by forward105p.mail.yandex.net (Yandex) with ESMTP id 2498540823C0 for ; Tue, 22 Aug 2017 13:00:26 +0300 (MSK) Received: from smtp1j.mail.yandex.net (smtp1j.mail.yandex.net [2a02:6b8:0:801::ab]) by mxback3j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id WoQdZiwN6T-0QDKRgbF; Tue, 22 Aug 2017 13:00:26 +0300 Received: by smtp1j.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id Rlal5nTP8B-0PfG0AGc; Tue, 22 Aug 2017 13:00:25 +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, 22 Aug 2017 13:00:00 +0300 Message-Id: <1503396009-8350-17-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> References: <1503396009-8350-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 127 Subject: [lng-odp] [PATCH v5 16/25] configure: AC_DEFINE(ODP_NETMAP) 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 Use Autoconf macros instead of defining macro by hand. Signed-off-by: Dmitry Eremin-Solenikov --- /** Email created from pull request 127 (lumag:improve-build) ** https://github.com/Linaro/odp/pull/127 ** Patch: https://github.com/Linaro/odp/pull/127.patch ** Base sha: aecb3c7a442b426761f1e6f43308a1e9ea709ef3 ** Merge commit sha: 86e036501e05c61e5570d0908af382a61c2d4e89 **/ platform/linux-generic/m4/odp_netmap.m4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/linux-generic/m4/odp_netmap.m4 b/platform/linux-generic/m4/odp_netmap.m4 index dea80626..bd04824b 100644 --- a/platform/linux-generic/m4/odp_netmap.m4 +++ b/platform/linux-generic/m4/odp_netmap.m4 @@ -31,7 +31,8 @@ if test x$netmap_support = xyes then AC_CHECK_HEADERS([net/netmap_user.h], [], [AC_MSG_FAILURE(["can't find netmap header"])]) - ODP_CFLAGS="$ODP_CFLAGS -DODP_NETMAP" + AC_DEFINE([ODP_NETMAP], [1], + [Define to 1 to enable netmap IO support]) AC_SUBST([NETMAP_CPPFLAGS]) else netmap_support=no