From patchwork Fri Oct 6 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: 115115 Delivered-To: patch@linaro.org Received: by 10.140.22.163 with SMTP id 32csp2128924qgn; Fri, 6 Oct 2017 12:04:40 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBntvtf4LJ0hj8lqfgo5/T9tlnV+DImlLScEahTFvVbIWqv+9PT88bg+ou0DF7kiA8C0cvX X-Received: by 10.107.183.19 with SMTP id h19mr3927071iof.218.1507316680037; Fri, 06 Oct 2017 12:04:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1507316680; cv=none; d=google.com; s=arc-20160816; b=qgtvRdx1F8wgn6mNOjWU8RX4nvXqDEEOTOjKxwflVj9DGGCcb4s1fMCQQdmQXmK3Gp 1FUIF8BmS5rXNnnZ4Vwz/7ymzAaATlBQ0HboyalV2W0P9qs1M7FGSgyJ+3QJsanLoDqr 9YWrwwj0dM7Jf8DvYs/yGMquTfxat4TAcT0Z0hLoRqbtonbE6Wj+Cjkyq26cqEAmgEbN SMEhSmY6LB9TWOzwPpXsAkLPenpm1pISMTOXyGfJ9qfW9aDceZaQ3uxQ/PW0bNYdgUbo VqYMW3JDJbCzHPiRLnW+2cpwZNy+bhIUwElF1oLPCIFmVSi2qo4qn9AXEXInSGP4uBSf dSJA== 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=FkQ5vElamUGKuuKO2JG71sPwGkUn7MfJy9MPGI+1OD0=; b=N/rPV3VHM7CWeT99bjHSz7I8W1iRNX84PzJJGWdaKz441w8zHLBUdSHXO5hbVVrS0F KooJniSlQAPv3Y4J8ux1okNGLMvQtCyf82V6iaZh7zpoEUUPUwxTdX1yBO5kOwQi69Rd ZAqSJYZUIiv6dsVdn2hBKEH+cNpleKVJsCu9TeaYN0AdVR1gB7ka7139pDci88JRAuIj zG+zNAwZiRdPJoxgSq5KdBHFteuvg2ELw7FLWOJd/p2DLlmXzj7lzeUeL27qr/1IbacT LxhJwtQ/JLpxfE7sl/vLtLykI6XKcvmOxVW36QqGV+ECaCZt9gOEwjWDnXCmXv58L+Zo 0Ymw== 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 p2si1736133iti.97.2017.10.06.12.04.39; Fri, 06 Oct 2017 12:04:40 -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 51E1C65C28; Fri, 6 Oct 2017 19:04:39 +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, RCVD_IN_DNSWL_NONE 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 0E69360749; Fri, 6 Oct 2017 19:01:41 +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 0216965BF2; Fri, 6 Oct 2017 19:01:37 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 06543659D2 for ; Fri, 6 Oct 2017 19:00:36 +0000 (UTC) Received: from mxback15g.mail.yandex.net (mxback15g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:94]) by forward102j.mail.yandex.net (Yandex) with ESMTP id A49785604807 for ; Fri, 6 Oct 2017 22:00:34 +0300 (MSK) Received: from smtp3o.mail.yandex.net (smtp3o.mail.yandex.net [2a02:6b8:0:1a2d::27]) by mxback15g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id iJt1RSLyP7-0SneTkxp; Fri, 06 Oct 2017 22:00:28 +0300 Received: by smtp3o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id d2nf8B3eVo-0Rte6L8w; Fri, 06 Oct 2017 22:00:28 +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: Fri, 6 Oct 2017 21:59:58 +0300 Message-Id: <1507316415-2144-4-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1507316415-2144-1-git-send-email-odpbot@yandex.ru> References: <1507316415-2144-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 213 Subject: [lng-odp] [PATCH v4 3/20] m4: move timer_create check to common place 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 213 (lumag:plat-def) ** https://github.com/Linaro/odp/pull/213 ** Patch: https://github.com/Linaro/odp/pull/213.patch ** Base sha: a63f25ff2994b2df78c24f1f8b63d0e06628eb68 ** Merge commit sha: d50e2e291ff11c1319e66c699d2f82260d59c383 **/ {platform/linux-generic/m4 => m4}/odp_timer.m4 | 7 +++++-- platform/linux-generic/m4/configure.m4 | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) rename {platform/linux-generic/m4 => m4}/odp_timer.m4 (63%) diff --git a/platform/linux-generic/m4/odp_timer.m4 b/m4/odp_timer.m4 similarity index 63% rename from platform/linux-generic/m4/odp_timer.m4 rename to m4/odp_timer.m4 index 3122c92b4..9a552f9ff 100644 --- a/platform/linux-generic/m4/odp_timer.m4 +++ b/m4/odp_timer.m4 @@ -1,8 +1,11 @@ +# ODP_TIMER([ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) ########################################################################## # Check for POSIX timer functions ########################################################################## - +AC_DEFUN([ODP_TIMER], [dnl AC_CHECK_LIB([rt], [timer_create], [TIMER_LIBS="-lrt"], [AC_CHECK_LIB([posix4], [timer_create], [TIMER_LIBS="-lposix4"], - [AC_MSG_FAILURE([timer_create not found])])]) + [m4_default([$2], [AC_MSG_FAILURE([timer_create not found])])])]) +m4_default([$1], [:]) AC_SUBST([TIMER_LIBS]) +]) # ODP_TIMER diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 63540c7eb..4d6ef49b9 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -75,7 +75,7 @@ fi AC_SUBST([ATOMIC_LIBS]) m4_include([platform/linux-generic/m4/odp_pthread.m4]) -m4_include([platform/linux-generic/m4/odp_timer.m4]) +ODP_TIMER ODP_OPENSSL m4_include([platform/linux-generic/m4/odp_pcap.m4]) m4_include([platform/linux-generic/m4/odp_netmap.m4])