Blame SOURCES/check-aarch64.patch

993a4a
--- ./build-aux/config.guess.orig	2012-10-22 08:04:26.000000000 -0600
993a4a
+++ ./build-aux/config.guess	2013-03-15 14:50:01.746132116 -0600
993a4a
@@ -1,14 +1,12 @@
993a4a
 #! /bin/sh
993a4a
 # Attempt to guess a canonical system name.
993a4a
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
993a4a
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
993a4a
-#   Free Software Foundation, Inc.
993a4a
+#   Copyright 1992-2013 Free Software Foundation, Inc.
993a4a
 
993a4a
-timestamp='2009-12-30'
993a4a
+timestamp='2013-02-12'
993a4a
 
993a4a
 # This file is free software; you can redistribute it and/or modify it
993a4a
 # under the terms of the GNU General Public License as published by
993a4a
-# the Free Software Foundation; either version 2 of the License, or
993a4a
+# the Free Software Foundation; either version 3 of the License, or
993a4a
 # (at your option) any later version.
993a4a
 #
993a4a
 # This program is distributed in the hope that it will be useful, but
993a4a
@@ -17,26 +15,22 @@ timestamp='2009-12-30'
993a4a
 # General Public License for more details.
993a4a
 #
993a4a
 # You should have received a copy of the GNU General Public License
993a4a
-# along with this program; if not, write to the Free Software
993a4a
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
993a4a
-# 02110-1301, USA.
993a4a
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
993a4a
 #
993a4a
 # As a special exception to the GNU General Public License, if you
993a4a
 # distribute this file as part of a program that contains a
993a4a
 # configuration script generated by Autoconf, you may include it under
993a4a
-# the same distribution terms that you use for the rest of that program.
993a4a
-
993a4a
-
993a4a
-# Originally written by Per Bothner.  Please send patches (context
993a4a
-# diff format) to <config-patches@gnu.org> and include a ChangeLog
993a4a
-# entry.
993a4a
+# the same distribution terms that you use for the rest of that
993a4a
+# program.  This Exception is an additional permission under section 7
993a4a
+# of the GNU General Public License, version 3 ("GPLv3").
993a4a
 #
993a4a
-# This script attempts to guess a canonical system name similar to
993a4a
-# config.sub.  If it succeeds, it prints the system name on stdout, and
993a4a
-# exits with 0.  Otherwise, it exits with 1.
993a4a
+# Originally written by Per Bothner.
993a4a
 #
993a4a
 # You can get the latest version of this script from:
993a4a
 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
993a4a
+#
993a4a
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
993a4a
+
993a4a
 
993a4a
 me=`echo "$0" | sed -e 's,.*/,,'`
993a4a
 
993a4a
@@ -56,9 +50,7 @@ version="\
993a4a
 GNU config.guess ($timestamp)
993a4a
 
993a4a
 Originally written by Per Bothner.
993a4a
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
993a4a
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
993a4a
-Software Foundation, Inc.
993a4a
+Copyright 1992-2013 Free Software Foundation, Inc.
993a4a
 
993a4a
 This is free software; see the source for copying conditions.  There is NO
993a4a
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
993a4a
@@ -145,7 +137,7 @@ UNAME_VERSION=`(uname -v) 2>/dev/null` |
993a4a
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
993a4a
     *:NetBSD:*:*)
993a4a
 	# NetBSD (nbsd) targets should (where applicable) match one or
993a4a
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
993a4a
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
993a4a
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
993a4a
 	# switched to ELF, *-*-netbsd* would select the old
993a4a
 	# object file format.  This provides both forward
993a4a
@@ -181,7 +173,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
 		fi
993a4a
 		;;
993a4a
 	    *)
993a4a
-	        os=netbsd
993a4a
+		os=netbsd
993a4a
 		;;
993a4a
 	esac
993a4a
 	# The OS release
993a4a
@@ -202,6 +194,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
993a4a
 	echo "${machine}-${os}${release}"
993a4a
 	exit ;;
993a4a
+    *:Bitrig:*:*)
993a4a
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
993a4a
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
993a4a
+	exit ;;
993a4a
     *:OpenBSD:*:*)
993a4a
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
993a4a
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
993a4a
@@ -224,7 +220,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
993a4a
 		;;
993a4a
 	*5.*)
993a4a
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
993a4a
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
993a4a
 		;;
993a4a
 	esac
993a4a
 	# According to Compaq, /usr/sbin/psrinfo has been available on
993a4a
@@ -270,7 +266,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
 	# A Xn.n version is an unreleased experimental baselevel.
993a4a
 	# 1.2 uses "1.2" for uname -r.
993a4a
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
993a4a
-	exit ;;
993a4a
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
993a4a
+	exitcode=$?
993a4a
+	trap '' 0
993a4a
+	exit $exitcode ;;
993a4a
     Alpha\ *:Windows_NT*:*)
993a4a
 	# How do we know it's Interix rather than the generic POSIX subsystem?
993a4a
 	# Should we change UNAME_MACHINE based on the output of uname instead
993a4a
@@ -296,12 +295,12 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
 	echo s390-ibm-zvmoe
993a4a
 	exit ;;
993a4a
     *:OS400:*:*)
993a4a
-        echo powerpc-ibm-os400
993a4a
+	echo powerpc-ibm-os400
993a4a
 	exit ;;
993a4a
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
993a4a
 	echo arm-acorn-riscix${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
-    arm:riscos:*:*|arm:RISCOS:*:*)
993a4a
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
993a4a
 	echo arm-unknown-riscos
993a4a
 	exit ;;
993a4a
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
993a4a
@@ -395,23 +394,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$
993a4a
     # MiNT.  But MiNT is downward compatible to TOS, so this should
993a4a
     # be no problem.
993a4a
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
993a4a
-        echo m68k-atari-mint${UNAME_RELEASE}
993a4a
+	echo m68k-atari-mint${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
993a4a
 	echo m68k-atari-mint${UNAME_RELEASE}
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
993a4a
-        echo m68k-atari-mint${UNAME_RELEASE}
993a4a
+	echo m68k-atari-mint${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
993a4a
-        echo m68k-milan-mint${UNAME_RELEASE}
993a4a
-        exit ;;
993a4a
+	echo m68k-milan-mint${UNAME_RELEASE}
993a4a
+	exit ;;
993a4a
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
993a4a
-        echo m68k-hades-mint${UNAME_RELEASE}
993a4a
-        exit ;;
993a4a
+	echo m68k-hades-mint${UNAME_RELEASE}
993a4a
+	exit ;;
993a4a
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
993a4a
-        echo m68k-unknown-mint${UNAME_RELEASE}
993a4a
-        exit ;;
993a4a
+	echo m68k-unknown-mint${UNAME_RELEASE}
993a4a
+	exit ;;
993a4a
     m68k:machten:*:*)
993a4a
 	echo m68k-apple-machten${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
@@ -481,8 +480,8 @@ EOF
993a4a
 	echo m88k-motorola-sysv3
993a4a
 	exit ;;
993a4a
     AViiON:dgux:*:*)
993a4a
-        # DG/UX returns AViiON for all architectures
993a4a
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
993a4a
+	# DG/UX returns AViiON for all architectures
993a4a
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
993a4a
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
993a4a
 	then
993a4a
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
993a4a
@@ -495,7 +494,7 @@ EOF
993a4a
 	else
993a4a
 	    echo i586-dg-dgux${UNAME_RELEASE}
993a4a
 	fi
993a4a
- 	exit ;;
993a4a
+	exit ;;
993a4a
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
993a4a
 	echo m88k-dolphin-sysv3
993a4a
 	exit ;;
993a4a
@@ -552,7 +551,7 @@ EOF
993a4a
 		echo rs6000-ibm-aix3.2
993a4a
 	fi
993a4a
 	exit ;;
993a4a
-    *:AIX:*:[456])
993a4a
+    *:AIX:*:[4567])
993a4a
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
993a4a
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
993a4a
 		IBM_ARCH=rs6000
993a4a
@@ -595,52 +594,52 @@ EOF
993a4a
 	    9000/[678][0-9][0-9])
993a4a
 		if [ -x /usr/bin/getconf ]; then
993a4a
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
993a4a
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
993a4a
-                    case "${sc_cpu_version}" in
993a4a
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
993a4a
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
993a4a
-                      532)                      # CPU_PA_RISC2_0
993a4a
-                        case "${sc_kernel_bits}" in
993a4a
-                          32) HP_ARCH="hppa2.0n" ;;
993a4a
-                          64) HP_ARCH="hppa2.0w" ;;
993a4a
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
993a4a
+		    case "${sc_cpu_version}" in
993a4a
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
993a4a
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
993a4a
+		      532)                      # CPU_PA_RISC2_0
993a4a
+			case "${sc_kernel_bits}" in
993a4a
+			  32) HP_ARCH="hppa2.0n" ;;
993a4a
+			  64) HP_ARCH="hppa2.0w" ;;
993a4a
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
993a4a
-                        esac ;;
993a4a
-                    esac
993a4a
+			esac ;;
993a4a
+		    esac
993a4a
 		fi
993a4a
 		if [ "${HP_ARCH}" = "" ]; then
993a4a
 		    eval $set_cc_for_build
993a4a
-		    sed 's/^              //' << EOF >$dummy.c
993a4a
+		    sed 's/^		//' << EOF >$dummy.c
993a4a
 
993a4a
-              #define _HPUX_SOURCE
993a4a
-              #include <stdlib.h>
993a4a
-              #include <unistd.h>
993a4a
+		#define _HPUX_SOURCE
993a4a
+		#include <stdlib.h>
993a4a
+		#include <unistd.h>
993a4a
 
993a4a
-              int main ()
993a4a
-              {
993a4a
-              #if defined(_SC_KERNEL_BITS)
993a4a
-                  long bits = sysconf(_SC_KERNEL_BITS);
993a4a
-              #endif
993a4a
-                  long cpu  = sysconf (_SC_CPU_VERSION);
993a4a
+		int main ()
993a4a
+		{
993a4a
+		#if defined(_SC_KERNEL_BITS)
993a4a
+		    long bits = sysconf(_SC_KERNEL_BITS);
993a4a
+		#endif
993a4a
+		    long cpu  = sysconf (_SC_CPU_VERSION);
993a4a
 
993a4a
-                  switch (cpu)
993a4a
-              	{
993a4a
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
993a4a
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
993a4a
-              	case CPU_PA_RISC2_0:
993a4a
-              #if defined(_SC_KERNEL_BITS)
993a4a
-              	    switch (bits)
993a4a
-              		{
993a4a
-              		case 64: puts ("hppa2.0w"); break;
993a4a
-              		case 32: puts ("hppa2.0n"); break;
993a4a
-              		default: puts ("hppa2.0"); break;
993a4a
-              		} break;
993a4a
-              #else  /* !defined(_SC_KERNEL_BITS) */
993a4a
-              	    puts ("hppa2.0"); break;
993a4a
-              #endif
993a4a
-              	default: puts ("hppa1.0"); break;
993a4a
-              	}
993a4a
-                  exit (0);
993a4a
-              }
993a4a
+		    switch (cpu)
993a4a
+			{
993a4a
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
993a4a
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
993a4a
+			case CPU_PA_RISC2_0:
993a4a
+		#if defined(_SC_KERNEL_BITS)
993a4a
+			    switch (bits)
993a4a
+				{
993a4a
+				case 64: puts ("hppa2.0w"); break;
993a4a
+				case 32: puts ("hppa2.0n"); break;
993a4a
+				default: puts ("hppa2.0"); break;
993a4a
+				} break;
993a4a
+		#else  /* !defined(_SC_KERNEL_BITS) */
993a4a
+			    puts ("hppa2.0"); break;
993a4a
+		#endif
993a4a
+			default: puts ("hppa1.0"); break;
993a4a
+			}
993a4a
+		    exit (0);
993a4a
+		}
993a4a
 EOF
993a4a
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
993a4a
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
993a4a
@@ -731,22 +730,22 @@ EOF
993a4a
 	exit ;;
993a4a
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
993a4a
 	echo c1-convex-bsd
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
993a4a
 	if getsysinfo -f scalar_acc
993a4a
 	then echo c32-convex-bsd
993a4a
 	else echo c2-convex-bsd
993a4a
 	fi
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
993a4a
 	echo c34-convex-bsd
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
993a4a
 	echo c38-convex-bsd
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
993a4a
 	echo c4-convex-bsd
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     CRAY*Y-MP:*:*:*)
993a4a
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
993a4a
 	exit ;;
993a4a
@@ -770,14 +769,14 @@ EOF
993a4a
 	exit ;;
993a4a
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
993a4a
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
993a4a
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
993a4a
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
993a4a
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
993a4a
-        exit ;;
993a4a
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
993a4a
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
993a4a
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
993a4a
+	exit ;;
993a4a
     5000:UNIX_System_V:4.*:*)
993a4a
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
993a4a
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
993a4a
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
993a4a
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
993a4a
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
993a4a
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
993a4a
 	exit ;;
993a4a
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
993a4a
@@ -789,30 +788,35 @@ EOF
993a4a
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
     *:FreeBSD:*:*)
993a4a
-	case ${UNAME_MACHINE} in
993a4a
-	    pc98)
993a4a
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
993a4a
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
993a4a
+	case ${UNAME_PROCESSOR} in
993a4a
 	    amd64)
993a4a
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
993a4a
 	    *)
993a4a
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
993a4a
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
993a4a
 	esac
993a4a
 	exit ;;
993a4a
     i*:CYGWIN*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-cygwin
993a4a
 	exit ;;
993a4a
+    *:MINGW64*:*)
993a4a
+	echo ${UNAME_MACHINE}-pc-mingw64
993a4a
+	exit ;;
993a4a
     *:MINGW*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-mingw32
993a4a
 	exit ;;
993a4a
+    i*:MSYS*:*)
993a4a
+	echo ${UNAME_MACHINE}-pc-msys
993a4a
+	exit ;;
993a4a
     i*:windows32*:*)
993a4a
-    	# uname -m includes "-pc" on this system.
993a4a
-    	echo ${UNAME_MACHINE}-mingw32
993a4a
+	# uname -m includes "-pc" on this system.
993a4a
+	echo ${UNAME_MACHINE}-mingw32
993a4a
 	exit ;;
993a4a
     i*:PW*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-pw32
993a4a
 	exit ;;
993a4a
     *:Interix*:*)
993a4a
-    	case ${UNAME_MACHINE} in
993a4a
+	case ${UNAME_MACHINE} in
993a4a
 	    x86)
993a4a
 		echo i586-pc-interix${UNAME_RELEASE}
993a4a
 		exit ;;
993a4a
@@ -858,6 +862,13 @@ EOF
993a4a
     i*86:Minix:*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-minix
993a4a
 	exit ;;
993a4a
+    aarch64:Linux:*:*)
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	exit ;;
993a4a
+    aarch64_be:Linux:*:*)
993a4a
+	UNAME_MACHINE=aarch64_be
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	exit ;;
993a4a
     alpha:Linux:*:*)
993a4a
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
993a4a
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
993a4a
@@ -867,7 +878,7 @@ EOF
993a4a
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
993a4a
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
993a4a
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
993a4a
-        esac
993a4a
+	esac
993a4a
 	objdump --private-headers /bin/sh | grep -q ld.so.1
993a4a
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
993a4a
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
993a4a
@@ -879,20 +890,29 @@ EOF
993a4a
 	then
993a4a
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	else
993a4a
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
993a4a
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
993a4a
+		| grep -q __ARM_PCS_VFP
993a4a
+	    then
993a4a
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
993a4a
+	    else
993a4a
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
993a4a
+	    fi
993a4a
 	fi
993a4a
 	exit ;;
993a4a
     avr32*:Linux:*:*)
993a4a
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     cris:Linux:*:*)
993a4a
-	echo cris-axis-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-axis-linux-gnu
993a4a
 	exit ;;
993a4a
     crisv32:Linux:*:*)
993a4a
-	echo crisv32-axis-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-axis-linux-gnu
993a4a
 	exit ;;
993a4a
     frv:Linux:*:*)
993a4a
-    	echo frv-unknown-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	exit ;;
993a4a
+    hexagon:Linux:*:*)
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     i*86:Linux:*:*)
993a4a
 	LIBC=gnu
993a4a
@@ -933,8 +953,11 @@ EOF
993a4a
 	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
993a4a
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
993a4a
 	;;
993a4a
+    or1k:Linux:*:*)
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	exit ;;
993a4a
     or32:Linux:*:*)
993a4a
-	echo or32-unknown-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     padre:Linux:*:*)
993a4a
 	echo sparc-unknown-linux-gnu
993a4a
@@ -960,7 +983,7 @@ EOF
993a4a
 	echo ${UNAME_MACHINE}-ibm-linux
993a4a
 	exit ;;
993a4a
     sh64*:Linux:*:*)
993a4a
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     sh*:Linux:*:*)
993a4a
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
@@ -968,14 +991,17 @@ EOF
993a4a
     sparc:Linux:*:* | sparc64:Linux:*:*)
993a4a
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
+    tile*:Linux:*:*)
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	exit ;;
993a4a
     vax:Linux:*:*)
993a4a
 	echo ${UNAME_MACHINE}-dec-linux-gnu
993a4a
 	exit ;;
993a4a
     x86_64:Linux:*:*)
993a4a
-	echo x86_64-unknown-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     xtensa*:Linux:*:*)
993a4a
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
993a4a
 	exit ;;
993a4a
     i*86:DYNIX/ptx:4*:*)
993a4a
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993a4a
@@ -984,11 +1010,11 @@ EOF
993a4a
 	echo i386-sequent-sysv4
993a4a
 	exit ;;
993a4a
     i*86:UNIX_SV:4.2MP:2.*)
993a4a
-        # Unixware is an offshoot of SVR4, but it has its own version
993a4a
-        # number series starting with 2...
993a4a
-        # I am not positive that other SVR4 systems won't match this,
993a4a
+	# Unixware is an offshoot of SVR4, but it has its own version
993a4a
+	# number series starting with 2...
993a4a
+	# I am not positive that other SVR4 systems won't match this,
993a4a
 	# I just have to hope.  -- rms.
993a4a
-        # Use sysv4.2uw... so that sysv4* matches it.
993a4a
+	# Use sysv4.2uw... so that sysv4* matches it.
993a4a
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
993a4a
 	exit ;;
993a4a
     i*86:OS/2:*:*)
993a4a
@@ -1020,7 +1046,7 @@ EOF
993a4a
 	fi
993a4a
 	exit ;;
993a4a
     i*86:*:5:[678]*)
993a4a
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
993a4a
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
993a4a
 	case `/bin/uname -X | grep "^Machine"` in
993a4a
 	    *486*)	     UNAME_MACHINE=i486 ;;
993a4a
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
993a4a
@@ -1048,13 +1074,13 @@ EOF
993a4a
 	exit ;;
993a4a
     pc:*:*:*)
993a4a
 	# Left here for compatibility:
993a4a
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
993a4a
-        # the processor, so we play safe by assuming i586.
993a4a
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
993a4a
+	# the processor, so we play safe by assuming i586.
993a4a
 	# Note: whatever this is, it MUST be the same as what config.sub
993a4a
 	# prints for the "djgpp" host, or else GDB configury will decide that
993a4a
 	# this is a cross-build.
993a4a
 	echo i586-pc-msdosdjgpp
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     Intel:Mach:3*:*)
993a4a
 	echo i386-pc-mach3
993a4a
 	exit ;;
993a4a
@@ -1089,8 +1115,8 @@ EOF
993a4a
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
993a4a
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
993a4a
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
993a4a
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
993a4a
-          && { echo i486-ncr-sysv4; exit; } ;;
993a4a
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
993a4a
+	  && { echo i486-ncr-sysv4; exit; } ;;
993a4a
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
993a4a
 	OS_REL='.3'
993a4a
 	test -r /etc/.relid \
993a4a
@@ -1133,10 +1159,10 @@ EOF
993a4a
 		echo ns32k-sni-sysv
993a4a
 	fi
993a4a
 	exit ;;
993a4a
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
993a4a
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
993a4a
-        echo i586-unisys-sysv4
993a4a
-        exit ;;
993a4a
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
993a4a
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
993a4a
+	echo i586-unisys-sysv4
993a4a
+	exit ;;
993a4a
     *:UNIX_System_V:4*:FTX*)
993a4a
 	# From Gerald Hewes <hewes@openmarket.com>.
993a4a
 	# How about differentiating between stratus architectures? -djm
993a4a
@@ -1162,11 +1188,11 @@ EOF
993a4a
 	exit ;;
993a4a
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
993a4a
 	if [ -d /usr/nec ]; then
993a4a
-	        echo mips-nec-sysv${UNAME_RELEASE}
993a4a
+		echo mips-nec-sysv${UNAME_RELEASE}
993a4a
 	else
993a4a
-	        echo mips-unknown-sysv${UNAME_RELEASE}
993a4a
+		echo mips-unknown-sysv${UNAME_RELEASE}
993a4a
 	fi
993a4a
-        exit ;;
993a4a
+	exit ;;
993a4a
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
993a4a
 	echo powerpc-be-beos
993a4a
 	exit ;;
993a4a
@@ -1179,6 +1205,9 @@ EOF
993a4a
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
993a4a
 	echo i586-pc-haiku
993a4a
 	exit ;;
993a4a
+    x86_64:Haiku:*:*)
993a4a
+	echo x86_64-unknown-haiku
993a4a
+	exit ;;
993a4a
     SX-4:SUPER-UX:*:*)
993a4a
 	echo sx4-nec-superux${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
@@ -1231,7 +1260,10 @@ EOF
993a4a
     *:QNX:*:4*)
993a4a
 	echo i386-pc-qnx
993a4a
 	exit ;;
993a4a
-    NSE-?:NONSTOP_KERNEL:*:*)
993a4a
+    NEO-?:NONSTOP_KERNEL:*:*)
993a4a
+	echo neo-tandem-nsk${UNAME_RELEASE}
993a4a
+	exit ;;
993a4a
+    NSE-*:NONSTOP_KERNEL:*:*)
993a4a
 	echo nse-tandem-nsk${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
     NSR-?:NONSTOP_KERNEL:*:*)
993a4a
@@ -1276,13 +1308,13 @@ EOF
993a4a
 	echo pdp10-unknown-its
993a4a
 	exit ;;
993a4a
     SEI:*:*:SEIUX)
993a4a
-        echo mips-sei-seiux${UNAME_RELEASE}
993a4a
+	echo mips-sei-seiux${UNAME_RELEASE}
993a4a
 	exit ;;
993a4a
     *:DragonFly:*:*)
993a4a
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
993a4a
 	exit ;;
993a4a
     *:*VMS:*:*)
993a4a
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
993a4a
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
993a4a
 	case "${UNAME_MACHINE}" in
993a4a
 	    A*) echo alpha-dec-vms ; exit ;;
993a4a
 	    I*) echo ia64-dec-vms ; exit ;;
993a4a
@@ -1300,11 +1332,11 @@ EOF
993a4a
     i*86:AROS:*:*)
993a4a
 	echo ${UNAME_MACHINE}-pc-aros
993a4a
 	exit ;;
993a4a
+    x86_64:VMkernel:*:*)
993a4a
+	echo ${UNAME_MACHINE}-unknown-esx
993a4a
+	exit ;;
993a4a
 esac
993a4a
 
993a4a
-#echo '(No uname command or uname output not recognized.)' 1>&2
993a4a
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
993a4a
-
993a4a
 eval $set_cc_for_build
993a4a
 cat >$dummy.c <
993a4a
 #ifdef _SEQUENT_
993a4a
@@ -1322,11 +1354,11 @@ main ()
993a4a
 #include <sys/param.h>
993a4a
   printf ("m68k-sony-newsos%s\n",
993a4a
 #ifdef NEWSOS4
993a4a
-          "4"
993a4a
+	"4"
993a4a
 #else
993a4a
-	  ""
993a4a
+	""
993a4a
 #endif
993a4a
-         ); exit (0);
993a4a
+	); exit (0);
993a4a
 #endif
993a4a
 #endif
993a4a
 
993a4a
--- ./build-aux/config.sub.orig	2012-10-22 08:04:26.000000000 -0600
993a4a
+++ ./build-aux/config.sub	2013-03-15 14:50:01.748132113 -0600
993a4a
@@ -1,38 +1,31 @@
993a4a
 #! /bin/sh
993a4a
 # Configuration validation subroutine script.
993a4a
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
993a4a
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
993a4a
-#   Free Software Foundation, Inc.
993a4a
+#   Copyright 1992-2013 Free Software Foundation, Inc.
993a4a
 
993a4a
-timestamp='2010-01-22'
993a4a
+timestamp='2013-02-12'
993a4a
 
993a4a
-# This file is (in principle) common to ALL GNU software.
993a4a
-# The presence of a machine in this file suggests that SOME GNU software
993a4a
-# can handle that machine.  It does not imply ALL GNU software can.
993a4a
-#
993a4a
-# This file is free software; you can redistribute it and/or modify
993a4a
-# it under the terms of the GNU General Public License as published by
993a4a
-# the Free Software Foundation; either version 2 of the License, or
993a4a
+# This file is free software; you can redistribute it and/or modify it
993a4a
+# under the terms of the GNU General Public License as published by
993a4a
+# the Free Software Foundation; either version 3 of the License, or
993a4a
 # (at your option) any later version.
993a4a
 #
993a4a
-# This program is distributed in the hope that it will be useful,
993a4a
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
993a4a
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
993a4a
-# GNU General Public License for more details.
993a4a
+# This program is distributed in the hope that it will be useful, but
993a4a
+# WITHOUT ANY WARRANTY; without even the implied warranty of
993a4a
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
993a4a
+# General Public License for more details.
993a4a
 #
993a4a
 # You should have received a copy of the GNU General Public License
993a4a
-# along with this program; if not, write to the Free Software
993a4a
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
993a4a
-# 02110-1301, USA.
993a4a
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
993a4a
 #
993a4a
 # As a special exception to the GNU General Public License, if you
993a4a
 # distribute this file as part of a program that contains a
993a4a
 # configuration script generated by Autoconf, you may include it under
993a4a
-# the same distribution terms that you use for the rest of that program.
993a4a
+# the same distribution terms that you use for the rest of that
993a4a
+# program.  This Exception is an additional permission under section 7
993a4a
+# of the GNU General Public License, version 3 ("GPLv3").
993a4a
 
993a4a
 
993a4a
-# Please send patches to <config-patches@gnu.org>.  Submit a context
993a4a
-# diff and a properly formatted GNU ChangeLog entry.
993a4a
+# Please send patches with a ChangeLog entry to config-patches@gnu.org.
993a4a
 #
993a4a
 # Configuration subroutine to validate and canonicalize a configuration type.
993a4a
 # Supply the specified configuration type as an argument.
993a4a
@@ -75,9 +68,7 @@ Report bugs and patches to 
993a4a
 version="\
993a4a
 GNU config.sub ($timestamp)
993a4a
 
993a4a
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
993a4a
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
993a4a
-Software Foundation, Inc.
993a4a
+Copyright 1992-2013 Free Software Foundation, Inc.
993a4a
 
993a4a
 This is free software; see the source for copying conditions.  There is NO
993a4a
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
993a4a
@@ -124,13 +115,18 @@ esac
993a4a
 # Here we must recognize all the valid KERNEL-OS combinations.
993a4a
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
993a4a
 case $maybe_os in
993a4a
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
993a4a
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
993a4a
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
993a4a
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
993a4a
+  knetbsd*-gnu* | netbsd*-gnu* | \
993a4a
   kopensolaris*-gnu* | \
993a4a
   storm-chaos* | os2-emx* | rtmk-nova*)
993a4a
     os=-$maybe_os
993a4a
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
993a4a
     ;;
993a4a
+  android-linux)
993a4a
+    os=-linux-android
993a4a
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
993a4a
+    ;;
993a4a
   *)
993a4a
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
993a4a
     if [ $basic_machine != $1 ]
993a4a
@@ -153,12 +149,12 @@ case $os in
993a4a
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
993a4a
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
993a4a
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
993a4a
-	-apple | -axis | -knuth | -cray | -microblaze)
993a4a
+	-apple | -axis | -knuth | -cray | -microblaze*)
993a4a
 		os=
993a4a
 		basic_machine=$1
993a4a
 		;;
993a4a
-        -bluegene*)
993a4a
-	        os=-cnk
993a4a
+	-bluegene*)
993a4a
+		os=-cnk
993a4a
 		;;
993a4a
 	-sim | -cisco | -oki | -wec | -winbond)
993a4a
 		os=
993a4a
@@ -174,10 +170,10 @@ case $os in
993a4a
 		os=-chorusos
993a4a
 		basic_machine=$1
993a4a
 		;;
993a4a
- 	-chorusrdb)
993a4a
- 		os=-chorusrdb
993a4a
+	-chorusrdb)
993a4a
+		os=-chorusrdb
993a4a
 		basic_machine=$1
993a4a
- 		;;
993a4a
+		;;
993a4a
 	-hiux*)
993a4a
 		os=-hiuxwe2
993a4a
 		;;
993a4a
@@ -222,6 +218,12 @@ case $os in
993a4a
 	-isc*)
993a4a
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
993a4a
 		;;
993a4a
+	-lynx*178)
993a4a
+		os=-lynxos178
993a4a
+		;;
993a4a
+	-lynx*5)
993a4a
+		os=-lynxos5
993a4a
+		;;
993a4a
 	-lynx*)
993a4a
 		os=-lynxos
993a4a
 		;;
993a4a
@@ -246,20 +248,27 @@ case $basic_machine in
993a4a
 	# Some are omitted here because they have special meanings below.
993a4a
 	1750a | 580 \
993a4a
 	| a29k \
993a4a
+	| aarch64 | aarch64_be \
993a4a
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
993a4a
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
993a4a
 	| am33_2.0 \
993a4a
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
993a4a
+	| arc \
993a4a
+	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
993a4a
+	| avr | avr32 \
993a4a
+	| be32 | be64 \
993a4a
 	| bfin \
993a4a
 	| c4x | clipper \
993a4a
 	| d10v | d30v | dlx | dsp16xx \
993a4a
+	| epiphany \
993a4a
 	| fido | fr30 | frv \
993a4a
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
993a4a
+	| hexagon \
993a4a
 	| i370 | i860 | i960 | ia64 \
993a4a
 	| ip2k | iq2000 \
993a4a
+	| le32 | le64 \
993a4a
 	| lm32 \
993a4a
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
993a4a
-	| maxq | mb | microblaze | mcore | mep | metag \
993a4a
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
993a4a
 	| mips | mipsbe | mipseb | mipsel | mipsle \
993a4a
 	| mips16 \
993a4a
 	| mips64 | mips64el \
993a4a
@@ -277,34 +286,45 @@ case $basic_machine in
993a4a
 	| mipsisa64r2 | mipsisa64r2el \
993a4a
 	| mipsisa64sb1 | mipsisa64sb1el \
993a4a
 	| mipsisa64sr71k | mipsisa64sr71kel \
993a4a
+	| mipsr5900 | mipsr5900el \
993a4a
 	| mipstx39 | mipstx39el \
993a4a
 	| mn10200 | mn10300 \
993a4a
 	| moxie \
993a4a
 	| mt \
993a4a
 	| msp430 \
993a4a
-	| nios | nios2 \
993a4a
+	| nds32 | nds32le | nds32be \
993a4a
+	| nios | nios2 | nios2eb | nios2el \
993a4a
 	| ns16k | ns32k \
993a4a
-	| or32 \
993a4a
+	| open8 \
993a4a
+	| or1k | or32 \
993a4a
 	| pdp10 | pdp11 | pj | pjl \
993a4a
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
993a4a
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
993a4a
 	| pyramid \
993a4a
-	| rx \
993a4a
+	| rl78 | rx \
993a4a
 	| score \
993a4a
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
993a4a
 	| sh64 | sh64le \
993a4a
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
993a4a
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
993a4a
-	| spu | strongarm \
993a4a
-	| tahoe | thumb | tic4x | tic80 | tron \
993a4a
+	| spu \
993a4a
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
993a4a
 	| ubicom32 \
993a4a
-	| v850 | v850e \
993a4a
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
993a4a
 	| we32k \
993a4a
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
993a4a
+	| x86 | xc16x | xstormy16 | xtensa \
993a4a
 	| z8k | z80)
993a4a
 		basic_machine=$basic_machine-unknown
993a4a
 		;;
993a4a
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
993a4a
-		# Motorola 68HC11/12.
993a4a
+	c54x)
993a4a
+		basic_machine=tic54x-unknown
993a4a
+		;;
993a4a
+	c55x)
993a4a
+		basic_machine=tic55x-unknown
993a4a
+		;;
993a4a
+	c6x)
993a4a
+		basic_machine=tic6x-unknown
993a4a
+		;;
993a4a
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
993a4a
 		basic_machine=$basic_machine-unknown
993a4a
 		os=-none
993a4a
 		;;
993a4a
@@ -314,6 +334,21 @@ case $basic_machine in
993a4a
 		basic_machine=mt-unknown
993a4a
 		;;
993a4a
 
993a4a
+	strongarm | thumb | xscale)
993a4a
+		basic_machine=arm-unknown
993a4a
+		;;
993a4a
+	xgate)
993a4a
+		basic_machine=$basic_machine-unknown
993a4a
+		os=-none
993a4a
+		;;
993a4a
+	xscaleeb)
993a4a
+		basic_machine=armeb-unknown
993a4a
+		;;
993a4a
+
993a4a
+	xscaleel)
993a4a
+		basic_machine=armel-unknown
993a4a
+		;;
993a4a
+
993a4a
 	# We use `pc' rather than `unknown'
993a4a
 	# because (1) that's what they normally are, and
993a4a
 	# (2) the word "unknown" tends to confuse beginning users.
993a4a
@@ -328,25 +363,30 @@ case $basic_machine in
993a4a
 	# Recognize the basic CPU types with company name.
993a4a
 	580-* \
993a4a
 	| a29k-* \
993a4a
+	| aarch64-* | aarch64_be-* \
993a4a
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
993a4a
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
993a4a
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
993a4a
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
993a4a
 	| avr-* | avr32-* \
993a4a
+	| be32-* | be64-* \
993a4a
 	| bfin-* | bs2000-* \
993a4a
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
993a4a
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
993a4a
 	| clipper-* | craynv-* | cydra-* \
993a4a
 	| d10v-* | d30v-* | dlx-* \
993a4a
 	| elxsi-* \
993a4a
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
993a4a
 	| h8300-* | h8500-* \
993a4a
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
993a4a
+	| hexagon-* \
993a4a
 	| i*86-* | i860-* | i960-* | ia64-* \
993a4a
 	| ip2k-* | iq2000-* \
993a4a
+	| le32-* | le64-* \
993a4a
 	| lm32-* \
993a4a
 	| m32c-* | m32r-* | m32rle-* \
993a4a
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
993a4a
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
993a4a
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
993a4a
+	| microblaze-* | microblazeel-* \
993a4a
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
993a4a
 	| mips16-* \
993a4a
 	| mips64-* | mips64el-* \
993a4a
@@ -364,30 +404,34 @@ case $basic_machine in
993a4a
 	| mipsisa64r2-* | mipsisa64r2el-* \
993a4a
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
993a4a
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
993a4a
+	| mipsr5900-* | mipsr5900el-* \
993a4a
 	| mipstx39-* | mipstx39el-* \
993a4a
 	| mmix-* \
993a4a
 	| mt-* \
993a4a
 	| msp430-* \
993a4a
-	| nios-* | nios2-* \
993a4a
+	| nds32-* | nds32le-* | nds32be-* \
993a4a
+	| nios-* | nios2-* | nios2eb-* | nios2el-* \
993a4a
 	| none-* | np1-* | ns16k-* | ns32k-* \
993a4a
+	| open8-* \
993a4a
 	| orion-* \
993a4a
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
993a4a
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
993a4a
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
993a4a
 	| pyramid-* \
993a4a
-	| romp-* | rs6000-* | rx-* \
993a4a
+	| rl78-* | romp-* | rs6000-* | rx-* \
993a4a
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
993a4a
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
993a4a
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
993a4a
 	| sparclite-* \
993a4a
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
993a4a
-	| tahoe-* | thumb-* \
993a4a
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
993a4a
+	| tahoe-* \
993a4a
 	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
993a4a
-	| tile-* | tilegx-* \
993a4a
+	| tile*-* \
993a4a
 	| tron-* \
993a4a
 	| ubicom32-* \
993a4a
-	| v850-* | v850e-* | vax-* \
993a4a
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
993a4a
+	| vax-* \
993a4a
 	| we32k-* \
993a4a
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
993a4a
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
993a4a
 	| xstormy16-* | xtensa*-* \
993a4a
 	| ymp-* \
993a4a
 	| z8k-* | z80-*)
993a4a
@@ -412,7 +456,7 @@ case $basic_machine in
993a4a
 		basic_machine=a29k-amd
993a4a
 		os=-udi
993a4a
 		;;
993a4a
-    	abacus)
993a4a
+	abacus)
993a4a
 		basic_machine=abacus-unknown
993a4a
 		;;
993a4a
 	adobe68k)
993a4a
@@ -482,11 +526,20 @@ case $basic_machine in
993a4a
 		basic_machine=powerpc-ibm
993a4a
 		os=-cnk
993a4a
 		;;
993a4a
+	c54x-*)
993a4a
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
+		;;
993a4a
+	c55x-*)
993a4a
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
+		;;
993a4a
+	c6x-*)
993a4a
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
+		;;
993a4a
 	c90)
993a4a
 		basic_machine=c90-cray
993a4a
 		os=-unicos
993a4a
 		;;
993a4a
-        cegcc)
993a4a
+	cegcc)
993a4a
 		basic_machine=arm-unknown
993a4a
 		os=-cegcc
993a4a
 		;;
993a4a
@@ -518,7 +571,7 @@ case $basic_machine in
993a4a
 		basic_machine=craynv-cray
993a4a
 		os=-unicosmp
993a4a
 		;;
993a4a
-	cr16)
993a4a
+	cr16 | cr16-*)
993a4a
 		basic_machine=cr16-unknown
993a4a
 		os=-elf
993a4a
 		;;
993a4a
@@ -676,7 +729,6 @@ case $basic_machine in
993a4a
 	i370-ibm* | ibm*)
993a4a
 		basic_machine=i370-ibm
993a4a
 		;;
993a4a
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
993a4a
 	i*86v32)
993a4a
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
993a4a
 		os=-sysv32
993a4a
@@ -734,9 +786,13 @@ case $basic_machine in
993a4a
 		basic_machine=ns32k-utek
993a4a
 		os=-sysv
993a4a
 		;;
993a4a
-        microblaze)
993a4a
+	microblaze*)
993a4a
 		basic_machine=microblaze-xilinx
993a4a
 		;;
993a4a
+	mingw64)
993a4a
+		basic_machine=x86_64-pc
993a4a
+		os=-mingw64
993a4a
+		;;
993a4a
 	mingw32)
993a4a
 		basic_machine=i386-pc
993a4a
 		os=-mingw32
993a4a
@@ -773,10 +829,18 @@ case $basic_machine in
993a4a
 	ms1-*)
993a4a
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
993a4a
 		;;
993a4a
+	msys)
993a4a
+		basic_machine=i386-pc
993a4a
+		os=-msys
993a4a
+		;;
993a4a
 	mvs)
993a4a
 		basic_machine=i370-ibm
993a4a
 		os=-mvs
993a4a
 		;;
993a4a
+	nacl)
993a4a
+		basic_machine=le32-unknown
993a4a
+		os=-nacl
993a4a
+		;;
993a4a
 	ncr3000)
993a4a
 		basic_machine=i486-ncr
993a4a
 		os=-sysv4
993a4a
@@ -841,6 +905,12 @@ case $basic_machine in
993a4a
 	np1)
993a4a
 		basic_machine=np1-gould
993a4a
 		;;
993a4a
+	neo-tandem)
993a4a
+		basic_machine=neo-tandem
993a4a
+		;;
993a4a
+	nse-tandem)
993a4a
+		basic_machine=nse-tandem
993a4a
+		;;
993a4a
 	nsr-tandem)
993a4a
 		basic_machine=nsr-tandem
993a4a
 		;;
993a4a
@@ -923,9 +993,10 @@ case $basic_machine in
993a4a
 		;;
993a4a
 	power)	basic_machine=power-ibm
993a4a
 		;;
993a4a
-	ppc)	basic_machine=powerpc-unknown
993a4a
+	ppc | ppcbe)	basic_machine=powerpc-unknown
993a4a
 		;;
993a4a
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
+	ppc-* | ppcbe-*)
993a4a
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
 		;;
993a4a
 	ppcle | powerpclittle | ppc-le | powerpc-little)
993a4a
 		basic_machine=powerpcle-unknown
993a4a
@@ -950,7 +1021,11 @@ case $basic_machine in
993a4a
 		basic_machine=i586-unknown
993a4a
 		os=-pw32
993a4a
 		;;
993a4a
-	rdos)
993a4a
+	rdos | rdos64)
993a4a
+		basic_machine=x86_64-pc
993a4a
+		os=-rdos
993a4a
+		;;
993a4a
+	rdos32)
993a4a
 		basic_machine=i386-pc
993a4a
 		os=-rdos
993a4a
 		;;
993a4a
@@ -1019,6 +1094,9 @@ case $basic_machine in
993a4a
 		basic_machine=i860-stratus
993a4a
 		os=-sysv4
993a4a
 		;;
993a4a
+	strongarm-* | thumb-*)
993a4a
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
993a4a
+		;;
993a4a
 	sun2)
993a4a
 		basic_machine=m68000-sun
993a4a
 		;;
993a4a
@@ -1075,25 +1153,8 @@ case $basic_machine in
993a4a
 		basic_machine=t90-cray
993a4a
 		os=-unicos
993a4a
 		;;
993a4a
-	tic54x | c54x*)
993a4a
-		basic_machine=tic54x-unknown
993a4a
-		os=-coff
993a4a
-		;;
993a4a
-	tic55x | c55x*)
993a4a
-		basic_machine=tic55x-unknown
993a4a
-		os=-coff
993a4a
-		;;
993a4a
-	tic6x | c6x*)
993a4a
-		basic_machine=tic6x-unknown
993a4a
-		os=-coff
993a4a
-		;;
993a4a
-        # This must be matched before tile*.
993a4a
-        tilegx*)
993a4a
-		basic_machine=tilegx-unknown
993a4a
-		os=-linux-gnu
993a4a
-		;;
993a4a
 	tile*)
993a4a
-		basic_machine=tile-unknown
993a4a
+		basic_machine=$basic_machine-unknown
993a4a
 		os=-linux-gnu
993a4a
 		;;
993a4a
 	tx39)
993a4a
@@ -1163,6 +1224,9 @@ case $basic_machine in
993a4a
 	xps | xps100)
993a4a
 		basic_machine=xps100-honeywell
993a4a
 		;;
993a4a
+	xscale-* | xscalee[bl]-*)
993a4a
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
993a4a
+		;;
993a4a
 	ymp)
993a4a
 		basic_machine=ymp-cray
993a4a
 		os=-unicos
993a4a
@@ -1260,11 +1324,11 @@ esac
993a4a
 if [ x"$os" != x"" ]
993a4a
 then
993a4a
 case $os in
993a4a
-        # First match some system type aliases
993a4a
-        # that might get confused with valid system types.
993a4a
+	# First match some system type aliases
993a4a
+	# that might get confused with valid system types.
993a4a
 	# -solaris* is a basic system type, with this one exception.
993a4a
-        -auroraux)
993a4a
-	        os=-auroraux
993a4a
+	-auroraux)
993a4a
+		os=-auroraux
993a4a
 		;;
993a4a
 	-solaris1 | -solaris1.*)
993a4a
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
993a4a
@@ -1288,20 +1352,21 @@ case $os in
993a4a
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
993a4a
 	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
993a4a
 	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
993a4a
-	      | -sym* | -kopensolaris* \
993a4a
+	      | -sym* | -kopensolaris* | -plan9* \
993a4a
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
993a4a
 	      | -aos* | -aros* \
993a4a
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
993a4a
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
993a4a
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
993a4a
-	      | -openbsd* | -solidbsd* \
993a4a
+	      | -bitrig* | -openbsd* | -solidbsd* \
993a4a
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
993a4a
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
993a4a
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
993a4a
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
993a4a
 	      | -chorusos* | -chorusrdb* | -cegcc* \
993a4a
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
993a4a
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
993a4a
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
993a4a
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
993a4a
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
993a4a
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
993a4a
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
993a4a
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
993a4a
@@ -1348,7 +1413,7 @@ case $os in
993a4a
 	-opened*)
993a4a
 		os=-openedition
993a4a
 		;;
993a4a
-        -os400*)
993a4a
+	-os400*)
993a4a
 		os=-os400
993a4a
 		;;
993a4a
 	-wince*)
993a4a
@@ -1397,7 +1462,7 @@ case $os in
993a4a
 	-sinix*)
993a4a
 		os=-sysv4
993a4a
 		;;
993a4a
-        -tpf*)
993a4a
+	-tpf*)
993a4a
 		os=-tpf
993a4a
 		;;
993a4a
 	-triton*)
993a4a
@@ -1433,17 +1498,14 @@ case $os in
993a4a
 	-aros*)
993a4a
 		os=-aros
993a4a
 		;;
993a4a
-	-kaos*)
993a4a
-		os=-kaos
993a4a
-		;;
993a4a
 	-zvmoe)
993a4a
 		os=-zvmoe
993a4a
 		;;
993a4a
 	-dicos*)
993a4a
 		os=-dicos
993a4a
 		;;
993a4a
-        -nacl*)
993a4a
-	        ;;
993a4a
+	-nacl*)
993a4a
+		;;
993a4a
 	-none)
993a4a
 		;;
993a4a
 	*)
993a4a
@@ -1466,10 +1528,10 @@ else
993a4a
 # system, and we'll never get to this point.
993a4a
 
993a4a
 case $basic_machine in
993a4a
-        score-*)
993a4a
+	score-*)
993a4a
 		os=-elf
993a4a
 		;;
993a4a
-        spu-*)
993a4a
+	spu-*)
993a4a
 		os=-elf
993a4a
 		;;
993a4a
 	*-acorn)
993a4a
@@ -1481,8 +1543,20 @@ case $basic_machine in
993a4a
 	arm*-semi)
993a4a
 		os=-aout
993a4a
 		;;
993a4a
-        c4x-* | tic4x-*)
993a4a
-        	os=-coff
993a4a
+	c4x-* | tic4x-*)
993a4a
+		os=-coff
993a4a
+		;;
993a4a
+	hexagon-*)
993a4a
+		os=-elf
993a4a
+		;;
993a4a
+	tic54x-*)
993a4a
+		os=-coff
993a4a
+		;;
993a4a
+	tic55x-*)
993a4a
+		os=-coff
993a4a
+		;;
993a4a
+	tic6x-*)
993a4a
+		os=-coff
993a4a
 		;;
993a4a
 	# This must come before the *-dec entry.
993a4a
 	pdp10-*)
993a4a
@@ -1502,14 +1576,11 @@ case $basic_machine in
993a4a
 		;;
993a4a
 	m68000-sun)
993a4a
 		os=-sunos3
993a4a
-		# This also exists in the configure program, but was not the
993a4a
-		# default.
993a4a
-		# os=-sunos4
993a4a
 		;;
993a4a
 	m68*-cisco)
993a4a
 		os=-aout
993a4a
 		;;
993a4a
-        mep-*)
993a4a
+	mep-*)
993a4a
 		os=-elf
993a4a
 		;;
993a4a
 	mips*-cisco)
993a4a
@@ -1518,6 +1589,9 @@ case $basic_machine in
993a4a
 	mips*-*)
993a4a
 		os=-elf
993a4a
 		;;
993a4a
+	or1k-*)
993a4a
+		os=-elf
993a4a
+		;;
993a4a
 	or32-*)
993a4a
 		os=-coff
993a4a
 		;;
993a4a
@@ -1536,7 +1610,7 @@ case $basic_machine in
993a4a
 	*-ibm)
993a4a
 		os=-aix
993a4a
 		;;
993a4a
-    	*-knuth)
993a4a
+	*-knuth)
993a4a
 		os=-mmixware
993a4a
 		;;
993a4a
 	*-wec)