From patchwork Wed Apr 1 20:02:52 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Holmes X-Patchwork-Id: 47089 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f200.google.com (mail-wi0-f200.google.com [209.85.212.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C19B621416 for ; Sat, 11 Apr 2015 10:06:00 +0000 (UTC) Received: by wixv7 with SMTP id v7sf3981364wix.0 for ; Sat, 11 Apr 2015 03:06:00 -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=FpWpatBHA0b9ilurtEVIh9k/Swfl4hjVIE+qlM9zhbKh/vMDcNhwMIcMi7FdKNdj5P kWoCs4SgofzEU+3ggTMWpLEw6XvBqjackhPDP6XcP8n4qMrvx3k1263xtae4tvEi9Iym Ti9AWptL1eqZ+q801e/VFSodebf1yrzBW2wHsMnQ34zTT1RxqxigSnNeyh7x/QDOVPUv Ssojp/1nXlZglal7bv0pR6iPy4vr/IzKj1gg1bIdCYBDQMXLCwQj+CDdq1k9RQP+WUUB j1PHaZXTZ2q0uG4NEEm+ZvrX8NoNjMNf5rz7h7EkSWtPGqanUUmzIMoWMUkmkK6+v+7r GuYg== X-Gm-Message-State: ALoCoQmkuaEjIcfTDZfyn+Ntd85Z/MHdKqVaJW5YXzy/HFATiRsWl04VjrJ+GzyKM6252BySd4OI X-Received: by 10.152.163.99 with SMTP id yh3mr933653lab.8.1428746760065; Sat, 11 Apr 2015 03:06:00 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.205.70 with SMTP id le6ls544210lac.50.gmail; Sat, 11 Apr 2015 03:05:59 -0700 (PDT) X-Received: by 10.112.202.234 with SMTP id kl10mr1760305lbc.51.1428746759774; Sat, 11 Apr 2015 03:05:59 -0700 (PDT) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com. [209.85.217.171]) by mx.google.com with ESMTPS id x6si3517784lal.29.2015.04.11.03.05.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 11 Apr 2015 03:05:59 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.171 as permitted sender) client-ip=209.85.217.171; Received: by lbbuc2 with SMTP id uc2so29221302lbb.2 for ; Sat, 11 Apr 2015 03:05:59 -0700 (PDT) X-Received: by 10.112.163.168 with SMTP id yj8mr4606849lbb.36.1428746759507; Sat, 11 Apr 2015 03:05:59 -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 l1csp234843lbt; Sat, 11 Apr 2015 03:05:58 -0700 (PDT) X-Received: by 10.140.49.11 with SMTP id p11mr6573520qga.60.1428746758319; Sat, 11 Apr 2015 03:05:58 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id u16si4359241qge.116.2015.04.11.03.05.57; Sat, 11 Apr 2015 03:05:58 -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 6BFAD61C88; Sat, 11 Apr 2015 10:05:57 +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_H2, 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 32A8865165; Sat, 11 Apr 2015 09:52:24 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com [209.85.192.46]) by lists.linaro.org (Postfix) with ESMTPS id CF14364FF3 for ; Wed, 1 Apr 2015 20:03:02 +0000 (UTC) Received: by qgep97 with SMTP id p97so52753534qge.1 for ; Wed, 01 Apr 2015 13:03:02 -0700 (PDT) X-Received: by 10.229.202.136 with SMTP id fe8mr59074249qcb.26.1427918582576; Wed, 01 Apr 2015 13:03:02 -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 186sm1974503qhd.11.2015.04.01.13.03.01 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 13:03:02 -0700 (PDT) From: Mike Holmes To: lng-odp@lists.linaro.org Date: Wed, 1 Apr 2015 16:02:52 -0400 Message-Id: <1427918573-30596-2-git-send-email-mike.holmes@linaro.org> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1427918573-30596-1-git-send-email-mike.holmes@linaro.org> References: <1427918573-30596-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.217.171 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}