config.guess revision f66e55a2
129459361Smrg#! /bin/sh
229459361Smrg# Attempt to guess a canonical system name.
3f66e55a2Smrg#   Copyright 1992-2013 Free Software Foundation, Inc.
429459361Smrg
5f66e55a2Smrgtimestamp='2013-04-24'
629459361Smrg
729459361Smrg# This file is free software; you can redistribute it and/or modify it
829459361Smrg# under the terms of the GNU General Public License as published by
9f66e55a2Smrg# the Free Software Foundation; either version 3 of the License, or
1029459361Smrg# (at your option) any later version.
1129459361Smrg#
1229459361Smrg# This program is distributed in the hope that it will be useful, but
1329459361Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of
1429459361Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1529459361Smrg# General Public License for more details.
1629459361Smrg#
1729459361Smrg# You should have received a copy of the GNU General Public License
18f66e55a2Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>.
1929459361Smrg#
2029459361Smrg# As a special exception to the GNU General Public License, if you
2129459361Smrg# distribute this file as part of a program that contains a
2229459361Smrg# configuration script generated by Autoconf, you may include it under
23f66e55a2Smrg# the same distribution terms that you use for the rest of that
24f66e55a2Smrg# program.  This Exception is an additional permission under section 7
25f66e55a2Smrg# of the GNU General Public License, version 3 ("GPLv3").
2629459361Smrg#
27f66e55a2Smrg# Originally written by Per Bothner.
2829459361Smrg#
29c3c9b392Smrg# You can get the latest version of this script from:
30c3c9b392Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
31f66e55a2Smrg#
32f66e55a2Smrg# Please send patches with a ChangeLog entry to config-patches@gnu.org.
33f66e55a2Smrg
3429459361Smrg
3529459361Smrgme=`echo "$0" | sed -e 's,.*/,,'`
3629459361Smrg
3729459361Smrgusage="\
3829459361SmrgUsage: $0 [OPTION]
3929459361Smrg
4029459361SmrgOutput the configuration name of the system \`$me' is run on.
4129459361Smrg
4229459361SmrgOperation modes:
4329459361Smrg  -h, --help         print this help, then exit
4429459361Smrg  -t, --time-stamp   print date of last modification, then exit
4529459361Smrg  -v, --version      print version number, then exit
4629459361Smrg
4729459361SmrgReport bugs and patches to <config-patches@gnu.org>."
4829459361Smrg
4929459361Smrgversion="\
5029459361SmrgGNU config.guess ($timestamp)
5129459361Smrg
5229459361SmrgOriginally written by Per Bothner.
53f66e55a2SmrgCopyright 1992-2013 Free Software Foundation, Inc.
5429459361Smrg
5529459361SmrgThis is free software; see the source for copying conditions.  There is NO
5629459361Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5729459361Smrg
5829459361Smrghelp="
5929459361SmrgTry \`$me --help' for more information."
6029459361Smrg
6129459361Smrg# Parse command line
6229459361Smrgwhile test $# -gt 0 ; do
6329459361Smrg  case $1 in
6429459361Smrg    --time-stamp | --time* | -t )
6529459361Smrg       echo "$timestamp" ; exit ;;
6629459361Smrg    --version | -v )
6729459361Smrg       echo "$version" ; exit ;;
6829459361Smrg    --help | --h* | -h )
6929459361Smrg       echo "$usage"; exit ;;
7029459361Smrg    -- )     # Stop option processing
7129459361Smrg       shift; break ;;
7229459361Smrg    - )	# Use stdin as input.
7329459361Smrg       break ;;
7429459361Smrg    -* )
7529459361Smrg       echo "$me: invalid option $1$help" >&2
7629459361Smrg       exit 1 ;;
7729459361Smrg    * )
7829459361Smrg       break ;;
7929459361Smrg  esac
8029459361Smrgdone
8129459361Smrg
8229459361Smrgif test $# != 0; then
8329459361Smrg  echo "$me: too many arguments$help" >&2
8429459361Smrg  exit 1
8529459361Smrgfi
8629459361Smrg
87f66e55a2Smrgtrap 'exit 1' 1 2 15
8829459361Smrg
8929459361Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
9029459361Smrg# compiler to aid in system detection is discouraged as it requires
9129459361Smrg# temporary files to be created and, as you can see below, it is a
9229459361Smrg# headache to deal with in a portable fashion.
9329459361Smrg
9429459361Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
9529459361Smrg# use `HOST_CC' if defined, but it is deprecated.
9629459361Smrg
9729459361Smrg# Portable tmp directory creation inspired by the Autoconf team.
9829459361Smrg
9929459361Smrgset_cc_for_build='
10029459361Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
101f66e55a2Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
10229459361Smrg: ${TMPDIR=/tmp} ;
10329459361Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
10429459361Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
10529459361Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
10629459361Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
10729459361Smrgdummy=$tmp/dummy ;
10829459361Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
10929459361Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in
11029459361Smrg ,,)    echo "int x;" > $dummy.c ;
11129459361Smrg	for c in cc gcc c89 c99 ; do
11229459361Smrg	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
11329459361Smrg	     CC_FOR_BUILD="$c"; break ;
11429459361Smrg	  fi ;
11529459361Smrg	done ;
11629459361Smrg	if test x"$CC_FOR_BUILD" = x ; then
11729459361Smrg	  CC_FOR_BUILD=no_compiler_found ;
11829459361Smrg	fi
11929459361Smrg	;;
12029459361Smrg ,,*)   CC_FOR_BUILD=$CC ;;
12129459361Smrg ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
12229459361Smrgesac ; set_cc_for_build= ;'
12329459361Smrg
12429459361Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
12529459361Smrg# (ghazi@noc.rutgers.edu 1994-08-24)
12629459361Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then
12729459361Smrg	PATH=$PATH:/.attbin ; export PATH
12829459361Smrgfi
12929459361Smrg
13029459361SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
13129459361SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
13229459361SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
13329459361SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
13429459361Smrg
13529459361Smrg# Note: order is significant - the case branches are not exclusive.
13629459361Smrg
13729459361Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
13829459361Smrg    *:NetBSD:*:*)
13929459361Smrg	# NetBSD (nbsd) targets should (where applicable) match one or
140f66e55a2Smrg	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
14129459361Smrg	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
14229459361Smrg	# switched to ELF, *-*-netbsd* would select the old
14329459361Smrg	# object file format.  This provides both forward
14429459361Smrg	# compatibility and a consistent mechanism for selecting the
14529459361Smrg	# object file format.
14629459361Smrg	#
14729459361Smrg	# Note: NetBSD doesn't particularly care about the vendor
14829459361Smrg	# portion of the name.  We always set it to "unknown".
14929459361Smrg	sysctl="sysctl -n hw.machine_arch"
15029459361Smrg	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
15129459361Smrg	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
15229459361Smrg	case "${UNAME_MACHINE_ARCH}" in
15329459361Smrg	    armeb) machine=armeb-unknown ;;
15429459361Smrg	    arm*) machine=arm-unknown ;;
15529459361Smrg	    sh3el) machine=shl-unknown ;;
15629459361Smrg	    sh3eb) machine=sh-unknown ;;
15729459361Smrg	    sh5el) machine=sh5le-unknown ;;
15829459361Smrg	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
15929459361Smrg	esac
16029459361Smrg	# The Operating System including object format, if it has switched
16129459361Smrg	# to ELF recently, or will in the future.
16229459361Smrg	case "${UNAME_MACHINE_ARCH}" in
16329459361Smrg	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
16429459361Smrg		eval $set_cc_for_build
16529459361Smrg		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
166c3c9b392Smrg			| grep -q __ELF__
16729459361Smrg		then
16829459361Smrg		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
16929459361Smrg		    # Return netbsd for either.  FIX?
17029459361Smrg		    os=netbsd
17129459361Smrg		else
17229459361Smrg		    os=netbsdelf
17329459361Smrg		fi
17429459361Smrg		;;
17529459361Smrg	    *)
176f66e55a2Smrg		os=netbsd
17729459361Smrg		;;
17829459361Smrg	esac
17929459361Smrg	# The OS release
18029459361Smrg	# Debian GNU/NetBSD machines have a different userland, and
18129459361Smrg	# thus, need a distinct triplet. However, they do not need
18229459361Smrg	# kernel version information, so it can be replaced with a
18329459361Smrg	# suitable tag, in the style of linux-gnu.
18429459361Smrg	case "${UNAME_VERSION}" in
18529459361Smrg	    Debian*)
18629459361Smrg		release='-gnu'
18729459361Smrg		;;
18829459361Smrg	    *)
18929459361Smrg		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
19029459361Smrg		;;
19129459361Smrg	esac
19229459361Smrg	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
19329459361Smrg	# contains redundant information, the shorter form:
19429459361Smrg	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
19529459361Smrg	echo "${machine}-${os}${release}"
19629459361Smrg	exit ;;
197f66e55a2Smrg    *:Bitrig:*:*)
198f66e55a2Smrg	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
199f66e55a2Smrg	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
200f66e55a2Smrg	exit ;;
20129459361Smrg    *:OpenBSD:*:*)
20229459361Smrg	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
20329459361Smrg	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
20429459361Smrg	exit ;;
20529459361Smrg    *:ekkoBSD:*:*)
20629459361Smrg	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
20729459361Smrg	exit ;;
20829459361Smrg    *:SolidBSD:*:*)
20929459361Smrg	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
21029459361Smrg	exit ;;
21129459361Smrg    macppc:MirBSD:*:*)
21229459361Smrg	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
21329459361Smrg	exit ;;
21429459361Smrg    *:MirBSD:*:*)
21529459361Smrg	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
21629459361Smrg	exit ;;
21729459361Smrg    alpha:OSF1:*:*)
21829459361Smrg	case $UNAME_RELEASE in
21929459361Smrg	*4.0)
22029459361Smrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
22129459361Smrg		;;
22229459361Smrg	*5.*)
223f66e55a2Smrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
22429459361Smrg		;;
22529459361Smrg	esac
22629459361Smrg	# According to Compaq, /usr/sbin/psrinfo has been available on
22729459361Smrg	# OSF/1 and Tru64 systems produced since 1995.  I hope that
22829459361Smrg	# covers most systems running today.  This code pipes the CPU
22929459361Smrg	# types through head -n 1, so we only detect the type of CPU 0.
23029459361Smrg	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
23129459361Smrg	case "$ALPHA_CPU_TYPE" in
23229459361Smrg	    "EV4 (21064)")
23329459361Smrg		UNAME_MACHINE="alpha" ;;
23429459361Smrg	    "EV4.5 (21064)")
23529459361Smrg		UNAME_MACHINE="alpha" ;;
23629459361Smrg	    "LCA4 (21066/21068)")
23729459361Smrg		UNAME_MACHINE="alpha" ;;
23829459361Smrg	    "EV5 (21164)")
23929459361Smrg		UNAME_MACHINE="alphaev5" ;;
24029459361Smrg	    "EV5.6 (21164A)")
24129459361Smrg		UNAME_MACHINE="alphaev56" ;;
24229459361Smrg	    "EV5.6 (21164PC)")
24329459361Smrg		UNAME_MACHINE="alphapca56" ;;
24429459361Smrg	    "EV5.7 (21164PC)")
24529459361Smrg		UNAME_MACHINE="alphapca57" ;;
24629459361Smrg	    "EV6 (21264)")
24729459361Smrg		UNAME_MACHINE="alphaev6" ;;
24829459361Smrg	    "EV6.7 (21264A)")
24929459361Smrg		UNAME_MACHINE="alphaev67" ;;
25029459361Smrg	    "EV6.8CB (21264C)")
25129459361Smrg		UNAME_MACHINE="alphaev68" ;;
25229459361Smrg	    "EV6.8AL (21264B)")
25329459361Smrg		UNAME_MACHINE="alphaev68" ;;
25429459361Smrg	    "EV6.8CX (21264D)")
25529459361Smrg		UNAME_MACHINE="alphaev68" ;;
25629459361Smrg	    "EV6.9A (21264/EV69A)")
25729459361Smrg		UNAME_MACHINE="alphaev69" ;;
25829459361Smrg	    "EV7 (21364)")
25929459361Smrg		UNAME_MACHINE="alphaev7" ;;
26029459361Smrg	    "EV7.9 (21364A)")
26129459361Smrg		UNAME_MACHINE="alphaev79" ;;
26229459361Smrg	esac
26329459361Smrg	# A Pn.n version is a patched version.
26429459361Smrg	# A Vn.n version is a released version.
26529459361Smrg	# A Tn.n version is a released field test version.
26629459361Smrg	# A Xn.n version is an unreleased experimental baselevel.
26729459361Smrg	# 1.2 uses "1.2" for uname -r.
26829459361Smrg	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
269f66e55a2Smrg	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
270f66e55a2Smrg	exitcode=$?
271f66e55a2Smrg	trap '' 0
272f66e55a2Smrg	exit $exitcode ;;
27329459361Smrg    Alpha\ *:Windows_NT*:*)
27429459361Smrg	# How do we know it's Interix rather than the generic POSIX subsystem?
27529459361Smrg	# Should we change UNAME_MACHINE based on the output of uname instead
27629459361Smrg	# of the specific Alpha model?
27729459361Smrg	echo alpha-pc-interix
27829459361Smrg	exit ;;
27929459361Smrg    21064:Windows_NT:50:3)
28029459361Smrg	echo alpha-dec-winnt3.5
28129459361Smrg	exit ;;
28229459361Smrg    Amiga*:UNIX_System_V:4.0:*)
28329459361Smrg	echo m68k-unknown-sysv4
28429459361Smrg	exit ;;
28529459361Smrg    *:[Aa]miga[Oo][Ss]:*:*)
28629459361Smrg	echo ${UNAME_MACHINE}-unknown-amigaos
28729459361Smrg	exit ;;
28829459361Smrg    *:[Mm]orph[Oo][Ss]:*:*)
28929459361Smrg	echo ${UNAME_MACHINE}-unknown-morphos
29029459361Smrg	exit ;;
29129459361Smrg    *:OS/390:*:*)
29229459361Smrg	echo i370-ibm-openedition
29329459361Smrg	exit ;;
29429459361Smrg    *:z/VM:*:*)
29529459361Smrg	echo s390-ibm-zvmoe
29629459361Smrg	exit ;;
29729459361Smrg    *:OS400:*:*)
298f66e55a2Smrg	echo powerpc-ibm-os400
29929459361Smrg	exit ;;
30029459361Smrg    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
30129459361Smrg	echo arm-acorn-riscix${UNAME_RELEASE}
30229459361Smrg	exit ;;
303f66e55a2Smrg    arm*:riscos:*:*|arm*:RISCOS:*:*)
30429459361Smrg	echo arm-unknown-riscos
30529459361Smrg	exit ;;
30629459361Smrg    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
30729459361Smrg	echo hppa1.1-hitachi-hiuxmpp
30829459361Smrg	exit ;;
30929459361Smrg    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
31029459361Smrg	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
31129459361Smrg	if test "`(/bin/universe) 2>/dev/null`" = att ; then
31229459361Smrg		echo pyramid-pyramid-sysv3
31329459361Smrg	else
31429459361Smrg		echo pyramid-pyramid-bsd
31529459361Smrg	fi
31629459361Smrg	exit ;;
31729459361Smrg    NILE*:*:*:dcosx)
31829459361Smrg	echo pyramid-pyramid-svr4
31929459361Smrg	exit ;;
32029459361Smrg    DRS?6000:unix:4.0:6*)
32129459361Smrg	echo sparc-icl-nx6
32229459361Smrg	exit ;;
32329459361Smrg    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
32429459361Smrg	case `/usr/bin/uname -p` in
32529459361Smrg	    sparc) echo sparc-icl-nx7; exit ;;
32629459361Smrg	esac ;;
3275715adc0Smrg    s390x:SunOS:*:*)
3285715adc0Smrg	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3295715adc0Smrg	exit ;;
33029459361Smrg    sun4H:SunOS:5.*:*)
33129459361Smrg	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
33229459361Smrg	exit ;;
33329459361Smrg    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
33429459361Smrg	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
33529459361Smrg	exit ;;
336c3c9b392Smrg    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
337c3c9b392Smrg	echo i386-pc-auroraux${UNAME_RELEASE}
338c3c9b392Smrg	exit ;;
3395715adc0Smrg    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
3405715adc0Smrg	eval $set_cc_for_build
3415715adc0Smrg	SUN_ARCH="i386"
3425715adc0Smrg	# If there is a compiler, see if it is configured for 64-bit objects.
3435715adc0Smrg	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
3445715adc0Smrg	# This test works for both compilers.
3455715adc0Smrg	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3465715adc0Smrg	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
3475715adc0Smrg		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3485715adc0Smrg		grep IS_64BIT_ARCH >/dev/null
3495715adc0Smrg	    then
3505715adc0Smrg		SUN_ARCH="x86_64"
3515715adc0Smrg	    fi
3525715adc0Smrg	fi
3535715adc0Smrg	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
35429459361Smrg	exit ;;
35529459361Smrg    sun4*:SunOS:6*:*)
35629459361Smrg	# According to config.sub, this is the proper way to canonicalize
35729459361Smrg	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
35829459361Smrg	# it's likely to be more like Solaris than SunOS4.
35929459361Smrg	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
36029459361Smrg	exit ;;
36129459361Smrg    sun4*:SunOS:*:*)
36229459361Smrg	case "`/usr/bin/arch -k`" in
36329459361Smrg	    Series*|S4*)
36429459361Smrg		UNAME_RELEASE=`uname -v`
36529459361Smrg		;;
36629459361Smrg	esac
36729459361Smrg	# Japanese Language versions have a version number like `4.1.3-JL'.
36829459361Smrg	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
36929459361Smrg	exit ;;
37029459361Smrg    sun3*:SunOS:*:*)
37129459361Smrg	echo m68k-sun-sunos${UNAME_RELEASE}
37229459361Smrg	exit ;;
37329459361Smrg    sun*:*:4.2BSD:*)
37429459361Smrg	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
37529459361Smrg	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
37629459361Smrg	case "`/bin/arch`" in
37729459361Smrg	    sun3)
37829459361Smrg		echo m68k-sun-sunos${UNAME_RELEASE}
37929459361Smrg		;;
38029459361Smrg	    sun4)
38129459361Smrg		echo sparc-sun-sunos${UNAME_RELEASE}
38229459361Smrg		;;
38329459361Smrg	esac
38429459361Smrg	exit ;;
38529459361Smrg    aushp:SunOS:*:*)
38629459361Smrg	echo sparc-auspex-sunos${UNAME_RELEASE}
38729459361Smrg	exit ;;
38829459361Smrg    # The situation for MiNT is a little confusing.  The machine name
38929459361Smrg    # can be virtually everything (everything which is not
39029459361Smrg    # "atarist" or "atariste" at least should have a processor
39129459361Smrg    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
39229459361Smrg    # to the lowercase version "mint" (or "freemint").  Finally
39329459361Smrg    # the system name "TOS" denotes a system which is actually not
39429459361Smrg    # MiNT.  But MiNT is downward compatible to TOS, so this should
39529459361Smrg    # be no problem.
39629459361Smrg    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
397f66e55a2Smrg	echo m68k-atari-mint${UNAME_RELEASE}
39829459361Smrg	exit ;;
39929459361Smrg    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
40029459361Smrg	echo m68k-atari-mint${UNAME_RELEASE}
401f66e55a2Smrg	exit ;;
40229459361Smrg    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
403f66e55a2Smrg	echo m68k-atari-mint${UNAME_RELEASE}
40429459361Smrg	exit ;;
40529459361Smrg    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
406f66e55a2Smrg	echo m68k-milan-mint${UNAME_RELEASE}
407f66e55a2Smrg	exit ;;
40829459361Smrg    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
409f66e55a2Smrg	echo m68k-hades-mint${UNAME_RELEASE}
410f66e55a2Smrg	exit ;;
41129459361Smrg    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
412f66e55a2Smrg	echo m68k-unknown-mint${UNAME_RELEASE}
413f66e55a2Smrg	exit ;;
41429459361Smrg    m68k:machten:*:*)
41529459361Smrg	echo m68k-apple-machten${UNAME_RELEASE}
41629459361Smrg	exit ;;
41729459361Smrg    powerpc:machten:*:*)
41829459361Smrg	echo powerpc-apple-machten${UNAME_RELEASE}
41929459361Smrg	exit ;;
42029459361Smrg    RISC*:Mach:*:*)
42129459361Smrg	echo mips-dec-mach_bsd4.3
42229459361Smrg	exit ;;
42329459361Smrg    RISC*:ULTRIX:*:*)
42429459361Smrg	echo mips-dec-ultrix${UNAME_RELEASE}
42529459361Smrg	exit ;;
42629459361Smrg    VAX*:ULTRIX*:*:*)
42729459361Smrg	echo vax-dec-ultrix${UNAME_RELEASE}
42829459361Smrg	exit ;;
42929459361Smrg    2020:CLIX:*:* | 2430:CLIX:*:*)
43029459361Smrg	echo clipper-intergraph-clix${UNAME_RELEASE}
43129459361Smrg	exit ;;
43229459361Smrg    mips:*:*:UMIPS | mips:*:*:RISCos)
43329459361Smrg	eval $set_cc_for_build
43429459361Smrg	sed 's/^	//' << EOF >$dummy.c
43529459361Smrg#ifdef __cplusplus
43629459361Smrg#include <stdio.h>  /* for printf() prototype */
43729459361Smrg	int main (int argc, char *argv[]) {
43829459361Smrg#else
43929459361Smrg	int main (argc, argv) int argc; char *argv[]; {
44029459361Smrg#endif
44129459361Smrg	#if defined (host_mips) && defined (MIPSEB)
44229459361Smrg	#if defined (SYSTYPE_SYSV)
44329459361Smrg	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
44429459361Smrg	#endif
44529459361Smrg	#if defined (SYSTYPE_SVR4)
44629459361Smrg	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
44729459361Smrg	#endif
44829459361Smrg	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
44929459361Smrg	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
45029459361Smrg	#endif
45129459361Smrg	#endif
45229459361Smrg	  exit (-1);
45329459361Smrg	}
45429459361SmrgEOF
45529459361Smrg	$CC_FOR_BUILD -o $dummy $dummy.c &&
45629459361Smrg	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
45729459361Smrg	  SYSTEM_NAME=`$dummy $dummyarg` &&
45829459361Smrg	    { echo "$SYSTEM_NAME"; exit; }
45929459361Smrg	echo mips-mips-riscos${UNAME_RELEASE}
46029459361Smrg	exit ;;
46129459361Smrg    Motorola:PowerMAX_OS:*:*)
46229459361Smrg	echo powerpc-motorola-powermax
46329459361Smrg	exit ;;
46429459361Smrg    Motorola:*:4.3:PL8-*)
46529459361Smrg	echo powerpc-harris-powermax
46629459361Smrg	exit ;;
46729459361Smrg    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
46829459361Smrg	echo powerpc-harris-powermax
46929459361Smrg	exit ;;
47029459361Smrg    Night_Hawk:Power_UNIX:*:*)
47129459361Smrg	echo powerpc-harris-powerunix
47229459361Smrg	exit ;;
47329459361Smrg    m88k:CX/UX:7*:*)
47429459361Smrg	echo m88k-harris-cxux7
47529459361Smrg	exit ;;
47629459361Smrg    m88k:*:4*:R4*)
47729459361Smrg	echo m88k-motorola-sysv4
47829459361Smrg	exit ;;
47929459361Smrg    m88k:*:3*:R3*)
48029459361Smrg	echo m88k-motorola-sysv3
48129459361Smrg	exit ;;
48229459361Smrg    AViiON:dgux:*:*)
483f66e55a2Smrg	# DG/UX returns AViiON for all architectures
484f66e55a2Smrg	UNAME_PROCESSOR=`/usr/bin/uname -p`
48529459361Smrg	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
48629459361Smrg	then
48729459361Smrg	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
48829459361Smrg	       [ ${TARGET_BINARY_INTERFACE}x = x ]
48929459361Smrg	    then
49029459361Smrg		echo m88k-dg-dgux${UNAME_RELEASE}
49129459361Smrg	    else
49229459361Smrg		echo m88k-dg-dguxbcs${UNAME_RELEASE}
49329459361Smrg	    fi
49429459361Smrg	else
49529459361Smrg	    echo i586-dg-dgux${UNAME_RELEASE}
49629459361Smrg	fi
497f66e55a2Smrg	exit ;;
49829459361Smrg    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
49929459361Smrg	echo m88k-dolphin-sysv3
50029459361Smrg	exit ;;
50129459361Smrg    M88*:*:R3*:*)
50229459361Smrg	# Delta 88k system running SVR3
50329459361Smrg	echo m88k-motorola-sysv3
50429459361Smrg	exit ;;
50529459361Smrg    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
50629459361Smrg	echo m88k-tektronix-sysv3
50729459361Smrg	exit ;;
50829459361Smrg    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
50929459361Smrg	echo m68k-tektronix-bsd
51029459361Smrg	exit ;;
51129459361Smrg    *:IRIX*:*:*)
51229459361Smrg	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
51329459361Smrg	exit ;;
51429459361Smrg    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
51529459361Smrg	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
51629459361Smrg	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
51729459361Smrg    i*86:AIX:*:*)
51829459361Smrg	echo i386-ibm-aix
51929459361Smrg	exit ;;
52029459361Smrg    ia64:AIX:*:*)
52129459361Smrg	if [ -x /usr/bin/oslevel ] ; then
52229459361Smrg		IBM_REV=`/usr/bin/oslevel`
52329459361Smrg	else
52429459361Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
52529459361Smrg	fi
52629459361Smrg	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
52729459361Smrg	exit ;;
52829459361Smrg    *:AIX:2:3)
52929459361Smrg	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
53029459361Smrg		eval $set_cc_for_build
53129459361Smrg		sed 's/^		//' << EOF >$dummy.c
53229459361Smrg		#include <sys/systemcfg.h>
53329459361Smrg
53429459361Smrg		main()
53529459361Smrg			{
53629459361Smrg			if (!__power_pc())
53729459361Smrg				exit(1);
53829459361Smrg			puts("powerpc-ibm-aix3.2.5");
53929459361Smrg			exit(0);
54029459361Smrg			}
54129459361SmrgEOF
54229459361Smrg		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
54329459361Smrg		then
54429459361Smrg			echo "$SYSTEM_NAME"
54529459361Smrg		else
54629459361Smrg			echo rs6000-ibm-aix3.2.5
54729459361Smrg		fi
54829459361Smrg	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
54929459361Smrg		echo rs6000-ibm-aix3.2.4
55029459361Smrg	else
55129459361Smrg		echo rs6000-ibm-aix3.2
55229459361Smrg	fi
55329459361Smrg	exit ;;
554c3c9b392Smrg    *:AIX:*:[4567])
55529459361Smrg	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
55629459361Smrg	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
55729459361Smrg		IBM_ARCH=rs6000
55829459361Smrg	else
55929459361Smrg		IBM_ARCH=powerpc
56029459361Smrg	fi
56129459361Smrg	if [ -x /usr/bin/oslevel ] ; then
56229459361Smrg		IBM_REV=`/usr/bin/oslevel`
56329459361Smrg	else
56429459361Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
56529459361Smrg	fi
56629459361Smrg	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
56729459361Smrg	exit ;;
56829459361Smrg    *:AIX:*:*)
56929459361Smrg	echo rs6000-ibm-aix
57029459361Smrg	exit ;;
57129459361Smrg    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
57229459361Smrg	echo romp-ibm-bsd4.4
57329459361Smrg	exit ;;
57429459361Smrg    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
57529459361Smrg	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
57629459361Smrg	exit ;;                             # report: romp-ibm BSD 4.3
57729459361Smrg    *:BOSX:*:*)
57829459361Smrg	echo rs6000-bull-bosx
57929459361Smrg	exit ;;
58029459361Smrg    DPX/2?00:B.O.S.:*:*)
58129459361Smrg	echo m68k-bull-sysv3
58229459361Smrg	exit ;;
58329459361Smrg    9000/[34]??:4.3bsd:1.*:*)
58429459361Smrg	echo m68k-hp-bsd
58529459361Smrg	exit ;;
58629459361Smrg    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
58729459361Smrg	echo m68k-hp-bsd4.4
58829459361Smrg	exit ;;
58929459361Smrg    9000/[34678]??:HP-UX:*:*)
59029459361Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
59129459361Smrg	case "${UNAME_MACHINE}" in
59229459361Smrg	    9000/31? )            HP_ARCH=m68000 ;;
59329459361Smrg	    9000/[34]?? )         HP_ARCH=m68k ;;
59429459361Smrg	    9000/[678][0-9][0-9])
59529459361Smrg		if [ -x /usr/bin/getconf ]; then
59629459361Smrg		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
597f66e55a2Smrg		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
598f66e55a2Smrg		    case "${sc_cpu_version}" in
599f66e55a2Smrg		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
600f66e55a2Smrg		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
601f66e55a2Smrg		      532)                      # CPU_PA_RISC2_0
602f66e55a2Smrg			case "${sc_kernel_bits}" in
603f66e55a2Smrg			  32) HP_ARCH="hppa2.0n" ;;
604f66e55a2Smrg			  64) HP_ARCH="hppa2.0w" ;;
60529459361Smrg			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
606f66e55a2Smrg			esac ;;
607f66e55a2Smrg		    esac
60829459361Smrg		fi
60929459361Smrg		if [ "${HP_ARCH}" = "" ]; then
61029459361Smrg		    eval $set_cc_for_build
611f66e55a2Smrg		    sed 's/^		//' << EOF >$dummy.c
61229459361Smrg
613f66e55a2Smrg		#define _HPUX_SOURCE
614f66e55a2Smrg		#include <stdlib.h>
615f66e55a2Smrg		#include <unistd.h>
61629459361Smrg
617f66e55a2Smrg		int main ()
618f66e55a2Smrg		{
619f66e55a2Smrg		#if defined(_SC_KERNEL_BITS)
620f66e55a2Smrg		    long bits = sysconf(_SC_KERNEL_BITS);
621f66e55a2Smrg		#endif
622f66e55a2Smrg		    long cpu  = sysconf (_SC_CPU_VERSION);
62329459361Smrg
624f66e55a2Smrg		    switch (cpu)
625f66e55a2Smrg			{
626f66e55a2Smrg			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
627f66e55a2Smrg			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
628f66e55a2Smrg			case CPU_PA_RISC2_0:
629f66e55a2Smrg		#if defined(_SC_KERNEL_BITS)
630f66e55a2Smrg			    switch (bits)
631f66e55a2Smrg				{
632f66e55a2Smrg				case 64: puts ("hppa2.0w"); break;
633f66e55a2Smrg				case 32: puts ("hppa2.0n"); break;
634f66e55a2Smrg				default: puts ("hppa2.0"); break;
635f66e55a2Smrg				} break;
636f66e55a2Smrg		#else  /* !defined(_SC_KERNEL_BITS) */
637f66e55a2Smrg			    puts ("hppa2.0"); break;
638f66e55a2Smrg		#endif
639f66e55a2Smrg			default: puts ("hppa1.0"); break;
640f66e55a2Smrg			}
641f66e55a2Smrg		    exit (0);
642f66e55a2Smrg		}
64329459361SmrgEOF
64429459361Smrg		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
64529459361Smrg		    test -z "$HP_ARCH" && HP_ARCH=hppa
64629459361Smrg		fi ;;
64729459361Smrg	esac
64829459361Smrg	if [ ${HP_ARCH} = "hppa2.0w" ]
64929459361Smrg	then
65029459361Smrg	    eval $set_cc_for_build
65129459361Smrg
65229459361Smrg	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
65329459361Smrg	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
65429459361Smrg	    # generating 64-bit code.  GNU and HP use different nomenclature:
65529459361Smrg	    #
65629459361Smrg	    # $ CC_FOR_BUILD=cc ./config.guess
65729459361Smrg	    # => hppa2.0w-hp-hpux11.23
65829459361Smrg	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
65929459361Smrg	    # => hppa64-hp-hpux11.23
66029459361Smrg
66129459361Smrg	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
662c3c9b392Smrg		grep -q __LP64__
66329459361Smrg	    then
66429459361Smrg		HP_ARCH="hppa2.0w"
66529459361Smrg	    else
66629459361Smrg		HP_ARCH="hppa64"
66729459361Smrg	    fi
66829459361Smrg	fi
66929459361Smrg	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
67029459361Smrg	exit ;;
67129459361Smrg    ia64:HP-UX:*:*)
67229459361Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
67329459361Smrg	echo ia64-hp-hpux${HPUX_REV}
67429459361Smrg	exit ;;
67529459361Smrg    3050*:HI-UX:*:*)
67629459361Smrg	eval $set_cc_for_build
67729459361Smrg	sed 's/^	//' << EOF >$dummy.c
67829459361Smrg	#include <unistd.h>
67929459361Smrg	int
68029459361Smrg	main ()
68129459361Smrg	{
68229459361Smrg	  long cpu = sysconf (_SC_CPU_VERSION);
68329459361Smrg	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
68429459361Smrg	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
68529459361Smrg	     results, however.  */
68629459361Smrg	  if (CPU_IS_PA_RISC (cpu))
68729459361Smrg	    {
68829459361Smrg	      switch (cpu)
68929459361Smrg		{
69029459361Smrg		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
69129459361Smrg		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
69229459361Smrg		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
69329459361Smrg		  default: puts ("hppa-hitachi-hiuxwe2"); break;
69429459361Smrg		}
69529459361Smrg	    }
69629459361Smrg	  else if (CPU_IS_HP_MC68K (cpu))
69729459361Smrg	    puts ("m68k-hitachi-hiuxwe2");
69829459361Smrg	  else puts ("unknown-hitachi-hiuxwe2");
69929459361Smrg	  exit (0);
70029459361Smrg	}
70129459361SmrgEOF
70229459361Smrg	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
70329459361Smrg		{ echo "$SYSTEM_NAME"; exit; }
70429459361Smrg	echo unknown-hitachi-hiuxwe2
70529459361Smrg	exit ;;
70629459361Smrg    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
70729459361Smrg	echo hppa1.1-hp-bsd
70829459361Smrg	exit ;;
70929459361Smrg    9000/8??:4.3bsd:*:*)
71029459361Smrg	echo hppa1.0-hp-bsd
71129459361Smrg	exit ;;
71229459361Smrg    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
71329459361Smrg	echo hppa1.0-hp-mpeix
71429459361Smrg	exit ;;
71529459361Smrg    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
71629459361Smrg	echo hppa1.1-hp-osf
71729459361Smrg	exit ;;
71829459361Smrg    hp8??:OSF1:*:*)
71929459361Smrg	echo hppa1.0-hp-osf
72029459361Smrg	exit ;;
72129459361Smrg    i*86:OSF1:*:*)
72229459361Smrg	if [ -x /usr/sbin/sysversion ] ; then
72329459361Smrg	    echo ${UNAME_MACHINE}-unknown-osf1mk
72429459361Smrg	else
72529459361Smrg	    echo ${UNAME_MACHINE}-unknown-osf1
72629459361Smrg	fi
72729459361Smrg	exit ;;
72829459361Smrg    parisc*:Lites*:*:*)
72929459361Smrg	echo hppa1.1-hp-lites
73029459361Smrg	exit ;;
73129459361Smrg    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
73229459361Smrg	echo c1-convex-bsd
733f66e55a2Smrg	exit ;;
73429459361Smrg    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
73529459361Smrg	if getsysinfo -f scalar_acc
73629459361Smrg	then echo c32-convex-bsd
73729459361Smrg	else echo c2-convex-bsd
73829459361Smrg	fi
739f66e55a2Smrg	exit ;;
74029459361Smrg    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
74129459361Smrg	echo c34-convex-bsd
742f66e55a2Smrg	exit ;;
74329459361Smrg    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
74429459361Smrg	echo c38-convex-bsd
745f66e55a2Smrg	exit ;;
74629459361Smrg    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
74729459361Smrg	echo c4-convex-bsd
748f66e55a2Smrg	exit ;;
74929459361Smrg    CRAY*Y-MP:*:*:*)
75029459361Smrg	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
75129459361Smrg	exit ;;
75229459361Smrg    CRAY*[A-Z]90:*:*:*)
75329459361Smrg	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
75429459361Smrg	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
75529459361Smrg	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
75629459361Smrg	      -e 's/\.[^.]*$/.X/'
75729459361Smrg	exit ;;
75829459361Smrg    CRAY*TS:*:*:*)
75929459361Smrg	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
76029459361Smrg	exit ;;
76129459361Smrg    CRAY*T3E:*:*:*)
76229459361Smrg	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
76329459361Smrg	exit ;;
76429459361Smrg    CRAY*SV1:*:*:*)
76529459361Smrg	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
76629459361Smrg	exit ;;
76729459361Smrg    *:UNICOS/mp:*:*)
76829459361Smrg	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
76929459361Smrg	exit ;;
77029459361Smrg    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
77129459361Smrg	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
772f66e55a2Smrg	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
773f66e55a2Smrg	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
774f66e55a2Smrg	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775f66e55a2Smrg	exit ;;
77629459361Smrg    5000:UNIX_System_V:4.*:*)
777f66e55a2Smrg	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
778f66e55a2Smrg	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
779f66e55a2Smrg	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
78029459361Smrg	exit ;;
78129459361Smrg    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
78229459361Smrg	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
78329459361Smrg	exit ;;
78429459361Smrg    sparc*:BSD/OS:*:*)
78529459361Smrg	echo sparc-unknown-bsdi${UNAME_RELEASE}
78629459361Smrg	exit ;;
78729459361Smrg    *:BSD/OS:*:*)
78829459361Smrg	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
78929459361Smrg	exit ;;
79029459361Smrg    *:FreeBSD:*:*)
791f66e55a2Smrg	UNAME_PROCESSOR=`/usr/bin/uname -p`
792f66e55a2Smrg	case ${UNAME_PROCESSOR} in
79329459361Smrg	    amd64)
79429459361Smrg		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
79529459361Smrg	    *)
796f66e55a2Smrg		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
79729459361Smrg	esac
79829459361Smrg	exit ;;
79929459361Smrg    i*:CYGWIN*:*)
80029459361Smrg	echo ${UNAME_MACHINE}-pc-cygwin
80129459361Smrg	exit ;;
802f66e55a2Smrg    *:MINGW64*:*)
803f66e55a2Smrg	echo ${UNAME_MACHINE}-pc-mingw64
804f66e55a2Smrg	exit ;;
8055715adc0Smrg    *:MINGW*:*)
80629459361Smrg	echo ${UNAME_MACHINE}-pc-mingw32
80729459361Smrg	exit ;;
808f66e55a2Smrg    i*:MSYS*:*)
809f66e55a2Smrg	echo ${UNAME_MACHINE}-pc-msys
810f66e55a2Smrg	exit ;;
81129459361Smrg    i*:windows32*:*)
812f66e55a2Smrg	# uname -m includes "-pc" on this system.
813f66e55a2Smrg	echo ${UNAME_MACHINE}-mingw32
81429459361Smrg	exit ;;
81529459361Smrg    i*:PW*:*)
81629459361Smrg	echo ${UNAME_MACHINE}-pc-pw32
81729459361Smrg	exit ;;
818c3c9b392Smrg    *:Interix*:*)
819f66e55a2Smrg	case ${UNAME_MACHINE} in
8205715adc0Smrg	    x86)
8215715adc0Smrg		echo i586-pc-interix${UNAME_RELEASE}
8225715adc0Smrg		exit ;;
823c3c9b392Smrg	    authenticamd | genuineintel | EM64T)
8245715adc0Smrg		echo x86_64-unknown-interix${UNAME_RELEASE}
8255715adc0Smrg		exit ;;
8265715adc0Smrg	    IA64)
8275715adc0Smrg		echo ia64-unknown-interix${UNAME_RELEASE}
8285715adc0Smrg		exit ;;
8295715adc0Smrg	esac ;;
83029459361Smrg    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
83129459361Smrg	echo i${UNAME_MACHINE}-pc-mks
83229459361Smrg	exit ;;
833c3c9b392Smrg    8664:Windows_NT:*)
834c3c9b392Smrg	echo x86_64-pc-mks
835c3c9b392Smrg	exit ;;
83629459361Smrg    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
83729459361Smrg	# How do we know it's Interix rather than the generic POSIX subsystem?
83829459361Smrg	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
83929459361Smrg	# UNAME_MACHINE based on the output of uname instead of i386?
84029459361Smrg	echo i586-pc-interix
84129459361Smrg	exit ;;
84229459361Smrg    i*:UWIN*:*)
84329459361Smrg	echo ${UNAME_MACHINE}-pc-uwin
84429459361Smrg	exit ;;
84529459361Smrg    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
84629459361Smrg	echo x86_64-unknown-cygwin
84729459361Smrg	exit ;;
84829459361Smrg    p*:CYGWIN*:*)
84929459361Smrg	echo powerpcle-unknown-cygwin
85029459361Smrg	exit ;;
85129459361Smrg    prep*:SunOS:5.*:*)
85229459361Smrg	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
85329459361Smrg	exit ;;
85429459361Smrg    *:GNU:*:*)
85529459361Smrg	# the GNU system
85629459361Smrg	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
85729459361Smrg	exit ;;
85829459361Smrg    *:GNU/*:*:*)
85929459361Smrg	# other systems with GNU libc and userland
86029459361Smrg	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
86129459361Smrg	exit ;;
86229459361Smrg    i*86:Minix:*:*)
86329459361Smrg	echo ${UNAME_MACHINE}-pc-minix
86429459361Smrg	exit ;;
865f66e55a2Smrg    aarch64:Linux:*:*)
866f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
867f66e55a2Smrg	exit ;;
868f66e55a2Smrg    aarch64_be:Linux:*:*)
869f66e55a2Smrg	UNAME_MACHINE=aarch64_be
870f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
871f66e55a2Smrg	exit ;;
872c3c9b392Smrg    alpha:Linux:*:*)
873c3c9b392Smrg	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
874c3c9b392Smrg	  EV5)   UNAME_MACHINE=alphaev5 ;;
875c3c9b392Smrg	  EV56)  UNAME_MACHINE=alphaev56 ;;
876c3c9b392Smrg	  PCA56) UNAME_MACHINE=alphapca56 ;;
877c3c9b392Smrg	  PCA57) UNAME_MACHINE=alphapca56 ;;
878c3c9b392Smrg	  EV6)   UNAME_MACHINE=alphaev6 ;;
879c3c9b392Smrg	  EV67)  UNAME_MACHINE=alphaev67 ;;
880c3c9b392Smrg	  EV68*) UNAME_MACHINE=alphaev68 ;;
881f66e55a2Smrg	esac
882c3c9b392Smrg	objdump --private-headers /bin/sh | grep -q ld.so.1
883c3c9b392Smrg	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
884c3c9b392Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
885c3c9b392Smrg	exit ;;
886f66e55a2Smrg    arc:Linux:*:* | arceb:Linux:*:*)
887f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
888f66e55a2Smrg	exit ;;
88929459361Smrg    arm*:Linux:*:*)
8905715adc0Smrg	eval $set_cc_for_build
8915715adc0Smrg	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
8925715adc0Smrg	    | grep -q __ARM_EABI__
8935715adc0Smrg	then
8945715adc0Smrg	    echo ${UNAME_MACHINE}-unknown-linux-gnu
8955715adc0Smrg	else
896f66e55a2Smrg	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
897f66e55a2Smrg		| grep -q __ARM_PCS_VFP
898f66e55a2Smrg	    then
899f66e55a2Smrg		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
900f66e55a2Smrg	    else
901f66e55a2Smrg		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
902f66e55a2Smrg	    fi
9035715adc0Smrg	fi
90429459361Smrg	exit ;;
90529459361Smrg    avr32*:Linux:*:*)
90629459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
90729459361Smrg	exit ;;
90829459361Smrg    cris:Linux:*:*)
909f66e55a2Smrg	echo ${UNAME_MACHINE}-axis-linux-gnu
91029459361Smrg	exit ;;
91129459361Smrg    crisv32:Linux:*:*)
912f66e55a2Smrg	echo ${UNAME_MACHINE}-axis-linux-gnu
91329459361Smrg	exit ;;
91429459361Smrg    frv:Linux:*:*)
915f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
916f66e55a2Smrg	exit ;;
917f66e55a2Smrg    hexagon:Linux:*:*)
918f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
91929459361Smrg	exit ;;
920c3c9b392Smrg    i*86:Linux:*:*)
921c3c9b392Smrg	LIBC=gnu
922c3c9b392Smrg	eval $set_cc_for_build
923c3c9b392Smrg	sed 's/^	//' << EOF >$dummy.c
924c3c9b392Smrg	#ifdef __dietlibc__
925c3c9b392Smrg	LIBC=dietlibc
926c3c9b392Smrg	#endif
927f66e55a2Smrg	#else
928f66e55a2Smrg	#include <features.h>
929f66e55a2Smrg	#ifdef __UCLIBC__
930f66e55a2Smrg	LIBC=uclibc
931f66e55a2Smrg	#endif
932c3c9b392SmrgEOF
933c3c9b392Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
934c3c9b392Smrg	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
935c3c9b392Smrg	exit ;;
93629459361Smrg    ia64:Linux:*:*)
93729459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
93829459361Smrg	exit ;;
93929459361Smrg    m32r*:Linux:*:*)
94029459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
94129459361Smrg	exit ;;
94229459361Smrg    m68*:Linux:*:*)
94329459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
94429459361Smrg	exit ;;
945c3c9b392Smrg    mips:Linux:*:* | mips64:Linux:*:*)
94629459361Smrg	eval $set_cc_for_build
94729459361Smrg	sed 's/^	//' << EOF >$dummy.c
94829459361Smrg	#undef CPU
949c3c9b392Smrg	#undef ${UNAME_MACHINE}
950c3c9b392Smrg	#undef ${UNAME_MACHINE}el
95129459361Smrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
952c3c9b392Smrg	CPU=${UNAME_MACHINE}el
95329459361Smrg	#else
95429459361Smrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
955c3c9b392Smrg	CPU=${UNAME_MACHINE}
95629459361Smrg	#else
95729459361Smrg	CPU=
95829459361Smrg	#endif
95929459361Smrg	#endif
96029459361SmrgEOF
961c3c9b392Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
96229459361Smrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
96329459361Smrg	;;
964f66e55a2Smrg    or1k:Linux:*:*)
965f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
966f66e55a2Smrg	exit ;;
96729459361Smrg    or32:Linux:*:*)
968f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
96929459361Smrg	exit ;;
9705715adc0Smrg    padre:Linux:*:*)
9715715adc0Smrg	echo sparc-unknown-linux-gnu
9725715adc0Smrg	exit ;;
973c3c9b392Smrg    parisc64:Linux:*:* | hppa64:Linux:*:*)
974c3c9b392Smrg	echo hppa64-unknown-linux-gnu
975c3c9b392Smrg	exit ;;
97629459361Smrg    parisc:Linux:*:* | hppa:Linux:*:*)
97729459361Smrg	# Look for CPU level
97829459361Smrg	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
97929459361Smrg	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
98029459361Smrg	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
98129459361Smrg	  *)    echo hppa-unknown-linux-gnu ;;
98229459361Smrg	esac
98329459361Smrg	exit ;;
984c3c9b392Smrg    ppc64:Linux:*:*)
985c3c9b392Smrg	echo powerpc64-unknown-linux-gnu
986c3c9b392Smrg	exit ;;
987c3c9b392Smrg    ppc:Linux:*:*)
988c3c9b392Smrg	echo powerpc-unknown-linux-gnu
98929459361Smrg	exit ;;
99029459361Smrg    s390:Linux:*:* | s390x:Linux:*:*)
99129459361Smrg	echo ${UNAME_MACHINE}-ibm-linux
99229459361Smrg	exit ;;
99329459361Smrg    sh64*:Linux:*:*)
994f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
99529459361Smrg	exit ;;
99629459361Smrg    sh*:Linux:*:*)
99729459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
99829459361Smrg	exit ;;
99929459361Smrg    sparc:Linux:*:* | sparc64:Linux:*:*)
100029459361Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
100129459361Smrg	exit ;;
1002c3c9b392Smrg    tile*:Linux:*:*)
1003f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
1004c3c9b392Smrg	exit ;;
100529459361Smrg    vax:Linux:*:*)
100629459361Smrg	echo ${UNAME_MACHINE}-dec-linux-gnu
100729459361Smrg	exit ;;
100829459361Smrg    x86_64:Linux:*:*)
1009f66e55a2Smrg	LIBC=gnu
1010f66e55a2Smrg	test -r /lib/libc.so && od -An -S13 /lib/libc.so | grep -q __uClibc_main && LIBC=uclibc
1011f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
101229459361Smrg	exit ;;
10135715adc0Smrg    xtensa*:Linux:*:*)
1014f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-linux-gnu
101529459361Smrg	exit ;;
101629459361Smrg    i*86:DYNIX/ptx:4*:*)
101729459361Smrg	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
101829459361Smrg	# earlier versions are messed up and put the nodename in both
101929459361Smrg	# sysname and nodename.
102029459361Smrg	echo i386-sequent-sysv4
102129459361Smrg	exit ;;
102229459361Smrg    i*86:UNIX_SV:4.2MP:2.*)
1023f66e55a2Smrg	# Unixware is an offshoot of SVR4, but it has its own version
1024f66e55a2Smrg	# number series starting with 2...
1025f66e55a2Smrg	# I am not positive that other SVR4 systems won't match this,
102629459361Smrg	# I just have to hope.  -- rms.
1027f66e55a2Smrg	# Use sysv4.2uw... so that sysv4* matches it.
102829459361Smrg	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
102929459361Smrg	exit ;;
103029459361Smrg    i*86:OS/2:*:*)
103129459361Smrg	# If we were able to find `uname', then EMX Unix compatibility
103229459361Smrg	# is probably installed.
103329459361Smrg	echo ${UNAME_MACHINE}-pc-os2-emx
103429459361Smrg	exit ;;
103529459361Smrg    i*86:XTS-300:*:STOP)
103629459361Smrg	echo ${UNAME_MACHINE}-unknown-stop
103729459361Smrg	exit ;;
103829459361Smrg    i*86:atheos:*:*)
103929459361Smrg	echo ${UNAME_MACHINE}-unknown-atheos
104029459361Smrg	exit ;;
104129459361Smrg    i*86:syllable:*:*)
104229459361Smrg	echo ${UNAME_MACHINE}-pc-syllable
104329459361Smrg	exit ;;
1044c3c9b392Smrg    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
104529459361Smrg	echo i386-unknown-lynxos${UNAME_RELEASE}
104629459361Smrg	exit ;;
104729459361Smrg    i*86:*DOS:*:*)
104829459361Smrg	echo ${UNAME_MACHINE}-pc-msdosdjgpp
104929459361Smrg	exit ;;
105029459361Smrg    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
105129459361Smrg	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
105229459361Smrg	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
105329459361Smrg		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
105429459361Smrg	else
105529459361Smrg		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
105629459361Smrg	fi
105729459361Smrg	exit ;;
105829459361Smrg    i*86:*:5:[678]*)
1059f66e55a2Smrg	# UnixWare 7.x, OpenUNIX and OpenServer 6.
106029459361Smrg	case `/bin/uname -X | grep "^Machine"` in
106129459361Smrg	    *486*)	     UNAME_MACHINE=i486 ;;
106229459361Smrg	    *Pentium)	     UNAME_MACHINE=i586 ;;
106329459361Smrg	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
106429459361Smrg	esac
106529459361Smrg	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
106629459361Smrg	exit ;;
106729459361Smrg    i*86:*:3.2:*)
106829459361Smrg	if test -f /usr/options/cb.name; then
106929459361Smrg		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
107029459361Smrg		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
107129459361Smrg	elif /bin/uname -X 2>/dev/null >/dev/null ; then
107229459361Smrg		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
107329459361Smrg		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
107429459361Smrg		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
107529459361Smrg			&& UNAME_MACHINE=i586
107629459361Smrg		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
107729459361Smrg			&& UNAME_MACHINE=i686
107829459361Smrg		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
107929459361Smrg			&& UNAME_MACHINE=i686
108029459361Smrg		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
108129459361Smrg	else
108229459361Smrg		echo ${UNAME_MACHINE}-pc-sysv32
108329459361Smrg	fi
108429459361Smrg	exit ;;
108529459361Smrg    pc:*:*:*)
108629459361Smrg	# Left here for compatibility:
1087f66e55a2Smrg	# uname -m prints for DJGPP always 'pc', but it prints nothing about
1088f66e55a2Smrg	# the processor, so we play safe by assuming i586.
10895715adc0Smrg	# Note: whatever this is, it MUST be the same as what config.sub
10905715adc0Smrg	# prints for the "djgpp" host, or else GDB configury will decide that
10915715adc0Smrg	# this is a cross-build.
10925715adc0Smrg	echo i586-pc-msdosdjgpp
1093f66e55a2Smrg	exit ;;
109429459361Smrg    Intel:Mach:3*:*)
109529459361Smrg	echo i386-pc-mach3
109629459361Smrg	exit ;;
109729459361Smrg    paragon:*:*:*)
109829459361Smrg	echo i860-intel-osf1
109929459361Smrg	exit ;;
110029459361Smrg    i860:*:4.*:*) # i860-SVR4
110129459361Smrg	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
110229459361Smrg	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
110329459361Smrg	else # Add other i860-SVR4 vendors below as they are discovered.
110429459361Smrg	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
110529459361Smrg	fi
110629459361Smrg	exit ;;
110729459361Smrg    mini*:CTIX:SYS*5:*)
110829459361Smrg	# "miniframe"
110929459361Smrg	echo m68010-convergent-sysv
111029459361Smrg	exit ;;
111129459361Smrg    mc68k:UNIX:SYSTEM5:3.51m)
111229459361Smrg	echo m68k-convergent-sysv
111329459361Smrg	exit ;;
111429459361Smrg    M680?0:D-NIX:5.3:*)
111529459361Smrg	echo m68k-diab-dnix
111629459361Smrg	exit ;;
111729459361Smrg    M68*:*:R3V[5678]*:*)
111829459361Smrg	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
111929459361Smrg    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)
112029459361Smrg	OS_REL=''
112129459361Smrg	test -r /etc/.relid \
112229459361Smrg	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
112329459361Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
112429459361Smrg	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
112529459361Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
112629459361Smrg	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
112729459361Smrg    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1128f66e55a2Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1129f66e55a2Smrg	  && { echo i486-ncr-sysv4; exit; } ;;
11305715adc0Smrg    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
11315715adc0Smrg	OS_REL='.3'
11325715adc0Smrg	test -r /etc/.relid \
11335715adc0Smrg	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
11345715adc0Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
11355715adc0Smrg	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
11365715adc0Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
11375715adc0Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
11385715adc0Smrg	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
11395715adc0Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
114029459361Smrg    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
114129459361Smrg	echo m68k-unknown-lynxos${UNAME_RELEASE}
114229459361Smrg	exit ;;
114329459361Smrg    mc68030:UNIX_System_V:4.*:*)
114429459361Smrg	echo m68k-atari-sysv4
114529459361Smrg	exit ;;
114629459361Smrg    TSUNAMI:LynxOS:2.*:*)
114729459361Smrg	echo sparc-unknown-lynxos${UNAME_RELEASE}
114829459361Smrg	exit ;;
114929459361Smrg    rs6000:LynxOS:2.*:*)
115029459361Smrg	echo rs6000-unknown-lynxos${UNAME_RELEASE}
115129459361Smrg	exit ;;
1152c3c9b392Smrg    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
115329459361Smrg	echo powerpc-unknown-lynxos${UNAME_RELEASE}
115429459361Smrg	exit ;;
115529459361Smrg    SM[BE]S:UNIX_SV:*:*)
115629459361Smrg	echo mips-dde-sysv${UNAME_RELEASE}
115729459361Smrg	exit ;;
115829459361Smrg    RM*:ReliantUNIX-*:*:*)
115929459361Smrg	echo mips-sni-sysv4
116029459361Smrg	exit ;;
116129459361Smrg    RM*:SINIX-*:*:*)
116229459361Smrg	echo mips-sni-sysv4
116329459361Smrg	exit ;;
116429459361Smrg    *:SINIX-*:*:*)
116529459361Smrg	if uname -p 2>/dev/null >/dev/null ; then
116629459361Smrg		UNAME_MACHINE=`(uname -p) 2>/dev/null`
116729459361Smrg		echo ${UNAME_MACHINE}-sni-sysv4
116829459361Smrg	else
116929459361Smrg		echo ns32k-sni-sysv
117029459361Smrg	fi
117129459361Smrg	exit ;;
1172f66e55a2Smrg    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1173f66e55a2Smrg			# says <Richard.M.Bartel@ccMail.Census.GOV>
1174f66e55a2Smrg	echo i586-unisys-sysv4
1175f66e55a2Smrg	exit ;;
117629459361Smrg    *:UNIX_System_V:4*:FTX*)
117729459361Smrg	# From Gerald Hewes <hewes@openmarket.com>.
117829459361Smrg	# How about differentiating between stratus architectures? -djm
117929459361Smrg	echo hppa1.1-stratus-sysv4
118029459361Smrg	exit ;;
118129459361Smrg    *:*:*:FTX*)
118229459361Smrg	# From seanf@swdc.stratus.com.
118329459361Smrg	echo i860-stratus-sysv4
118429459361Smrg	exit ;;
118529459361Smrg    i*86:VOS:*:*)
118629459361Smrg	# From Paul.Green@stratus.com.
118729459361Smrg	echo ${UNAME_MACHINE}-stratus-vos
118829459361Smrg	exit ;;
118929459361Smrg    *:VOS:*:*)
119029459361Smrg	# From Paul.Green@stratus.com.
119129459361Smrg	echo hppa1.1-stratus-vos
119229459361Smrg	exit ;;
119329459361Smrg    mc68*:A/UX:*:*)
119429459361Smrg	echo m68k-apple-aux${UNAME_RELEASE}
119529459361Smrg	exit ;;
119629459361Smrg    news*:NEWS-OS:6*:*)
119729459361Smrg	echo mips-sony-newsos6
119829459361Smrg	exit ;;
119929459361Smrg    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
120029459361Smrg	if [ -d /usr/nec ]; then
1201f66e55a2Smrg		echo mips-nec-sysv${UNAME_RELEASE}
120229459361Smrg	else
1203f66e55a2Smrg		echo mips-unknown-sysv${UNAME_RELEASE}
120429459361Smrg	fi
1205f66e55a2Smrg	exit ;;
120629459361Smrg    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
120729459361Smrg	echo powerpc-be-beos
120829459361Smrg	exit ;;
120929459361Smrg    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
121029459361Smrg	echo powerpc-apple-beos
121129459361Smrg	exit ;;
121229459361Smrg    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
121329459361Smrg	echo i586-pc-beos
121429459361Smrg	exit ;;
12155715adc0Smrg    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
12165715adc0Smrg	echo i586-pc-haiku
12175715adc0Smrg	exit ;;
1218f66e55a2Smrg    x86_64:Haiku:*:*)
1219f66e55a2Smrg	echo x86_64-unknown-haiku
1220f66e55a2Smrg	exit ;;
122129459361Smrg    SX-4:SUPER-UX:*:*)
122229459361Smrg	echo sx4-nec-superux${UNAME_RELEASE}
122329459361Smrg	exit ;;
122429459361Smrg    SX-5:SUPER-UX:*:*)
122529459361Smrg	echo sx5-nec-superux${UNAME_RELEASE}
122629459361Smrg	exit ;;
122729459361Smrg    SX-6:SUPER-UX:*:*)
122829459361Smrg	echo sx6-nec-superux${UNAME_RELEASE}
122929459361Smrg	exit ;;
123029459361Smrg    SX-7:SUPER-UX:*:*)
123129459361Smrg	echo sx7-nec-superux${UNAME_RELEASE}
123229459361Smrg	exit ;;
123329459361Smrg    SX-8:SUPER-UX:*:*)
123429459361Smrg	echo sx8-nec-superux${UNAME_RELEASE}
123529459361Smrg	exit ;;
12365715adc0Smrg    SX-8R:SUPER-UX:*:*)
12375715adc0Smrg	echo sx8r-nec-superux${UNAME_RELEASE}
12385715adc0Smrg	exit ;;
123929459361Smrg    Power*:Rhapsody:*:*)
124029459361Smrg	echo powerpc-apple-rhapsody${UNAME_RELEASE}
124129459361Smrg	exit ;;
124229459361Smrg    *:Rhapsody:*:*)
124329459361Smrg	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
124429459361Smrg	exit ;;
124529459361Smrg    *:Darwin:*:*)
124629459361Smrg	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
124729459361Smrg	case $UNAME_PROCESSOR in
1248c3c9b392Smrg	    i386)
1249c3c9b392Smrg		eval $set_cc_for_build
1250c3c9b392Smrg		if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1251c3c9b392Smrg		  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1252c3c9b392Smrg		      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1253c3c9b392Smrg		      grep IS_64BIT_ARCH >/dev/null
1254c3c9b392Smrg		  then
1255c3c9b392Smrg		      UNAME_PROCESSOR="x86_64"
1256c3c9b392Smrg		  fi
1257c3c9b392Smrg		fi ;;
125829459361Smrg	    unknown) UNAME_PROCESSOR=powerpc ;;
125929459361Smrg	esac
126029459361Smrg	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
126129459361Smrg	exit ;;
126229459361Smrg    *:procnto*:*:* | *:QNX:[0123456789]*:*)
126329459361Smrg	UNAME_PROCESSOR=`uname -p`
126429459361Smrg	if test "$UNAME_PROCESSOR" = "x86"; then
126529459361Smrg		UNAME_PROCESSOR=i386
126629459361Smrg		UNAME_MACHINE=pc
126729459361Smrg	fi
126829459361Smrg	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
126929459361Smrg	exit ;;
127029459361Smrg    *:QNX:*:4*)
127129459361Smrg	echo i386-pc-qnx
127229459361Smrg	exit ;;
1273f66e55a2Smrg    NEO-?:NONSTOP_KERNEL:*:*)
1274f66e55a2Smrg	echo neo-tandem-nsk${UNAME_RELEASE}
1275f66e55a2Smrg	exit ;;
1276f66e55a2Smrg    NSE-*:NONSTOP_KERNEL:*:*)
127729459361Smrg	echo nse-tandem-nsk${UNAME_RELEASE}
127829459361Smrg	exit ;;
127929459361Smrg    NSR-?:NONSTOP_KERNEL:*:*)
128029459361Smrg	echo nsr-tandem-nsk${UNAME_RELEASE}
128129459361Smrg	exit ;;
128229459361Smrg    *:NonStop-UX:*:*)
128329459361Smrg	echo mips-compaq-nonstopux
128429459361Smrg	exit ;;
128529459361Smrg    BS2000:POSIX*:*:*)
128629459361Smrg	echo bs2000-siemens-sysv
128729459361Smrg	exit ;;
128829459361Smrg    DS/*:UNIX_System_V:*:*)
128929459361Smrg	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
129029459361Smrg	exit ;;
129129459361Smrg    *:Plan9:*:*)
129229459361Smrg	# "uname -m" is not consistent, so use $cputype instead. 386
129329459361Smrg	# is converted to i386 for consistency with other x86
129429459361Smrg	# operating systems.
129529459361Smrg	if test "$cputype" = "386"; then
129629459361Smrg	    UNAME_MACHINE=i386
129729459361Smrg	else
129829459361Smrg	    UNAME_MACHINE="$cputype"
129929459361Smrg	fi
130029459361Smrg	echo ${UNAME_MACHINE}-unknown-plan9
130129459361Smrg	exit ;;
130229459361Smrg    *:TOPS-10:*:*)
130329459361Smrg	echo pdp10-unknown-tops10
130429459361Smrg	exit ;;
130529459361Smrg    *:TENEX:*:*)
130629459361Smrg	echo pdp10-unknown-tenex
130729459361Smrg	exit ;;
130829459361Smrg    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
130929459361Smrg	echo pdp10-dec-tops20
131029459361Smrg	exit ;;
131129459361Smrg    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
131229459361Smrg	echo pdp10-xkl-tops20
131329459361Smrg	exit ;;
131429459361Smrg    *:TOPS-20:*:*)
131529459361Smrg	echo pdp10-unknown-tops20
131629459361Smrg	exit ;;
131729459361Smrg    *:ITS:*:*)
131829459361Smrg	echo pdp10-unknown-its
131929459361Smrg	exit ;;
132029459361Smrg    SEI:*:*:SEIUX)
1321f66e55a2Smrg	echo mips-sei-seiux${UNAME_RELEASE}
132229459361Smrg	exit ;;
132329459361Smrg    *:DragonFly:*:*)
132429459361Smrg	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
132529459361Smrg	exit ;;
132629459361Smrg    *:*VMS:*:*)
1327f66e55a2Smrg	UNAME_MACHINE=`(uname -p) 2>/dev/null`
132829459361Smrg	case "${UNAME_MACHINE}" in
132929459361Smrg	    A*) echo alpha-dec-vms ; exit ;;
133029459361Smrg	    I*) echo ia64-dec-vms ; exit ;;
133129459361Smrg	    V*) echo vax-dec-vms ; exit ;;
133229459361Smrg	esac ;;
133329459361Smrg    *:XENIX:*:SysV)
133429459361Smrg	echo i386-pc-xenix
133529459361Smrg	exit ;;
133629459361Smrg    i*86:skyos:*:*)
133729459361Smrg	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
133829459361Smrg	exit ;;
133929459361Smrg    i*86:rdos:*:*)
134029459361Smrg	echo ${UNAME_MACHINE}-pc-rdos
134129459361Smrg	exit ;;
13425715adc0Smrg    i*86:AROS:*:*)
13435715adc0Smrg	echo ${UNAME_MACHINE}-pc-aros
13445715adc0Smrg	exit ;;
1345f66e55a2Smrg    x86_64:VMkernel:*:*)
1346f66e55a2Smrg	echo ${UNAME_MACHINE}-unknown-esx
1347f66e55a2Smrg	exit ;;
134829459361Smrgesac
134929459361Smrg
135029459361Smrgeval $set_cc_for_build
135129459361Smrgcat >$dummy.c <<EOF
135229459361Smrg#ifdef _SEQUENT_
135329459361Smrg# include <sys/types.h>
135429459361Smrg# include <sys/utsname.h>
135529459361Smrg#endif
135629459361Smrgmain ()
135729459361Smrg{
135829459361Smrg#if defined (sony)
135929459361Smrg#if defined (MIPSEB)
136029459361Smrg  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
136129459361Smrg     I don't know....  */
136229459361Smrg  printf ("mips-sony-bsd\n"); exit (0);
136329459361Smrg#else
136429459361Smrg#include <sys/param.h>
136529459361Smrg  printf ("m68k-sony-newsos%s\n",
136629459361Smrg#ifdef NEWSOS4
1367f66e55a2Smrg	"4"
136829459361Smrg#else
1369f66e55a2Smrg	""
137029459361Smrg#endif
1371f66e55a2Smrg	); exit (0);
137229459361Smrg#endif
137329459361Smrg#endif
137429459361Smrg
137529459361Smrg#if defined (__arm) && defined (__acorn) && defined (__unix)
137629459361Smrg  printf ("arm-acorn-riscix\n"); exit (0);
137729459361Smrg#endif
137829459361Smrg
137929459361Smrg#if defined (hp300) && !defined (hpux)
138029459361Smrg  printf ("m68k-hp-bsd\n"); exit (0);
138129459361Smrg#endif
138229459361Smrg
138329459361Smrg#if defined (NeXT)
138429459361Smrg#if !defined (__ARCHITECTURE__)
138529459361Smrg#define __ARCHITECTURE__ "m68k"
138629459361Smrg#endif
138729459361Smrg  int version;
138829459361Smrg  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
138929459361Smrg  if (version < 4)
139029459361Smrg    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
139129459361Smrg  else
139229459361Smrg    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
139329459361Smrg  exit (0);
139429459361Smrg#endif
139529459361Smrg
139629459361Smrg#if defined (MULTIMAX) || defined (n16)
139729459361Smrg#if defined (UMAXV)
139829459361Smrg  printf ("ns32k-encore-sysv\n"); exit (0);
139929459361Smrg#else
140029459361Smrg#if defined (CMU)
140129459361Smrg  printf ("ns32k-encore-mach\n"); exit (0);
140229459361Smrg#else
140329459361Smrg  printf ("ns32k-encore-bsd\n"); exit (0);
140429459361Smrg#endif
140529459361Smrg#endif
140629459361Smrg#endif
140729459361Smrg
140829459361Smrg#if defined (__386BSD__)
140929459361Smrg  printf ("i386-pc-bsd\n"); exit (0);
141029459361Smrg#endif
141129459361Smrg
141229459361Smrg#if defined (sequent)
141329459361Smrg#if defined (i386)
141429459361Smrg  printf ("i386-sequent-dynix\n"); exit (0);
141529459361Smrg#endif
141629459361Smrg#if defined (ns32000)
141729459361Smrg  printf ("ns32k-sequent-dynix\n"); exit (0);
141829459361Smrg#endif
141929459361Smrg#endif
142029459361Smrg
142129459361Smrg#if defined (_SEQUENT_)
142229459361Smrg    struct utsname un;
142329459361Smrg
142429459361Smrg    uname(&un);
142529459361Smrg
142629459361Smrg    if (strncmp(un.version, "V2", 2) == 0) {
142729459361Smrg	printf ("i386-sequent-ptx2\n"); exit (0);
142829459361Smrg    }
142929459361Smrg    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
143029459361Smrg	printf ("i386-sequent-ptx1\n"); exit (0);
143129459361Smrg    }
143229459361Smrg    printf ("i386-sequent-ptx\n"); exit (0);
143329459361Smrg
143429459361Smrg#endif
143529459361Smrg
143629459361Smrg#if defined (vax)
143729459361Smrg# if !defined (ultrix)
143829459361Smrg#  include <sys/param.h>
143929459361Smrg#  if defined (BSD)
144029459361Smrg#   if BSD == 43
144129459361Smrg      printf ("vax-dec-bsd4.3\n"); exit (0);
144229459361Smrg#   else
144329459361Smrg#    if BSD == 199006
144429459361Smrg      printf ("vax-dec-bsd4.3reno\n"); exit (0);
144529459361Smrg#    else
144629459361Smrg      printf ("vax-dec-bsd\n"); exit (0);
144729459361Smrg#    endif
144829459361Smrg#   endif
144929459361Smrg#  else
145029459361Smrg    printf ("vax-dec-bsd\n"); exit (0);
145129459361Smrg#  endif
145229459361Smrg# else
145329459361Smrg    printf ("vax-dec-ultrix\n"); exit (0);
145429459361Smrg# endif
145529459361Smrg#endif
145629459361Smrg
145729459361Smrg#if defined (alliant) && defined (i860)
145829459361Smrg  printf ("i860-alliant-bsd\n"); exit (0);
145929459361Smrg#endif
146029459361Smrg
146129459361Smrg  exit (1);
146229459361Smrg}
146329459361SmrgEOF
146429459361Smrg
146529459361Smrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
146629459361Smrg	{ echo "$SYSTEM_NAME"; exit; }
146729459361Smrg
146829459361Smrg# Apollos put the system type in the environment.
146929459361Smrg
147029459361Smrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
147129459361Smrg
147229459361Smrg# Convex versions that predate uname can use getsysinfo(1)
147329459361Smrg
147429459361Smrgif [ -x /usr/convex/getsysinfo ]
147529459361Smrgthen
147629459361Smrg    case `getsysinfo -f cpu_type` in
147729459361Smrg    c1*)
147829459361Smrg	echo c1-convex-bsd
147929459361Smrg	exit ;;
148029459361Smrg    c2*)
148129459361Smrg	if getsysinfo -f scalar_acc
148229459361Smrg	then echo c32-convex-bsd
148329459361Smrg	else echo c2-convex-bsd
148429459361Smrg	fi
148529459361Smrg	exit ;;
148629459361Smrg    c34*)
148729459361Smrg	echo c34-convex-bsd
148829459361Smrg	exit ;;
148929459361Smrg    c38*)
149029459361Smrg	echo c38-convex-bsd
149129459361Smrg	exit ;;
149229459361Smrg    c4*)
149329459361Smrg	echo c4-convex-bsd
149429459361Smrg	exit ;;
149529459361Smrg    esac
149629459361Smrgfi
149729459361Smrg
149829459361Smrgcat >&2 <<EOF
149929459361Smrg$0: unable to guess system type
150029459361Smrg
150129459361SmrgThis script, last modified $timestamp, has failed to recognize
150229459361Smrgthe operating system you are using. It is advised that you
150329459361Smrgdownload the most up to date version of the config scripts from
150429459361Smrg
15055715adc0Smrg  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
150629459361Smrgand
15075715adc0Smrg  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
150829459361Smrg
150929459361SmrgIf the version you run ($0) is already up to date, please
151029459361Smrgsend the following data and any information you think might be
151129459361Smrgpertinent to <config-patches@gnu.org> in order to provide the needed
151229459361Smrginformation to handle your system.
151329459361Smrg
151429459361Smrgconfig.guess timestamp = $timestamp
151529459361Smrg
151629459361Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
151729459361Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
151829459361Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
151929459361Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
152029459361Smrg
152129459361Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
152229459361Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
152329459361Smrg
152429459361Smrghostinfo               = `(hostinfo) 2>/dev/null`
152529459361Smrg/bin/universe          = `(/bin/universe) 2>/dev/null`
152629459361Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
152729459361Smrg/bin/arch              = `(/bin/arch) 2>/dev/null`
152829459361Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
152929459361Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
153029459361Smrg
153129459361SmrgUNAME_MACHINE = ${UNAME_MACHINE}
153229459361SmrgUNAME_RELEASE = ${UNAME_RELEASE}
153329459361SmrgUNAME_SYSTEM  = ${UNAME_SYSTEM}
153429459361SmrgUNAME_VERSION = ${UNAME_VERSION}
153529459361SmrgEOF
153629459361Smrg
153729459361Smrgexit 1
153829459361Smrg
153929459361Smrg# Local variables:
154029459361Smrg# eval: (add-hook 'write-file-hooks 'time-stamp)
154129459361Smrg# time-stamp-start: "timestamp='"
154229459361Smrg# time-stamp-format: "%:y-%02m-%02d"
154329459361Smrg# time-stamp-end: "'"
154429459361Smrg# End:
1545