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