132001f49Smrg#! /bin/sh
232001f49Smrg# Attempt to guess a canonical system name.
37ec3b29aSmrg#   Copyright 1992-2017 Free Software Foundation, Inc.
432001f49Smrg
57ec3b29aSmrgtimestamp='2017-11-07'
632001f49Smrg
732001f49Smrg# This file is free software; you can redistribute it and/or modify it
832001f49Smrg# under the terms of the GNU General Public License as published by
932001f49Smrg# the Free Software Foundation; either version 3 of the License, or
1032001f49Smrg# (at your option) any later version.
1132001f49Smrg#
1232001f49Smrg# This program is distributed in the hope that it will be useful, but
1332001f49Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of
1432001f49Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
1532001f49Smrg# General Public License for more details.
1632001f49Smrg#
1732001f49Smrg# You should have received a copy of the GNU General Public License
187ec3b29aSmrg# along with this program; if not, see <https://www.gnu.org/licenses/>.
1932001f49Smrg#
2032001f49Smrg# As a special exception to the GNU General Public License, if you
2132001f49Smrg# distribute this file as part of a program that contains a
2232001f49Smrg# configuration script generated by Autoconf, you may include it under
2332001f49Smrg# the same distribution terms that you use for the rest of that
2432001f49Smrg# program.  This Exception is an additional permission under section 7
2532001f49Smrg# of the GNU General Public License, version 3 ("GPLv3").
2632001f49Smrg#
277ec3b29aSmrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
2832001f49Smrg#
2932001f49Smrg# You can get the latest version of this script from:
307ec3b29aSmrg# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
3132001f49Smrg#
327ec3b29aSmrg# Please send patches to <config-patches@gnu.org>.
3332001f49Smrg
3432001f49Smrg
3532001f49Smrgme=`echo "$0" | sed -e 's,.*/,,'`
3632001f49Smrg
3732001f49Smrgusage="\
3832001f49SmrgUsage: $0 [OPTION]
3932001f49Smrg
4032001f49SmrgOutput the configuration name of the system \`$me' is run on.
4132001f49Smrg
427ec3b29aSmrgOptions:
4332001f49Smrg  -h, --help         print this help, then exit
4432001f49Smrg  -t, --time-stamp   print date of last modification, then exit
4532001f49Smrg  -v, --version      print version number, then exit
4632001f49Smrg
4732001f49SmrgReport bugs and patches to <config-patches@gnu.org>."
4832001f49Smrg
4932001f49Smrgversion="\
5032001f49SmrgGNU config.guess ($timestamp)
5132001f49Smrg
5232001f49SmrgOriginally written by Per Bothner.
537ec3b29aSmrgCopyright 1992-2017 Free Software Foundation, Inc.
5432001f49Smrg
5532001f49SmrgThis is free software; see the source for copying conditions.  There is NO
5632001f49Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
5732001f49Smrg
5832001f49Smrghelp="
5932001f49SmrgTry \`$me --help' for more information."
6032001f49Smrg
6132001f49Smrg# Parse command line
6232001f49Smrgwhile test $# -gt 0 ; do
6332001f49Smrg  case $1 in
6432001f49Smrg    --time-stamp | --time* | -t )
6532001f49Smrg       echo "$timestamp" ; exit ;;
6632001f49Smrg    --version | -v )
6732001f49Smrg       echo "$version" ; exit ;;
6832001f49Smrg    --help | --h* | -h )
6932001f49Smrg       echo "$usage"; exit ;;
7032001f49Smrg    -- )     # Stop option processing
7132001f49Smrg       shift; break ;;
7232001f49Smrg    - )	# Use stdin as input.
7332001f49Smrg       break ;;
7432001f49Smrg    -* )
7532001f49Smrg       echo "$me: invalid option $1$help" >&2
7632001f49Smrg       exit 1 ;;
7732001f49Smrg    * )
7832001f49Smrg       break ;;
7932001f49Smrg  esac
8032001f49Smrgdone
8132001f49Smrg
8232001f49Smrgif test $# != 0; then
8332001f49Smrg  echo "$me: too many arguments$help" >&2
8432001f49Smrg  exit 1
8532001f49Smrgfi
8632001f49Smrg
8732001f49Smrgtrap 'exit 1' 1 2 15
8832001f49Smrg
8932001f49Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
9032001f49Smrg# compiler to aid in system detection is discouraged as it requires
9132001f49Smrg# temporary files to be created and, as you can see below, it is a
9232001f49Smrg# headache to deal with in a portable fashion.
9332001f49Smrg
9432001f49Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
9532001f49Smrg# use `HOST_CC' if defined, but it is deprecated.
9632001f49Smrg
9732001f49Smrg# Portable tmp directory creation inspired by the Autoconf team.
9832001f49Smrg
9932001f49Smrgset_cc_for_build='
10032001f49Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
10132001f49Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
10232001f49Smrg: ${TMPDIR=/tmp} ;
10332001f49Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
10432001f49Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
10532001f49Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
10632001f49Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
10732001f49Smrgdummy=$tmp/dummy ;
10832001f49Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
10932001f49Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in
11032001f49Smrg ,,)    echo "int x;" > $dummy.c ;
11132001f49Smrg	for c in cc gcc c89 c99 ; do
11232001f49Smrg	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
11332001f49Smrg	     CC_FOR_BUILD="$c"; break ;
11432001f49Smrg	  fi ;
11532001f49Smrg	done ;
11632001f49Smrg	if test x"$CC_FOR_BUILD" = x ; then
11732001f49Smrg	  CC_FOR_BUILD=no_compiler_found ;
11832001f49Smrg	fi
11932001f49Smrg	;;
12032001f49Smrg ,,*)   CC_FOR_BUILD=$CC ;;
12132001f49Smrg ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
12232001f49Smrgesac ; set_cc_for_build= ;'
12332001f49Smrg
12432001f49Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
12532001f49Smrg# (ghazi@noc.rutgers.edu 1994-08-24)
12632001f49Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then
12732001f49Smrg	PATH=$PATH:/.attbin ; export PATH
12832001f49Smrgfi
12932001f49Smrg
13032001f49SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
13132001f49SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
13232001f49SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
13332001f49SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
13432001f49Smrg
13532001f49Smrgcase "${UNAME_SYSTEM}" in
13632001f49SmrgLinux|GNU|GNU/*)
13732001f49Smrg	# If the system lacks a compiler, then just pick glibc.
13832001f49Smrg	# We could probably try harder.
13932001f49Smrg	LIBC=gnu
14032001f49Smrg
14132001f49Smrg	eval $set_cc_for_build
14232001f49Smrg	cat <<-EOF > $dummy.c
14332001f49Smrg	#include <features.h>
14432001f49Smrg	#if defined(__UCLIBC__)
14532001f49Smrg	LIBC=uclibc
14632001f49Smrg	#elif defined(__dietlibc__)
14732001f49Smrg	LIBC=dietlibc
14832001f49Smrg	#else
14932001f49Smrg	LIBC=gnu
15032001f49Smrg	#endif
15132001f49Smrg	EOF
15232001f49Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
15332001f49Smrg	;;
15432001f49Smrgesac
15532001f49Smrg
15632001f49Smrg# Note: order is significant - the case branches are not exclusive.
15732001f49Smrg
15832001f49Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
15932001f49Smrg    *:NetBSD:*:*)
16032001f49Smrg	# NetBSD (nbsd) targets should (where applicable) match one or
16132001f49Smrg	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
16232001f49Smrg	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
16332001f49Smrg	# switched to ELF, *-*-netbsd* would select the old
16432001f49Smrg	# object file format.  This provides both forward
16532001f49Smrg	# compatibility and a consistent mechanism for selecting the
16632001f49Smrg	# object file format.
16732001f49Smrg	#
16832001f49Smrg	# Note: NetBSD doesn't particularly care about the vendor
16932001f49Smrg	# portion of the name.  We always set it to "unknown".
17032001f49Smrg	sysctl="sysctl -n hw.machine_arch"
1717ec3b29aSmrg	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
1727ec3b29aSmrg	    /sbin/$sysctl 2>/dev/null || \
1737ec3b29aSmrg	    /usr/sbin/$sysctl 2>/dev/null || \
1747ec3b29aSmrg	    echo unknown)`
17532001f49Smrg	case "${UNAME_MACHINE_ARCH}" in
17632001f49Smrg	    armeb) machine=armeb-unknown ;;
17732001f49Smrg	    arm*) machine=arm-unknown ;;
17832001f49Smrg	    sh3el) machine=shl-unknown ;;
17932001f49Smrg	    sh3eb) machine=sh-unknown ;;
18032001f49Smrg	    sh5el) machine=sh5le-unknown ;;
1817ec3b29aSmrg	    earmv*)
1827ec3b29aSmrg		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
1837ec3b29aSmrg		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
1847ec3b29aSmrg		machine=${arch}${endian}-unknown
1857ec3b29aSmrg		;;
18632001f49Smrg	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
18732001f49Smrg	esac
18832001f49Smrg	# The Operating System including object format, if it has switched
1897ec3b29aSmrg	# to ELF recently (or will in the future) and ABI.
19032001f49Smrg	case "${UNAME_MACHINE_ARCH}" in
1917ec3b29aSmrg	    earm*)
1927ec3b29aSmrg		os=netbsdelf
1937ec3b29aSmrg		;;
19432001f49Smrg	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
19532001f49Smrg		eval $set_cc_for_build
19632001f49Smrg		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
19732001f49Smrg			| grep -q __ELF__
19832001f49Smrg		then
19932001f49Smrg		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
20032001f49Smrg		    # Return netbsd for either.  FIX?
20132001f49Smrg		    os=netbsd
20232001f49Smrg		else
20332001f49Smrg		    os=netbsdelf
20432001f49Smrg		fi
20532001f49Smrg		;;
20632001f49Smrg	    *)
20732001f49Smrg		os=netbsd
20832001f49Smrg		;;
20932001f49Smrg	esac
2107ec3b29aSmrg	# Determine ABI tags.
2117ec3b29aSmrg	case "${UNAME_MACHINE_ARCH}" in
2127ec3b29aSmrg	    earm*)
2137ec3b29aSmrg		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
2147ec3b29aSmrg		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
2157ec3b29aSmrg		;;
2167ec3b29aSmrg	esac
21732001f49Smrg	# The OS release
21832001f49Smrg	# Debian GNU/NetBSD machines have a different userland, and
21932001f49Smrg	# thus, need a distinct triplet. However, they do not need
22032001f49Smrg	# kernel version information, so it can be replaced with a
22132001f49Smrg	# suitable tag, in the style of linux-gnu.
22232001f49Smrg	case "${UNAME_VERSION}" in
22332001f49Smrg	    Debian*)
22432001f49Smrg		release='-gnu'
22532001f49Smrg		;;
22632001f49Smrg	    *)
2277ec3b29aSmrg		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
22832001f49Smrg		;;
22932001f49Smrg	esac
23032001f49Smrg	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
23132001f49Smrg	# contains redundant information, the shorter form:
23232001f49Smrg	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
2337ec3b29aSmrg	echo "${machine}-${os}${release}${abi}"
23432001f49Smrg	exit ;;
23532001f49Smrg    *:Bitrig:*:*)
23632001f49Smrg	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
23732001f49Smrg	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
23832001f49Smrg	exit ;;
23932001f49Smrg    *:OpenBSD:*:*)
24032001f49Smrg	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
24132001f49Smrg	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
24232001f49Smrg	exit ;;
2437ec3b29aSmrg    *:LibertyBSD:*:*)
2447ec3b29aSmrg	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
2457ec3b29aSmrg	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
2467ec3b29aSmrg	exit ;;
2477ec3b29aSmrg    *:MidnightBSD:*:*)
2487ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE}
2497ec3b29aSmrg	exit ;;
25032001f49Smrg    *:ekkoBSD:*:*)
25132001f49Smrg	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
25232001f49Smrg	exit ;;
25332001f49Smrg    *:SolidBSD:*:*)
25432001f49Smrg	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
25532001f49Smrg	exit ;;
25632001f49Smrg    macppc:MirBSD:*:*)
25732001f49Smrg	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
25832001f49Smrg	exit ;;
25932001f49Smrg    *:MirBSD:*:*)
26032001f49Smrg	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
26132001f49Smrg	exit ;;
2627ec3b29aSmrg    *:Sortix:*:*)
2637ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-sortix
2647ec3b29aSmrg	exit ;;
2657ec3b29aSmrg    *:Redox:*:*)
2667ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-redox
2677ec3b29aSmrg	exit ;;
26832001f49Smrg    alpha:OSF1:*:*)
26932001f49Smrg	case $UNAME_RELEASE in
27032001f49Smrg	*4.0)
27132001f49Smrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
27232001f49Smrg		;;
27332001f49Smrg	*5.*)
27432001f49Smrg		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
27532001f49Smrg		;;
27632001f49Smrg	esac
27732001f49Smrg	# According to Compaq, /usr/sbin/psrinfo has been available on
27832001f49Smrg	# OSF/1 and Tru64 systems produced since 1995.  I hope that
27932001f49Smrg	# covers most systems running today.  This code pipes the CPU
28032001f49Smrg	# types through head -n 1, so we only detect the type of CPU 0.
28132001f49Smrg	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
28232001f49Smrg	case "$ALPHA_CPU_TYPE" in
28332001f49Smrg	    "EV4 (21064)")
2847ec3b29aSmrg		UNAME_MACHINE=alpha ;;
28532001f49Smrg	    "EV4.5 (21064)")
2867ec3b29aSmrg		UNAME_MACHINE=alpha ;;
28732001f49Smrg	    "LCA4 (21066/21068)")
2887ec3b29aSmrg		UNAME_MACHINE=alpha ;;
28932001f49Smrg	    "EV5 (21164)")
2907ec3b29aSmrg		UNAME_MACHINE=alphaev5 ;;
29132001f49Smrg	    "EV5.6 (21164A)")
2927ec3b29aSmrg		UNAME_MACHINE=alphaev56 ;;
29332001f49Smrg	    "EV5.6 (21164PC)")
2947ec3b29aSmrg		UNAME_MACHINE=alphapca56 ;;
29532001f49Smrg	    "EV5.7 (21164PC)")
2967ec3b29aSmrg		UNAME_MACHINE=alphapca57 ;;
29732001f49Smrg	    "EV6 (21264)")
2987ec3b29aSmrg		UNAME_MACHINE=alphaev6 ;;
29932001f49Smrg	    "EV6.7 (21264A)")
3007ec3b29aSmrg		UNAME_MACHINE=alphaev67 ;;
30132001f49Smrg	    "EV6.8CB (21264C)")
3027ec3b29aSmrg		UNAME_MACHINE=alphaev68 ;;
30332001f49Smrg	    "EV6.8AL (21264B)")
3047ec3b29aSmrg		UNAME_MACHINE=alphaev68 ;;
30532001f49Smrg	    "EV6.8CX (21264D)")
3067ec3b29aSmrg		UNAME_MACHINE=alphaev68 ;;
30732001f49Smrg	    "EV6.9A (21264/EV69A)")
3087ec3b29aSmrg		UNAME_MACHINE=alphaev69 ;;
30932001f49Smrg	    "EV7 (21364)")
3107ec3b29aSmrg		UNAME_MACHINE=alphaev7 ;;
31132001f49Smrg	    "EV7.9 (21364A)")
3127ec3b29aSmrg		UNAME_MACHINE=alphaev79 ;;
31332001f49Smrg	esac
31432001f49Smrg	# A Pn.n version is a patched version.
31532001f49Smrg	# A Vn.n version is a released version.
31632001f49Smrg	# A Tn.n version is a released field test version.
31732001f49Smrg	# A Xn.n version is an unreleased experimental baselevel.
31832001f49Smrg	# 1.2 uses "1.2" for uname -r.
3197ec3b29aSmrg	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
32032001f49Smrg	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
32132001f49Smrg	exitcode=$?
32232001f49Smrg	trap '' 0
32332001f49Smrg	exit $exitcode ;;
32432001f49Smrg    Amiga*:UNIX_System_V:4.0:*)
32532001f49Smrg	echo m68k-unknown-sysv4
32632001f49Smrg	exit ;;
32732001f49Smrg    *:[Aa]miga[Oo][Ss]:*:*)
32832001f49Smrg	echo ${UNAME_MACHINE}-unknown-amigaos
32932001f49Smrg	exit ;;
33032001f49Smrg    *:[Mm]orph[Oo][Ss]:*:*)
33132001f49Smrg	echo ${UNAME_MACHINE}-unknown-morphos
33232001f49Smrg	exit ;;
33332001f49Smrg    *:OS/390:*:*)
33432001f49Smrg	echo i370-ibm-openedition
33532001f49Smrg	exit ;;
33632001f49Smrg    *:z/VM:*:*)
33732001f49Smrg	echo s390-ibm-zvmoe
33832001f49Smrg	exit ;;
33932001f49Smrg    *:OS400:*:*)
34032001f49Smrg	echo powerpc-ibm-os400
34132001f49Smrg	exit ;;
34232001f49Smrg    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
34332001f49Smrg	echo arm-acorn-riscix${UNAME_RELEASE}
34432001f49Smrg	exit ;;
34532001f49Smrg    arm*:riscos:*:*|arm*:RISCOS:*:*)
34632001f49Smrg	echo arm-unknown-riscos
34732001f49Smrg	exit ;;
34832001f49Smrg    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
34932001f49Smrg	echo hppa1.1-hitachi-hiuxmpp
35032001f49Smrg	exit ;;
35132001f49Smrg    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
35232001f49Smrg	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
35332001f49Smrg	if test "`(/bin/universe) 2>/dev/null`" = att ; then
35432001f49Smrg		echo pyramid-pyramid-sysv3
35532001f49Smrg	else
35632001f49Smrg		echo pyramid-pyramid-bsd
35732001f49Smrg	fi
35832001f49Smrg	exit ;;
35932001f49Smrg    NILE*:*:*:dcosx)
36032001f49Smrg	echo pyramid-pyramid-svr4
36132001f49Smrg	exit ;;
36232001f49Smrg    DRS?6000:unix:4.0:6*)
36332001f49Smrg	echo sparc-icl-nx6
36432001f49Smrg	exit ;;
36532001f49Smrg    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
36632001f49Smrg	case `/usr/bin/uname -p` in
36732001f49Smrg	    sparc) echo sparc-icl-nx7; exit ;;
36832001f49Smrg	esac ;;
36932001f49Smrg    s390x:SunOS:*:*)
37032001f49Smrg	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
37132001f49Smrg	exit ;;
37232001f49Smrg    sun4H:SunOS:5.*:*)
37332001f49Smrg	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
37432001f49Smrg	exit ;;
37532001f49Smrg    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
37632001f49Smrg	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
37732001f49Smrg	exit ;;
37832001f49Smrg    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
37932001f49Smrg	echo i386-pc-auroraux${UNAME_RELEASE}
38032001f49Smrg	exit ;;
38132001f49Smrg    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
38232001f49Smrg	eval $set_cc_for_build
3837ec3b29aSmrg	SUN_ARCH=i386
38432001f49Smrg	# If there is a compiler, see if it is configured for 64-bit objects.
38532001f49Smrg	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
38632001f49Smrg	# This test works for both compilers.
3877ec3b29aSmrg	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
38832001f49Smrg	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
3897ec3b29aSmrg		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
39032001f49Smrg		grep IS_64BIT_ARCH >/dev/null
39132001f49Smrg	    then
3927ec3b29aSmrg		SUN_ARCH=x86_64
39332001f49Smrg	    fi
39432001f49Smrg	fi
39532001f49Smrg	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
39632001f49Smrg	exit ;;
39732001f49Smrg    sun4*:SunOS:6*:*)
39832001f49Smrg	# According to config.sub, this is the proper way to canonicalize
39932001f49Smrg	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
40032001f49Smrg	# it's likely to be more like Solaris than SunOS4.
40132001f49Smrg	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
40232001f49Smrg	exit ;;
40332001f49Smrg    sun4*:SunOS:*:*)
40432001f49Smrg	case "`/usr/bin/arch -k`" in
40532001f49Smrg	    Series*|S4*)
40632001f49Smrg		UNAME_RELEASE=`uname -v`
40732001f49Smrg		;;
40832001f49Smrg	esac
40932001f49Smrg	# Japanese Language versions have a version number like `4.1.3-JL'.
41032001f49Smrg	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
41132001f49Smrg	exit ;;
41232001f49Smrg    sun3*:SunOS:*:*)
41332001f49Smrg	echo m68k-sun-sunos${UNAME_RELEASE}
41432001f49Smrg	exit ;;
41532001f49Smrg    sun*:*:4.2BSD:*)
41632001f49Smrg	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
4177ec3b29aSmrg	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
41832001f49Smrg	case "`/bin/arch`" in
41932001f49Smrg	    sun3)
42032001f49Smrg		echo m68k-sun-sunos${UNAME_RELEASE}
42132001f49Smrg		;;
42232001f49Smrg	    sun4)
42332001f49Smrg		echo sparc-sun-sunos${UNAME_RELEASE}
42432001f49Smrg		;;
42532001f49Smrg	esac
42632001f49Smrg	exit ;;
42732001f49Smrg    aushp:SunOS:*:*)
42832001f49Smrg	echo sparc-auspex-sunos${UNAME_RELEASE}
42932001f49Smrg	exit ;;
43032001f49Smrg    # The situation for MiNT is a little confusing.  The machine name
43132001f49Smrg    # can be virtually everything (everything which is not
43232001f49Smrg    # "atarist" or "atariste" at least should have a processor
43332001f49Smrg    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
43432001f49Smrg    # to the lowercase version "mint" (or "freemint").  Finally
43532001f49Smrg    # the system name "TOS" denotes a system which is actually not
43632001f49Smrg    # MiNT.  But MiNT is downward compatible to TOS, so this should
43732001f49Smrg    # be no problem.
43832001f49Smrg    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
43932001f49Smrg	echo m68k-atari-mint${UNAME_RELEASE}
44032001f49Smrg	exit ;;
44132001f49Smrg    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
44232001f49Smrg	echo m68k-atari-mint${UNAME_RELEASE}
44332001f49Smrg	exit ;;
44432001f49Smrg    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
44532001f49Smrg	echo m68k-atari-mint${UNAME_RELEASE}
44632001f49Smrg	exit ;;
44732001f49Smrg    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
44832001f49Smrg	echo m68k-milan-mint${UNAME_RELEASE}
44932001f49Smrg	exit ;;
45032001f49Smrg    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
45132001f49Smrg	echo m68k-hades-mint${UNAME_RELEASE}
45232001f49Smrg	exit ;;
45332001f49Smrg    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
45432001f49Smrg	echo m68k-unknown-mint${UNAME_RELEASE}
45532001f49Smrg	exit ;;
45632001f49Smrg    m68k:machten:*:*)
45732001f49Smrg	echo m68k-apple-machten${UNAME_RELEASE}
45832001f49Smrg	exit ;;
45932001f49Smrg    powerpc:machten:*:*)
46032001f49Smrg	echo powerpc-apple-machten${UNAME_RELEASE}
46132001f49Smrg	exit ;;
46232001f49Smrg    RISC*:Mach:*:*)
46332001f49Smrg	echo mips-dec-mach_bsd4.3
46432001f49Smrg	exit ;;
46532001f49Smrg    RISC*:ULTRIX:*:*)
46632001f49Smrg	echo mips-dec-ultrix${UNAME_RELEASE}
46732001f49Smrg	exit ;;
46832001f49Smrg    VAX*:ULTRIX*:*:*)
46932001f49Smrg	echo vax-dec-ultrix${UNAME_RELEASE}
47032001f49Smrg	exit ;;
47132001f49Smrg    2020:CLIX:*:* | 2430:CLIX:*:*)
47232001f49Smrg	echo clipper-intergraph-clix${UNAME_RELEASE}
47332001f49Smrg	exit ;;
47432001f49Smrg    mips:*:*:UMIPS | mips:*:*:RISCos)
47532001f49Smrg	eval $set_cc_for_build
47632001f49Smrg	sed 's/^	//' << EOF >$dummy.c
47732001f49Smrg#ifdef __cplusplus
47832001f49Smrg#include <stdio.h>  /* for printf() prototype */
47932001f49Smrg	int main (int argc, char *argv[]) {
48032001f49Smrg#else
48132001f49Smrg	int main (argc, argv) int argc; char *argv[]; {
48232001f49Smrg#endif
48332001f49Smrg	#if defined (host_mips) && defined (MIPSEB)
48432001f49Smrg	#if defined (SYSTYPE_SYSV)
4857ec3b29aSmrg	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
48632001f49Smrg	#endif
48732001f49Smrg	#if defined (SYSTYPE_SVR4)
4887ec3b29aSmrg	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
48932001f49Smrg	#endif
49032001f49Smrg	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
4917ec3b29aSmrg	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
49232001f49Smrg	#endif
49332001f49Smrg	#endif
49432001f49Smrg	  exit (-1);
49532001f49Smrg	}
49632001f49SmrgEOF
49732001f49Smrg	$CC_FOR_BUILD -o $dummy $dummy.c &&
49832001f49Smrg	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
49932001f49Smrg	  SYSTEM_NAME=`$dummy $dummyarg` &&
50032001f49Smrg	    { echo "$SYSTEM_NAME"; exit; }
50132001f49Smrg	echo mips-mips-riscos${UNAME_RELEASE}
50232001f49Smrg	exit ;;
50332001f49Smrg    Motorola:PowerMAX_OS:*:*)
50432001f49Smrg	echo powerpc-motorola-powermax
50532001f49Smrg	exit ;;
50632001f49Smrg    Motorola:*:4.3:PL8-*)
50732001f49Smrg	echo powerpc-harris-powermax
50832001f49Smrg	exit ;;
50932001f49Smrg    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
51032001f49Smrg	echo powerpc-harris-powermax
51132001f49Smrg	exit ;;
51232001f49Smrg    Night_Hawk:Power_UNIX:*:*)
51332001f49Smrg	echo powerpc-harris-powerunix
51432001f49Smrg	exit ;;
51532001f49Smrg    m88k:CX/UX:7*:*)
51632001f49Smrg	echo m88k-harris-cxux7
51732001f49Smrg	exit ;;
51832001f49Smrg    m88k:*:4*:R4*)
51932001f49Smrg	echo m88k-motorola-sysv4
52032001f49Smrg	exit ;;
52132001f49Smrg    m88k:*:3*:R3*)
52232001f49Smrg	echo m88k-motorola-sysv3
52332001f49Smrg	exit ;;
52432001f49Smrg    AViiON:dgux:*:*)
52532001f49Smrg	# DG/UX returns AViiON for all architectures
52632001f49Smrg	UNAME_PROCESSOR=`/usr/bin/uname -p`
52732001f49Smrg	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
52832001f49Smrg	then
52932001f49Smrg	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
53032001f49Smrg	       [ ${TARGET_BINARY_INTERFACE}x = x ]
53132001f49Smrg	    then
53232001f49Smrg		echo m88k-dg-dgux${UNAME_RELEASE}
53332001f49Smrg	    else
53432001f49Smrg		echo m88k-dg-dguxbcs${UNAME_RELEASE}
53532001f49Smrg	    fi
53632001f49Smrg	else
53732001f49Smrg	    echo i586-dg-dgux${UNAME_RELEASE}
53832001f49Smrg	fi
53932001f49Smrg	exit ;;
54032001f49Smrg    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
54132001f49Smrg	echo m88k-dolphin-sysv3
54232001f49Smrg	exit ;;
54332001f49Smrg    M88*:*:R3*:*)
54432001f49Smrg	# Delta 88k system running SVR3
54532001f49Smrg	echo m88k-motorola-sysv3
54632001f49Smrg	exit ;;
54732001f49Smrg    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
54832001f49Smrg	echo m88k-tektronix-sysv3
54932001f49Smrg	exit ;;
55032001f49Smrg    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
55132001f49Smrg	echo m68k-tektronix-bsd
55232001f49Smrg	exit ;;
55332001f49Smrg    *:IRIX*:*:*)
55432001f49Smrg	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
55532001f49Smrg	exit ;;
55632001f49Smrg    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
55732001f49Smrg	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
55832001f49Smrg	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
55932001f49Smrg    i*86:AIX:*:*)
56032001f49Smrg	echo i386-ibm-aix
56132001f49Smrg	exit ;;
56232001f49Smrg    ia64:AIX:*:*)
56332001f49Smrg	if [ -x /usr/bin/oslevel ] ; then
56432001f49Smrg		IBM_REV=`/usr/bin/oslevel`
56532001f49Smrg	else
56632001f49Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
56732001f49Smrg	fi
56832001f49Smrg	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
56932001f49Smrg	exit ;;
57032001f49Smrg    *:AIX:2:3)
57132001f49Smrg	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
57232001f49Smrg		eval $set_cc_for_build
57332001f49Smrg		sed 's/^		//' << EOF >$dummy.c
57432001f49Smrg		#include <sys/systemcfg.h>
57532001f49Smrg
57632001f49Smrg		main()
57732001f49Smrg			{
57832001f49Smrg			if (!__power_pc())
57932001f49Smrg				exit(1);
58032001f49Smrg			puts("powerpc-ibm-aix3.2.5");
58132001f49Smrg			exit(0);
58232001f49Smrg			}
58332001f49SmrgEOF
58432001f49Smrg		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
58532001f49Smrg		then
58632001f49Smrg			echo "$SYSTEM_NAME"
58732001f49Smrg		else
58832001f49Smrg			echo rs6000-ibm-aix3.2.5
58932001f49Smrg		fi
59032001f49Smrg	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
59132001f49Smrg		echo rs6000-ibm-aix3.2.4
59232001f49Smrg	else
59332001f49Smrg		echo rs6000-ibm-aix3.2
59432001f49Smrg	fi
59532001f49Smrg	exit ;;
59632001f49Smrg    *:AIX:*:[4567])
59732001f49Smrg	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
59832001f49Smrg	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
59932001f49Smrg		IBM_ARCH=rs6000
60032001f49Smrg	else
60132001f49Smrg		IBM_ARCH=powerpc
60232001f49Smrg	fi
6037ec3b29aSmrg	if [ -x /usr/bin/lslpp ] ; then
6047ec3b29aSmrg		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
6057ec3b29aSmrg			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
60632001f49Smrg	else
60732001f49Smrg		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
60832001f49Smrg	fi
60932001f49Smrg	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
61032001f49Smrg	exit ;;
61132001f49Smrg    *:AIX:*:*)
61232001f49Smrg	echo rs6000-ibm-aix
61332001f49Smrg	exit ;;
6147ec3b29aSmrg    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
61532001f49Smrg	echo romp-ibm-bsd4.4
61632001f49Smrg	exit ;;
61732001f49Smrg    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
61832001f49Smrg	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
61932001f49Smrg	exit ;;                             # report: romp-ibm BSD 4.3
62032001f49Smrg    *:BOSX:*:*)
62132001f49Smrg	echo rs6000-bull-bosx
62232001f49Smrg	exit ;;
62332001f49Smrg    DPX/2?00:B.O.S.:*:*)
62432001f49Smrg	echo m68k-bull-sysv3
62532001f49Smrg	exit ;;
62632001f49Smrg    9000/[34]??:4.3bsd:1.*:*)
62732001f49Smrg	echo m68k-hp-bsd
62832001f49Smrg	exit ;;
62932001f49Smrg    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
63032001f49Smrg	echo m68k-hp-bsd4.4
63132001f49Smrg	exit ;;
63232001f49Smrg    9000/[34678]??:HP-UX:*:*)
63332001f49Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
63432001f49Smrg	case "${UNAME_MACHINE}" in
6357ec3b29aSmrg	    9000/31?)            HP_ARCH=m68000 ;;
6367ec3b29aSmrg	    9000/[34]??)         HP_ARCH=m68k ;;
63732001f49Smrg	    9000/[678][0-9][0-9])
63832001f49Smrg		if [ -x /usr/bin/getconf ]; then
63932001f49Smrg		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
64032001f49Smrg		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
64132001f49Smrg		    case "${sc_cpu_version}" in
6427ec3b29aSmrg		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
6437ec3b29aSmrg		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
64432001f49Smrg		      532)                      # CPU_PA_RISC2_0
64532001f49Smrg			case "${sc_kernel_bits}" in
6467ec3b29aSmrg			  32) HP_ARCH=hppa2.0n ;;
6477ec3b29aSmrg			  64) HP_ARCH=hppa2.0w ;;
6487ec3b29aSmrg			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
64932001f49Smrg			esac ;;
65032001f49Smrg		    esac
65132001f49Smrg		fi
65232001f49Smrg		if [ "${HP_ARCH}" = "" ]; then
65332001f49Smrg		    eval $set_cc_for_build
65432001f49Smrg		    sed 's/^		//' << EOF >$dummy.c
65532001f49Smrg
65632001f49Smrg		#define _HPUX_SOURCE
65732001f49Smrg		#include <stdlib.h>
65832001f49Smrg		#include <unistd.h>
65932001f49Smrg
66032001f49Smrg		int main ()
66132001f49Smrg		{
66232001f49Smrg		#if defined(_SC_KERNEL_BITS)
66332001f49Smrg		    long bits = sysconf(_SC_KERNEL_BITS);
66432001f49Smrg		#endif
66532001f49Smrg		    long cpu  = sysconf (_SC_CPU_VERSION);
66632001f49Smrg
66732001f49Smrg		    switch (cpu)
66832001f49Smrg			{
66932001f49Smrg			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
67032001f49Smrg			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
67132001f49Smrg			case CPU_PA_RISC2_0:
67232001f49Smrg		#if defined(_SC_KERNEL_BITS)
67332001f49Smrg			    switch (bits)
67432001f49Smrg				{
67532001f49Smrg				case 64: puts ("hppa2.0w"); break;
67632001f49Smrg				case 32: puts ("hppa2.0n"); break;
67732001f49Smrg				default: puts ("hppa2.0"); break;
67832001f49Smrg				} break;
67932001f49Smrg		#else  /* !defined(_SC_KERNEL_BITS) */
68032001f49Smrg			    puts ("hppa2.0"); break;
68132001f49Smrg		#endif
68232001f49Smrg			default: puts ("hppa1.0"); break;
68332001f49Smrg			}
68432001f49Smrg		    exit (0);
68532001f49Smrg		}
68632001f49SmrgEOF
6877ec3b29aSmrg		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
68832001f49Smrg		    test -z "$HP_ARCH" && HP_ARCH=hppa
68932001f49Smrg		fi ;;
69032001f49Smrg	esac
6917ec3b29aSmrg	if [ ${HP_ARCH} = hppa2.0w ]
69232001f49Smrg	then
69332001f49Smrg	    eval $set_cc_for_build
69432001f49Smrg
69532001f49Smrg	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
69632001f49Smrg	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
69732001f49Smrg	    # generating 64-bit code.  GNU and HP use different nomenclature:
69832001f49Smrg	    #
69932001f49Smrg	    # $ CC_FOR_BUILD=cc ./config.guess
70032001f49Smrg	    # => hppa2.0w-hp-hpux11.23
70132001f49Smrg	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
70232001f49Smrg	    # => hppa64-hp-hpux11.23
70332001f49Smrg
7047ec3b29aSmrg	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
70532001f49Smrg		grep -q __LP64__
70632001f49Smrg	    then
7077ec3b29aSmrg		HP_ARCH=hppa2.0w
70832001f49Smrg	    else
7097ec3b29aSmrg		HP_ARCH=hppa64
71032001f49Smrg	    fi
71132001f49Smrg	fi
71232001f49Smrg	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
71332001f49Smrg	exit ;;
71432001f49Smrg    ia64:HP-UX:*:*)
71532001f49Smrg	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
71632001f49Smrg	echo ia64-hp-hpux${HPUX_REV}
71732001f49Smrg	exit ;;
71832001f49Smrg    3050*:HI-UX:*:*)
71932001f49Smrg	eval $set_cc_for_build
72032001f49Smrg	sed 's/^	//' << EOF >$dummy.c
72132001f49Smrg	#include <unistd.h>
72232001f49Smrg	int
72332001f49Smrg	main ()
72432001f49Smrg	{
72532001f49Smrg	  long cpu = sysconf (_SC_CPU_VERSION);
72632001f49Smrg	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
72732001f49Smrg	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
72832001f49Smrg	     results, however.  */
72932001f49Smrg	  if (CPU_IS_PA_RISC (cpu))
73032001f49Smrg	    {
73132001f49Smrg	      switch (cpu)
73232001f49Smrg		{
73332001f49Smrg		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
73432001f49Smrg		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
73532001f49Smrg		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
73632001f49Smrg		  default: puts ("hppa-hitachi-hiuxwe2"); break;
73732001f49Smrg		}
73832001f49Smrg	    }
73932001f49Smrg	  else if (CPU_IS_HP_MC68K (cpu))
74032001f49Smrg	    puts ("m68k-hitachi-hiuxwe2");
74132001f49Smrg	  else puts ("unknown-hitachi-hiuxwe2");
74232001f49Smrg	  exit (0);
74332001f49Smrg	}
74432001f49SmrgEOF
74532001f49Smrg	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
74632001f49Smrg		{ echo "$SYSTEM_NAME"; exit; }
74732001f49Smrg	echo unknown-hitachi-hiuxwe2
74832001f49Smrg	exit ;;
7497ec3b29aSmrg    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
75032001f49Smrg	echo hppa1.1-hp-bsd
75132001f49Smrg	exit ;;
75232001f49Smrg    9000/8??:4.3bsd:*:*)
75332001f49Smrg	echo hppa1.0-hp-bsd
75432001f49Smrg	exit ;;
75532001f49Smrg    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
75632001f49Smrg	echo hppa1.0-hp-mpeix
75732001f49Smrg	exit ;;
7587ec3b29aSmrg    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
75932001f49Smrg	echo hppa1.1-hp-osf
76032001f49Smrg	exit ;;
76132001f49Smrg    hp8??:OSF1:*:*)
76232001f49Smrg	echo hppa1.0-hp-osf
76332001f49Smrg	exit ;;
76432001f49Smrg    i*86:OSF1:*:*)
76532001f49Smrg	if [ -x /usr/sbin/sysversion ] ; then
76632001f49Smrg	    echo ${UNAME_MACHINE}-unknown-osf1mk
76732001f49Smrg	else
76832001f49Smrg	    echo ${UNAME_MACHINE}-unknown-osf1
76932001f49Smrg	fi
77032001f49Smrg	exit ;;
77132001f49Smrg    parisc*:Lites*:*:*)
77232001f49Smrg	echo hppa1.1-hp-lites
77332001f49Smrg	exit ;;
77432001f49Smrg    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
77532001f49Smrg	echo c1-convex-bsd
77632001f49Smrg	exit ;;
77732001f49Smrg    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
77832001f49Smrg	if getsysinfo -f scalar_acc
77932001f49Smrg	then echo c32-convex-bsd
78032001f49Smrg	else echo c2-convex-bsd
78132001f49Smrg	fi
78232001f49Smrg	exit ;;
78332001f49Smrg    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
78432001f49Smrg	echo c34-convex-bsd
78532001f49Smrg	exit ;;
78632001f49Smrg    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
78732001f49Smrg	echo c38-convex-bsd
78832001f49Smrg	exit ;;
78932001f49Smrg    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
79032001f49Smrg	echo c4-convex-bsd
79132001f49Smrg	exit ;;
79232001f49Smrg    CRAY*Y-MP:*:*:*)
79332001f49Smrg	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
79432001f49Smrg	exit ;;
79532001f49Smrg    CRAY*[A-Z]90:*:*:*)
79632001f49Smrg	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
79732001f49Smrg	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
79832001f49Smrg	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
79932001f49Smrg	      -e 's/\.[^.]*$/.X/'
80032001f49Smrg	exit ;;
80132001f49Smrg    CRAY*TS:*:*:*)
80232001f49Smrg	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
80332001f49Smrg	exit ;;
80432001f49Smrg    CRAY*T3E:*:*:*)
80532001f49Smrg	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
80632001f49Smrg	exit ;;
80732001f49Smrg    CRAY*SV1:*:*:*)
80832001f49Smrg	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
80932001f49Smrg	exit ;;
81032001f49Smrg    *:UNICOS/mp:*:*)
81132001f49Smrg	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
81232001f49Smrg	exit ;;
81332001f49Smrg    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
8147ec3b29aSmrg	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
8157ec3b29aSmrg	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
81632001f49Smrg	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
81732001f49Smrg	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
81832001f49Smrg	exit ;;
81932001f49Smrg    5000:UNIX_System_V:4.*:*)
8207ec3b29aSmrg	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
8217ec3b29aSmrg	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
82232001f49Smrg	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
82332001f49Smrg	exit ;;
82432001f49Smrg    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
82532001f49Smrg	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
82632001f49Smrg	exit ;;
82732001f49Smrg    sparc*:BSD/OS:*:*)
82832001f49Smrg	echo sparc-unknown-bsdi${UNAME_RELEASE}
82932001f49Smrg	exit ;;
83032001f49Smrg    *:BSD/OS:*:*)
83132001f49Smrg	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
83232001f49Smrg	exit ;;
83332001f49Smrg    *:FreeBSD:*:*)
83432001f49Smrg	UNAME_PROCESSOR=`/usr/bin/uname -p`
83532001f49Smrg	case ${UNAME_PROCESSOR} in
83632001f49Smrg	    amd64)
8377ec3b29aSmrg		UNAME_PROCESSOR=x86_64 ;;
8387ec3b29aSmrg	    i386)
8397ec3b29aSmrg		UNAME_PROCESSOR=i586 ;;
84032001f49Smrg	esac
8417ec3b29aSmrg	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
84232001f49Smrg	exit ;;
84332001f49Smrg    i*:CYGWIN*:*)
84432001f49Smrg	echo ${UNAME_MACHINE}-pc-cygwin
84532001f49Smrg	exit ;;
84632001f49Smrg    *:MINGW64*:*)
84732001f49Smrg	echo ${UNAME_MACHINE}-pc-mingw64
84832001f49Smrg	exit ;;
84932001f49Smrg    *:MINGW*:*)
85032001f49Smrg	echo ${UNAME_MACHINE}-pc-mingw32
85132001f49Smrg	exit ;;
85232001f49Smrg    *:MSYS*:*)
85332001f49Smrg	echo ${UNAME_MACHINE}-pc-msys
85432001f49Smrg	exit ;;
85532001f49Smrg    i*:PW*:*)
85632001f49Smrg	echo ${UNAME_MACHINE}-pc-pw32
85732001f49Smrg	exit ;;
85832001f49Smrg    *:Interix*:*)
85932001f49Smrg	case ${UNAME_MACHINE} in
86032001f49Smrg	    x86)
86132001f49Smrg		echo i586-pc-interix${UNAME_RELEASE}
86232001f49Smrg		exit ;;
86332001f49Smrg	    authenticamd | genuineintel | EM64T)
86432001f49Smrg		echo x86_64-unknown-interix${UNAME_RELEASE}
86532001f49Smrg		exit ;;
86632001f49Smrg	    IA64)
86732001f49Smrg		echo ia64-unknown-interix${UNAME_RELEASE}
86832001f49Smrg		exit ;;
86932001f49Smrg	esac ;;
87032001f49Smrg    i*:UWIN*:*)
87132001f49Smrg	echo ${UNAME_MACHINE}-pc-uwin
87232001f49Smrg	exit ;;
87332001f49Smrg    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
87432001f49Smrg	echo x86_64-unknown-cygwin
87532001f49Smrg	exit ;;
87632001f49Smrg    prep*:SunOS:5.*:*)
87732001f49Smrg	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
87832001f49Smrg	exit ;;
87932001f49Smrg    *:GNU:*:*)
88032001f49Smrg	# the GNU system
88132001f49Smrg	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
88232001f49Smrg	exit ;;
88332001f49Smrg    *:GNU/*:*:*)
88432001f49Smrg	# other systems with GNU libc and userland
8857ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
88632001f49Smrg	exit ;;
88732001f49Smrg    i*86:Minix:*:*)
88832001f49Smrg	echo ${UNAME_MACHINE}-pc-minix
88932001f49Smrg	exit ;;
89032001f49Smrg    aarch64:Linux:*:*)
89132001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
89232001f49Smrg	exit ;;
89332001f49Smrg    aarch64_be:Linux:*:*)
89432001f49Smrg	UNAME_MACHINE=aarch64_be
89532001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
89632001f49Smrg	exit ;;
89732001f49Smrg    alpha:Linux:*:*)
89832001f49Smrg	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
89932001f49Smrg	  EV5)   UNAME_MACHINE=alphaev5 ;;
90032001f49Smrg	  EV56)  UNAME_MACHINE=alphaev56 ;;
90132001f49Smrg	  PCA56) UNAME_MACHINE=alphapca56 ;;
90232001f49Smrg	  PCA57) UNAME_MACHINE=alphapca56 ;;
90332001f49Smrg	  EV6)   UNAME_MACHINE=alphaev6 ;;
90432001f49Smrg	  EV67)  UNAME_MACHINE=alphaev67 ;;
90532001f49Smrg	  EV68*) UNAME_MACHINE=alphaev68 ;;
90632001f49Smrg	esac
90732001f49Smrg	objdump --private-headers /bin/sh | grep -q ld.so.1
9087ec3b29aSmrg	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
90932001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
91032001f49Smrg	exit ;;
91132001f49Smrg    arc:Linux:*:* | arceb:Linux:*:*)
91232001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
91332001f49Smrg	exit ;;
91432001f49Smrg    arm*:Linux:*:*)
91532001f49Smrg	eval $set_cc_for_build
91632001f49Smrg	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
91732001f49Smrg	    | grep -q __ARM_EABI__
91832001f49Smrg	then
91932001f49Smrg	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
92032001f49Smrg	else
92132001f49Smrg	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
92232001f49Smrg		| grep -q __ARM_PCS_VFP
92332001f49Smrg	    then
92432001f49Smrg		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
92532001f49Smrg	    else
92632001f49Smrg		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
92732001f49Smrg	    fi
92832001f49Smrg	fi
92932001f49Smrg	exit ;;
93032001f49Smrg    avr32*:Linux:*:*)
93132001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
93232001f49Smrg	exit ;;
93332001f49Smrg    cris:Linux:*:*)
93432001f49Smrg	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
93532001f49Smrg	exit ;;
93632001f49Smrg    crisv32:Linux:*:*)
93732001f49Smrg	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
93832001f49Smrg	exit ;;
9397ec3b29aSmrg    e2k:Linux:*:*)
9407ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9417ec3b29aSmrg	exit ;;
94232001f49Smrg    frv:Linux:*:*)
94332001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
94432001f49Smrg	exit ;;
94532001f49Smrg    hexagon:Linux:*:*)
94632001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
94732001f49Smrg	exit ;;
94832001f49Smrg    i*86:Linux:*:*)
94932001f49Smrg	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
95032001f49Smrg	exit ;;
95132001f49Smrg    ia64:Linux:*:*)
95232001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
95332001f49Smrg	exit ;;
9547ec3b29aSmrg    k1om:Linux:*:*)
9557ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9567ec3b29aSmrg	exit ;;
95732001f49Smrg    m32r*:Linux:*:*)
95832001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
95932001f49Smrg	exit ;;
96032001f49Smrg    m68*:Linux:*:*)
96132001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
96232001f49Smrg	exit ;;
96332001f49Smrg    mips:Linux:*:* | mips64:Linux:*:*)
96432001f49Smrg	eval $set_cc_for_build
96532001f49Smrg	sed 's/^	//' << EOF >$dummy.c
96632001f49Smrg	#undef CPU
96732001f49Smrg	#undef ${UNAME_MACHINE}
96832001f49Smrg	#undef ${UNAME_MACHINE}el
96932001f49Smrg	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
97032001f49Smrg	CPU=${UNAME_MACHINE}el
97132001f49Smrg	#else
97232001f49Smrg	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
97332001f49Smrg	CPU=${UNAME_MACHINE}
97432001f49Smrg	#else
97532001f49Smrg	CPU=
97632001f49Smrg	#endif
97732001f49Smrg	#endif
97832001f49SmrgEOF
97932001f49Smrg	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
98032001f49Smrg	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
98132001f49Smrg	;;
9827ec3b29aSmrg    mips64el:Linux:*:*)
9837ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
9847ec3b29aSmrg	exit ;;
98532001f49Smrg    openrisc*:Linux:*:*)
98632001f49Smrg	echo or1k-unknown-linux-${LIBC}
98732001f49Smrg	exit ;;
98832001f49Smrg    or32:Linux:*:* | or1k*:Linux:*:*)
98932001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
99032001f49Smrg	exit ;;
99132001f49Smrg    padre:Linux:*:*)
99232001f49Smrg	echo sparc-unknown-linux-${LIBC}
99332001f49Smrg	exit ;;
99432001f49Smrg    parisc64:Linux:*:* | hppa64:Linux:*:*)
99532001f49Smrg	echo hppa64-unknown-linux-${LIBC}
99632001f49Smrg	exit ;;
99732001f49Smrg    parisc:Linux:*:* | hppa:Linux:*:*)
99832001f49Smrg	# Look for CPU level
99932001f49Smrg	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
100032001f49Smrg	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
100132001f49Smrg	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
100232001f49Smrg	  *)    echo hppa-unknown-linux-${LIBC} ;;
100332001f49Smrg	esac
100432001f49Smrg	exit ;;
100532001f49Smrg    ppc64:Linux:*:*)
100632001f49Smrg	echo powerpc64-unknown-linux-${LIBC}
100732001f49Smrg	exit ;;
100832001f49Smrg    ppc:Linux:*:*)
100932001f49Smrg	echo powerpc-unknown-linux-${LIBC}
101032001f49Smrg	exit ;;
101132001f49Smrg    ppc64le:Linux:*:*)
101232001f49Smrg	echo powerpc64le-unknown-linux-${LIBC}
101332001f49Smrg	exit ;;
101432001f49Smrg    ppcle:Linux:*:*)
101532001f49Smrg	echo powerpcle-unknown-linux-${LIBC}
101632001f49Smrg	exit ;;
10177ec3b29aSmrg    riscv32:Linux:*:* | riscv64:Linux:*:*)
10187ec3b29aSmrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
10197ec3b29aSmrg	exit ;;
102032001f49Smrg    s390:Linux:*:* | s390x:Linux:*:*)
102132001f49Smrg	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
102232001f49Smrg	exit ;;
102332001f49Smrg    sh64*:Linux:*:*)
102432001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
102532001f49Smrg	exit ;;
102632001f49Smrg    sh*:Linux:*:*)
102732001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
102832001f49Smrg	exit ;;
102932001f49Smrg    sparc:Linux:*:* | sparc64:Linux:*:*)
103032001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
103132001f49Smrg	exit ;;
103232001f49Smrg    tile*:Linux:*:*)
103332001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
103432001f49Smrg	exit ;;
103532001f49Smrg    vax:Linux:*:*)
103632001f49Smrg	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
103732001f49Smrg	exit ;;
103832001f49Smrg    x86_64:Linux:*:*)
10397ec3b29aSmrg	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
104032001f49Smrg	exit ;;
104132001f49Smrg    xtensa*:Linux:*:*)
104232001f49Smrg	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
104332001f49Smrg	exit ;;
104432001f49Smrg    i*86:DYNIX/ptx:4*:*)
104532001f49Smrg	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
104632001f49Smrg	# earlier versions are messed up and put the nodename in both
104732001f49Smrg	# sysname and nodename.
104832001f49Smrg	echo i386-sequent-sysv4
104932001f49Smrg	exit ;;
105032001f49Smrg    i*86:UNIX_SV:4.2MP:2.*)
105132001f49Smrg	# Unixware is an offshoot of SVR4, but it has its own version
105232001f49Smrg	# number series starting with 2...
105332001f49Smrg	# I am not positive that other SVR4 systems won't match this,
105432001f49Smrg	# I just have to hope.  -- rms.
105532001f49Smrg	# Use sysv4.2uw... so that sysv4* matches it.
105632001f49Smrg	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
105732001f49Smrg	exit ;;
105832001f49Smrg    i*86:OS/2:*:*)
105932001f49Smrg	# If we were able to find `uname', then EMX Unix compatibility
106032001f49Smrg	# is probably installed.
106132001f49Smrg	echo ${UNAME_MACHINE}-pc-os2-emx
106232001f49Smrg	exit ;;
106332001f49Smrg    i*86:XTS-300:*:STOP)
106432001f49Smrg	echo ${UNAME_MACHINE}-unknown-stop
106532001f49Smrg	exit ;;
106632001f49Smrg    i*86:atheos:*:*)
106732001f49Smrg	echo ${UNAME_MACHINE}-unknown-atheos
106832001f49Smrg	exit ;;
106932001f49Smrg    i*86:syllable:*:*)
107032001f49Smrg	echo ${UNAME_MACHINE}-pc-syllable
107132001f49Smrg	exit ;;
107232001f49Smrg    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
107332001f49Smrg	echo i386-unknown-lynxos${UNAME_RELEASE}
107432001f49Smrg	exit ;;
107532001f49Smrg    i*86:*DOS:*:*)
107632001f49Smrg	echo ${UNAME_MACHINE}-pc-msdosdjgpp
107732001f49Smrg	exit ;;
10787ec3b29aSmrg    i*86:*:4.*:*)
107932001f49Smrg	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
108032001f49Smrg	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
108132001f49Smrg		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
108232001f49Smrg	else
108332001f49Smrg		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
108432001f49Smrg	fi
108532001f49Smrg	exit ;;
108632001f49Smrg    i*86:*:5:[678]*)
108732001f49Smrg	# UnixWare 7.x, OpenUNIX and OpenServer 6.
108832001f49Smrg	case `/bin/uname -X | grep "^Machine"` in
108932001f49Smrg	    *486*)	     UNAME_MACHINE=i486 ;;
109032001f49Smrg	    *Pentium)	     UNAME_MACHINE=i586 ;;
109132001f49Smrg	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
109232001f49Smrg	esac
109332001f49Smrg	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
109432001f49Smrg	exit ;;
109532001f49Smrg    i*86:*:3.2:*)
109632001f49Smrg	if test -f /usr/options/cb.name; then
109732001f49Smrg		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
109832001f49Smrg		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
109932001f49Smrg	elif /bin/uname -X 2>/dev/null >/dev/null ; then
110032001f49Smrg		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
110132001f49Smrg		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
110232001f49Smrg		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
110332001f49Smrg			&& UNAME_MACHINE=i586
110432001f49Smrg		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
110532001f49Smrg			&& UNAME_MACHINE=i686
110632001f49Smrg		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
110732001f49Smrg			&& UNAME_MACHINE=i686
110832001f49Smrg		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
110932001f49Smrg	else
111032001f49Smrg		echo ${UNAME_MACHINE}-pc-sysv32
111132001f49Smrg	fi
111232001f49Smrg	exit ;;
111332001f49Smrg    pc:*:*:*)
111432001f49Smrg	# Left here for compatibility:
111532001f49Smrg	# uname -m prints for DJGPP always 'pc', but it prints nothing about
111632001f49Smrg	# the processor, so we play safe by assuming i586.
111732001f49Smrg	# Note: whatever this is, it MUST be the same as what config.sub
11187ec3b29aSmrg	# prints for the "djgpp" host, or else GDB configure will decide that
111932001f49Smrg	# this is a cross-build.
112032001f49Smrg	echo i586-pc-msdosdjgpp
112132001f49Smrg	exit ;;
112232001f49Smrg    Intel:Mach:3*:*)
112332001f49Smrg	echo i386-pc-mach3
112432001f49Smrg	exit ;;
112532001f49Smrg    paragon:*:*:*)
112632001f49Smrg	echo i860-intel-osf1
112732001f49Smrg	exit ;;
112832001f49Smrg    i860:*:4.*:*) # i860-SVR4
112932001f49Smrg	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
113032001f49Smrg	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
113132001f49Smrg	else # Add other i860-SVR4 vendors below as they are discovered.
113232001f49Smrg	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
113332001f49Smrg	fi
113432001f49Smrg	exit ;;
113532001f49Smrg    mini*:CTIX:SYS*5:*)
113632001f49Smrg	# "miniframe"
113732001f49Smrg	echo m68010-convergent-sysv
113832001f49Smrg	exit ;;
113932001f49Smrg    mc68k:UNIX:SYSTEM5:3.51m)
114032001f49Smrg	echo m68k-convergent-sysv
114132001f49Smrg	exit ;;
114232001f49Smrg    M680?0:D-NIX:5.3:*)
114332001f49Smrg	echo m68k-diab-dnix
114432001f49Smrg	exit ;;
114532001f49Smrg    M68*:*:R3V[5678]*:*)
114632001f49Smrg	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
114732001f49Smrg    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)
114832001f49Smrg	OS_REL=''
114932001f49Smrg	test -r /etc/.relid \
115032001f49Smrg	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
115132001f49Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
115232001f49Smrg	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
115332001f49Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
115432001f49Smrg	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
115532001f49Smrg    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
115632001f49Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
115732001f49Smrg	  && { echo i486-ncr-sysv4; exit; } ;;
115832001f49Smrg    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
115932001f49Smrg	OS_REL='.3'
116032001f49Smrg	test -r /etc/.relid \
116132001f49Smrg	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
116232001f49Smrg	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
116332001f49Smrg	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
116432001f49Smrg	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
116532001f49Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
116632001f49Smrg	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
116732001f49Smrg	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
116832001f49Smrg    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
116932001f49Smrg	echo m68k-unknown-lynxos${UNAME_RELEASE}
117032001f49Smrg	exit ;;
117132001f49Smrg    mc68030:UNIX_System_V:4.*:*)
117232001f49Smrg	echo m68k-atari-sysv4
117332001f49Smrg	exit ;;
117432001f49Smrg    TSUNAMI:LynxOS:2.*:*)
117532001f49Smrg	echo sparc-unknown-lynxos${UNAME_RELEASE}
117632001f49Smrg	exit ;;
117732001f49Smrg    rs6000:LynxOS:2.*:*)
117832001f49Smrg	echo rs6000-unknown-lynxos${UNAME_RELEASE}
117932001f49Smrg	exit ;;
118032001f49Smrg    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
118132001f49Smrg	echo powerpc-unknown-lynxos${UNAME_RELEASE}
118232001f49Smrg	exit ;;
118332001f49Smrg    SM[BE]S:UNIX_SV:*:*)
118432001f49Smrg	echo mips-dde-sysv${UNAME_RELEASE}
118532001f49Smrg	exit ;;
118632001f49Smrg    RM*:ReliantUNIX-*:*:*)
118732001f49Smrg	echo mips-sni-sysv4
118832001f49Smrg	exit ;;
118932001f49Smrg    RM*:SINIX-*:*:*)
119032001f49Smrg	echo mips-sni-sysv4
119132001f49Smrg	exit ;;
119232001f49Smrg    *:SINIX-*:*:*)
119332001f49Smrg	if uname -p 2>/dev/null >/dev/null ; then
119432001f49Smrg		UNAME_MACHINE=`(uname -p) 2>/dev/null`
119532001f49Smrg		echo ${UNAME_MACHINE}-sni-sysv4
119632001f49Smrg	else
119732001f49Smrg		echo ns32k-sni-sysv
119832001f49Smrg	fi
119932001f49Smrg	exit ;;
120032001f49Smrg    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
120132001f49Smrg			# says <Richard.M.Bartel@ccMail.Census.GOV>
120232001f49Smrg	echo i586-unisys-sysv4
120332001f49Smrg	exit ;;
120432001f49Smrg    *:UNIX_System_V:4*:FTX*)
120532001f49Smrg	# From Gerald Hewes <hewes@openmarket.com>.
120632001f49Smrg	# How about differentiating between stratus architectures? -djm
120732001f49Smrg	echo hppa1.1-stratus-sysv4
120832001f49Smrg	exit ;;
120932001f49Smrg    *:*:*:FTX*)
121032001f49Smrg	# From seanf@swdc.stratus.com.
121132001f49Smrg	echo i860-stratus-sysv4
121232001f49Smrg	exit ;;
121332001f49Smrg    i*86:VOS:*:*)
121432001f49Smrg	# From Paul.Green@stratus.com.
121532001f49Smrg	echo ${UNAME_MACHINE}-stratus-vos
121632001f49Smrg	exit ;;
121732001f49Smrg    *:VOS:*:*)
121832001f49Smrg	# From Paul.Green@stratus.com.
121932001f49Smrg	echo hppa1.1-stratus-vos
122032001f49Smrg	exit ;;
122132001f49Smrg    mc68*:A/UX:*:*)
122232001f49Smrg	echo m68k-apple-aux${UNAME_RELEASE}
122332001f49Smrg	exit ;;
122432001f49Smrg    news*:NEWS-OS:6*:*)
122532001f49Smrg	echo mips-sony-newsos6
122632001f49Smrg	exit ;;
122732001f49Smrg    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
122832001f49Smrg	if [ -d /usr/nec ]; then
122932001f49Smrg		echo mips-nec-sysv${UNAME_RELEASE}
123032001f49Smrg	else
123132001f49Smrg		echo mips-unknown-sysv${UNAME_RELEASE}
123232001f49Smrg	fi
123332001f49Smrg	exit ;;
123432001f49Smrg    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
123532001f49Smrg	echo powerpc-be-beos
123632001f49Smrg	exit ;;
123732001f49Smrg    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
123832001f49Smrg	echo powerpc-apple-beos
123932001f49Smrg	exit ;;
124032001f49Smrg    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
124132001f49Smrg	echo i586-pc-beos
124232001f49Smrg	exit ;;
124332001f49Smrg    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
124432001f49Smrg	echo i586-pc-haiku
124532001f49Smrg	exit ;;
124632001f49Smrg    x86_64:Haiku:*:*)
124732001f49Smrg	echo x86_64-unknown-haiku
124832001f49Smrg	exit ;;
124932001f49Smrg    SX-4:SUPER-UX:*:*)
125032001f49Smrg	echo sx4-nec-superux${UNAME_RELEASE}
125132001f49Smrg	exit ;;
125232001f49Smrg    SX-5:SUPER-UX:*:*)
125332001f49Smrg	echo sx5-nec-superux${UNAME_RELEASE}
125432001f49Smrg	exit ;;
125532001f49Smrg    SX-6:SUPER-UX:*:*)
125632001f49Smrg	echo sx6-nec-superux${UNAME_RELEASE}
125732001f49Smrg	exit ;;
125832001f49Smrg    SX-7:SUPER-UX:*:*)
125932001f49Smrg	echo sx7-nec-superux${UNAME_RELEASE}
126032001f49Smrg	exit ;;
126132001f49Smrg    SX-8:SUPER-UX:*:*)
126232001f49Smrg	echo sx8-nec-superux${UNAME_RELEASE}
126332001f49Smrg	exit ;;
126432001f49Smrg    SX-8R:SUPER-UX:*:*)
126532001f49Smrg	echo sx8r-nec-superux${UNAME_RELEASE}
126632001f49Smrg	exit ;;
12677ec3b29aSmrg    SX-ACE:SUPER-UX:*:*)
12687ec3b29aSmrg	echo sxace-nec-superux${UNAME_RELEASE}
12697ec3b29aSmrg	exit ;;
127032001f49Smrg    Power*:Rhapsody:*:*)
127132001f49Smrg	echo powerpc-apple-rhapsody${UNAME_RELEASE}
127232001f49Smrg	exit ;;
127332001f49Smrg    *:Rhapsody:*:*)
127432001f49Smrg	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
127532001f49Smrg	exit ;;
127632001f49Smrg    *:Darwin:*:*)
127732001f49Smrg	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
127832001f49Smrg	eval $set_cc_for_build
127932001f49Smrg	if test "$UNAME_PROCESSOR" = unknown ; then
128032001f49Smrg	    UNAME_PROCESSOR=powerpc
128132001f49Smrg	fi
128232001f49Smrg	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
12837ec3b29aSmrg	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
128432001f49Smrg		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
12857ec3b29aSmrg		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
12867ec3b29aSmrg		       grep IS_64BIT_ARCH >/dev/null
128732001f49Smrg		then
128832001f49Smrg		    case $UNAME_PROCESSOR in
128932001f49Smrg			i386) UNAME_PROCESSOR=x86_64 ;;
129032001f49Smrg			powerpc) UNAME_PROCESSOR=powerpc64 ;;
129132001f49Smrg		    esac
129232001f49Smrg		fi
12937ec3b29aSmrg		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
12947ec3b29aSmrg		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
12957ec3b29aSmrg		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
12967ec3b29aSmrg		       grep IS_PPC >/dev/null
12977ec3b29aSmrg		then
12987ec3b29aSmrg		    UNAME_PROCESSOR=powerpc
12997ec3b29aSmrg		fi
130032001f49Smrg	    fi
130132001f49Smrg	elif test "$UNAME_PROCESSOR" = i386 ; then
130232001f49Smrg	    # Avoid executing cc on OS X 10.9, as it ships with a stub
130332001f49Smrg	    # that puts up a graphical alert prompting to install
130432001f49Smrg	    # developer tools.  Any system running Mac OS X 10.7 or
130532001f49Smrg	    # later (Darwin 11 and later) is required to have a 64-bit
130632001f49Smrg	    # processor. This is not true of the ARM version of Darwin
130732001f49Smrg	    # that Apple uses in portable devices.
130832001f49Smrg	    UNAME_PROCESSOR=x86_64
130932001f49Smrg	fi
131032001f49Smrg	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
131132001f49Smrg	exit ;;
131232001f49Smrg    *:procnto*:*:* | *:QNX:[0123456789]*:*)
131332001f49Smrg	UNAME_PROCESSOR=`uname -p`
13147ec3b29aSmrg	if test "$UNAME_PROCESSOR" = x86; then
131532001f49Smrg		UNAME_PROCESSOR=i386
131632001f49Smrg		UNAME_MACHINE=pc
131732001f49Smrg	fi
131832001f49Smrg	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
131932001f49Smrg	exit ;;
132032001f49Smrg    *:QNX:*:4*)
132132001f49Smrg	echo i386-pc-qnx
132232001f49Smrg	exit ;;
13237ec3b29aSmrg    NEO-*:NONSTOP_KERNEL:*:*)
132432001f49Smrg	echo neo-tandem-nsk${UNAME_RELEASE}
132532001f49Smrg	exit ;;
132632001f49Smrg    NSE-*:NONSTOP_KERNEL:*:*)
132732001f49Smrg	echo nse-tandem-nsk${UNAME_RELEASE}
132832001f49Smrg	exit ;;
13297ec3b29aSmrg    NSR-*:NONSTOP_KERNEL:*:*)
133032001f49Smrg	echo nsr-tandem-nsk${UNAME_RELEASE}
133132001f49Smrg	exit ;;
13327ec3b29aSmrg    NSX-*:NONSTOP_KERNEL:*:*)
13337ec3b29aSmrg	echo nsx-tandem-nsk${UNAME_RELEASE}
13347ec3b29aSmrg	exit ;;
133532001f49Smrg    *:NonStop-UX:*:*)
133632001f49Smrg	echo mips-compaq-nonstopux
133732001f49Smrg	exit ;;
133832001f49Smrg    BS2000:POSIX*:*:*)
133932001f49Smrg	echo bs2000-siemens-sysv
134032001f49Smrg	exit ;;
134132001f49Smrg    DS/*:UNIX_System_V:*:*)
134232001f49Smrg	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
134332001f49Smrg	exit ;;
134432001f49Smrg    *:Plan9:*:*)
134532001f49Smrg	# "uname -m" is not consistent, so use $cputype instead. 386
134632001f49Smrg	# is converted to i386 for consistency with other x86
134732001f49Smrg	# operating systems.
13487ec3b29aSmrg	if test "$cputype" = 386; then
134932001f49Smrg	    UNAME_MACHINE=i386
135032001f49Smrg	else
135132001f49Smrg	    UNAME_MACHINE="$cputype"
135232001f49Smrg	fi
135332001f49Smrg	echo ${UNAME_MACHINE}-unknown-plan9
135432001f49Smrg	exit ;;
135532001f49Smrg    *:TOPS-10:*:*)
135632001f49Smrg	echo pdp10-unknown-tops10
135732001f49Smrg	exit ;;
135832001f49Smrg    *:TENEX:*:*)
135932001f49Smrg	echo pdp10-unknown-tenex
136032001f49Smrg	exit ;;
136132001f49Smrg    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
136232001f49Smrg	echo pdp10-dec-tops20
136332001f49Smrg	exit ;;
136432001f49Smrg    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
136532001f49Smrg	echo pdp10-xkl-tops20
136632001f49Smrg	exit ;;
136732001f49Smrg    *:TOPS-20:*:*)
136832001f49Smrg	echo pdp10-unknown-tops20
136932001f49Smrg	exit ;;
137032001f49Smrg    *:ITS:*:*)
137132001f49Smrg	echo pdp10-unknown-its
137232001f49Smrg	exit ;;
137332001f49Smrg    SEI:*:*:SEIUX)
137432001f49Smrg	echo mips-sei-seiux${UNAME_RELEASE}
137532001f49Smrg	exit ;;
137632001f49Smrg    *:DragonFly:*:*)
137732001f49Smrg	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
137832001f49Smrg	exit ;;
137932001f49Smrg    *:*VMS:*:*)
138032001f49Smrg	UNAME_MACHINE=`(uname -p) 2>/dev/null`
138132001f49Smrg	case "${UNAME_MACHINE}" in
138232001f49Smrg	    A*) echo alpha-dec-vms ; exit ;;
138332001f49Smrg	    I*) echo ia64-dec-vms ; exit ;;
138432001f49Smrg	    V*) echo vax-dec-vms ; exit ;;
138532001f49Smrg	esac ;;
138632001f49Smrg    *:XENIX:*:SysV)
138732001f49Smrg	echo i386-pc-xenix
138832001f49Smrg	exit ;;
138932001f49Smrg    i*86:skyos:*:*)
13907ec3b29aSmrg	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
139132001f49Smrg	exit ;;
139232001f49Smrg    i*86:rdos:*:*)
139332001f49Smrg	echo ${UNAME_MACHINE}-pc-rdos
139432001f49Smrg	exit ;;
139532001f49Smrg    i*86:AROS:*:*)
139632001f49Smrg	echo ${UNAME_MACHINE}-pc-aros
139732001f49Smrg	exit ;;
139832001f49Smrg    x86_64:VMkernel:*:*)
139932001f49Smrg	echo ${UNAME_MACHINE}-unknown-esx
140032001f49Smrg	exit ;;
14017ec3b29aSmrg    amd64:Isilon\ OneFS:*:*)
14027ec3b29aSmrg	echo x86_64-unknown-onefs
14037ec3b29aSmrg	exit ;;
14047ec3b29aSmrgesac
14057ec3b29aSmrg
14067ec3b29aSmrgecho "$0: unable to guess system type" >&2
14077ec3b29aSmrg
14087ec3b29aSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}" in
14097ec3b29aSmrg    mips:Linux | mips64:Linux)
14107ec3b29aSmrg	# If we got here on MIPS GNU/Linux, output extra information.
14117ec3b29aSmrg	cat >&2 <<EOF
14127ec3b29aSmrg
14137ec3b29aSmrgNOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
14147ec3b29aSmrgthe system type. Please install a C compiler and try again.
14157ec3b29aSmrgEOF
14167ec3b29aSmrg	;;
141732001f49Smrgesac
141832001f49Smrg
141932001f49Smrgcat >&2 <<EOF
142032001f49Smrg
14217ec3b29aSmrgThis script (version $timestamp), has failed to recognize the
14227ec3b29aSmrgoperating system you are using. If your script is old, overwrite *all*
14237ec3b29aSmrgcopies of config.guess and config.sub with the latest versions from:
142432001f49Smrg
14257ec3b29aSmrg  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
142632001f49Smrgand
14277ec3b29aSmrg  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
142832001f49Smrg
14297ec3b29aSmrgIf $0 has already been updated, send the following data and any
14307ec3b29aSmrginformation you think might be pertinent to config-patches@gnu.org to
14317ec3b29aSmrgprovide the necessary information to handle your system.
143232001f49Smrg
143332001f49Smrgconfig.guess timestamp = $timestamp
143432001f49Smrg
143532001f49Smrguname -m = `(uname -m) 2>/dev/null || echo unknown`
143632001f49Smrguname -r = `(uname -r) 2>/dev/null || echo unknown`
143732001f49Smrguname -s = `(uname -s) 2>/dev/null || echo unknown`
143832001f49Smrguname -v = `(uname -v) 2>/dev/null || echo unknown`
143932001f49Smrg
144032001f49Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
144132001f49Smrg/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
144232001f49Smrg
144332001f49Smrghostinfo               = `(hostinfo) 2>/dev/null`
144432001f49Smrg/bin/universe          = `(/bin/universe) 2>/dev/null`
144532001f49Smrg/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
144632001f49Smrg/bin/arch              = `(/bin/arch) 2>/dev/null`
144732001f49Smrg/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
144832001f49Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
144932001f49Smrg
145032001f49SmrgUNAME_MACHINE = ${UNAME_MACHINE}
145132001f49SmrgUNAME_RELEASE = ${UNAME_RELEASE}
145232001f49SmrgUNAME_SYSTEM  = ${UNAME_SYSTEM}
145332001f49SmrgUNAME_VERSION = ${UNAME_VERSION}
145432001f49SmrgEOF
145532001f49Smrg
145632001f49Smrgexit 1
145732001f49Smrg
145832001f49Smrg# Local variables:
14597ec3b29aSmrg# eval: (add-hook 'write-file-functions 'time-stamp)
146032001f49Smrg# time-stamp-start: "timestamp='"
146132001f49Smrg# time-stamp-format: "%:y-%02m-%02d"
146232001f49Smrg# time-stamp-end: "'"
146332001f49Smrg# End:
1464