Blame SOURCES/speex-aarch64.patch

84bff7
diff -urN speex-1.2rc1/config.guess speex-1.2rc1-aarch64/config.guess
84bff7
--- speex-1.2rc1/config.guess	2006-11-08 01:44:58.000000000 -0600
84bff7
+++ speex-1.2rc1-aarch64/config.guess	2013-03-08 08:07:49.059011019 -0600
84bff7
@@ -1,10 +1,10 @@
84bff7
 #! /bin/sh
84bff7
 # Attempt to guess a canonical system name.
84bff7
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
84bff7
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
84bff7
-#   Inc.
84bff7
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
84bff7
+#   2011, 2012 Free Software Foundation, Inc.
84bff7
 
84bff7
-timestamp='2006-07-02'
84bff7
+timestamp='2012-09-25'
84bff7
 
84bff7
 # This file is free software; you can redistribute it and/or modify it
84bff7
 # under the terms of the GNU General Public License as published by
84bff7
@@ -17,9 +17,7 @@
84bff7
 # General Public License for more details.
84bff7
 #
84bff7
 # You should have received a copy of the GNU General Public License
84bff7
-# along with this program; if not, write to the Free Software
84bff7
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
84bff7
-# 02110-1301, USA.
84bff7
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
84bff7
 #
84bff7
 # As a special exception to the GNU General Public License, if you
84bff7
 # distribute this file as part of a program that contains a
84bff7
@@ -27,16 +25,16 @@
84bff7
 # the same distribution terms that you use for the rest of that program.
84bff7
 
84bff7
 
84bff7
-# Originally written by Per Bothner <per@bothner.com>.
84bff7
-# Please send patches to <config-patches@gnu.org>.  Submit a context
84bff7
-# diff and a properly formatted ChangeLog entry.
84bff7
+# Originally written by Per Bothner.  Please send patches (context
84bff7
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
84bff7
+# entry.
84bff7
 #
84bff7
 # This script attempts to guess a canonical system name similar to
84bff7
 # config.sub.  If it succeeds, it prints the system name on stdout, and
84bff7
 # exits with 0.  Otherwise, it exits with 1.
84bff7
 #
84bff7
-# The plan is that this can be called by configure scripts if you
84bff7
-# don't specify an explicit build system type.
84bff7
+# You can get the latest version of this script from:
84bff7
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
84bff7
 
84bff7
 me=`echo "$0" | sed -e 's,.*/,,'`
84bff7
 
84bff7
@@ -56,7 +54,8 @@
84bff7
 GNU config.guess ($timestamp)
84bff7
 
84bff7
 Originally written by Per Bothner.
84bff7
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
84bff7
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
84bff7
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
84bff7
 Free Software Foundation, Inc.
84bff7
 
84bff7
 This is free software; see the source for copying conditions.  There is NO
84bff7
@@ -144,7 +143,7 @@
84bff7
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
84bff7
     *:NetBSD:*:*)
84bff7
 	# NetBSD (nbsd) targets should (where applicable) match one or
84bff7
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
84bff7
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
84bff7
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
84bff7
 	# switched to ELF, *-*-netbsd* would select the old
84bff7
 	# object file format.  This provides both forward
84bff7
@@ -161,6 +160,7 @@
84bff7
 	    arm*) machine=arm-unknown ;;
84bff7
 	    sh3el) machine=shl-unknown ;;
84bff7
 	    sh3eb) machine=sh-unknown ;;
84bff7
+	    sh5el) machine=sh5le-unknown ;;
84bff7
 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
84bff7
 	esac
84bff7
 	# The Operating System including object format, if it has switched
84bff7
@@ -169,7 +169,7 @@
84bff7
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
84bff7
 		eval $set_cc_for_build
84bff7
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
84bff7
-			| grep __ELF__ >/dev/null
84bff7
+			| grep -q __ELF__
84bff7
 		then
84bff7
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
84bff7
 		    # Return netbsd for either.  FIX?
84bff7
@@ -179,7 +179,7 @@
84bff7
 		fi
84bff7
 		;;
84bff7
 	    *)
84bff7
-	        os=netbsd
84bff7
+		os=netbsd
84bff7
 		;;
84bff7
 	esac
84bff7
 	# The OS release
84bff7
@@ -200,6 +200,10 @@
84bff7
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
84bff7
 	echo "${machine}-${os}${release}"
84bff7
 	exit ;;
84bff7
+    *:Bitrig:*:*)
84bff7
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
84bff7
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
     *:OpenBSD:*:*)
84bff7
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
84bff7
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
84bff7
@@ -222,7 +226,7 @@
84bff7
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
84bff7
 		;;
84bff7
 	*5.*)
84bff7
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
84bff7
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
84bff7
 		;;
84bff7
 	esac
84bff7
 	# According to Compaq, /usr/sbin/psrinfo has been available on
84bff7
@@ -268,7 +272,10 @@
84bff7
 	# A Xn.n version is an unreleased experimental baselevel.
84bff7
 	# 1.2 uses "1.2" for uname -r.
84bff7
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
84bff7
-	exit ;;
84bff7
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
84bff7
+	exitcode=$?
84bff7
+	trap '' 0
84bff7
+	exit $exitcode ;;
84bff7
     Alpha\ *:Windows_NT*:*)
84bff7
 	# How do we know it's Interix rather than the generic POSIX subsystem?
84bff7
 	# Should we change UNAME_MACHINE based on the output of uname instead
84bff7
@@ -294,12 +301,12 @@
84bff7
 	echo s390-ibm-zvmoe
84bff7
 	exit ;;
84bff7
     *:OS400:*:*)
84bff7
-        echo powerpc-ibm-os400
84bff7
+	echo powerpc-ibm-os400
84bff7
 	exit ;;
84bff7
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
84bff7
 	echo arm-acorn-riscix${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
-    arm:riscos:*:*|arm:RISCOS:*:*)
84bff7
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
84bff7
 	echo arm-unknown-riscos
84bff7
 	exit ;;
84bff7
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
84bff7
@@ -323,14 +330,33 @@
84bff7
 	case `/usr/bin/uname -p` in
84bff7
 	    sparc) echo sparc-icl-nx7; exit ;;
84bff7
 	esac ;;
84bff7
+    s390x:SunOS:*:*)
84bff7
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
84bff7
+	exit ;;
84bff7
     sun4H:SunOS:5.*:*)
84bff7
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
84bff7
 	exit ;;
84bff7
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
84bff7
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
84bff7
 	exit ;;
84bff7
-    i86pc:SunOS:5.*:*)
84bff7
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
84bff7
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
84bff7
+	echo i386-pc-auroraux${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
84bff7
+	eval $set_cc_for_build
84bff7
+	SUN_ARCH="i386"
84bff7
+	# If there is a compiler, see if it is configured for 64-bit objects.
84bff7
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
84bff7
+	# This test works for both compilers.
84bff7
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
84bff7
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
84bff7
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
84bff7
+		grep IS_64BIT_ARCH >/dev/null
84bff7
+	    then
84bff7
+		SUN_ARCH="x86_64"
84bff7
+	    fi
84bff7
+	fi
84bff7
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
84bff7
 	exit ;;
84bff7
     sun4*:SunOS:6*:*)
84bff7
 	# According to config.sub, this is the proper way to canonicalize
84bff7
@@ -374,23 +400,23 @@
84bff7
     # MiNT.  But MiNT is downward compatible to TOS, so this should
84bff7
     # be no problem.
84bff7
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
84bff7
-        echo m68k-atari-mint${UNAME_RELEASE}
84bff7
+	echo m68k-atari-mint${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
84bff7
 	echo m68k-atari-mint${UNAME_RELEASE}
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
84bff7
-        echo m68k-atari-mint${UNAME_RELEASE}
84bff7
+	echo m68k-atari-mint${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
84bff7
-        echo m68k-milan-mint${UNAME_RELEASE}
84bff7
-        exit ;;
84bff7
+	echo m68k-milan-mint${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
84bff7
-        echo m68k-hades-mint${UNAME_RELEASE}
84bff7
-        exit ;;
84bff7
+	echo m68k-hades-mint${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
84bff7
-        echo m68k-unknown-mint${UNAME_RELEASE}
84bff7
-        exit ;;
84bff7
+	echo m68k-unknown-mint${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
     m68k:machten:*:*)
84bff7
 	echo m68k-apple-machten${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
@@ -460,8 +486,8 @@
84bff7
 	echo m88k-motorola-sysv3
84bff7
 	exit ;;
84bff7
     AViiON:dgux:*:*)
84bff7
-        # DG/UX returns AViiON for all architectures
84bff7
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
84bff7
+	# DG/UX returns AViiON for all architectures
84bff7
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
84bff7
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
84bff7
 	then
84bff7
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
84bff7
@@ -474,7 +500,7 @@
84bff7
 	else
84bff7
 	    echo i586-dg-dgux${UNAME_RELEASE}
84bff7
 	fi
84bff7
- 	exit ;;
84bff7
+	exit ;;
84bff7
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
84bff7
 	echo m88k-dolphin-sysv3
84bff7
 	exit ;;
84bff7
@@ -531,7 +557,7 @@
84bff7
 		echo rs6000-ibm-aix3.2
84bff7
 	fi
84bff7
 	exit ;;
84bff7
-    *:AIX:*:[45])
84bff7
+    *:AIX:*:[4567])
84bff7
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
84bff7
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
84bff7
 		IBM_ARCH=rs6000
84bff7
@@ -574,52 +600,52 @@
84bff7
 	    9000/[678][0-9][0-9])
84bff7
 		if [ -x /usr/bin/getconf ]; then
84bff7
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
84bff7
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
84bff7
-                    case "${sc_cpu_version}" in
84bff7
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
84bff7
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
84bff7
-                      532)                      # CPU_PA_RISC2_0
84bff7
-                        case "${sc_kernel_bits}" in
84bff7
-                          32) HP_ARCH="hppa2.0n" ;;
84bff7
-                          64) HP_ARCH="hppa2.0w" ;;
84bff7
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
84bff7
+		    case "${sc_cpu_version}" in
84bff7
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
84bff7
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
84bff7
+		      532)                      # CPU_PA_RISC2_0
84bff7
+			case "${sc_kernel_bits}" in
84bff7
+			  32) HP_ARCH="hppa2.0n" ;;
84bff7
+			  64) HP_ARCH="hppa2.0w" ;;
84bff7
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
84bff7
-                        esac ;;
84bff7
-                    esac
84bff7
+			esac ;;
84bff7
+		    esac
84bff7
 		fi
84bff7
 		if [ "${HP_ARCH}" = "" ]; then
84bff7
 		    eval $set_cc_for_build
84bff7
-		    sed 's/^              //' << EOF >$dummy.c
84bff7
+		    sed 's/^		//' << EOF >$dummy.c
84bff7
 
84bff7
-              #define _HPUX_SOURCE
84bff7
-              #include <stdlib.h>
84bff7
-              #include <unistd.h>
84bff7
-
84bff7
-              int main ()
84bff7
-              {
84bff7
-              #if defined(_SC_KERNEL_BITS)
84bff7
-                  long bits = sysconf(_SC_KERNEL_BITS);
84bff7
-              #endif
84bff7
-                  long cpu  = sysconf (_SC_CPU_VERSION);
84bff7
-
84bff7
-                  switch (cpu)
84bff7
-              	{
84bff7
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
84bff7
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
84bff7
-              	case CPU_PA_RISC2_0:
84bff7
-              #if defined(_SC_KERNEL_BITS)
84bff7
-              	    switch (bits)
84bff7
-              		{
84bff7
-              		case 64: puts ("hppa2.0w"); break;
84bff7
-              		case 32: puts ("hppa2.0n"); break;
84bff7
-              		default: puts ("hppa2.0"); break;
84bff7
-              		} break;
84bff7
-              #else  /* !defined(_SC_KERNEL_BITS) */
84bff7
-              	    puts ("hppa2.0"); break;
84bff7
-              #endif
84bff7
-              	default: puts ("hppa1.0"); break;
84bff7
-              	}
84bff7
-                  exit (0);
84bff7
-              }
84bff7
+		#define _HPUX_SOURCE
84bff7
+		#include <stdlib.h>
84bff7
+		#include <unistd.h>
84bff7
+
84bff7
+		int main ()
84bff7
+		{
84bff7
+		#if defined(_SC_KERNEL_BITS)
84bff7
+		    long bits = sysconf(_SC_KERNEL_BITS);
84bff7
+		#endif
84bff7
+		    long cpu  = sysconf (_SC_CPU_VERSION);
84bff7
+
84bff7
+		    switch (cpu)
84bff7
+			{
84bff7
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
84bff7
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
84bff7
+			case CPU_PA_RISC2_0:
84bff7
+		#if defined(_SC_KERNEL_BITS)
84bff7
+			    switch (bits)
84bff7
+				{
84bff7
+				case 64: puts ("hppa2.0w"); break;
84bff7
+				case 32: puts ("hppa2.0n"); break;
84bff7
+				default: puts ("hppa2.0"); break;
84bff7
+				} break;
84bff7
+		#else  /* !defined(_SC_KERNEL_BITS) */
84bff7
+			    puts ("hppa2.0"); break;
84bff7
+		#endif
84bff7
+			default: puts ("hppa1.0"); break;
84bff7
+			}
84bff7
+		    exit (0);
84bff7
+		}
84bff7
 EOF
84bff7
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
84bff7
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
84bff7
@@ -639,7 +665,7 @@
84bff7
 	    # => hppa64-hp-hpux11.23
84bff7
 
84bff7
 	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
84bff7
-		grep __LP64__ >/dev/null
84bff7
+		grep -q __LP64__
84bff7
 	    then
84bff7
 		HP_ARCH="hppa2.0w"
84bff7
 	    else
84bff7
@@ -710,22 +736,22 @@
84bff7
 	exit ;;
84bff7
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
84bff7
 	echo c1-convex-bsd
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
84bff7
 	if getsysinfo -f scalar_acc
84bff7
 	then echo c32-convex-bsd
84bff7
 	else echo c2-convex-bsd
84bff7
 	fi
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
84bff7
 	echo c34-convex-bsd
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
84bff7
 	echo c38-convex-bsd
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
84bff7
 	echo c4-convex-bsd
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     CRAY*Y-MP:*:*:*)
84bff7
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
84bff7
 	exit ;;
84bff7
@@ -749,14 +775,14 @@
84bff7
 	exit ;;
84bff7
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
84bff7
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
84bff7
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
84bff7
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
84bff7
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
84bff7
-        exit ;;
84bff7
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
84bff7
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
84bff7
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
84bff7
+	exit ;;
84bff7
     5000:UNIX_System_V:4.*:*)
84bff7
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
84bff7
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
84bff7
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
84bff7
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
84bff7
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
84bff7
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
84bff7
 	exit ;;
84bff7
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
84bff7
@@ -768,37 +794,51 @@
84bff7
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     *:FreeBSD:*:*)
84bff7
-	case ${UNAME_MACHINE} in
84bff7
-	    pc98)
84bff7
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
84bff7
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
84bff7
+	case ${UNAME_PROCESSOR} in
84bff7
 	    amd64)
84bff7
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
84bff7
 	    *)
84bff7
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
84bff7
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
84bff7
 	esac
84bff7
 	exit ;;
84bff7
     i*:CYGWIN*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-cygwin
84bff7
 	exit ;;
84bff7
-    i*:MINGW*:*)
84bff7
+    *:MINGW64*:*)
84bff7
+	echo ${UNAME_MACHINE}-pc-mingw64
84bff7
+	exit ;;
84bff7
+    *:MINGW*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-mingw32
84bff7
 	exit ;;
84bff7
+    i*:MSYS*:*)
84bff7
+	echo ${UNAME_MACHINE}-pc-msys
84bff7
+	exit ;;
84bff7
     i*:windows32*:*)
84bff7
-    	# uname -m includes "-pc" on this system.
84bff7
-    	echo ${UNAME_MACHINE}-mingw32
84bff7
+	# uname -m includes "-pc" on this system.
84bff7
+	echo ${UNAME_MACHINE}-mingw32
84bff7
 	exit ;;
84bff7
     i*:PW*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-pw32
84bff7
 	exit ;;
84bff7
-    x86:Interix*:[3456]*)
84bff7
-	echo i586-pc-interix${UNAME_RELEASE}
84bff7
-	exit ;;
84bff7
-    EM64T:Interix*:[3456]*)
84bff7
-	echo x86_64-unknown-interix${UNAME_RELEASE}
84bff7
-	exit ;;
84bff7
+    *:Interix*:*)
84bff7
+	case ${UNAME_MACHINE} in
84bff7
+	    x86)
84bff7
+		echo i586-pc-interix${UNAME_RELEASE}
84bff7
+		exit ;;
84bff7
+	    authenticamd | genuineintel | EM64T)
84bff7
+		echo x86_64-unknown-interix${UNAME_RELEASE}
84bff7
+		exit ;;
84bff7
+	    IA64)
84bff7
+		echo ia64-unknown-interix${UNAME_RELEASE}
84bff7
+		exit ;;
84bff7
+	esac ;;
84bff7
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
84bff7
 	echo i${UNAME_MACHINE}-pc-mks
84bff7
 	exit ;;
84bff7
+    8664:Windows_NT:*)
84bff7
+	echo x86_64-pc-mks
84bff7
+	exit ;;
84bff7
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
84bff7
 	# How do we know it's Interix rather than the generic POSIX subsystem?
84bff7
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
84bff7
@@ -828,20 +868,68 @@
84bff7
     i*86:Minix:*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-minix
84bff7
 	exit ;;
84bff7
-    arm*:Linux:*:*)
84bff7
+    aarch64:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
+    aarch64_be:Linux:*:*)
84bff7
+	UNAME_MACHINE=aarch64_be
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
+    alpha:Linux:*:*)
84bff7
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
84bff7
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
84bff7
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
84bff7
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
84bff7
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
84bff7
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
84bff7
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
84bff7
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
84bff7
+	esac
84bff7
+	objdump --private-headers /bin/sh | grep -q ld.so.1
84bff7
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
84bff7
+	exit ;;
84bff7
+    arm*:Linux:*:*)
84bff7
+	eval $set_cc_for_build
84bff7
+	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
84bff7
+	    | grep -q __ARM_EABI__
84bff7
+	then
84bff7
+	    echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	else
84bff7
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
84bff7
+		| grep -q __ARM_PCS_VFP
84bff7
+	    then
84bff7
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
84bff7
+	    else
84bff7
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
84bff7
+	    fi
84bff7
+	fi
84bff7
+	exit ;;
84bff7
     avr32*:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
     cris:Linux:*:*)
84bff7
-	echo cris-axis-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-axis-linux-gnu
84bff7
 	exit ;;
84bff7
     crisv32:Linux:*:*)
84bff7
-	echo crisv32-axis-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-axis-linux-gnu
84bff7
 	exit ;;
84bff7
     frv:Linux:*:*)
84bff7
-    	echo frv-unknown-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
+    hexagon:Linux:*:*)
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
+    i*86:Linux:*:*)
84bff7
+	LIBC=gnu
84bff7
+	eval $set_cc_for_build
84bff7
+	sed 's/^	//' << EOF >$dummy.c
84bff7
+	#ifdef __dietlibc__
84bff7
+	LIBC=dietlibc
84bff7
+	#endif
84bff7
+EOF
84bff7
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
84bff7
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
84bff7
 	exit ;;
84bff7
     ia64:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
@@ -852,74 +940,33 @@
84bff7
     m68*:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
-    mips:Linux:*:*)
84bff7
-	eval $set_cc_for_build
84bff7
-	sed 's/^	//' << EOF >$dummy.c
84bff7
-	#undef CPU
84bff7
-	#undef mips
84bff7
-	#undef mipsel
84bff7
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
84bff7
-	CPU=mipsel
84bff7
-	#else
84bff7
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
84bff7
-	CPU=mips
84bff7
-	#else
84bff7
-	CPU=
84bff7
-	#endif
84bff7
-	#endif
84bff7
-EOF
84bff7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
84bff7
-	    /^CPU/{
84bff7
-		s: ::g
84bff7
-		p
84bff7
-	    }'`"
84bff7
-	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
84bff7
-	;;
84bff7
-    mips64:Linux:*:*)
84bff7
+    mips:Linux:*:* | mips64:Linux:*:*)
84bff7
 	eval $set_cc_for_build
84bff7
 	sed 's/^	//' << EOF >$dummy.c
84bff7
 	#undef CPU
84bff7
-	#undef mips64
84bff7
-	#undef mips64el
84bff7
+	#undef ${UNAME_MACHINE}
84bff7
+	#undef ${UNAME_MACHINE}el
84bff7
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
84bff7
-	CPU=mips64el
84bff7
+	CPU=${UNAME_MACHINE}el
84bff7
 	#else
84bff7
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
84bff7
-	CPU=mips64
84bff7
+	CPU=${UNAME_MACHINE}
84bff7
 	#else
84bff7
 	CPU=
84bff7
 	#endif
84bff7
 	#endif
84bff7
 EOF
84bff7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
84bff7
-	    /^CPU/{
84bff7
-		s: ::g
84bff7
-		p
84bff7
-	    }'`"
84bff7
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
84bff7
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
84bff7
 	;;
84bff7
     or32:Linux:*:*)
84bff7
-	echo or32-unknown-linux-gnu
84bff7
-	exit ;;
84bff7
-    ppc:Linux:*:*)
84bff7
-	echo powerpc-unknown-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
-    ppc64:Linux:*:*)
84bff7
-	echo powerpc64-unknown-linux-gnu
84bff7
+    padre:Linux:*:*)
84bff7
+	echo sparc-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
-    alpha:Linux:*:*)
84bff7
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
84bff7
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
84bff7
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
84bff7
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
84bff7
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
84bff7
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
84bff7
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
84bff7
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
84bff7
-        esac
84bff7
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
84bff7
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
84bff7
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
84bff7
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
84bff7
+	echo hppa64-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
     parisc:Linux:*:* | hppa:Linux:*:*)
84bff7
 	# Look for CPU level
84bff7
@@ -929,14 +976,17 @@
84bff7
 	  *)    echo hppa-unknown-linux-gnu ;;
84bff7
 	esac
84bff7
 	exit ;;
84bff7
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
84bff7
-	echo hppa64-unknown-linux-gnu
84bff7
+    ppc64:Linux:*:*)
84bff7
+	echo powerpc64-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
+    ppc:Linux:*:*)
84bff7
+	echo powerpc-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
     s390:Linux:*:* | s390x:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-ibm-linux
84bff7
 	exit ;;
84bff7
     sh64*:Linux:*:*)
84bff7
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
     sh*:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
@@ -944,75 +994,18 @@
84bff7
     sparc:Linux:*:* | sparc64:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
+    tile*:Linux:*:*)
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
     vax:Linux:*:*)
84bff7
 	echo ${UNAME_MACHINE}-dec-linux-gnu
84bff7
 	exit ;;
84bff7
     x86_64:Linux:*:*)
84bff7
-	echo x86_64-unknown-linux-gnu
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
+	exit ;;
84bff7
+    xtensa*:Linux:*:*)
84bff7
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
84bff7
 	exit ;;
84bff7
-    i*86:Linux:*:*)
84bff7
-	# The BFD linker knows what the default object file format is, so
84bff7
-	# first see if it will tell us. cd to the root directory to prevent
84bff7
-	# problems with other programs or directories called `ld' in the path.
84bff7
-	# Set LC_ALL=C to ensure ld outputs messages in English.
84bff7
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
84bff7
-			 | sed -ne '/supported targets:/!d
84bff7
-				    s/[ 	][ 	]*/ /g
84bff7
-				    s/.*supported targets: *//
84bff7
-				    s/ .*//
84bff7
-				    p'`
84bff7
-        case "$ld_supported_targets" in
84bff7
-	  elf32-i386)
84bff7
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
84bff7
-		;;
84bff7
-	  a.out-i386-linux)
84bff7
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
84bff7
-		exit ;;
84bff7
-	  coff-i386)
84bff7
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
84bff7
-		exit ;;
84bff7
-	  "")
84bff7
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
84bff7
-		# one that does not give us useful --help.
84bff7
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
84bff7
-		exit ;;
84bff7
-	esac
84bff7
-	# Determine whether the default compiler is a.out or elf
84bff7
-	eval $set_cc_for_build
84bff7
-	sed 's/^	//' << EOF >$dummy.c
84bff7
-	#include <features.h>
84bff7
-	#ifdef __ELF__
84bff7
-	# ifdef __GLIBC__
84bff7
-	#  if __GLIBC__ >= 2
84bff7
-	LIBC=gnu
84bff7
-	#  else
84bff7
-	LIBC=gnulibc1
84bff7
-	#  endif
84bff7
-	# else
84bff7
-	LIBC=gnulibc1
84bff7
-	# endif
84bff7
-	#else
84bff7
-	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
84bff7
-	LIBC=gnu
84bff7
-	#else
84bff7
-	LIBC=gnuaout
84bff7
-	#endif
84bff7
-	#endif
84bff7
-	#ifdef __dietlibc__
84bff7
-	LIBC=dietlibc
84bff7
-	#endif
84bff7
-EOF
84bff7
-	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
84bff7
-	    /^LIBC/{
84bff7
-		s: ::g
84bff7
-		p
84bff7
-	    }'`"
84bff7
-	test x"${LIBC}" != x && {
84bff7
-		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
84bff7
-		exit
84bff7
-	}
84bff7
-	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
84bff7
-	;;
84bff7
     i*86:DYNIX/ptx:4*:*)
84bff7
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
84bff7
 	# earlier versions are messed up and put the nodename in both
84bff7
@@ -1020,11 +1013,11 @@
84bff7
 	echo i386-sequent-sysv4
84bff7
 	exit ;;
84bff7
     i*86:UNIX_SV:4.2MP:2.*)
84bff7
-        # Unixware is an offshoot of SVR4, but it has its own version
84bff7
-        # number series starting with 2...
84bff7
-        # I am not positive that other SVR4 systems won't match this,
84bff7
+	# Unixware is an offshoot of SVR4, but it has its own version
84bff7
+	# number series starting with 2...
84bff7
+	# I am not positive that other SVR4 systems won't match this,
84bff7
 	# I just have to hope.  -- rms.
84bff7
-        # Use sysv4.2uw... so that sysv4* matches it.
84bff7
+	# Use sysv4.2uw... so that sysv4* matches it.
84bff7
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
84bff7
 	exit ;;
84bff7
     i*86:OS/2:*:*)
84bff7
@@ -1041,7 +1034,7 @@
84bff7
     i*86:syllable:*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-syllable
84bff7
 	exit ;;
84bff7
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
84bff7
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
84bff7
 	echo i386-unknown-lynxos${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     i*86:*DOS:*:*)
84bff7
@@ -1056,7 +1049,7 @@
84bff7
 	fi
84bff7
 	exit ;;
84bff7
     i*86:*:5:[678]*)
84bff7
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
84bff7
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
84bff7
 	case `/bin/uname -X | grep "^Machine"` in
84bff7
 	    *486*)	     UNAME_MACHINE=i486 ;;
84bff7
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
84bff7
@@ -1084,10 +1077,13 @@
84bff7
 	exit ;;
84bff7
     pc:*:*:*)
84bff7
 	# Left here for compatibility:
84bff7
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
84bff7
-        # the processor, so we play safe by assuming i386.
84bff7
-	echo i386-pc-msdosdjgpp
84bff7
-        exit ;;
84bff7
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
84bff7
+	# the processor, so we play safe by assuming i586.
84bff7
+	# Note: whatever this is, it MUST be the same as what config.sub
84bff7
+	# prints for the "djgpp" host, or else GDB configury will decide that
84bff7
+	# this is a cross-build.
84bff7
+	echo i586-pc-msdosdjgpp
84bff7
+	exit ;;
84bff7
     Intel:Mach:3*:*)
84bff7
 	echo i386-pc-mach3
84bff7
 	exit ;;
84bff7
@@ -1122,8 +1118,18 @@
84bff7
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
84bff7
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
84bff7
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
84bff7
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
84bff7
-          && { echo i486-ncr-sysv4; exit; } ;;
84bff7
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
84bff7
+	  && { echo i486-ncr-sysv4; exit; } ;;
84bff7
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
84bff7
+	OS_REL='.3'
84bff7
+	test -r /etc/.relid \
84bff7
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
84bff7
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
84bff7
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
84bff7
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
84bff7
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
84bff7
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
84bff7
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
84bff7
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
84bff7
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
@@ -1136,7 +1142,7 @@
84bff7
     rs6000:LynxOS:2.*:*)
84bff7
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
84bff7
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
84bff7
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     SM[BE]S:UNIX_SV:*:*)
84bff7
@@ -1156,10 +1162,10 @@
84bff7
 		echo ns32k-sni-sysv
84bff7
 	fi
84bff7
 	exit ;;
84bff7
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
84bff7
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
84bff7
-        echo i586-unisys-sysv4
84bff7
-        exit ;;
84bff7
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
84bff7
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
84bff7
+	echo i586-unisys-sysv4
84bff7
+	exit ;;
84bff7
     *:UNIX_System_V:4*:FTX*)
84bff7
 	# From Gerald Hewes <hewes@openmarket.com>.
84bff7
 	# How about differentiating between stratus architectures? -djm
84bff7
@@ -1185,11 +1191,11 @@
84bff7
 	exit ;;
84bff7
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
84bff7
 	if [ -d /usr/nec ]; then
84bff7
-	        echo mips-nec-sysv${UNAME_RELEASE}
84bff7
+		echo mips-nec-sysv${UNAME_RELEASE}
84bff7
 	else
84bff7
-	        echo mips-unknown-sysv${UNAME_RELEASE}
84bff7
+		echo mips-unknown-sysv${UNAME_RELEASE}
84bff7
 	fi
84bff7
-        exit ;;
84bff7
+	exit ;;
84bff7
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
84bff7
 	echo powerpc-be-beos
84bff7
 	exit ;;
84bff7
@@ -1199,6 +1205,12 @@
84bff7
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
84bff7
 	echo i586-pc-beos
84bff7
 	exit ;;
84bff7
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
84bff7
+	echo i586-pc-haiku
84bff7
+	exit ;;
84bff7
+    x86_64:Haiku:*:*)
84bff7
+	echo x86_64-unknown-haiku
84bff7
+	exit ;;
84bff7
     SX-4:SUPER-UX:*:*)
84bff7
 	echo sx4-nec-superux${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
@@ -1208,6 +1220,15 @@
84bff7
     SX-6:SUPER-UX:*:*)
84bff7
 	echo sx6-nec-superux${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
+    SX-7:SUPER-UX:*:*)
84bff7
+	echo sx7-nec-superux${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
+    SX-8:SUPER-UX:*:*)
84bff7
+	echo sx8-nec-superux${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
+    SX-8R:SUPER-UX:*:*)
84bff7
+	echo sx8r-nec-superux${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
     Power*:Rhapsody:*:*)
84bff7
 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
@@ -1217,6 +1238,16 @@
84bff7
     *:Darwin:*:*)
84bff7
 	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
84bff7
 	case $UNAME_PROCESSOR in
84bff7
+	    i386)
84bff7
+		eval $set_cc_for_build
84bff7
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
84bff7
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
84bff7
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
84bff7
+		      grep IS_64BIT_ARCH >/dev/null
84bff7
+		  then
84bff7
+		      UNAME_PROCESSOR="x86_64"
84bff7
+		  fi
84bff7
+		fi ;;
84bff7
 	    unknown) UNAME_PROCESSOR=powerpc ;;
84bff7
 	esac
84bff7
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
84bff7
@@ -1232,7 +1263,10 @@
84bff7
     *:QNX:*:4*)
84bff7
 	echo i386-pc-qnx
84bff7
 	exit ;;
84bff7
-    NSE-?:NONSTOP_KERNEL:*:*)
84bff7
+    NEO-?:NONSTOP_KERNEL:*:*)
84bff7
+	echo neo-tandem-nsk${UNAME_RELEASE}
84bff7
+	exit ;;
84bff7
+    NSE-*:NONSTOP_KERNEL:*:*)
84bff7
 	echo nse-tandem-nsk${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     NSR-?:NONSTOP_KERNEL:*:*)
84bff7
@@ -1277,13 +1311,13 @@
84bff7
 	echo pdp10-unknown-its
84bff7
 	exit ;;
84bff7
     SEI:*:*:SEIUX)
84bff7
-        echo mips-sei-seiux${UNAME_RELEASE}
84bff7
+	echo mips-sei-seiux${UNAME_RELEASE}
84bff7
 	exit ;;
84bff7
     *:DragonFly:*:*)
84bff7
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
84bff7
 	exit ;;
84bff7
     *:*VMS:*:*)
84bff7
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
84bff7
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
84bff7
 	case "${UNAME_MACHINE}" in
84bff7
 	    A*) echo alpha-dec-vms ; exit ;;
84bff7
 	    I*) echo ia64-dec-vms ; exit ;;
84bff7
@@ -1298,11 +1332,14 @@
84bff7
     i*86:rdos:*:*)
84bff7
 	echo ${UNAME_MACHINE}-pc-rdos
84bff7
 	exit ;;
84bff7
+    i*86:AROS:*:*)
84bff7
+	echo ${UNAME_MACHINE}-pc-aros
84bff7
+	exit ;;
84bff7
+    x86_64:VMkernel:*:*)
84bff7
+	echo ${UNAME_MACHINE}-unknown-esx
84bff7
+	exit ;;
84bff7
 esac
84bff7
 
84bff7
-#echo '(No uname command or uname output not recognized.)' 1>&2
84bff7
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
84bff7
-
84bff7
 eval $set_cc_for_build
84bff7
 cat >$dummy.c <
84bff7
 #ifdef _SEQUENT_
84bff7
@@ -1320,11 +1357,11 @@
84bff7
 #include <sys/param.h>
84bff7
   printf ("m68k-sony-newsos%s\n",
84bff7
 #ifdef NEWSOS4
84bff7
-          "4"
84bff7
+	"4"
84bff7
 #else
84bff7
-	  ""
84bff7
+	""
84bff7
 #endif
84bff7
-         ); exit (0);
84bff7
+	); exit (0);
84bff7
 #endif
84bff7
 #endif
84bff7
 
84bff7
@@ -1458,9 +1495,9 @@
84bff7
 the operating system you are using. It is advised that you
84bff7
 download the most up to date version of the config scripts from
84bff7
 
84bff7
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
84bff7
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
84bff7
 and
84bff7
-  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
84bff7
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
84bff7
 
84bff7
 If the version you run ($0) is already up to date, please
84bff7
 send the following data and any information you think might be
84bff7
diff -urN speex-1.2rc1/config.sub speex-1.2rc1-aarch64/config.sub
84bff7
--- speex-1.2rc1/config.sub	2006-11-08 01:44:58.000000000 -0600
84bff7
+++ speex-1.2rc1-aarch64/config.sub	2013-03-08 08:07:49.089007560 -0600
84bff7
@@ -1,10 +1,10 @@
84bff7
 #! /bin/sh
84bff7
 # Configuration validation subroutine script.
84bff7
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
84bff7
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
84bff7
-#   Inc.
84bff7
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
84bff7
+#   2011, 2012 Free Software Foundation, Inc.
84bff7
 
84bff7
-timestamp='2006-09-20'
84bff7
+timestamp='2012-10-10'
84bff7
 
84bff7
 # This file is (in principle) common to ALL GNU software.
84bff7
 # The presence of a machine in this file suggests that SOME GNU software
84bff7
@@ -21,9 +21,7 @@
84bff7
 # GNU General Public License for more details.
84bff7
 #
84bff7
 # You should have received a copy of the GNU General Public License
84bff7
-# along with this program; if not, write to the Free Software
84bff7
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
84bff7
-# 02110-1301, USA.
84bff7
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
84bff7
 #
84bff7
 # As a special exception to the GNU General Public License, if you
84bff7
 # distribute this file as part of a program that contains a
84bff7
@@ -32,13 +30,16 @@
84bff7
 
84bff7
 
84bff7
 # Please send patches to <config-patches@gnu.org>.  Submit a context
84bff7
-# diff and a properly formatted ChangeLog entry.
84bff7
+# diff and a properly formatted GNU ChangeLog entry.
84bff7
 #
84bff7
 # Configuration subroutine to validate and canonicalize a configuration type.
84bff7
 # Supply the specified configuration type as an argument.
84bff7
 # If it is invalid, we print an error message on stderr and exit with code 1.
84bff7
 # Otherwise, we print the canonical config type on stdout and succeed.
84bff7
 
84bff7
+# You can get the latest version of this script from:
84bff7
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
84bff7
+
84bff7
 # This file is supposed to be the same for all GNU packages
84bff7
 # and recognize all the CPU types, system types and aliases
84bff7
 # that are meaningful with *any* GNU software.
84bff7
@@ -72,7 +73,8 @@
84bff7
 version="\
84bff7
 GNU config.sub ($timestamp)
84bff7
 
84bff7
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
84bff7
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
84bff7
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
84bff7
 Free Software Foundation, Inc.
84bff7
 
84bff7
 This is free software; see the source for copying conditions.  There is NO
84bff7
@@ -120,12 +122,18 @@
84bff7
 # Here we must recognize all the valid KERNEL-OS combinations.
84bff7
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
84bff7
 case $maybe_os in
84bff7
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
84bff7
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
84bff7
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
84bff7
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
84bff7
+  knetbsd*-gnu* | netbsd*-gnu* | \
84bff7
+  kopensolaris*-gnu* | \
84bff7
   storm-chaos* | os2-emx* | rtmk-nova*)
84bff7
     os=-$maybe_os
84bff7
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
84bff7
     ;;
84bff7
+  android-linux)
84bff7
+    os=-linux-android
84bff7
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
84bff7
+    ;;
84bff7
   *)
84bff7
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
84bff7
     if [ $basic_machine != $1 ]
84bff7
@@ -148,10 +156,13 @@
84bff7
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
84bff7
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
84bff7
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
84bff7
-	-apple | -axis | -knuth | -cray)
84bff7
+	-apple | -axis | -knuth | -cray | -microblaze*)
84bff7
 		os=
84bff7
 		basic_machine=$1
84bff7
 		;;
84bff7
+	-bluegene*)
84bff7
+		os=-cnk
84bff7
+		;;
84bff7
 	-sim | -cisco | -oki | -wec | -winbond)
84bff7
 		os=
84bff7
 		basic_machine=$1
84bff7
@@ -166,10 +177,10 @@
84bff7
 		os=-chorusos
84bff7
 		basic_machine=$1
84bff7
 		;;
84bff7
- 	-chorusrdb)
84bff7
- 		os=-chorusrdb
84bff7
+	-chorusrdb)
84bff7
+		os=-chorusrdb
84bff7
 		basic_machine=$1
84bff7
- 		;;
84bff7
+		;;
84bff7
 	-hiux*)
84bff7
 		os=-hiuxwe2
84bff7
 		;;
84bff7
@@ -214,6 +225,12 @@
84bff7
 	-isc*)
84bff7
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
84bff7
 		;;
84bff7
+	-lynx*178)
84bff7
+		os=-lynxos178
84bff7
+		;;
84bff7
+	-lynx*5)
84bff7
+		os=-lynxos5
84bff7
+		;;
84bff7
 	-lynx*)
84bff7
 		os=-lynxos
84bff7
 		;;
84bff7
@@ -238,24 +255,32 @@
84bff7
 	# Some are omitted here because they have special meanings below.
84bff7
 	1750a | 580 \
84bff7
 	| a29k \
84bff7
+	| aarch64 | aarch64_be \
84bff7
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
84bff7
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
84bff7
 	| am33_2.0 \
84bff7
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
84bff7
+        | be32 | be64 \
84bff7
 	| bfin \
84bff7
 	| c4x | clipper \
84bff7
 	| d10v | d30v | dlx | dsp16xx \
84bff7
-	| fr30 | frv \
84bff7
+	| epiphany \
84bff7
+	| fido | fr30 | frv \
84bff7
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
84bff7
+	| hexagon \
84bff7
 	| i370 | i860 | i960 | ia64 \
84bff7
 	| ip2k | iq2000 \
84bff7
+	| le32 | le64 \
84bff7
+	| lm32 \
84bff7
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
84bff7
-	| maxq | mb | microblaze | mcore \
84bff7
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
84bff7
 	| mips | mipsbe | mipseb | mipsel | mipsle \
84bff7
 	| mips16 \
84bff7
 	| mips64 | mips64el \
84bff7
-	| mips64vr | mips64vrel \
84bff7
+	| mips64octeon | mips64octeonel \
84bff7
 	| mips64orion | mips64orionel \
84bff7
+	| mips64r5900 | mips64r5900el \
84bff7
+	| mips64vr | mips64vrel \
84bff7
 	| mips64vr4100 | mips64vr4100el \
84bff7
 	| mips64vr4300 | mips64vr4300el \
84bff7
 	| mips64vr5000 | mips64vr5000el \
84bff7
@@ -268,29 +293,42 @@
84bff7
 	| mipsisa64sr71k | mipsisa64sr71kel \
84bff7
 	| mipstx39 | mipstx39el \
84bff7
 	| mn10200 | mn10300 \
84bff7
+	| moxie \
84bff7
 	| mt \
84bff7
 	| msp430 \
84bff7
+	| nds32 | nds32le | nds32be \
84bff7
 	| nios | nios2 \
84bff7
 	| ns16k | ns32k \
84bff7
+	| open8 \
84bff7
 	| or32 \
84bff7
 	| pdp10 | pdp11 | pj | pjl \
84bff7
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
84bff7
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
84bff7
 	| pyramid \
84bff7
+	| rl78 | rx \
84bff7
 	| score \
84bff7
-	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
84bff7
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
84bff7
 	| sh64 | sh64le \
84bff7
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
84bff7
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
84bff7
-	| spu | strongarm \
84bff7
-	| tahoe | thumb | tic4x | tic80 | tron \
84bff7
-	| v850 | v850e \
84bff7
+	| spu \
84bff7
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
84bff7
+	| ubicom32 \
84bff7
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
84bff7
 	| we32k \
84bff7
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
84bff7
-	| z8k)
84bff7
+	| x86 | xc16x | xstormy16 | xtensa \
84bff7
+	| z8k | z80)
84bff7
 		basic_machine=$basic_machine-unknown
84bff7
 		;;
84bff7
-	m6811 | m68hc11 | m6812 | m68hc12)
84bff7
-		# Motorola 68HC11/12.
84bff7
+	c54x)
84bff7
+		basic_machine=tic54x-unknown
84bff7
+		;;
84bff7
+	c55x)
84bff7
+		basic_machine=tic55x-unknown
84bff7
+		;;
84bff7
+	c6x)
84bff7
+		basic_machine=tic6x-unknown
84bff7
+		;;
84bff7
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
84bff7
 		basic_machine=$basic_machine-unknown
84bff7
 		os=-none
84bff7
 		;;
84bff7
@@ -300,6 +338,21 @@
84bff7
 		basic_machine=mt-unknown
84bff7
 		;;
84bff7
 
84bff7
+	strongarm | thumb | xscale)
84bff7
+		basic_machine=arm-unknown
84bff7
+		;;
84bff7
+	xgate)
84bff7
+		basic_machine=$basic_machine-unknown
84bff7
+		os=-none
84bff7
+		;;
84bff7
+	xscaleeb)
84bff7
+		basic_machine=armeb-unknown
84bff7
+		;;
84bff7
+
84bff7
+	xscaleel)
84bff7
+		basic_machine=armel-unknown
84bff7
+		;;
84bff7
+
84bff7
 	# We use `pc' rather than `unknown'
84bff7
 	# because (1) that's what they normally are, and
84bff7
 	# (2) the word "unknown" tends to confuse beginning users.
84bff7
@@ -314,29 +367,37 @@
84bff7
 	# Recognize the basic CPU types with company name.
84bff7
 	580-* \
84bff7
 	| a29k-* \
84bff7
+	| aarch64-* | aarch64_be-* \
84bff7
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
84bff7
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
84bff7
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
84bff7
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
84bff7
 	| avr-* | avr32-* \
84bff7
+	| be32-* | be64-* \
84bff7
 	| bfin-* | bs2000-* \
84bff7
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
84bff7
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
84bff7
 	| clipper-* | craynv-* | cydra-* \
84bff7
 	| d10v-* | d30v-* | dlx-* \
84bff7
 	| elxsi-* \
84bff7
-	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
84bff7
+	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
84bff7
 	| h8300-* | h8500-* \
84bff7
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
84bff7
+	| hexagon-* \
84bff7
 	| i*86-* | i860-* | i960-* | ia64-* \
84bff7
 	| ip2k-* | iq2000-* \
84bff7
+	| le32-* | le64-* \
84bff7
+	| lm32-* \
84bff7
 	| m32c-* | m32r-* | m32rle-* \
84bff7
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
84bff7
-	| m88110-* | m88k-* | maxq-* | mcore-* \
84bff7
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
84bff7
+	| microblaze-* | microblazeel-* \
84bff7
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
84bff7
 	| mips16-* \
84bff7
 	| mips64-* | mips64el-* \
84bff7
-	| mips64vr-* | mips64vrel-* \
84bff7
+	| mips64octeon-* | mips64octeonel-* \
84bff7
 	| mips64orion-* | mips64orionel-* \
84bff7
+	| mips64r5900-* | mips64r5900el-* \
84bff7
+	| mips64vr-* | mips64vrel-* \
84bff7
 	| mips64vr4100-* | mips64vr4100el-* \
84bff7
 	| mips64vr4300-* | mips64vr4300el-* \
84bff7
 	| mips64vr5000-* | mips64vr5000el-* \
84bff7
@@ -351,27 +412,36 @@
84bff7
 	| mmix-* \
84bff7
 	| mt-* \
84bff7
 	| msp430-* \
84bff7
+	| nds32-* | nds32le-* | nds32be-* \
84bff7
 	| nios-* | nios2-* \
84bff7
 	| none-* | np1-* | ns16k-* | ns32k-* \
84bff7
+	| open8-* \
84bff7
 	| orion-* \
84bff7
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
84bff7
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
84bff7
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
84bff7
 	| pyramid-* \
84bff7
-	| romp-* | rs6000-* \
84bff7
-	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
84bff7
+	| rl78-* | romp-* | rs6000-* | rx-* \
84bff7
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
84bff7
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
84bff7
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
84bff7
 	| sparclite-* \
84bff7
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
84bff7
-	| tahoe-* | thumb-* \
84bff7
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
84bff7
+	| tahoe-* \
84bff7
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
84bff7
+	| tile*-* \
84bff7
 	| tron-* \
84bff7
-	| v850-* | v850e-* | vax-* \
84bff7
+	| ubicom32-* \
84bff7
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
84bff7
+	| vax-* \
84bff7
 	| we32k-* \
84bff7
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
84bff7
-	| xstormy16-* | xtensa-* \
84bff7
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
84bff7
+	| xstormy16-* | xtensa*-* \
84bff7
 	| ymp-* \
84bff7
-	| z8k-*)
84bff7
+	| z8k-* | z80-*)
84bff7
+		;;
84bff7
+	# Recognize the basic CPU types without company name, with glob match.
84bff7
+	xtensa*)
84bff7
+		basic_machine=$basic_machine-unknown
84bff7
 		;;
84bff7
 	# Recognize the various machine names and aliases which stand
84bff7
 	# for a CPU type and a company and sometimes even an OS.
84bff7
@@ -389,7 +459,7 @@
84bff7
 		basic_machine=a29k-amd
84bff7
 		os=-udi
84bff7
 		;;
84bff7
-    	abacus)
84bff7
+	abacus)
84bff7
 		basic_machine=abacus-unknown
84bff7
 		;;
84bff7
 	adobe68k)
84bff7
@@ -435,6 +505,10 @@
84bff7
 		basic_machine=m68k-apollo
84bff7
 		os=-bsd
84bff7
 		;;
84bff7
+	aros)
84bff7
+		basic_machine=i386-pc
84bff7
+		os=-aros
84bff7
+		;;
84bff7
 	aux)
84bff7
 		basic_machine=m68k-apple
84bff7
 		os=-aux
84bff7
@@ -443,10 +517,35 @@
84bff7
 		basic_machine=ns32k-sequent
84bff7
 		os=-dynix
84bff7
 		;;
84bff7
+	blackfin)
84bff7
+		basic_machine=bfin-unknown
84bff7
+		os=-linux
84bff7
+		;;
84bff7
+	blackfin-*)
84bff7
+		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		os=-linux
84bff7
+		;;
84bff7
+	bluegene*)
84bff7
+		basic_machine=powerpc-ibm
84bff7
+		os=-cnk
84bff7
+		;;
84bff7
+	c54x-*)
84bff7
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		;;
84bff7
+	c55x-*)
84bff7
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		;;
84bff7
+	c6x-*)
84bff7
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		;;
84bff7
 	c90)
84bff7
 		basic_machine=c90-cray
84bff7
 		os=-unicos
84bff7
 		;;
84bff7
+	cegcc)
84bff7
+		basic_machine=arm-unknown
84bff7
+		os=-cegcc
84bff7
+		;;
84bff7
 	convex-c1)
84bff7
 		basic_machine=c1-convex
84bff7
 		os=-bsd
84bff7
@@ -475,8 +574,8 @@
84bff7
 		basic_machine=craynv-cray
84bff7
 		os=-unicosmp
84bff7
 		;;
84bff7
-	cr16c)
84bff7
-		basic_machine=cr16c-unknown
84bff7
+	cr16 | cr16-*)
84bff7
+		basic_machine=cr16-unknown
84bff7
 		os=-elf
84bff7
 		;;
84bff7
 	crds | unos)
84bff7
@@ -514,6 +613,10 @@
84bff7
 		basic_machine=m88k-motorola
84bff7
 		os=-sysv3
84bff7
 		;;
84bff7
+	dicos)
84bff7
+		basic_machine=i686-pc
84bff7
+		os=-dicos
84bff7
+		;;
84bff7
 	djgpp)
84bff7
 		basic_machine=i586-pc
84bff7
 		os=-msdosdjgpp
84bff7
@@ -629,7 +732,6 @@
84bff7
 	i370-ibm* | ibm*)
84bff7
 		basic_machine=i370-ibm
84bff7
 		;;
84bff7
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
84bff7
 	i*86v32)
84bff7
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
84bff7
 		os=-sysv32
84bff7
@@ -668,6 +770,14 @@
84bff7
 		basic_machine=m68k-isi
84bff7
 		os=-sysv
84bff7
 		;;
84bff7
+	m68knommu)
84bff7
+		basic_machine=m68k-unknown
84bff7
+		os=-linux
84bff7
+		;;
84bff7
+	m68knommu-*)
84bff7
+		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		os=-linux
84bff7
+		;;
84bff7
 	m88k-omron*)
84bff7
 		basic_machine=m88k-omron
84bff7
 		;;
84bff7
@@ -679,10 +789,21 @@
84bff7
 		basic_machine=ns32k-utek
84bff7
 		os=-sysv
84bff7
 		;;
84bff7
+	microblaze*)
84bff7
+		basic_machine=microblaze-xilinx
84bff7
+		;;
84bff7
+	mingw64)
84bff7
+		basic_machine=x86_64-pc
84bff7
+		os=-mingw64
84bff7
+		;;
84bff7
 	mingw32)
84bff7
 		basic_machine=i386-pc
84bff7
 		os=-mingw32
84bff7
 		;;
84bff7
+	mingw32ce)
84bff7
+		basic_machine=arm-unknown
84bff7
+		os=-mingw32ce
84bff7
+		;;
84bff7
 	miniframe)
84bff7
 		basic_machine=m68000-convergent
84bff7
 		;;
84bff7
@@ -711,10 +832,18 @@
84bff7
 	ms1-*)
84bff7
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
84bff7
 		;;
84bff7
+	msys)
84bff7
+		basic_machine=i386-pc
84bff7
+		os=-msys
84bff7
+		;;
84bff7
 	mvs)
84bff7
 		basic_machine=i370-ibm
84bff7
 		os=-mvs
84bff7
 		;;
84bff7
+	nacl)
84bff7
+		basic_machine=le32-unknown
84bff7
+		os=-nacl
84bff7
+		;;
84bff7
 	ncr3000)
84bff7
 		basic_machine=i486-ncr
84bff7
 		os=-sysv4
84bff7
@@ -779,6 +908,12 @@
84bff7
 	np1)
84bff7
 		basic_machine=np1-gould
84bff7
 		;;
84bff7
+	neo-tandem)
84bff7
+		basic_machine=neo-tandem
84bff7
+		;;
84bff7
+	nse-tandem)
84bff7
+		basic_machine=nse-tandem
84bff7
+		;;
84bff7
 	nsr-tandem)
84bff7
 		basic_machine=nsr-tandem
84bff7
 		;;
84bff7
@@ -809,6 +944,14 @@
84bff7
 		basic_machine=i860-intel
84bff7
 		os=-osf
84bff7
 		;;
84bff7
+	parisc)
84bff7
+		basic_machine=hppa-unknown
84bff7
+		os=-linux
84bff7
+		;;
84bff7
+	parisc-*)
84bff7
+		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		os=-linux
84bff7
+		;;
84bff7
 	pbd)
84bff7
 		basic_machine=sparc-tti
84bff7
 		;;
84bff7
@@ -853,9 +996,10 @@
84bff7
 		;;
84bff7
 	power)	basic_machine=power-ibm
84bff7
 		;;
84bff7
-	ppc)	basic_machine=powerpc-unknown
84bff7
+	ppc | ppcbe)	basic_machine=powerpc-unknown
84bff7
 		;;
84bff7
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+	ppc-* | ppcbe-*)
84bff7
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
 		;;
84bff7
 	ppcle | powerpclittle | ppc-le | powerpc-little)
84bff7
 		basic_machine=powerpcle-unknown
84bff7
@@ -925,6 +1069,9 @@
84bff7
 		basic_machine=sh-hitachi
84bff7
 		os=-hms
84bff7
 		;;
84bff7
+	sh5el)
84bff7
+		basic_machine=sh5le-unknown
84bff7
+		;;
84bff7
 	sh64)
84bff7
 		basic_machine=sh64-unknown
84bff7
 		;;
84bff7
@@ -946,6 +1093,9 @@
84bff7
 		basic_machine=i860-stratus
84bff7
 		os=-sysv4
84bff7
 		;;
84bff7
+	strongarm-* | thumb-*)
84bff7
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
84bff7
+		;;
84bff7
 	sun2)
84bff7
 		basic_machine=m68000-sun
84bff7
 		;;
84bff7
@@ -1002,17 +1152,9 @@
84bff7
 		basic_machine=t90-cray
84bff7
 		os=-unicos
84bff7
 		;;
84bff7
-	tic54x | c54x*)
84bff7
-		basic_machine=tic54x-unknown
84bff7
-		os=-coff
84bff7
-		;;
84bff7
-	tic55x | c55x*)
84bff7
-		basic_machine=tic55x-unknown
84bff7
-		os=-coff
84bff7
-		;;
84bff7
-	tic6x | c6x*)
84bff7
-		basic_machine=tic6x-unknown
84bff7
-		os=-coff
84bff7
+	tile*)
84bff7
+		basic_machine=$basic_machine-unknown
84bff7
+		os=-linux-gnu
84bff7
 		;;
84bff7
 	tx39)
84bff7
 		basic_machine=mipstx39-unknown
84bff7
@@ -1081,6 +1223,9 @@
84bff7
 	xps | xps100)
84bff7
 		basic_machine=xps100-honeywell
84bff7
 		;;
84bff7
+	xscale-* | xscalee[bl]-*)
84bff7
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
84bff7
+		;;
84bff7
 	ymp)
84bff7
 		basic_machine=ymp-cray
84bff7
 		os=-unicos
84bff7
@@ -1089,6 +1234,10 @@
84bff7
 		basic_machine=z8k-unknown
84bff7
 		os=-sim
84bff7
 		;;
84bff7
+	z80-*-coff)
84bff7
+		basic_machine=z80-unknown
84bff7
+		os=-sim
84bff7
+		;;
84bff7
 	none)
84bff7
 		basic_machine=none-none
84bff7
 		os=-none
84bff7
@@ -1127,7 +1276,7 @@
84bff7
 	we32k)
84bff7
 		basic_machine=we32k-att
84bff7
 		;;
84bff7
-	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
84bff7
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
84bff7
 		basic_machine=sh-unknown
84bff7
 		;;
84bff7
 	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
84bff7
@@ -1174,9 +1323,12 @@
84bff7
 if [ x"$os" != x"" ]
84bff7
 then
84bff7
 case $os in
84bff7
-        # First match some system type aliases
84bff7
-        # that might get confused with valid system types.
84bff7
+	# First match some system type aliases
84bff7
+	# that might get confused with valid system types.
84bff7
 	# -solaris* is a basic system type, with this one exception.
84bff7
+	-auroraux)
84bff7
+		os=-auroraux
84bff7
+		;;
84bff7
 	-solaris1 | -solaris1.*)
84bff7
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
84bff7
 		;;
84bff7
@@ -1197,21 +1349,23 @@
84bff7
 	# Each alternative MUST END IN A *, to match a version number.
84bff7
 	# -sysv* is not here because it comes later, after sysvr4.
84bff7
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
84bff7
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
84bff7
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
84bff7
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
84bff7
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
84bff7
+	      | -sym* | -kopensolaris* \
84bff7
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
84bff7
-	      | -aos* \
84bff7
+	      | -aos* | -aros* \
84bff7
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
84bff7
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
84bff7
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
84bff7
-	      | -openbsd* | -solidbsd* \
84bff7
+	      | -bitrig* | -openbsd* | -solidbsd* \
84bff7
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
84bff7
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
84bff7
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
84bff7
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
84bff7
-	      | -chorusos* | -chorusrdb* \
84bff7
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
84bff7
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
84bff7
+	      | -chorusos* | -chorusrdb* | -cegcc* \
84bff7
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
84bff7
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
84bff7
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
84bff7
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
84bff7
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
84bff7
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
84bff7
@@ -1219,7 +1373,7 @@
84bff7
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
84bff7
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
84bff7
 	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
84bff7
-	      | -skyos* | -haiku* | -rdos* | -toppers*)
84bff7
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
84bff7
 	# Remember, each alternative MUST END IN *, to match a version number.
84bff7
 		;;
84bff7
 	-qnx*)
84bff7
@@ -1258,7 +1412,7 @@
84bff7
 	-opened*)
84bff7
 		os=-openedition
84bff7
 		;;
84bff7
-        -os400*)
84bff7
+	-os400*)
84bff7
 		os=-os400
84bff7
 		;;
84bff7
 	-wince*)
84bff7
@@ -1307,7 +1461,7 @@
84bff7
 	-sinix*)
84bff7
 		os=-sysv4
84bff7
 		;;
84bff7
-        -tpf*)
84bff7
+	-tpf*)
84bff7
 		os=-tpf
84bff7
 		;;
84bff7
 	-triton*)
84bff7
@@ -1349,6 +1503,11 @@
84bff7
 	-zvmoe)
84bff7
 		os=-zvmoe
84bff7
 		;;
84bff7
+	-dicos*)
84bff7
+		os=-dicos
84bff7
+		;;
84bff7
+	-nacl*)
84bff7
+		;;
84bff7
 	-none)
84bff7
 		;;
84bff7
 	*)
84bff7
@@ -1371,10 +1530,10 @@
84bff7
 # system, and we'll never get to this point.
84bff7
 
84bff7
 case $basic_machine in
84bff7
-        score-*)
84bff7
+	score-*)
84bff7
 		os=-elf
84bff7
 		;;
84bff7
-        spu-*)
84bff7
+	spu-*)
84bff7
 		os=-elf
84bff7
 		;;
84bff7
 	*-acorn)
84bff7
@@ -1386,8 +1545,20 @@
84bff7
 	arm*-semi)
84bff7
 		os=-aout
84bff7
 		;;
84bff7
-        c4x-* | tic4x-*)
84bff7
-        	os=-coff
84bff7
+	c4x-* | tic4x-*)
84bff7
+		os=-coff
84bff7
+		;;
84bff7
+	hexagon-*)
84bff7
+		os=-elf
84bff7
+		;;
84bff7
+	tic54x-*)
84bff7
+		os=-coff
84bff7
+		;;
84bff7
+	tic55x-*)
84bff7
+		os=-coff
84bff7
+		;;
84bff7
+	tic6x-*)
84bff7
+		os=-coff
84bff7
 		;;
84bff7
 	# This must come before the *-dec entry.
84bff7
 	pdp10-*)
84bff7
@@ -1407,13 +1578,13 @@
84bff7
 		;;
84bff7
 	m68000-sun)
84bff7
 		os=-sunos3
84bff7
-		# This also exists in the configure program, but was not the
84bff7
-		# default.
84bff7
-		# os=-sunos4
84bff7
 		;;
84bff7
 	m68*-cisco)
84bff7
 		os=-aout
84bff7
 		;;
84bff7
+	mep-*)
84bff7
+		os=-elf
84bff7
+		;;
84bff7
 	mips*-cisco)
84bff7
 		os=-elf
84bff7
 		;;
84bff7
@@ -1438,7 +1609,7 @@
84bff7
 	*-ibm)
84bff7
 		os=-aix
84bff7
 		;;
84bff7
-    	*-knuth)
84bff7
+	*-knuth)
84bff7
 		os=-mmixware
84bff7
 		;;
84bff7
 	*-wec)
84bff7
@@ -1543,7 +1714,7 @@
84bff7
 			-sunos*)
84bff7
 				vendor=sun
84bff7
 				;;
84bff7
-			-aix*)
84bff7
+			-cnk*|-aix*)
84bff7
 				vendor=ibm
84bff7
 				;;
84bff7
 			-beos*)