f27011
diff -urN libspiro-20071029/config.guess libspiro-20071029-aarch64/config.guess
f27011
--- libspiro-20071029/config.guess	2007-10-28 16:44:32.000000000 -0500
f27011
+++ libspiro-20071029-aarch64/config.guess	2013-03-03 06:11:04.194609043 -0600
f27011
@@ -1,9 +1,10 @@
f27011
 #! /bin/sh
f27011
 # Attempt to guess a canonical system name.
f27011
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
f27011
-#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
f27011
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
f27011
+#   2011, 2012 Free Software Foundation, Inc.
f27011
 
f27011
-timestamp='2003-01-10'
f27011
+timestamp='2012-09-25'
f27011
 
f27011
 # This file is free software; you can redistribute it and/or modify it
f27011
 # under the terms of the GNU General Public License as published by
f27011
@@ -16,24 +17,24 @@
f27011
 # General Public License for more details.
f27011
 #
f27011
 # You should have received a copy of the GNU General Public License
f27011
-# along with this program; if not, write to the Free Software
f27011
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
f27011
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
f27011
 #
f27011
 # As a special exception to the GNU General Public License, if you
f27011
 # distribute this file as part of a program that contains a
f27011
 # configuration script generated by Autoconf, you may include it under
f27011
 # the same distribution terms that you use for the rest of that program.
f27011
 
f27011
-# Originally written by Per Bothner <per@bothner.com>.
f27011
-# Please send patches to <config-patches@gnu.org>.  Submit a context
f27011
-# diff and a properly formatted ChangeLog entry.
f27011
+
f27011
+# Originally written by Per Bothner.  Please send patches (context
f27011
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
f27011
+# entry.
f27011
 #
f27011
 # This script attempts to guess a canonical system name similar to
f27011
 # config.sub.  If it succeeds, it prints the system name on stdout, and
f27011
 # exits with 0.  Otherwise, it exits with 1.
f27011
 #
f27011
-# The plan is that this can be called by configure scripts if you
f27011
-# don't specify an explicit build system type.
f27011
+# You can get the latest version of this script from:
f27011
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
f27011
 
f27011
 me=`echo "$0" | sed -e 's,.*/,,'`
f27011
 
f27011
@@ -53,7 +54,8 @@
f27011
 GNU config.guess ($timestamp)
f27011
 
f27011
 Originally written by Per Bothner.
f27011
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
f27011
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
f27011
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
f27011
 Free Software Foundation, Inc.
f27011
 
f27011
 This is free software; see the source for copying conditions.  There is NO
f27011
@@ -66,11 +68,11 @@
f27011
 while test $# -gt 0 ; do
f27011
   case $1 in
f27011
     --time-stamp | --time* | -t )
f27011
-       echo "$timestamp" ; exit 0 ;;
f27011
+       echo "$timestamp" ; exit ;;
f27011
     --version | -v )
f27011
-       echo "$version" ; exit 0 ;;
f27011
+       echo "$version" ; exit ;;
f27011
     --help | --h* | -h )
f27011
-       echo "$usage"; exit 0 ;;
f27011
+       echo "$usage"; exit ;;
f27011
     -- )     # Stop option processing
f27011
        shift; break ;;
f27011
     - )	# Use stdin as input.
f27011
@@ -104,8 +106,9 @@
f27011
 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
f27011
 trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
f27011
 : ${TMPDIR=/tmp} ;
f27011
- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
f27011
+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
f27011
  { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
f27011
+ { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
f27011
  { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
f27011
 dummy=$tmp/dummy ;
f27011
 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
f27011
@@ -122,7 +125,7 @@
f27011
 	;;
f27011
  ,,*)   CC_FOR_BUILD=$CC ;;
f27011
  ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
f27011
-esac ;'
f27011
+esac ; set_cc_for_build= ;'
f27011
 
f27011
 # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
f27011
 # (ghazi@noc.rutgers.edu 1994-08-24)
f27011
@@ -140,7 +143,7 @@
f27011
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
f27011
     *:NetBSD:*:*)
f27011
 	# NetBSD (nbsd) targets should (where applicable) match one or
f27011
-	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
f27011
+	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
f27011
 	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
f27011
 	# switched to ELF, *-*-netbsd* would select the old
f27011
 	# object file format.  This provides both forward
f27011
@@ -157,6 +160,7 @@
f27011
 	    arm*) machine=arm-unknown ;;
f27011
 	    sh3el) machine=shl-unknown ;;
f27011
 	    sh3eb) machine=sh-unknown ;;
f27011
+	    sh5el) machine=sh5le-unknown ;;
f27011
 	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
f27011
 	esac
f27011
 	# The Operating System including object format, if it has switched
f27011
@@ -165,7 +169,7 @@
f27011
 	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
f27011
 		eval $set_cc_for_build
f27011
 		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
f27011
-			| grep __ELF__ >/dev/null
f27011
+			| grep -q __ELF__
f27011
 		then
f27011
 		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
f27011
 		    # Return netbsd for either.  FIX?
f27011
@@ -175,7 +179,7 @@
f27011
 		fi
f27011
 		;;
f27011
 	    *)
f27011
-	        os=netbsd
f27011
+		os=netbsd
f27011
 		;;
f27011
 	esac
f27011
 	# The OS release
f27011
@@ -195,141 +199,119 @@
f27011
 	# contains redundant information, the shorter form:
f27011
 	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
f27011
 	echo "${machine}-${os}${release}"
f27011
-	exit 0 ;;
f27011
-    amiga:OpenBSD:*:*)
f27011
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    arc:OpenBSD:*:*)
f27011
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    hp300:OpenBSD:*:*)
f27011
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    mac68k:OpenBSD:*:*)
f27011
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    macppc:OpenBSD:*:*)
f27011
-	echo powerpc-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    mvme68k:OpenBSD:*:*)
f27011
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    mvme88k:OpenBSD:*:*)
f27011
-	echo m88k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    mvmeppc:OpenBSD:*:*)
f27011
-	echo powerpc-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    pmax:OpenBSD:*:*)
f27011
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    sgi:OpenBSD:*:*)
f27011
-	echo mipseb-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    sun3:OpenBSD:*:*)
f27011
-	echo m68k-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    wgrisc:OpenBSD:*:*)
f27011
-	echo mipsel-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    *:Bitrig:*:*)
f27011
+	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
f27011
+	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     *:OpenBSD:*:*)
f27011
-	echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    *:MicroBSD:*:*)
f27011
-	echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
f27011
+	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    *:ekkoBSD:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    *:SolidBSD:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    macppc:MirBSD:*:*)
f27011
+	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    *:MirBSD:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     alpha:OSF1:*:*)
f27011
-	if test $UNAME_RELEASE = "V4.0"; then
f27011
+	case $UNAME_RELEASE in
f27011
+	*4.0)
f27011
 		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
f27011
-	fi
f27011
+		;;
f27011
+	*5.*)
f27011
+		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
f27011
+		;;
f27011
+	esac
f27011
+	# According to Compaq, /usr/sbin/psrinfo has been available on
f27011
+	# OSF/1 and Tru64 systems produced since 1995.  I hope that
f27011
+	# covers most systems running today.  This code pipes the CPU
f27011
+	# types through head -n 1, so we only detect the type of CPU 0.
f27011
+	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
f27011
+	case "$ALPHA_CPU_TYPE" in
f27011
+	    "EV4 (21064)")
f27011
+		UNAME_MACHINE="alpha" ;;
f27011
+	    "EV4.5 (21064)")
f27011
+		UNAME_MACHINE="alpha" ;;
f27011
+	    "LCA4 (21066/21068)")
f27011
+		UNAME_MACHINE="alpha" ;;
f27011
+	    "EV5 (21164)")
f27011
+		UNAME_MACHINE="alphaev5" ;;
f27011
+	    "EV5.6 (21164A)")
f27011
+		UNAME_MACHINE="alphaev56" ;;
f27011
+	    "EV5.6 (21164PC)")
f27011
+		UNAME_MACHINE="alphapca56" ;;
f27011
+	    "EV5.7 (21164PC)")
f27011
+		UNAME_MACHINE="alphapca57" ;;
f27011
+	    "EV6 (21264)")
f27011
+		UNAME_MACHINE="alphaev6" ;;
f27011
+	    "EV6.7 (21264A)")
f27011
+		UNAME_MACHINE="alphaev67" ;;
f27011
+	    "EV6.8CB (21264C)")
f27011
+		UNAME_MACHINE="alphaev68" ;;
f27011
+	    "EV6.8AL (21264B)")
f27011
+		UNAME_MACHINE="alphaev68" ;;
f27011
+	    "EV6.8CX (21264D)")
f27011
+		UNAME_MACHINE="alphaev68" ;;
f27011
+	    "EV6.9A (21264/EV69A)")
f27011
+		UNAME_MACHINE="alphaev69" ;;
f27011
+	    "EV7 (21364)")
f27011
+		UNAME_MACHINE="alphaev7" ;;
f27011
+	    "EV7.9 (21364A)")
f27011
+		UNAME_MACHINE="alphaev79" ;;
f27011
+	esac
f27011
+	# A Pn.n version is a patched version.
f27011
 	# A Vn.n version is a released version.
f27011
 	# A Tn.n version is a released field test version.
f27011
 	# A Xn.n version is an unreleased experimental baselevel.
f27011
 	# 1.2 uses "1.2" for uname -r.
f27011
-	eval $set_cc_for_build
f27011
-	cat <<EOF >$dummy.s
f27011
-	.data
f27011
-\$Lformat:
f27011
-	.byte 37,100,45,37,120,10,0	# "%d-%x\n"
f27011
-
f27011
-	.text
f27011
-	.globl main
f27011
-	.align 4
f27011
-	.ent main
f27011
-main:
f27011
-	.frame \$30,16,\$26,0
f27011
-	ldgp \$29,0(\$27)
f27011
-	.prologue 1
f27011
-	.long 0x47e03d80 # implver \$0
f27011
-	lda \$2,-1
f27011
-	.long 0x47e20c21 # amask \$2,\$1
f27011
-	lda \$16,\$Lformat
f27011
-	mov \$0,\$17
f27011
-	not \$1,\$18
f27011
-	jsr \$26,printf
f27011
-	ldgp \$29,0(\$26)
f27011
-	mov 0,\$16
f27011
-	jsr \$26,exit
f27011
-	.end main
f27011
-EOF
f27011
-	$CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
f27011
-	if test "$?" = 0 ; then
f27011
-		case `$dummy` in
f27011
-			0-0)
f27011
-				UNAME_MACHINE="alpha"
f27011
-				;;
f27011
-			1-0)
f27011
-				UNAME_MACHINE="alphaev5"
f27011
-				;;
f27011
-			1-1)
f27011
-				UNAME_MACHINE="alphaev56"
f27011
-				;;
f27011
-			1-101)
f27011
-				UNAME_MACHINE="alphapca56"
f27011
-				;;
f27011
-			2-303)
f27011
-				UNAME_MACHINE="alphaev6"
f27011
-				;;
f27011
-			2-307)
f27011
-				UNAME_MACHINE="alphaev67"
f27011
-				;;
f27011
-			2-1307)
f27011
-				UNAME_MACHINE="alphaev68"
f27011
-				;;
f27011
-			3-1307)
f27011
-				UNAME_MACHINE="alphaev7"
f27011
-				;;
f27011
-		esac
f27011
-	fi
f27011
-	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
f27011
-	exit 0 ;;
f27011
+	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
f27011
+	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
f27011
+	exitcode=$?
f27011
+	trap '' 0
f27011
+	exit $exitcode ;;
f27011
     Alpha\ *:Windows_NT*:*)
f27011
 	# How do we know it's Interix rather than the generic POSIX subsystem?
f27011
 	# Should we change UNAME_MACHINE based on the output of uname instead
f27011
 	# of the specific Alpha model?
f27011
 	echo alpha-pc-interix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     21064:Windows_NT:50:3)
f27011
 	echo alpha-dec-winnt3.5
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Amiga*:UNIX_System_V:4.0:*)
f27011
 	echo m68k-unknown-sysv4
f27011
-	exit 0;;
f27011
+	exit ;;
f27011
     *:[Aa]miga[Oo][Ss]:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-amigaos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:[Mm]orph[Oo][Ss]:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-morphos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:OS/390:*:*)
f27011
 	echo i370-ibm-openedition
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    *:z/VM:*:*)
f27011
+	echo s390-ibm-zvmoe
f27011
+	exit ;;
f27011
+    *:OS400:*:*)
f27011
+	echo powerpc-ibm-os400
f27011
+	exit ;;
f27011
     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
f27011
 	echo arm-acorn-riscix${UNAME_RELEASE}
f27011
-	exit 0;;
f27011
+	exit ;;
f27011
+    arm*:riscos:*:*|arm*:RISCOS:*:*)
f27011
+	echo arm-unknown-riscos
f27011
+	exit ;;
f27011
     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
f27011
 	echo hppa1.1-hitachi-hiuxmpp
f27011
-	exit 0;;
f27011
+	exit ;;
f27011
     Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
f27011
 	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
f27011
 	if test "`(/bin/universe) 2>/dev/null`" = att ; then
f27011
@@ -337,29 +319,51 @@
f27011
 	else
f27011
 		echo pyramid-pyramid-bsd
f27011
 	fi
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     NILE*:*:*:dcosx)
f27011
 	echo pyramid-pyramid-svr4
f27011
-	exit 0 ;;
f27011
-    DRS?6000:UNIX_SV:4.2*:7*)
f27011
+	exit ;;
f27011
+    DRS?6000:unix:4.0:6*)
f27011
+	echo sparc-icl-nx6
f27011
+	exit ;;
f27011
+    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
f27011
 	case `/usr/bin/uname -p` in
f27011
-	    sparc) echo sparc-icl-nx7 && exit 0 ;;
f27011
+	    sparc) echo sparc-icl-nx7; exit ;;
f27011
 	esac ;;
f27011
+    s390x:SunOS:*:*)
f27011
+	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
+	exit ;;
f27011
     sun4H:SunOS:5.*:*)
f27011
 	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
f27011
 	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
-	exit 0 ;;
f27011
-    i86pc:SunOS:5.*:*)
f27011
-	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
f27011
+	echo i386-pc-auroraux${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
f27011
+	eval $set_cc_for_build
f27011
+	SUN_ARCH="i386"
f27011
+	# If there is a compiler, see if it is configured for 64-bit objects.
f27011
+	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
f27011
+	# This test works for both compilers.
f27011
+	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
f27011
+	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
f27011
+		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
f27011
+		grep IS_64BIT_ARCH >/dev/null
f27011
+	    then
f27011
+		SUN_ARCH="x86_64"
f27011
+	    fi
f27011
+	fi
f27011
+	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
+	exit ;;
f27011
     sun4*:SunOS:6*:*)
f27011
 	# According to config.sub, this is the proper way to canonicalize
f27011
 	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
f27011
 	# it's likely to be more like Solaris than SunOS4.
f27011
 	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sun4*:SunOS:*:*)
f27011
 	case "`/usr/bin/arch -k`" in
f27011
 	    Series*|S4*)
f27011
@@ -368,10 +372,10 @@
f27011
 	esac
f27011
 	# Japanese Language versions have a version number like `4.1.3-JL'.
f27011
 	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sun3*:SunOS:*:*)
f27011
 	echo m68k-sun-sunos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sun*:*:4.2BSD:*)
f27011
 	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
f27011
 	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
f27011
@@ -383,10 +387,10 @@
f27011
 		echo sparc-sun-sunos${UNAME_RELEASE}
f27011
 		;;
f27011
 	esac
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     aushp:SunOS:*:*)
f27011
 	echo sparc-auspex-sunos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     # The situation for MiNT is a little confusing.  The machine name
f27011
     # can be virtually everything (everything which is not
f27011
     # "atarist" or "atariste" at least should have a processor
f27011
@@ -396,38 +400,41 @@
f27011
     # MiNT.  But MiNT is downward compatible to TOS, so this should
f27011
     # be no problem.
f27011
     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
f27011
-        echo m68k-atari-mint${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	echo m68k-atari-mint${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
f27011
 	echo m68k-atari-mint${UNAME_RELEASE}
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
f27011
-        echo m68k-atari-mint${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	echo m68k-atari-mint${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
f27011
-        echo m68k-milan-mint${UNAME_RELEASE}
f27011
-        exit 0 ;;
f27011
+	echo m68k-milan-mint${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
f27011
-        echo m68k-hades-mint${UNAME_RELEASE}
f27011
-        exit 0 ;;
f27011
+	echo m68k-hades-mint${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
f27011
-        echo m68k-unknown-mint${UNAME_RELEASE}
f27011
-        exit 0 ;;
f27011
+	echo m68k-unknown-mint${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    m68k:machten:*:*)
f27011
+	echo m68k-apple-machten${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     powerpc:machten:*:*)
f27011
 	echo powerpc-apple-machten${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     RISC*:Mach:*:*)
f27011
 	echo mips-dec-mach_bsd4.3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     RISC*:ULTRIX:*:*)
f27011
 	echo mips-dec-ultrix${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     VAX*:ULTRIX*:*:*)
f27011
 	echo vax-dec-ultrix${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     2020:CLIX:*:* | 2430:CLIX:*:*)
f27011
 	echo clipper-intergraph-clix${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     mips:*:*:UMIPS | mips:*:*:RISCos)
f27011
 	eval $set_cc_for_build
f27011
 	sed 's/^	//' << EOF >$dummy.c
f27011
@@ -451,35 +458,36 @@
f27011
 	  exit (-1);
f27011
 	}
f27011
 EOF
f27011
-	$CC_FOR_BUILD -o $dummy $dummy.c \
f27011
-	  && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
f27011
-	  && exit 0
f27011
+	$CC_FOR_BUILD -o $dummy $dummy.c &&
f27011
+	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
f27011
+	  SYSTEM_NAME=`$dummy $dummyarg` &&
f27011
+	    { echo "$SYSTEM_NAME"; exit; }
f27011
 	echo mips-mips-riscos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Motorola:PowerMAX_OS:*:*)
f27011
 	echo powerpc-motorola-powermax
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Motorola:*:4.3:PL8-*)
f27011
 	echo powerpc-harris-powermax
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
f27011
 	echo powerpc-harris-powermax
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Night_Hawk:Power_UNIX:*:*)
f27011
 	echo powerpc-harris-powerunix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     m88k:CX/UX:7*:*)
f27011
 	echo m88k-harris-cxux7
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     m88k:*:4*:R4*)
f27011
 	echo m88k-motorola-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     m88k:*:3*:R3*)
f27011
 	echo m88k-motorola-sysv3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     AViiON:dgux:*:*)
f27011
-        # DG/UX returns AViiON for all architectures
f27011
-        UNAME_PROCESSOR=`/usr/bin/uname -p`
f27011
+	# DG/UX returns AViiON for all architectures
f27011
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
f27011
 	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
f27011
 	then
f27011
 	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
f27011
@@ -492,29 +500,29 @@
f27011
 	else
f27011
 	    echo i586-dg-dgux${UNAME_RELEASE}
f27011
 	fi
f27011
- 	exit 0 ;;
f27011
+	exit ;;
f27011
     M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
f27011
 	echo m88k-dolphin-sysv3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     M88*:*:R3*:*)
f27011
 	# Delta 88k system running SVR3
f27011
 	echo m88k-motorola-sysv3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
f27011
 	echo m88k-tektronix-sysv3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
f27011
 	echo m68k-tektronix-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:IRIX*:*:*)
f27011
 	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
f27011
-	echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
f27011
-	exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
f27011
+	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
f27011
+	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
f27011
     i*86:AIX:*:*)
f27011
 	echo i386-ibm-aix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     ia64:AIX:*:*)
f27011
 	if [ -x /usr/bin/oslevel ] ; then
f27011
 		IBM_REV=`/usr/bin/oslevel`
f27011
@@ -522,7 +530,7 @@
f27011
 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
f27011
 	fi
f27011
 	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:AIX:2:3)
f27011
 	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
f27011
 		eval $set_cc_for_build
f27011
@@ -537,15 +545,19 @@
f27011
 			exit(0);
f27011
 			}
f27011
 EOF
f27011
-		$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
f27011
-		echo rs6000-ibm-aix3.2.5
f27011
+		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
f27011
+		then
f27011
+			echo "$SYSTEM_NAME"
f27011
+		else
f27011
+			echo rs6000-ibm-aix3.2.5
f27011
+		fi
f27011
 	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
f27011
 		echo rs6000-ibm-aix3.2.4
f27011
 	else
f27011
 		echo rs6000-ibm-aix3.2
f27011
 	fi
f27011
-	exit 0 ;;
f27011
-    *:AIX:*:[45])
f27011
+	exit ;;
f27011
+    *:AIX:*:[4567])
f27011
 	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
f27011
 	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
f27011
 		IBM_ARCH=rs6000
f27011
@@ -558,28 +570,28 @@
f27011
 		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
f27011
 	fi
f27011
 	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:AIX:*:*)
f27011
 	echo rs6000-ibm-aix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
f27011
 	echo romp-ibm-bsd4.4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
f27011
 	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
f27011
-	exit 0 ;;                           # report: romp-ibm BSD 4.3
f27011
+	exit ;;                             # report: romp-ibm BSD 4.3
f27011
     *:BOSX:*:*)
f27011
 	echo rs6000-bull-bosx
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     DPX/2?00:B.O.S.:*:*)
f27011
 	echo m68k-bull-sysv3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     9000/[34]??:4.3bsd:1.*:*)
f27011
 	echo m68k-hp-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
f27011
 	echo m68k-hp-bsd4.4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     9000/[34678]??:HP-UX:*:*)
f27011
 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
f27011
 	case "${UNAME_MACHINE}" in
f27011
@@ -588,52 +600,52 @@
f27011
 	    9000/[678][0-9][0-9])
f27011
 		if [ -x /usr/bin/getconf ]; then
f27011
 		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
f27011
-                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
f27011
-                    case "${sc_cpu_version}" in
f27011
-                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
f27011
-                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
f27011
-                      532)                      # CPU_PA_RISC2_0
f27011
-                        case "${sc_kernel_bits}" in
f27011
-                          32) HP_ARCH="hppa2.0n" ;;
f27011
-                          64) HP_ARCH="hppa2.0w" ;;
f27011
+		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
f27011
+		    case "${sc_cpu_version}" in
f27011
+		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
f27011
+		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
f27011
+		      532)                      # CPU_PA_RISC2_0
f27011
+			case "${sc_kernel_bits}" in
f27011
+			  32) HP_ARCH="hppa2.0n" ;;
f27011
+			  64) HP_ARCH="hppa2.0w" ;;
f27011
 			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
f27011
-                        esac ;;
f27011
-                    esac
f27011
+			esac ;;
f27011
+		    esac
f27011
 		fi
f27011
 		if [ "${HP_ARCH}" = "" ]; then
f27011
 		    eval $set_cc_for_build
f27011
-		    sed 's/^              //' << EOF >$dummy.c
f27011
+		    sed 's/^		//' << EOF >$dummy.c
f27011
+
f27011
+		#define _HPUX_SOURCE
f27011
+		#include <stdlib.h>
f27011
+		#include <unistd.h>
f27011
+
f27011
+		int main ()
f27011
+		{
f27011
+		#if defined(_SC_KERNEL_BITS)
f27011
+		    long bits = sysconf(_SC_KERNEL_BITS);
f27011
+		#endif
f27011
+		    long cpu  = sysconf (_SC_CPU_VERSION);
f27011
 
f27011
-              #define _HPUX_SOURCE
f27011
-              #include <stdlib.h>
f27011
-              #include <unistd.h>
f27011
-
f27011
-              int main ()
f27011
-              {
f27011
-              #if defined(_SC_KERNEL_BITS)
f27011
-                  long bits = sysconf(_SC_KERNEL_BITS);
f27011
-              #endif
f27011
-                  long cpu  = sysconf (_SC_CPU_VERSION);
f27011
-
f27011
-                  switch (cpu)
f27011
-              	{
f27011
-              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
f27011
-              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
f27011
-              	case CPU_PA_RISC2_0:
f27011
-              #if defined(_SC_KERNEL_BITS)
f27011
-              	    switch (bits)
f27011
-              		{
f27011
-              		case 64: puts ("hppa2.0w"); break;
f27011
-              		case 32: puts ("hppa2.0n"); break;
f27011
-              		default: puts ("hppa2.0"); break;
f27011
-              		} break;
f27011
-              #else  /* !defined(_SC_KERNEL_BITS) */
f27011
-              	    puts ("hppa2.0"); break;
f27011
-              #endif
f27011
-              	default: puts ("hppa1.0"); break;
f27011
-              	}
f27011
-                  exit (0);
f27011
-              }
f27011
+		    switch (cpu)
f27011
+			{
f27011
+			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
f27011
+			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
f27011
+			case CPU_PA_RISC2_0:
f27011
+		#if defined(_SC_KERNEL_BITS)
f27011
+			    switch (bits)
f27011
+				{
f27011
+				case 64: puts ("hppa2.0w"); break;
f27011
+				case 32: puts ("hppa2.0n"); break;
f27011
+				default: puts ("hppa2.0"); break;
f27011
+				} break;
f27011
+		#else  /* !defined(_SC_KERNEL_BITS) */
f27011
+			    puts ("hppa2.0"); break;
f27011
+		#endif
f27011
+			default: puts ("hppa1.0"); break;
f27011
+			}
f27011
+		    exit (0);
f27011
+		}
f27011
 EOF
f27011
 		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
f27011
 		    test -z "$HP_ARCH" && HP_ARCH=hppa
f27011
@@ -641,9 +653,19 @@
f27011
 	esac
f27011
 	if [ ${HP_ARCH} = "hppa2.0w" ]
f27011
 	then
f27011
-	    # avoid double evaluation of $set_cc_for_build
f27011
-	    test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
f27011
-	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
f27011
+	    eval $set_cc_for_build
f27011
+
f27011
+	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
f27011
+	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
f27011
+	    # generating 64-bit code.  GNU and HP use different nomenclature:
f27011
+	    #
f27011
+	    # $ CC_FOR_BUILD=cc ./config.guess
f27011
+	    # => hppa2.0w-hp-hpux11.23
f27011
+	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
f27011
+	    # => hppa64-hp-hpux11.23
f27011
+
f27011
+	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
f27011
+		grep -q __LP64__
f27011
 	    then
f27011
 		HP_ARCH="hppa2.0w"
f27011
 	    else
f27011
@@ -651,11 +673,11 @@
f27011
 	    fi
f27011
 	fi
f27011
 	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     ia64:HP-UX:*:*)
f27011
 	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
f27011
 	echo ia64-hp-hpux${HPUX_REV}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     3050*:HI-UX:*:*)
f27011
 	eval $set_cc_for_build
f27011
 	sed 's/^	//' << EOF >$dummy.c
f27011
@@ -683,205 +705,269 @@
f27011
 	  exit (0);
f27011
 	}
f27011
 EOF
f27011
-	$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
f27011
+	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
f27011
+		{ echo "$SYSTEM_NAME"; exit; }
f27011
 	echo unknown-hitachi-hiuxwe2
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
f27011
 	echo hppa1.1-hp-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     9000/8??:4.3bsd:*:*)
f27011
 	echo hppa1.0-hp-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
f27011
 	echo hppa1.0-hp-mpeix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
f27011
 	echo hppa1.1-hp-osf
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     hp8??:OSF1:*:*)
f27011
 	echo hppa1.0-hp-osf
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:OSF1:*:*)
f27011
 	if [ -x /usr/sbin/sysversion ] ; then
f27011
 	    echo ${UNAME_MACHINE}-unknown-osf1mk
f27011
 	else
f27011
 	    echo ${UNAME_MACHINE}-unknown-osf1
f27011
 	fi
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     parisc*:Lites*:*:*)
f27011
 	echo hppa1.1-hp-lites
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
f27011
 	echo c1-convex-bsd
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
f27011
 	if getsysinfo -f scalar_acc
f27011
 	then echo c32-convex-bsd
f27011
 	else echo c2-convex-bsd
f27011
 	fi
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
f27011
 	echo c34-convex-bsd
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
f27011
 	echo c38-convex-bsd
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
f27011
 	echo c4-convex-bsd
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     CRAY*Y-MP:*:*:*)
f27011
 	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     CRAY*[A-Z]90:*:*:*)
f27011
 	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
f27011
 	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
f27011
 	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
f27011
 	      -e 's/\.[^.]*$/.X/'
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     CRAY*TS:*:*:*)
f27011
 	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     CRAY*T3E:*:*:*)
f27011
 	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     CRAY*SV1:*:*:*)
f27011
 	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:UNICOS/mp:*:*)
f27011
-	echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 
f27011
-	exit 0 ;;
f27011
+	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
f27011
+	exit ;;
f27011
     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
f27011
 	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
f27011
-        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
f27011
-        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
f27011
-        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
f27011
-        exit 0 ;;
f27011
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
f27011
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
f27011
+	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
f27011
+	exit ;;
f27011
+    5000:UNIX_System_V:4.*:*)
f27011
+	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
f27011
+	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
f27011
+	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
f27011
+	exit ;;
f27011
     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sparc*:BSD/OS:*:*)
f27011
 	echo sparc-unknown-bsdi${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:BSD/OS:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:FreeBSD:*:*)
f27011
-	# Determine whether the default compiler uses glibc.
f27011
-	eval $set_cc_for_build
f27011
-	sed 's/^	//' << EOF >$dummy.c
f27011
-	#include <features.h>
f27011
-	#if __GLIBC__ >= 2
f27011
-	LIBC=gnu
f27011
-	#else
f27011
-	LIBC=
f27011
-	#endif
f27011
-EOF
f27011
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
f27011
-	echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
f27011
-	exit 0 ;;
f27011
+	UNAME_PROCESSOR=`/usr/bin/uname -p`
f27011
+	case ${UNAME_PROCESSOR} in
f27011
+	    amd64)
f27011
+		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
f27011
+	    *)
f27011
+		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
f27011
+	esac
f27011
+	exit ;;
f27011
     i*:CYGWIN*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-cygwin
f27011
-	exit 0 ;;
f27011
-    i*:MINGW*:*)
f27011
+	exit ;;
f27011
+    *:MINGW64*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-mingw64
f27011
+	exit ;;
f27011
+    *:MINGW*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-mingw32
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    i*:MSYS*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-msys
f27011
+	exit ;;
f27011
+    i*:windows32*:*)
f27011
+	# uname -m includes "-pc" on this system.
f27011
+	echo ${UNAME_MACHINE}-mingw32
f27011
+	exit ;;
f27011
     i*:PW*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-pw32
f27011
-	exit 0 ;;
f27011
-    x86:Interix*:3*)
f27011
-	echo i586-pc-interix3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    *:Interix*:*)
f27011
+	case ${UNAME_MACHINE} in
f27011
+	    x86)
f27011
+		echo i586-pc-interix${UNAME_RELEASE}
f27011
+		exit ;;
f27011
+	    authenticamd | genuineintel | EM64T)
f27011
+		echo x86_64-unknown-interix${UNAME_RELEASE}
f27011
+		exit ;;
f27011
+	    IA64)
f27011
+		echo ia64-unknown-interix${UNAME_RELEASE}
f27011
+		exit ;;
f27011
+	esac ;;
f27011
     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
f27011
 	echo i${UNAME_MACHINE}-pc-mks
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    8664:Windows_NT:*)
f27011
+	echo x86_64-pc-mks
f27011
+	exit ;;
f27011
     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
f27011
 	# How do we know it's Interix rather than the generic POSIX subsystem?
f27011
 	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
f27011
 	# UNAME_MACHINE based on the output of uname instead of i386?
f27011
 	echo i586-pc-interix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*:UWIN*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-uwin
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
f27011
+	echo x86_64-unknown-cygwin
f27011
+	exit ;;
f27011
     p*:CYGWIN*:*)
f27011
 	echo powerpcle-unknown-cygwin
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     prep*:SunOS:5.*:*)
f27011
 	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:GNU:*:*)
f27011
+	# the GNU system
f27011
 	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    *:GNU/*:*:*)
f27011
+	# other systems with GNU libc and userland
f27011
+	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
f27011
+	exit ;;
f27011
     i*86:Minix:*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-minix
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    aarch64:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    aarch64_be:Linux:*:*)
f27011
+	UNAME_MACHINE=aarch64_be
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    alpha:Linux:*:*)
f27011
+	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
f27011
+	  EV5)   UNAME_MACHINE=alphaev5 ;;
f27011
+	  EV56)  UNAME_MACHINE=alphaev56 ;;
f27011
+	  PCA56) UNAME_MACHINE=alphapca56 ;;
f27011
+	  PCA57) UNAME_MACHINE=alphapca56 ;;
f27011
+	  EV6)   UNAME_MACHINE=alphaev6 ;;
f27011
+	  EV67)  UNAME_MACHINE=alphaev67 ;;
f27011
+	  EV68*) UNAME_MACHINE=alphaev68 ;;
f27011
+	esac
f27011
+	objdump --private-headers /bin/sh | grep -q ld.so.1
f27011
+	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
f27011
+	exit ;;
f27011
     arm*:Linux:*:*)
f27011
+	eval $set_cc_for_build
f27011
+	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
f27011
+	    | grep -q __ARM_EABI__
f27011
+	then
f27011
+	    echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	else
f27011
+	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
f27011
+		| grep -q __ARM_PCS_VFP
f27011
+	    then
f27011
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
f27011
+	    else
f27011
+		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
f27011
+	    fi
f27011
+	fi
f27011
+	exit ;;
f27011
+    avr32*:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    ia64:Linux:*:*)
f27011
+	exit ;;
f27011
+    cris:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-axis-linux-gnu
f27011
+	exit ;;
f27011
+    crisv32:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-axis-linux-gnu
f27011
+	exit ;;
f27011
+    frv:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    m68*:Linux:*:*)
f27011
+	exit ;;
f27011
+    hexagon:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    mips:Linux:*:*)
f27011
+	exit ;;
f27011
+    i*86:Linux:*:*)
f27011
+	LIBC=gnu
f27011
 	eval $set_cc_for_build
f27011
 	sed 's/^	//' << EOF >$dummy.c
f27011
-	#undef CPU
f27011
-	#undef mips
f27011
-	#undef mipsel
f27011
-	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
f27011
-	CPU=mipsel
f27011
-	#else
f27011
-	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
f27011
-	CPU=mips
f27011
-	#else
f27011
-	CPU=
f27011
-	#endif
f27011
+	#ifdef __dietlibc__
f27011
+	LIBC=dietlibc
f27011
 	#endif
f27011
 EOF
f27011
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
f27011
-	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
f27011
-	;;
f27011
-    mips64:Linux:*:*)
f27011
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
f27011
+	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
f27011
+	exit ;;
f27011
+    ia64:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    m32r*:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    m68*:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    mips:Linux:*:* | mips64:Linux:*:*)
f27011
 	eval $set_cc_for_build
f27011
 	sed 's/^	//' << EOF >$dummy.c
f27011
 	#undef CPU
f27011
-	#undef mips64
f27011
-	#undef mips64el
f27011
+	#undef ${UNAME_MACHINE}
f27011
+	#undef ${UNAME_MACHINE}el
f27011
 	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
f27011
-	CPU=mips64el
f27011
+	CPU=${UNAME_MACHINE}el
f27011
 	#else
f27011
 	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
f27011
-	CPU=mips64
f27011
+	CPU=${UNAME_MACHINE}
f27011
 	#else
f27011
 	CPU=
f27011
 	#endif
f27011
 	#endif
f27011
 EOF
f27011
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
f27011
-	test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
f27011
+	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
f27011
+	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
f27011
 	;;
f27011
-    ppc:Linux:*:*)
f27011
-	echo powerpc-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    ppc64:Linux:*:*)
f27011
-	echo powerpc64-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    alpha:Linux:*:*)
f27011
-	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
f27011
-	  EV5)   UNAME_MACHINE=alphaev5 ;;
f27011
-	  EV56)  UNAME_MACHINE=alphaev56 ;;
f27011
-	  PCA56) UNAME_MACHINE=alphapca56 ;;
f27011
-	  PCA57) UNAME_MACHINE=alphapca56 ;;
f27011
-	  EV6)   UNAME_MACHINE=alphaev6 ;;
f27011
-	  EV67)  UNAME_MACHINE=alphaev67 ;;
f27011
-	  EV68*) UNAME_MACHINE=alphaev68 ;;
f27011
-        esac
f27011
-	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
f27011
-	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
f27011
-	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
f27011
-	exit 0 ;;
f27011
+    or32:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    padre:Linux:*:*)
f27011
+	echo sparc-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    parisc64:Linux:*:* | hppa64:Linux:*:*)
f27011
+	echo hppa64-unknown-linux-gnu
f27011
+	exit ;;
f27011
     parisc:Linux:*:* | hppa:Linux:*:*)
f27011
 	# Look for CPU level
f27011
 	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
f27011
@@ -889,106 +975,71 @@
f27011
 	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
f27011
 	  *)    echo hppa-unknown-linux-gnu ;;
f27011
 	esac
f27011
-	exit 0 ;;
f27011
-    parisc64:Linux:*:* | hppa64:Linux:*:*)
f27011
-	echo hppa64-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    ppc64:Linux:*:*)
f27011
+	echo powerpc64-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    ppc:Linux:*:*)
f27011
+	echo powerpc-unknown-linux-gnu
f27011
+	exit ;;
f27011
     s390:Linux:*:* | s390x:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-ibm-linux
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    sh64*:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
     sh*:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     sparc:Linux:*:* | sparc64:Linux:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    tile*:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    vax:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-dec-linux-gnu
f27011
+	exit ;;
f27011
     x86_64:Linux:*:*)
f27011
-	echo x86_64-unknown-linux-gnu
f27011
-	exit 0 ;;
f27011
-    i*86:Linux:*:*)
f27011
-	# The BFD linker knows what the default object file format is, so
f27011
-	# first see if it will tell us. cd to the root directory to prevent
f27011
-	# problems with other programs or directories called `ld' in the path.
f27011
-	# Set LC_ALL=C to ensure ld outputs messages in English.
f27011
-	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
f27011
-			 | sed -ne '/supported targets:/!d
f27011
-				    s/[ 	][ 	]*/ /g
f27011
-				    s/.*supported targets: *//
f27011
-				    s/ .*//
f27011
-				    p'`
f27011
-        case "$ld_supported_targets" in
f27011
-	  elf32-i386)
f27011
-		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
f27011
-		;;
f27011
-	  a.out-i386-linux)
f27011
-		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
f27011
-		exit 0 ;;
f27011
-	  coff-i386)
f27011
-		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
f27011
-		exit 0 ;;
f27011
-	  "")
f27011
-		# Either a pre-BFD a.out linker (linux-gnuoldld) or
f27011
-		# one that does not give us useful --help.
f27011
-		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
f27011
-		exit 0 ;;
f27011
-	esac
f27011
-	# Determine whether the default compiler is a.out or elf
f27011
-	eval $set_cc_for_build
f27011
-	sed 's/^	//' << EOF >$dummy.c
f27011
-	#include <features.h>
f27011
-	#ifdef __ELF__
f27011
-	# ifdef __GLIBC__
f27011
-	#  if __GLIBC__ >= 2
f27011
-	LIBC=gnu
f27011
-	#  else
f27011
-	LIBC=gnulibc1
f27011
-	#  endif
f27011
-	# else
f27011
-	LIBC=gnulibc1
f27011
-	# endif
f27011
-	#else
f27011
-	#ifdef __INTEL_COMPILER
f27011
-	LIBC=gnu
f27011
-	#else
f27011
-	LIBC=gnuaout
f27011
-	#endif
f27011
-	#endif
f27011
-EOF
f27011
-	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
f27011
-	test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
f27011
-	test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
f27011
-	;;
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
+    xtensa*:Linux:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-linux-gnu
f27011
+	exit ;;
f27011
     i*86:DYNIX/ptx:4*:*)
f27011
 	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
f27011
 	# earlier versions are messed up and put the nodename in both
f27011
 	# sysname and nodename.
f27011
 	echo i386-sequent-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:UNIX_SV:4.2MP:2.*)
f27011
-        # Unixware is an offshoot of SVR4, but it has its own version
f27011
-        # number series starting with 2...
f27011
-        # I am not positive that other SVR4 systems won't match this,
f27011
+	# Unixware is an offshoot of SVR4, but it has its own version
f27011
+	# number series starting with 2...
f27011
+	# I am not positive that other SVR4 systems won't match this,
f27011
 	# I just have to hope.  -- rms.
f27011
-        # Use sysv4.2uw... so that sysv4* matches it.
f27011
+	# Use sysv4.2uw... so that sysv4* matches it.
f27011
 	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:OS/2:*:*)
f27011
 	# If we were able to find `uname', then EMX Unix compatibility
f27011
 	# is probably installed.
f27011
 	echo ${UNAME_MACHINE}-pc-os2-emx
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:XTS-300:*:STOP)
f27011
 	echo ${UNAME_MACHINE}-unknown-stop
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:atheos:*:*)
f27011
 	echo ${UNAME_MACHINE}-unknown-atheos
f27011
-	exit 0 ;;
f27011
-    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
f27011
+	exit ;;
f27011
+    i*86:syllable:*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-syllable
f27011
+	exit ;;
f27011
+    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
f27011
 	echo i386-unknown-lynxos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:*DOS:*:*)
f27011
 	echo ${UNAME_MACHINE}-pc-msdosdjgpp
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
f27011
 	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
f27011
 	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
f27011
@@ -996,15 +1047,16 @@
f27011
 	else
f27011
 		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
f27011
 	fi
f27011
-	exit 0 ;;
f27011
-    i*86:*:5:[78]*)
f27011
+	exit ;;
f27011
+    i*86:*:5:[678]*)
f27011
+	# UnixWare 7.x, OpenUNIX and OpenServer 6.
f27011
 	case `/bin/uname -X | grep "^Machine"` in
f27011
 	    *486*)	     UNAME_MACHINE=i486 ;;
f27011
 	    *Pentium)	     UNAME_MACHINE=i586 ;;
f27011
 	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
f27011
 	esac
f27011
 	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i*86:*:3.2:*)
f27011
 	if test -f /usr/options/cb.name; then
f27011
 		UNAME_REL=`sed -n 's/.*Version //p' 
f27011
@@ -1022,73 +1074,86 @@
f27011
 	else
f27011
 		echo ${UNAME_MACHINE}-pc-sysv32
f27011
 	fi
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     pc:*:*:*)
f27011
 	# Left here for compatibility:
f27011
-        # uname -m prints for DJGPP always 'pc', but it prints nothing about
f27011
-        # the processor, so we play safe by assuming i386.
f27011
-	echo i386-pc-msdosdjgpp
f27011
-        exit 0 ;;
f27011
+	# uname -m prints for DJGPP always 'pc', but it prints nothing about
f27011
+	# the processor, so we play safe by assuming i586.
f27011
+	# Note: whatever this is, it MUST be the same as what config.sub
f27011
+	# prints for the "djgpp" host, or else GDB configury will decide that
f27011
+	# this is a cross-build.
f27011
+	echo i586-pc-msdosdjgpp
f27011
+	exit ;;
f27011
     Intel:Mach:3*:*)
f27011
 	echo i386-pc-mach3
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     paragon:*:*:*)
f27011
 	echo i860-intel-osf1
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     i860:*:4.*:*) # i860-SVR4
f27011
 	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
f27011
 	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
f27011
 	else # Add other i860-SVR4 vendors below as they are discovered.
f27011
 	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
f27011
 	fi
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     mini*:CTIX:SYS*5:*)
f27011
 	# "miniframe"
f27011
 	echo m68010-convergent-sysv
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     mc68k:UNIX:SYSTEM5:3.51m)
f27011
 	echo m68k-convergent-sysv
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     M680?0:D-NIX:5.3:*)
f27011
 	echo m68k-diab-dnix
f27011
-	exit 0 ;;
f27011
-    M68*:*:R3V[567]*:*)
f27011
-	test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
f27011
-    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0)
f27011
+	exit ;;
f27011
+    M68*:*:R3V[5678]*:*)
f27011
+	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
f27011
+    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
f27011
 	OS_REL=''
f27011
 	test -r /etc/.relid \
f27011
 	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
f27011
 	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
f27011
-	  && echo i486-ncr-sysv4.3${OS_REL} && exit 0
f27011
+	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
f27011
 	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
f27011
-	  && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
f27011
+	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
f27011
     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
f27011
-        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
f27011
-          && echo i486-ncr-sysv4 && exit 0 ;;
f27011
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
f27011
+	  && { echo i486-ncr-sysv4; exit; } ;;
f27011
+    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
f27011
+	OS_REL='.3'
f27011
+	test -r /etc/.relid \
f27011
+	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
f27011
+	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
f27011
+	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
f27011
+	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
f27011
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
f27011
+	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
f27011
+	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
f27011
     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
f27011
 	echo m68k-unknown-lynxos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     mc68030:UNIX_System_V:4.*:*)
f27011
 	echo m68k-atari-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     TSUNAMI:LynxOS:2.*:*)
f27011
 	echo sparc-unknown-lynxos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     rs6000:LynxOS:2.*:*)
f27011
 	echo rs6000-unknown-lynxos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
-    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
f27011
+	exit ;;
f27011
+    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
f27011
 	echo powerpc-unknown-lynxos${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     SM[BE]S:UNIX_SV:*:*)
f27011
 	echo mips-dde-sysv${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     RM*:ReliantUNIX-*:*:*)
f27011
 	echo mips-sni-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     RM*:SINIX-*:*:*)
f27011
 	echo mips-sni-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:SINIX-*:*:*)
f27011
 	if uname -p 2>/dev/null >/dev/null ; then
f27011
 		UNAME_MACHINE=`(uname -p) 2>/dev/null`
f27011
@@ -1096,68 +1161,97 @@
f27011
 	else
f27011
 		echo ns32k-sni-sysv
f27011
 	fi
f27011
-	exit 0 ;;
f27011
-    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
f27011
-                      # says <Richard.M.Bartel@ccMail.Census.GOV>
f27011
-        echo i586-unisys-sysv4
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
+    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
f27011
+			# says <Richard.M.Bartel@ccMail.Census.GOV>
f27011
+	echo i586-unisys-sysv4
f27011
+	exit ;;
f27011
     *:UNIX_System_V:4*:FTX*)
f27011
 	# From Gerald Hewes <hewes@openmarket.com>.
f27011
 	# How about differentiating between stratus architectures? -djm
f27011
 	echo hppa1.1-stratus-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:*:*:FTX*)
f27011
 	# From seanf@swdc.stratus.com.
f27011
 	echo i860-stratus-sysv4
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    i*86:VOS:*:*)
f27011
+	# From Paul.Green@stratus.com.
f27011
+	echo ${UNAME_MACHINE}-stratus-vos
f27011
+	exit ;;
f27011
     *:VOS:*:*)
f27011
 	# From Paul.Green@stratus.com.
f27011
 	echo hppa1.1-stratus-vos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     mc68*:A/UX:*:*)
f27011
 	echo m68k-apple-aux${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     news*:NEWS-OS:6*:*)
f27011
 	echo mips-sony-newsos6
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
f27011
 	if [ -d /usr/nec ]; then
f27011
-	        echo mips-nec-sysv${UNAME_RELEASE}
f27011
+		echo mips-nec-sysv${UNAME_RELEASE}
f27011
 	else
f27011
-	        echo mips-unknown-sysv${UNAME_RELEASE}
f27011
+		echo mips-unknown-sysv${UNAME_RELEASE}
f27011
 	fi
f27011
-        exit 0 ;;
f27011
+	exit ;;
f27011
     BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
f27011
 	echo powerpc-be-beos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
f27011
 	echo powerpc-apple-beos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
f27011
 	echo i586-pc-beos
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
f27011
+	echo i586-pc-haiku
f27011
+	exit ;;
f27011
+    x86_64:Haiku:*:*)
f27011
+	echo x86_64-unknown-haiku
f27011
+	exit ;;
f27011
     SX-4:SUPER-UX:*:*)
f27011
 	echo sx4-nec-superux${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     SX-5:SUPER-UX:*:*)
f27011
 	echo sx5-nec-superux${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     SX-6:SUPER-UX:*:*)
f27011
 	echo sx6-nec-superux${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    SX-7:SUPER-UX:*:*)
f27011
+	echo sx7-nec-superux${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    SX-8:SUPER-UX:*:*)
f27011
+	echo sx8-nec-superux${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    SX-8R:SUPER-UX:*:*)
f27011
+	echo sx8r-nec-superux${UNAME_RELEASE}
f27011
+	exit ;;
f27011
     Power*:Rhapsody:*:*)
f27011
 	echo powerpc-apple-rhapsody${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:Rhapsody:*:*)
f27011
 	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:Darwin:*:*)
f27011
-	case `uname -p` in
f27011
-	    *86) UNAME_PROCESSOR=i686 ;;
f27011
-	    powerpc) UNAME_PROCESSOR=powerpc ;;
f27011
+	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
f27011
+	case $UNAME_PROCESSOR in
f27011
+	    i386)
f27011
+		eval $set_cc_for_build
f27011
+		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
f27011
+		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
f27011
+		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
f27011
+		      grep IS_64BIT_ARCH >/dev/null
f27011
+		  then
f27011
+		      UNAME_PROCESSOR="x86_64"
f27011
+		  fi
f27011
+		fi ;;
f27011
+	    unknown) UNAME_PROCESSOR=powerpc ;;
f27011
 	esac
f27011
 	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:procnto*:*:* | *:QNX:[0123456789]*:*)
f27011
 	UNAME_PROCESSOR=`uname -p`
f27011
 	if test "$UNAME_PROCESSOR" = "x86"; then
f27011
@@ -1165,22 +1259,28 @@
f27011
 		UNAME_MACHINE=pc
f27011
 	fi
f27011
 	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:QNX:*:4*)
f27011
 	echo i386-pc-qnx
f27011
-	exit 0 ;;
f27011
-    NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
f27011
+	exit ;;
f27011
+    NEO-?:NONSTOP_KERNEL:*:*)
f27011
+	echo neo-tandem-nsk${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    NSE-*:NONSTOP_KERNEL:*:*)
f27011
+	echo nse-tandem-nsk${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    NSR-?:NONSTOP_KERNEL:*:*)
f27011
 	echo nsr-tandem-nsk${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:NonStop-UX:*:*)
f27011
 	echo mips-compaq-nonstopux
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     BS2000:POSIX*:*:*)
f27011
 	echo bs2000-siemens-sysv
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     DS/*:UNIX_System_V:*:*)
f27011
 	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:Plan9:*:*)
f27011
 	# "uname -m" is not consistent, so use $cputype instead. 386
f27011
 	# is converted to i386 for consistency with other x86
f27011
@@ -1191,30 +1291,55 @@
f27011
 	    UNAME_MACHINE="$cputype"
f27011
 	fi
f27011
 	echo ${UNAME_MACHINE}-unknown-plan9
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:TOPS-10:*:*)
f27011
 	echo pdp10-unknown-tops10
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:TENEX:*:*)
f27011
 	echo pdp10-unknown-tenex
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
f27011
 	echo pdp10-dec-tops20
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
f27011
 	echo pdp10-xkl-tops20
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:TOPS-20:*:*)
f27011
 	echo pdp10-unknown-tops20
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     *:ITS:*:*)
f27011
 	echo pdp10-unknown-its
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
+    SEI:*:*:SEIUX)
f27011
+	echo mips-sei-seiux${UNAME_RELEASE}
f27011
+	exit ;;
f27011
+    *:DragonFly:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
f27011
+	exit ;;
f27011
+    *:*VMS:*:*)
f27011
+	UNAME_MACHINE=`(uname -p) 2>/dev/null`
f27011
+	case "${UNAME_MACHINE}" in
f27011
+	    A*) echo alpha-dec-vms ; exit ;;
f27011
+	    I*) echo ia64-dec-vms ; exit ;;
f27011
+	    V*) echo vax-dec-vms ; exit ;;
f27011
+	esac ;;
f27011
+    *:XENIX:*:SysV)
f27011
+	echo i386-pc-xenix
f27011
+	exit ;;
f27011
+    i*86:skyos:*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
f27011
+	exit ;;
f27011
+    i*86:rdos:*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-rdos
f27011
+	exit ;;
f27011
+    i*86:AROS:*:*)
f27011
+	echo ${UNAME_MACHINE}-pc-aros
f27011
+	exit ;;
f27011
+    x86_64:VMkernel:*:*)
f27011
+	echo ${UNAME_MACHINE}-unknown-esx
f27011
+	exit ;;
f27011
 esac
f27011
 
f27011
-#echo '(No uname command or uname output not recognized.)' 1>&2
f27011
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
f27011
-
f27011
 eval $set_cc_for_build
f27011
 cat >$dummy.c <
f27011
 #ifdef _SEQUENT_
f27011
@@ -1232,16 +1357,16 @@
f27011
 #include <sys/param.h>
f27011
   printf ("m68k-sony-newsos%s\n",
f27011
 #ifdef NEWSOS4
f27011
-          "4"
f27011
+	"4"
f27011
 #else
f27011
-	  ""
f27011
+	""
f27011
 #endif
f27011
-         ); exit (0);
f27011
+	); exit (0);
f27011
 #endif
f27011
 #endif
f27011
 
f27011
 #if defined (__arm) && defined (__acorn) && defined (__unix)
f27011
-  printf ("arm-acorn-riscix"); exit (0);
f27011
+  printf ("arm-acorn-riscix\n"); exit (0);
f27011
 #endif
f27011
 
f27011
 #if defined (hp300) && !defined (hpux)
f27011
@@ -1330,11 +1455,12 @@
f27011
 }
f27011
 EOF
f27011
 
f27011
-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
f27011
+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
f27011
+	{ echo "$SYSTEM_NAME"; exit; }
f27011
 
f27011
 # Apollos put the system type in the environment.
f27011
 
f27011
-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
f27011
+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
f27011
 
f27011
 # Convex versions that predate uname can use getsysinfo(1)
f27011
 
f27011
@@ -1343,22 +1469,22 @@
f27011
     case `getsysinfo -f cpu_type` in
f27011
     c1*)
f27011
 	echo c1-convex-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     c2*)
f27011
 	if getsysinfo -f scalar_acc
f27011
 	then echo c32-convex-bsd
f27011
 	else echo c2-convex-bsd
f27011
 	fi
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     c34*)
f27011
 	echo c34-convex-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     c38*)
f27011
 	echo c38-convex-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     c4*)
f27011
 	echo c4-convex-bsd
f27011
-	exit 0 ;;
f27011
+	exit ;;
f27011
     esac
f27011
 fi
f27011
 
f27011
@@ -1369,7 +1495,9 @@
f27011
 the operating system you are using. It is advised that you
f27011
 download the most up to date version of the config scripts from
f27011
 
f27011
-    ftp://ftp.gnu.org/pub/gnu/config/
f27011
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
f27011
+and
f27011
+  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
f27011
 
f27011
 If the version you run ($0) is already up to date, please
f27011
 send the following data and any information you think might be
f27011
diff -urN libspiro-20071029/config.sub libspiro-20071029-aarch64/config.sub
f27011
--- libspiro-20071029/config.sub	2007-10-28 16:44:32.000000000 -0500
f27011
+++ libspiro-20071029-aarch64/config.sub	2013-03-03 06:11:04.216606496 -0600
f27011
@@ -1,9 +1,10 @@
f27011
 #! /bin/sh
f27011
 # Configuration validation subroutine script.
f27011
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
f27011
-#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
f27011
+#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
f27011
+#   2011, 2012 Free Software Foundation, Inc.
f27011
 
f27011
-timestamp='2003-01-03'
f27011
+timestamp='2012-10-10'
f27011
 
f27011
 # This file is (in principle) common to ALL GNU software.
f27011
 # The presence of a machine in this file suggests that SOME GNU software
f27011
@@ -20,23 +21,25 @@
f27011
 # GNU General Public License for more details.
f27011
 #
f27011
 # You should have received a copy of the GNU General Public License
f27011
-# along with this program; if not, write to the Free Software
f27011
-# Foundation, Inc., 59 Temple Place - Suite 330,
f27011
-# Boston, MA 02111-1307, USA.
f27011
-
f27011
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
f27011
+#
f27011
 # As a special exception to the GNU General Public License, if you
f27011
 # distribute this file as part of a program that contains a
f27011
 # configuration script generated by Autoconf, you may include it under
f27011
 # the same distribution terms that you use for the rest of that program.
f27011
 
f27011
+
f27011
 # Please send patches to <config-patches@gnu.org>.  Submit a context
f27011
-# diff and a properly formatted ChangeLog entry.
f27011
+# diff and a properly formatted GNU ChangeLog entry.
f27011
 #
f27011
 # Configuration subroutine to validate and canonicalize a configuration type.
f27011
 # Supply the specified configuration type as an argument.
f27011
 # If it is invalid, we print an error message on stderr and exit with code 1.
f27011
 # Otherwise, we print the canonical config type on stdout and succeed.
f27011
 
f27011
+# You can get the latest version of this script from:
f27011
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
f27011
+
f27011
 # This file is supposed to be the same for all GNU packages
f27011
 # and recognize all the CPU types, system types and aliases
f27011
 # that are meaningful with *any* GNU software.
f27011
@@ -70,7 +73,8 @@
f27011
 version="\
f27011
 GNU config.sub ($timestamp)
f27011
 
f27011
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
f27011
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
f27011
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
f27011
 Free Software Foundation, Inc.
f27011
 
f27011
 This is free software; see the source for copying conditions.  There is NO
f27011
@@ -83,11 +87,11 @@
f27011
 while test $# -gt 0 ; do
f27011
   case $1 in
f27011
     --time-stamp | --time* | -t )
f27011
-       echo "$timestamp" ; exit 0 ;;
f27011
+       echo "$timestamp" ; exit ;;
f27011
     --version | -v )
f27011
-       echo "$version" ; exit 0 ;;
f27011
+       echo "$version" ; exit ;;
f27011
     --help | --h* | -h )
f27011
-       echo "$usage"; exit 0 ;;
f27011
+       echo "$usage"; exit ;;
f27011
     -- )     # Stop option processing
f27011
        shift; break ;;
f27011
     - )	# Use stdin as input.
f27011
@@ -99,7 +103,7 @@
f27011
     *local*)
f27011
        # First pass through any local machine types.
f27011
        echo $1
f27011
-       exit 0;;
f27011
+       exit ;;
f27011
 
f27011
     * )
f27011
        break ;;
f27011
@@ -118,10 +122,18 @@
f27011
 # Here we must recognize all the valid KERNEL-OS combinations.
f27011
 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
f27011
 case $maybe_os in
f27011
-  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
f27011
+  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
f27011
+  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
f27011
+  knetbsd*-gnu* | netbsd*-gnu* | \
f27011
+  kopensolaris*-gnu* | \
f27011
+  storm-chaos* | os2-emx* | rtmk-nova*)
f27011
     os=-$maybe_os
f27011
     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
f27011
     ;;
f27011
+  android-linux)
f27011
+    os=-linux-android
f27011
+    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
f27011
+    ;;
f27011
   *)
f27011
     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
f27011
     if [ $basic_machine != $1 ]
f27011
@@ -144,10 +156,13 @@
f27011
 	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
f27011
 	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
f27011
 	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
f27011
-	-apple | -axis)
f27011
+	-apple | -axis | -knuth | -cray | -microblaze*)
f27011
 		os=
f27011
 		basic_machine=$1
f27011
 		;;
f27011
+	-bluegene*)
f27011
+		os=-cnk
f27011
+		;;
f27011
 	-sim | -cisco | -oki | -wec | -winbond)
f27011
 		os=
f27011
 		basic_machine=$1
f27011
@@ -162,13 +177,17 @@
f27011
 		os=-chorusos
f27011
 		basic_machine=$1
f27011
 		;;
f27011
- 	-chorusrdb)
f27011
- 		os=-chorusrdb
f27011
+	-chorusrdb)
f27011
+		os=-chorusrdb
f27011
 		basic_machine=$1
f27011
- 		;;
f27011
+		;;
f27011
 	-hiux*)
f27011
 		os=-hiuxwe2
f27011
 		;;
f27011
+	-sco6)
f27011
+		os=-sco5v6
f27011
+		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
+		;;
f27011
 	-sco5)
f27011
 		os=-sco3.2v5
f27011
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
@@ -185,6 +204,10 @@
f27011
 		# Don't forget version if it is 3.2v4 or newer.
f27011
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
 		;;
f27011
+	-sco5v6*)
f27011
+		# Don't forget version if it is 3.2v4 or newer.
f27011
+		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
+		;;
f27011
 	-sco*)
f27011
 		os=-sco3.2v2
f27011
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
@@ -202,6 +225,12 @@
f27011
 	-isc*)
f27011
 		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
f27011
 		;;
f27011
+	-lynx*178)
f27011
+		os=-lynxos178
f27011
+		;;
f27011
+	-lynx*5)
f27011
+		os=-lynxos5
f27011
+		;;
f27011
 	-lynx*)
f27011
 		os=-lynxos
f27011
 		;;
f27011
@@ -226,56 +255,103 @@
f27011
 	# Some are omitted here because they have special meanings below.
f27011
 	1750a | 580 \
f27011
 	| a29k \
f27011
+	| aarch64 | aarch64_be \
f27011
 	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
f27011
 	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
f27011
-	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
f27011
-	| clipper \
f27011
+	| am33_2.0 \
f27011
+	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
f27011
+        | be32 | be64 \
f27011
+	| bfin \
f27011
+	| c4x | clipper \
f27011
 	| d10v | d30v | dlx | dsp16xx \
f27011
-	| fr30 | frv \
f27011
+	| epiphany \
f27011
+	| fido | fr30 | frv \
f27011
 	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
f27011
+	| hexagon \
f27011
 	| i370 | i860 | i960 | ia64 \
f27011
-	| ip2k \
f27011
-	| m32r | m68000 | m68k | m88k | mcore \
f27011
+	| ip2k | iq2000 \
f27011
+	| le32 | le64 \
f27011
+	| lm32 \
f27011
+	| m32c | m32r | m32rle | m68000 | m68k | m88k \
f27011
+	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
f27011
 	| mips | mipsbe | mipseb | mipsel | mipsle \
f27011
 	| mips16 \
f27011
 	| mips64 | mips64el \
f27011
-	| mips64vr | mips64vrel \
f27011
+	| mips64octeon | mips64octeonel \
f27011
 	| mips64orion | mips64orionel \
f27011
+	| mips64r5900 | mips64r5900el \
f27011
+	| mips64vr | mips64vrel \
f27011
 	| mips64vr4100 | mips64vr4100el \
f27011
 	| mips64vr4300 | mips64vr4300el \
f27011
 	| mips64vr5000 | mips64vr5000el \
f27011
+	| mips64vr5900 | mips64vr5900el \
f27011
 	| mipsisa32 | mipsisa32el \
f27011
 	| mipsisa32r2 | mipsisa32r2el \
f27011
 	| mipsisa64 | mipsisa64el \
f27011
+	| mipsisa64r2 | mipsisa64r2el \
f27011
 	| mipsisa64sb1 | mipsisa64sb1el \
f27011
 	| mipsisa64sr71k | mipsisa64sr71kel \
f27011
 	| mipstx39 | mipstx39el \
f27011
 	| mn10200 | mn10300 \
f27011
+	| moxie \
f27011
+	| mt \
f27011
 	| msp430 \
f27011
+	| nds32 | nds32le | nds32be \
f27011
+	| nios | nios2 \
f27011
 	| ns16k | ns32k \
f27011
-	| openrisc | or32 \
f27011
+	| open8 \
f27011
+	| or32 \
f27011
 	| pdp10 | pdp11 | pj | pjl \
f27011
-	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
f27011
+	| powerpc | powerpc64 | powerpc64le | powerpcle \
f27011
 	| pyramid \
f27011
-	| s390 | s390x \
f27011
-	| sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
f27011
+	| rl78 | rx \
f27011
+	| score \
f27011
+	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
f27011
 	| sh64 | sh64le \
f27011
-	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
f27011
-	| strongarm \
f27011
-	| tahoe | thumb | tic80 | tron \
f27011
-	| v850 | v850e \
f27011
+	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
f27011
+	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
f27011
+	| spu \
f27011
+	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
f27011
+	| ubicom32 \
f27011
+	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
f27011
 	| we32k \
f27011
-	| x86 | xscale | xstormy16 | xtensa \
f27011
-	| z8k)
f27011
+	| x86 | xc16x | xstormy16 | xtensa \
f27011
+	| z8k | z80)
f27011
 		basic_machine=$basic_machine-unknown
f27011
 		;;
f27011
-	m6811 | m68hc11 | m6812 | m68hc12)
f27011
-		# Motorola 68HC11/12.
f27011
+	c54x)
f27011
+		basic_machine=tic54x-unknown
f27011
+		;;
f27011
+	c55x)
f27011
+		basic_machine=tic55x-unknown
f27011
+		;;
f27011
+	c6x)
f27011
+		basic_machine=tic6x-unknown
f27011
+		;;
f27011
+	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
f27011
 		basic_machine=$basic_machine-unknown
f27011
 		os=-none
f27011
 		;;
f27011
 	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
f27011
 		;;
f27011
+	ms1)
f27011
+		basic_machine=mt-unknown
f27011
+		;;
f27011
+
f27011
+	strongarm | thumb | xscale)
f27011
+		basic_machine=arm-unknown
f27011
+		;;
f27011
+	xgate)
f27011
+		basic_machine=$basic_machine-unknown
f27011
+		os=-none
f27011
+		;;
f27011
+	xscaleeb)
f27011
+		basic_machine=armeb-unknown
f27011
+		;;
f27011
+
f27011
+	xscaleel)
f27011
+		basic_machine=armel-unknown
f27011
+		;;
f27011
 
f27011
 	# We use `pc' rather than `unknown'
f27011
 	# because (1) that's what they normally are, and
f27011
@@ -291,57 +367,81 @@
f27011
 	# Recognize the basic CPU types with company name.
f27011
 	580-* \
f27011
 	| a29k-* \
f27011
+	| aarch64-* | aarch64_be-* \
f27011
 	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
f27011
 	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
f27011
 	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
f27011
 	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
f27011
-	| avr-* \
f27011
-	| bs2000-* \
f27011
-	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* \
f27011
-	| clipper-* | cydra-* \
f27011
+	| avr-* | avr32-* \
f27011
+	| be32-* | be64-* \
f27011
+	| bfin-* | bs2000-* \
f27011
+	| c[123]* | c30-* | [cjt]90-* | c4x-* \
f27011
+	| clipper-* | craynv-* | cydra-* \
f27011
 	| d10v-* | d30v-* | dlx-* \
f27011
 	| elxsi-* \
f27011
-	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
f27011
+	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
f27011
 	| h8300-* | h8500-* \
f27011
 	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
f27011
+	| hexagon-* \
f27011
 	| i*86-* | i860-* | i960-* | ia64-* \
f27011
-	| ip2k-* \
f27011
-	| m32r-* \
f27011
+	| ip2k-* | iq2000-* \
f27011
+	| le32-* | le64-* \
f27011
+	| lm32-* \
f27011
+	| m32c-* | m32r-* | m32rle-* \
f27011
 	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
f27011
-	| m88110-* | m88k-* | mcore-* \
f27011
+	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
f27011
+	| microblaze-* | microblazeel-* \
f27011
 	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
f27011
 	| mips16-* \
f27011
 	| mips64-* | mips64el-* \
f27011
-	| mips64vr-* | mips64vrel-* \
f27011
+	| mips64octeon-* | mips64octeonel-* \
f27011
 	| mips64orion-* | mips64orionel-* \
f27011
+	| mips64r5900-* | mips64r5900el-* \
f27011
+	| mips64vr-* | mips64vrel-* \
f27011
 	| mips64vr4100-* | mips64vr4100el-* \
f27011
 	| mips64vr4300-* | mips64vr4300el-* \
f27011
 	| mips64vr5000-* | mips64vr5000el-* \
f27011
+	| mips64vr5900-* | mips64vr5900el-* \
f27011
 	| mipsisa32-* | mipsisa32el-* \
f27011
 	| mipsisa32r2-* | mipsisa32r2el-* \
f27011
 	| mipsisa64-* | mipsisa64el-* \
f27011
+	| mipsisa64r2-* | mipsisa64r2el-* \
f27011
 	| mipsisa64sb1-* | mipsisa64sb1el-* \
f27011
 	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
f27011
 	| mipstx39-* | mipstx39el-* \
f27011
+	| mmix-* \
f27011
+	| mt-* \
f27011
 	| msp430-* \
f27011
-	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
f27011
+	| nds32-* | nds32le-* | nds32be-* \
f27011
+	| nios-* | nios2-* \
f27011
+	| none-* | np1-* | ns16k-* | ns32k-* \
f27011
+	| open8-* \
f27011
 	| orion-* \
f27011
 	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
f27011
-	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
f27011
+	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
f27011
 	| pyramid-* \
f27011
-	| romp-* | rs6000-* \
f27011
-	| s390-* | s390x-* \
f27011
-	| sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
f27011
+	| rl78-* | romp-* | rs6000-* | rx-* \
f27011
+	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
f27011
 	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
f27011
-	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
f27011
-	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
f27011
-	| tahoe-* | thumb-* | tic30-* | tic4x-* | tic54x-* | tic80-* | tron-* \
f27011
-	| v850-* | v850e-* | vax-* \
f27011
+	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
f27011
+	| sparclite-* \
f27011
+	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
f27011
+	| tahoe-* \
f27011
+	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
f27011
+	| tile*-* \
f27011
+	| tron-* \
f27011
+	| ubicom32-* \
f27011
+	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
f27011
+	| vax-* \
f27011
 	| we32k-* \
f27011
-	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
f27011
-	| xtensa-* \
f27011
+	| x86-* | x86_64-* | xc16x-* | xps100-* \
f27011
+	| xstormy16-* | xtensa*-* \
f27011
 	| ymp-* \
f27011
-	| z8k-*)
f27011
+	| z8k-* | z80-*)
f27011
+		;;
f27011
+	# Recognize the basic CPU types without company name, with glob match.
f27011
+	xtensa*)
f27011
+		basic_machine=$basic_machine-unknown
f27011
 		;;
f27011
 	# Recognize the various machine names and aliases which stand
f27011
 	# for a CPU type and a company and sometimes even an OS.
f27011
@@ -359,6 +459,9 @@
f27011
 		basic_machine=a29k-amd
f27011
 		os=-udi
f27011
 		;;
f27011
+	abacus)
f27011
+		basic_machine=abacus-unknown
f27011
+		;;
f27011
 	adobe68k)
f27011
 		basic_machine=m68010-adobe
f27011
 		os=-scout
f27011
@@ -373,6 +476,12 @@
f27011
 		basic_machine=a29k-none
f27011
 		os=-bsd
f27011
 		;;
f27011
+	amd64)
f27011
+		basic_machine=x86_64-pc
f27011
+		;;
f27011
+	amd64-*)
f27011
+		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
 	amdahl)
f27011
 		basic_machine=580-amdahl
f27011
 		os=-sysv
f27011
@@ -396,6 +505,10 @@
f27011
 		basic_machine=m68k-apollo
f27011
 		os=-bsd
f27011
 		;;
f27011
+	aros)
f27011
+		basic_machine=i386-pc
f27011
+		os=-aros
f27011
+		;;
f27011
 	aux)
f27011
 		basic_machine=m68k-apple
f27011
 		os=-aux
f27011
@@ -404,10 +517,35 @@
f27011
 		basic_machine=ns32k-sequent
f27011
 		os=-dynix
f27011
 		;;
f27011
+	blackfin)
f27011
+		basic_machine=bfin-unknown
f27011
+		os=-linux
f27011
+		;;
f27011
+	blackfin-*)
f27011
+		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		os=-linux
f27011
+		;;
f27011
+	bluegene*)
f27011
+		basic_machine=powerpc-ibm
f27011
+		os=-cnk
f27011
+		;;
f27011
+	c54x-*)
f27011
+		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
+	c55x-*)
f27011
+		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
+	c6x-*)
f27011
+		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
 	c90)
f27011
 		basic_machine=c90-cray
f27011
 		os=-unicos
f27011
 		;;
f27011
+	cegcc)
f27011
+		basic_machine=arm-unknown
f27011
+		os=-cegcc
f27011
+		;;
f27011
 	convex-c1)
f27011
 		basic_machine=c1-convex
f27011
 		os=-bsd
f27011
@@ -432,12 +570,27 @@
f27011
 		basic_machine=j90-cray
f27011
 		os=-unicos
f27011
 		;;
f27011
+	craynv)
f27011
+		basic_machine=craynv-cray
f27011
+		os=-unicosmp
f27011
+		;;
f27011
+	cr16 | cr16-*)
f27011
+		basic_machine=cr16-unknown
f27011
+		os=-elf
f27011
+		;;
f27011
 	crds | unos)
f27011
 		basic_machine=m68k-crds
f27011
 		;;
f27011
+	crisv32 | crisv32-* | etraxfs*)
f27011
+		basic_machine=crisv32-axis
f27011
+		;;
f27011
 	cris | cris-* | etrax*)
f27011
 		basic_machine=cris-axis
f27011
 		;;
f27011
+	crx)
f27011
+		basic_machine=crx-unknown
f27011
+		os=-elf
f27011
+		;;
f27011
 	da30 | da30-*)
f27011
 		basic_machine=m68k-da30
f27011
 		;;
f27011
@@ -460,6 +613,14 @@
f27011
 		basic_machine=m88k-motorola
f27011
 		os=-sysv3
f27011
 		;;
f27011
+	dicos)
f27011
+		basic_machine=i686-pc
f27011
+		os=-dicos
f27011
+		;;
f27011
+	djgpp)
f27011
+		basic_machine=i586-pc
f27011
+		os=-msdosdjgpp
f27011
+		;;
f27011
 	dpx20 | dpx20-*)
f27011
 		basic_machine=rs6000-bull
f27011
 		os=-bosx
f27011
@@ -571,7 +732,6 @@
f27011
 	i370-ibm* | ibm*)
f27011
 		basic_machine=i370-ibm
f27011
 		;;
f27011
-# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
f27011
 	i*86v32)
f27011
 		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
f27011
 		os=-sysv32
f27011
@@ -610,6 +770,14 @@
f27011
 		basic_machine=m68k-isi
f27011
 		os=-sysv
f27011
 		;;
f27011
+	m68knommu)
f27011
+		basic_machine=m68k-unknown
f27011
+		os=-linux
f27011
+		;;
f27011
+	m68knommu-*)
f27011
+		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		os=-linux
f27011
+		;;
f27011
 	m88k-omron*)
f27011
 		basic_machine=m88k-omron
f27011
 		;;
f27011
@@ -621,10 +789,21 @@
f27011
 		basic_machine=ns32k-utek
f27011
 		os=-sysv
f27011
 		;;
f27011
+	microblaze*)
f27011
+		basic_machine=microblaze-xilinx
f27011
+		;;
f27011
+	mingw64)
f27011
+		basic_machine=x86_64-pc
f27011
+		os=-mingw64
f27011
+		;;
f27011
 	mingw32)
f27011
 		basic_machine=i386-pc
f27011
 		os=-mingw32
f27011
 		;;
f27011
+	mingw32ce)
f27011
+		basic_machine=arm-unknown
f27011
+		os=-mingw32ce
f27011
+		;;
f27011
 	miniframe)
f27011
 		basic_machine=m68000-convergent
f27011
 		;;
f27011
@@ -638,10 +817,6 @@
f27011
 	mips3*)
f27011
 		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
f27011
 		;;
f27011
-	mmix*)
f27011
-		basic_machine=mmix-knuth
f27011
-		os=-mmixware
f27011
-		;;
f27011
 	monitor)
f27011
 		basic_machine=m68k-rom68k
f27011
 		os=-coff
f27011
@@ -654,10 +829,21 @@
f27011
 		basic_machine=i386-pc
f27011
 		os=-msdos
f27011
 		;;
f27011
+	ms1-*)
f27011
+		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
f27011
+		;;
f27011
+	msys)
f27011
+		basic_machine=i386-pc
f27011
+		os=-msys
f27011
+		;;
f27011
 	mvs)
f27011
 		basic_machine=i370-ibm
f27011
 		os=-mvs
f27011
 		;;
f27011
+	nacl)
f27011
+		basic_machine=le32-unknown
f27011
+		os=-nacl
f27011
+		;;
f27011
 	ncr3000)
f27011
 		basic_machine=i486-ncr
f27011
 		os=-sysv4
f27011
@@ -722,9 +908,11 @@
f27011
 	np1)
f27011
 		basic_machine=np1-gould
f27011
 		;;
f27011
-	nv1)
f27011
-		basic_machine=nv1-cray
f27011
-		os=-unicosmp
f27011
+	neo-tandem)
f27011
+		basic_machine=neo-tandem
f27011
+		;;
f27011
+	nse-tandem)
f27011
+		basic_machine=nse-tandem
f27011
 		;;
f27011
 	nsr-tandem)
f27011
 		basic_machine=nsr-tandem
f27011
@@ -733,9 +921,12 @@
f27011
 		basic_machine=hppa1.1-oki
f27011
 		os=-proelf
f27011
 		;;
f27011
-	or32 | or32-*)
f27011
+	openrisc | openrisc-*)
f27011
 		basic_machine=or32-unknown
f27011
-		os=-coff
f27011
+		;;
f27011
+	os400)
f27011
+		basic_machine=powerpc-ibm
f27011
+		os=-os400
f27011
 		;;
f27011
 	OSE68000 | ose68000)
f27011
 		basic_machine=m68000-ericsson
f27011
@@ -753,6 +944,14 @@
f27011
 		basic_machine=i860-intel
f27011
 		os=-osf
f27011
 		;;
f27011
+	parisc)
f27011
+		basic_machine=hppa-unknown
f27011
+		os=-linux
f27011
+		;;
f27011
+	parisc-*)
f27011
+		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		os=-linux
f27011
+		;;
f27011
 	pbd)
f27011
 		basic_machine=sparc-tti
f27011
 		;;
f27011
@@ -762,32 +961,45 @@
f27011
 	pc532 | pc532-*)
f27011
 		basic_machine=ns32k-pc532
f27011
 		;;
f27011
+	pc98)
f27011
+		basic_machine=i386-pc
f27011
+		;;
f27011
+	pc98-*)
f27011
+		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
 	pentium | p5 | k5 | k6 | nexgen | viac3)
f27011
 		basic_machine=i586-pc
f27011
 		;;
f27011
 	pentiumpro | p6 | 6x86 | athlon | athlon_*)
f27011
 		basic_machine=i686-pc
f27011
 		;;
f27011
-	pentiumii | pentium2)
f27011
+	pentiumii | pentium2 | pentiumiii | pentium3)
f27011
 		basic_machine=i686-pc
f27011
 		;;
f27011
+	pentium4)
f27011
+		basic_machine=i786-pc
f27011
+		;;
f27011
 	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
f27011
 		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
 		;;
f27011
 	pentiumpro-* | p6-* | 6x86-* | athlon-*)
f27011
 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
 		;;
f27011
-	pentiumii-* | pentium2-*)
f27011
+	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
f27011
 		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
 		;;
f27011
+	pentium4-*)
f27011
+		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
 	pn)
f27011
 		basic_machine=pn-gould
f27011
 		;;
f27011
 	power)	basic_machine=power-ibm
f27011
 		;;
f27011
-	ppc)	basic_machine=powerpc-unknown
f27011
+	ppc | ppcbe)	basic_machine=powerpc-unknown
f27011
 		;;
f27011
-	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+	ppc-* | ppcbe-*)
f27011
+		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
 		;;
f27011
 	ppcle | powerpclittle | ppc-le | powerpc-little)
f27011
 		basic_machine=powerpcle-unknown
f27011
@@ -812,6 +1024,10 @@
f27011
 		basic_machine=i586-unknown
f27011
 		os=-pw32
f27011
 		;;
f27011
+	rdos)
f27011
+		basic_machine=i386-pc
f27011
+		os=-rdos
f27011
+		;;
f27011
 	rom68k)
f27011
 		basic_machine=m68k-rom68k
f27011
 		os=-coff
f27011
@@ -822,6 +1038,12 @@
f27011
 	rtpc | rtpc-*)
f27011
 		basic_machine=romp-ibm
f27011
 		;;
f27011
+	s390 | s390-*)
f27011
+		basic_machine=s390-ibm
f27011
+		;;
f27011
+	s390x | s390x-*)
f27011
+		basic_machine=s390x-ibm
f27011
+		;;
f27011
 	sa29200)
f27011
 		basic_machine=a29k-amd
f27011
 		os=-udi
f27011
@@ -832,6 +1054,14 @@
f27011
 	sb1el)
f27011
 		basic_machine=mipsisa64sb1el-unknown
f27011
 		;;
f27011
+	sde)
f27011
+		basic_machine=mipsisa32-sde
f27011
+		os=-elf
f27011
+		;;
f27011
+	sei)
f27011
+		basic_machine=mips-sei
f27011
+		os=-seiux
f27011
+		;;
f27011
 	sequent)
f27011
 		basic_machine=i386-sequent
f27011
 		;;
f27011
@@ -839,6 +1069,12 @@
f27011
 		basic_machine=sh-hitachi
f27011
 		os=-hms
f27011
 		;;
f27011
+	sh5el)
f27011
+		basic_machine=sh5le-unknown
f27011
+		;;
f27011
+	sh64)
f27011
+		basic_machine=sh64-unknown
f27011
+		;;
f27011
 	sparclite-wrs | simso-wrs)
f27011
 		basic_machine=sparclite-wrs
f27011
 		os=-vxworks
f27011
@@ -857,6 +1093,9 @@
f27011
 		basic_machine=i860-stratus
f27011
 		os=-sysv4
f27011
 		;;
f27011
+	strongarm-* | thumb-*)
f27011
+		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
f27011
+		;;
f27011
 	sun2)
f27011
 		basic_machine=m68000-sun
f27011
 		;;
f27011
@@ -913,13 +1152,9 @@
f27011
 		basic_machine=t90-cray
f27011
 		os=-unicos
f27011
 		;;
f27011
-        tic4x | c4x*)
f27011
-		basic_machine=tic4x-unknown
f27011
-		os=-coff
f27011
-		;;
f27011
-	tic54x | c54x*)
f27011
-		basic_machine=tic54x-unknown
f27011
-		os=-coff
f27011
+	tile*)
f27011
+		basic_machine=$basic_machine-unknown
f27011
+		os=-linux-gnu
f27011
 		;;
f27011
 	tx39)
f27011
 		basic_machine=mipstx39-unknown
f27011
@@ -934,6 +1169,10 @@
f27011
 	tower | tower-32)
f27011
 		basic_machine=m68k-ncr
f27011
 		;;
f27011
+	tpf)
f27011
+		basic_machine=s390x-ibm
f27011
+		os=-tpf
f27011
+		;;
f27011
 	udi29k)
f27011
 		basic_machine=a29k-amd
f27011
 		os=-udi
f27011
@@ -977,9 +1216,16 @@
f27011
 		basic_machine=hppa1.1-winbond
f27011
 		os=-proelf
f27011
 		;;
f27011
+	xbox)
f27011
+		basic_machine=i686-pc
f27011
+		os=-mingw32
f27011
+		;;
f27011
 	xps | xps100)
f27011
 		basic_machine=xps100-honeywell
f27011
 		;;
f27011
+	xscale-* | xscalee[bl]-*)
f27011
+		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
f27011
+		;;
f27011
 	ymp)
f27011
 		basic_machine=ymp-cray
f27011
 		os=-unicos
f27011
@@ -988,6 +1234,10 @@
f27011
 		basic_machine=z8k-unknown
f27011
 		os=-sim
f27011
 		;;
f27011
+	z80-*-coff)
f27011
+		basic_machine=z80-unknown
f27011
+		os=-sim
f27011
+		;;
f27011
 	none)
f27011
 		basic_machine=none-none
f27011
 		os=-none
f27011
@@ -1007,6 +1257,9 @@
f27011
 	romp)
f27011
 		basic_machine=romp-ibm
f27011
 		;;
f27011
+	mmix)
f27011
+		basic_machine=mmix-knuth
f27011
+		;;
f27011
 	rs6000)
f27011
 		basic_machine=rs6000-ibm
f27011
 		;;
f27011
@@ -1023,13 +1276,10 @@
f27011
 	we32k)
f27011
 		basic_machine=we32k-att
f27011
 		;;
f27011
-	sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
f27011
+	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
f27011
 		basic_machine=sh-unknown
f27011
 		;;
f27011
-	sh64)
f27011
-		basic_machine=sh64-unknown
f27011
-		;;
f27011
-	sparc | sparcv9 | sparcv9b)
f27011
+	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
f27011
 		basic_machine=sparc-sun
f27011
 		;;
f27011
 	cydra)
f27011
@@ -1073,9 +1323,12 @@
f27011
 if [ x"$os" != x"" ]
f27011
 then
f27011
 case $os in
f27011
-        # First match some system type aliases
f27011
-        # that might get confused with valid system types.
f27011
+	# First match some system type aliases
f27011
+	# that might get confused with valid system types.
f27011
 	# -solaris* is a basic system type, with this one exception.
f27011
+	-auroraux)
f27011
+		os=-auroraux
f27011
+		;;
f27011
 	-solaris1 | -solaris1.*)
f27011
 		os=`echo $os | sed -e 's|solaris1|sunos4|'`
f27011
 		;;
f27011
@@ -1096,25 +1349,31 @@
f27011
 	# Each alternative MUST END IN A *, to match a version number.
f27011
 	# -sysv* is not here because it comes later, after sysvr4.
f27011
 	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
f27011
-	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
f27011
-	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
f27011
+	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
f27011
+	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
f27011
+	      | -sym* | -kopensolaris* \
f27011
 	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
f27011
-	      | -aos* \
f27011
+	      | -aos* | -aros* \
f27011
 	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
f27011
 	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
f27011
-	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
f27011
-	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
f27011
+	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
f27011
+	      | -bitrig* | -openbsd* | -solidbsd* \
f27011
+	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
f27011
+	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
f27011
 	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
f27011
 	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
f27011
-	      | -chorusos* | -chorusrdb* \
f27011
-	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
f27011
-	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
f27011
+	      | -chorusos* | -chorusrdb* | -cegcc* \
f27011
+	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
f27011
+	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
f27011
+	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
f27011
+	      | -uxpv* | -beos* | -mpeix* | -udk* \
f27011
 	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
f27011
 	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
f27011
 	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
f27011
 	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
f27011
 	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
f27011
-	      | -powermax* | -dnix* | -microbsd*)
f27011
+	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
f27011
+	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
f27011
 	# Remember, each alternative MUST END IN *, to match a version number.
f27011
 		;;
f27011
 	-qnx*)
f27011
@@ -1132,12 +1391,15 @@
f27011
 		os=`echo $os | sed -e 's|nto|nto-qnx|'`
f27011
 		;;
f27011
 	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
f27011
-	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
f27011
+	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
f27011
 	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
f27011
 		;;
f27011
 	-mac*)
f27011
 		os=`echo $os | sed -e 's|mac|macos|'`
f27011
 		;;
f27011
+	-linux-dietlibc)
f27011
+		os=-linux-dietlibc
f27011
+		;;
f27011
 	-linux*)
f27011
 		os=`echo $os | sed -e 's|linux|linux-gnu|'`
f27011
 		;;
f27011
@@ -1150,6 +1412,9 @@
f27011
 	-opened*)
f27011
 		os=-openedition
f27011
 		;;
f27011
+	-os400*)
f27011
+		os=-os400
f27011
+		;;
f27011
 	-wince*)
f27011
 		os=-wince
f27011
 		;;
f27011
@@ -1171,6 +1436,9 @@
f27011
 	-atheos*)
f27011
 		os=-atheos
f27011
 		;;
f27011
+	-syllable*)
f27011
+		os=-syllable
f27011
+		;;
f27011
 	-386bsd)
f27011
 		os=-bsd
f27011
 		;;
f27011
@@ -1193,6 +1461,9 @@
f27011
 	-sinix*)
f27011
 		os=-sysv4
f27011
 		;;
f27011
+	-tpf*)
f27011
+		os=-tpf
f27011
+		;;
f27011
 	-triton*)
f27011
 		os=-sysv3
f27011
 		;;
f27011
@@ -1223,6 +1494,20 @@
f27011
 	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
f27011
 		os=-mint
f27011
 		;;
f27011
+	-aros*)
f27011
+		os=-aros
f27011
+		;;
f27011
+	-kaos*)
f27011
+		os=-kaos
f27011
+		;;
f27011
+	-zvmoe)
f27011
+		os=-zvmoe
f27011
+		;;
f27011
+	-dicos*)
f27011
+		os=-dicos
f27011
+		;;
f27011
+	-nacl*)
f27011
+		;;
f27011
 	-none)
f27011
 		;;
f27011
 	*)
f27011
@@ -1245,6 +1530,12 @@
f27011
 # system, and we'll never get to this point.
f27011
 
f27011
 case $basic_machine in
f27011
+	score-*)
f27011
+		os=-elf
f27011
+		;;
f27011
+	spu-*)
f27011
+		os=-elf
f27011
+		;;
f27011
 	*-acorn)
f27011
 		os=-riscix1.2
f27011
 		;;
f27011
@@ -1254,6 +1545,21 @@
f27011
 	arm*-semi)
f27011
 		os=-aout
f27011
 		;;
f27011
+	c4x-* | tic4x-*)
f27011
+		os=-coff
f27011
+		;;
f27011
+	hexagon-*)
f27011
+		os=-elf
f27011
+		;;
f27011
+	tic54x-*)
f27011
+		os=-coff
f27011
+		;;
f27011
+	tic55x-*)
f27011
+		os=-coff
f27011
+		;;
f27011
+	tic6x-*)
f27011
+		os=-coff
f27011
+		;;
f27011
 	# This must come before the *-dec entry.
f27011
 	pdp10-*)
f27011
 		os=-tops20
f27011
@@ -1272,13 +1578,13 @@
f27011
 		;;
f27011
 	m68000-sun)
f27011
 		os=-sunos3
f27011
-		# This also exists in the configure program, but was not the
f27011
-		# default.
f27011
-		# os=-sunos4
f27011
 		;;
f27011
 	m68*-cisco)
f27011
 		os=-aout
f27011
 		;;
f27011
+	mep-*)
f27011
+		os=-elf
f27011
+		;;
f27011
 	mips*-cisco)
f27011
 		os=-elf
f27011
 		;;
f27011
@@ -1297,9 +1603,15 @@
f27011
 	*-be)
f27011
 		os=-beos
f27011
 		;;
f27011
+	*-haiku)
f27011
+		os=-haiku
f27011
+		;;
f27011
 	*-ibm)
f27011
 		os=-aix
f27011
 		;;
f27011
+	*-knuth)
f27011
+		os=-mmixware
f27011
+		;;
f27011
 	*-wec)
f27011
 		os=-proelf
f27011
 		;;
f27011
@@ -1402,7 +1714,7 @@
f27011
 			-sunos*)
f27011
 				vendor=sun
f27011
 				;;
f27011
-			-aix*)
f27011
+			-cnk*|-aix*)
f27011
 				vendor=ibm
f27011
 				;;
f27011
 			-beos*)
f27011
@@ -1432,9 +1744,15 @@
f27011
 			-mvs* | -opened*)
f27011
 				vendor=ibm
f27011
 				;;
f27011
+			-os400*)
f27011
+				vendor=ibm
f27011
+				;;
f27011
 			-ptx*)
f27011
 				vendor=sequent
f27011
 				;;
f27011
+			-tpf*)
f27011
+				vendor=ibm
f27011
+				;;
f27011
 			-vxsim* | -vxworks* | -windiss*)
f27011
 				vendor=wrs
f27011
 				;;
f27011
@@ -1459,7 +1777,7 @@
f27011
 esac
f27011
 
f27011
 echo $basic_machine$os
f27011
-exit 0
f27011
+exit
f27011
 
f27011
 # Local variables:
f27011
 # eval: (add-hook 'write-file-hooks 'time-stamp)