From patchwork Wed Jan 31 13:00:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 126331 Delivered-To: patch@linaro.org Received: by 10.80.172.228 with SMTP id x91csp1925166edc; Wed, 31 Jan 2018 05:08:41 -0800 (PST) X-Google-Smtp-Source: AH8x227mccIN2wNPtZPPcE8NVpVpCK7I/0BQBFdyny+wnbVL/0LBB9PPDXrMRPDRRH/C01jw6akY X-Received: by 10.37.113.8 with SMTP id m8mr21865461ybc.56.1517404121411; Wed, 31 Jan 2018 05:08:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517404121; cv=none; d=google.com; s=arc-20160816; b=PJ8LB+42nsXrLDLyTjqi9FfYE+h3dkLfDHiicHndkHILEs+P0p5phYiV9gDVNQ0JXb XA+SMIDIQwvUcqm4fCjhCegszoJdsjqlB0JTd2bJgSqGD7bOu5I1+rhzKRgouNXURF84 S1c8eBQrQUiQBF6x2jUUA3kmTN6zOlzplGSokE221AUPrZtoM3jmD3v3AFGoXjv72Szz qltVNo7bEgg2A9Bcj4aESCb0WUY75hvtWDdFCXRYXBhvcZmmDbNN5qhX5Vw05mcHL6Kx +BL9fCsMZ4vYzA5/jONLLBCmTaDz7YdDpvaLWIP/7OmmCPbWACK+FliraTAYl1So06bU To4A== 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=q0kIqWfgQjsCVXSS/2K30wLxiNF9xCnlN0wivzpr7bA=; b=yudKMOEkO9dPiPyDW0suFvrZy/tkPPV6fUuPvt1DcBnXDmx0ARAxCy1h3uYvLs73nI hsE8qHVtAA9zATTnxbCZb6Fgyn7aRWX8231ya6ZkmvXQmXy+NV+OAw7p+M4BWbLnPk5Z C3FAPdrJBJWVrZWueyHgM6s88zOJuoJ09e1U6WbVWqeB1mYMvsYIp06Aop/gSaFdmHUE jQCu1TAjtrj+AkINcKD21RoM97X9sCgUxwwNqyCa0ePSbPSE1SGdLuYYy4Ug9U0l8hEh dN0kxs0Rmo4N4mPh6jfLEI5/ezW86Gf7Oh+yTSCLs0EZOkgEZ6SPIdl5xwmXbxS3Sq0c 0rVQ== 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 u19si3185749ywh.93.2018.01.31.05.08.41; Wed, 31 Jan 2018 05:08:41 -0800 (PST) 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 0B75B61765; Wed, 31 Jan 2018 13:08: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_H2 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 6A9EE617B1; Wed, 31 Jan 2018 13:04:33 +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 1F0E5617C1; Wed, 31 Jan 2018 13:04:25 +0000 (UTC) Received: from forward100p.mail.yandex.net (forward100p.mail.yandex.net [77.88.28.100]) by lists.linaro.org (Postfix) with ESMTPS id 7327861765 for ; Wed, 31 Jan 2018 13:02:02 +0000 (UTC) Received: from mxback8o.mail.yandex.net (mxback8o.mail.yandex.net [IPv6:2a02:6b8:0:1a2d::22]) by forward100p.mail.yandex.net (Yandex) with ESMTP id 17F0A51052FD for ; Wed, 31 Jan 2018 16:00:14 +0300 (MSK) Received: from smtp1p.mail.yandex.net (smtp1p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:6]) by mxback8o.mail.yandex.net (nwsmtp/Yandex) with ESMTP id 8zjDSelXNo-0D9ajLQl; Wed, 31 Jan 2018 16:00:14 +0300 Received: by smtp1p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id vZ2onGHxam-0DhCXwlo; Wed, 31 Jan 2018 16:00:13 +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, 31 Jan 2018 16:00:08 +0300 Message-Id: <1517403609-12603-6-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> References: <1517403609-12603-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 440 Subject: [lng-odp] [PATCH v1 5/6] configure: move pthreads check to properly defined macro 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 440 (lumag:build-fixes) ** https://github.com/Linaro/odp/pull/440 ** Patch: https://github.com/Linaro/odp/pull/440.patch ** Base sha: b95ccd3db6eeb7358a877541747e06354429acdd ** Merge commit sha: 6f20299f993632a4dda987a31b37160d80c25279 **/ m4/odp_pthread.m4 | 7 +++++++ platform/linux-generic/m4/configure.m4 | 2 +- platform/linux-generic/m4/odp_pthread.m4 | 8 -------- 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 m4/odp_pthread.m4 delete mode 100644 platform/linux-generic/m4/odp_pthread.m4 diff --git a/m4/odp_pthread.m4 b/m4/odp_pthread.m4 new file mode 100644 index 000000000..f2654ac4e --- /dev/null +++ b/m4/odp_pthread.m4 @@ -0,0 +1,7 @@ +# ODP_PTHREAD +# ----------- +# Check for pthreads availability +AC_DEFUN([ODP_PTHREAD], [dnl +AX_PTHREAD([CC="$PTHREAD_CC"], + [AC_MSG_FAILURE([We require pthreads to be available])]) +]) diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 08ea1a338..7fa3652e2 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -3,7 +3,7 @@ IMPLEMENTATION_NAME="odp-linux" ODP_VISIBILITY ODP_ATOMIC -m4_include([platform/linux-generic/m4/odp_pthread.m4]) +ODP_PTHREAD ODP_TIMER ODP_OPENSSL m4_include([platform/linux-generic/m4/odp_pcap.m4]) diff --git a/platform/linux-generic/m4/odp_pthread.m4 b/platform/linux-generic/m4/odp_pthread.m4 deleted file mode 100644 index 486158942..000000000 --- a/platform/linux-generic/m4/odp_pthread.m4 +++ /dev/null @@ -1,8 +0,0 @@ -########################################################################## -# Check for pthreads availability -########################################################################## - -AX_PTHREAD([CC="$PTHREAD_CC"], [ - echo "Error! We require pthreads to be available" - exit -1 - ])