config.guess revision 7914d74b
17914d74bSmrg#! /bin/sh
27914d74bSmrg# Attempt to guess a canonical system name.
37914d74bSmrg#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
47914d74bSmrg#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
57914d74bSmrg#   Inc.
67914d74bSmrg
77914d74bSmrgtimestamp='2007-07-22'
87914d74bSmrg
97914d74bSmrg# This file is free software; you can redistribute it and/or modify it
107914d74bSmrg# under the terms of the GNU General Public License as published by
117914d74bSmrg# the Free Software Foundation; either version 2 of the License, or
127914d74bSmrg# (at your option) any later version.
137914d74bSmrg#
147914d74bSmrg# This program is distributed in the hope that it will be useful, but
157914d74bSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of
167914d74bSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
177914d74bSmrg# General Public License for more details.
187914d74bSmrg#
197914d74bSmrg# You should have received a copy of the GNU General Public License
207914d74bSmrg# along with this program; if not, write to the Free Software
217914d74bSmrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
227914d74bSmrg# 02110-1301, USA.
237914d74bSmrg#
247914d74bSmrg# As a special exception to the GNU General Public License, if you
257914d74bSmrg# distribute this file as part of a program that contains a
267914d74bSmrg# configuration script generated by Autoconf, you may include it under
277914d74bSmrg# the same distribution terms that you use for the rest of that program.
287914d74bSmrg
297914d74bSmrg
307914d74bSmrg# Originally written by Per Bothner <per@bothner.com>.
317914d74bSmrg# Please send patches to <config-patches@gnu.org>.  Submit a context
327914d74bSmrg# diff and a properly formatted ChangeLog entry.
337914d74bSmrg#
347914d74bSmrg# This script attempts to guess a canonical system name similar to
357914d74bSmrg# config.sub.  If it succeeds, it prints the system name on stdout, and
367914d74bSmrg# exits with 0.  Otherwise, it exits with 1.
377914d74bSmrg#
387914d74bSmrg# The plan is that this can be called by configure scripts if you
397914d74bSmrg# don't specify an explicit build system type.
407914d74bSmrg
417914d74bSmrgme=`echo "$0" | sed -e 's,.*/,,'`
427914d74bSmrg
437914d74bSmrgusage="\
447914d74bSmrgUsage: $0 [OPTION]
457914d74bSmrg
467914d74bSmrgOutput the configuration name of the system \`$me' is run on.
477914d74bSmrg
487914d74bSmrgOperation modes:
497914d74bSmrg  -h, --help         print this help, then exit
507914d74bSmrg  -t, --time-stamp   print date of last modification, then exit
517914d74bSmrg  -v, --version      print version number, then exit
527914d74bSmrg
537914d74bSmrgReport bugs and patches to <config-patches@gnu.org>."
547914d74bSmrg
557914d74bSmrgversion="\
567914d74bSmrgGNU config.guess ($timestamp)
577914d74bSmrg
587914d74bSmrgOriginally written by Per Bothner.
597914d74bSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
607914d74bSmrgFree Software Foundation, Inc.
617914d74bSmrg
627914d74bSmrgThis is free software; see the source for copying conditions.  There is NO
637914d74bSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
647914d74bSmrg
657914d74bSmrghelp="
667914d74bSmrgTry \`$me --help' for more information."
677914d74bSmrg
687914d74bSmrg# Parse command line
697914d74bSmrgwhile test $# -gt 0 ; do
707914d74bSmrg  case $1 in
717914d74bSmrg    --time-stamp | --time* | -t )
727914d74bSmrg       echo "$timestamp" ; exit ;;
737914d74bSmrg    --version | -v )
747914d74bSmrg       echo "$version" ; exit ;;
757914d74bSmrg    --help | --h* | -h )
767914d74bSmrg       echo "$usage"; exit ;;
777914d74bSmrg    -- )     # Stop option processing
787914d74bSmrg       shift; break ;;
797914d74bSmrg    - )	# Use stdin as input.
807914d74bSmrg       break ;;
817914d74bSmrg    -* )
827914d74bSmrg       echo "$me: invalid option $1$help" >&2
837914d74bSmrg       exit 1 ;;
847914d74bSmrg    * )
857914d74bSmrg       break ;;
867914d74bSmrg  esac
877914d74bSmrgdone
887914d74bSmrg
897914d74bSmrgif test $# != 0; then
907914d74bSmrg  echo "$me: too many arguments$help" >&2
917914d74bSmrg  exit 1
927914d74bSmrgfi
937914d74bSmrg
947914d74bSmrgtrap 'exit 1' 1 2 15
957914d74bSmrg
967914d74bSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
977914d74bSmrg# compiler to aid in system detection is discouraged as it requires
987914d74bSmrg# temporary files to be created and, as you can see below, it is a
997914d74bSmrg# headache to deal with in a portable fashion.
1007914d74bSmrg
1017914d74bSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
1027914d74bSmrg# use `HOST_CC' if defined, but it is deprecated.
1037914d74bSmrg
1047914d74bSmrg# Portable tmp directory creation inspired by the Autoconf team.
1057914d74bSmrg
1067914d74bSmrgset_cc_for_build='
1077914d74bSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
1087914d74bSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
1097914d74bSmrg: ${TMPDIR=/tmp} ;
1107914d74bSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
1117914d74bSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
1127914d74bSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
1137914d74bSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
1147914d74bSmrgdummy=$tmp/dummy ;
1157914d74bSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
1167914d74bSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in
1177914d74bSmrg ,,)    echo "int x;" > $dummy.c ;
1187914d74bSmrg	for c in cc gcc c89 c99 ; do
1197914d74bSmrg	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1207914d74bSmrg	     CC_FOR_BUILD="$c"; break ;
1217914d74bSmrg	  fi ;
1227914d74bSmrg	done ;
1237914d74bSmrg	if test x"$CC_FOR_BUILD" = x ; then
1247914d74bSmrg	  CC_FOR_BUILD=no_compiler_found ;
1257914d74bSmrg	fi
1267914d74bSmrg	;;
1277914d74bSmrg ,,*)   CC_FOR_BUILD=$CC ;;
1287914d74bSmrg ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
1297914d74bSmrgesac ; set_cc_for_build= ;'
1307914d74bSmrg
1317914d74bSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1327914d74bSmrg# (ghazi@noc.rutgers.edu 1994-08-24)
1337914d74bSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then
1347914d74bSmrg	PATH=$PATH:/.attbin ; export PATH
1357914d74bSmrgfi
1367914d74bSmrg
1377914d74bSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
1387914d74bSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
1397914d74bSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
1407914d74bSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
1417914d74bSmrg
1427914d74bSmrg# Note: order is significant - the case branches are not exclusive.
1437914d74bSmrg
1447914d74bSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1457914d74bSmrg    *:NetBSD:*:*)
1467914d74bSmrg	# NetBSD (nbsd) targets should (where applicable) match one or
1477914d74bSmrg	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
1487914d74bSmrg	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
1497914d74bSmrg	# switched to ELF, *-*-netbsd* would select the old
1507914d74bSmrg	# object file format.  This provides both forward
1517914d74bSmrg	# compatibility and a consistent mechanism for selecting the
1527914d74bSmrg	# object file format.
1537914d74bSmrg	#
1547914d74bSmrg	# Note: NetBSD doesn't particularly care about the vendor
1557914d74bSmrg	# portion of the name.  We always set it to "unknown".
1567914d74bSmrg	sysctl="sysctl -n hw.machine_arch"
1577914d74bSmrg	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
1587914d74bSmrg	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
1597914d74bSmrg	case "${UNAME_MACHINE_ARCH}" in
1607914d74bSmrg	    armeb) machine=armeb-unknown ;;
1617914d74bSmrg	    arm*) machine=arm-unknown ;;
1627914d74bSmrg	    sh3el) machine=shl-unknown ;;
1637914d74bSmrg	    sh3eb) machine=sh-unknown ;;
1647914d74bSmrg	    sh5el) machine=sh5le-unknown ;;
1657914d74bSmrg	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1667914d74bSmrg	esac
1677914d74bSmrg	# The Operating System including object format, if it has switched
1687914d74bSmrg	# to ELF recently, or will in the future.
1697914d74bSmrg	case "${UNAME_MACHINE_ARCH}" in
1707914d74bSmrg	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1717914d74bSmrg		eval $set_cc_for_build
1727914d74bSmrg		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1737914d74bSmrg			| grep __ELF__ >/dev/null
1747914d74bSmrg		then
1757914d74bSmrg		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
1767914d74bSmrg		    # Return netbsd for either.  FIX?
1777914d74bSmrg		    os=netbsd
1787914d74bSmrg		else
1797914d74bSmrg		    os=netbsdelf
1807914d74bSmrg		fi
1817914d74bSmrg		;;
1827914d74bSmrg	    *)
1837914d74bSmrg	        os=netbsd
1847914d74bSmrg		;;
1857914d74bSmrg	esac
1867914d74bSmrg	# The OS release
1877914d74bSmrg	# Debian GNU/NetBSD machines have a different userland, and
1887914d74bSmrg	# thus, need a distinct triplet. However, they do not need
1897914d74bSmrg	# kernel version information, so it can be replaced with a
1907914d74bSmrg	# suitable tag, in the style of linux-gnu.
1917914d74bSmrg	case "${UNAME_VERSION}" in
1927914d74bSmrg	    Debian*)
1937914d74bSmrg		release='-gnu'
1947914d74bSmrg		;;
1957914d74bSmrg	    *)
1967914d74bSmrg		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1977914d74bSmrg		;;
1987914d74bSmrg	esac
1997914d74bSmrg	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
2007914d74bSmrg	# contains redundant information, the shorter form:
2017914d74bSmrg	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2027914d74bSmrg	echo "${machine}-${os}${release}"
2037914d74bSmrg	exit ;;
2047914d74bSmrg    *:OpenBSD:*:*)
2057914d74bSmrg	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2067914d74bSmrg	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2077914d74bSmrg	exit ;;
2087914d74bSmrg    *:ekkoBSD:*:*)
2097914d74bSmrg	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
2107914d74bSmrg	exit ;;
2117914d74bSmrg    *:SolidBSD:*:*)
2127914d74bSmrg	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
2137914d74bSmrg	exit ;;
2147914d74bSmrg    macppc:MirBSD:*:*)
2157914d74bSmrg	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
2167914d74bSmrg	exit ;;
2177914d74bSmrg    *:MirBSD:*:*)
2187914d74bSmrg	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
2197914d74bSmrg	exit ;;
2207914d74bSmrg    alpha:OSF1:*:*)
2217914d74bSmrg	case $UNAME_RELEASE in
2227914d74bSmrg	*4.0)
2237914d74bSmrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2247914d74bSmrg		;;
2257914d74bSmrg	*5.*)
2267914d74bSmrg	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2277914d74bSmrg		;;
2287914d74bSmrg	esac
2297914d74bSmrg	# According to Compaq, /usr/sbin/psrinfo has been available on
2307914d74bSmrg	# OSF/1 and Tru64 systems produced since 1995.  I hope that
2317914d74bSmrg	# covers most systems running today.  This code pipes the CPU
2327914d74bSmrg	# types through head -n 1, so we only detect the type of CPU 0.
2337914d74bSmrg	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
2347914d74bSmrg	case "$ALPHA_CPU_TYPE" in
2357914d74bSmrg	    "EV4 (21064)")
2367914d74bSmrg		UNAME_MACHINE="alpha" ;;
2377914d74bSmrg	    "EV4.5 (21064)")
2387914d74bSmrg		UNAME_MACHINE="alpha" ;;
2397914d74bSmrg	    "LCA4 (21066/21068)")
2407914d74bSmrg		UNAME_MACHINE="alpha" ;;
2417914d74bSmrg	    "EV5 (21164)")
2427914d74bSmrg		UNAME_MACHINE="alphaev5" ;;
2437914d74bSmrg	    "EV5.6 (21164A)")
2447914d74bSmrg		UNAME_MACHINE="alphaev56" ;;
2457914d74bSmrg	    "EV5.6 (21164PC)")
2467914d74bSmrg		UNAME_MACHINE="alphapca56" ;;
2477914d74bSmrg	    "EV5.7 (21164PC)")
2487914d74bSmrg		UNAME_MACHINE="alphapca57" ;;
2497914d74bSmrg	    "EV6 (21264)")
2507914d74bSmrg		UNAME_MACHINE="alphaev6" ;;
2517914d74bSmrg	    "EV6.7 (21264A)")
2527914d74bSmrg		UNAME_MACHINE="alphaev67" ;;
2537914d74bSmrg	    "EV6.8CB (21264C)")
2547914d74bSmrg		UNAME_MACHINE="alphaev68" ;;
2557914d74bSmrg	    "EV6.8AL (21264B)")
2567914d74bSmrg		UNAME_MACHINE="alphaev68" ;;
2577914d74bSmrg	    "EV6.8CX (21264D)")
2587914d74bSmrg		UNAME_MACHINE="alphaev68" ;;
2597914d74bSmrg	    "EV6.9A (21264/EV69A)")
2607914d74bSmrg		UNAME_MACHINE="alphaev69" ;;
2617914d74bSmrg	    "EV7 (21364)")
2627914d74bSmrg		UNAME_MACHINE="alphaev7" ;;
2637914d74bSmrg	    "EV7.9 (21364A)")
2647914d74bSmrg		UNAME_MACHINE="alphaev79" ;;
2657914d74bSmrg	esac
2667914d74bSmrg	# A Pn.n version is a patched version.
2677914d74bSmrg	# A Vn.n version is a released version.
2687914d74bSmrg	# A Tn.n version is a released field test version.
2697914d74bSmrg	# A Xn.n version is an unreleased experimental baselevel.
2707914d74bSmrg	# 1.2 uses "1.2" for uname -r.
2717914d74bSmrg	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2727914d74bSmrg	exit ;;
2737914d74bSmrg    Alpha\ *:Windows_NT*:*)
2747914d74bSmrg	# How do we know it's Interix rather than the generic POSIX subsystem?
2757914d74bSmrg	# Should we change UNAME_MACHINE based on the output of uname instead
2767914d74bSmrg	# of the specific Alpha model?
2777914d74bSmrg	echo alpha-pc-interix
2787914d74bSmrg	exit ;;
2797914d74bSmrg    21064:Windows_NT:50:3)
2807914d74bSmrg	echo alpha-dec-winnt3.5
2817914d74bSmrg	exit ;;
2827914d74bSmrg    Amiga*:UNIX_System_V:4.0:*)
2837914d74bSmrg	echo m68k-unknown-sysv4
2847914d74bSmrg	exit ;;
2857914d74bSmrg    *:[Aa]miga[Oo][Ss]:*:*)
2867914d74bSmrg	echo ${UNAME_MACHINE}-unknown-amigaos
2877914d74bSmrg	exit ;;
2887914d74bSmrg    *:[Mm]orph[Oo][Ss]:*:*)
2897914d74bSmrg	echo ${UNAME_MACHINE}-unknown-morphos
2907914d74bSmrg	exit ;;
2917914d74bSmrg    *:OS/390:*:*)
2927914d74bSmrg	echo i370-ibm-openedition
2937914d74bSmrg	exit ;;
2947914d74bSmrg    *:z/VM:*:*)
2957914d74bSmrg	echo s390-ibm-zvmoe
2967914d74bSmrg	exit ;;
2977914d74bSmrg    *:OS400:*:*)
2987914d74bSmrg        echo powerpc-ibm-os400
2997914d74bSmrg	exit ;;
3007914d74bSmrg    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3017914d74bSmrg	echo arm-acorn-riscix${UNAME_RELEASE}
3027914d74bSmrg	exit ;;
3037914d74bSmrg    arm:riscos:*:*|arm:RISCOS:*:*)
3047914d74bSmrg	echo arm-unknown-riscos
3057914d74bSmrg	exit ;;
3067914d74bSmrg    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
3077914d74bSmrg	echo hppa1.1-hitachi-hiuxmpp
3087914d74bSmrg	exit ;;
3097914d74bSmrg    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
3107914d74bSmrg	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
3117914d74bSmrg	if test "`(/bin/universe) 2>/dev/null`" = att ; then
3127914d74bSmrg		echo pyramid-pyramid-sysv3
3137914d74bSmrg	else
3147914d74bSmrg		echo pyramid-pyramid-bsd
3157914d74bSmrg	fi
3167914d74bSmrg	exit ;;
3177914d74bSmrg    NILE*:*:*:dcosx)
3187914d74bSmrg	echo pyramid-pyramid-svr4
3197914d74bSmrg	exit ;;
3207914d74bSmrg    DRS?6000:unix:4.0:6*)
3217914d74bSmrg	echo sparc-icl-nx6
3227914d74bSmrg	exit ;;
3237914d74bSmrg    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
3247914d74bSmrg	case `/usr/bin/uname -p` in
3257914d74bSmrg	    sparc) echo sparc-icl-nx7; exit ;;
3267914d74bSmrg	esac ;;
3277914d74bSmrg    sun4H:SunOS:5.*:*)
3287914d74bSmrg	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3297914d74bSmrg	exit ;;
3307914d74bSmrg    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
3317914d74bSmrg	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3327914d74bSmrg	exit ;;
3337914d74bSmrg    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
3347914d74bSmrg	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3357914d74bSmrg	exit ;;
3367914d74bSmrg    sun4*:SunOS:6*:*)
3377914d74bSmrg	# According to config.sub, this is the proper way to canonicalize
3387914d74bSmrg	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
3397914d74bSmrg	# it's likely to be more like Solaris than SunOS4.
3407914d74bSmrg	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3417914d74bSmrg	exit ;;
3427914d74bSmrg    sun4*:SunOS:*:*)
3437914d74bSmrg	case "`/usr/bin/arch -k`" in
3447914d74bSmrg	    Series*|S4*)
3457914d74bSmrg		UNAME_RELEASE=`uname -v`
3467914d74bSmrg		;;
3477914d74bSmrg	esac
3487914d74bSmrg	# Japanese Language versions have a version number like `4.1.3-JL'.
3497914d74bSmrg	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
3507914d74bSmrg	exit ;;
3517914d74bSmrg    sun3*:SunOS:*:*)
3527914d74bSmrg	echo m68k-sun-sunos${UNAME_RELEASE}
3537914d74bSmrg	exit ;;
3547914d74bSmrg    sun*:*:4.2BSD:*)
3557914d74bSmrg	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3567914d74bSmrg	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
3577914d74bSmrg	case "`/bin/arch`" in
3587914d74bSmrg	    sun3)
3597914d74bSmrg		echo m68k-sun-sunos${UNAME_RELEASE}
3607914d74bSmrg		;;
3617914d74bSmrg	    sun4)
3627914d74bSmrg		echo sparc-sun-sunos${UNAME_RELEASE}
3637914d74bSmrg		;;
3647914d74bSmrg	esac
3657914d74bSmrg	exit ;;
3667914d74bSmrg    aushp:SunOS:*:*)
3677914d74bSmrg	echo sparc-auspex-sunos${UNAME_RELEASE}
3687914d74bSmrg	exit ;;
3697914d74bSmrg    # The situation for MiNT is a little confusing.  The machine name
3707914d74bSmrg    # can be virtually everything (everything which is not
3717914d74bSmrg    # "atarist" or "atariste" at least should have a processor
3727914d74bSmrg    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
3737914d74bSmrg    # to the lowercase version "mint" (or "freemint").  Finally
3747914d74bSmrg    # the system name "TOS" denotes a system which is actually not
3757914d74bSmrg    # MiNT.  But MiNT is downward compatible to TOS, so this should
3767914d74bSmrg    # be no problem.
3777914d74bSmrg    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
3787914d74bSmrg        echo m68k-atari-mint${UNAME_RELEASE}
3797914d74bSmrg	exit ;;
3807914d74bSmrg    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
3817914d74bSmrg	echo m68k-atari-mint${UNAME_RELEASE}
3827914d74bSmrg        exit ;;
3837914d74bSmrg    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
3847914d74bSmrg        echo m68k-atari-mint${UNAME_RELEASE}
3857914d74bSmrg	exit ;;
3867914d74bSmrg    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
3877914d74bSmrg        echo m68k-milan-mint${UNAME_RELEASE}
3887914d74bSmrg        exit ;;
3897914d74bSmrg    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
3907914d74bSmrg        echo m68k-hades-mint${UNAME_RELEASE}
3917914d74bSmrg        exit ;;
3927914d74bSmrg    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
3937914d74bSmrg        echo m68k-unknown-mint${UNAME_RELEASE}
3947914d74bSmrg        exit ;;
3957914d74bSmrg    m68k:machten:*:*)
3967914d74bSmrg	echo m68k-apple-machten${UNAME_RELEASE}
3977914d74bSmrg	exit ;;
3987914d74bSmrg    powerpc:machten:*:*)
3997914d74bSmrg	echo powerpc-apple-machten${UNAME_RELEASE}
4007914d74bSmrg	exit ;;
4017914d74bSmrg    RISC*:Mach:*:*)
4027914d74bSmrg	echo mips-dec-mach_bsd4.3
4037914d74bSmrg	exit ;;
4047914d74bSmrg    RISC*:ULTRIX:*:*)
4057914d74bSmrg	echo mips-dec-ultrix${UNAME_RELEASE}
4067914d74bSmrg	exit ;;
4077914d74bSmrg    VAX*:ULTRIX*:*:*)
4087914d74bSmrg	echo vax-dec-ultrix${UNAME_RELEASE}
4097914d74bSmrg	exit ;;
4107914d74bSmrg    2020:CLIX:*:* | 2430:CLIX:*:*)
4117914d74bSmrg	echo clipper-intergraph-clix${UNAME_RELEASE}
4127914d74bSmrg	exit ;;
4137914d74bSmrg    mips:*:*:UMIPS | mips:*:*:RISCos)
4147914d74bSmrg	eval $set_cc_for_build
4157914d74bSmrg	sed 's/^	//' << EOF >$dummy.c
4167914d74bSmrg#ifdef __cplusplus
4177914d74bSmrg#include <stdio.h>  /* for printf() prototype */
4187914d74bSmrg	int main (int argc, char *argv[]) {
4197914d74bSmrg#else
4207914d74bSmrg	int main (argc, argv) int argc; char *argv[]; {
4217914d74bSmrg#endif
4227914d74bSmrg	#if defined (host_mips) && defined (MIPSEB)
4237914d74bSmrg	#if defined (SYSTYPE_SYSV)
4247914d74bSmrg	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
4257914d74bSmrg	#endif
4267914d74bSmrg	#if defined (SYSTYPE_SVR4)
4277914d74bSmrg	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
4287914d74bSmrg	#endif
4297914d74bSmrg	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
4307914d74bSmrg	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
4317914d74bSmrg	#endif
4327914d74bSmrg	#endif
4337914d74bSmrg	  exit (-1);
4347914d74bSmrg	}
4357914d74bSmrgEOF
4367914d74bSmrg	$CC_FOR_BUILD -o $dummy $dummy.c &&
4377914d74bSmrg	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
4387914d74bSmrg	  SYSTEM_NAME=`$dummy $dummyarg` &&
4397914d74bSmrg	    { echo "$SYSTEM_NAME"; exit; }
4407914d74bSmrg	echo mips-mips-riscos${UNAME_RELEASE}
4417914d74bSmrg	exit ;;
4427914d74bSmrg    Motorola:PowerMAX_OS:*:*)
4437914d74bSmrg	echo powerpc-motorola-powermax
4447914d74bSmrg	exit ;;
4457914d74bSmrg    Motorola:*:4.3:PL8-*)
4467914d74bSmrg	echo powerpc-harris-powermax
4477914d74bSmrg	exit ;;
4487914d74bSmrg    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4497914d74bSmrg	echo powerpc-harris-powermax
4507914d74bSmrg	exit ;;
4517914d74bSmrg    Night_Hawk:Power_UNIX:*:*)
4527914d74bSmrg	echo powerpc-harris-powerunix
4537914d74bSmrg	exit ;;
4547914d74bSmrg    m88k:CX/UX:7*:*)
4557914d74bSmrg	echo m88k-harris-cxux7
4567914d74bSmrg	exit ;;
4577914d74bSmrg    m88k:*:4*:R4*)
4587914d74bSmrg	echo m88k-motorola-sysv4
4597914d74bSmrg	exit ;;
4607914d74bSmrg    m88k:*:3*:R3*)
4617914d74bSmrg	echo m88k-motorola-sysv3
4627914d74bSmrg	exit ;;
4637914d74bSmrg    AViiON:dgux:*:*)
4647914d74bSmrg        # DG/UX returns AViiON for all architectures
4657914d74bSmrg        UNAME_PROCESSOR=`/usr/bin/uname -p`
4667914d74bSmrg	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
4677914d74bSmrg	then
4687914d74bSmrg	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
4697914d74bSmrg	       [ ${TARGET_BINARY_INTERFACE}x = x ]
4707914d74bSmrg	    then
4717914d74bSmrg		echo m88k-dg-dgux${UNAME_RELEASE}
4727914d74bSmrg	    else
4737914d74bSmrg		echo m88k-dg-dguxbcs${UNAME_RELEASE}
4747914d74bSmrg	    fi
4757914d74bSmrg	else
4767914d74bSmrg	    echo i586-dg-dgux${UNAME_RELEASE}
4777914d74bSmrg	fi
4787914d74bSmrg 	exit ;;
4797914d74bSmrg    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
4807914d74bSmrg	echo m88k-dolphin-sysv3
4817914d74bSmrg	exit ;;
4827914d74bSmrg    M88*:*:R3*:*)
4837914d74bSmrg	# Delta 88k system running SVR3
4847914d74bSmrg	echo m88k-motorola-sysv3
4857914d74bSmrg	exit ;;
4867914d74bSmrg    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
4877914d74bSmrg	echo m88k-tektronix-sysv3
4887914d74bSmrg	exit ;;
4897914d74bSmrg    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
4907914d74bSmrg	echo m68k-tektronix-bsd
4917914d74bSmrg	exit ;;
4927914d74bSmrg    *:IRIX*:*:*)
4937914d74bSmrg	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
4947914d74bSmrg	exit ;;
4957914d74bSmrg    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4967914d74bSmrg	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
4977914d74bSmrg	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
4987914d74bSmrg    i*86:AIX:*:*)
4997914d74bSmrg	echo i386-ibm-aix
5007914d74bSmrg	exit ;;
5017914d74bSmrg    ia64:AIX:*:*)
5027914d74bSmrg	if [ -x /usr/bin/oslevel ] ; then
5037914d74bSmrg		IBM_REV=`/usr/bin/oslevel`
5047914d74bSmrg	else
5057914d74bSmrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5067914d74bSmrg	fi
5077914d74bSmrg	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5087914d74bSmrg	exit ;;
5097914d74bSmrg    *:AIX:2:3)
5107914d74bSmrg	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5117914d74bSmrg		eval $set_cc_for_build
5127914d74bSmrg		sed 's/^		//' << EOF >$dummy.c
5137914d74bSmrg		#include <sys/systemcfg.h>
5147914d74bSmrg
5157914d74bSmrg		main()
5167914d74bSmrg			{
5177914d74bSmrg			if (!__power_pc())
5187914d74bSmrg				exit(1);
5197914d74bSmrg			puts("powerpc-ibm-aix3.2.5");
5207914d74bSmrg			exit(0);
5217914d74bSmrg			}
5227914d74bSmrgEOF
5237914d74bSmrg		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5247914d74bSmrg		then
5257914d74bSmrg			echo "$SYSTEM_NAME"
5267914d74bSmrg		else
5277914d74bSmrg			echo rs6000-ibm-aix3.2.5
5287914d74bSmrg		fi
5297914d74bSmrg	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5307914d74bSmrg		echo rs6000-ibm-aix3.2.4
5317914d74bSmrg	else
5327914d74bSmrg		echo rs6000-ibm-aix3.2
5337914d74bSmrg	fi
5347914d74bSmrg	exit ;;
5357914d74bSmrg    *:AIX:*:[45])
5367914d74bSmrg	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5377914d74bSmrg	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5387914d74bSmrg		IBM_ARCH=rs6000
5397914d74bSmrg	else
5407914d74bSmrg		IBM_ARCH=powerpc
5417914d74bSmrg	fi
5427914d74bSmrg	if [ -x /usr/bin/oslevel ] ; then
5437914d74bSmrg		IBM_REV=`/usr/bin/oslevel`
5447914d74bSmrg	else
5457914d74bSmrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5467914d74bSmrg	fi
5477914d74bSmrg	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5487914d74bSmrg	exit ;;
5497914d74bSmrg    *:AIX:*:*)
5507914d74bSmrg	echo rs6000-ibm-aix
5517914d74bSmrg	exit ;;
5527914d74bSmrg    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5537914d74bSmrg	echo romp-ibm-bsd4.4
5547914d74bSmrg	exit ;;
5557914d74bSmrg    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5567914d74bSmrg	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5577914d74bSmrg	exit ;;                             # report: romp-ibm BSD 4.3
5587914d74bSmrg    *:BOSX:*:*)
5597914d74bSmrg	echo rs6000-bull-bosx
5607914d74bSmrg	exit ;;
5617914d74bSmrg    DPX/2?00:B.O.S.:*:*)
5627914d74bSmrg	echo m68k-bull-sysv3
5637914d74bSmrg	exit ;;
5647914d74bSmrg    9000/[34]??:4.3bsd:1.*:*)
5657914d74bSmrg	echo m68k-hp-bsd
5667914d74bSmrg	exit ;;
5677914d74bSmrg    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5687914d74bSmrg	echo m68k-hp-bsd4.4
5697914d74bSmrg	exit ;;
5707914d74bSmrg    9000/[34678]??:HP-UX:*:*)
5717914d74bSmrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5727914d74bSmrg	case "${UNAME_MACHINE}" in
5737914d74bSmrg	    9000/31? )            HP_ARCH=m68000 ;;
5747914d74bSmrg	    9000/[34]?? )         HP_ARCH=m68k ;;
5757914d74bSmrg	    9000/[678][0-9][0-9])
5767914d74bSmrg		if [ -x /usr/bin/getconf ]; then
5777914d74bSmrg		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
5787914d74bSmrg                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
5797914d74bSmrg                    case "${sc_cpu_version}" in
5807914d74bSmrg                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
5817914d74bSmrg                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
5827914d74bSmrg                      532)                      # CPU_PA_RISC2_0
5837914d74bSmrg                        case "${sc_kernel_bits}" in
5847914d74bSmrg                          32) HP_ARCH="hppa2.0n" ;;
5857914d74bSmrg                          64) HP_ARCH="hppa2.0w" ;;
5867914d74bSmrg			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
5877914d74bSmrg                        esac ;;
5887914d74bSmrg                    esac
5897914d74bSmrg		fi
5907914d74bSmrg		if [ "${HP_ARCH}" = "" ]; then
5917914d74bSmrg		    eval $set_cc_for_build
5927914d74bSmrg		    sed 's/^              //' << EOF >$dummy.c
5937914d74bSmrg
5947914d74bSmrg              #define _HPUX_SOURCE
5957914d74bSmrg              #include <stdlib.h>
5967914d74bSmrg              #include <unistd.h>
5977914d74bSmrg
5987914d74bSmrg              int main ()
5997914d74bSmrg              {
6007914d74bSmrg              #if defined(_SC_KERNEL_BITS)
6017914d74bSmrg                  long bits = sysconf(_SC_KERNEL_BITS);
6027914d74bSmrg              #endif
6037914d74bSmrg                  long cpu  = sysconf (_SC_CPU_VERSION);
6047914d74bSmrg
6057914d74bSmrg                  switch (cpu)
6067914d74bSmrg              	{
6077914d74bSmrg              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
6087914d74bSmrg              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
6097914d74bSmrg              	case CPU_PA_RISC2_0:
6107914d74bSmrg              #if defined(_SC_KERNEL_BITS)
6117914d74bSmrg              	    switch (bits)
6127914d74bSmrg              		{
6137914d74bSmrg              		case 64: puts ("hppa2.0w"); break;
6147914d74bSmrg              		case 32: puts ("hppa2.0n"); break;
6157914d74bSmrg              		default: puts ("hppa2.0"); break;
6167914d74bSmrg              		} break;
6177914d74bSmrg              #else  /* !defined(_SC_KERNEL_BITS) */
6187914d74bSmrg              	    puts ("hppa2.0"); break;
6197914d74bSmrg              #endif
6207914d74bSmrg              	default: puts ("hppa1.0"); break;
6217914d74bSmrg              	}
6227914d74bSmrg                  exit (0);
6237914d74bSmrg              }
6247914d74bSmrgEOF
6257914d74bSmrg		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
6267914d74bSmrg		    test -z "$HP_ARCH" && HP_ARCH=hppa
6277914d74bSmrg		fi ;;
6287914d74bSmrg	esac
6297914d74bSmrg	if [ ${HP_ARCH} = "hppa2.0w" ]
6307914d74bSmrg	then
6317914d74bSmrg	    eval $set_cc_for_build
6327914d74bSmrg
6337914d74bSmrg	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
6347914d74bSmrg	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
6357914d74bSmrg	    # generating 64-bit code.  GNU and HP use different nomenclature:
6367914d74bSmrg	    #
6377914d74bSmrg	    # $ CC_FOR_BUILD=cc ./config.guess
6387914d74bSmrg	    # => hppa2.0w-hp-hpux11.23
6397914d74bSmrg	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
6407914d74bSmrg	    # => hppa64-hp-hpux11.23
6417914d74bSmrg
6427914d74bSmrg	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
6437914d74bSmrg		grep __LP64__ >/dev/null
6447914d74bSmrg	    then
6457914d74bSmrg		HP_ARCH="hppa2.0w"
6467914d74bSmrg	    else
6477914d74bSmrg		HP_ARCH="hppa64"
6487914d74bSmrg	    fi
6497914d74bSmrg	fi
6507914d74bSmrg	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
6517914d74bSmrg	exit ;;
6527914d74bSmrg    ia64:HP-UX:*:*)
6537914d74bSmrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
6547914d74bSmrg	echo ia64-hp-hpux${HPUX_REV}
6557914d74bSmrg	exit ;;
6567914d74bSmrg    3050*:HI-UX:*:*)
6577914d74bSmrg	eval $set_cc_for_build
6587914d74bSmrg	sed 's/^	//' << EOF >$dummy.c
6597914d74bSmrg	#include <unistd.h>
6607914d74bSmrg	int
6617914d74bSmrg	main ()
6627914d74bSmrg	{
6637914d74bSmrg	  long cpu = sysconf (_SC_CPU_VERSION);
6647914d74bSmrg	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
6657914d74bSmrg	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
6667914d74bSmrg	     results, however.  */
6677914d74bSmrg	  if (CPU_IS_PA_RISC (cpu))
6687914d74bSmrg	    {
6697914d74bSmrg	      switch (cpu)
6707914d74bSmrg		{
6717914d74bSmrg		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
6727914d74bSmrg		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
6737914d74bSmrg		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
6747914d74bSmrg		  default: puts ("hppa-hitachi-hiuxwe2"); break;
6757914d74bSmrg		}
6767914d74bSmrg	    }
6777914d74bSmrg	  else if (CPU_IS_HP_MC68K (cpu))
6787914d74bSmrg	    puts ("m68k-hitachi-hiuxwe2");
6797914d74bSmrg	  else puts ("unknown-hitachi-hiuxwe2");
6807914d74bSmrg	  exit (0);
6817914d74bSmrg	}
6827914d74bSmrgEOF
6837914d74bSmrg	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
6847914d74bSmrg		{ echo "$SYSTEM_NAME"; exit; }
6857914d74bSmrg	echo unknown-hitachi-hiuxwe2
6867914d74bSmrg	exit ;;
6877914d74bSmrg    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
6887914d74bSmrg	echo hppa1.1-hp-bsd
6897914d74bSmrg	exit ;;
6907914d74bSmrg    9000/8??:4.3bsd:*:*)
6917914d74bSmrg	echo hppa1.0-hp-bsd
6927914d74bSmrg	exit ;;
6937914d74bSmrg    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
6947914d74bSmrg	echo hppa1.0-hp-mpeix
6957914d74bSmrg	exit ;;
6967914d74bSmrg    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
6977914d74bSmrg	echo hppa1.1-hp-osf
6987914d74bSmrg	exit ;;
6997914d74bSmrg    hp8??:OSF1:*:*)
7007914d74bSmrg	echo hppa1.0-hp-osf
7017914d74bSmrg	exit ;;
7027914d74bSmrg    i*86:OSF1:*:*)
7037914d74bSmrg	if [ -x /usr/sbin/sysversion ] ; then
7047914d74bSmrg	    echo ${UNAME_MACHINE}-unknown-osf1mk
7057914d74bSmrg	else
7067914d74bSmrg	    echo ${UNAME_MACHINE}-unknown-osf1
7077914d74bSmrg	fi
7087914d74bSmrg	exit ;;
7097914d74bSmrg    parisc*:Lites*:*:*)
7107914d74bSmrg	echo hppa1.1-hp-lites
7117914d74bSmrg	exit ;;
7127914d74bSmrg    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
7137914d74bSmrg	echo c1-convex-bsd
7147914d74bSmrg        exit ;;
7157914d74bSmrg    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
7167914d74bSmrg	if getsysinfo -f scalar_acc
7177914d74bSmrg	then echo c32-convex-bsd
7187914d74bSmrg	else echo c2-convex-bsd
7197914d74bSmrg	fi
7207914d74bSmrg        exit ;;
7217914d74bSmrg    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
7227914d74bSmrg	echo c34-convex-bsd
7237914d74bSmrg        exit ;;
7247914d74bSmrg    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
7257914d74bSmrg	echo c38-convex-bsd
7267914d74bSmrg        exit ;;
7277914d74bSmrg    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
7287914d74bSmrg	echo c4-convex-bsd
7297914d74bSmrg        exit ;;
7307914d74bSmrg    CRAY*Y-MP:*:*:*)
7317914d74bSmrg	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7327914d74bSmrg	exit ;;
7337914d74bSmrg    CRAY*[A-Z]90:*:*:*)
7347914d74bSmrg	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
7357914d74bSmrg	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
7367914d74bSmrg	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
7377914d74bSmrg	      -e 's/\.[^.]*$/.X/'
7387914d74bSmrg	exit ;;
7397914d74bSmrg    CRAY*TS:*:*:*)
7407914d74bSmrg	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7417914d74bSmrg	exit ;;
7427914d74bSmrg    CRAY*T3E:*:*:*)
7437914d74bSmrg	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7447914d74bSmrg	exit ;;
7457914d74bSmrg    CRAY*SV1:*:*:*)
7467914d74bSmrg	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7477914d74bSmrg	exit ;;
7487914d74bSmrg    *:UNICOS/mp:*:*)
7497914d74bSmrg	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7507914d74bSmrg	exit ;;
7517914d74bSmrg    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
7527914d74bSmrg	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7537914d74bSmrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7547914d74bSmrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
7557914d74bSmrg        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7567914d74bSmrg        exit ;;
7577914d74bSmrg    5000:UNIX_System_V:4.*:*)
7587914d74bSmrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7597914d74bSmrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
7607914d74bSmrg        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7617914d74bSmrg	exit ;;
7627914d74bSmrg    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
7637914d74bSmrg	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
7647914d74bSmrg	exit ;;
7657914d74bSmrg    sparc*:BSD/OS:*:*)
7667914d74bSmrg	echo sparc-unknown-bsdi${UNAME_RELEASE}
7677914d74bSmrg	exit ;;
7687914d74bSmrg    *:BSD/OS:*:*)
7697914d74bSmrg	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
7707914d74bSmrg	exit ;;
7717914d74bSmrg    *:FreeBSD:*:*)
7727914d74bSmrg	case ${UNAME_MACHINE} in
7737914d74bSmrg	    pc98)
7747914d74bSmrg		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7757914d74bSmrg	    amd64)
7767914d74bSmrg		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7777914d74bSmrg	    *)
7787914d74bSmrg		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7797914d74bSmrg	esac
7807914d74bSmrg	exit ;;
7817914d74bSmrg    i*:CYGWIN*:*)
7827914d74bSmrg	echo ${UNAME_MACHINE}-pc-cygwin
7837914d74bSmrg	exit ;;
7847914d74bSmrg    *:MINGW*:*)
7857914d74bSmrg	echo ${UNAME_MACHINE}-pc-mingw32
7867914d74bSmrg	exit ;;
7877914d74bSmrg    i*:windows32*:*)
7887914d74bSmrg    	# uname -m includes "-pc" on this system.
7897914d74bSmrg    	echo ${UNAME_MACHINE}-mingw32
7907914d74bSmrg	exit ;;
7917914d74bSmrg    i*:PW*:*)
7927914d74bSmrg	echo ${UNAME_MACHINE}-pc-pw32
7937914d74bSmrg	exit ;;
7947914d74bSmrg    *:Interix*:[3456]*)
7957914d74bSmrg    	case ${UNAME_MACHINE} in
7967914d74bSmrg	    x86)
7977914d74bSmrg		echo i586-pc-interix${UNAME_RELEASE}
7987914d74bSmrg		exit ;;
7997914d74bSmrg	    EM64T | authenticamd)
8007914d74bSmrg		echo x86_64-unknown-interix${UNAME_RELEASE}
8017914d74bSmrg		exit ;;
8027914d74bSmrg	esac ;;
8037914d74bSmrg    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
8047914d74bSmrg	echo i${UNAME_MACHINE}-pc-mks
8057914d74bSmrg	exit ;;
8067914d74bSmrg    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
8077914d74bSmrg	# How do we know it's Interix rather than the generic POSIX subsystem?
8087914d74bSmrg	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
8097914d74bSmrg	# UNAME_MACHINE based on the output of uname instead of i386?
8107914d74bSmrg	echo i586-pc-interix
8117914d74bSmrg	exit ;;
8127914d74bSmrg    i*:UWIN*:*)
8137914d74bSmrg	echo ${UNAME_MACHINE}-pc-uwin
8147914d74bSmrg	exit ;;
8157914d74bSmrg    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
8167914d74bSmrg	echo x86_64-unknown-cygwin
8177914d74bSmrg	exit ;;
8187914d74bSmrg    p*:CYGWIN*:*)
8197914d74bSmrg	echo powerpcle-unknown-cygwin
8207914d74bSmrg	exit ;;
8217914d74bSmrg    prep*:SunOS:5.*:*)
8227914d74bSmrg	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8237914d74bSmrg	exit ;;
8247914d74bSmrg    *:GNU:*:*)
8257914d74bSmrg	# the GNU system
8267914d74bSmrg	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
8277914d74bSmrg	exit ;;
8287914d74bSmrg    *:GNU/*:*:*)
8297914d74bSmrg	# other systems with GNU libc and userland
8307914d74bSmrg	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
8317914d74bSmrg	exit ;;
8327914d74bSmrg    i*86:Minix:*:*)
8337914d74bSmrg	echo ${UNAME_MACHINE}-pc-minix
8347914d74bSmrg	exit ;;
8357914d74bSmrg    arm*:Linux:*:*)
8367914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8377914d74bSmrg	exit ;;
8387914d74bSmrg    avr32*:Linux:*:*)
8397914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8407914d74bSmrg	exit ;;
8417914d74bSmrg    cris:Linux:*:*)
8427914d74bSmrg	echo cris-axis-linux-gnu
8437914d74bSmrg	exit ;;
8447914d74bSmrg    crisv32:Linux:*:*)
8457914d74bSmrg	echo crisv32-axis-linux-gnu
8467914d74bSmrg	exit ;;
8477914d74bSmrg    frv:Linux:*:*)
8487914d74bSmrg    	echo frv-unknown-linux-gnu
8497914d74bSmrg	exit ;;
8507914d74bSmrg    ia64:Linux:*:*)
8517914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8527914d74bSmrg	exit ;;
8537914d74bSmrg    m32r*:Linux:*:*)
8547914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8557914d74bSmrg	exit ;;
8567914d74bSmrg    m68*:Linux:*:*)
8577914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8587914d74bSmrg	exit ;;
8597914d74bSmrg    mips:Linux:*:*)
8607914d74bSmrg	eval $set_cc_for_build
8617914d74bSmrg	sed 's/^	//' << EOF >$dummy.c
8627914d74bSmrg	#undef CPU
8637914d74bSmrg	#undef mips
8647914d74bSmrg	#undef mipsel
8657914d74bSmrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8667914d74bSmrg	CPU=mipsel
8677914d74bSmrg	#else
8687914d74bSmrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8697914d74bSmrg	CPU=mips
8707914d74bSmrg	#else
8717914d74bSmrg	CPU=
8727914d74bSmrg	#endif
8737914d74bSmrg	#endif
8747914d74bSmrgEOF
8757914d74bSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8767914d74bSmrg	    /^CPU/{
8777914d74bSmrg		s: ::g
8787914d74bSmrg		p
8797914d74bSmrg	    }'`"
8807914d74bSmrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
8817914d74bSmrg	;;
8827914d74bSmrg    mips64:Linux:*:*)
8837914d74bSmrg	eval $set_cc_for_build
8847914d74bSmrg	sed 's/^	//' << EOF >$dummy.c
8857914d74bSmrg	#undef CPU
8867914d74bSmrg	#undef mips64
8877914d74bSmrg	#undef mips64el
8887914d74bSmrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8897914d74bSmrg	CPU=mips64el
8907914d74bSmrg	#else
8917914d74bSmrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8927914d74bSmrg	CPU=mips64
8937914d74bSmrg	#else
8947914d74bSmrg	CPU=
8957914d74bSmrg	#endif
8967914d74bSmrg	#endif
8977914d74bSmrgEOF
8987914d74bSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8997914d74bSmrg	    /^CPU/{
9007914d74bSmrg		s: ::g
9017914d74bSmrg		p
9027914d74bSmrg	    }'`"
9037914d74bSmrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
9047914d74bSmrg	;;
9057914d74bSmrg    or32:Linux:*:*)
9067914d74bSmrg	echo or32-unknown-linux-gnu
9077914d74bSmrg	exit ;;
9087914d74bSmrg    ppc:Linux:*:*)
9097914d74bSmrg	echo powerpc-unknown-linux-gnu
9107914d74bSmrg	exit ;;
9117914d74bSmrg    ppc64:Linux:*:*)
9127914d74bSmrg	echo powerpc64-unknown-linux-gnu
9137914d74bSmrg	exit ;;
9147914d74bSmrg    alpha:Linux:*:*)
9157914d74bSmrg	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
9167914d74bSmrg	  EV5)   UNAME_MACHINE=alphaev5 ;;
9177914d74bSmrg	  EV56)  UNAME_MACHINE=alphaev56 ;;
9187914d74bSmrg	  PCA56) UNAME_MACHINE=alphapca56 ;;
9197914d74bSmrg	  PCA57) UNAME_MACHINE=alphapca56 ;;
9207914d74bSmrg	  EV6)   UNAME_MACHINE=alphaev6 ;;
9217914d74bSmrg	  EV67)  UNAME_MACHINE=alphaev67 ;;
9227914d74bSmrg	  EV68*) UNAME_MACHINE=alphaev68 ;;
9237914d74bSmrg        esac
9247914d74bSmrg	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
9257914d74bSmrg	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
9267914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
9277914d74bSmrg	exit ;;
9287914d74bSmrg    parisc:Linux:*:* | hppa:Linux:*:*)
9297914d74bSmrg	# Look for CPU level
9307914d74bSmrg	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
9317914d74bSmrg	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
9327914d74bSmrg	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
9337914d74bSmrg	  *)    echo hppa-unknown-linux-gnu ;;
9347914d74bSmrg	esac
9357914d74bSmrg	exit ;;
9367914d74bSmrg    parisc64:Linux:*:* | hppa64:Linux:*:*)
9377914d74bSmrg	echo hppa64-unknown-linux-gnu
9387914d74bSmrg	exit ;;
9397914d74bSmrg    s390:Linux:*:* | s390x:Linux:*:*)
9407914d74bSmrg	echo ${UNAME_MACHINE}-ibm-linux
9417914d74bSmrg	exit ;;
9427914d74bSmrg    sh64*:Linux:*:*)
9437914d74bSmrg    	echo ${UNAME_MACHINE}-unknown-linux-gnu
9447914d74bSmrg	exit ;;
9457914d74bSmrg    sh*:Linux:*:*)
9467914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
9477914d74bSmrg	exit ;;
9487914d74bSmrg    sparc:Linux:*:* | sparc64:Linux:*:*)
9497914d74bSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
9507914d74bSmrg	exit ;;
9517914d74bSmrg    vax:Linux:*:*)
9527914d74bSmrg	echo ${UNAME_MACHINE}-dec-linux-gnu
9537914d74bSmrg	exit ;;
9547914d74bSmrg    x86_64:Linux:*:*)
9557914d74bSmrg	echo x86_64-unknown-linux-gnu
9567914d74bSmrg	exit ;;
9577914d74bSmrg    xtensa:Linux:*:*)
9587914d74bSmrg    	echo xtensa-unknown-linux-gnu
9597914d74bSmrg	exit ;;
9607914d74bSmrg    i*86:Linux:*:*)
9617914d74bSmrg	# The BFD linker knows what the default object file format is, so
9627914d74bSmrg	# first see if it will tell us. cd to the root directory to prevent
9637914d74bSmrg	# problems with other programs or directories called `ld' in the path.
9647914d74bSmrg	# Set LC_ALL=C to ensure ld outputs messages in English.
9657914d74bSmrg	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
9667914d74bSmrg			 | sed -ne '/supported targets:/!d
9677914d74bSmrg				    s/[ 	][ 	]*/ /g
9687914d74bSmrg				    s/.*supported targets: *//
9697914d74bSmrg				    s/ .*//
9707914d74bSmrg				    p'`
9717914d74bSmrg        case "$ld_supported_targets" in
9727914d74bSmrg	  elf32-i386)
9737914d74bSmrg		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
9747914d74bSmrg		;;
9757914d74bSmrg	  a.out-i386-linux)
9767914d74bSmrg		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
9777914d74bSmrg		exit ;;
9787914d74bSmrg	  coff-i386)
9797914d74bSmrg		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
9807914d74bSmrg		exit ;;
9817914d74bSmrg	  "")
9827914d74bSmrg		# Either a pre-BFD a.out linker (linux-gnuoldld) or
9837914d74bSmrg		# one that does not give us useful --help.
9847914d74bSmrg		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
9857914d74bSmrg		exit ;;
9867914d74bSmrg	esac
9877914d74bSmrg	# Determine whether the default compiler is a.out or elf
9887914d74bSmrg	eval $set_cc_for_build
9897914d74bSmrg	sed 's/^	//' << EOF >$dummy.c
9907914d74bSmrg	#include <features.h>
9917914d74bSmrg	#ifdef __ELF__
9927914d74bSmrg	# ifdef __GLIBC__
9937914d74bSmrg	#  if __GLIBC__ >= 2
9947914d74bSmrg	LIBC=gnu
9957914d74bSmrg	#  else
9967914d74bSmrg	LIBC=gnulibc1
9977914d74bSmrg	#  endif
9987914d74bSmrg	# else
9997914d74bSmrg	LIBC=gnulibc1
10007914d74bSmrg	# endif
10017914d74bSmrg	#else
10027914d74bSmrg	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
10037914d74bSmrg	LIBC=gnu
10047914d74bSmrg	#else
10057914d74bSmrg	LIBC=gnuaout
10067914d74bSmrg	#endif
10077914d74bSmrg	#endif
10087914d74bSmrg	#ifdef __dietlibc__
10097914d74bSmrg	LIBC=dietlibc
10107914d74bSmrg	#endif
10117914d74bSmrgEOF
10127914d74bSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
10137914d74bSmrg	    /^LIBC/{
10147914d74bSmrg		s: ::g
10157914d74bSmrg		p
10167914d74bSmrg	    }'`"
10177914d74bSmrg	test x"${LIBC}" != x && {
10187914d74bSmrg		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
10197914d74bSmrg		exit
10207914d74bSmrg	}
10217914d74bSmrg	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
10227914d74bSmrg	;;
10237914d74bSmrg    i*86:DYNIX/ptx:4*:*)
10247914d74bSmrg	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10257914d74bSmrg	# earlier versions are messed up and put the nodename in both
10267914d74bSmrg	# sysname and nodename.
10277914d74bSmrg	echo i386-sequent-sysv4
10287914d74bSmrg	exit ;;
10297914d74bSmrg    i*86:UNIX_SV:4.2MP:2.*)
10307914d74bSmrg        # Unixware is an offshoot of SVR4, but it has its own version
10317914d74bSmrg        # number series starting with 2...
10327914d74bSmrg        # I am not positive that other SVR4 systems won't match this,
10337914d74bSmrg	# I just have to hope.  -- rms.
10347914d74bSmrg        # Use sysv4.2uw... so that sysv4* matches it.
10357914d74bSmrg	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
10367914d74bSmrg	exit ;;
10377914d74bSmrg    i*86:OS/2:*:*)
10387914d74bSmrg	# If we were able to find `uname', then EMX Unix compatibility
10397914d74bSmrg	# is probably installed.
10407914d74bSmrg	echo ${UNAME_MACHINE}-pc-os2-emx
10417914d74bSmrg	exit ;;
10427914d74bSmrg    i*86:XTS-300:*:STOP)
10437914d74bSmrg	echo ${UNAME_MACHINE}-unknown-stop
10447914d74bSmrg	exit ;;
10457914d74bSmrg    i*86:atheos:*:*)
10467914d74bSmrg	echo ${UNAME_MACHINE}-unknown-atheos
10477914d74bSmrg	exit ;;
10487914d74bSmrg    i*86:syllable:*:*)
10497914d74bSmrg	echo ${UNAME_MACHINE}-pc-syllable
10507914d74bSmrg	exit ;;
10517914d74bSmrg    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
10527914d74bSmrg	echo i386-unknown-lynxos${UNAME_RELEASE}
10537914d74bSmrg	exit ;;
10547914d74bSmrg    i*86:*DOS:*:*)
10557914d74bSmrg	echo ${UNAME_MACHINE}-pc-msdosdjgpp
10567914d74bSmrg	exit ;;
10577914d74bSmrg    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
10587914d74bSmrg	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
10597914d74bSmrg	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
10607914d74bSmrg		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
10617914d74bSmrg	else
10627914d74bSmrg		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
10637914d74bSmrg	fi
10647914d74bSmrg	exit ;;
10657914d74bSmrg    i*86:*:5:[678]*)
10667914d74bSmrg    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
10677914d74bSmrg	case `/bin/uname -X | grep "^Machine"` in
10687914d74bSmrg	    *486*)	     UNAME_MACHINE=i486 ;;
10697914d74bSmrg	    *Pentium)	     UNAME_MACHINE=i586 ;;
10707914d74bSmrg	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10717914d74bSmrg	esac
10727914d74bSmrg	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
10737914d74bSmrg	exit ;;
10747914d74bSmrg    i*86:*:3.2:*)
10757914d74bSmrg	if test -f /usr/options/cb.name; then
10767914d74bSmrg		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
10777914d74bSmrg		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
10787914d74bSmrg	elif /bin/uname -X 2>/dev/null >/dev/null ; then
10797914d74bSmrg		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10807914d74bSmrg		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10817914d74bSmrg		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
10827914d74bSmrg			&& UNAME_MACHINE=i586
10837914d74bSmrg		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
10847914d74bSmrg			&& UNAME_MACHINE=i686
10857914d74bSmrg		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10867914d74bSmrg			&& UNAME_MACHINE=i686
10877914d74bSmrg		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
10887914d74bSmrg	else
10897914d74bSmrg		echo ${UNAME_MACHINE}-pc-sysv32
10907914d74bSmrg	fi
10917914d74bSmrg	exit ;;
10927914d74bSmrg    pc:*:*:*)
10937914d74bSmrg	# Left here for compatibility:
10947914d74bSmrg        # uname -m prints for DJGPP always 'pc', but it prints nothing about
10957914d74bSmrg        # the processor, so we play safe by assuming i386.
10967914d74bSmrg	echo i386-pc-msdosdjgpp
10977914d74bSmrg        exit ;;
10987914d74bSmrg    Intel:Mach:3*:*)
10997914d74bSmrg	echo i386-pc-mach3
11007914d74bSmrg	exit ;;
11017914d74bSmrg    paragon:*:*:*)
11027914d74bSmrg	echo i860-intel-osf1
11037914d74bSmrg	exit ;;
11047914d74bSmrg    i860:*:4.*:*) # i860-SVR4
11057914d74bSmrg	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
11067914d74bSmrg	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
11077914d74bSmrg	else # Add other i860-SVR4 vendors below as they are discovered.
11087914d74bSmrg	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
11097914d74bSmrg	fi
11107914d74bSmrg	exit ;;
11117914d74bSmrg    mini*:CTIX:SYS*5:*)
11127914d74bSmrg	# "miniframe"
11137914d74bSmrg	echo m68010-convergent-sysv
11147914d74bSmrg	exit ;;
11157914d74bSmrg    mc68k:UNIX:SYSTEM5:3.51m)
11167914d74bSmrg	echo m68k-convergent-sysv
11177914d74bSmrg	exit ;;
11187914d74bSmrg    M680?0:D-NIX:5.3:*)
11197914d74bSmrg	echo m68k-diab-dnix
11207914d74bSmrg	exit ;;
11217914d74bSmrg    M68*:*:R3V[5678]*:*)
11227914d74bSmrg	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11237914d74bSmrg    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)
11247914d74bSmrg	OS_REL=''
11257914d74bSmrg	test -r /etc/.relid \
11267914d74bSmrg	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11277914d74bSmrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11287914d74bSmrg	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
11297914d74bSmrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11307914d74bSmrg	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11317914d74bSmrg    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11327914d74bSmrg        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11337914d74bSmrg          && { echo i486-ncr-sysv4; exit; } ;;
11347914d74bSmrg    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
11357914d74bSmrg	echo m68k-unknown-lynxos${UNAME_RELEASE}
11367914d74bSmrg	exit ;;
11377914d74bSmrg    mc68030:UNIX_System_V:4.*:*)
11387914d74bSmrg	echo m68k-atari-sysv4
11397914d74bSmrg	exit ;;
11407914d74bSmrg    TSUNAMI:LynxOS:2.*:*)
11417914d74bSmrg	echo sparc-unknown-lynxos${UNAME_RELEASE}
11427914d74bSmrg	exit ;;
11437914d74bSmrg    rs6000:LynxOS:2.*:*)
11447914d74bSmrg	echo rs6000-unknown-lynxos${UNAME_RELEASE}
11457914d74bSmrg	exit ;;
11467914d74bSmrg    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11477914d74bSmrg	echo powerpc-unknown-lynxos${UNAME_RELEASE}
11487914d74bSmrg	exit ;;
11497914d74bSmrg    SM[BE]S:UNIX_SV:*:*)
11507914d74bSmrg	echo mips-dde-sysv${UNAME_RELEASE}
11517914d74bSmrg	exit ;;
11527914d74bSmrg    RM*:ReliantUNIX-*:*:*)
11537914d74bSmrg	echo mips-sni-sysv4
11547914d74bSmrg	exit ;;
11557914d74bSmrg    RM*:SINIX-*:*:*)
11567914d74bSmrg	echo mips-sni-sysv4
11577914d74bSmrg	exit ;;
11587914d74bSmrg    *:SINIX-*:*:*)
11597914d74bSmrg	if uname -p 2>/dev/null >/dev/null ; then
11607914d74bSmrg		UNAME_MACHINE=`(uname -p) 2>/dev/null`
11617914d74bSmrg		echo ${UNAME_MACHINE}-sni-sysv4
11627914d74bSmrg	else
11637914d74bSmrg		echo ns32k-sni-sysv
11647914d74bSmrg	fi
11657914d74bSmrg	exit ;;
11667914d74bSmrg    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11677914d74bSmrg                      # says <Richard.M.Bartel@ccMail.Census.GOV>
11687914d74bSmrg        echo i586-unisys-sysv4
11697914d74bSmrg        exit ;;
11707914d74bSmrg    *:UNIX_System_V:4*:FTX*)
11717914d74bSmrg	# From Gerald Hewes <hewes@openmarket.com>.
11727914d74bSmrg	# How about differentiating between stratus architectures? -djm
11737914d74bSmrg	echo hppa1.1-stratus-sysv4
11747914d74bSmrg	exit ;;
11757914d74bSmrg    *:*:*:FTX*)
11767914d74bSmrg	# From seanf@swdc.stratus.com.
11777914d74bSmrg	echo i860-stratus-sysv4
11787914d74bSmrg	exit ;;
11797914d74bSmrg    i*86:VOS:*:*)
11807914d74bSmrg	# From Paul.Green@stratus.com.
11817914d74bSmrg	echo ${UNAME_MACHINE}-stratus-vos
11827914d74bSmrg	exit ;;
11837914d74bSmrg    *:VOS:*:*)
11847914d74bSmrg	# From Paul.Green@stratus.com.
11857914d74bSmrg	echo hppa1.1-stratus-vos
11867914d74bSmrg	exit ;;
11877914d74bSmrg    mc68*:A/UX:*:*)
11887914d74bSmrg	echo m68k-apple-aux${UNAME_RELEASE}
11897914d74bSmrg	exit ;;
11907914d74bSmrg    news*:NEWS-OS:6*:*)
11917914d74bSmrg	echo mips-sony-newsos6
11927914d74bSmrg	exit ;;
11937914d74bSmrg    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11947914d74bSmrg	if [ -d /usr/nec ]; then
11957914d74bSmrg	        echo mips-nec-sysv${UNAME_RELEASE}
11967914d74bSmrg	else
11977914d74bSmrg	        echo mips-unknown-sysv${UNAME_RELEASE}
11987914d74bSmrg	fi
11997914d74bSmrg        exit ;;
12007914d74bSmrg    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
12017914d74bSmrg	echo powerpc-be-beos
12027914d74bSmrg	exit ;;
12037914d74bSmrg    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
12047914d74bSmrg	echo powerpc-apple-beos
12057914d74bSmrg	exit ;;
12067914d74bSmrg    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
12077914d74bSmrg	echo i586-pc-beos
12087914d74bSmrg	exit ;;
12097914d74bSmrg    SX-4:SUPER-UX:*:*)
12107914d74bSmrg	echo sx4-nec-superux${UNAME_RELEASE}
12117914d74bSmrg	exit ;;
12127914d74bSmrg    SX-5:SUPER-UX:*:*)
12137914d74bSmrg	echo sx5-nec-superux${UNAME_RELEASE}
12147914d74bSmrg	exit ;;
12157914d74bSmrg    SX-6:SUPER-UX:*:*)
12167914d74bSmrg	echo sx6-nec-superux${UNAME_RELEASE}
12177914d74bSmrg	exit ;;
12187914d74bSmrg    SX-7:SUPER-UX:*:*)
12197914d74bSmrg	echo sx7-nec-superux${UNAME_RELEASE}
12207914d74bSmrg	exit ;;
12217914d74bSmrg    SX-8:SUPER-UX:*:*)
12227914d74bSmrg	echo sx8-nec-superux${UNAME_RELEASE}
12237914d74bSmrg	exit ;;
12247914d74bSmrg    SX-8R:SUPER-UX:*:*)
12257914d74bSmrg	echo sx8r-nec-superux${UNAME_RELEASE}
12267914d74bSmrg	exit ;;
12277914d74bSmrg    Power*:Rhapsody:*:*)
12287914d74bSmrg	echo powerpc-apple-rhapsody${UNAME_RELEASE}
12297914d74bSmrg	exit ;;
12307914d74bSmrg    *:Rhapsody:*:*)
12317914d74bSmrg	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
12327914d74bSmrg	exit ;;
12337914d74bSmrg    *:Darwin:*:*)
12347914d74bSmrg	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
12357914d74bSmrg	case $UNAME_PROCESSOR in
12367914d74bSmrg	    unknown) UNAME_PROCESSOR=powerpc ;;
12377914d74bSmrg	esac
12387914d74bSmrg	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12397914d74bSmrg	exit ;;
12407914d74bSmrg    *:procnto*:*:* | *:QNX:[0123456789]*:*)
12417914d74bSmrg	UNAME_PROCESSOR=`uname -p`
12427914d74bSmrg	if test "$UNAME_PROCESSOR" = "x86"; then
12437914d74bSmrg		UNAME_PROCESSOR=i386
12447914d74bSmrg		UNAME_MACHINE=pc
12457914d74bSmrg	fi
12467914d74bSmrg	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
12477914d74bSmrg	exit ;;
12487914d74bSmrg    *:QNX:*:4*)
12497914d74bSmrg	echo i386-pc-qnx
12507914d74bSmrg	exit ;;
12517914d74bSmrg    NSE-?:NONSTOP_KERNEL:*:*)
12527914d74bSmrg	echo nse-tandem-nsk${UNAME_RELEASE}
12537914d74bSmrg	exit ;;
12547914d74bSmrg    NSR-?:NONSTOP_KERNEL:*:*)
12557914d74bSmrg	echo nsr-tandem-nsk${UNAME_RELEASE}
12567914d74bSmrg	exit ;;
12577914d74bSmrg    *:NonStop-UX:*:*)
12587914d74bSmrg	echo mips-compaq-nonstopux
12597914d74bSmrg	exit ;;
12607914d74bSmrg    BS2000:POSIX*:*:*)
12617914d74bSmrg	echo bs2000-siemens-sysv
12627914d74bSmrg	exit ;;
12637914d74bSmrg    DS/*:UNIX_System_V:*:*)
12647914d74bSmrg	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
12657914d74bSmrg	exit ;;
12667914d74bSmrg    *:Plan9:*:*)
12677914d74bSmrg	# "uname -m" is not consistent, so use $cputype instead. 386
12687914d74bSmrg	# is converted to i386 for consistency with other x86
12697914d74bSmrg	# operating systems.
12707914d74bSmrg	if test "$cputype" = "386"; then
12717914d74bSmrg	    UNAME_MACHINE=i386
12727914d74bSmrg	else
12737914d74bSmrg	    UNAME_MACHINE="$cputype"
12747914d74bSmrg	fi
12757914d74bSmrg	echo ${UNAME_MACHINE}-unknown-plan9
12767914d74bSmrg	exit ;;
12777914d74bSmrg    *:TOPS-10:*:*)
12787914d74bSmrg	echo pdp10-unknown-tops10
12797914d74bSmrg	exit ;;
12807914d74bSmrg    *:TENEX:*:*)
12817914d74bSmrg	echo pdp10-unknown-tenex
12827914d74bSmrg	exit ;;
12837914d74bSmrg    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
12847914d74bSmrg	echo pdp10-dec-tops20
12857914d74bSmrg	exit ;;
12867914d74bSmrg    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
12877914d74bSmrg	echo pdp10-xkl-tops20
12887914d74bSmrg	exit ;;
12897914d74bSmrg    *:TOPS-20:*:*)
12907914d74bSmrg	echo pdp10-unknown-tops20
12917914d74bSmrg	exit ;;
12927914d74bSmrg    *:ITS:*:*)
12937914d74bSmrg	echo pdp10-unknown-its
12947914d74bSmrg	exit ;;
12957914d74bSmrg    SEI:*:*:SEIUX)
12967914d74bSmrg        echo mips-sei-seiux${UNAME_RELEASE}
12977914d74bSmrg	exit ;;
12987914d74bSmrg    *:DragonFly:*:*)
12997914d74bSmrg	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
13007914d74bSmrg	exit ;;
13017914d74bSmrg    *:*VMS:*:*)
13027914d74bSmrg    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
13037914d74bSmrg	case "${UNAME_MACHINE}" in
13047914d74bSmrg	    A*) echo alpha-dec-vms ; exit ;;
13057914d74bSmrg	    I*) echo ia64-dec-vms ; exit ;;
13067914d74bSmrg	    V*) echo vax-dec-vms ; exit ;;
13077914d74bSmrg	esac ;;
13087914d74bSmrg    *:XENIX:*:SysV)
13097914d74bSmrg	echo i386-pc-xenix
13107914d74bSmrg	exit ;;
13117914d74bSmrg    i*86:skyos:*:*)
13127914d74bSmrg	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
13137914d74bSmrg	exit ;;
13147914d74bSmrg    i*86:rdos:*:*)
13157914d74bSmrg	echo ${UNAME_MACHINE}-pc-rdos
13167914d74bSmrg	exit ;;
13177914d74bSmrgesac
13187914d74bSmrg
13197914d74bSmrg#echo '(No uname command or uname output not recognized.)' 1>&2
13207914d74bSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13217914d74bSmrg
13227914d74bSmrgeval $set_cc_for_build
13237914d74bSmrgcat >$dummy.c <<EOF
13247914d74bSmrg#ifdef _SEQUENT_
13257914d74bSmrg# include <sys/types.h>
13267914d74bSmrg# include <sys/utsname.h>
13277914d74bSmrg#endif
13287914d74bSmrgmain ()
13297914d74bSmrg{
13307914d74bSmrg#if defined (sony)
13317914d74bSmrg#if defined (MIPSEB)
13327914d74bSmrg  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
13337914d74bSmrg     I don't know....  */
13347914d74bSmrg  printf ("mips-sony-bsd\n"); exit (0);
13357914d74bSmrg#else
13367914d74bSmrg#include <sys/param.h>
13377914d74bSmrg  printf ("m68k-sony-newsos%s\n",
13387914d74bSmrg#ifdef NEWSOS4
13397914d74bSmrg          "4"
13407914d74bSmrg#else
13417914d74bSmrg	  ""
13427914d74bSmrg#endif
13437914d74bSmrg         ); exit (0);
13447914d74bSmrg#endif
13457914d74bSmrg#endif
13467914d74bSmrg
13477914d74bSmrg#if defined (__arm) && defined (__acorn) && defined (__unix)
13487914d74bSmrg  printf ("arm-acorn-riscix\n"); exit (0);
13497914d74bSmrg#endif
13507914d74bSmrg
13517914d74bSmrg#if defined (hp300) && !defined (hpux)
13527914d74bSmrg  printf ("m68k-hp-bsd\n"); exit (0);
13537914d74bSmrg#endif
13547914d74bSmrg
13557914d74bSmrg#if defined (NeXT)
13567914d74bSmrg#if !defined (__ARCHITECTURE__)
13577914d74bSmrg#define __ARCHITECTURE__ "m68k"
13587914d74bSmrg#endif
13597914d74bSmrg  int version;
13607914d74bSmrg  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
13617914d74bSmrg  if (version < 4)
13627914d74bSmrg    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
13637914d74bSmrg  else
13647914d74bSmrg    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
13657914d74bSmrg  exit (0);
13667914d74bSmrg#endif
13677914d74bSmrg
13687914d74bSmrg#if defined (MULTIMAX) || defined (n16)
13697914d74bSmrg#if defined (UMAXV)
13707914d74bSmrg  printf ("ns32k-encore-sysv\n"); exit (0);
13717914d74bSmrg#else
13727914d74bSmrg#if defined (CMU)
13737914d74bSmrg  printf ("ns32k-encore-mach\n"); exit (0);
13747914d74bSmrg#else
13757914d74bSmrg  printf ("ns32k-encore-bsd\n"); exit (0);
13767914d74bSmrg#endif
13777914d74bSmrg#endif
13787914d74bSmrg#endif
13797914d74bSmrg
13807914d74bSmrg#if defined (__386BSD__)
13817914d74bSmrg  printf ("i386-pc-bsd\n"); exit (0);
13827914d74bSmrg#endif
13837914d74bSmrg
13847914d74bSmrg#if defined (sequent)
13857914d74bSmrg#if defined (i386)
13867914d74bSmrg  printf ("i386-sequent-dynix\n"); exit (0);
13877914d74bSmrg#endif
13887914d74bSmrg#if defined (ns32000)
13897914d74bSmrg  printf ("ns32k-sequent-dynix\n"); exit (0);
13907914d74bSmrg#endif
13917914d74bSmrg#endif
13927914d74bSmrg
13937914d74bSmrg#if defined (_SEQUENT_)
13947914d74bSmrg    struct utsname un;
13957914d74bSmrg
13967914d74bSmrg    uname(&un);
13977914d74bSmrg
13987914d74bSmrg    if (strncmp(un.version, "V2", 2) == 0) {
13997914d74bSmrg	printf ("i386-sequent-ptx2\n"); exit (0);
14007914d74bSmrg    }
14017914d74bSmrg    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
14027914d74bSmrg	printf ("i386-sequent-ptx1\n"); exit (0);
14037914d74bSmrg    }
14047914d74bSmrg    printf ("i386-sequent-ptx\n"); exit (0);
14057914d74bSmrg
14067914d74bSmrg#endif
14077914d74bSmrg
14087914d74bSmrg#if defined (vax)
14097914d74bSmrg# if !defined (ultrix)
14107914d74bSmrg#  include <sys/param.h>
14117914d74bSmrg#  if defined (BSD)
14127914d74bSmrg#   if BSD == 43
14137914d74bSmrg      printf ("vax-dec-bsd4.3\n"); exit (0);
14147914d74bSmrg#   else
14157914d74bSmrg#    if BSD == 199006
14167914d74bSmrg      printf ("vax-dec-bsd4.3reno\n"); exit (0);
14177914d74bSmrg#    else
14187914d74bSmrg      printf ("vax-dec-bsd\n"); exit (0);
14197914d74bSmrg#    endif
14207914d74bSmrg#   endif
14217914d74bSmrg#  else
14227914d74bSmrg    printf ("vax-dec-bsd\n"); exit (0);
14237914d74bSmrg#  endif
14247914d74bSmrg# else
14257914d74bSmrg    printf ("vax-dec-ultrix\n"); exit (0);
14267914d74bSmrg# endif
14277914d74bSmrg#endif
14287914d74bSmrg
14297914d74bSmrg#if defined (alliant) && defined (i860)
14307914d74bSmrg  printf ("i860-alliant-bsd\n"); exit (0);
14317914d74bSmrg#endif
14327914d74bSmrg
14337914d74bSmrg  exit (1);
14347914d74bSmrg}
14357914d74bSmrgEOF
14367914d74bSmrg
14377914d74bSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
14387914d74bSmrg	{ echo "$SYSTEM_NAME"; exit; }
14397914d74bSmrg
14407914d74bSmrg# Apollos put the system type in the environment.
14417914d74bSmrg
14427914d74bSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
14437914d74bSmrg
14447914d74bSmrg# Convex versions that predate uname can use getsysinfo(1)
14457914d74bSmrg
14467914d74bSmrgif [ -x /usr/convex/getsysinfo ]
14477914d74bSmrgthen
14487914d74bSmrg    case `getsysinfo -f cpu_type` in
14497914d74bSmrg    c1*)
14507914d74bSmrg	echo c1-convex-bsd
14517914d74bSmrg	exit ;;
14527914d74bSmrg    c2*)
14537914d74bSmrg	if getsysinfo -f scalar_acc
14547914d74bSmrg	then echo c32-convex-bsd
14557914d74bSmrg	else echo c2-convex-bsd
14567914d74bSmrg	fi
14577914d74bSmrg	exit ;;
14587914d74bSmrg    c34*)
14597914d74bSmrg	echo c34-convex-bsd
14607914d74bSmrg	exit ;;
14617914d74bSmrg    c38*)
14627914d74bSmrg	echo c38-convex-bsd
14637914d74bSmrg	exit ;;
14647914d74bSmrg    c4*)
14657914d74bSmrg	echo c4-convex-bsd
14667914d74bSmrg	exit ;;
14677914d74bSmrg    esac
14687914d74bSmrgfi
14697914d74bSmrg
14707914d74bSmrgcat >&2 <<EOF
14717914d74bSmrg$0: unable to guess system type
14727914d74bSmrg
14737914d74bSmrgThis script, last modified $timestamp, has failed to recognize
14747914d74bSmrgthe operating system you are using. It is advised that you
14757914d74bSmrgdownload the most up to date version of the config scripts from
14767914d74bSmrg
14777914d74bSmrg  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
14787914d74bSmrgand
14797914d74bSmrg  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
14807914d74bSmrg
14817914d74bSmrgIf the version you run ($0) is already up to date, please
14827914d74bSmrgsend the following data and any information you think might be
14837914d74bSmrgpertinent to <config-patches@gnu.org> in order to provide the needed
14847914d74bSmrginformation to handle your system.
14857914d74bSmrg
14867914d74bSmrgconfig.guess timestamp = $timestamp
14877914d74bSmrg
14887914d74bSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
14897914d74bSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
14907914d74bSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
14917914d74bSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
14927914d74bSmrg
14937914d74bSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
14947914d74bSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
14957914d74bSmrg
14967914d74bSmrghostinfo               = `(hostinfo) 2>/dev/null`
14977914d74bSmrg/bin/universe          = `(/bin/universe) 2>/dev/null`
14987914d74bSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
14997914d74bSmrg/bin/arch              = `(/bin/arch) 2>/dev/null`
15007914d74bSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
15017914d74bSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
15027914d74bSmrg
15037914d74bSmrgUNAME_MACHINE = ${UNAME_MACHINE}
15047914d74bSmrgUNAME_RELEASE = ${UNAME_RELEASE}
15057914d74bSmrgUNAME_SYSTEM  = ${UNAME_SYSTEM}
15067914d74bSmrgUNAME_VERSION = ${UNAME_VERSION}
15077914d74bSmrgEOF
15087914d74bSmrg
15097914d74bSmrgexit 1
15107914d74bSmrg
15117914d74bSmrg# Local variables:
15127914d74bSmrg# eval: (add-hook 'write-file-hooks 'time-stamp)
15137914d74bSmrg# time-stamp-start: "timestamp='"
15147914d74bSmrg# time-stamp-format: "%:y-%02m-%02d"
15157914d74bSmrg# time-stamp-end: "'"
15167914d74bSmrg# End:
1517