From patchwork Tue Aug 4 09:10:43 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 51908 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f199.google.com (mail-wi0-f199.google.com [209.85.212.199]) by patches.linaro.org (Postfix) with ESMTPS id 16FD822E8E for ; Tue, 4 Aug 2015 09:13:26 +0000 (UTC) Received: by wijp15 with SMTP id p15sf4069577wij.3 for ; Tue, 04 Aug 2015 02:13:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:subject:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :mime-version:content-type:content-transfer-encoding:errors-to :sender:x-original-sender:x-original-authentication-results :mailing-list; bh=5X26p2gv1X0Xl07bl/HFVEjLPDOjwatfnIEjopir4+E=; b=EbJbeFu2RLKRTwaZ+oVQ8zne1mEUrIoU83jDpH/Ch07UBHLEGJJLAiGyE3RrQvcSEM EOF/QZmr0qn05berhmZ3NJnbCb79PL92PIu5qzpBl8TfzDMoo+0R5kDPo61t+y0Lbpc4 axebL4mfuPHr5Pw7L2T6VnEfU0P1ZMlP9kH3YAlSvPwTvLKWuYy6jYbJwEJbjtCb5NZ1 3KtM92SDAqFSOLsUerQzMx5+/DafPIE8JrHmA6rO2q5SNSL6AfDLRAWa3ff7NoiBzel/ O0SNpsWbsKuaMtDLxogCZnB+CTqmfXqtNMa19huyYucTJRgVOJv4pmipQXGpIV/4iInE mYRw== X-Gm-Message-State: ALoCoQkgINQjAHdUt7fcrx7RxcUCr5R72Mj9b/HB3Avb6aWpiFQy9kqRz/SCMmP9/vYdBdkNUpuv X-Received: by 10.112.51.177 with SMTP id l17mr816921lbo.1.1438679605291; Tue, 04 Aug 2015 02:13:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.170.138 with SMTP id am10ls16181lac.67.gmail; Tue, 04 Aug 2015 02:13:24 -0700 (PDT) X-Received: by 10.152.170.234 with SMTP id ap10mr2260522lac.28.1438679604933; Tue, 04 Aug 2015 02:13:24 -0700 (PDT) Received: from mail-la0-f44.google.com (mail-la0-f44.google.com. [209.85.215.44]) by mx.google.com with ESMTPS id qd10si256466lbb.77.2015.08.04.02.13.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 04 Aug 2015 02:13:24 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) client-ip=209.85.215.44; Received: by labix3 with SMTP id ix3so2868912lab.0 for ; Tue, 04 Aug 2015 02:13:24 -0700 (PDT) X-Received: by 10.112.219.70 with SMTP id pm6mr2161562lbc.41.1438679604742; Tue, 04 Aug 2015 02:13:24 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp2304487lba; Tue, 4 Aug 2015 02:13:23 -0700 (PDT) X-Received: by 10.107.33.65 with SMTP id h62mr2696272ioh.11.1438679603105; Tue, 04 Aug 2015 02:13:23 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 140si1136807ioe.177.2015.08.04.02.13.22; Tue, 04 Aug 2015 02:13:23 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 27EE661F65; Tue, 4 Aug 2015 09:13:22 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 840BD61F6D; Tue, 4 Aug 2015 09:11:54 +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 F014D61F6D; Tue, 4 Aug 2015 09:11:49 +0000 (UTC) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by lists.linaro.org (Postfix) with ESMTPS id 6D4CE61F6F for ; Tue, 4 Aug 2015 09:11:00 +0000 (UTC) Received: by wibud3 with SMTP id ud3so14563132wib.0 for ; Tue, 04 Aug 2015 02:10:59 -0700 (PDT) X-Received: by 10.194.191.164 with SMTP id gz4mr5878861wjc.21.1438679459330; Tue, 04 Aug 2015 02:10:59 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id fo1sm1240153wib.24.2015.08.04.02.10.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Aug 2015 02:10:58 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 4 Aug 2015 12:10:43 +0300 Message-Id: <1438679443-3047-5-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1438679443-3047-1-git-send-email-maxim.uvarov@linaro.org> References: <1438679443-3047-1-git-send-email-maxim.uvarov@linaro.org> X-Topics: patch Subject: [lng-odp] [PATCH 4/4] linux-generic: move pthread checks inside linux-generic X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.44 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov --- configure.ac | 14 -------------- platform/linux-generic/m4/configure.m4 | 1 + platform/linux-generic/m4/odp_pthread.m4 | 13 +++++++++++++ 3 files changed, 14 insertions(+), 14 deletions(-) create mode 100644 platform/linux-generic/m4/odp_pthread.m4 diff --git a/configure.ac b/configure.ac index 0d246dc..7e4f6d3 100644 --- a/configure.ac +++ b/configure.ac @@ -202,18 +202,6 @@ AC_ARG_ENABLE([debug], ODP_CFLAGS="$ODP_CFLAGS -DODP_DEBUG=$ODP_DEBUG" ########################################################################## -# Check for pthreads availability -########################################################################## - -AX_PTHREAD([CC="$PTHREAD_CC"], [ - echo "Error! We require pthreads to be available" - exit -1 - ]) -LIBS="$PTHREAD_LIBS $LIBS" -AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" -AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS" - -########################################################################## # Check for doxygen availability ########################################################################## AC_CHECK_PROGS([DOXYGEN], [doxygen]) @@ -296,8 +284,6 @@ AC_SEARCH_LIBS([timer_create],[rt posix4]) ########################################################################## # distribute the changed variables among the Makefiles -AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt" - AC_SUBST([LIBS]) AC_SUBST([AM_CPPFLAGS]) AC_SUBST([CPPFLAGS]) diff --git a/platform/linux-generic/m4/configure.m4 b/platform/linux-generic/m4/configure.m4 index 22add4b..afdef7b 100644 --- a/platform/linux-generic/m4/configure.m4 +++ b/platform/linux-generic/m4/configure.m4 @@ -17,6 +17,7 @@ AC_LINK_IFELSE( exit -1) m4_include([platform/linux-generic/m4/odp_openssl.m4]) +m4_include([platform/linux-generic/m4/odp_pthread.m4]) AC_CONFIG_FILES([platform/linux-generic/Makefile platform/linux-generic/test/Makefile diff --git a/platform/linux-generic/m4/odp_pthread.m4 b/platform/linux-generic/m4/odp_pthread.m4 new file mode 100644 index 0000000..7f39103 --- /dev/null +++ b/platform/linux-generic/m4/odp_pthread.m4 @@ -0,0 +1,13 @@ +########################################################################## +# Check for pthreads availability +########################################################################## + +AX_PTHREAD([CC="$PTHREAD_CC"], [ + echo "Error! We require pthreads to be available" + exit -1 + ]) +LIBS="$PTHREAD_LIBS $LIBS" +AM_CFLAGS="$AM_CFLAGS $PTHREAD_CFLAGS" +AM_LDFLAGS="$AM_LDFLAGS $PTHREAD_LDFLAGS" + +AM_LDFLAGS="$AM_LDFLAGS -pthread -lrt"