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: 227703 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 48D682C00B6 for ; Fri, 15 Mar 2013 02:26:24 +1100 (EST) Received: from localhost ([::1]:60334 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGA2w-0003c1-FM for incoming@patchwork.ozlabs.org; Thu, 14 Mar 2013 11:26:22 -0400 Received: from eggs.gnu.org ([208.118.235.92]:59136) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGA2D-0003af-Ei for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UGA25-00033Z-Ff for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:37 -0400 Received: from 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]:32823 helo=mnementh.archaic.org.uk) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UGA25-00031s-A3 for qemu-devel@nongnu.org; Thu, 14 Mar 2013 11:25:29 -0400 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 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-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:8b0:1d0::1 Cc: Paolo Bonzini , patches@linaro.org Subject: [Qemu-devel] [PATCH 2/3] configure: Move upper() up so it's available earlier X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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.