From patchwork Mon Apr 6 19:34:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 46790 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f70.google.com (mail-wg0-f70.google.com [74.125.82.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 12FC8214BA for ; Mon, 6 Apr 2015 19:36:05 +0000 (UTC) Received: by wgtj4 with SMTP id j4sf8009957wgt.0 for ; Mon, 06 Apr 2015 12:36:04 -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: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=VOdBc0YLc2xweY+rN1dKbzWEVFrqLZk/eU3NL0SjGFo=; b=Vv7qzUMQ8ylNhDaIoOAsKzF17Z3k2LI0bJwH03VasBS+ylUlmq1wXAfimkHkm3Ck1u +6aDdf7JFUMq729nbWjqtfi7SWFYEf1PO3CQLcyPhyvJWrMbq+i9+HkQXsUOQ6KyYU7r 85git8GyTQNTq971hadUW6OtatmeLZkWq30QyQ0jELUgTSseuQUjJUM8B0q/KkYylt4V vu1K2eJZgfa7akSX3HLo9HpK9d4dQVEp2bHe+1TzQqHq2VxI5bejK0MFqlzqZNE74/8L 2p0O2KxTgDQb558qP4YvjJmY1PNIDE86QaWo6j8VfBV8OrexLJzGrFtJJWDOIbl86jPp 6uNg== X-Gm-Message-State: ALoCoQm78+XZfVoY1F371wml0v66oswn5/v1c3NzgtFUSOJ5XnyqKNYweLr/2tP/CUoKzsRLFfqO X-Received: by 10.112.17.105 with SMTP id n9mr3407104lbd.8.1428348964310; Mon, 06 Apr 2015 12:36:04 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.7.101 with SMTP id i5ls120853laa.58.gmail; Mon, 06 Apr 2015 12:36:04 -0700 (PDT) X-Received: by 10.152.27.166 with SMTP id u6mr14810671lag.94.1428348964161; Mon, 06 Apr 2015 12:36:04 -0700 (PDT) Received: from mail-lb0-f175.google.com (mail-lb0-f175.google.com. [209.85.217.175]) by mx.google.com with ESMTPS id w6si4255892lbj.46.2015.04.06.12.36.04 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Apr 2015 12:36:04 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.175 as permitted sender) client-ip=209.85.217.175; Received: by lbbqq2 with SMTP id qq2so18269918lbb.3 for ; Mon, 06 Apr 2015 12:36:04 -0700 (PDT) X-Received: by 10.152.5.72 with SMTP id q8mr14765515laq.73.1428348964012; Mon, 06 Apr 2015 12:36:04 -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.67.65 with SMTP id l1csp12117lbt; Mon, 6 Apr 2015 12:36:03 -0700 (PDT) X-Received: by 10.55.55.148 with SMTP id e142mr31623451qka.42.1428348961940; Mon, 06 Apr 2015 12:36:01 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id n33si3002553qkh.21.2015.04.06.12.36.01; Mon, 06 Apr 2015 12:36:01 -0700 (PDT) Received-SPF: none (google.com: lng-odp-bounces@lists.linaro.org does not designate permitted sender hosts) client-ip=54.225.227.206; Received: by lists.linaro.org (Postfix, from userid 109) id 01C4064DFE; Mon, 6 Apr 2015 19:36:01 +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=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=unavailable autolearn_force=no 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 67B5A64EC3; Mon, 6 Apr 2015 19:35:30 +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 F0A1864DF6; Mon, 6 Apr 2015 19:35:27 +0000 (UTC) Received: from mail-qk0-f182.google.com (mail-qk0-f182.google.com [209.85.220.182]) by lists.linaro.org (Postfix) with ESMTPS id 577CE64DF6 for ; Mon, 6 Apr 2015 19:35:17 +0000 (UTC) Received: by qku63 with SMTP id 63so30559655qku.3 for ; Mon, 06 Apr 2015 12:35:17 -0700 (PDT) X-Received: by 10.55.22.194 with SMTP id 63mr31873919qkw.3.1428348917094; Mon, 06 Apr 2015 12:35:17 -0700 (PDT) Received: from mike-desktop.?.holmesfamily.ws (c-98-221-136-245.hsd1.nj.comcast.net. [98.221.136.245]) by mx.google.com with ESMTPSA id m49sm3850734qgd.44.2015.04.06.12.35.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 06 Apr 2015 12:35:16 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Mon, 6 Apr 2015 15:34:58 -0400 Message-Id: <1428348899-22253-1-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 X-Topics: Architecture patch Subject: [lng-odp] [PATCH v2 1/2] configure: add ARCH optimisation support by directory 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: mike.holmes@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.217.175 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: Mike Holmes Reviewed-by: Anders Roxell --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/configure.ac b/configure.ac index 57054c5..f14648c 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,16 @@ AC_TYPE_UINT32_T AC_TYPE_UINT64_T ########################################################################## +# Which archetecture optimizations will we use +########################################################################## +AS_CASE([$host], + [x86*], [ARCH=x86], + [mips64*], [ARCH=mips64], + [ARCH=linux] +) +AC_SUBST([ARCH]) + +########################################################################## # Set correct platform library version ########################################################################## AGE=0 @@ -286,6 +296,7 @@ AC_MSG_RESULT([ Library version: ${ODP_LIBSO_VERSION} + arch ${ARCH} with_platform: ${with_platform} prefix: ${prefix} sysconfdir: ${sysconfdir}