config.guess revision 16fd1166
16df26cacSmrg#! /bin/sh
26df26cacSmrg# Attempt to guess a canonical system name.
36df26cacSmrg#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
46df26cacSmrg#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
56df26cacSmrg#   Inc.
66df26cacSmrg
716fd1166Smrgtimestamp='2007-05-17'
86df26cacSmrg
96df26cacSmrg# This file is free software; you can redistribute it and/or modify it
106df26cacSmrg# under the terms of the GNU General Public License as published by
116df26cacSmrg# the Free Software Foundation; either version 2 of the License, or
126df26cacSmrg# (at your option) any later version.
136df26cacSmrg#
146df26cacSmrg# This program is distributed in the hope that it will be useful, but
156df26cacSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of
166df26cacSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
176df26cacSmrg# General Public License for more details.
186df26cacSmrg#
196df26cacSmrg# You should have received a copy of the GNU General Public License
206df26cacSmrg# along with this program; if not, write to the Free Software
216df26cacSmrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
226df26cacSmrg# 02110-1301, USA.
236df26cacSmrg#
246df26cacSmrg# As a special exception to the GNU General Public License, if you
256df26cacSmrg# distribute this file as part of a program that contains a
266df26cacSmrg# configuration script generated by Autoconf, you may include it under
276df26cacSmrg# the same distribution terms that you use for the rest of that program.
286df26cacSmrg
296df26cacSmrg
306df26cacSmrg# Originally written by Per Bothner <per@bothner.com>.
316df26cacSmrg# Please send patches to <config-patches@gnu.org>.  Submit a context
326df26cacSmrg# diff and a properly formatted ChangeLog entry.
336df26cacSmrg#
346df26cacSmrg# This script attempts to guess a canonical system name similar to
356df26cacSmrg# config.sub.  If it succeeds, it prints the system name on stdout, and
366df26cacSmrg# exits with 0.  Otherwise, it exits with 1.
376df26cacSmrg#
386df26cacSmrg# The plan is that this can be called by configure scripts if you
396df26cacSmrg# don't specify an explicit build system type.
406df26cacSmrg
416df26cacSmrgme=`echo "$0" | sed -e 's,.*/,,'`
426df26cacSmrg
436df26cacSmrgusage="\
446df26cacSmrgUsage: $0 [OPTION]
456df26cacSmrg
466df26cacSmrgOutput the configuration name of the system \`$me' is run on.
476df26cacSmrg
486df26cacSmrgOperation modes:
496df26cacSmrg  -h, --help         print this help, then exit
506df26cacSmrg  -t, --time-stamp   print date of last modification, then exit
516df26cacSmrg  -v, --version      print version number, then exit
526df26cacSmrg
536df26cacSmrgReport bugs and patches to <config-patches@gnu.org>."
546df26cacSmrg
556df26cacSmrgversion="\
566df26cacSmrgGNU config.guess ($timestamp)
576df26cacSmrg
586df26cacSmrgOriginally written by Per Bothner.
596df26cacSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
606df26cacSmrgFree Software Foundation, Inc.
616df26cacSmrg
626df26cacSmrgThis is free software; see the source for copying conditions.  There is NO
636df26cacSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
646df26cacSmrg
656df26cacSmrghelp="
666df26cacSmrgTry \`$me --help' for more information."
676df26cacSmrg
686df26cacSmrg# Parse command line
696df26cacSmrgwhile test $# -gt 0 ; do
706df26cacSmrg  case $1 in
716df26cacSmrg    --time-stamp | --time* | -t )
726df26cacSmrg       echo "$timestamp" ; exit ;;
736df26cacSmrg    --version | -v )
746df26cacSmrg       echo "$version" ; exit ;;
756df26cacSmrg    --help | --h* | -h )
766df26cacSmrg       echo "$usage"; exit ;;
776df26cacSmrg    -- )     # Stop option processing
786df26cacSmrg       shift; break ;;
796df26cacSmrg    - )	# Use stdin as input.
806df26cacSmrg       break ;;
816df26cacSmrg    -* )
826df26cacSmrg       echo "$me: invalid option $1$help" >&2
836df26cacSmrg       exit 1 ;;
846df26cacSmrg    * )
856df26cacSmrg       break ;;
866df26cacSmrg  esac
876df26cacSmrgdone
886df26cacSmrg
896df26cacSmrgif test $# != 0; then
906df26cacSmrg  echo "$me: too many arguments$help" >&2
916df26cacSmrg  exit 1
926df26cacSmrgfi
936df26cacSmrg
946df26cacSmrgtrap 'exit 1' 1 2 15
956df26cacSmrg
966df26cacSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
976df26cacSmrg# compiler to aid in system detection is discouraged as it requires
986df26cacSmrg# temporary files to be created and, as you can see below, it is a
996df26cacSmrg# headache to deal with in a portable fashion.
1006df26cacSmrg
1016df26cacSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
1026df26cacSmrg# use `HOST_CC' if defined, but it is deprecated.
1036df26cacSmrg
1046df26cacSmrg# Portable tmp directory creation inspired by the Autoconf team.
1056df26cacSmrg
1066df26cacSmrgset_cc_for_build='
1076df26cacSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
1086df26cacSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
1096df26cacSmrg: ${TMPDIR=/tmp} ;
1106df26cacSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
1116df26cacSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
1126df26cacSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
1136df26cacSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
1146df26cacSmrgdummy=$tmp/dummy ;
1156df26cacSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
1166df26cacSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in
1176df26cacSmrg ,,)    echo "int x;" > $dummy.c ;
1186df26cacSmrg	for c in cc gcc c89 c99 ; do
1196df26cacSmrg	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1206df26cacSmrg	     CC_FOR_BUILD="$c"; break ;
1216df26cacSmrg	  fi ;
1226df26cacSmrg	done ;
1236df26cacSmrg	if test x"$CC_FOR_BUILD" = x ; then
1246df26cacSmrg	  CC_FOR_BUILD=no_compiler_found ;
1256df26cacSmrg	fi
1266df26cacSmrg	;;
1276df26cacSmrg ,,*)   CC_FOR_BUILD=$CC ;;
1286df26cacSmrg ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
1296df26cacSmrgesac ; set_cc_for_build= ;'
1306df26cacSmrg
1316df26cacSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1326df26cacSmrg# (ghazi@noc.rutgers.edu 1994-08-24)
1336df26cacSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then
1346df26cacSmrg	PATH=$PATH:/.attbin ; export PATH
1356df26cacSmrgfi
1366df26cacSmrg
1376df26cacSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
1386df26cacSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
1396df26cacSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
1406df26cacSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
1416df26cacSmrg
1426df26cacSmrg# Note: order is significant - the case branches are not exclusive.
1436df26cacSmrg
1446df26cacSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1456df26cacSmrg    *:NetBSD:*:*)
1466df26cacSmrg	# NetBSD (nbsd) targets should (where applicable) match one or
1476df26cacSmrg	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
1486df26cacSmrg	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
1496df26cacSmrg	# switched to ELF, *-*-netbsd* would select the old
1506df26cacSmrg	# object file format.  This provides both forward
1516df26cacSmrg	# compatibility and a consistent mechanism for selecting the
1526df26cacSmrg	# object file format.
1536df26cacSmrg	#
1546df26cacSmrg	# Note: NetBSD doesn't particularly care about the vendor
1556df26cacSmrg	# portion of the name.  We always set it to "unknown".
1566df26cacSmrg	sysctl="sysctl -n hw.machine_arch"
1576df26cacSmrg	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
1586df26cacSmrg	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
1596df26cacSmrg	case "${UNAME_MACHINE_ARCH}" in
1606df26cacSmrg	    armeb) machine=armeb-unknown ;;
1616df26cacSmrg	    arm*) machine=arm-unknown ;;
1626df26cacSmrg	    sh3el) machine=shl-unknown ;;
1636df26cacSmrg	    sh3eb) machine=sh-unknown ;;
16416fd1166Smrg	    sh5el) machine=sh5le-unknown ;;
1656df26cacSmrg	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1666df26cacSmrg	esac
1676df26cacSmrg	# The Operating System including object format, if it has switched
1686df26cacSmrg	# to ELF recently, or will in the future.
1696df26cacSmrg	case "${UNAME_MACHINE_ARCH}" in
1706df26cacSmrg	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1716df26cacSmrg		eval $set_cc_for_build
1726df26cacSmrg		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
1736df26cacSmrg			| grep __ELF__ >/dev/null
1746df26cacSmrg		then
1756df26cacSmrg		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
1766df26cacSmrg		    # Return netbsd for either.  FIX?
1776df26cacSmrg		    os=netbsd
1786df26cacSmrg		else
1796df26cacSmrg		    os=netbsdelf
1806df26cacSmrg		fi
1816df26cacSmrg		;;
1826df26cacSmrg	    *)
1836df26cacSmrg	        os=netbsd
1846df26cacSmrg		;;
1856df26cacSmrg	esac
1866df26cacSmrg	# The OS release
1876df26cacSmrg	# Debian GNU/NetBSD machines have a different userland, and
1886df26cacSmrg	# thus, need a distinct triplet. However, they do not need
1896df26cacSmrg	# kernel version information, so it can be replaced with a
1906df26cacSmrg	# suitable tag, in the style of linux-gnu.
1916df26cacSmrg	case "${UNAME_VERSION}" in
1926df26cacSmrg	    Debian*)
1936df26cacSmrg		release='-gnu'
1946df26cacSmrg		;;
1956df26cacSmrg	    *)
1966df26cacSmrg		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
1976df26cacSmrg		;;
1986df26cacSmrg	esac
1996df26cacSmrg	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
2006df26cacSmrg	# contains redundant information, the shorter form:
2016df26cacSmrg	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2026df26cacSmrg	echo "${machine}-${os}${release}"
2036df26cacSmrg	exit ;;
2046df26cacSmrg    *:OpenBSD:*:*)
2056df26cacSmrg	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
2066df26cacSmrg	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
2076df26cacSmrg	exit ;;
2086df26cacSmrg    *:ekkoBSD:*:*)
2096df26cacSmrg	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
2106df26cacSmrg	exit ;;
2116df26cacSmrg    *:SolidBSD:*:*)
2126df26cacSmrg	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
2136df26cacSmrg	exit ;;
2146df26cacSmrg    macppc:MirBSD:*:*)
2156df26cacSmrg	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
2166df26cacSmrg	exit ;;
2176df26cacSmrg    *:MirBSD:*:*)
2186df26cacSmrg	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
2196df26cacSmrg	exit ;;
2206df26cacSmrg    alpha:OSF1:*:*)
2216df26cacSmrg	case $UNAME_RELEASE in
2226df26cacSmrg	*4.0)
2236df26cacSmrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
2246df26cacSmrg		;;
2256df26cacSmrg	*5.*)
2266df26cacSmrg	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
2276df26cacSmrg		;;
2286df26cacSmrg	esac
2296df26cacSmrg	# According to Compaq, /usr/sbin/psrinfo has been available on
2306df26cacSmrg	# OSF/1 and Tru64 systems produced since 1995.  I hope that
2316df26cacSmrg	# covers most systems running today.  This code pipes the CPU
2326df26cacSmrg	# types through head -n 1, so we only detect the type of CPU 0.
2336df26cacSmrg	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
2346df26cacSmrg	case "$ALPHA_CPU_TYPE" in
2356df26cacSmrg	    "EV4 (21064)")
2366df26cacSmrg		UNAME_MACHINE="alpha" ;;
2376df26cacSmrg	    "EV4.5 (21064)")
2386df26cacSmrg		UNAME_MACHINE="alpha" ;;
2396df26cacSmrg	    "LCA4 (21066/21068)")
2406df26cacSmrg		UNAME_MACHINE="alpha" ;;
2416df26cacSmrg	    "EV5 (21164)")
2426df26cacSmrg		UNAME_MACHINE="alphaev5" ;;
2436df26cacSmrg	    "EV5.6 (21164A)")
2446df26cacSmrg		UNAME_MACHINE="alphaev56" ;;
2456df26cacSmrg	    "EV5.6 (21164PC)")
2466df26cacSmrg		UNAME_MACHINE="alphapca56" ;;
2476df26cacSmrg	    "EV5.7 (21164PC)")
2486df26cacSmrg		UNAME_MACHINE="alphapca57" ;;
2496df26cacSmrg	    "EV6 (21264)")
2506df26cacSmrg		UNAME_MACHINE="alphaev6" ;;
2516df26cacSmrg	    "EV6.7 (21264A)")
2526df26cacSmrg		UNAME_MACHINE="alphaev67" ;;
2536df26cacSmrg	    "EV6.8CB (21264C)")
2546df26cacSmrg		UNAME_MACHINE="alphaev68" ;;
2556df26cacSmrg	    "EV6.8AL (21264B)")
2566df26cacSmrg		UNAME_MACHINE="alphaev68" ;;
2576df26cacSmrg	    "EV6.8CX (21264D)")
2586df26cacSmrg		UNAME_MACHINE="alphaev68" ;;
2596df26cacSmrg	    "EV6.9A (21264/EV69A)")
2606df26cacSmrg		UNAME_MACHINE="alphaev69" ;;
2616df26cacSmrg	    "EV7 (21364)")
2626df26cacSmrg		UNAME_MACHINE="alphaev7" ;;
2636df26cacSmrg	    "EV7.9 (21364A)")
2646df26cacSmrg		UNAME_MACHINE="alphaev79" ;;
2656df26cacSmrg	esac
2666df26cacSmrg	# A Pn.n version is a patched version.
2676df26cacSmrg	# A Vn.n version is a released version.
2686df26cacSmrg	# A Tn.n version is a released field test version.
2696df26cacSmrg	# A Xn.n version is an unreleased experimental baselevel.
2706df26cacSmrg	# 1.2 uses "1.2" for uname -r.
2716df26cacSmrg	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
2726df26cacSmrg	exit ;;
2736df26cacSmrg    Alpha\ *:Windows_NT*:*)
2746df26cacSmrg	# How do we know it's Interix rather than the generic POSIX subsystem?
2756df26cacSmrg	# Should we change UNAME_MACHINE based on the output of uname instead
2766df26cacSmrg	# of the specific Alpha model?
2776df26cacSmrg	echo alpha-pc-interix
2786df26cacSmrg	exit ;;
2796df26cacSmrg    21064:Windows_NT:50:3)
2806df26cacSmrg	echo alpha-dec-winnt3.5
2816df26cacSmrg	exit ;;
2826df26cacSmrg    Amiga*:UNIX_System_V:4.0:*)
2836df26cacSmrg	echo m68k-unknown-sysv4
2846df26cacSmrg	exit ;;
2856df26cacSmrg    *:[Aa]miga[Oo][Ss]:*:*)
2866df26cacSmrg	echo ${UNAME_MACHINE}-unknown-amigaos
2876df26cacSmrg	exit ;;
2886df26cacSmrg    *:[Mm]orph[Oo][Ss]:*:*)
2896df26cacSmrg	echo ${UNAME_MACHINE}-unknown-morphos
2906df26cacSmrg	exit ;;
2916df26cacSmrg    *:OS/390:*:*)
2926df26cacSmrg	echo i370-ibm-openedition
2936df26cacSmrg	exit ;;
2946df26cacSmrg    *:z/VM:*:*)
2956df26cacSmrg	echo s390-ibm-zvmoe
2966df26cacSmrg	exit ;;
2976df26cacSmrg    *:OS400:*:*)
2986df26cacSmrg        echo powerpc-ibm-os400
2996df26cacSmrg	exit ;;
3006df26cacSmrg    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3016df26cacSmrg	echo arm-acorn-riscix${UNAME_RELEASE}
3026df26cacSmrg	exit ;;
3036df26cacSmrg    arm:riscos:*:*|arm:RISCOS:*:*)
3046df26cacSmrg	echo arm-unknown-riscos
3056df26cacSmrg	exit ;;
3066df26cacSmrg    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
3076df26cacSmrg	echo hppa1.1-hitachi-hiuxmpp
3086df26cacSmrg	exit ;;
3096df26cacSmrg    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
3106df26cacSmrg	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
3116df26cacSmrg	if test "`(/bin/universe) 2>/dev/null`" = att ; then
3126df26cacSmrg		echo pyramid-pyramid-sysv3
3136df26cacSmrg	else
3146df26cacSmrg		echo pyramid-pyramid-bsd
3156df26cacSmrg	fi
3166df26cacSmrg	exit ;;
3176df26cacSmrg    NILE*:*:*:dcosx)
3186df26cacSmrg	echo pyramid-pyramid-svr4
3196df26cacSmrg	exit ;;
3206df26cacSmrg    DRS?6000:unix:4.0:6*)
3216df26cacSmrg	echo sparc-icl-nx6
3226df26cacSmrg	exit ;;
3236df26cacSmrg    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
3246df26cacSmrg	case `/usr/bin/uname -p` in
3256df26cacSmrg	    sparc) echo sparc-icl-nx7; exit ;;
3266df26cacSmrg	esac ;;
3276df26cacSmrg    sun4H:SunOS:5.*:*)
3286df26cacSmrg	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3296df26cacSmrg	exit ;;
3306df26cacSmrg    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
3316df26cacSmrg	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3326df26cacSmrg	exit ;;
33316fd1166Smrg    i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*)
3346df26cacSmrg	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3356df26cacSmrg	exit ;;
3366df26cacSmrg    sun4*:SunOS:6*:*)
3376df26cacSmrg	# According to config.sub, this is the proper way to canonicalize
3386df26cacSmrg	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
3396df26cacSmrg	# it's likely to be more like Solaris than SunOS4.
3406df26cacSmrg	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3416df26cacSmrg	exit ;;
3426df26cacSmrg    sun4*:SunOS:*:*)
3436df26cacSmrg	case "`/usr/bin/arch -k`" in
3446df26cacSmrg	    Series*|S4*)
3456df26cacSmrg		UNAME_RELEASE=`uname -v`
3466df26cacSmrg		;;
3476df26cacSmrg	esac
3486df26cacSmrg	# Japanese Language versions have a version number like `4.1.3-JL'.
3496df26cacSmrg	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
3506df26cacSmrg	exit ;;
3516df26cacSmrg    sun3*:SunOS:*:*)
3526df26cacSmrg	echo m68k-sun-sunos${UNAME_RELEASE}
3536df26cacSmrg	exit ;;
3546df26cacSmrg    sun*:*:4.2BSD:*)
3556df26cacSmrg	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3566df26cacSmrg	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
3576df26cacSmrg	case "`/bin/arch`" in
3586df26cacSmrg	    sun3)
3596df26cacSmrg		echo m68k-sun-sunos${UNAME_RELEASE}
3606df26cacSmrg		;;
3616df26cacSmrg	    sun4)
3626df26cacSmrg		echo sparc-sun-sunos${UNAME_RELEASE}
3636df26cacSmrg		;;
3646df26cacSmrg	esac
3656df26cacSmrg	exit ;;
3666df26cacSmrg    aushp:SunOS:*:*)
3676df26cacSmrg	echo sparc-auspex-sunos${UNAME_RELEASE}
3686df26cacSmrg	exit ;;
3696df26cacSmrg    # The situation for MiNT is a little confusing.  The machine name
3706df26cacSmrg    # can be virtually everything (everything which is not
3716df26cacSmrg    # "atarist" or "atariste" at least should have a processor
3726df26cacSmrg    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
3736df26cacSmrg    # to the lowercase version "mint" (or "freemint").  Finally
3746df26cacSmrg    # the system name "TOS" denotes a system which is actually not
3756df26cacSmrg    # MiNT.  But MiNT is downward compatible to TOS, so this should
3766df26cacSmrg    # be no problem.
3776df26cacSmrg    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
3786df26cacSmrg        echo m68k-atari-mint${UNAME_RELEASE}
3796df26cacSmrg	exit ;;
3806df26cacSmrg    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
3816df26cacSmrg	echo m68k-atari-mint${UNAME_RELEASE}
3826df26cacSmrg        exit ;;
3836df26cacSmrg    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
3846df26cacSmrg        echo m68k-atari-mint${UNAME_RELEASE}
3856df26cacSmrg	exit ;;
3866df26cacSmrg    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
3876df26cacSmrg        echo m68k-milan-mint${UNAME_RELEASE}
3886df26cacSmrg        exit ;;
3896df26cacSmrg    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
3906df26cacSmrg        echo m68k-hades-mint${UNAME_RELEASE}
3916df26cacSmrg        exit ;;
3926df26cacSmrg    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
3936df26cacSmrg        echo m68k-unknown-mint${UNAME_RELEASE}
3946df26cacSmrg        exit ;;
3956df26cacSmrg    m68k:machten:*:*)
3966df26cacSmrg	echo m68k-apple-machten${UNAME_RELEASE}
3976df26cacSmrg	exit ;;
3986df26cacSmrg    powerpc:machten:*:*)
3996df26cacSmrg	echo powerpc-apple-machten${UNAME_RELEASE}
4006df26cacSmrg	exit ;;
4016df26cacSmrg    RISC*:Mach:*:*)
4026df26cacSmrg	echo mips-dec-mach_bsd4.3
4036df26cacSmrg	exit ;;
4046df26cacSmrg    RISC*:ULTRIX:*:*)
4056df26cacSmrg	echo mips-dec-ultrix${UNAME_RELEASE}
4066df26cacSmrg	exit ;;
4076df26cacSmrg    VAX*:ULTRIX*:*:*)
4086df26cacSmrg	echo vax-dec-ultrix${UNAME_RELEASE}
4096df26cacSmrg	exit ;;
4106df26cacSmrg    2020:CLIX:*:* | 2430:CLIX:*:*)
4116df26cacSmrg	echo clipper-intergraph-clix${UNAME_RELEASE}
4126df26cacSmrg	exit ;;
4136df26cacSmrg    mips:*:*:UMIPS | mips:*:*:RISCos)
4146df26cacSmrg	eval $set_cc_for_build
4156df26cacSmrg	sed 's/^	//' << EOF >$dummy.c
4166df26cacSmrg#ifdef __cplusplus
4176df26cacSmrg#include <stdio.h>  /* for printf() prototype */
4186df26cacSmrg	int main (int argc, char *argv[]) {
4196df26cacSmrg#else
4206df26cacSmrg	int main (argc, argv) int argc; char *argv[]; {
4216df26cacSmrg#endif
4226df26cacSmrg	#if defined (host_mips) && defined (MIPSEB)
4236df26cacSmrg	#if defined (SYSTYPE_SYSV)
4246df26cacSmrg	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
4256df26cacSmrg	#endif
4266df26cacSmrg	#if defined (SYSTYPE_SVR4)
4276df26cacSmrg	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
4286df26cacSmrg	#endif
4296df26cacSmrg	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
4306df26cacSmrg	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
4316df26cacSmrg	#endif
4326df26cacSmrg	#endif
4336df26cacSmrg	  exit (-1);
4346df26cacSmrg	}
4356df26cacSmrgEOF
4366df26cacSmrg	$CC_FOR_BUILD -o $dummy $dummy.c &&
4376df26cacSmrg	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
4386df26cacSmrg	  SYSTEM_NAME=`$dummy $dummyarg` &&
4396df26cacSmrg	    { echo "$SYSTEM_NAME"; exit; }
4406df26cacSmrg	echo mips-mips-riscos${UNAME_RELEASE}
4416df26cacSmrg	exit ;;
4426df26cacSmrg    Motorola:PowerMAX_OS:*:*)
4436df26cacSmrg	echo powerpc-motorola-powermax
4446df26cacSmrg	exit ;;
4456df26cacSmrg    Motorola:*:4.3:PL8-*)
4466df26cacSmrg	echo powerpc-harris-powermax
4476df26cacSmrg	exit ;;
4486df26cacSmrg    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
4496df26cacSmrg	echo powerpc-harris-powermax
4506df26cacSmrg	exit ;;
4516df26cacSmrg    Night_Hawk:Power_UNIX:*:*)
4526df26cacSmrg	echo powerpc-harris-powerunix
4536df26cacSmrg	exit ;;
4546df26cacSmrg    m88k:CX/UX:7*:*)
4556df26cacSmrg	echo m88k-harris-cxux7
4566df26cacSmrg	exit ;;
4576df26cacSmrg    m88k:*:4*:R4*)
4586df26cacSmrg	echo m88k-motorola-sysv4
4596df26cacSmrg	exit ;;
4606df26cacSmrg    m88k:*:3*:R3*)
4616df26cacSmrg	echo m88k-motorola-sysv3
4626df26cacSmrg	exit ;;
4636df26cacSmrg    AViiON:dgux:*:*)
4646df26cacSmrg        # DG/UX returns AViiON for all architectures
4656df26cacSmrg        UNAME_PROCESSOR=`/usr/bin/uname -p`
4666df26cacSmrg	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
4676df26cacSmrg	then
4686df26cacSmrg	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
4696df26cacSmrg	       [ ${TARGET_BINARY_INTERFACE}x = x ]
4706df26cacSmrg	    then
4716df26cacSmrg		echo m88k-dg-dgux${UNAME_RELEASE}
4726df26cacSmrg	    else
4736df26cacSmrg		echo m88k-dg-dguxbcs${UNAME_RELEASE}
4746df26cacSmrg	    fi
4756df26cacSmrg	else
4766df26cacSmrg	    echo i586-dg-dgux${UNAME_RELEASE}
4776df26cacSmrg	fi
4786df26cacSmrg 	exit ;;
4796df26cacSmrg    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
4806df26cacSmrg	echo m88k-dolphin-sysv3
4816df26cacSmrg	exit ;;
4826df26cacSmrg    M88*:*:R3*:*)
4836df26cacSmrg	# Delta 88k system running SVR3
4846df26cacSmrg	echo m88k-motorola-sysv3
4856df26cacSmrg	exit ;;
4866df26cacSmrg    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
4876df26cacSmrg	echo m88k-tektronix-sysv3
4886df26cacSmrg	exit ;;
4896df26cacSmrg    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
4906df26cacSmrg	echo m68k-tektronix-bsd
4916df26cacSmrg	exit ;;
4926df26cacSmrg    *:IRIX*:*:*)
4936df26cacSmrg	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
4946df26cacSmrg	exit ;;
4956df26cacSmrg    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
4966df26cacSmrg	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
4976df26cacSmrg	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
4986df26cacSmrg    i*86:AIX:*:*)
4996df26cacSmrg	echo i386-ibm-aix
5006df26cacSmrg	exit ;;
5016df26cacSmrg    ia64:AIX:*:*)
5026df26cacSmrg	if [ -x /usr/bin/oslevel ] ; then
5036df26cacSmrg		IBM_REV=`/usr/bin/oslevel`
5046df26cacSmrg	else
5056df26cacSmrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5066df26cacSmrg	fi
5076df26cacSmrg	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
5086df26cacSmrg	exit ;;
5096df26cacSmrg    *:AIX:2:3)
5106df26cacSmrg	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
5116df26cacSmrg		eval $set_cc_for_build
5126df26cacSmrg		sed 's/^		//' << EOF >$dummy.c
5136df26cacSmrg		#include <sys/systemcfg.h>
5146df26cacSmrg
5156df26cacSmrg		main()
5166df26cacSmrg			{
5176df26cacSmrg			if (!__power_pc())
5186df26cacSmrg				exit(1);
5196df26cacSmrg			puts("powerpc-ibm-aix3.2.5");
5206df26cacSmrg			exit(0);
5216df26cacSmrg			}
5226df26cacSmrgEOF
5236df26cacSmrg		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
5246df26cacSmrg		then
5256df26cacSmrg			echo "$SYSTEM_NAME"
5266df26cacSmrg		else
5276df26cacSmrg			echo rs6000-ibm-aix3.2.5
5286df26cacSmrg		fi
5296df26cacSmrg	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
5306df26cacSmrg		echo rs6000-ibm-aix3.2.4
5316df26cacSmrg	else
5326df26cacSmrg		echo rs6000-ibm-aix3.2
5336df26cacSmrg	fi
5346df26cacSmrg	exit ;;
5356df26cacSmrg    *:AIX:*:[45])
5366df26cacSmrg	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
5376df26cacSmrg	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
5386df26cacSmrg		IBM_ARCH=rs6000
5396df26cacSmrg	else
5406df26cacSmrg		IBM_ARCH=powerpc
5416df26cacSmrg	fi
5426df26cacSmrg	if [ -x /usr/bin/oslevel ] ; then
5436df26cacSmrg		IBM_REV=`/usr/bin/oslevel`
5446df26cacSmrg	else
5456df26cacSmrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
5466df26cacSmrg	fi
5476df26cacSmrg	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
5486df26cacSmrg	exit ;;
5496df26cacSmrg    *:AIX:*:*)
5506df26cacSmrg	echo rs6000-ibm-aix
5516df26cacSmrg	exit ;;
5526df26cacSmrg    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
5536df26cacSmrg	echo romp-ibm-bsd4.4
5546df26cacSmrg	exit ;;
5556df26cacSmrg    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
5566df26cacSmrg	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
5576df26cacSmrg	exit ;;                             # report: romp-ibm BSD 4.3
5586df26cacSmrg    *:BOSX:*:*)
5596df26cacSmrg	echo rs6000-bull-bosx
5606df26cacSmrg	exit ;;
5616df26cacSmrg    DPX/2?00:B.O.S.:*:*)
5626df26cacSmrg	echo m68k-bull-sysv3
5636df26cacSmrg	exit ;;
5646df26cacSmrg    9000/[34]??:4.3bsd:1.*:*)
5656df26cacSmrg	echo m68k-hp-bsd
5666df26cacSmrg	exit ;;
5676df26cacSmrg    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
5686df26cacSmrg	echo m68k-hp-bsd4.4
5696df26cacSmrg	exit ;;
5706df26cacSmrg    9000/[34678]??:HP-UX:*:*)
5716df26cacSmrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
5726df26cacSmrg	case "${UNAME_MACHINE}" in
5736df26cacSmrg	    9000/31? )            HP_ARCH=m68000 ;;
5746df26cacSmrg	    9000/[34]?? )         HP_ARCH=m68k ;;
5756df26cacSmrg	    9000/[678][0-9][0-9])
5766df26cacSmrg		if [ -x /usr/bin/getconf ]; then
5776df26cacSmrg		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
5786df26cacSmrg                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
5796df26cacSmrg                    case "${sc_cpu_version}" in
5806df26cacSmrg                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
5816df26cacSmrg                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
5826df26cacSmrg                      532)                      # CPU_PA_RISC2_0
5836df26cacSmrg                        case "${sc_kernel_bits}" in
5846df26cacSmrg                          32) HP_ARCH="hppa2.0n" ;;
5856df26cacSmrg                          64) HP_ARCH="hppa2.0w" ;;
5866df26cacSmrg			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
5876df26cacSmrg                        esac ;;
5886df26cacSmrg                    esac
5896df26cacSmrg		fi
5906df26cacSmrg		if [ "${HP_ARCH}" = "" ]; then
5916df26cacSmrg		    eval $set_cc_for_build
5926df26cacSmrg		    sed 's/^              //' << EOF >$dummy.c
5936df26cacSmrg
5946df26cacSmrg              #define _HPUX_SOURCE
5956df26cacSmrg              #include <stdlib.h>
5966df26cacSmrg              #include <unistd.h>
5976df26cacSmrg
5986df26cacSmrg              int main ()
5996df26cacSmrg              {
6006df26cacSmrg              #if defined(_SC_KERNEL_BITS)
6016df26cacSmrg                  long bits = sysconf(_SC_KERNEL_BITS);
6026df26cacSmrg              #endif
6036df26cacSmrg                  long cpu  = sysconf (_SC_CPU_VERSION);
6046df26cacSmrg
6056df26cacSmrg                  switch (cpu)
6066df26cacSmrg              	{
6076df26cacSmrg              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
6086df26cacSmrg              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
6096df26cacSmrg              	case CPU_PA_RISC2_0:
6106df26cacSmrg              #if defined(_SC_KERNEL_BITS)
6116df26cacSmrg              	    switch (bits)
6126df26cacSmrg              		{
6136df26cacSmrg              		case 64: puts ("hppa2.0w"); break;
6146df26cacSmrg              		case 32: puts ("hppa2.0n"); break;
6156df26cacSmrg              		default: puts ("hppa2.0"); break;
6166df26cacSmrg              		} break;
6176df26cacSmrg              #else  /* !defined(_SC_KERNEL_BITS) */
6186df26cacSmrg              	    puts ("hppa2.0"); break;
6196df26cacSmrg              #endif
6206df26cacSmrg              	default: puts ("hppa1.0"); break;
6216df26cacSmrg              	}
6226df26cacSmrg                  exit (0);
6236df26cacSmrg              }
6246df26cacSmrgEOF
6256df26cacSmrg		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
6266df26cacSmrg		    test -z "$HP_ARCH" && HP_ARCH=hppa
6276df26cacSmrg		fi ;;
6286df26cacSmrg	esac
6296df26cacSmrg	if [ ${HP_ARCH} = "hppa2.0w" ]
6306df26cacSmrg	then
6316df26cacSmrg	    eval $set_cc_for_build
6326df26cacSmrg
6336df26cacSmrg	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
6346df26cacSmrg	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
6356df26cacSmrg	    # generating 64-bit code.  GNU and HP use different nomenclature:
6366df26cacSmrg	    #
6376df26cacSmrg	    # $ CC_FOR_BUILD=cc ./config.guess
6386df26cacSmrg	    # => hppa2.0w-hp-hpux11.23
6396df26cacSmrg	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
6406df26cacSmrg	    # => hppa64-hp-hpux11.23
6416df26cacSmrg
6426df26cacSmrg	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
6436df26cacSmrg		grep __LP64__ >/dev/null
6446df26cacSmrg	    then
6456df26cacSmrg		HP_ARCH="hppa2.0w"
6466df26cacSmrg	    else
6476df26cacSmrg		HP_ARCH="hppa64"
6486df26cacSmrg	    fi
6496df26cacSmrg	fi
6506df26cacSmrg	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
6516df26cacSmrg	exit ;;
6526df26cacSmrg    ia64:HP-UX:*:*)
6536df26cacSmrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
6546df26cacSmrg	echo ia64-hp-hpux${HPUX_REV}
6556df26cacSmrg	exit ;;
6566df26cacSmrg    3050*:HI-UX:*:*)
6576df26cacSmrg	eval $set_cc_for_build
6586df26cacSmrg	sed 's/^	//' << EOF >$dummy.c
6596df26cacSmrg	#include <unistd.h>
6606df26cacSmrg	int
6616df26cacSmrg	main ()
6626df26cacSmrg	{
6636df26cacSmrg	  long cpu = sysconf (_SC_CPU_VERSION);
6646df26cacSmrg	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
6656df26cacSmrg	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
6666df26cacSmrg	     results, however.  */
6676df26cacSmrg	  if (CPU_IS_PA_RISC (cpu))
6686df26cacSmrg	    {
6696df26cacSmrg	      switch (cpu)
6706df26cacSmrg		{
6716df26cacSmrg		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
6726df26cacSmrg		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
6736df26cacSmrg		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
6746df26cacSmrg		  default: puts ("hppa-hitachi-hiuxwe2"); break;
6756df26cacSmrg		}
6766df26cacSmrg	    }
6776df26cacSmrg	  else if (CPU_IS_HP_MC68K (cpu))
6786df26cacSmrg	    puts ("m68k-hitachi-hiuxwe2");
6796df26cacSmrg	  else puts ("unknown-hitachi-hiuxwe2");
6806df26cacSmrg	  exit (0);
6816df26cacSmrg	}
6826df26cacSmrgEOF
6836df26cacSmrg	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
6846df26cacSmrg		{ echo "$SYSTEM_NAME"; exit; }
6856df26cacSmrg	echo unknown-hitachi-hiuxwe2
6866df26cacSmrg	exit ;;
6876df26cacSmrg    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
6886df26cacSmrg	echo hppa1.1-hp-bsd
6896df26cacSmrg	exit ;;
6906df26cacSmrg    9000/8??:4.3bsd:*:*)
6916df26cacSmrg	echo hppa1.0-hp-bsd
6926df26cacSmrg	exit ;;
6936df26cacSmrg    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
6946df26cacSmrg	echo hppa1.0-hp-mpeix
6956df26cacSmrg	exit ;;
6966df26cacSmrg    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
6976df26cacSmrg	echo hppa1.1-hp-osf
6986df26cacSmrg	exit ;;
6996df26cacSmrg    hp8??:OSF1:*:*)
7006df26cacSmrg	echo hppa1.0-hp-osf
7016df26cacSmrg	exit ;;
7026df26cacSmrg    i*86:OSF1:*:*)
7036df26cacSmrg	if [ -x /usr/sbin/sysversion ] ; then
7046df26cacSmrg	    echo ${UNAME_MACHINE}-unknown-osf1mk
7056df26cacSmrg	else
7066df26cacSmrg	    echo ${UNAME_MACHINE}-unknown-osf1
7076df26cacSmrg	fi
7086df26cacSmrg	exit ;;
7096df26cacSmrg    parisc*:Lites*:*:*)
7106df26cacSmrg	echo hppa1.1-hp-lites
7116df26cacSmrg	exit ;;
7126df26cacSmrg    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
7136df26cacSmrg	echo c1-convex-bsd
7146df26cacSmrg        exit ;;
7156df26cacSmrg    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
7166df26cacSmrg	if getsysinfo -f scalar_acc
7176df26cacSmrg	then echo c32-convex-bsd
7186df26cacSmrg	else echo c2-convex-bsd
7196df26cacSmrg	fi
7206df26cacSmrg        exit ;;
7216df26cacSmrg    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
7226df26cacSmrg	echo c34-convex-bsd
7236df26cacSmrg        exit ;;
7246df26cacSmrg    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
7256df26cacSmrg	echo c38-convex-bsd
7266df26cacSmrg        exit ;;
7276df26cacSmrg    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
7286df26cacSmrg	echo c4-convex-bsd
7296df26cacSmrg        exit ;;
7306df26cacSmrg    CRAY*Y-MP:*:*:*)
7316df26cacSmrg	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7326df26cacSmrg	exit ;;
7336df26cacSmrg    CRAY*[A-Z]90:*:*:*)
7346df26cacSmrg	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
7356df26cacSmrg	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
7366df26cacSmrg	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
7376df26cacSmrg	      -e 's/\.[^.]*$/.X/'
7386df26cacSmrg	exit ;;
7396df26cacSmrg    CRAY*TS:*:*:*)
7406df26cacSmrg	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7416df26cacSmrg	exit ;;
7426df26cacSmrg    CRAY*T3E:*:*:*)
7436df26cacSmrg	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7446df26cacSmrg	exit ;;
7456df26cacSmrg    CRAY*SV1:*:*:*)
7466df26cacSmrg	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7476df26cacSmrg	exit ;;
7486df26cacSmrg    *:UNICOS/mp:*:*)
7496df26cacSmrg	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7506df26cacSmrg	exit ;;
7516df26cacSmrg    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
7526df26cacSmrg	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7536df26cacSmrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7546df26cacSmrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
7556df26cacSmrg        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7566df26cacSmrg        exit ;;
7576df26cacSmrg    5000:UNIX_System_V:4.*:*)
7586df26cacSmrg        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7596df26cacSmrg        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
7606df26cacSmrg        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7616df26cacSmrg	exit ;;
7626df26cacSmrg    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
7636df26cacSmrg	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
7646df26cacSmrg	exit ;;
7656df26cacSmrg    sparc*:BSD/OS:*:*)
7666df26cacSmrg	echo sparc-unknown-bsdi${UNAME_RELEASE}
7676df26cacSmrg	exit ;;
7686df26cacSmrg    *:BSD/OS:*:*)
7696df26cacSmrg	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
7706df26cacSmrg	exit ;;
7716df26cacSmrg    *:FreeBSD:*:*)
7726df26cacSmrg	case ${UNAME_MACHINE} in
7736df26cacSmrg	    pc98)
7746df26cacSmrg		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7756df26cacSmrg	    amd64)
7766df26cacSmrg		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7776df26cacSmrg	    *)
7786df26cacSmrg		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7796df26cacSmrg	esac
7806df26cacSmrg	exit ;;
7816df26cacSmrg    i*:CYGWIN*:*)
7826df26cacSmrg	echo ${UNAME_MACHINE}-pc-cygwin
7836df26cacSmrg	exit ;;
78416fd1166Smrg    *:MINGW*:*)
7856df26cacSmrg	echo ${UNAME_MACHINE}-pc-mingw32
7866df26cacSmrg	exit ;;
7876df26cacSmrg    i*:windows32*:*)
7886df26cacSmrg    	# uname -m includes "-pc" on this system.
7896df26cacSmrg    	echo ${UNAME_MACHINE}-mingw32
7906df26cacSmrg	exit ;;
7916df26cacSmrg    i*:PW*:*)
7926df26cacSmrg	echo ${UNAME_MACHINE}-pc-pw32
7936df26cacSmrg	exit ;;
79416fd1166Smrg    *:Interix*:[3456]*)
79516fd1166Smrg    	case ${UNAME_MACHINE} in
79616fd1166Smrg	    x86) 
79716fd1166Smrg		echo i586-pc-interix${UNAME_RELEASE}
79816fd1166Smrg		exit ;;
79916fd1166Smrg	    EM64T | authenticamd)
80016fd1166Smrg		echo x86_64-unknown-interix${UNAME_RELEASE}
80116fd1166Smrg		exit ;;
80216fd1166Smrg	esac ;;
8036df26cacSmrg    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
8046df26cacSmrg	echo i${UNAME_MACHINE}-pc-mks
8056df26cacSmrg	exit ;;
8066df26cacSmrg    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
8076df26cacSmrg	# How do we know it's Interix rather than the generic POSIX subsystem?
8086df26cacSmrg	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
8096df26cacSmrg	# UNAME_MACHINE based on the output of uname instead of i386?
8106df26cacSmrg	echo i586-pc-interix
8116df26cacSmrg	exit ;;
8126df26cacSmrg    i*:UWIN*:*)
8136df26cacSmrg	echo ${UNAME_MACHINE}-pc-uwin
8146df26cacSmrg	exit ;;
8156df26cacSmrg    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
8166df26cacSmrg	echo x86_64-unknown-cygwin
8176df26cacSmrg	exit ;;
8186df26cacSmrg    p*:CYGWIN*:*)
8196df26cacSmrg	echo powerpcle-unknown-cygwin
8206df26cacSmrg	exit ;;
8216df26cacSmrg    prep*:SunOS:5.*:*)
8226df26cacSmrg	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
8236df26cacSmrg	exit ;;
8246df26cacSmrg    *:GNU:*:*)
8256df26cacSmrg	# the GNU system
8266df26cacSmrg	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
8276df26cacSmrg	exit ;;
8286df26cacSmrg    *:GNU/*:*:*)
8296df26cacSmrg	# other systems with GNU libc and userland
8306df26cacSmrg	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
8316df26cacSmrg	exit ;;
8326df26cacSmrg    i*86:Minix:*:*)
8336df26cacSmrg	echo ${UNAME_MACHINE}-pc-minix
8346df26cacSmrg	exit ;;
8356df26cacSmrg    arm*:Linux:*:*)
8366df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8376df26cacSmrg	exit ;;
8386df26cacSmrg    avr32*:Linux:*:*)
8396df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8406df26cacSmrg	exit ;;
8416df26cacSmrg    cris:Linux:*:*)
8426df26cacSmrg	echo cris-axis-linux-gnu
8436df26cacSmrg	exit ;;
8446df26cacSmrg    crisv32:Linux:*:*)
8456df26cacSmrg	echo crisv32-axis-linux-gnu
8466df26cacSmrg	exit ;;
8476df26cacSmrg    frv:Linux:*:*)
8486df26cacSmrg    	echo frv-unknown-linux-gnu
8496df26cacSmrg	exit ;;
8506df26cacSmrg    ia64:Linux:*:*)
8516df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8526df26cacSmrg	exit ;;
8536df26cacSmrg    m32r*:Linux:*:*)
8546df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8556df26cacSmrg	exit ;;
8566df26cacSmrg    m68*:Linux:*:*)
8576df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
8586df26cacSmrg	exit ;;
8596df26cacSmrg    mips:Linux:*:*)
8606df26cacSmrg	eval $set_cc_for_build
8616df26cacSmrg	sed 's/^	//' << EOF >$dummy.c
8626df26cacSmrg	#undef CPU
8636df26cacSmrg	#undef mips
8646df26cacSmrg	#undef mipsel
8656df26cacSmrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8666df26cacSmrg	CPU=mipsel
8676df26cacSmrg	#else
8686df26cacSmrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8696df26cacSmrg	CPU=mips
8706df26cacSmrg	#else
8716df26cacSmrg	CPU=
8726df26cacSmrg	#endif
8736df26cacSmrg	#endif
8746df26cacSmrgEOF
8756df26cacSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8766df26cacSmrg	    /^CPU/{
8776df26cacSmrg		s: ::g
8786df26cacSmrg		p
8796df26cacSmrg	    }'`"
8806df26cacSmrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
8816df26cacSmrg	;;
8826df26cacSmrg    mips64:Linux:*:*)
8836df26cacSmrg	eval $set_cc_for_build
8846df26cacSmrg	sed 's/^	//' << EOF >$dummy.c
8856df26cacSmrg	#undef CPU
8866df26cacSmrg	#undef mips64
8876df26cacSmrg	#undef mips64el
8886df26cacSmrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
8896df26cacSmrg	CPU=mips64el
8906df26cacSmrg	#else
8916df26cacSmrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
8926df26cacSmrg	CPU=mips64
8936df26cacSmrg	#else
8946df26cacSmrg	CPU=
8956df26cacSmrg	#endif
8966df26cacSmrg	#endif
8976df26cacSmrgEOF
8986df26cacSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
8996df26cacSmrg	    /^CPU/{
9006df26cacSmrg		s: ::g
9016df26cacSmrg		p
9026df26cacSmrg	    }'`"
9036df26cacSmrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
9046df26cacSmrg	;;
9056df26cacSmrg    or32:Linux:*:*)
9066df26cacSmrg	echo or32-unknown-linux-gnu
9076df26cacSmrg	exit ;;
9086df26cacSmrg    ppc:Linux:*:*)
9096df26cacSmrg	echo powerpc-unknown-linux-gnu
9106df26cacSmrg	exit ;;
9116df26cacSmrg    ppc64:Linux:*:*)
9126df26cacSmrg	echo powerpc64-unknown-linux-gnu
9136df26cacSmrg	exit ;;
9146df26cacSmrg    alpha:Linux:*:*)
9156df26cacSmrg	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
9166df26cacSmrg	  EV5)   UNAME_MACHINE=alphaev5 ;;
9176df26cacSmrg	  EV56)  UNAME_MACHINE=alphaev56 ;;
9186df26cacSmrg	  PCA56) UNAME_MACHINE=alphapca56 ;;
9196df26cacSmrg	  PCA57) UNAME_MACHINE=alphapca56 ;;
9206df26cacSmrg	  EV6)   UNAME_MACHINE=alphaev6 ;;
9216df26cacSmrg	  EV67)  UNAME_MACHINE=alphaev67 ;;
9226df26cacSmrg	  EV68*) UNAME_MACHINE=alphaev68 ;;
9236df26cacSmrg        esac
9246df26cacSmrg	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
9256df26cacSmrg	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
9266df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
9276df26cacSmrg	exit ;;
9286df26cacSmrg    parisc:Linux:*:* | hppa:Linux:*:*)
9296df26cacSmrg	# Look for CPU level
9306df26cacSmrg	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
9316df26cacSmrg	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
9326df26cacSmrg	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
9336df26cacSmrg	  *)    echo hppa-unknown-linux-gnu ;;
9346df26cacSmrg	esac
9356df26cacSmrg	exit ;;
9366df26cacSmrg    parisc64:Linux:*:* | hppa64:Linux:*:*)
9376df26cacSmrg	echo hppa64-unknown-linux-gnu
9386df26cacSmrg	exit ;;
9396df26cacSmrg    s390:Linux:*:* | s390x:Linux:*:*)
9406df26cacSmrg	echo ${UNAME_MACHINE}-ibm-linux
9416df26cacSmrg	exit ;;
9426df26cacSmrg    sh64*:Linux:*:*)
9436df26cacSmrg    	echo ${UNAME_MACHINE}-unknown-linux-gnu
9446df26cacSmrg	exit ;;
9456df26cacSmrg    sh*:Linux:*:*)
9466df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
9476df26cacSmrg	exit ;;
9486df26cacSmrg    sparc:Linux:*:* | sparc64:Linux:*:*)
9496df26cacSmrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
9506df26cacSmrg	exit ;;
9516df26cacSmrg    vax:Linux:*:*)
9526df26cacSmrg	echo ${UNAME_MACHINE}-dec-linux-gnu
9536df26cacSmrg	exit ;;
9546df26cacSmrg    x86_64:Linux:*:*)
9556df26cacSmrg	echo x86_64-unknown-linux-gnu
9566df26cacSmrg	exit ;;
95716fd1166Smrg    xtensa:Linux:*:*)
95816fd1166Smrg    	echo xtensa-unknown-linux-gnu
95916fd1166Smrg	exit ;;
9606df26cacSmrg    i*86:Linux:*:*)
9616df26cacSmrg	# The BFD linker knows what the default object file format is, so
9626df26cacSmrg	# first see if it will tell us. cd to the root directory to prevent
9636df26cacSmrg	# problems with other programs or directories called `ld' in the path.
9646df26cacSmrg	# Set LC_ALL=C to ensure ld outputs messages in English.
9656df26cacSmrg	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
9666df26cacSmrg			 | sed -ne '/supported targets:/!d
9676df26cacSmrg				    s/[ 	][ 	]*/ /g
9686df26cacSmrg				    s/.*supported targets: *//
9696df26cacSmrg				    s/ .*//
9706df26cacSmrg				    p'`
9716df26cacSmrg        case "$ld_supported_targets" in
9726df26cacSmrg	  elf32-i386)
9736df26cacSmrg		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
9746df26cacSmrg		;;
9756df26cacSmrg	  a.out-i386-linux)
9766df26cacSmrg		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
9776df26cacSmrg		exit ;;
9786df26cacSmrg	  coff-i386)
9796df26cacSmrg		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
9806df26cacSmrg		exit ;;
9816df26cacSmrg	  "")
9826df26cacSmrg		# Either a pre-BFD a.out linker (linux-gnuoldld) or
9836df26cacSmrg		# one that does not give us useful --help.
9846df26cacSmrg		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
9856df26cacSmrg		exit ;;
9866df26cacSmrg	esac
9876df26cacSmrg	# Determine whether the default compiler is a.out or elf
9886df26cacSmrg	eval $set_cc_for_build
9896df26cacSmrg	sed 's/^	//' << EOF >$dummy.c
9906df26cacSmrg	#include <features.h>
9916df26cacSmrg	#ifdef __ELF__
9926df26cacSmrg	# ifdef __GLIBC__
9936df26cacSmrg	#  if __GLIBC__ >= 2
9946df26cacSmrg	LIBC=gnu
9956df26cacSmrg	#  else
9966df26cacSmrg	LIBC=gnulibc1
9976df26cacSmrg	#  endif
9986df26cacSmrg	# else
9996df26cacSmrg	LIBC=gnulibc1
10006df26cacSmrg	# endif
10016df26cacSmrg	#else
10026df26cacSmrg	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
10036df26cacSmrg	LIBC=gnu
10046df26cacSmrg	#else
10056df26cacSmrg	LIBC=gnuaout
10066df26cacSmrg	#endif
10076df26cacSmrg	#endif
10086df26cacSmrg	#ifdef __dietlibc__
10096df26cacSmrg	LIBC=dietlibc
10106df26cacSmrg	#endif
10116df26cacSmrgEOF
10126df26cacSmrg	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
10136df26cacSmrg	    /^LIBC/{
10146df26cacSmrg		s: ::g
10156df26cacSmrg		p
10166df26cacSmrg	    }'`"
10176df26cacSmrg	test x"${LIBC}" != x && {
10186df26cacSmrg		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
10196df26cacSmrg		exit
10206df26cacSmrg	}
10216df26cacSmrg	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
10226df26cacSmrg	;;
10236df26cacSmrg    i*86:DYNIX/ptx:4*:*)
10246df26cacSmrg	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
10256df26cacSmrg	# earlier versions are messed up and put the nodename in both
10266df26cacSmrg	# sysname and nodename.
10276df26cacSmrg	echo i386-sequent-sysv4
10286df26cacSmrg	exit ;;
10296df26cacSmrg    i*86:UNIX_SV:4.2MP:2.*)
10306df26cacSmrg        # Unixware is an offshoot of SVR4, but it has its own version
10316df26cacSmrg        # number series starting with 2...
10326df26cacSmrg        # I am not positive that other SVR4 systems won't match this,
10336df26cacSmrg	# I just have to hope.  -- rms.
10346df26cacSmrg        # Use sysv4.2uw... so that sysv4* matches it.
10356df26cacSmrg	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
10366df26cacSmrg	exit ;;
10376df26cacSmrg    i*86:OS/2:*:*)
10386df26cacSmrg	# If we were able to find `uname', then EMX Unix compatibility
10396df26cacSmrg	# is probably installed.
10406df26cacSmrg	echo ${UNAME_MACHINE}-pc-os2-emx
10416df26cacSmrg	exit ;;
10426df26cacSmrg    i*86:XTS-300:*:STOP)
10436df26cacSmrg	echo ${UNAME_MACHINE}-unknown-stop
10446df26cacSmrg	exit ;;
10456df26cacSmrg    i*86:atheos:*:*)
10466df26cacSmrg	echo ${UNAME_MACHINE}-unknown-atheos
10476df26cacSmrg	exit ;;
10486df26cacSmrg    i*86:syllable:*:*)
10496df26cacSmrg	echo ${UNAME_MACHINE}-pc-syllable
10506df26cacSmrg	exit ;;
10516df26cacSmrg    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
10526df26cacSmrg	echo i386-unknown-lynxos${UNAME_RELEASE}
10536df26cacSmrg	exit ;;
10546df26cacSmrg    i*86:*DOS:*:*)
10556df26cacSmrg	echo ${UNAME_MACHINE}-pc-msdosdjgpp
10566df26cacSmrg	exit ;;
10576df26cacSmrg    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
10586df26cacSmrg	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
10596df26cacSmrg	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
10606df26cacSmrg		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
10616df26cacSmrg	else
10626df26cacSmrg		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
10636df26cacSmrg	fi
10646df26cacSmrg	exit ;;
10656df26cacSmrg    i*86:*:5:[678]*)
10666df26cacSmrg    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
10676df26cacSmrg	case `/bin/uname -X | grep "^Machine"` in
10686df26cacSmrg	    *486*)	     UNAME_MACHINE=i486 ;;
10696df26cacSmrg	    *Pentium)	     UNAME_MACHINE=i586 ;;
10706df26cacSmrg	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
10716df26cacSmrg	esac
10726df26cacSmrg	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
10736df26cacSmrg	exit ;;
10746df26cacSmrg    i*86:*:3.2:*)
10756df26cacSmrg	if test -f /usr/options/cb.name; then
10766df26cacSmrg		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
10776df26cacSmrg		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
10786df26cacSmrg	elif /bin/uname -X 2>/dev/null >/dev/null ; then
10796df26cacSmrg		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
10806df26cacSmrg		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
10816df26cacSmrg		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
10826df26cacSmrg			&& UNAME_MACHINE=i586
10836df26cacSmrg		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
10846df26cacSmrg			&& UNAME_MACHINE=i686
10856df26cacSmrg		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
10866df26cacSmrg			&& UNAME_MACHINE=i686
10876df26cacSmrg		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
10886df26cacSmrg	else
10896df26cacSmrg		echo ${UNAME_MACHINE}-pc-sysv32
10906df26cacSmrg	fi
10916df26cacSmrg	exit ;;
10926df26cacSmrg    pc:*:*:*)
10936df26cacSmrg	# Left here for compatibility:
10946df26cacSmrg        # uname -m prints for DJGPP always 'pc', but it prints nothing about
10956df26cacSmrg        # the processor, so we play safe by assuming i386.
10966df26cacSmrg	echo i386-pc-msdosdjgpp
10976df26cacSmrg        exit ;;
10986df26cacSmrg    Intel:Mach:3*:*)
10996df26cacSmrg	echo i386-pc-mach3
11006df26cacSmrg	exit ;;
11016df26cacSmrg    paragon:*:*:*)
11026df26cacSmrg	echo i860-intel-osf1
11036df26cacSmrg	exit ;;
11046df26cacSmrg    i860:*:4.*:*) # i860-SVR4
11056df26cacSmrg	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
11066df26cacSmrg	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
11076df26cacSmrg	else # Add other i860-SVR4 vendors below as they are discovered.
11086df26cacSmrg	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
11096df26cacSmrg	fi
11106df26cacSmrg	exit ;;
11116df26cacSmrg    mini*:CTIX:SYS*5:*)
11126df26cacSmrg	# "miniframe"
11136df26cacSmrg	echo m68010-convergent-sysv
11146df26cacSmrg	exit ;;
11156df26cacSmrg    mc68k:UNIX:SYSTEM5:3.51m)
11166df26cacSmrg	echo m68k-convergent-sysv
11176df26cacSmrg	exit ;;
11186df26cacSmrg    M680?0:D-NIX:5.3:*)
11196df26cacSmrg	echo m68k-diab-dnix
11206df26cacSmrg	exit ;;
11216df26cacSmrg    M68*:*:R3V[5678]*:*)
11226df26cacSmrg	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
11236df26cacSmrg    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)
11246df26cacSmrg	OS_REL=''
11256df26cacSmrg	test -r /etc/.relid \
11266df26cacSmrg	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11276df26cacSmrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11286df26cacSmrg	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
11296df26cacSmrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11306df26cacSmrg	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
11316df26cacSmrg    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
11326df26cacSmrg        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11336df26cacSmrg          && { echo i486-ncr-sysv4; exit; } ;;
11346df26cacSmrg    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
11356df26cacSmrg	echo m68k-unknown-lynxos${UNAME_RELEASE}
11366df26cacSmrg	exit ;;
11376df26cacSmrg    mc68030:UNIX_System_V:4.*:*)
11386df26cacSmrg	echo m68k-atari-sysv4
11396df26cacSmrg	exit ;;
11406df26cacSmrg    TSUNAMI:LynxOS:2.*:*)
11416df26cacSmrg	echo sparc-unknown-lynxos${UNAME_RELEASE}
11426df26cacSmrg	exit ;;
11436df26cacSmrg    rs6000:LynxOS:2.*:*)
11446df26cacSmrg	echo rs6000-unknown-lynxos${UNAME_RELEASE}
11456df26cacSmrg	exit ;;
11466df26cacSmrg    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
11476df26cacSmrg	echo powerpc-unknown-lynxos${UNAME_RELEASE}
11486df26cacSmrg	exit ;;
11496df26cacSmrg    SM[BE]S:UNIX_SV:*:*)
11506df26cacSmrg	echo mips-dde-sysv${UNAME_RELEASE}
11516df26cacSmrg	exit ;;
11526df26cacSmrg    RM*:ReliantUNIX-*:*:*)
11536df26cacSmrg	echo mips-sni-sysv4
11546df26cacSmrg	exit ;;
11556df26cacSmrg    RM*:SINIX-*:*:*)
11566df26cacSmrg	echo mips-sni-sysv4
11576df26cacSmrg	exit ;;
11586df26cacSmrg    *:SINIX-*:*:*)
11596df26cacSmrg	if uname -p 2>/dev/null >/dev/null ; then
11606df26cacSmrg		UNAME_MACHINE=`(uname -p) 2>/dev/null`
11616df26cacSmrg		echo ${UNAME_MACHINE}-sni-sysv4
11626df26cacSmrg	else
11636df26cacSmrg		echo ns32k-sni-sysv
11646df26cacSmrg	fi
11656df26cacSmrg	exit ;;
11666df26cacSmrg    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
11676df26cacSmrg                      # says <Richard.M.Bartel@ccMail.Census.GOV>
11686df26cacSmrg        echo i586-unisys-sysv4
11696df26cacSmrg        exit ;;
11706df26cacSmrg    *:UNIX_System_V:4*:FTX*)
11716df26cacSmrg	# From Gerald Hewes <hewes@openmarket.com>.
11726df26cacSmrg	# How about differentiating between stratus architectures? -djm
11736df26cacSmrg	echo hppa1.1-stratus-sysv4
11746df26cacSmrg	exit ;;
11756df26cacSmrg    *:*:*:FTX*)
11766df26cacSmrg	# From seanf@swdc.stratus.com.
11776df26cacSmrg	echo i860-stratus-sysv4
11786df26cacSmrg	exit ;;
11796df26cacSmrg    i*86:VOS:*:*)
11806df26cacSmrg	# From Paul.Green@stratus.com.
11816df26cacSmrg	echo ${UNAME_MACHINE}-stratus-vos
11826df26cacSmrg	exit ;;
11836df26cacSmrg    *:VOS:*:*)
11846df26cacSmrg	# From Paul.Green@stratus.com.
11856df26cacSmrg	echo hppa1.1-stratus-vos
11866df26cacSmrg	exit ;;
11876df26cacSmrg    mc68*:A/UX:*:*)
11886df26cacSmrg	echo m68k-apple-aux${UNAME_RELEASE}
11896df26cacSmrg	exit ;;
11906df26cacSmrg    news*:NEWS-OS:6*:*)
11916df26cacSmrg	echo mips-sony-newsos6
11926df26cacSmrg	exit ;;
11936df26cacSmrg    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
11946df26cacSmrg	if [ -d /usr/nec ]; then
11956df26cacSmrg	        echo mips-nec-sysv${UNAME_RELEASE}
11966df26cacSmrg	else
11976df26cacSmrg	        echo mips-unknown-sysv${UNAME_RELEASE}
11986df26cacSmrg	fi
11996df26cacSmrg        exit ;;
12006df26cacSmrg    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
12016df26cacSmrg	echo powerpc-be-beos
12026df26cacSmrg	exit ;;
12036df26cacSmrg    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
12046df26cacSmrg	echo powerpc-apple-beos
12056df26cacSmrg	exit ;;
12066df26cacSmrg    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
12076df26cacSmrg	echo i586-pc-beos
12086df26cacSmrg	exit ;;
12096df26cacSmrg    SX-4:SUPER-UX:*:*)
12106df26cacSmrg	echo sx4-nec-superux${UNAME_RELEASE}
12116df26cacSmrg	exit ;;
12126df26cacSmrg    SX-5:SUPER-UX:*:*)
12136df26cacSmrg	echo sx5-nec-superux${UNAME_RELEASE}
12146df26cacSmrg	exit ;;
12156df26cacSmrg    SX-6:SUPER-UX:*:*)
12166df26cacSmrg	echo sx6-nec-superux${UNAME_RELEASE}
12176df26cacSmrg	exit ;;
121816fd1166Smrg    SX-7:SUPER-UX:*:*)
121916fd1166Smrg	echo sx7-nec-superux${UNAME_RELEASE}
122016fd1166Smrg	exit ;;
122116fd1166Smrg    SX-8:SUPER-UX:*:*)
122216fd1166Smrg	echo sx8-nec-superux${UNAME_RELEASE}
122316fd1166Smrg	exit ;;
122416fd1166Smrg    SX-8R:SUPER-UX:*:*)
122516fd1166Smrg	echo sx8r-nec-superux${UNAME_RELEASE}
122616fd1166Smrg	exit ;;
12276df26cacSmrg    Power*:Rhapsody:*:*)
12286df26cacSmrg	echo powerpc-apple-rhapsody${UNAME_RELEASE}
12296df26cacSmrg	exit ;;
12306df26cacSmrg    *:Rhapsody:*:*)
12316df26cacSmrg	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
12326df26cacSmrg	exit ;;
12336df26cacSmrg    *:Darwin:*:*)
12346df26cacSmrg	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
12356df26cacSmrg	case $UNAME_PROCESSOR in
12366df26cacSmrg	    unknown) UNAME_PROCESSOR=powerpc ;;
12376df26cacSmrg	esac
12386df26cacSmrg	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
12396df26cacSmrg	exit ;;
12406df26cacSmrg    *:procnto*:*:* | *:QNX:[0123456789]*:*)
12416df26cacSmrg	UNAME_PROCESSOR=`uname -p`
12426df26cacSmrg	if test "$UNAME_PROCESSOR" = "x86"; then
12436df26cacSmrg		UNAME_PROCESSOR=i386
12446df26cacSmrg		UNAME_MACHINE=pc
12456df26cacSmrg	fi
12466df26cacSmrg	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
12476df26cacSmrg	exit ;;
12486df26cacSmrg    *:QNX:*:4*)
12496df26cacSmrg	echo i386-pc-qnx
12506df26cacSmrg	exit ;;
12516df26cacSmrg    NSE-?:NONSTOP_KERNEL:*:*)
12526df26cacSmrg	echo nse-tandem-nsk${UNAME_RELEASE}
12536df26cacSmrg	exit ;;
12546df26cacSmrg    NSR-?:NONSTOP_KERNEL:*:*)
12556df26cacSmrg	echo nsr-tandem-nsk${UNAME_RELEASE}
12566df26cacSmrg	exit ;;
12576df26cacSmrg    *:NonStop-UX:*:*)
12586df26cacSmrg	echo mips-compaq-nonstopux
12596df26cacSmrg	exit ;;
12606df26cacSmrg    BS2000:POSIX*:*:*)
12616df26cacSmrg	echo bs2000-siemens-sysv
12626df26cacSmrg	exit ;;
12636df26cacSmrg    DS/*:UNIX_System_V:*:*)
12646df26cacSmrg	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
12656df26cacSmrg	exit ;;
12666df26cacSmrg    *:Plan9:*:*)
12676df26cacSmrg	# "uname -m" is not consistent, so use $cputype instead. 386
12686df26cacSmrg	# is converted to i386 for consistency with other x86
12696df26cacSmrg	# operating systems.
12706df26cacSmrg	if test "$cputype" = "386"; then
12716df26cacSmrg	    UNAME_MACHINE=i386
12726df26cacSmrg	else
12736df26cacSmrg	    UNAME_MACHINE="$cputype"
12746df26cacSmrg	fi
12756df26cacSmrg	echo ${UNAME_MACHINE}-unknown-plan9
12766df26cacSmrg	exit ;;
12776df26cacSmrg    *:TOPS-10:*:*)
12786df26cacSmrg	echo pdp10-unknown-tops10
12796df26cacSmrg	exit ;;
12806df26cacSmrg    *:TENEX:*:*)
12816df26cacSmrg	echo pdp10-unknown-tenex
12826df26cacSmrg	exit ;;
12836df26cacSmrg    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
12846df26cacSmrg	echo pdp10-dec-tops20
12856df26cacSmrg	exit ;;
12866df26cacSmrg    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
12876df26cacSmrg	echo pdp10-xkl-tops20
12886df26cacSmrg	exit ;;
12896df26cacSmrg    *:TOPS-20:*:*)
12906df26cacSmrg	echo pdp10-unknown-tops20
12916df26cacSmrg	exit ;;
12926df26cacSmrg    *:ITS:*:*)
12936df26cacSmrg	echo pdp10-unknown-its
12946df26cacSmrg	exit ;;
12956df26cacSmrg    SEI:*:*:SEIUX)
12966df26cacSmrg        echo mips-sei-seiux${UNAME_RELEASE}
12976df26cacSmrg	exit ;;
12986df26cacSmrg    *:DragonFly:*:*)
12996df26cacSmrg	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
13006df26cacSmrg	exit ;;
13016df26cacSmrg    *:*VMS:*:*)
13026df26cacSmrg    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
13036df26cacSmrg	case "${UNAME_MACHINE}" in
13046df26cacSmrg	    A*) echo alpha-dec-vms ; exit ;;
13056df26cacSmrg	    I*) echo ia64-dec-vms ; exit ;;
13066df26cacSmrg	    V*) echo vax-dec-vms ; exit ;;
13076df26cacSmrg	esac ;;
13086df26cacSmrg    *:XENIX:*:SysV)
13096df26cacSmrg	echo i386-pc-xenix
13106df26cacSmrg	exit ;;
13116df26cacSmrg    i*86:skyos:*:*)
13126df26cacSmrg	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
13136df26cacSmrg	exit ;;
13146df26cacSmrg    i*86:rdos:*:*)
13156df26cacSmrg	echo ${UNAME_MACHINE}-pc-rdos
13166df26cacSmrg	exit ;;
13176df26cacSmrgesac
13186df26cacSmrg
13196df26cacSmrg#echo '(No uname command or uname output not recognized.)' 1>&2
13206df26cacSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
13216df26cacSmrg
13226df26cacSmrgeval $set_cc_for_build
13236df26cacSmrgcat >$dummy.c <<EOF
13246df26cacSmrg#ifdef _SEQUENT_
13256df26cacSmrg# include <sys/types.h>
13266df26cacSmrg# include <sys/utsname.h>
13276df26cacSmrg#endif
13286df26cacSmrgmain ()
13296df26cacSmrg{
13306df26cacSmrg#if defined (sony)
13316df26cacSmrg#if defined (MIPSEB)
13326df26cacSmrg  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
13336df26cacSmrg     I don't know....  */
13346df26cacSmrg  printf ("mips-sony-bsd\n"); exit (0);
13356df26cacSmrg#else
13366df26cacSmrg#include <sys/param.h>
13376df26cacSmrg  printf ("m68k-sony-newsos%s\n",
13386df26cacSmrg#ifdef NEWSOS4
13396df26cacSmrg          "4"
13406df26cacSmrg#else
13416df26cacSmrg	  ""
13426df26cacSmrg#endif
13436df26cacSmrg         ); exit (0);
13446df26cacSmrg#endif
13456df26cacSmrg#endif
13466df26cacSmrg
13476df26cacSmrg#if defined (__arm) && defined (__acorn) && defined (__unix)
13486df26cacSmrg  printf ("arm-acorn-riscix\n"); exit (0);
13496df26cacSmrg#endif
13506df26cacSmrg
13516df26cacSmrg#if defined (hp300) && !defined (hpux)
13526df26cacSmrg  printf ("m68k-hp-bsd\n"); exit (0);
13536df26cacSmrg#endif
13546df26cacSmrg
13556df26cacSmrg#if defined (NeXT)
13566df26cacSmrg#if !defined (__ARCHITECTURE__)
13576df26cacSmrg#define __ARCHITECTURE__ "m68k"
13586df26cacSmrg#endif
13596df26cacSmrg  int version;
13606df26cacSmrg  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
13616df26cacSmrg  if (version < 4)
13626df26cacSmrg    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
13636df26cacSmrg  else
13646df26cacSmrg    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
13656df26cacSmrg  exit (0);
13666df26cacSmrg#endif
13676df26cacSmrg
13686df26cacSmrg#if defined (MULTIMAX) || defined (n16)
13696df26cacSmrg#if defined (UMAXV)
13706df26cacSmrg  printf ("ns32k-encore-sysv\n"); exit (0);
13716df26cacSmrg#else
13726df26cacSmrg#if defined (CMU)
13736df26cacSmrg  printf ("ns32k-encore-mach\n"); exit (0);
13746df26cacSmrg#else
13756df26cacSmrg  printf ("ns32k-encore-bsd\n"); exit (0);
13766df26cacSmrg#endif
13776df26cacSmrg#endif
13786df26cacSmrg#endif
13796df26cacSmrg
13806df26cacSmrg#if defined (__386BSD__)
13816df26cacSmrg  printf ("i386-pc-bsd\n"); exit (0);
13826df26cacSmrg#endif
13836df26cacSmrg
13846df26cacSmrg#if defined (sequent)
13856df26cacSmrg#if defined (i386)
13866df26cacSmrg  printf ("i386-sequent-dynix\n"); exit (0);
13876df26cacSmrg#endif
13886df26cacSmrg#if defined (ns32000)
13896df26cacSmrg  printf ("ns32k-sequent-dynix\n"); exit (0);
13906df26cacSmrg#endif
13916df26cacSmrg#endif
13926df26cacSmrg
13936df26cacSmrg#if defined (_SEQUENT_)
13946df26cacSmrg    struct utsname un;
13956df26cacSmrg
13966df26cacSmrg    uname(&un);
13976df26cacSmrg
13986df26cacSmrg    if (strncmp(un.version, "V2", 2) == 0) {
13996df26cacSmrg	printf ("i386-sequent-ptx2\n"); exit (0);
14006df26cacSmrg    }
14016df26cacSmrg    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
14026df26cacSmrg	printf ("i386-sequent-ptx1\n"); exit (0);
14036df26cacSmrg    }
14046df26cacSmrg    printf ("i386-sequent-ptx\n"); exit (0);
14056df26cacSmrg
14066df26cacSmrg#endif
14076df26cacSmrg
14086df26cacSmrg#if defined (vax)
14096df26cacSmrg# if !defined (ultrix)
14106df26cacSmrg#  include <sys/param.h>
14116df26cacSmrg#  if defined (BSD)
14126df26cacSmrg#   if BSD == 43
14136df26cacSmrg      printf ("vax-dec-bsd4.3\n"); exit (0);
14146df26cacSmrg#   else
14156df26cacSmrg#    if BSD == 199006
14166df26cacSmrg      printf ("vax-dec-bsd4.3reno\n"); exit (0);
14176df26cacSmrg#    else
14186df26cacSmrg      printf ("vax-dec-bsd\n"); exit (0);
14196df26cacSmrg#    endif
14206df26cacSmrg#   endif
14216df26cacSmrg#  else
14226df26cacSmrg    printf ("vax-dec-bsd\n"); exit (0);
14236df26cacSmrg#  endif
14246df26cacSmrg# else
14256df26cacSmrg    printf ("vax-dec-ultrix\n"); exit (0);
14266df26cacSmrg# endif
14276df26cacSmrg#endif
14286df26cacSmrg
14296df26cacSmrg#if defined (alliant) && defined (i860)
14306df26cacSmrg  printf ("i860-alliant-bsd\n"); exit (0);
14316df26cacSmrg#endif
14326df26cacSmrg
14336df26cacSmrg  exit (1);
14346df26cacSmrg}
14356df26cacSmrgEOF
14366df26cacSmrg
14376df26cacSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
14386df26cacSmrg	{ echo "$SYSTEM_NAME"; exit; }
14396df26cacSmrg
14406df26cacSmrg# Apollos put the system type in the environment.
14416df26cacSmrg
14426df26cacSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
14436df26cacSmrg
14446df26cacSmrg# Convex versions that predate uname can use getsysinfo(1)
14456df26cacSmrg
14466df26cacSmrgif [ -x /usr/convex/getsysinfo ]
14476df26cacSmrgthen
14486df26cacSmrg    case `getsysinfo -f cpu_type` in
14496df26cacSmrg    c1*)
14506df26cacSmrg	echo c1-convex-bsd
14516df26cacSmrg	exit ;;
14526df26cacSmrg    c2*)
14536df26cacSmrg	if getsysinfo -f scalar_acc
14546df26cacSmrg	then echo c32-convex-bsd
14556df26cacSmrg	else echo c2-convex-bsd
14566df26cacSmrg	fi
14576df26cacSmrg	exit ;;
14586df26cacSmrg    c34*)
14596df26cacSmrg	echo c34-convex-bsd
14606df26cacSmrg	exit ;;
14616df26cacSmrg    c38*)
14626df26cacSmrg	echo c38-convex-bsd
14636df26cacSmrg	exit ;;
14646df26cacSmrg    c4*)
14656df26cacSmrg	echo c4-convex-bsd
14666df26cacSmrg	exit ;;
14676df26cacSmrg    esac
14686df26cacSmrgfi
14696df26cacSmrg
14706df26cacSmrgcat >&2 <<EOF
14716df26cacSmrg$0: unable to guess system type
14726df26cacSmrg
14736df26cacSmrgThis script, last modified $timestamp, has failed to recognize
14746df26cacSmrgthe operating system you are using. It is advised that you
14756df26cacSmrgdownload the most up to date version of the config scripts from
14766df26cacSmrg
14776df26cacSmrg  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
14786df26cacSmrgand
14796df26cacSmrg  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
14806df26cacSmrg
14816df26cacSmrgIf the version you run ($0) is already up to date, please
14826df26cacSmrgsend the following data and any information you think might be
14836df26cacSmrgpertinent to <config-patches@gnu.org> in order to provide the needed
14846df26cacSmrginformation to handle your system.
14856df26cacSmrg
14866df26cacSmrgconfig.guess timestamp = $timestamp
14876df26cacSmrg
14886df26cacSmrguname -m = `(uname -m) 2>/dev/null || echo unknown`
14896df26cacSmrguname -r = `(uname -r) 2>/dev/null || echo unknown`
14906df26cacSmrguname -s = `(uname -s) 2>/dev/null || echo unknown`
14916df26cacSmrguname -v = `(uname -v) 2>/dev/null || echo unknown`
14926df26cacSmrg
14936df26cacSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
14946df26cacSmrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
14956df26cacSmrg
14966df26cacSmrghostinfo               = `(hostinfo) 2>/dev/null`
14976df26cacSmrg/bin/universe          = `(/bin/universe) 2>/dev/null`
14986df26cacSmrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
14996df26cacSmrg/bin/arch              = `(/bin/arch) 2>/dev/null`
15006df26cacSmrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
15016df26cacSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
15026df26cacSmrg
15036df26cacSmrgUNAME_MACHINE = ${UNAME_MACHINE}
15046df26cacSmrgUNAME_RELEASE = ${UNAME_RELEASE}
15056df26cacSmrgUNAME_SYSTEM  = ${UNAME_SYSTEM}
15066df26cacSmrgUNAME_VERSION = ${UNAME_VERSION}
15076df26cacSmrgEOF
15086df26cacSmrg
15096df26cacSmrgexit 1
15106df26cacSmrg
15116df26cacSmrg# Local variables:
15126df26cacSmrg# eval: (add-hook 'write-file-hooks 'time-stamp)
15136df26cacSmrg# time-stamp-start: "timestamp='"
15146df26cacSmrg# time-stamp-format: "%:y-%02m-%02d"
15156df26cacSmrg# time-stamp-end: "'"
15166df26cacSmrg# End:
1517