From patchwork Thu Mar 14 15:25:19 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 15351 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 190DC23E10 for ; Thu, 14 Mar 2013 15:25:30 +0000 (UTC) Received: from mail-ve0-f172.google.com (mail-ve0-f172.google.com [209.85.128.172]) by fiordland.canonical.com (Postfix) with ESMTP id C8CE5A186C7 for ; Thu, 14 Mar 2013 15:25:29 +0000 (UTC) Received: by mail-ve0-f172.google.com with SMTP id cz11so1789096veb.31 for ; Thu, 14 Mar 2013 08:25:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=4jQkj943YRgOkIpGqr1W0i5+nEw8D9AJzXS8gvr5H3Q=; b=o+5D3fRD4U68eVHSaiXiodFieBDJ6EoepKhVQ88bYeHbPZpkolcr8qx+YkWO8rL9ZN Y6ZPnGo/O1ewkSQ/6rL+DjFkx+Jp9d9MYS0PghRjf1/GJcbJcEyy7v7Wlha86Xys3vNd zzWTAtYfOByesw61FIDBc+uywlwgdJJGO/UquVlVwDUBw1YlhBcDUI/m7RAvOAy4lrY1 M2LVsUprmzL/OYmSUVsRt/fUvGBTeXbLEZn3pU6LezELQlURY+eOsoFh6MM756ww8aVQ QQpcPPp2XNBwWcxyDRunMaBN4tWBGv7rn9RuI8oOfbh9LDjXV1zV95eWObUlIfPipOpe S1yg== X-Received: by 10.52.29.18 with SMTP id f18mr1876508vdh.57.1363274729214; Thu, 14 Mar 2013 08:25:29 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp77072veb; Thu, 14 Mar 2013 08:25:28 -0700 (PDT) X-Received: by 10.14.173.67 with SMTP id u43mr7934291eel.22.1363274723808; Thu, 14 Mar 2013 08:25:23 -0700 (PDT) Received: from mnementh.archaic.org.uk (1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.d.1.0.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:1d0::1]) by mx.google.com with ESMTPS id n8si5020575eeu.209.2013.03.14.08.25.22 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 14 Mar 2013 08:25:23 -0700 (PDT) Received-SPF: neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) client-ip=2001:8b0:1d0::1; Authentication-Results: mx.google.com; spf=neutral (google.com: 2001:8b0:1d0::1 is neither permitted nor denied by best guess record for domain of pm215@archaic.org.uk) smtp.mail=pm215@archaic.org.uk Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.72) (envelope-from ) id 1UGA1w-0005ry-3b; Thu, 14 Mar 2013 15:25:20 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Cc: patches@linaro.org, Paolo Bonzini Subject: [PATCH 2/3] configure: Move upper() up so it's available earlier Date: Thu, 14 Mar 2013 15:25:19 +0000 Message-Id: <1363274720-22535-3-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1363274720-22535-1-git-send-email-peter.maydell@linaro.org> References: <1363274720-22535-1-git-send-email-peter.maydell@linaro.org> X-Gm-Message-State: ALoCoQnP/jNkqLbGXnBbkQRgiKy6nwnjUh1otalrEVZd6slLCpg0xkxhhFC8IG0A/E8Ws5YFoP+m Move the definition of the upper() utility function up to the top of the script, so that it's available to any code that wants to use it. Signed-off-by: Peter Maydell --- configure | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configure b/configure index c674d39..d9dfde0 100755 --- a/configure +++ b/configure @@ -27,6 +27,10 @@ printf " '%s'" "$0" "$@" >> config.log echo >> config.log echo "#" >> config.log +upper() { + echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]' +} + error_exit() { echo echo "ERROR: $1" @@ -4055,10 +4059,6 @@ fi symlink "$source_path/Makefile.target" "$target_dir/Makefile" -upper() { - echo "$@"| LC_ALL=C tr '[a-z]' '[A-Z]' -} - case "$cpu" in i386|x86_64|ppc) # The TCG interpreter currently does not support ld/st optimization.