Blame SOURCES/aspell-0.60.6.1-aarch64.patch

aa1070
diff -urN aspell-0.60.6.1/config.guess aspell-0.60.6.1-aarch64/config.guess
aa1070
--- aspell-0.60.6.1/config.guess	2011-07-02 16:53:17.000000000 -0500
aa1070
+++ aspell-0.60.6.1-aarch64/config.guess	2013-03-07 19:06:06.613457060 -0600
aa1070
@@ -1,10 +1,10 @@
aa1070
 #! /bin/sh
aa1070
 # Attempt to guess a canonical system name.
aa1070
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
aa1070
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
aa1070
-#   Free Software Foundation, Inc.
aa1070
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
aa1070
+#   2011, 2012 Free Software Foundation, Inc.
aa1070
 
aa1070
-timestamp='2009-11-20'
aa1070
+timestamp='2012-09-25'
aa1070
 
aa1070
 # This file is free software; you can redistribute it and/or modify it
aa1070
 # under the terms of the GNU General Public License as published by
aa1070
@@ -17,9 +17,7 @@
aa1070
 # General Public License for more details.
aa1070
 #
aa1070
 # You should have received a copy of the GNU General Public License
aa1070
-# along with this program; if not, write to the Free Software
aa1070
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
aa1070
-# 02110-1301, USA.
aa1070
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
aa1070
 #
aa1070
 # As a special exception to the GNU General Public License, if you
aa1070
 # distribute this file as part of a program that contains a
aa1070
@@ -56,8 +54,9 @@
aa1070
 GNU config.guess ($timestamp)
aa1070
 
aa1070
 Originally written by Per Bothner.
aa1070
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
aa1070
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
aa1070
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
aa1070
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
aa1070
+Free Software Foundation, Inc.
aa1070
 
aa1070
 This is free software; see the source for copying conditions.  There is NO
aa1070
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
aa1070
@@ -144,7 +143,7 @@
aa1070
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
aa1070
     *:NetBSD:*:*)
aa1070
 	# NetBSD (nbsd) targets should (where applicable) match one or
aa1070
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
aa1070
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
aa1070
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
aa1070
 	# switched to ELF, *-*-netbsd* would select the old
aa1070
 	# object file format.  This provides both forward
aa1070
@@ -180,7 +179,7 @@
aa1070
 		fi
aa1070
 		;;
aa1070
 	    *)
aa1070
-	        os=netbsd
aa1070
+		os=netbsd
aa1070
 		;;
aa1070
 	esac
aa1070
 	# The OS release
aa1070
@@ -201,6 +200,10 @@
aa1070
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
aa1070
 	echo "${machine}-${os}${release}"
aa1070
 	exit ;;
aa1070
+    *:Bitrig:*:*)
aa1070
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
aa1070
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
aa1070
+	exit ;;
aa1070
     *:OpenBSD:*:*)
aa1070
 	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
aa1070
 	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
aa1070
@@ -223,7 +226,7 @@
aa1070
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
aa1070
 		;;
aa1070
 	*5.*)
aa1070
-	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
aa1070
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
aa1070
 		;;
aa1070
 	esac
aa1070
 	# According to Compaq, /usr/sbin/psrinfo has been available on
aa1070
@@ -269,7 +272,10 @@
aa1070
 	# A Xn.n version is an unreleased experimental baselevel.
aa1070
 	# 1.2 uses "1.2" for uname -r.
aa1070
 	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
aa1070
-	exit ;;
aa1070
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
aa1070
+	exitcode=$?
aa1070
+	trap '' 0
aa1070
+	exit $exitcode ;;
aa1070
     Alpha\ *:Windows_NT*:*)
aa1070
 	# How do we know it's Interix rather than the generic POSIX subsystem?
aa1070
 	# Should we change UNAME_MACHINE based on the output of uname instead
aa1070
@@ -295,12 +301,12 @@
aa1070
 	echo s390-ibm-zvmoe
aa1070
 	exit ;;
aa1070
     *:OS400:*:*)
aa1070
-        echo powerpc-ibm-os400
aa1070
+	echo powerpc-ibm-os400
aa1070
 	exit ;;
aa1070
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
aa1070
 	echo arm-acorn-riscix${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
-    arm:riscos:*:*|arm:RISCOS:*:*)
aa1070
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
aa1070
 	echo arm-unknown-riscos
aa1070
 	exit ;;
aa1070
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
aa1070
@@ -394,23 +400,23 @@
aa1070
     # MiNT.  But MiNT is downward compatible to TOS, so this should
aa1070
     # be no problem.
aa1070
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
aa1070
-        echo m68k-atari-mint${UNAME_RELEASE}
aa1070
+	echo m68k-atari-mint${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
aa1070
 	echo m68k-atari-mint${UNAME_RELEASE}
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
aa1070
-        echo m68k-atari-mint${UNAME_RELEASE}
aa1070
+	echo m68k-atari-mint${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
aa1070
-        echo m68k-milan-mint${UNAME_RELEASE}
aa1070
-        exit ;;
aa1070
+	echo m68k-milan-mint${UNAME_RELEASE}
aa1070
+	exit ;;
aa1070
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
aa1070
-        echo m68k-hades-mint${UNAME_RELEASE}
aa1070
-        exit ;;
aa1070
+	echo m68k-hades-mint${UNAME_RELEASE}
aa1070
+	exit ;;
aa1070
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
aa1070
-        echo m68k-unknown-mint${UNAME_RELEASE}
aa1070
-        exit ;;
aa1070
+	echo m68k-unknown-mint${UNAME_RELEASE}
aa1070
+	exit ;;
aa1070
     m68k:machten:*:*)
aa1070
 	echo m68k-apple-machten${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
@@ -480,8 +486,8 @@
aa1070
 	echo m88k-motorola-sysv3
aa1070
 	exit ;;
aa1070
     AViiON:dgux:*:*)
aa1070
-        # DG/UX returns AViiON for all architectures
aa1070
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
aa1070
+	# DG/UX returns AViiON for all architectures
aa1070
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
aa1070
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
aa1070
 	then
aa1070
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
aa1070
@@ -494,7 +500,7 @@
aa1070
 	else
aa1070
 	    echo i586-dg-dgux${UNAME_RELEASE}
aa1070
 	fi
aa1070
- 	exit ;;
aa1070
+	exit ;;
aa1070
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
aa1070
 	echo m88k-dolphin-sysv3
aa1070
 	exit ;;
aa1070
@@ -551,7 +557,7 @@
aa1070
 		echo rs6000-ibm-aix3.2
aa1070
 	fi
aa1070
 	exit ;;
aa1070
-    *:AIX:*:[456])
aa1070
+    *:AIX:*:[4567])
aa1070
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
aa1070
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
aa1070
 		IBM_ARCH=rs6000
aa1070
@@ -594,52 +600,52 @@
aa1070
 	    9000/[678][0-9][0-9])
aa1070
 		if [ -x /usr/bin/getconf ]; then
aa1070
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
aa1070
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
aa1070
-                    case "${sc_cpu_version}" in
aa1070
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
aa1070
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
aa1070
-                      532)                      # CPU_PA_RISC2_0
aa1070
-                        case "${sc_kernel_bits}" in
aa1070
-                          32) HP_ARCH="hppa2.0n" ;;
aa1070
-                          64) HP_ARCH="hppa2.0w" ;;
aa1070
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
aa1070
+		    case "${sc_cpu_version}" in
aa1070
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
aa1070
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
aa1070
+		      532)                      # CPU_PA_RISC2_0
aa1070
+			case "${sc_kernel_bits}" in
aa1070
+			  32) HP_ARCH="hppa2.0n" ;;
aa1070
+			  64) HP_ARCH="hppa2.0w" ;;
aa1070
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
aa1070
-                        esac ;;
aa1070
-                    esac
aa1070
+			esac ;;
aa1070
+		    esac
aa1070
 		fi
aa1070
 		if [ "${HP_ARCH}" = "" ]; then
aa1070
 		    eval $set_cc_for_build
aa1070
-		    sed 's/^              //' << EOF >$dummy.c
aa1070
+		    sed 's/^		//' << EOF >$dummy.c
aa1070
+
aa1070
+		#define _HPUX_SOURCE
aa1070
+		#include <stdlib.h>
aa1070
+		#include <unistd.h>
aa1070
 
aa1070
-              #define _HPUX_SOURCE
aa1070
-              #include <stdlib.h>
aa1070
-              #include <unistd.h>
aa1070
-
aa1070
-              int main ()
aa1070
-              {
aa1070
-              #if defined(_SC_KERNEL_BITS)
aa1070
-                  long bits = sysconf(_SC_KERNEL_BITS);
aa1070
-              #endif
aa1070
-                  long cpu  = sysconf (_SC_CPU_VERSION);
aa1070
-
aa1070
-                  switch (cpu)
aa1070
-              	{
aa1070
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
aa1070
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
aa1070
-              	case CPU_PA_RISC2_0:
aa1070
-              #if defined(_SC_KERNEL_BITS)
aa1070
-              	    switch (bits)
aa1070
-              		{
aa1070
-              		case 64: puts ("hppa2.0w"); break;
aa1070
-              		case 32: puts ("hppa2.0n"); break;
aa1070
-              		default: puts ("hppa2.0"); break;
aa1070
-              		} break;
aa1070
-              #else  /* !defined(_SC_KERNEL_BITS) */
aa1070
-              	    puts ("hppa2.0"); break;
aa1070
-              #endif
aa1070
-              	default: puts ("hppa1.0"); break;
aa1070
-              	}
aa1070
-                  exit (0);
aa1070
-              }
aa1070
+		int main ()
aa1070
+		{
aa1070
+		#if defined(_SC_KERNEL_BITS)
aa1070
+		    long bits = sysconf(_SC_KERNEL_BITS);
aa1070
+		#endif
aa1070
+		    long cpu  = sysconf (_SC_CPU_VERSION);
aa1070
+
aa1070
+		    switch (cpu)
aa1070
+			{
aa1070
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
aa1070
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
aa1070
+			case CPU_PA_RISC2_0:
aa1070
+		#if defined(_SC_KERNEL_BITS)
aa1070
+			    switch (bits)
aa1070
+				{
aa1070
+				case 64: puts ("hppa2.0w"); break;
aa1070
+				case 32: puts ("hppa2.0n"); break;
aa1070
+				default: puts ("hppa2.0"); break;
aa1070
+				} break;
aa1070
+		#else  /* !defined(_SC_KERNEL_BITS) */
aa1070
+			    puts ("hppa2.0"); break;
aa1070
+		#endif
aa1070
+			default: puts ("hppa1.0"); break;
aa1070
+			}
aa1070
+		    exit (0);
aa1070
+		}
aa1070
 EOF
aa1070
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
aa1070
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
aa1070
@@ -730,22 +736,22 @@
aa1070
 	exit ;;
aa1070
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
aa1070
 	echo c1-convex-bsd
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
aa1070
 	if getsysinfo -f scalar_acc
aa1070
 	then echo c32-convex-bsd
aa1070
 	else echo c2-convex-bsd
aa1070
 	fi
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
aa1070
 	echo c34-convex-bsd
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
aa1070
 	echo c38-convex-bsd
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
aa1070
 	echo c4-convex-bsd
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     CRAY*Y-MP:*:*:*)
aa1070
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
aa1070
 	exit ;;
aa1070
@@ -769,14 +775,14 @@
aa1070
 	exit ;;
aa1070
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
aa1070
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
aa1070
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
aa1070
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
aa1070
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
aa1070
-        exit ;;
aa1070
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
aa1070
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
aa1070
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
aa1070
+	exit ;;
aa1070
     5000:UNIX_System_V:4.*:*)
aa1070
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
aa1070
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
aa1070
-        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
aa1070
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
aa1070
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
aa1070
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
aa1070
 	exit ;;
aa1070
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
aa1070
@@ -788,30 +794,35 @@
aa1070
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
     *:FreeBSD:*:*)
aa1070
-	case ${UNAME_MACHINE} in
aa1070
-	    pc98)
aa1070
-		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
aa1070
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
aa1070
+	case ${UNAME_PROCESSOR} in
aa1070
 	    amd64)
aa1070
 		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
aa1070
 	    *)
aa1070
-		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
aa1070
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
aa1070
 	esac
aa1070
 	exit ;;
aa1070
     i*:CYGWIN*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-cygwin
aa1070
 	exit ;;
aa1070
+    *:MINGW64*:*)
aa1070
+	echo ${UNAME_MACHINE}-pc-mingw64
aa1070
+	exit ;;
aa1070
     *:MINGW*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-mingw32
aa1070
 	exit ;;
aa1070
+    i*:MSYS*:*)
aa1070
+	echo ${UNAME_MACHINE}-pc-msys
aa1070
+	exit ;;
aa1070
     i*:windows32*:*)
aa1070
-    	# uname -m includes "-pc" on this system.
aa1070
-    	echo ${UNAME_MACHINE}-mingw32
aa1070
+	# uname -m includes "-pc" on this system.
aa1070
+	echo ${UNAME_MACHINE}-mingw32
aa1070
 	exit ;;
aa1070
     i*:PW*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-pw32
aa1070
 	exit ;;
aa1070
     *:Interix*:*)
aa1070
-    	case ${UNAME_MACHINE} in
aa1070
+	case ${UNAME_MACHINE} in
aa1070
 	    x86)
aa1070
 		echo i586-pc-interix${UNAME_RELEASE}
aa1070
 		exit ;;
aa1070
@@ -857,6 +868,13 @@
aa1070
     i*86:Minix:*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-minix
aa1070
 	exit ;;
aa1070
+    aarch64:Linux:*:*)
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	exit ;;
aa1070
+    aarch64_be:Linux:*:*)
aa1070
+	UNAME_MACHINE=aarch64_be
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	exit ;;
aa1070
     alpha:Linux:*:*)
aa1070
 	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
aa1070
 	  EV5)   UNAME_MACHINE=alphaev5 ;;
aa1070
@@ -866,7 +884,7 @@
aa1070
 	  EV6)   UNAME_MACHINE=alphaev6 ;;
aa1070
 	  EV67)  UNAME_MACHINE=alphaev67 ;;
aa1070
 	  EV68*) UNAME_MACHINE=alphaev68 ;;
aa1070
-        esac
aa1070
+	esac
aa1070
 	objdump --private-headers /bin/sh | grep -q ld.so.1
aa1070
 	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
aa1070
 	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
aa1070
@@ -878,20 +896,29 @@
aa1070
 	then
aa1070
 	    echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	else
aa1070
-	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
aa1070
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
aa1070
+		| grep -q __ARM_PCS_VFP
aa1070
+	    then
aa1070
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
aa1070
+	    else
aa1070
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
aa1070
+	    fi
aa1070
 	fi
aa1070
 	exit ;;
aa1070
     avr32*:Linux:*:*)
aa1070
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     cris:Linux:*:*)
aa1070
-	echo cris-axis-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-axis-linux-gnu
aa1070
 	exit ;;
aa1070
     crisv32:Linux:*:*)
aa1070
-	echo crisv32-axis-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-axis-linux-gnu
aa1070
 	exit ;;
aa1070
     frv:Linux:*:*)
aa1070
-    	echo frv-unknown-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	exit ;;
aa1070
+    hexagon:Linux:*:*)
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     i*86:Linux:*:*)
aa1070
 	LIBC=gnu
aa1070
@@ -933,7 +960,7 @@
aa1070
 	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
aa1070
 	;;
aa1070
     or32:Linux:*:*)
aa1070
-	echo or32-unknown-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     padre:Linux:*:*)
aa1070
 	echo sparc-unknown-linux-gnu
aa1070
@@ -959,7 +986,7 @@
aa1070
 	echo ${UNAME_MACHINE}-ibm-linux
aa1070
 	exit ;;
aa1070
     sh64*:Linux:*:*)
aa1070
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     sh*:Linux:*:*)
aa1070
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
@@ -967,14 +994,17 @@
aa1070
     sparc:Linux:*:* | sparc64:Linux:*:*)
aa1070
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
+    tile*:Linux:*:*)
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	exit ;;
aa1070
     vax:Linux:*:*)
aa1070
 	echo ${UNAME_MACHINE}-dec-linux-gnu
aa1070
 	exit ;;
aa1070
     x86_64:Linux:*:*)
aa1070
-	echo x86_64-unknown-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     xtensa*:Linux:*:*)
aa1070
-    	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
aa1070
 	exit ;;
aa1070
     i*86:DYNIX/ptx:4*:*)
aa1070
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
aa1070
@@ -983,11 +1013,11 @@
aa1070
 	echo i386-sequent-sysv4
aa1070
 	exit ;;
aa1070
     i*86:UNIX_SV:4.2MP:2.*)
aa1070
-        # Unixware is an offshoot of SVR4, but it has its own version
aa1070
-        # number series starting with 2...
aa1070
-        # I am not positive that other SVR4 systems won't match this,
aa1070
+	# Unixware is an offshoot of SVR4, but it has its own version
aa1070
+	# number series starting with 2...
aa1070
+	# I am not positive that other SVR4 systems won't match this,
aa1070
 	# I just have to hope.  -- rms.
aa1070
-        # Use sysv4.2uw... so that sysv4* matches it.
aa1070
+	# Use sysv4.2uw... so that sysv4* matches it.
aa1070
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
aa1070
 	exit ;;
aa1070
     i*86:OS/2:*:*)
aa1070
@@ -1019,7 +1049,7 @@
aa1070
 	fi
aa1070
 	exit ;;
aa1070
     i*86:*:5:[678]*)
aa1070
-    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
aa1070
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
aa1070
 	case `/bin/uname -X | grep "^Machine"` in
aa1070
 	    *486*)	     UNAME_MACHINE=i486 ;;
aa1070
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
aa1070
@@ -1047,13 +1077,13 @@
aa1070
 	exit ;;
aa1070
     pc:*:*:*)
aa1070
 	# Left here for compatibility:
aa1070
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
aa1070
-        # the processor, so we play safe by assuming i586.
aa1070
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
aa1070
+	# the processor, so we play safe by assuming i586.
aa1070
 	# Note: whatever this is, it MUST be the same as what config.sub
aa1070
 	# prints for the "djgpp" host, or else GDB configury will decide that
aa1070
 	# this is a cross-build.
aa1070
 	echo i586-pc-msdosdjgpp
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     Intel:Mach:3*:*)
aa1070
 	echo i386-pc-mach3
aa1070
 	exit ;;
aa1070
@@ -1088,8 +1118,8 @@
aa1070
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
aa1070
 	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
aa1070
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
aa1070
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
aa1070
-          && { echo i486-ncr-sysv4; exit; } ;;
aa1070
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
aa1070
+	  && { echo i486-ncr-sysv4; exit; } ;;
aa1070
     NCR*:*:4.2:* | MPRAS*:*:4.2:*)
aa1070
 	OS_REL='.3'
aa1070
 	test -r /etc/.relid \
aa1070
@@ -1132,10 +1162,10 @@
aa1070
 		echo ns32k-sni-sysv
aa1070
 	fi
aa1070
 	exit ;;
aa1070
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
aa1070
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
aa1070
-        echo i586-unisys-sysv4
aa1070
-        exit ;;
aa1070
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
aa1070
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
aa1070
+	echo i586-unisys-sysv4
aa1070
+	exit ;;
aa1070
     *:UNIX_System_V:4*:FTX*)
aa1070
 	# From Gerald Hewes <hewes@openmarket.com>.
aa1070
 	# How about differentiating between stratus architectures? -djm
aa1070
@@ -1161,11 +1191,11 @@
aa1070
 	exit ;;
aa1070
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
aa1070
 	if [ -d /usr/nec ]; then
aa1070
-	        echo mips-nec-sysv${UNAME_RELEASE}
aa1070
+		echo mips-nec-sysv${UNAME_RELEASE}
aa1070
 	else
aa1070
-	        echo mips-unknown-sysv${UNAME_RELEASE}
aa1070
+		echo mips-unknown-sysv${UNAME_RELEASE}
aa1070
 	fi
aa1070
-        exit ;;
aa1070
+	exit ;;
aa1070
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
aa1070
 	echo powerpc-be-beos
aa1070
 	exit ;;
aa1070
@@ -1178,6 +1208,9 @@
aa1070
     BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
aa1070
 	echo i586-pc-haiku
aa1070
 	exit ;;
aa1070
+    x86_64:Haiku:*:*)
aa1070
+	echo x86_64-unknown-haiku
aa1070
+	exit ;;
aa1070
     SX-4:SUPER-UX:*:*)
aa1070
 	echo sx4-nec-superux${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
@@ -1230,7 +1263,10 @@
aa1070
     *:QNX:*:4*)
aa1070
 	echo i386-pc-qnx
aa1070
 	exit ;;
aa1070
-    NSE-?:NONSTOP_KERNEL:*:*)
aa1070
+    NEO-?:NONSTOP_KERNEL:*:*)
aa1070
+	echo neo-tandem-nsk${UNAME_RELEASE}
aa1070
+	exit ;;
aa1070
+    NSE-*:NONSTOP_KERNEL:*:*)
aa1070
 	echo nse-tandem-nsk${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
     NSR-?:NONSTOP_KERNEL:*:*)
aa1070
@@ -1275,13 +1311,13 @@
aa1070
 	echo pdp10-unknown-its
aa1070
 	exit ;;
aa1070
     SEI:*:*:SEIUX)
aa1070
-        echo mips-sei-seiux${UNAME_RELEASE}
aa1070
+	echo mips-sei-seiux${UNAME_RELEASE}
aa1070
 	exit ;;
aa1070
     *:DragonFly:*:*)
aa1070
 	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
aa1070
 	exit ;;
aa1070
     *:*VMS:*:*)
aa1070
-    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
aa1070
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
aa1070
 	case "${UNAME_MACHINE}" in
aa1070
 	    A*) echo alpha-dec-vms ; exit ;;
aa1070
 	    I*) echo ia64-dec-vms ; exit ;;
aa1070
@@ -1299,11 +1335,11 @@
aa1070
     i*86:AROS:*:*)
aa1070
 	echo ${UNAME_MACHINE}-pc-aros
aa1070
 	exit ;;
aa1070
+    x86_64:VMkernel:*:*)
aa1070
+	echo ${UNAME_MACHINE}-unknown-esx
aa1070
+	exit ;;
aa1070
 esac
aa1070
 
aa1070
-#echo '(No uname command or uname output not recognized.)' 1>&2
aa1070
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
aa1070
-
aa1070
 eval $set_cc_for_build
aa1070
 cat >$dummy.c <
aa1070
 #ifdef _SEQUENT_
aa1070
@@ -1321,11 +1357,11 @@
aa1070
 #include <sys/param.h>
aa1070
   printf ("m68k-sony-newsos%s\n",
aa1070
 #ifdef NEWSOS4
aa1070
-          "4"
aa1070
+	"4"
aa1070
 #else
aa1070
-	  ""
aa1070
+	""
aa1070
 #endif
aa1070
-         ); exit (0);
aa1070
+	); exit (0);
aa1070
 #endif
aa1070
 #endif
aa1070
 
aa1070
diff -urN aspell-0.60.6.1/config.sub aspell-0.60.6.1-aarch64/config.sub
aa1070
--- aspell-0.60.6.1/config.sub	2011-07-02 16:53:17.000000000 -0500
aa1070
+++ aspell-0.60.6.1-aarch64/config.sub	2013-03-07 19:06:06.651452728 -0600
aa1070
@@ -1,10 +1,10 @@
aa1070
 #! /bin/sh
aa1070
 # Configuration validation subroutine script.
aa1070
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
aa1070
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
aa1070
-#   Free Software Foundation, Inc.
aa1070
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
aa1070
+#   2011, 2012 Free Software Foundation, Inc.
aa1070
 
aa1070
-timestamp='2009-11-20'
aa1070
+timestamp='2012-10-10'
aa1070
 
aa1070
 # This file is (in principle) common to ALL GNU software.
aa1070
 # The presence of a machine in this file suggests that SOME GNU software
aa1070
@@ -21,9 +21,7 @@
aa1070
 # GNU General Public License for more details.
aa1070
 #
aa1070
 # You should have received a copy of the GNU General Public License
aa1070
-# along with this program; if not, write to the Free Software
aa1070
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
aa1070
-# 02110-1301, USA.
aa1070
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
aa1070
 #
aa1070
 # As a special exception to the GNU General Public License, if you
aa1070
 # distribute this file as part of a program that contains a
aa1070
@@ -75,8 +73,9 @@
aa1070
 version="\
aa1070
 GNU config.sub ($timestamp)
aa1070
 
aa1070
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
aa1070
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
aa1070
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
aa1070
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
aa1070
+Free Software Foundation, Inc.
aa1070
 
aa1070
 This is free software; see the source for copying conditions.  There is NO
aa1070
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
aa1070
@@ -123,13 +122,18 @@
aa1070
 # Here we must recognize all the valid KERNEL-OS combinations.
aa1070
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
aa1070
 case $maybe_os in
aa1070
-  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
aa1070
-  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
aa1070
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
aa1070
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
aa1070
+  knetbsd*-gnu* | netbsd*-gnu* | \
aa1070
   kopensolaris*-gnu* | \
aa1070
   storm-chaos* | os2-emx* | rtmk-nova*)
aa1070
     os=-$maybe_os
aa1070
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
aa1070
     ;;
aa1070
+  android-linux)
aa1070
+    os=-linux-android
aa1070
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
aa1070
+    ;;
aa1070
   *)
aa1070
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
aa1070
     if [ $basic_machine != $1 ]
aa1070
@@ -152,12 +156,12 @@
aa1070
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
aa1070
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
aa1070
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
aa1070
-	-apple | -axis | -knuth | -cray | -microblaze)
aa1070
+	-apple | -axis | -knuth | -cray | -microblaze*)
aa1070
 		os=
aa1070
 		basic_machine=$1
aa1070
 		;;
aa1070
-        -bluegene*)
aa1070
-	        os=-cnk
aa1070
+	-bluegene*)
aa1070
+		os=-cnk
aa1070
 		;;
aa1070
 	-sim | -cisco | -oki | -wec | -winbond)
aa1070
 		os=
aa1070
@@ -173,10 +177,10 @@
aa1070
 		os=-chorusos
aa1070
 		basic_machine=$1
aa1070
 		;;
aa1070
- 	-chorusrdb)
aa1070
- 		os=-chorusrdb
aa1070
+	-chorusrdb)
aa1070
+		os=-chorusrdb
aa1070
 		basic_machine=$1
aa1070
- 		;;
aa1070
+		;;
aa1070
 	-hiux*)
aa1070
 		os=-hiuxwe2
aa1070
 		;;
aa1070
@@ -221,6 +225,12 @@
aa1070
 	-isc*)
aa1070
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
aa1070
 		;;
aa1070
+	-lynx*178)
aa1070
+		os=-lynxos178
aa1070
+		;;
aa1070
+	-lynx*5)
aa1070
+		os=-lynxos5
aa1070
+		;;
aa1070
 	-lynx*)
aa1070
 		os=-lynxos
aa1070
 		;;
aa1070
@@ -245,20 +255,25 @@
aa1070
 	# Some are omitted here because they have special meanings below.
aa1070
 	1750a | 580 \
aa1070
 	| a29k \
aa1070
+	| aarch64 | aarch64_be \
aa1070
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
aa1070
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
aa1070
 	| am33_2.0 \
aa1070
 	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
aa1070
+        | be32 | be64 \
aa1070
 	| bfin \
aa1070
 	| c4x | clipper \
aa1070
 	| d10v | d30v | dlx | dsp16xx \
aa1070
+	| epiphany \
aa1070
 	| fido | fr30 | frv \
aa1070
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
aa1070
+	| hexagon \
aa1070
 	| i370 | i860 | i960 | ia64 \
aa1070
 	| ip2k | iq2000 \
aa1070
+	| le32 | le64 \
aa1070
 	| lm32 \
aa1070
 	| m32c | m32r | m32rle | m68000 | m68k | m88k \
aa1070
-	| maxq | mb | microblaze | mcore | mep | metag \
aa1070
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
aa1070
 	| mips | mipsbe | mipseb | mipsel | mipsle \
aa1070
 	| mips16 \
aa1070
 	| mips64 | mips64el \
aa1070
@@ -281,29 +296,39 @@
aa1070
 	| moxie \
aa1070
 	| mt \
aa1070
 	| msp430 \
aa1070
+	| nds32 | nds32le | nds32be \
aa1070
 	| nios | nios2 \
aa1070
 	| ns16k | ns32k \
aa1070
+	| open8 \
aa1070
 	| or32 \
aa1070
 	| pdp10 | pdp11 | pj | pjl \
aa1070
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
aa1070
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
aa1070
 	| pyramid \
aa1070
-	| rx \
aa1070
+	| rl78 | rx \
aa1070
 	| score \
aa1070
 	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
aa1070
 	| sh64 | sh64le \
aa1070
 	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
aa1070
 	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
aa1070
-	| spu | strongarm \
aa1070
-	| tahoe | thumb | tic4x | tic80 | tron \
aa1070
+	| spu \
aa1070
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
aa1070
 	| ubicom32 \
aa1070
-	| v850 | v850e \
aa1070
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
aa1070
 	| we32k \
aa1070
-	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
aa1070
+	| x86 | xc16x | xstormy16 | xtensa \
aa1070
 	| z8k | z80)
aa1070
 		basic_machine=$basic_machine-unknown
aa1070
 		;;
aa1070
-	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
aa1070
-		# Motorola 68HC11/12.
aa1070
+	c54x)
aa1070
+		basic_machine=tic54x-unknown
aa1070
+		;;
aa1070
+	c55x)
aa1070
+		basic_machine=tic55x-unknown
aa1070
+		;;
aa1070
+	c6x)
aa1070
+		basic_machine=tic6x-unknown
aa1070
+		;;
aa1070
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
aa1070
 		basic_machine=$basic_machine-unknown
aa1070
 		os=-none
aa1070
 		;;
aa1070
@@ -313,6 +338,21 @@
aa1070
 		basic_machine=mt-unknown
aa1070
 		;;
aa1070
 
aa1070
+	strongarm | thumb | xscale)
aa1070
+		basic_machine=arm-unknown
aa1070
+		;;
aa1070
+	xgate)
aa1070
+		basic_machine=$basic_machine-unknown
aa1070
+		os=-none
aa1070
+		;;
aa1070
+	xscaleeb)
aa1070
+		basic_machine=armeb-unknown
aa1070
+		;;
aa1070
+
aa1070
+	xscaleel)
aa1070
+		basic_machine=armel-unknown
aa1070
+		;;
aa1070
+
aa1070
 	# We use `pc' rather than `unknown'
aa1070
 	# because (1) that's what they normally are, and
aa1070
 	# (2) the word "unknown" tends to confuse beginning users.
aa1070
@@ -327,25 +367,30 @@
aa1070
 	# Recognize the basic CPU types with company name.
aa1070
 	580-* \
aa1070
 	| a29k-* \
aa1070
+	| aarch64-* | aarch64_be-* \
aa1070
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
aa1070
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
aa1070
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
aa1070
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
aa1070
 	| avr-* | avr32-* \
aa1070
+	| be32-* | be64-* \
aa1070
 	| bfin-* | bs2000-* \
aa1070
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
aa1070
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
aa1070
 	| clipper-* | craynv-* | cydra-* \
aa1070
 	| d10v-* | d30v-* | dlx-* \
aa1070
 	| elxsi-* \
aa1070
 	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
aa1070
 	| h8300-* | h8500-* \
aa1070
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
aa1070
+	| hexagon-* \
aa1070
 	| i*86-* | i860-* | i960-* | ia64-* \
aa1070
 	| ip2k-* | iq2000-* \
aa1070
+	| le32-* | le64-* \
aa1070
 	| lm32-* \
aa1070
 	| m32c-* | m32r-* | m32rle-* \
aa1070
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
aa1070
-	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
aa1070
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
aa1070
+	| microblaze-* | microblazeel-* \
aa1070
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
aa1070
 	| mips16-* \
aa1070
 	| mips64-* | mips64el-* \
aa1070
@@ -367,25 +412,29 @@
aa1070
 	| mmix-* \
aa1070
 	| mt-* \
aa1070
 	| msp430-* \
aa1070
+	| nds32-* | nds32le-* | nds32be-* \
aa1070
 	| nios-* | nios2-* \
aa1070
 	| none-* | np1-* | ns16k-* | ns32k-* \
aa1070
+	| open8-* \
aa1070
 	| orion-* \
aa1070
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
aa1070
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
aa1070
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
aa1070
 	| pyramid-* \
aa1070
-	| romp-* | rs6000-* | rx-* \
aa1070
+	| rl78-* | romp-* | rs6000-* | rx-* \
aa1070
 	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
aa1070
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
aa1070
 	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
aa1070
 	| sparclite-* \
aa1070
-	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
aa1070
-	| tahoe-* | thumb-* \
aa1070
-	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
aa1070
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
aa1070
+	| tahoe-* \
aa1070
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
aa1070
+	| tile*-* \
aa1070
 	| tron-* \
aa1070
 	| ubicom32-* \
aa1070
-	| v850-* | v850e-* | vax-* \
aa1070
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
aa1070
+	| vax-* \
aa1070
 	| we32k-* \
aa1070
-	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
aa1070
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
aa1070
 	| xstormy16-* | xtensa*-* \
aa1070
 	| ymp-* \
aa1070
 	| z8k-* | z80-*)
aa1070
@@ -410,7 +459,7 @@
aa1070
 		basic_machine=a29k-amd
aa1070
 		os=-udi
aa1070
 		;;
aa1070
-    	abacus)
aa1070
+	abacus)
aa1070
 		basic_machine=abacus-unknown
aa1070
 		;;
aa1070
 	adobe68k)
aa1070
@@ -480,11 +529,20 @@
aa1070
 		basic_machine=powerpc-ibm
aa1070
 		os=-cnk
aa1070
 		;;
aa1070
+	c54x-*)
aa1070
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
+		;;
aa1070
+	c55x-*)
aa1070
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
+		;;
aa1070
+	c6x-*)
aa1070
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
+		;;
aa1070
 	c90)
aa1070
 		basic_machine=c90-cray
aa1070
 		os=-unicos
aa1070
 		;;
aa1070
-        cegcc)
aa1070
+	cegcc)
aa1070
 		basic_machine=arm-unknown
aa1070
 		os=-cegcc
aa1070
 		;;
aa1070
@@ -516,7 +574,7 @@
aa1070
 		basic_machine=craynv-cray
aa1070
 		os=-unicosmp
aa1070
 		;;
aa1070
-	cr16)
aa1070
+	cr16 | cr16-*)
aa1070
 		basic_machine=cr16-unknown
aa1070
 		os=-elf
aa1070
 		;;
aa1070
@@ -674,7 +732,6 @@
aa1070
 	i370-ibm* | ibm*)
aa1070
 		basic_machine=i370-ibm
aa1070
 		;;
aa1070
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
aa1070
 	i*86v32)
aa1070
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
aa1070
 		os=-sysv32
aa1070
@@ -732,9 +789,13 @@
aa1070
 		basic_machine=ns32k-utek
aa1070
 		os=-sysv
aa1070
 		;;
aa1070
-        microblaze)
aa1070
+	microblaze*)
aa1070
 		basic_machine=microblaze-xilinx
aa1070
 		;;
aa1070
+	mingw64)
aa1070
+		basic_machine=x86_64-pc
aa1070
+		os=-mingw64
aa1070
+		;;
aa1070
 	mingw32)
aa1070
 		basic_machine=i386-pc
aa1070
 		os=-mingw32
aa1070
@@ -771,10 +832,18 @@
aa1070
 	ms1-*)
aa1070
 		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
aa1070
 		;;
aa1070
+	msys)
aa1070
+		basic_machine=i386-pc
aa1070
+		os=-msys
aa1070
+		;;
aa1070
 	mvs)
aa1070
 		basic_machine=i370-ibm
aa1070
 		os=-mvs
aa1070
 		;;
aa1070
+	nacl)
aa1070
+		basic_machine=le32-unknown
aa1070
+		os=-nacl
aa1070
+		;;
aa1070
 	ncr3000)
aa1070
 		basic_machine=i486-ncr
aa1070
 		os=-sysv4
aa1070
@@ -839,6 +908,12 @@
aa1070
 	np1)
aa1070
 		basic_machine=np1-gould
aa1070
 		;;
aa1070
+	neo-tandem)
aa1070
+		basic_machine=neo-tandem
aa1070
+		;;
aa1070
+	nse-tandem)
aa1070
+		basic_machine=nse-tandem
aa1070
+		;;
aa1070
 	nsr-tandem)
aa1070
 		basic_machine=nsr-tandem
aa1070
 		;;
aa1070
@@ -921,9 +996,10 @@
aa1070
 		;;
aa1070
 	power)	basic_machine=power-ibm
aa1070
 		;;
aa1070
-	ppc)	basic_machine=powerpc-unknown
aa1070
+	ppc | ppcbe)	basic_machine=powerpc-unknown
aa1070
 		;;
aa1070
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
+	ppc-* | ppcbe-*)
aa1070
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
 		;;
aa1070
 	ppcle | powerpclittle | ppc-le | powerpc-little)
aa1070
 		basic_machine=powerpcle-unknown
aa1070
@@ -1017,6 +1093,9 @@
aa1070
 		basic_machine=i860-stratus
aa1070
 		os=-sysv4
aa1070
 		;;
aa1070
+	strongarm-* | thumb-*)
aa1070
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
aa1070
+		;;
aa1070
 	sun2)
aa1070
 		basic_machine=m68000-sun
aa1070
 		;;
aa1070
@@ -1073,20 +1152,8 @@
aa1070
 		basic_machine=t90-cray
aa1070
 		os=-unicos
aa1070
 		;;
aa1070
-	tic54x | c54x*)
aa1070
-		basic_machine=tic54x-unknown
aa1070
-		os=-coff
aa1070
-		;;
aa1070
-	tic55x | c55x*)
aa1070
-		basic_machine=tic55x-unknown
aa1070
-		os=-coff
aa1070
-		;;
aa1070
-	tic6x | c6x*)
aa1070
-		basic_machine=tic6x-unknown
aa1070
-		os=-coff
aa1070
-		;;
aa1070
 	tile*)
aa1070
-		basic_machine=tile-unknown
aa1070
+		basic_machine=$basic_machine-unknown
aa1070
 		os=-linux-gnu
aa1070
 		;;
aa1070
 	tx39)
aa1070
@@ -1156,6 +1223,9 @@
aa1070
 	xps | xps100)
aa1070
 		basic_machine=xps100-honeywell
aa1070
 		;;
aa1070
+	xscale-* | xscalee[bl]-*)
aa1070
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
aa1070
+		;;
aa1070
 	ymp)
aa1070
 		basic_machine=ymp-cray
aa1070
 		os=-unicos
aa1070
@@ -1253,11 +1323,11 @@
aa1070
 if [ x"$os" != x"" ]
aa1070
 then
aa1070
 case $os in
aa1070
-        # First match some system type aliases
aa1070
-        # that might get confused with valid system types.
aa1070
+	# First match some system type aliases
aa1070
+	# that might get confused with valid system types.
aa1070
 	# -solaris* is a basic system type, with this one exception.
aa1070
-        -auroraux)
aa1070
-	        os=-auroraux
aa1070
+	-auroraux)
aa1070
+		os=-auroraux
aa1070
 		;;
aa1070
 	-solaris1 | -solaris1.*)
aa1070
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
aa1070
@@ -1287,14 +1357,15 @@
aa1070
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
aa1070
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
aa1070
 	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
aa1070
-	      | -openbsd* | -solidbsd* \
aa1070
+	      | -bitrig* | -openbsd* | -solidbsd* \
aa1070
 	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
aa1070
 	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
aa1070
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
aa1070
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
aa1070
 	      | -chorusos* | -chorusrdb* | -cegcc* \
aa1070
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
aa1070
-	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
aa1070
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
aa1070
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
aa1070
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
aa1070
 	      | -uxpv* | -beos* | -mpeix* | -udk* \
aa1070
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
aa1070
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
aa1070
@@ -1341,7 +1412,7 @@
aa1070
 	-opened*)
aa1070
 		os=-openedition
aa1070
 		;;
aa1070
-        -os400*)
aa1070
+	-os400*)
aa1070
 		os=-os400
aa1070
 		;;
aa1070
 	-wince*)
aa1070
@@ -1390,7 +1461,7 @@
aa1070
 	-sinix*)
aa1070
 		os=-sysv4
aa1070
 		;;
aa1070
-        -tpf*)
aa1070
+	-tpf*)
aa1070
 		os=-tpf
aa1070
 		;;
aa1070
 	-triton*)
aa1070
@@ -1435,6 +1506,8 @@
aa1070
 	-dicos*)
aa1070
 		os=-dicos
aa1070
 		;;
aa1070
+	-nacl*)
aa1070
+		;;
aa1070
 	-none)
aa1070
 		;;
aa1070
 	*)
aa1070
@@ -1457,10 +1530,10 @@
aa1070
 # system, and we'll never get to this point.
aa1070
 
aa1070
 case $basic_machine in
aa1070
-        score-*)
aa1070
+	score-*)
aa1070
 		os=-elf
aa1070
 		;;
aa1070
-        spu-*)
aa1070
+	spu-*)
aa1070
 		os=-elf
aa1070
 		;;
aa1070
 	*-acorn)
aa1070
@@ -1472,8 +1545,20 @@
aa1070
 	arm*-semi)
aa1070
 		os=-aout
aa1070
 		;;
aa1070
-        c4x-* | tic4x-*)
aa1070
-        	os=-coff
aa1070
+	c4x-* | tic4x-*)
aa1070
+		os=-coff
aa1070
+		;;
aa1070
+	hexagon-*)
aa1070
+		os=-elf
aa1070
+		;;
aa1070
+	tic54x-*)
aa1070
+		os=-coff
aa1070
+		;;
aa1070
+	tic55x-*)
aa1070
+		os=-coff
aa1070
+		;;
aa1070
+	tic6x-*)
aa1070
+		os=-coff
aa1070
 		;;
aa1070
 	# This must come before the *-dec entry.
aa1070
 	pdp10-*)
aa1070
@@ -1493,14 +1578,11 @@
aa1070
 		;;
aa1070
 	m68000-sun)
aa1070
 		os=-sunos3
aa1070
-		# This also exists in the configure program, but was not the
aa1070
-		# default.
aa1070
-		# os=-sunos4
aa1070
 		;;
aa1070
 	m68*-cisco)
aa1070
 		os=-aout
aa1070
 		;;
aa1070
-        mep-*)
aa1070
+	mep-*)
aa1070
 		os=-elf
aa1070
 		;;
aa1070
 	mips*-cisco)
aa1070
@@ -1527,7 +1609,7 @@
aa1070
 	*-ibm)
aa1070
 		os=-aix
aa1070
 		;;
aa1070
-    	*-knuth)
aa1070
+	*-knuth)
aa1070
 		os=-mmixware
aa1070
 		;;
aa1070
 	*-wec)