1984ee7
--- fastjar-0.97/config.guess
1984ee7
+++ fastjar-0.97/config.guess
1984ee7
@@ -1,10 +1,10 @@
1984ee7
 #! /bin/sh
1984ee7
 # Attempt to guess a canonical system name.
1984ee7
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1984ee7
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1984ee7
-#   Free Software Foundation, Inc.
1984ee7
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1984ee7
+#   2011, 2012 Free Software Foundation, Inc.
1984ee7
 
1984ee7
-timestamp='2008-01-23'
1984ee7
+timestamp='2012-06-10'
1984ee7
 
1984ee7
 # This file is free software; you can redistribute it and/or modify it
1984ee7
 # under the terms of the GNU General Public License as published by
1984ee7
@@ -17,9 +17,7 @@ timestamp='2008-01-23'
1984ee7
 # General Public License for more details.
1984ee7
 #
1984ee7
 # You should have received a copy of the GNU General Public License
1984ee7
-# along with this program; if not, write to the Free Software
1984ee7
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1984ee7
-# 02110-1301, USA.
1984ee7
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
1984ee7
 #
1984ee7
 # As a special exception to the GNU General Public License, if you
1984ee7
 # distribute this file as part of a program that contains a
1984ee7
@@ -27,16 +25,16 @@ timestamp='2008-01-23'
1984ee7
 # the same distribution terms that you use for the rest of that program.
1984ee7
 
1984ee7
 
1984ee7
-# Originally written by Per Bothner <per@bothner.com>.
1984ee7
-# Please send patches to <config-patches@gnu.org>.  Submit a context
1984ee7
-# diff and a properly formatted ChangeLog entry.
1984ee7
+# Originally written by Per Bothner.  Please send patches (context
1984ee7
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
1984ee7
+# entry.
1984ee7
 #
1984ee7
 # This script attempts to guess a canonical system name similar to
1984ee7
 # config.sub.  If it succeeds, it prints the system name on stdout, and
1984ee7
 # exits with 0.  Otherwise, it exits with 1.
1984ee7
 #
1984ee7
-# The plan is that this can be called by configure scripts if you
1984ee7
-# don't specify an explicit build system type.
1984ee7
+# You can get the latest version of this script from:
1984ee7
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1984ee7
 
1984ee7
 me=`echo "$0" | sed -e 's,.*/,,'`
1984ee7
 
1984ee7
@@ -56,8 +54,9 @@ version="\
1984ee7
 GNU config.guess ($timestamp)
1984ee7
 
1984ee7
 Originally written by Per Bothner.
1984ee7
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1984ee7
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1984ee7
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1984ee7
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
1984ee7
+Free Software Foundation, Inc.
1984ee7
 
1984ee7
 This is free software; see the source for copying conditions.  There is NO
1984ee7
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1984ee7
@@ -144,7 +143,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
1984ee7
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
     *:NetBSD:*:*)
1984ee7
 	# NetBSD (nbsd) targets should (where applicable) match one or
1984ee7
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
1984ee7
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
1984ee7
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
1984ee7
 	# switched to ELF, *-*-netbsd* would select the old
1984ee7
 	# object file format.  This provides both forward
1984ee7
@@ -170,7 +169,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1984ee7
 		eval $set_cc_for_build
1984ee7
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1984ee7
-			| grep __ELF__ >/dev/null
1984ee7
+			| grep -q __ELF__
1984ee7
 		then
1984ee7
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
1984ee7
 		    # Return netbsd for either.  FIX?
1984ee7
@@ -180,7 +179,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 		fi
1984ee7
 		;;
1984ee7
 	    *)
1984ee7
-	        os=netbsd
1984ee7
+		os=netbsd
1984ee7
 		;;
1984ee7
 	esac
1984ee7
 	# The OS release
1984ee7
@@ -223,7 +222,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
1984ee7
 		;;
1984ee7
 	*5.*)
1984ee7
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
1984ee7
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
1984ee7
 		;;
1984ee7
 	esac
1984ee7
 	# According to Compaq, /usr/sbin/psrinfo has been available on
1984ee7
@@ -269,7 +268,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 	# A Xn.n version is an unreleased experimental baselevel.
1984ee7
 	# 1.2 uses "1.2" for uname -r.
1984ee7
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1984ee7
-	exit ;;
1984ee7
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
1984ee7
+	exitcode=$?
1984ee7
+	trap '' 0
1984ee7
+	exit $exitcode ;;
1984ee7
     Alpha\ *:Windows_NT*:*)
1984ee7
 	# How do we know it's Interix rather than the generic POSIX subsystem?
1984ee7
 	# Should we change UNAME_MACHINE based on the output of uname instead
1984ee7
@@ -295,7 +297,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 	echo s390-ibm-zvmoe
1984ee7
 	exit ;;
1984ee7
     *:OS400:*:*)
1984ee7
-        echo powerpc-ibm-os400
1984ee7
+	echo powerpc-ibm-os400
1984ee7
 	exit ;;
1984ee7
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
1984ee7
 	echo arm-acorn-riscix${UNAME_RELEASE}
1984ee7
@@ -324,14 +326,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
 	case `/usr/bin/uname -p` in
1984ee7
 	    sparc) echo sparc-icl-nx7; exit ;;
1984ee7
 	esac ;;
1984ee7
+    s390x:SunOS:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1984ee7
+	exit ;;
1984ee7
     sun4H:SunOS:5.*:*)
1984ee7
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1984ee7
 	exit ;;
1984ee7
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
1984ee7
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1984ee7
 	exit ;;
1984ee7
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
1984ee7
+	echo i386-pc-auroraux${UNAME_RELEASE}
1984ee7
+	exit ;;
1984ee7
     i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
1984ee7
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1984ee7
+	eval $set_cc_for_build
1984ee7
+	SUN_ARCH="i386"
1984ee7
+	# If there is a compiler, see if it is configured for 64-bit objects.
1984ee7
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
1984ee7
+	# This test works for both compilers.
1984ee7
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1984ee7
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
1984ee7
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1984ee7
+		grep IS_64BIT_ARCH >/dev/null
1984ee7
+	    then
1984ee7
+		SUN_ARCH="x86_64"
1984ee7
+	    fi
1984ee7
+	fi
1984ee7
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
1984ee7
 	exit ;;
1984ee7
     sun4*:SunOS:6*:*)
1984ee7
 	# According to config.sub, this is the proper way to canonicalize
1984ee7
@@ -375,23 +396,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1984ee7
     # MiNT.  But MiNT is downward compatible to TOS, so this should
1984ee7
     # be no problem.
1984ee7
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
1984ee7
-        echo m68k-atari-mint${UNAME_RELEASE}
1984ee7
+	echo m68k-atari-mint${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
1984ee7
 	echo m68k-atari-mint${UNAME_RELEASE}
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
1984ee7
-        echo m68k-atari-mint${UNAME_RELEASE}
1984ee7
+	echo m68k-atari-mint${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
1984ee7
-        echo m68k-milan-mint${UNAME_RELEASE}
1984ee7
-        exit ;;
1984ee7
+	echo m68k-milan-mint${UNAME_RELEASE}
1984ee7
+	exit ;;
1984ee7
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
1984ee7
-        echo m68k-hades-mint${UNAME_RELEASE}
1984ee7
-        exit ;;
1984ee7
+	echo m68k-hades-mint${UNAME_RELEASE}
1984ee7
+	exit ;;
1984ee7
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
1984ee7
-        echo m68k-unknown-mint${UNAME_RELEASE}
1984ee7
-        exit ;;
1984ee7
+	echo m68k-unknown-mint${UNAME_RELEASE}
1984ee7
+	exit ;;
1984ee7
     m68k:machten:*:*)
1984ee7
 	echo m68k-apple-machten${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
@@ -461,8 +482,8 @@ EOF
1984ee7
 	echo m88k-motorola-sysv3
1984ee7
 	exit ;;
1984ee7
     AViiON:dgux:*:*)
1984ee7
-        # DG/UX returns AViiON for all architectures
1984ee7
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
1984ee7
+	# DG/UX returns AViiON for all architectures
1984ee7
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
1984ee7
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
1984ee7
 	then
1984ee7
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
1984ee7
@@ -475,7 +496,7 @@ EOF
1984ee7
 	else
1984ee7
 	    echo i586-dg-dgux${UNAME_RELEASE}
1984ee7
 	fi
1984ee7
- 	exit ;;
1984ee7
+	exit ;;
1984ee7
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
1984ee7
 	echo m88k-dolphin-sysv3
1984ee7
 	exit ;;
1984ee7
@@ -532,7 +553,7 @@ EOF
1984ee7
 		echo rs6000-ibm-aix3.2
1984ee7
 	fi
1984ee7
 	exit ;;
1984ee7
-    *:AIX:*:[456])
1984ee7
+    *:AIX:*:[4567])
1984ee7
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
1984ee7
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
1984ee7
 		IBM_ARCH=rs6000
1984ee7
@@ -575,52 +596,52 @@ EOF
1984ee7
 	    9000/[678][0-9][0-9])
1984ee7
 		if [ -x /usr/bin/getconf ]; then
1984ee7
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1984ee7
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
1984ee7
-                    case "${sc_cpu_version}" in
1984ee7
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
1984ee7
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
1984ee7
-                      532)                      # CPU_PA_RISC2_0
1984ee7
-                        case "${sc_kernel_bits}" in
1984ee7
-                          32) HP_ARCH="hppa2.0n" ;;
1984ee7
-                          64) HP_ARCH="hppa2.0w" ;;
1984ee7
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
1984ee7
+		    case "${sc_cpu_version}" in
1984ee7
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
1984ee7
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
1984ee7
+		      532)                      # CPU_PA_RISC2_0
1984ee7
+			case "${sc_kernel_bits}" in
1984ee7
+			  32) HP_ARCH="hppa2.0n" ;;
1984ee7
+			  64) HP_ARCH="hppa2.0w" ;;
1984ee7
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
1984ee7
-                        esac ;;
1984ee7
-                    esac
1984ee7
+			esac ;;
1984ee7
+		    esac
1984ee7
 		fi
1984ee7
 		if [ "${HP_ARCH}" = "" ]; then
1984ee7
 		    eval $set_cc_for_build
1984ee7
-		    sed 's/^              //' << EOF >$dummy.c
1984ee7
+		    sed 's/^		//' << EOF >$dummy.c
1984ee7
 
1984ee7
-              #define _HPUX_SOURCE
1984ee7
-              #include <stdlib.h>
1984ee7
-              #include <unistd.h>
1984ee7
+		#define _HPUX_SOURCE
1984ee7
+		#include <stdlib.h>
1984ee7
+		#include <unistd.h>
1984ee7
 
1984ee7
-              int main ()
1984ee7
-              {
1984ee7
-              #if defined(_SC_KERNEL_BITS)
1984ee7
-                  long bits = sysconf(_SC_KERNEL_BITS);
1984ee7
-              #endif
1984ee7
-                  long cpu  = sysconf (_SC_CPU_VERSION);
1984ee7
+		int main ()
1984ee7
+		{
1984ee7
+		#if defined(_SC_KERNEL_BITS)
1984ee7
+		    long bits = sysconf(_SC_KERNEL_BITS);
1984ee7
+		#endif
1984ee7
+		    long cpu  = sysconf (_SC_CPU_VERSION);
1984ee7
 
1984ee7
-                  switch (cpu)
1984ee7
-              	{
1984ee7
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
1984ee7
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
1984ee7
-              	case CPU_PA_RISC2_0:
1984ee7
-              #if defined(_SC_KERNEL_BITS)
1984ee7
-              	    switch (bits)
1984ee7
-              		{
1984ee7
-              		case 64: puts ("hppa2.0w"); break;
1984ee7
-              		case 32: puts ("hppa2.0n"); break;
1984ee7
-              		default: puts ("hppa2.0"); break;
1984ee7
-              		} break;
1984ee7
-              #else  /* !defined(_SC_KERNEL_BITS) */
1984ee7
-              	    puts ("hppa2.0"); break;
1984ee7
-              #endif
1984ee7
-              	default: puts ("hppa1.0"); break;
1984ee7
-              	}
1984ee7
-                  exit (0);
1984ee7
-              }
1984ee7
+		    switch (cpu)
1984ee7
+			{
1984ee7
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
1984ee7
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
1984ee7
+			case CPU_PA_RISC2_0:
1984ee7
+		#if defined(_SC_KERNEL_BITS)
1984ee7
+			    switch (bits)
1984ee7
+				{
1984ee7
+				case 64: puts ("hppa2.0w"); break;
1984ee7
+				case 32: puts ("hppa2.0n"); break;
1984ee7
+				default: puts ("hppa2.0"); break;
1984ee7
+				} break;
1984ee7
+		#else  /* !defined(_SC_KERNEL_BITS) */
1984ee7
+			    puts ("hppa2.0"); break;
1984ee7
+		#endif
1984ee7
+			default: puts ("hppa1.0"); break;
1984ee7
+			}
1984ee7
+		    exit (0);
1984ee7
+		}
1984ee7
 EOF
1984ee7
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
1984ee7
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
1984ee7
@@ -640,7 +661,7 @@ EOF
1984ee7
 	    # => hppa64-hp-hpux11.23
1984ee7
 
1984ee7
 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
1984ee7
-		grep __LP64__ >/dev/null
1984ee7
+		grep -q __LP64__
1984ee7
 	    then
1984ee7
 		HP_ARCH="hppa2.0w"
1984ee7
 	    else
1984ee7
@@ -711,22 +732,22 @@ EOF
1984ee7
 	exit ;;
1984ee7
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
1984ee7
 	echo c1-convex-bsd
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
1984ee7
 	if getsysinfo -f scalar_acc
1984ee7
 	then echo c32-convex-bsd
1984ee7
 	else echo c2-convex-bsd
1984ee7
 	fi
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
1984ee7
 	echo c34-convex-bsd
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
1984ee7
 	echo c38-convex-bsd
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
1984ee7
 	echo c4-convex-bsd
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     CRAY*Y-MP:*:*:*)
1984ee7
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1984ee7
 	exit ;;
1984ee7
@@ -750,14 +771,14 @@ EOF
1984ee7
 	exit ;;
1984ee7
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
1984ee7
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
1984ee7
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1984ee7
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
1984ee7
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1984ee7
-        exit ;;
1984ee7
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1984ee7
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
1984ee7
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1984ee7
+	exit ;;
1984ee7
     5000:UNIX_System_V:4.*:*)
1984ee7
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1984ee7
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
1984ee7
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1984ee7
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1984ee7
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
1984ee7
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1984ee7
 	exit ;;
1984ee7
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
1984ee7
@@ -769,13 +790,12 @@ EOF
1984ee7
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     *:FreeBSD:*:*)
1984ee7
-	case ${UNAME_MACHINE} in
1984ee7
-	    pc98)
1984ee7
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1984ee7
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
1984ee7
+	case ${UNAME_PROCESSOR} in
1984ee7
 	    amd64)
1984ee7
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1984ee7
 	    *)
1984ee7
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1984ee7
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
1984ee7
 	esac
1984ee7
 	exit ;;
1984ee7
     i*:CYGWIN*:*)
1984ee7
@@ -784,19 +804,22 @@ EOF
1984ee7
     *:MINGW*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-mingw32
1984ee7
 	exit ;;
1984ee7
+    i*:MSYS*:*)
1984ee7
+	echo ${UNAME_MACHINE}-pc-msys
1984ee7
+	exit ;;
1984ee7
     i*:windows32*:*)
1984ee7
-    	# uname -m includes "-pc" on this system.
1984ee7
-    	echo ${UNAME_MACHINE}-mingw32
1984ee7
+	# uname -m includes "-pc" on this system.
1984ee7
+	echo ${UNAME_MACHINE}-mingw32
1984ee7
 	exit ;;
1984ee7
     i*:PW*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-pw32
1984ee7
 	exit ;;
1984ee7
-    *:Interix*:[3456]*)
1984ee7
-    	case ${UNAME_MACHINE} in
1984ee7
+    *:Interix*:*)
1984ee7
+	case ${UNAME_MACHINE} in
1984ee7
 	    x86)
1984ee7
 		echo i586-pc-interix${UNAME_RELEASE}
1984ee7
 		exit ;;
1984ee7
-	    EM64T | authenticamd)
1984ee7
+	    authenticamd | genuineintel | EM64T)
1984ee7
 		echo x86_64-unknown-interix${UNAME_RELEASE}
1984ee7
 		exit ;;
1984ee7
 	    IA64)
1984ee7
@@ -806,6 +829,9 @@ EOF
1984ee7
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
1984ee7
 	echo i${UNAME_MACHINE}-pc-mks
1984ee7
 	exit ;;
1984ee7
+    8664:Windows_NT:*)
1984ee7
+	echo x86_64-pc-mks
1984ee7
+	exit ;;
1984ee7
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
1984ee7
 	# How do we know it's Interix rather than the generic POSIX subsystem?
1984ee7
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
1984ee7
@@ -835,6 +861,27 @@ EOF
1984ee7
     i*86:Minix:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-minix
1984ee7
 	exit ;;
1984ee7
+    aarch64:Linux:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
+    aarch64_be:Linux:*:*)
1984ee7
+	UNAME_MACHINE=aarch64_be
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
+    alpha:Linux:*:*)
1984ee7
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
1984ee7
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
1984ee7
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
1984ee7
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
1984ee7
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
1984ee7
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
1984ee7
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
1984ee7
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
1984ee7
+	esac
1984ee7
+	objdump --private-headers /bin/sh | grep -q ld.so.1
1984ee7
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
1984ee7
+	exit ;;
1984ee7
     arm*:Linux:*:*)
1984ee7
 	eval $set_cc_for_build
1984ee7
 	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
1984ee7
@@ -842,20 +889,40 @@ EOF
1984ee7
 	then
1984ee7
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	else
1984ee7
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
1984ee7
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
1984ee7
+		| grep -q __ARM_PCS_VFP
1984ee7
+	    then
1984ee7
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
1984ee7
+	    else
1984ee7
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
1984ee7
+	    fi
1984ee7
 	fi
1984ee7
 	exit ;;
1984ee7
     avr32*:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
     cris:Linux:*:*)
1984ee7
-	echo cris-axis-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-axis-linux-gnu
1984ee7
 	exit ;;
1984ee7
     crisv32:Linux:*:*)
1984ee7
-	echo crisv32-axis-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-axis-linux-gnu
1984ee7
 	exit ;;
1984ee7
     frv:Linux:*:*)
1984ee7
-    	echo frv-unknown-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
+    hexagon:Linux:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
+    i*86:Linux:*:*)
1984ee7
+	LIBC=gnu
1984ee7
+	eval $set_cc_for_build
1984ee7
+	sed 's/^	//' << EOF >$dummy.c
1984ee7
+	#ifdef __dietlibc__
1984ee7
+	LIBC=dietlibc
1984ee7
+	#endif
1984ee7
+EOF
1984ee7
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
1984ee7
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1984ee7
 	exit ;;
1984ee7
     ia64:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
@@ -866,74 +933,33 @@ EOF
1984ee7
     m68*:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
-    mips:Linux:*:*)
1984ee7
+    mips:Linux:*:* | mips64:Linux:*:*)
1984ee7
 	eval $set_cc_for_build
1984ee7
 	sed 's/^	//' << EOF >$dummy.c
1984ee7
 	#undef CPU
1984ee7
-	#undef mips
1984ee7
-	#undef mipsel
1984ee7
+	#undef ${UNAME_MACHINE}
1984ee7
+	#undef ${UNAME_MACHINE}el
1984ee7
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1984ee7
-	CPU=mipsel
1984ee7
+	CPU=${UNAME_MACHINE}el
1984ee7
 	#else
1984ee7
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1984ee7
-	CPU=mips
1984ee7
+	CPU=${UNAME_MACHINE}
1984ee7
 	#else
1984ee7
 	CPU=
1984ee7
 	#endif
1984ee7
 	#endif
1984ee7
 EOF
1984ee7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1984ee7
-	    /^CPU/{
1984ee7
-		s: ::g
1984ee7
-		p
1984ee7
-	    }'`"
1984ee7
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1984ee7
-	;;
1984ee7
-    mips64:Linux:*:*)
1984ee7
-	eval $set_cc_for_build
1984ee7
-	sed 's/^	//' << EOF >$dummy.c
1984ee7
-	#undef CPU
1984ee7
-	#undef mips64
1984ee7
-	#undef mips64el
1984ee7
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1984ee7
-	CPU=mips64el
1984ee7
-	#else
1984ee7
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1984ee7
-	CPU=mips64
1984ee7
-	#else
1984ee7
-	CPU=
1984ee7
-	#endif
1984ee7
-	#endif
1984ee7
-EOF
1984ee7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1984ee7
-	    /^CPU/{
1984ee7
-		s: ::g
1984ee7
-		p
1984ee7
-	    }'`"
1984ee7
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
1984ee7
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
1984ee7
 	;;
1984ee7
     or32:Linux:*:*)
1984ee7
-	echo or32-unknown-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
-    ppc:Linux:*:*)
1984ee7
-	echo powerpc-unknown-linux-gnu
1984ee7
+    padre:Linux:*:*)
1984ee7
+	echo sparc-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
-    ppc64:Linux:*:*)
1984ee7
-	echo powerpc64-unknown-linux-gnu
1984ee7
-	exit ;;
1984ee7
-    alpha:Linux:*:*)
1984ee7
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
1984ee7
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
1984ee7
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
1984ee7
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
1984ee7
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
1984ee7
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
1984ee7
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
1984ee7
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
1984ee7
-        esac
1984ee7
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
1984ee7
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
1984ee7
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
1984ee7
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
1984ee7
+	echo hppa64-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
     parisc:Linux:*:* | hppa:Linux:*:*)
1984ee7
 	# Look for CPU level
1984ee7
@@ -943,14 +969,17 @@ EOF
1984ee7
 	  *)    echo hppa-unknown-linux-gnu ;;
1984ee7
 	esac
1984ee7
 	exit ;;
1984ee7
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
1984ee7
-	echo hppa64-unknown-linux-gnu
1984ee7
+    ppc64:Linux:*:*)
1984ee7
+	echo powerpc64-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
+    ppc:Linux:*:*)
1984ee7
+	echo powerpc-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
     s390:Linux:*:* | s390x:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-ibm-linux
1984ee7
 	exit ;;
1984ee7
     sh64*:Linux:*:*)
1984ee7
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
     sh*:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
@@ -958,78 +987,18 @@ EOF
1984ee7
     sparc:Linux:*:* | sparc64:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
+    tile*:Linux:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	exit ;;
1984ee7
     vax:Linux:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-dec-linux-gnu
1984ee7
 	exit ;;
1984ee7
     x86_64:Linux:*:*)
1984ee7
-	echo x86_64-unknown-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
     xtensa*:Linux:*:*)
1984ee7
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
1984ee7
 	exit ;;
1984ee7
-    i*86:Linux:*:*)
1984ee7
-	# The BFD linker knows what the default object file format is, so
1984ee7
-	# first see if it will tell us. cd to the root directory to prevent
1984ee7
-	# problems with other programs or directories called `ld' in the path.
1984ee7
-	# Set LC_ALL=C to ensure ld outputs messages in English.
1984ee7
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
1984ee7
-			 | sed -ne '/supported targets:/!d
1984ee7
-				    s/[ 	][ 	]*/ /g
1984ee7
-				    s/.*supported targets: *//
1984ee7
-				    s/ .*//
1984ee7
-				    p'`
1984ee7
-        case "$ld_supported_targets" in
1984ee7
-	  elf32-i386)
1984ee7
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
1984ee7
-		;;
1984ee7
-	  a.out-i386-linux)
1984ee7
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1984ee7
-		exit ;;
1984ee7
-	  coff-i386)
1984ee7
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
1984ee7
-		exit ;;
1984ee7
-	  "")
1984ee7
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
1984ee7
-		# one that does not give us useful --help.
1984ee7
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
1984ee7
-		exit ;;
1984ee7
-	esac
1984ee7
-	# Determine whether the default compiler is a.out or elf
1984ee7
-	eval $set_cc_for_build
1984ee7
-	sed 's/^	//' << EOF >$dummy.c
1984ee7
-	#include <features.h>
1984ee7
-	#ifdef __ELF__
1984ee7
-	# ifdef __GLIBC__
1984ee7
-	#  if __GLIBC__ >= 2
1984ee7
-	LIBC=gnu
1984ee7
-	#  else
1984ee7
-	LIBC=gnulibc1
1984ee7
-	#  endif
1984ee7
-	# else
1984ee7
-	LIBC=gnulibc1
1984ee7
-	# endif
1984ee7
-	#else
1984ee7
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1984ee7
-	LIBC=gnu
1984ee7
-	#else
1984ee7
-	LIBC=gnuaout
1984ee7
-	#endif
1984ee7
-	#endif
1984ee7
-	#ifdef __dietlibc__
1984ee7
-	LIBC=dietlibc
1984ee7
-	#endif
1984ee7
-EOF
1984ee7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1984ee7
-	    /^LIBC/{
1984ee7
-		s: ::g
1984ee7
-		p
1984ee7
-	    }'`"
1984ee7
-	test x"${LIBC}" != x && {
1984ee7
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1984ee7
-		exit
1984ee7
-	}
1984ee7
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1984ee7
-	;;
1984ee7
     i*86:DYNIX/ptx:4*:*)
1984ee7
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1984ee7
 	# earlier versions are messed up and put the nodename in both
1984ee7
@@ -1037,11 +1006,11 @@ EOF
1984ee7
 	echo i386-sequent-sysv4
1984ee7
 	exit ;;
1984ee7
     i*86:UNIX_SV:4.2MP:2.*)
1984ee7
-        # Unixware is an offshoot of SVR4, but it has its own version
1984ee7
-        # number series starting with 2...
1984ee7
-        # I am not positive that other SVR4 systems won't match this,
1984ee7
+	# Unixware is an offshoot of SVR4, but it has its own version
1984ee7
+	# number series starting with 2...
1984ee7
+	# I am not positive that other SVR4 systems won't match this,
1984ee7
 	# I just have to hope.  -- rms.
1984ee7
-        # Use sysv4.2uw... so that sysv4* matches it.
1984ee7
+	# Use sysv4.2uw... so that sysv4* matches it.
1984ee7
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1984ee7
 	exit ;;
1984ee7
     i*86:OS/2:*:*)
1984ee7
@@ -1058,7 +1027,7 @@ EOF
1984ee7
     i*86:syllable:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-syllable
1984ee7
 	exit ;;
1984ee7
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1984ee7
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1984ee7
 	echo i386-unknown-lynxos${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     i*86:*DOS:*:*)
1984ee7
@@ -1073,7 +1042,7 @@ EOF
1984ee7
 	fi
1984ee7
 	exit ;;
1984ee7
     i*86:*:5:[678]*)
1984ee7
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
1984ee7
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
1984ee7
 	case `/bin/uname -X | grep "^Machine"` in
1984ee7
 	    *486*)	     UNAME_MACHINE=i486 ;;
1984ee7
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
1984ee7
@@ -1101,10 +1070,13 @@ EOF
1984ee7
 	exit ;;
1984ee7
     pc:*:*:*)
1984ee7
 	# Left here for compatibility:
1984ee7
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
1984ee7
-        # the processor, so we play safe by assuming i386.
1984ee7
-	echo i386-pc-msdosdjgpp
1984ee7
-        exit ;;
1984ee7
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
1984ee7
+	# the processor, so we play safe by assuming i586.
1984ee7
+	# Note: whatever this is, it MUST be the same as what config.sub
1984ee7
+	# prints for the "djgpp" host, or else GDB configury will decide that
1984ee7
+	# this is a cross-build.
1984ee7
+	echo i586-pc-msdosdjgpp
1984ee7
+	exit ;;
1984ee7
     Intel:Mach:3*:*)
1984ee7
 	echo i386-pc-mach3
1984ee7
 	exit ;;
1984ee7
@@ -1139,8 +1111,18 @@ EOF
1984ee7
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1984ee7
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1984ee7
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1984ee7
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1984ee7
-          && { echo i486-ncr-sysv4; exit; } ;;
1984ee7
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1984ee7
+	  && { echo i486-ncr-sysv4; exit; } ;;
1984ee7
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1984ee7
+	OS_REL='.3'
1984ee7
+	test -r /etc/.relid \
1984ee7
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1984ee7
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1984ee7
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1984ee7
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1984ee7
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1984ee7
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1984ee7
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1984ee7
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1984ee7
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
@@ -1153,7 +1135,7 @@ EOF
1984ee7
     rs6000:LynxOS:2.*:*)
1984ee7
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1984ee7
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1984ee7
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     SM[BE]S:UNIX_SV:*:*)
1984ee7
@@ -1173,10 +1155,10 @@ EOF
1984ee7
 		echo ns32k-sni-sysv
1984ee7
 	fi
1984ee7
 	exit ;;
1984ee7
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1984ee7
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
1984ee7
-        echo i586-unisys-sysv4
1984ee7
-        exit ;;
1984ee7
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1984ee7
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
1984ee7
+	echo i586-unisys-sysv4
1984ee7
+	exit ;;
1984ee7
     *:UNIX_System_V:4*:FTX*)
1984ee7
 	# From Gerald Hewes <hewes@openmarket.com>.
1984ee7
 	# How about differentiating between stratus architectures? -djm
1984ee7
@@ -1202,11 +1184,11 @@ EOF
1984ee7
 	exit ;;
1984ee7
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1984ee7
 	if [ -d /usr/nec ]; then
1984ee7
-	        echo mips-nec-sysv${UNAME_RELEASE}
1984ee7
+		echo mips-nec-sysv${UNAME_RELEASE}
1984ee7
 	else
1984ee7
-	        echo mips-unknown-sysv${UNAME_RELEASE}
1984ee7
+		echo mips-unknown-sysv${UNAME_RELEASE}
1984ee7
 	fi
1984ee7
-        exit ;;
1984ee7
+	exit ;;
1984ee7
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
1984ee7
 	echo powerpc-be-beos
1984ee7
 	exit ;;
1984ee7
@@ -1216,6 +1198,9 @@ EOF
1984ee7
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
1984ee7
 	echo i586-pc-beos
1984ee7
 	exit ;;
1984ee7
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
1984ee7
+	echo i586-pc-haiku
1984ee7
+	exit ;;
1984ee7
     SX-4:SUPER-UX:*:*)
1984ee7
 	echo sx4-nec-superux${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
@@ -1243,6 +1228,16 @@ EOF
1984ee7
     *:Darwin:*:*)
1984ee7
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1984ee7
 	case $UNAME_PROCESSOR in
1984ee7
+	    i386)
1984ee7
+		eval $set_cc_for_build
1984ee7
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1984ee7
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1984ee7
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1984ee7
+		      grep IS_64BIT_ARCH >/dev/null
1984ee7
+		  then
1984ee7
+		      UNAME_PROCESSOR="x86_64"
1984ee7
+		  fi
1984ee7
+		fi ;;
1984ee7
 	    unknown) UNAME_PROCESSOR=powerpc ;;
1984ee7
 	esac
1984ee7
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1984ee7
@@ -1258,7 +1253,10 @@ EOF
1984ee7
     *:QNX:*:4*)
1984ee7
 	echo i386-pc-qnx
1984ee7
 	exit ;;
1984ee7
-    NSE-?:NONSTOP_KERNEL:*:*)
1984ee7
+    NEO-?:NONSTOP_KERNEL:*:*)
1984ee7
+	echo neo-tandem-nsk${UNAME_RELEASE}
1984ee7
+	exit ;;
1984ee7
+    NSE-*:NONSTOP_KERNEL:*:*)
1984ee7
 	echo nse-tandem-nsk${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     NSR-?:NONSTOP_KERNEL:*:*)
1984ee7
@@ -1303,13 +1301,13 @@ EOF
1984ee7
 	echo pdp10-unknown-its
1984ee7
 	exit ;;
1984ee7
     SEI:*:*:SEIUX)
1984ee7
-        echo mips-sei-seiux${UNAME_RELEASE}
1984ee7
+	echo mips-sei-seiux${UNAME_RELEASE}
1984ee7
 	exit ;;
1984ee7
     *:DragonFly:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1984ee7
 	exit ;;
1984ee7
     *:*VMS:*:*)
1984ee7
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1984ee7
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
1984ee7
 	case "${UNAME_MACHINE}" in
1984ee7
 	    A*) echo alpha-dec-vms ; exit ;;
1984ee7
 	    I*) echo ia64-dec-vms ; exit ;;
1984ee7
@@ -1324,6 +1322,12 @@ EOF
1984ee7
     i*86:rdos:*:*)
1984ee7
 	echo ${UNAME_MACHINE}-pc-rdos
1984ee7
 	exit ;;
1984ee7
+    i*86:AROS:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-pc-aros
1984ee7
+	exit ;;
1984ee7
+    x86_64:VMkernel:*:*)
1984ee7
+	echo ${UNAME_MACHINE}-unknown-esx
1984ee7
+	exit ;;
1984ee7
 esac
1984ee7
 
1984ee7
 #echo '(No uname command or uname output not recognized.)' 1>&2
1984ee7
@@ -1346,11 +1350,11 @@ main ()
1984ee7
 #include <sys/param.h>
1984ee7
   printf ("m68k-sony-newsos%s\n",
1984ee7
 #ifdef NEWSOS4
1984ee7
-          "4"
1984ee7
+	"4"
1984ee7
 #else
1984ee7
-	  ""
1984ee7
+	""
1984ee7
 #endif
1984ee7
-         ); exit (0);
1984ee7
+	); exit (0);
1984ee7
 #endif
1984ee7
 #endif
1984ee7
 
1984ee7
--- fastjar-0.97/config.sub
1984ee7
+++ fastjar-0.97/config.sub
1984ee7
@@ -1,10 +1,10 @@
1984ee7
 #! /bin/sh
1984ee7
 # Configuration validation subroutine script.
1984ee7
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
1984ee7
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
1984ee7
-#   Free Software Foundation, Inc.
1984ee7
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
1984ee7
+#   2011, 2012 Free Software Foundation, Inc.
1984ee7
 
1984ee7
-timestamp='2008-01-16'
1984ee7
+timestamp='2012-04-18'
1984ee7
 
1984ee7
 # This file is (in principle) common to ALL GNU software.
1984ee7
 # The presence of a machine in this file suggests that SOME GNU software
1984ee7
@@ -21,9 +21,7 @@ timestamp='2008-01-16'
1984ee7
 # GNU General Public License for more details.
1984ee7
 #
1984ee7
 # You should have received a copy of the GNU General Public License
1984ee7
-# along with this program; if not, write to the Free Software
1984ee7
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
1984ee7
-# 02110-1301, USA.
1984ee7
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
1984ee7
 #
1984ee7
 # As a special exception to the GNU General Public License, if you
1984ee7
 # distribute this file as part of a program that contains a
1984ee7
@@ -32,13 +30,16 @@ timestamp='2008-01-16'
1984ee7
 
1984ee7
 
1984ee7
 # Please send patches to <config-patches@gnu.org>.  Submit a context
1984ee7
-# diff and a properly formatted ChangeLog entry.
1984ee7
+# diff and a properly formatted GNU ChangeLog entry.
1984ee7
 #
1984ee7
 # Configuration subroutine to validate and canonicalize a configuration type.
1984ee7
 # Supply the specified configuration type as an argument.
1984ee7
 # If it is invalid, we print an error message on stderr and exit with code 1.
1984ee7
 # Otherwise, we print the canonical config type on stdout and succeed.
1984ee7
 
1984ee7
+# You can get the latest version of this script from:
1984ee7
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1984ee7
+
1984ee7
 # This file is supposed to be the same for all GNU packages
1984ee7
 # and recognize all the CPU types, system types and aliases
1984ee7
 # that are meaningful with *any* GNU software.
1984ee7
@@ -72,8 +73,9 @@ Report bugs and patches to <config-patches@gnu.org>."
1984ee7
 version="\
1984ee7
 GNU config.sub ($timestamp)
1984ee7
 
1984ee7
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
1984ee7
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1984ee7
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
1984ee7
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
1984ee7
+Free Software Foundation, Inc.
1984ee7
 
1984ee7
 This is free software; see the source for copying conditions.  There is NO
1984ee7
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
1984ee7
@@ -120,12 +122,18 @@ esac
1984ee7
 # Here we must recognize all the valid KERNEL-OS combinations.
1984ee7
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
1984ee7
 case $maybe_os in
1984ee7
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
1984ee7
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
1984ee7
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
1984ee7
+  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
1984ee7
+  knetbsd*-gnu* | netbsd*-gnu* | \
1984ee7
+  kopensolaris*-gnu* | \
1984ee7
   storm-chaos* | os2-emx* | rtmk-nova*)
1984ee7
     os=-$maybe_os
1984ee7
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
1984ee7
     ;;
1984ee7
+  android-linux)
1984ee7
+    os=-linux-android
1984ee7
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
1984ee7
+    ;;
1984ee7
   *)
1984ee7
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
1984ee7
     if [ $basic_machine != $1 ]
1984ee7
@@ -148,10 +156,13 @@ case $os in
1984ee7
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
1984ee7
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
1984ee7
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
1984ee7
-	-apple | -axis | -knuth | -cray)
1984ee7
+	-apple | -axis | -knuth | -cray | -microblaze)
1984ee7
 		os=
1984ee7
 		basic_machine=$1
1984ee7
 		;;
1984ee7
+	-bluegene*)
1984ee7
+		os=-cnk
1984ee7
+		;;
1984ee7
 	-sim | -cisco | -oki | -wec | -winbond)
1984ee7
 		os=
1984ee7
 		basic_machine=$1
1984ee7
@@ -166,10 +177,10 @@ case $os in
1984ee7
 		os=-chorusos
1984ee7
 		basic_machine=$1
1984ee7
 		;;
1984ee7
- 	-chorusrdb)
1984ee7
- 		os=-chorusrdb
1984ee7
+	-chorusrdb)
1984ee7
+		os=-chorusrdb
1984ee7
 		basic_machine=$1
1984ee7
- 		;;
1984ee7
+		;;
1984ee7
 	-hiux*)
1984ee7
 		os=-hiuxwe2
1984ee7
 		;;
1984ee7
@@ -214,6 +225,12 @@ case $os in
1984ee7
 	-isc*)
1984ee7
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
1984ee7
 		;;
1984ee7
+	-lynx*178)
1984ee7
+		os=-lynxos178
1984ee7
+		;;
1984ee7
+	-lynx*5)
1984ee7
+		os=-lynxos5
1984ee7
+		;;
1984ee7
 	-lynx*)
1984ee7
 		os=-lynxos
1984ee7
 		;;
1984ee7
@@ -238,24 +255,32 @@ case $basic_machine in
1984ee7
 	# Some are omitted here because they have special meanings below.
1984ee7
 	1750a | 580 \
1984ee7
 	| a29k \
1984ee7
+	| aarch64 | aarch64_be \
1984ee7
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
1984ee7
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
1984ee7
 	| am33_2.0 \
1984ee7
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
1984ee7
+        | be32 | be64 \
1984ee7
 	| bfin \
1984ee7
 	| c4x | clipper \
1984ee7
 	| d10v | d30v | dlx | dsp16xx \
1984ee7
+	| epiphany \
1984ee7
 	| fido | fr30 | frv \
1984ee7
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1984ee7
+	| hexagon \
1984ee7
 	| i370 | i860 | i960 | ia64 \
1984ee7
 	| ip2k | iq2000 \
1984ee7
+	| le32 | le64 \
1984ee7
+	| lm32 \
1984ee7
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
1984ee7
-	| maxq | mb | microblaze | mcore | mep \
1984ee7
+	| maxq | mb | microblaze | mcore | mep | metag \
1984ee7
 	| mips | mipsbe | mipseb | mipsel | mipsle \
1984ee7
 	| mips16 \
1984ee7
 	| mips64 | mips64el \
1984ee7
-	| mips64vr | mips64vrel \
1984ee7
+	| mips64octeon | mips64octeonel \
1984ee7
 	| mips64orion | mips64orionel \
1984ee7
+	| mips64r5900 | mips64r5900el \
1984ee7
+	| mips64vr | mips64vrel \
1984ee7
 	| mips64vr4100 | mips64vr4100el \
1984ee7
 	| mips64vr4300 | mips64vr4300el \
1984ee7
 	| mips64vr5000 | mips64vr5000el \
1984ee7
@@ -268,29 +293,42 @@ case $basic_machine in
1984ee7
 	| mipsisa64sr71k | mipsisa64sr71kel \
1984ee7
 	| mipstx39 | mipstx39el \
1984ee7
 	| mn10200 | mn10300 \
1984ee7
+	| moxie \
1984ee7
 	| mt \
1984ee7
 	| msp430 \
1984ee7
+	| nds32 | nds32le | nds32be \
1984ee7
 	| nios | nios2 \
1984ee7
 	| ns16k | ns32k \
1984ee7
+	| open8 \
1984ee7
 	| or32 \
1984ee7
 	| pdp10 | pdp11 | pj | pjl \
1984ee7
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
1984ee7
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
1984ee7
 	| pyramid \
1984ee7
+	| rl78 | rx \
1984ee7
 	| score \
1984ee7
-	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1984ee7
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
1984ee7
 	| sh64 | sh64le \
1984ee7
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
1984ee7
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
1984ee7
-	| spu | strongarm \
1984ee7
-	| tahoe | thumb | tic4x | tic80 | tron \
1984ee7
-	| v850 | v850e \
1984ee7
+	| spu \
1984ee7
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
1984ee7
+	| ubicom32 \
1984ee7
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
1984ee7
 	| we32k \
1984ee7
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
1984ee7
-	| z8k)
1984ee7
+	| x86 | xc16x | xstormy16 | xtensa \
1984ee7
+	| z8k | z80)
1984ee7
 		basic_machine=$basic_machine-unknown
1984ee7
 		;;
1984ee7
-	m6811 | m68hc11 | m6812 | m68hc12)
1984ee7
-		# Motorola 68HC11/12.
1984ee7
+	c54x)
1984ee7
+		basic_machine=tic54x-unknown
1984ee7
+		;;
1984ee7
+	c55x)
1984ee7
+		basic_machine=tic55x-unknown
1984ee7
+		;;
1984ee7
+	c6x)
1984ee7
+		basic_machine=tic6x-unknown
1984ee7
+		;;
1984ee7
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
1984ee7
 		basic_machine=$basic_machine-unknown
1984ee7
 		os=-none
1984ee7
 		;;
1984ee7
@@ -300,6 +338,21 @@ case $basic_machine in
1984ee7
 		basic_machine=mt-unknown
1984ee7
 		;;
1984ee7
 
1984ee7
+	strongarm | thumb | xscale)
1984ee7
+		basic_machine=arm-unknown
1984ee7
+		;;
1984ee7
+	xgate)
1984ee7
+		basic_machine=$basic_machine-unknown
1984ee7
+		os=-none
1984ee7
+		;;
1984ee7
+	xscaleeb)
1984ee7
+		basic_machine=armeb-unknown
1984ee7
+		;;
1984ee7
+
1984ee7
+	xscaleel)
1984ee7
+		basic_machine=armel-unknown
1984ee7
+		;;
1984ee7
+
1984ee7
 	# We use `pc' rather than `unknown'
1984ee7
 	# because (1) that's what they normally are, and
1984ee7
 	# (2) the word "unknown" tends to confuse beginning users.
1984ee7
@@ -314,29 +367,36 @@ case $basic_machine in
1984ee7
 	# Recognize the basic CPU types with company name.
1984ee7
 	580-* \
1984ee7
 	| a29k-* \
1984ee7
+	| aarch64-* | aarch64_be-* \
1984ee7
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
1984ee7
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
1984ee7
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
1984ee7
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
1984ee7
 	| avr-* | avr32-* \
1984ee7
+	| be32-* | be64-* \
1984ee7
 	| bfin-* | bs2000-* \
1984ee7
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
1984ee7
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
1984ee7
 	| clipper-* | craynv-* | cydra-* \
1984ee7
 	| d10v-* | d30v-* | dlx-* \
1984ee7
 	| elxsi-* \
1984ee7
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
1984ee7
 	| h8300-* | h8500-* \
1984ee7
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
1984ee7
+	| hexagon-* \
1984ee7
 	| i*86-* | i860-* | i960-* | ia64-* \
1984ee7
 	| ip2k-* | iq2000-* \
1984ee7
+	| le32-* | le64-* \
1984ee7
+	| lm32-* \
1984ee7
 	| m32c-* | m32r-* | m32rle-* \
1984ee7
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
1984ee7
-	| m88110-* | m88k-* | maxq-* | mcore-* \
1984ee7
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
1984ee7
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
1984ee7
 	| mips16-* \
1984ee7
 	| mips64-* | mips64el-* \
1984ee7
-	| mips64vr-* | mips64vrel-* \
1984ee7
+	| mips64octeon-* | mips64octeonel-* \
1984ee7
 	| mips64orion-* | mips64orionel-* \
1984ee7
+	| mips64r5900-* | mips64r5900el-* \
1984ee7
+	| mips64vr-* | mips64vrel-* \
1984ee7
 	| mips64vr4100-* | mips64vr4100el-* \
1984ee7
 	| mips64vr4300-* | mips64vr4300el-* \
1984ee7
 	| mips64vr5000-* | mips64vr5000el-* \
1984ee7
@@ -351,27 +411,32 @@ case $basic_machine in
1984ee7
 	| mmix-* \
1984ee7
 	| mt-* \
1984ee7
 	| msp430-* \
1984ee7
+	| nds32-* | nds32le-* | nds32be-* \
1984ee7
 	| nios-* | nios2-* \
1984ee7
 	| none-* | np1-* | ns16k-* | ns32k-* \
1984ee7
+	| open8-* \
1984ee7
 	| orion-* \
1984ee7
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
1984ee7
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
1984ee7
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
1984ee7
 	| pyramid-* \
1984ee7
-	| romp-* | rs6000-* \
1984ee7
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1984ee7
+	| rl78-* | romp-* | rs6000-* | rx-* \
1984ee7
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
1984ee7
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
1984ee7
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
1984ee7
 	| sparclite-* \
1984ee7
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
1984ee7
-	| tahoe-* | thumb-* \
1984ee7
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
1984ee7
+	| tahoe-* \
1984ee7
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
1984ee7
+	| tile*-* \
1984ee7
 	| tron-* \
1984ee7
-	| v850-* | v850e-* | vax-* \
1984ee7
+	| ubicom32-* \
1984ee7
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
1984ee7
+	| vax-* \
1984ee7
 	| we32k-* \
1984ee7
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
1984ee7
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
1984ee7
 	| xstormy16-* | xtensa*-* \
1984ee7
 	| ymp-* \
1984ee7
-	| z8k-*)
1984ee7
+	| z8k-* | z80-*)
1984ee7
 		;;
1984ee7
 	# Recognize the basic CPU types without company name, with glob match.
1984ee7
 	xtensa*)
1984ee7
@@ -393,7 +458,7 @@ case $basic_machine in
1984ee7
 		basic_machine=a29k-amd
1984ee7
 		os=-udi
1984ee7
 		;;
1984ee7
-    	abacus)
1984ee7
+	abacus)
1984ee7
 		basic_machine=abacus-unknown
1984ee7
 		;;
1984ee7
 	adobe68k)
1984ee7
@@ -439,6 +504,10 @@ case $basic_machine in
1984ee7
 		basic_machine=m68k-apollo
1984ee7
 		os=-bsd
1984ee7
 		;;
1984ee7
+	aros)
1984ee7
+		basic_machine=i386-pc
1984ee7
+		os=-aros
1984ee7
+		;;
1984ee7
 	aux)
1984ee7
 		basic_machine=m68k-apple
1984ee7
 		os=-aux
1984ee7
@@ -455,10 +524,27 @@ case $basic_machine in
1984ee7
 		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
 		os=-linux
1984ee7
 		;;
1984ee7
+	bluegene*)
1984ee7
+		basic_machine=powerpc-ibm
1984ee7
+		os=-cnk
1984ee7
+		;;
1984ee7
+	c54x-*)
1984ee7
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
+		;;
1984ee7
+	c55x-*)
1984ee7
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
+		;;
1984ee7
+	c6x-*)
1984ee7
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
+		;;
1984ee7
 	c90)
1984ee7
 		basic_machine=c90-cray
1984ee7
 		os=-unicos
1984ee7
 		;;
1984ee7
+	cegcc)
1984ee7
+		basic_machine=arm-unknown
1984ee7
+		os=-cegcc
1984ee7
+		;;
1984ee7
 	convex-c1)
1984ee7
 		basic_machine=c1-convex
1984ee7
 		os=-bsd
1984ee7
@@ -487,7 +573,7 @@ case $basic_machine in
1984ee7
 		basic_machine=craynv-cray
1984ee7
 		os=-unicosmp
1984ee7
 		;;
1984ee7
-	cr16)
1984ee7
+	cr16 | cr16-*)
1984ee7
 		basic_machine=cr16-unknown
1984ee7
 		os=-elf
1984ee7
 		;;
1984ee7
@@ -526,6 +612,10 @@ case $basic_machine in
1984ee7
 		basic_machine=m88k-motorola
1984ee7
 		os=-sysv3
1984ee7
 		;;
1984ee7
+	dicos)
1984ee7
+		basic_machine=i686-pc
1984ee7
+		os=-dicos
1984ee7
+		;;
1984ee7
 	djgpp)
1984ee7
 		basic_machine=i586-pc
1984ee7
 		os=-msdosdjgpp
1984ee7
@@ -641,7 +731,6 @@ case $basic_machine in
1984ee7
 	i370-ibm* | ibm*)
1984ee7
 		basic_machine=i370-ibm
1984ee7
 		;;
1984ee7
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
1984ee7
 	i*86v32)
1984ee7
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
1984ee7
 		os=-sysv32
1984ee7
@@ -699,6 +788,9 @@ case $basic_machine in
1984ee7
 		basic_machine=ns32k-utek
1984ee7
 		os=-sysv
1984ee7
 		;;
1984ee7
+	microblaze)
1984ee7
+		basic_machine=microblaze-xilinx
1984ee7
+		;;
1984ee7
 	mingw32)
1984ee7
 		basic_machine=i386-pc
1984ee7
 		os=-mingw32
1984ee7
@@ -735,10 +827,18 @@ case $basic_machine in
1984ee7
 	ms1-*)
1984ee7
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
1984ee7
 		;;
1984ee7
+	msys)
1984ee7
+		basic_machine=i386-pc
1984ee7
+		os=-msys
1984ee7
+		;;
1984ee7
 	mvs)
1984ee7
 		basic_machine=i370-ibm
1984ee7
 		os=-mvs
1984ee7
 		;;
1984ee7
+	nacl)
1984ee7
+		basic_machine=le32-unknown
1984ee7
+		os=-nacl
1984ee7
+		;;
1984ee7
 	ncr3000)
1984ee7
 		basic_machine=i486-ncr
1984ee7
 		os=-sysv4
1984ee7
@@ -803,6 +903,12 @@ case $basic_machine in
1984ee7
 	np1)
1984ee7
 		basic_machine=np1-gould
1984ee7
 		;;
1984ee7
+	neo-tandem)
1984ee7
+		basic_machine=neo-tandem
1984ee7
+		;;
1984ee7
+	nse-tandem)
1984ee7
+		basic_machine=nse-tandem
1984ee7
+		;;
1984ee7
 	nsr-tandem)
1984ee7
 		basic_machine=nsr-tandem
1984ee7
 		;;
1984ee7
@@ -885,9 +991,10 @@ case $basic_machine in
1984ee7
 		;;
1984ee7
 	power)	basic_machine=power-ibm
1984ee7
 		;;
1984ee7
-	ppc)	basic_machine=powerpc-unknown
1984ee7
+	ppc | ppcbe)	basic_machine=powerpc-unknown
1984ee7
 		;;
1984ee7
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
+	ppc-* | ppcbe-*)
1984ee7
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
 		;;
1984ee7
 	ppcle | powerpclittle | ppc-le | powerpc-little)
1984ee7
 		basic_machine=powerpcle-unknown
1984ee7
@@ -981,6 +1088,9 @@ case $basic_machine in
1984ee7
 		basic_machine=i860-stratus
1984ee7
 		os=-sysv4
1984ee7
 		;;
1984ee7
+	strongarm-* | thumb-*)
1984ee7
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
1984ee7
+		;;
1984ee7
 	sun2)
1984ee7
 		basic_machine=m68000-sun
1984ee7
 		;;
1984ee7
@@ -1037,20 +1147,8 @@ case $basic_machine in
1984ee7
 		basic_machine=t90-cray
1984ee7
 		os=-unicos
1984ee7
 		;;
1984ee7
-	tic54x | c54x*)
1984ee7
-		basic_machine=tic54x-unknown
1984ee7
-		os=-coff
1984ee7
-		;;
1984ee7
-	tic55x | c55x*)
1984ee7
-		basic_machine=tic55x-unknown
1984ee7
-		os=-coff
1984ee7
-		;;
1984ee7
-	tic6x | c6x*)
1984ee7
-		basic_machine=tic6x-unknown
1984ee7
-		os=-coff
1984ee7
-		;;
1984ee7
 	tile*)
1984ee7
-		basic_machine=tile-unknown
1984ee7
+		basic_machine=$basic_machine-unknown
1984ee7
 		os=-linux-gnu
1984ee7
 		;;
1984ee7
 	tx39)
1984ee7
@@ -1120,6 +1218,9 @@ case $basic_machine in
1984ee7
 	xps | xps100)
1984ee7
 		basic_machine=xps100-honeywell
1984ee7
 		;;
1984ee7
+	xscale-* | xscalee[bl]-*)
1984ee7
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
1984ee7
+		;;
1984ee7
 	ymp)
1984ee7
 		basic_machine=ymp-cray
1984ee7
 		os=-unicos
1984ee7
@@ -1128,6 +1229,10 @@ case $basic_machine in
1984ee7
 		basic_machine=z8k-unknown
1984ee7
 		os=-sim
1984ee7
 		;;
1984ee7
+	z80-*-coff)
1984ee7
+		basic_machine=z80-unknown
1984ee7
+		os=-sim
1984ee7
+		;;
1984ee7
 	none)
1984ee7
 		basic_machine=none-none
1984ee7
 		os=-none
1984ee7
@@ -1166,7 +1271,7 @@ case $basic_machine in
1984ee7
 	we32k)
1984ee7
 		basic_machine=we32k-att
1984ee7
 		;;
1984ee7
-	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1984ee7
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1984ee7
 		basic_machine=sh-unknown
1984ee7
 		;;
1984ee7
 	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1984ee7
@@ -1213,9 +1318,12 @@ esac
1984ee7
 if [ x"$os" != x"" ]
1984ee7
 then
1984ee7
 case $os in
1984ee7
-        # First match some system type aliases
1984ee7
-        # that might get confused with valid system types.
1984ee7
+	# First match some system type aliases
1984ee7
+	# that might get confused with valid system types.
1984ee7
 	# -solaris* is a basic system type, with this one exception.
1984ee7
+	-auroraux)
1984ee7
+		os=-auroraux
1984ee7
+		;;
1984ee7
 	-solaris1 | -solaris1.*)
1984ee7
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
1984ee7
 		;;
1984ee7
@@ -1236,10 +1344,11 @@ case $os in
1984ee7
 	# Each alternative MUST END IN A *, to match a version number.
1984ee7
 	# -sysv* is not here because it comes later, after sysvr4.
1984ee7
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1984ee7
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1984ee7
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1984ee7
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
1984ee7
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
1984ee7
+	      | -sym* | -kopensolaris* \
1984ee7
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1984ee7
-	      | -aos* \
1984ee7
+	      | -aos* | -aros* \
1984ee7
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1984ee7
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1984ee7
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1984ee7
@@ -1248,9 +1357,10 @@ case $os in
1984ee7
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1984ee7
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1984ee7
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1984ee7
-	      | -chorusos* | -chorusrdb* \
1984ee7
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1984ee7
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1984ee7
+	      | -chorusos* | -chorusrdb* | -cegcc* \
1984ee7
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1984ee7
+	      | -mingw32* | -linux-gnu* | -linux-android* \
1984ee7
+	      | -linux-newlib* | -linux-uclibc* \
1984ee7
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
1984ee7
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1984ee7
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1984ee7
@@ -1258,7 +1368,7 @@ case $os in
1984ee7
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1984ee7
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1984ee7
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1984ee7
-	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
1984ee7
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
1984ee7
 	# Remember, each alternative MUST END IN *, to match a version number.
1984ee7
 		;;
1984ee7
 	-qnx*)
1984ee7
@@ -1297,7 +1407,7 @@ case $os in
1984ee7
 	-opened*)
1984ee7
 		os=-openedition
1984ee7
 		;;
1984ee7
-        -os400*)
1984ee7
+	-os400*)
1984ee7
 		os=-os400
1984ee7
 		;;
1984ee7
 	-wince*)
1984ee7
@@ -1346,7 +1456,7 @@ case $os in
1984ee7
 	-sinix*)
1984ee7
 		os=-sysv4
1984ee7
 		;;
1984ee7
-        -tpf*)
1984ee7
+	-tpf*)
1984ee7
 		os=-tpf
1984ee7
 		;;
1984ee7
 	-triton*)
1984ee7
@@ -1388,6 +1498,11 @@ case $os in
1984ee7
 	-zvmoe)
1984ee7
 		os=-zvmoe
1984ee7
 		;;
1984ee7
+	-dicos*)
1984ee7
+		os=-dicos
1984ee7
+		;;
1984ee7
+	-nacl*)
1984ee7
+		;;
1984ee7
 	-none)
1984ee7
 		;;
1984ee7
 	*)
1984ee7
@@ -1410,10 +1525,10 @@ else
1984ee7
 # system, and we'll never get to this point.
1984ee7
 
1984ee7
 case $basic_machine in
1984ee7
-        score-*)
1984ee7
+	score-*)
1984ee7
 		os=-elf
1984ee7
 		;;
1984ee7
-        spu-*)
1984ee7
+	spu-*)
1984ee7
 		os=-elf
1984ee7
 		;;
1984ee7
 	*-acorn)
1984ee7
@@ -1425,8 +1540,20 @@ case $basic_machine in
1984ee7
 	arm*-semi)
1984ee7
 		os=-aout
1984ee7
 		;;
1984ee7
-        c4x-* | tic4x-*)
1984ee7
-        	os=-coff
1984ee7
+	c4x-* | tic4x-*)
1984ee7
+		os=-coff
1984ee7
+		;;
1984ee7
+	hexagon-*)
1984ee7
+		os=-elf
1984ee7
+		;;
1984ee7
+	tic54x-*)
1984ee7
+		os=-coff
1984ee7
+		;;
1984ee7
+	tic55x-*)
1984ee7
+		os=-coff
1984ee7
+		;;
1984ee7
+	tic6x-*)
1984ee7
+		os=-coff
1984ee7
 		;;
1984ee7
 	# This must come before the *-dec entry.
1984ee7
 	pdp10-*)
1984ee7
@@ -1446,14 +1573,11 @@ case $basic_machine in
1984ee7
 		;;
1984ee7
 	m68000-sun)
1984ee7
 		os=-sunos3
1984ee7
-		# This also exists in the configure program, but was not the
1984ee7
-		# default.
1984ee7
-		# os=-sunos4
1984ee7
 		;;
1984ee7
 	m68*-cisco)
1984ee7
 		os=-aout
1984ee7
 		;;
1984ee7
-        mep-*)
1984ee7
+	mep-*)
1984ee7
 		os=-elf
1984ee7
 		;;
1984ee7
 	mips*-cisco)
1984ee7
@@ -1480,7 +1604,7 @@ case $basic_machine in
1984ee7
 	*-ibm)
1984ee7
 		os=-aix
1984ee7
 		;;
1984ee7
-    	*-knuth)
1984ee7
+	*-knuth)
1984ee7
 		os=-mmixware
1984ee7
 		;;
1984ee7
 	*-wec)
1984ee7
@@ -1585,7 +1709,7 @@ case $basic_machine in
1984ee7
 			-sunos*)
1984ee7
 				vendor=sun
1984ee7
 				;;
1984ee7
-			-aix*)
1984ee7
+			-cnk*|-aix*)
1984ee7
 				vendor=ibm
1984ee7
 				;;
1984ee7
 			-beos*)