From patchwork Wed Apr 1 20:12:07 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 46659 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 3FF322159A for ; Wed, 1 Apr 2015 20:12:24 +0000 (UTC) Received: by wgiv13 with SMTP id v13sf796948wgi.3 for ; Wed, 01 Apr 2015 13:12:23 -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=VOdBc0YLc2xweY+rN1dKbzWEVFrqLZk/eU3NL0SjGFo=; b=LNs77upOtAbC/n9NPQsJjzCAZFOv7RxwHUwISPQpw0lc5Rf5p/ARJKtQOYdw4wPI8s S+Tw0NPVLLaowsdhmo5YB9IZezR3vUGgYf+lCMMos4VlTigXoxMSmNbWpAweH2bQkQ9I NbebPtaeKQK5MEvVKuxFJNzwoMhLwDevVOvsdS2/OeyGYwv1JJvI1LVYTye8psWBj5Of OFwBe3D+AR2YWMhQjNa0Xm8/vdVmUHlSmITMkUVzf61fW+mP87tYJII2Uz1UkMzy7I1g DSbxbwLkYRLX4k8UbcSM3qGePsM1tg2H1c15Tsh4/Qaki2155a8IiVr7rACXgR84jnv0 t4QA== X-Gm-Message-State: ALoCoQm4BSnteA/kNBLBavWPJRNHSmE0OBk+FacH4gvi/BLf7nJ9B5FelGY9Ul43MUP9niz6H8cK X-Received: by 10.112.138.233 with SMTP id qt9mr3830603lbb.2.1427919143457; Wed, 01 Apr 2015 13:12:23 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.4 with SMTP id lc4ls118650lac.104.gmail; Wed, 01 Apr 2015 13:12:23 -0700 (PDT) X-Received: by 10.112.27.163 with SMTP id u3mr25978783lbg.75.1427919143308; Wed, 01 Apr 2015 13:12:23 -0700 (PDT) Received: from mail-la0-f43.google.com (mail-la0-f43.google.com. [209.85.215.43]) by mx.google.com with ESMTPS id x8si2442225lax.123.2015.04.01.13.12.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 13:12:23 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.43 as permitted sender) client-ip=209.85.215.43; Received: by labe2 with SMTP id e2so45406766lab.3 for ; Wed, 01 Apr 2015 13:12:23 -0700 (PDT) X-Received: by 10.152.29.68 with SMTP id i4mr37637091lah.19.1427919143084; Wed, 01 Apr 2015 13:12:23 -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.57.201 with SMTP id k9csp892211lbq; Wed, 1 Apr 2015 13:12:22 -0700 (PDT) X-Received: by 10.140.29.133 with SMTP id b5mr10098268qgb.3.1427919141151; Wed, 01 Apr 2015 13:12:21 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 137si2913310qhy.93.2015.04.01.13.12.20; Wed, 01 Apr 2015 13:12:21 -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: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id 7BA8765010; Wed, 1 Apr 2015 20:12:19 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: from mail-qg0-f49.google.com (mail-qg0-f49.google.com [209.85.192.49]) by lists.linaro.org (Postfix) with ESMTPS id 84C4261C6F for ; Wed, 1 Apr 2015 20:12:18 +0000 (UTC) Received: by qgh3 with SMTP id 3so52954064qgh.2 for ; Wed, 01 Apr 2015 13:12:18 -0700 (PDT) X-Received: by 10.229.28.9 with SMTP id k9mr59105679qcc.11.1427919138346; Wed, 01 Apr 2015 13:12:18 -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 z67sm1999853qgz.10.2015.04.01.13.12.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 13:12:17 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 1 Apr 2015 16:12:07 -0400 Message-Id: <1427919128-30737-2-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1427919128-30737-1-git-send-email-mike.holmes@linaro.org> References: <1427919128-30737-1-git-send-email-mike.holmes@linaro.org> X-Topics: Architecture patch Subject: [lng-odp] [PATCH 2/3] 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.215.43 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 --- 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}