Blame config.guess

Packit 6bd9ab
#! /bin/sh
Packit 6bd9ab
# Attempt to guess a canonical system name.
Packit Service edead4
#   Copyright 1992-2018 Free Software Foundation, Inc.
Packit 6bd9ab
Packit Service edead4
timestamp='2018-03-08'
Packit 6bd9ab
Packit 6bd9ab
# This file is free software; you can redistribute it and/or modify it
Packit 6bd9ab
# under the terms of the GNU General Public License as published by
Packit 6bd9ab
# the Free Software Foundation; either version 3 of the License, or
Packit 6bd9ab
# (at your option) any later version.
Packit 6bd9ab
#
Packit 6bd9ab
# This program is distributed in the hope that it will be useful, but
Packit 6bd9ab
# WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 6bd9ab
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit 6bd9ab
# General Public License for more details.
Packit 6bd9ab
#
Packit 6bd9ab
# You should have received a copy of the GNU General Public License
Packit 6bd9ab
# along with this program; if not, see <https://www.gnu.org/licenses/>.
Packit 6bd9ab
#
Packit 6bd9ab
# As a special exception to the GNU General Public License, if you
Packit 6bd9ab
# distribute this file as part of a program that contains a
Packit 6bd9ab
# configuration script generated by Autoconf, you may include it under
Packit 6bd9ab
# the same distribution terms that you use for the rest of that
Packit 6bd9ab
# program.  This Exception is an additional permission under section 7
Packit 6bd9ab
# of the GNU General Public License, version 3 ("GPLv3").
Packit 6bd9ab
#
Packit 6bd9ab
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
Packit 6bd9ab
#
Packit 6bd9ab
# You can get the latest version of this script from:
Packit 6bd9ab
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
Packit 6bd9ab
#
Packit 6bd9ab
# Please send patches to <config-patches@gnu.org>.
Packit 6bd9ab
Packit 6bd9ab
Packit 6bd9ab
me=`echo "$0" | sed -e 's,.*/,,'`
Packit 6bd9ab
Packit 6bd9ab
usage="\
Packit 6bd9ab
Usage: $0 [OPTION]
Packit 6bd9ab
Packit 6bd9ab
Output the configuration name of the system \`$me' is run on.
Packit 6bd9ab
Packit 6bd9ab
Options:
Packit 6bd9ab
  -h, --help         print this help, then exit
Packit 6bd9ab
  -t, --time-stamp   print date of last modification, then exit
Packit 6bd9ab
  -v, --version      print version number, then exit
Packit 6bd9ab
Packit 6bd9ab
Report bugs and patches to <config-patches@gnu.org>."
Packit 6bd9ab
Packit 6bd9ab
version="\
Packit 6bd9ab
GNU config.guess ($timestamp)
Packit 6bd9ab
Packit 6bd9ab
Originally written by Per Bothner.
Packit Service edead4
Copyright 1992-2018 Free Software Foundation, Inc.
Packit 6bd9ab
Packit 6bd9ab
This is free software; see the source for copying conditions.  There is NO
Packit 6bd9ab
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
Packit 6bd9ab
Packit 6bd9ab
help="
Packit 6bd9ab
Try \`$me --help' for more information."
Packit 6bd9ab
Packit 6bd9ab
# Parse command line
Packit 6bd9ab
while test $# -gt 0 ; do
Packit 6bd9ab
  case $1 in
Packit 6bd9ab
    --time-stamp | --time* | -t )
Packit 6bd9ab
       echo "$timestamp" ; exit ;;
Packit 6bd9ab
    --version | -v )
Packit 6bd9ab
       echo "$version" ; exit ;;
Packit 6bd9ab
    --help | --h* | -h )
Packit 6bd9ab
       echo "$usage"; exit ;;
Packit 6bd9ab
    -- )     # Stop option processing
Packit 6bd9ab
       shift; break ;;
Packit 6bd9ab
    - )	# Use stdin as input.
Packit 6bd9ab
       break ;;
Packit 6bd9ab
    -* )
Packit 6bd9ab
       echo "$me: invalid option $1$help" >&2
Packit 6bd9ab
       exit 1 ;;
Packit 6bd9ab
    * )
Packit 6bd9ab
       break ;;
Packit 6bd9ab
  esac
Packit 6bd9ab
done
Packit 6bd9ab
Packit 6bd9ab
if test $# != 0; then
Packit 6bd9ab
  echo "$me: too many arguments$help" >&2
Packit 6bd9ab
  exit 1
Packit 6bd9ab
fi
Packit 6bd9ab
Packit 6bd9ab
trap 'exit 1' 1 2 15
Packit 6bd9ab
Packit 6bd9ab
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
Packit 6bd9ab
# compiler to aid in system detection is discouraged as it requires
Packit 6bd9ab
# temporary files to be created and, as you can see below, it is a
Packit 6bd9ab
# headache to deal with in a portable fashion.
Packit 6bd9ab
Packit 6bd9ab
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
Packit 6bd9ab
# use `HOST_CC' if defined, but it is deprecated.
Packit 6bd9ab
Packit 6bd9ab
# Portable tmp directory creation inspired by the Autoconf team.
Packit 6bd9ab
Packit 6bd9ab
set_cc_for_build='
Packit 6bd9ab
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
Packit 6bd9ab
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
Packit 6bd9ab
: ${TMPDIR=/tmp} ;
Packit 6bd9ab
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
Packit 6bd9ab
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
Packit 6bd9ab
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
Packit 6bd9ab
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
Packit 6bd9ab
dummy=$tmp/dummy ;
Packit 6bd9ab
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
Packit 6bd9ab
case $CC_FOR_BUILD,$HOST_CC,$CC in
Packit Service edead4
 ,,)    echo "int x;" > "$dummy.c" ;
Packit 6bd9ab
	for c in cc gcc c89 c99 ; do
Packit Service edead4
	  if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
Packit 6bd9ab
	     CC_FOR_BUILD="$c"; break ;
Packit 6bd9ab
	  fi ;
Packit 6bd9ab
	done ;
Packit 6bd9ab
	if test x"$CC_FOR_BUILD" = x ; then
Packit 6bd9ab
	  CC_FOR_BUILD=no_compiler_found ;
Packit 6bd9ab
	fi
Packit 6bd9ab
	;;
Packit 6bd9ab
 ,,*)   CC_FOR_BUILD=$CC ;;
Packit 6bd9ab
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
Packit 6bd9ab
esac ; set_cc_for_build= ;'
Packit 6bd9ab
Packit 6bd9ab
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
Packit 6bd9ab
# (ghazi@noc.rutgers.edu 1994-08-24)
Packit 6bd9ab
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
Packit 6bd9ab
	PATH=$PATH:/.attbin ; export PATH
Packit 6bd9ab
fi
Packit 6bd9ab
Packit 6bd9ab
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
Packit 6bd9ab
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
Packit 6bd9ab
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
Packit 6bd9ab
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
Packit 6bd9ab
Packit Service edead4
case "$UNAME_SYSTEM" in
Packit 6bd9ab
Linux|GNU|GNU/*)
Packit 6bd9ab
	# If the system lacks a compiler, then just pick glibc.
Packit 6bd9ab
	# We could probably try harder.
Packit 6bd9ab
	LIBC=gnu
Packit 6bd9ab
Packit Service edead4
	eval "$set_cc_for_build"
Packit Service edead4
	cat <<-EOF > "$dummy.c"
Packit 6bd9ab
	#include <features.h>
Packit 6bd9ab
	#if defined(__UCLIBC__)
Packit 6bd9ab
	LIBC=uclibc
Packit 6bd9ab
	#elif defined(__dietlibc__)
Packit 6bd9ab
	LIBC=dietlibc
Packit 6bd9ab
	#else
Packit 6bd9ab
	LIBC=gnu
Packit 6bd9ab
	#endif
Packit 6bd9ab
	EOF
Packit Service edead4
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
Packit Service edead4
Packit Service edead4
	# If ldd exists, use it to detect musl libc.
Packit Service edead4
	if command -v ldd >/dev/null && \
Packit Service edead4
		ldd --version 2>&1 | grep -q ^musl
Packit Service edead4
	then
Packit Service edead4
	    LIBC=musl
Packit Service edead4
	fi
Packit 6bd9ab
	;;
Packit 6bd9ab
esac
Packit 6bd9ab
Packit 6bd9ab
# Note: order is significant - the case branches are not exclusive.
Packit 6bd9ab
Packit Service edead4
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
Packit 6bd9ab
    *:NetBSD:*:*)
Packit 6bd9ab
	# NetBSD (nbsd) targets should (where applicable) match one or
Packit 6bd9ab
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
Packit 6bd9ab
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
Packit 6bd9ab
	# switched to ELF, *-*-netbsd* would select the old
Packit 6bd9ab
	# object file format.  This provides both forward
Packit 6bd9ab
	# compatibility and a consistent mechanism for selecting the
Packit 6bd9ab
	# object file format.
Packit 6bd9ab
	#
Packit 6bd9ab
	# Note: NetBSD doesn't particularly care about the vendor
Packit 6bd9ab
	# portion of the name.  We always set it to "unknown".
Packit 6bd9ab
	sysctl="sysctl -n hw.machine_arch"
Packit 6bd9ab
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
Packit Service edead4
	    "/sbin/$sysctl" 2>/dev/null || \
Packit Service edead4
	    "/usr/sbin/$sysctl" 2>/dev/null || \
Packit 6bd9ab
	    echo unknown)`
Packit Service edead4
	case "$UNAME_MACHINE_ARCH" in
Packit 6bd9ab
	    armeb) machine=armeb-unknown ;;
Packit 6bd9ab
	    arm*) machine=arm-unknown ;;
Packit 6bd9ab
	    sh3el) machine=shl-unknown ;;
Packit 6bd9ab
	    sh3eb) machine=sh-unknown ;;
Packit 6bd9ab
	    sh5el) machine=sh5le-unknown ;;
Packit 6bd9ab
	    earmv*)
Packit Service edead4
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
Packit Service edead4
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
Packit Service edead4
		machine="${arch}${endian}"-unknown
Packit 6bd9ab
		;;
Packit Service edead4
	    *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# The Operating System including object format, if it has switched
Packit 6bd9ab
	# to ELF recently (or will in the future) and ABI.
Packit Service edead4
	case "$UNAME_MACHINE_ARCH" in
Packit 6bd9ab
	    earm*)
Packit 6bd9ab
		os=netbsdelf
Packit 6bd9ab
		;;
Packit 6bd9ab
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
Packit Service edead4
		eval "$set_cc_for_build"
Packit 6bd9ab
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
Packit 6bd9ab
			| grep -q __ELF__
Packit 6bd9ab
		then
Packit 6bd9ab
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
Packit 6bd9ab
		    # Return netbsd for either.  FIX?
Packit 6bd9ab
		    os=netbsd
Packit 6bd9ab
		else
Packit 6bd9ab
		    os=netbsdelf
Packit 6bd9ab
		fi
Packit 6bd9ab
		;;
Packit 6bd9ab
	    *)
Packit 6bd9ab
		os=netbsd
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# Determine ABI tags.
Packit Service edead4
	case "$UNAME_MACHINE_ARCH" in
Packit 6bd9ab
	    earm*)
Packit 6bd9ab
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
Packit Service edead4
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# The OS release
Packit 6bd9ab
	# Debian GNU/NetBSD machines have a different userland, and
Packit 6bd9ab
	# thus, need a distinct triplet. However, they do not need
Packit 6bd9ab
	# kernel version information, so it can be replaced with a
Packit 6bd9ab
	# suitable tag, in the style of linux-gnu.
Packit Service edead4
	case "$UNAME_VERSION" in
Packit 6bd9ab
	    Debian*)
Packit 6bd9ab
		release='-gnu'
Packit 6bd9ab
		;;
Packit 6bd9ab
	    *)
Packit Service edead4
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
Packit 6bd9ab
	# contains redundant information, the shorter form:
Packit 6bd9ab
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
Packit Service edead4
	echo "$machine-${os}${release}${abi}"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Bitrig:*:*)
Packit 6bd9ab
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
Packit Service edead4
	echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:OpenBSD:*:*)
Packit 6bd9ab
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
Packit Service edead4
	echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:LibertyBSD:*:*)
Packit 6bd9ab
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
Packit Service edead4
	echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:MidnightBSD:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:ekkoBSD:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:SolidBSD:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    macppc:MirBSD:*:*)
Packit Service edead4
	echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:MirBSD:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Sortix:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-sortix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Redox:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-redox
Packit 6bd9ab
	exit ;;
Packit Service edead4
    mips:OSF1:*.*)
Packit Service edead4
        echo mips-dec-osf1
Packit Service edead4
        exit ;;
Packit 6bd9ab
    alpha:OSF1:*:*)
Packit 6bd9ab
	case $UNAME_RELEASE in
Packit 6bd9ab
	*4.0)
Packit 6bd9ab
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
Packit 6bd9ab
		;;
Packit 6bd9ab
	*5.*)
Packit 6bd9ab
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# According to Compaq, /usr/sbin/psrinfo has been available on
Packit 6bd9ab
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
Packit 6bd9ab
	# covers most systems running today.  This code pipes the CPU
Packit 6bd9ab
	# types through head -n 1, so we only detect the type of CPU 0.
Packit 6bd9ab
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
Packit 6bd9ab
	case "$ALPHA_CPU_TYPE" in
Packit 6bd9ab
	    "EV4 (21064)")
Packit 6bd9ab
		UNAME_MACHINE=alpha ;;
Packit 6bd9ab
	    "EV4.5 (21064)")
Packit 6bd9ab
		UNAME_MACHINE=alpha ;;
Packit 6bd9ab
	    "LCA4 (21066/21068)")
Packit 6bd9ab
		UNAME_MACHINE=alpha ;;
Packit 6bd9ab
	    "EV5 (21164)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev5 ;;
Packit 6bd9ab
	    "EV5.6 (21164A)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev56 ;;
Packit 6bd9ab
	    "EV5.6 (21164PC)")
Packit 6bd9ab
		UNAME_MACHINE=alphapca56 ;;
Packit 6bd9ab
	    "EV5.7 (21164PC)")
Packit 6bd9ab
		UNAME_MACHINE=alphapca57 ;;
Packit 6bd9ab
	    "EV6 (21264)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev6 ;;
Packit 6bd9ab
	    "EV6.7 (21264A)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev67 ;;
Packit 6bd9ab
	    "EV6.8CB (21264C)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev68 ;;
Packit 6bd9ab
	    "EV6.8AL (21264B)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev68 ;;
Packit 6bd9ab
	    "EV6.8CX (21264D)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev68 ;;
Packit 6bd9ab
	    "EV6.9A (21264/EV69A)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev69 ;;
Packit 6bd9ab
	    "EV7 (21364)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev7 ;;
Packit 6bd9ab
	    "EV7.9 (21364A)")
Packit 6bd9ab
		UNAME_MACHINE=alphaev79 ;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# A Pn.n version is a patched version.
Packit 6bd9ab
	# A Vn.n version is a released version.
Packit 6bd9ab
	# A Tn.n version is a released field test version.
Packit 6bd9ab
	# A Xn.n version is an unreleased experimental baselevel.
Packit 6bd9ab
	# 1.2 uses "1.2" for uname -r.
Packit Service edead4
	echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
Packit 6bd9ab
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
Packit 6bd9ab
	exitcode=$?
Packit 6bd9ab
	trap '' 0
Packit 6bd9ab
	exit $exitcode ;;
Packit 6bd9ab
    Amiga*:UNIX_System_V:4.0:*)
Packit 6bd9ab
	echo m68k-unknown-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:[Aa]miga[Oo][Ss]:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-amigaos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:[Mm]orph[Oo][Ss]:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-morphos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:OS/390:*:*)
Packit 6bd9ab
	echo i370-ibm-openedition
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:z/VM:*:*)
Packit 6bd9ab
	echo s390-ibm-zvmoe
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:OS400:*:*)
Packit 6bd9ab
	echo powerpc-ibm-os400
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
Packit Service edead4
	echo arm-acorn-riscix"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    arm*:riscos:*:*|arm*:RISCOS:*:*)
Packit 6bd9ab
	echo arm-unknown-riscos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
Packit 6bd9ab
	echo hppa1.1-hitachi-hiuxmpp
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
Packit 6bd9ab
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
Packit 6bd9ab
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
Packit 6bd9ab
		echo pyramid-pyramid-sysv3
Packit 6bd9ab
	else
Packit 6bd9ab
		echo pyramid-pyramid-bsd
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    NILE*:*:*:dcosx)
Packit 6bd9ab
	echo pyramid-pyramid-svr4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    DRS?6000:unix:4.0:6*)
Packit 6bd9ab
	echo sparc-icl-nx6
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
Packit 6bd9ab
	case `/usr/bin/uname -p` in
Packit 6bd9ab
	    sparc) echo sparc-icl-nx7; exit ;;
Packit 6bd9ab
	esac ;;
Packit 6bd9ab
    s390x:SunOS:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun4H:SunOS:5.*:*)
Packit Service edead4
	echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
Packit Service edead4
	echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
Packit Service edead4
	echo i386-pc-auroraux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
Packit Service edead4
	eval "$set_cc_for_build"
Packit 6bd9ab
	SUN_ARCH=i386
Packit 6bd9ab
	# If there is a compiler, see if it is configured for 64-bit objects.
Packit 6bd9ab
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
Packit 6bd9ab
	# This test works for both compilers.
Packit 6bd9ab
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
Packit 6bd9ab
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
Packit 6bd9ab
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
Packit 6bd9ab
		grep IS_64BIT_ARCH >/dev/null
Packit 6bd9ab
	    then
Packit 6bd9ab
		SUN_ARCH=x86_64
Packit 6bd9ab
	    fi
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun4*:SunOS:6*:*)
Packit 6bd9ab
	# According to config.sub, this is the proper way to canonicalize
Packit 6bd9ab
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
Packit 6bd9ab
	# it's likely to be more like Solaris than SunOS4.
Packit Service edead4
	echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun4*:SunOS:*:*)
Packit 6bd9ab
	case "`/usr/bin/arch -k`" in
Packit 6bd9ab
	    Series*|S4*)
Packit 6bd9ab
		UNAME_RELEASE=`uname -v`
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	# Japanese Language versions have a version number like `4.1.3-JL'.
Packit Service edead4
	echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun3*:SunOS:*:*)
Packit Service edead4
	echo m68k-sun-sunos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sun*:*:4.2BSD:*)
Packit 6bd9ab
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
Packit Service edead4
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
Packit 6bd9ab
	case "`/bin/arch`" in
Packit 6bd9ab
	    sun3)
Packit Service edead4
		echo m68k-sun-sunos"$UNAME_RELEASE"
Packit 6bd9ab
		;;
Packit 6bd9ab
	    sun4)
Packit Service edead4
		echo sparc-sun-sunos"$UNAME_RELEASE"
Packit 6bd9ab
		;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    aushp:SunOS:*:*)
Packit Service edead4
	echo sparc-auspex-sunos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    # The situation for MiNT is a little confusing.  The machine name
Packit 6bd9ab
    # can be virtually everything (everything which is not
Packit 6bd9ab
    # "atarist" or "atariste" at least should have a processor
Packit 6bd9ab
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
Packit 6bd9ab
    # to the lowercase version "mint" (or "freemint").  Finally
Packit 6bd9ab
    # the system name "TOS" denotes a system which is actually not
Packit 6bd9ab
    # MiNT.  But MiNT is downward compatible to TOS, so this should
Packit 6bd9ab
    # be no problem.
Packit 6bd9ab
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
Packit Service edead4
	echo m68k-atari-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
Packit Service edead4
	echo m68k-atari-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
Packit Service edead4
	echo m68k-atari-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
Packit Service edead4
	echo m68k-milan-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
Packit Service edead4
	echo m68k-hades-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
Packit Service edead4
	echo m68k-unknown-mint"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m68k:machten:*:*)
Packit Service edead4
	echo m68k-apple-machten"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    powerpc:machten:*:*)
Packit Service edead4
	echo powerpc-apple-machten"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    RISC*:Mach:*:*)
Packit 6bd9ab
	echo mips-dec-mach_bsd4.3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    RISC*:ULTRIX:*:*)
Packit Service edead4
	echo mips-dec-ultrix"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    VAX*:ULTRIX*:*:*)
Packit Service edead4
	echo vax-dec-ultrix"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    2020:CLIX:*:* | 2430:CLIX:*:*)
Packit Service edead4
	echo clipper-intergraph-clix"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mips:*:*:UMIPS | mips:*:*:RISCos)
Packit Service edead4
	eval "$set_cc_for_build"
Packit Service edead4
	sed 's/^	//' << EOF > "$dummy.c"
Packit 6bd9ab
#ifdef __cplusplus
Packit 6bd9ab
#include <stdio.h>  /* for printf() prototype */
Packit 6bd9ab
	int main (int argc, char *argv[]) {
Packit 6bd9ab
#else
Packit 6bd9ab
	int main (argc, argv) int argc; char *argv[]; {
Packit 6bd9ab
#endif
Packit 6bd9ab
	#if defined (host_mips) && defined (MIPSEB)
Packit 6bd9ab
	#if defined (SYSTYPE_SYSV)
Packit 6bd9ab
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
Packit 6bd9ab
	#endif
Packit 6bd9ab
	#if defined (SYSTYPE_SVR4)
Packit 6bd9ab
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
Packit 6bd9ab
	#endif
Packit 6bd9ab
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
Packit 6bd9ab
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
Packit 6bd9ab
	#endif
Packit 6bd9ab
	#endif
Packit 6bd9ab
	  exit (-1);
Packit 6bd9ab
	}
Packit 6bd9ab
EOF
Packit Service edead4
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
Packit Service edead4
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
Packit Service edead4
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
Packit 6bd9ab
	    { echo "$SYSTEM_NAME"; exit; }
Packit Service edead4
	echo mips-mips-riscos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Motorola:PowerMAX_OS:*:*)
Packit 6bd9ab
	echo powerpc-motorola-powermax
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Motorola:*:4.3:PL8-*)
Packit 6bd9ab
	echo powerpc-harris-powermax
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
Packit 6bd9ab
	echo powerpc-harris-powermax
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Night_Hawk:Power_UNIX:*:*)
Packit 6bd9ab
	echo powerpc-harris-powerunix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m88k:CX/UX:7*:*)
Packit 6bd9ab
	echo m88k-harris-cxux7
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m88k:*:4*:R4*)
Packit 6bd9ab
	echo m88k-motorola-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m88k:*:3*:R3*)
Packit 6bd9ab
	echo m88k-motorola-sysv3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    AViiON:dgux:*:*)
Packit 6bd9ab
	# DG/UX returns AViiON for all architectures
Packit 6bd9ab
	UNAME_PROCESSOR=`/usr/bin/uname -p`
Packit Service edead4
	if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
Packit 6bd9ab
	then
Packit Service edead4
	    if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
Packit Service edead4
	       [ "$TARGET_BINARY_INTERFACE"x = x ]
Packit 6bd9ab
	    then
Packit Service edead4
		echo m88k-dg-dgux"$UNAME_RELEASE"
Packit 6bd9ab
	    else
Packit Service edead4
		echo m88k-dg-dguxbcs"$UNAME_RELEASE"
Packit 6bd9ab
	    fi
Packit 6bd9ab
	else
Packit Service edead4
	    echo i586-dg-dgux"$UNAME_RELEASE"
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
Packit 6bd9ab
	echo m88k-dolphin-sysv3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    M88*:*:R3*:*)
Packit 6bd9ab
	# Delta 88k system running SVR3
Packit 6bd9ab
	echo m88k-motorola-sysv3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
Packit 6bd9ab
	echo m88k-tektronix-sysv3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
Packit 6bd9ab
	echo m68k-tektronix-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:IRIX*:*:*)
Packit Service edead4
	echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
Packit 6bd9ab
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
Packit 6bd9ab
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
Packit 6bd9ab
    i*86:AIX:*:*)
Packit 6bd9ab
	echo i386-ibm-aix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ia64:AIX:*:*)
Packit 6bd9ab
	if [ -x /usr/bin/oslevel ] ; then
Packit 6bd9ab
		IBM_REV=`/usr/bin/oslevel`
Packit 6bd9ab
	else
Packit Service edead4
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:AIX:2:3)
Packit 6bd9ab
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
Packit Service edead4
		eval "$set_cc_for_build"
Packit Service edead4
		sed 's/^		//' << EOF > "$dummy.c"
Packit 6bd9ab
		#include <sys/systemcfg.h>
Packit 6bd9ab
Packit 6bd9ab
		main()
Packit 6bd9ab
			{
Packit 6bd9ab
			if (!__power_pc())
Packit 6bd9ab
				exit(1);
Packit 6bd9ab
			puts("powerpc-ibm-aix3.2.5");
Packit 6bd9ab
			exit(0);
Packit 6bd9ab
			}
Packit 6bd9ab
EOF
Packit Service edead4
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
Packit 6bd9ab
		then
Packit 6bd9ab
			echo "$SYSTEM_NAME"
Packit 6bd9ab
		else
Packit 6bd9ab
			echo rs6000-ibm-aix3.2.5
Packit 6bd9ab
		fi
Packit 6bd9ab
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
Packit 6bd9ab
		echo rs6000-ibm-aix3.2.4
Packit 6bd9ab
	else
Packit 6bd9ab
		echo rs6000-ibm-aix3.2
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:AIX:*:[4567])
Packit 6bd9ab
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
Packit Service edead4
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
Packit 6bd9ab
		IBM_ARCH=rs6000
Packit 6bd9ab
	else
Packit 6bd9ab
		IBM_ARCH=powerpc
Packit 6bd9ab
	fi
Packit 6bd9ab
	if [ -x /usr/bin/lslpp ] ; then
Packit 6bd9ab
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
Packit 6bd9ab
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
Packit 6bd9ab
	else
Packit Service edead4
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:AIX:*:*)
Packit 6bd9ab
	echo rs6000-ibm-aix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
Packit 6bd9ab
	echo romp-ibm-bsd4.4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
Packit Service edead4
	echo romp-ibm-bsd"$UNAME_RELEASE"   # 4.3 with uname added to
Packit 6bd9ab
	exit ;;                             # report: romp-ibm BSD 4.3
Packit 6bd9ab
    *:BOSX:*:*)
Packit 6bd9ab
	echo rs6000-bull-bosx
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    DPX/2?00:B.O.S.:*:*)
Packit 6bd9ab
	echo m68k-bull-sysv3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    9000/[34]??:4.3bsd:1.*:*)
Packit 6bd9ab
	echo m68k-hp-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
Packit 6bd9ab
	echo m68k-hp-bsd4.4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    9000/[34678]??:HP-UX:*:*)
Packit Service edead4
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
Packit Service edead4
	case "$UNAME_MACHINE" in
Packit 6bd9ab
	    9000/31?)            HP_ARCH=m68000 ;;
Packit 6bd9ab
	    9000/[34]??)         HP_ARCH=m68k ;;
Packit 6bd9ab
	    9000/[678][0-9][0-9])
Packit 6bd9ab
		if [ -x /usr/bin/getconf ]; then
Packit 6bd9ab
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
Packit 6bd9ab
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
Packit Service edead4
		    case "$sc_cpu_version" in
Packit 6bd9ab
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
Packit 6bd9ab
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
Packit 6bd9ab
		      532)                      # CPU_PA_RISC2_0
Packit Service edead4
			case "$sc_kernel_bits" in
Packit 6bd9ab
			  32) HP_ARCH=hppa2.0n ;;
Packit 6bd9ab
			  64) HP_ARCH=hppa2.0w ;;
Packit 6bd9ab
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
Packit 6bd9ab
			esac ;;
Packit 6bd9ab
		    esac
Packit 6bd9ab
		fi
Packit Service edead4
		if [ "$HP_ARCH" = "" ]; then
Packit Service edead4
		    eval "$set_cc_for_build"
Packit Service edead4
		    sed 's/^		//' << EOF > "$dummy.c"
Packit 6bd9ab
Packit 6bd9ab
		#define _HPUX_SOURCE
Packit 6bd9ab
		#include <stdlib.h>
Packit 6bd9ab
		#include <unistd.h>
Packit 6bd9ab
Packit 6bd9ab
		int main ()
Packit 6bd9ab
		{
Packit 6bd9ab
		#if defined(_SC_KERNEL_BITS)
Packit 6bd9ab
		    long bits = sysconf(_SC_KERNEL_BITS);
Packit 6bd9ab
		#endif
Packit 6bd9ab
		    long cpu  = sysconf (_SC_CPU_VERSION);
Packit 6bd9ab
Packit 6bd9ab
		    switch (cpu)
Packit 6bd9ab
			{
Packit 6bd9ab
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
Packit 6bd9ab
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
Packit 6bd9ab
			case CPU_PA_RISC2_0:
Packit 6bd9ab
		#if defined(_SC_KERNEL_BITS)
Packit 6bd9ab
			    switch (bits)
Packit 6bd9ab
				{
Packit 6bd9ab
				case 64: puts ("hppa2.0w"); break;
Packit 6bd9ab
				case 32: puts ("hppa2.0n"); break;
Packit 6bd9ab
				default: puts ("hppa2.0"); break;
Packit 6bd9ab
				} break;
Packit 6bd9ab
		#else  /* !defined(_SC_KERNEL_BITS) */
Packit 6bd9ab
			    puts ("hppa2.0"); break;
Packit 6bd9ab
		#endif
Packit 6bd9ab
			default: puts ("hppa1.0"); break;
Packit 6bd9ab
			}
Packit 6bd9ab
		    exit (0);
Packit 6bd9ab
		}
Packit 6bd9ab
EOF
Packit Service edead4
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
Packit 6bd9ab
		    test -z "$HP_ARCH" && HP_ARCH=hppa
Packit 6bd9ab
		fi ;;
Packit 6bd9ab
	esac
Packit Service edead4
	if [ "$HP_ARCH" = hppa2.0w ]
Packit 6bd9ab
	then
Packit Service edead4
	    eval "$set_cc_for_build"
Packit 6bd9ab
Packit 6bd9ab
	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
Packit 6bd9ab
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
Packit 6bd9ab
	    # generating 64-bit code.  GNU and HP use different nomenclature:
Packit 6bd9ab
	    #
Packit 6bd9ab
	    # $ CC_FOR_BUILD=cc ./config.guess
Packit 6bd9ab
	    # => hppa2.0w-hp-hpux11.23
Packit 6bd9ab
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
Packit 6bd9ab
	    # => hppa64-hp-hpux11.23
Packit 6bd9ab
Packit 6bd9ab
	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
Packit 6bd9ab
		grep -q __LP64__
Packit 6bd9ab
	    then
Packit 6bd9ab
		HP_ARCH=hppa2.0w
Packit 6bd9ab
	    else
Packit 6bd9ab
		HP_ARCH=hppa64
Packit 6bd9ab
	    fi
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ia64:HP-UX:*:*)
Packit Service edead4
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
Packit Service edead4
	echo ia64-hp-hpux"$HPUX_REV"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    3050*:HI-UX:*:*)
Packit Service edead4
	eval "$set_cc_for_build"
Packit Service edead4
	sed 's/^	//' << EOF > "$dummy.c"
Packit 6bd9ab
	#include <unistd.h>
Packit 6bd9ab
	int
Packit 6bd9ab
	main ()
Packit 6bd9ab
	{
Packit 6bd9ab
	  long cpu = sysconf (_SC_CPU_VERSION);
Packit 6bd9ab
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
Packit 6bd9ab
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
Packit 6bd9ab
	     results, however.  */
Packit 6bd9ab
	  if (CPU_IS_PA_RISC (cpu))
Packit 6bd9ab
	    {
Packit 6bd9ab
	      switch (cpu)
Packit 6bd9ab
		{
Packit 6bd9ab
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
Packit 6bd9ab
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
Packit 6bd9ab
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
Packit 6bd9ab
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
Packit 6bd9ab
		}
Packit 6bd9ab
	    }
Packit 6bd9ab
	  else if (CPU_IS_HP_MC68K (cpu))
Packit 6bd9ab
	    puts ("m68k-hitachi-hiuxwe2");
Packit 6bd9ab
	  else puts ("unknown-hitachi-hiuxwe2");
Packit 6bd9ab
	  exit (0);
Packit 6bd9ab
	}
Packit 6bd9ab
EOF
Packit Service edead4
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
Packit 6bd9ab
		{ echo "$SYSTEM_NAME"; exit; }
Packit 6bd9ab
	echo unknown-hitachi-hiuxwe2
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
Packit 6bd9ab
	echo hppa1.1-hp-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    9000/8??:4.3bsd:*:*)
Packit 6bd9ab
	echo hppa1.0-hp-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
Packit 6bd9ab
	echo hppa1.0-hp-mpeix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
Packit 6bd9ab
	echo hppa1.1-hp-osf
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    hp8??:OSF1:*:*)
Packit 6bd9ab
	echo hppa1.0-hp-osf
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:OSF1:*:*)
Packit 6bd9ab
	if [ -x /usr/sbin/sysversion ] ; then
Packit Service edead4
	    echo "$UNAME_MACHINE"-unknown-osf1mk
Packit 6bd9ab
	else
Packit Service edead4
	    echo "$UNAME_MACHINE"-unknown-osf1
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    parisc*:Lites*:*:*)
Packit 6bd9ab
	echo hppa1.1-hp-lites
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
Packit 6bd9ab
	echo c1-convex-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
Packit 6bd9ab
	if getsysinfo -f scalar_acc
Packit 6bd9ab
	then echo c32-convex-bsd
Packit 6bd9ab
	else echo c2-convex-bsd
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
Packit 6bd9ab
	echo c34-convex-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
Packit 6bd9ab
	echo c38-convex-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
Packit 6bd9ab
	echo c4-convex-bsd
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    CRAY*Y-MP:*:*:*)
Packit Service edead4
	echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    CRAY*[A-Z]90:*:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
Packit 6bd9ab
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
Packit 6bd9ab
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
Packit 6bd9ab
	      -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    CRAY*TS:*:*:*)
Packit Service edead4
	echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    CRAY*T3E:*:*:*)
Packit Service edead4
	echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    CRAY*SV1:*:*:*)
Packit Service edead4
	echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:UNICOS/mp:*:*)
Packit Service edead4
	echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
Packit 6bd9ab
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
Packit 6bd9ab
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
Packit Service edead4
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
Packit 6bd9ab
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    5000:UNIX_System_V:4.*:*)
Packit 6bd9ab
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
Packit Service edead4
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
Packit 6bd9ab
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sparc*:BSD/OS:*:*)
Packit Service edead4
	echo sparc-unknown-bsdi"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:BSD/OS:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:FreeBSD:*:*)
Packit 6bd9ab
	UNAME_PROCESSOR=`/usr/bin/uname -p`
Packit Service edead4
	case "$UNAME_PROCESSOR" in
Packit 6bd9ab
	    amd64)
Packit 6bd9ab
		UNAME_PROCESSOR=x86_64 ;;
Packit 6bd9ab
	    i386)
Packit 6bd9ab
		UNAME_PROCESSOR=i586 ;;
Packit 6bd9ab
	esac
Packit Service edead4
	echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*:CYGWIN*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-cygwin
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:MINGW64*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-mingw64
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:MINGW*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-mingw32
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:MSYS*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-msys
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*:PW*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-pw32
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Interix*:*)
Packit Service edead4
	case "$UNAME_MACHINE" in
Packit 6bd9ab
	    x86)
Packit Service edead4
		echo i586-pc-interix"$UNAME_RELEASE"
Packit 6bd9ab
		exit ;;
Packit 6bd9ab
	    authenticamd | genuineintel | EM64T)
Packit Service edead4
		echo x86_64-unknown-interix"$UNAME_RELEASE"
Packit 6bd9ab
		exit ;;
Packit 6bd9ab
	    IA64)
Packit Service edead4
		echo ia64-unknown-interix"$UNAME_RELEASE"
Packit 6bd9ab
		exit ;;
Packit 6bd9ab
	esac ;;
Packit 6bd9ab
    i*:UWIN*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-uwin
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
Packit 6bd9ab
	echo x86_64-unknown-cygwin
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    prep*:SunOS:5.*:*)
Packit Service edead4
	echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:GNU:*:*)
Packit 6bd9ab
	# the GNU system
Packit Service edead4
	echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:GNU/*:*:*)
Packit 6bd9ab
	# other systems with GNU libc and userland
Packit Service edead4
	echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:Minix:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-minix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    aarch64:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    aarch64_be:Linux:*:*)
Packit 6bd9ab
	UNAME_MACHINE=aarch64_be
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    alpha:Linux:*:*)
Packit 6bd9ab
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
Packit 6bd9ab
	  EV5)   UNAME_MACHINE=alphaev5 ;;
Packit 6bd9ab
	  EV56)  UNAME_MACHINE=alphaev56 ;;
Packit 6bd9ab
	  PCA56) UNAME_MACHINE=alphapca56 ;;
Packit 6bd9ab
	  PCA57) UNAME_MACHINE=alphapca56 ;;
Packit 6bd9ab
	  EV6)   UNAME_MACHINE=alphaev6 ;;
Packit 6bd9ab
	  EV67)  UNAME_MACHINE=alphaev67 ;;
Packit 6bd9ab
	  EV68*) UNAME_MACHINE=alphaev68 ;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	objdump --private-headers /bin/sh | grep -q ld.so.1
Packit 6bd9ab
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    arc:Linux:*:* | arceb:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    arm*:Linux:*:*)
Packit Service edead4
	eval "$set_cc_for_build"
Packit 6bd9ab
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
Packit 6bd9ab
	    | grep -q __ARM_EABI__
Packit 6bd9ab
	then
Packit Service edead4
	    echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	else
Packit 6bd9ab
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
Packit 6bd9ab
		| grep -q __ARM_PCS_VFP
Packit 6bd9ab
	    then
Packit Service edead4
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
Packit 6bd9ab
	    else
Packit Service edead4
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
Packit 6bd9ab
	    fi
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    avr32*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    cris:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    crisv32:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    e2k:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    frv:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    hexagon:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ia64:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    k1om:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m32r*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    m68*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mips:Linux:*:* | mips64:Linux:*:*)
Packit Service edead4
	eval "$set_cc_for_build"
Packit Service edead4
	sed 's/^	//' << EOF > "$dummy.c"
Packit 6bd9ab
	#undef CPU
Packit 6bd9ab
	#undef ${UNAME_MACHINE}
Packit 6bd9ab
	#undef ${UNAME_MACHINE}el
Packit 6bd9ab
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
Packit 6bd9ab
	CPU=${UNAME_MACHINE}el
Packit 6bd9ab
	#else
Packit 6bd9ab
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
Packit 6bd9ab
	CPU=${UNAME_MACHINE}
Packit 6bd9ab
	#else
Packit 6bd9ab
	CPU=
Packit 6bd9ab
	#endif
Packit 6bd9ab
	#endif
Packit 6bd9ab
EOF
Packit Service edead4
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
Packit Service edead4
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
Packit 6bd9ab
	;;
Packit 6bd9ab
    mips64el:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    openrisc*:Linux:*:*)
Packit Service edead4
	echo or1k-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    or32:Linux:*:* | or1k*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    padre:Linux:*:*)
Packit Service edead4
	echo sparc-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    parisc64:Linux:*:* | hppa64:Linux:*:*)
Packit Service edead4
	echo hppa64-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    parisc:Linux:*:* | hppa:Linux:*:*)
Packit 6bd9ab
	# Look for CPU level
Packit 6bd9ab
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
Packit Service edead4
	  PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
Packit Service edead4
	  PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
Packit Service edead4
	  *)    echo hppa-unknown-linux-"$LIBC" ;;
Packit 6bd9ab
	esac
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ppc64:Linux:*:*)
Packit Service edead4
	echo powerpc64-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ppc:Linux:*:*)
Packit Service edead4
	echo powerpc-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ppc64le:Linux:*:*)
Packit Service edead4
	echo powerpc64le-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    ppcle:Linux:*:*)
Packit Service edead4
	echo powerpcle-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    riscv32:Linux:*:* | riscv64:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    s390:Linux:*:* | s390x:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sh64*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sh*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    sparc:Linux:*:* | sparc64:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    tile*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    vax:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    x86_64:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    xtensa*:Linux:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:DYNIX/ptx:4*:*)
Packit 6bd9ab
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
Packit 6bd9ab
	# earlier versions are messed up and put the nodename in both
Packit 6bd9ab
	# sysname and nodename.
Packit 6bd9ab
	echo i386-sequent-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:UNIX_SV:4.2MP:2.*)
Packit 6bd9ab
	# Unixware is an offshoot of SVR4, but it has its own version
Packit 6bd9ab
	# number series starting with 2...
Packit 6bd9ab
	# I am not positive that other SVR4 systems won't match this,
Packit 6bd9ab
	# I just have to hope.  -- rms.
Packit 6bd9ab
	# Use sysv4.2uw... so that sysv4* matches it.
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:OS/2:*:*)
Packit 6bd9ab
	# If we were able to find `uname', then EMX Unix compatibility
Packit 6bd9ab
	# is probably installed.
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-os2-emx
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:XTS-300:*:STOP)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-stop
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:atheos:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-atheos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:syllable:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-syllable
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
Packit Service edead4
	echo i386-unknown-lynxos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:*DOS:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-msdosdjgpp
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:*:4.*:*)
Packit Service edead4
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
Packit 6bd9ab
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
Packit Service edead4
		echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
Packit 6bd9ab
	else
Packit Service edead4
		echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:*:5:[678]*)
Packit 6bd9ab
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
Packit 6bd9ab
	case `/bin/uname -X | grep "^Machine"` in
Packit 6bd9ab
	    *486*)	     UNAME_MACHINE=i486 ;;
Packit 6bd9ab
	    *Pentium)	     UNAME_MACHINE=i586 ;;
Packit 6bd9ab
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
Packit 6bd9ab
	esac
Packit Service edead4
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:*:3.2:*)
Packit 6bd9ab
	if test -f /usr/options/cb.name; then
Packit 6bd9ab
		UNAME_REL=`sed -n 's/.*Version //p' 
Packit Service edead4
		echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
Packit 6bd9ab
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
Packit 6bd9ab
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
Packit 6bd9ab
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
Packit 6bd9ab
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
Packit 6bd9ab
			&& UNAME_MACHINE=i586
Packit 6bd9ab
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
Packit 6bd9ab
			&& UNAME_MACHINE=i686
Packit 6bd9ab
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
Packit 6bd9ab
			&& UNAME_MACHINE=i686
Packit Service edead4
		echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
Packit 6bd9ab
	else
Packit Service edead4
		echo "$UNAME_MACHINE"-pc-sysv32
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    pc:*:*:*)
Packit 6bd9ab
	# Left here for compatibility:
Packit 6bd9ab
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
Packit 6bd9ab
	# the processor, so we play safe by assuming i586.
Packit 6bd9ab
	# Note: whatever this is, it MUST be the same as what config.sub
Packit 6bd9ab
	# prints for the "djgpp" host, or else GDB configure will decide that
Packit 6bd9ab
	# this is a cross-build.
Packit 6bd9ab
	echo i586-pc-msdosdjgpp
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Intel:Mach:3*:*)
Packit 6bd9ab
	echo i386-pc-mach3
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    paragon:*:*:*)
Packit 6bd9ab
	echo i860-intel-osf1
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i860:*:4.*:*) # i860-SVR4
Packit 6bd9ab
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
Packit Service edead4
	  echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
Packit 6bd9ab
	else # Add other i860-SVR4 vendors below as they are discovered.
Packit Service edead4
	  echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mini*:CTIX:SYS*5:*)
Packit 6bd9ab
	# "miniframe"
Packit 6bd9ab
	echo m68010-convergent-sysv
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mc68k:UNIX:SYSTEM5:3.51m)
Packit 6bd9ab
	echo m68k-convergent-sysv
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    M680?0:D-NIX:5.3:*)
Packit 6bd9ab
	echo m68k-diab-dnix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    M68*:*:R3V[5678]*:*)
Packit 6bd9ab
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
Packit 6bd9ab
    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)
Packit 6bd9ab
	OS_REL=''
Packit 6bd9ab
	test -r /etc/.relid \
Packit 6bd9ab
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit Service edead4
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
Packit Service edead4
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
Packit 6bd9ab
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit 6bd9ab
	  && { echo i486-ncr-sysv4; exit; } ;;
Packit 6bd9ab
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
Packit 6bd9ab
	OS_REL='.3'
Packit 6bd9ab
	test -r /etc/.relid \
Packit 6bd9ab
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
Packit Service edead4
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
Packit Service edead4
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
Packit 6bd9ab
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
Packit Service edead4
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
Packit 6bd9ab
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
Packit Service edead4
	echo m68k-unknown-lynxos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mc68030:UNIX_System_V:4.*:*)
Packit 6bd9ab
	echo m68k-atari-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    TSUNAMI:LynxOS:2.*:*)
Packit Service edead4
	echo sparc-unknown-lynxos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    rs6000:LynxOS:2.*:*)
Packit Service edead4
	echo rs6000-unknown-lynxos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
Packit Service edead4
	echo powerpc-unknown-lynxos"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SM[BE]S:UNIX_SV:*:*)
Packit Service edead4
	echo mips-dde-sysv"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    RM*:ReliantUNIX-*:*:*)
Packit 6bd9ab
	echo mips-sni-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    RM*:SINIX-*:*:*)
Packit 6bd9ab
	echo mips-sni-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:SINIX-*:*:*)
Packit 6bd9ab
	if uname -p 2>/dev/null >/dev/null ; then
Packit 6bd9ab
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
Packit Service edead4
		echo "$UNAME_MACHINE"-sni-sysv4
Packit 6bd9ab
	else
Packit 6bd9ab
		echo ns32k-sni-sysv
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
Packit 6bd9ab
			# says <Richard.M.Bartel@ccMail.Census.GOV>
Packit 6bd9ab
	echo i586-unisys-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:UNIX_System_V:4*:FTX*)
Packit 6bd9ab
	# From Gerald Hewes <hewes@openmarket.com>.
Packit 6bd9ab
	# How about differentiating between stratus architectures? -djm
Packit 6bd9ab
	echo hppa1.1-stratus-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:*:*:FTX*)
Packit 6bd9ab
	# From seanf@swdc.stratus.com.
Packit 6bd9ab
	echo i860-stratus-sysv4
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:VOS:*:*)
Packit 6bd9ab
	# From Paul.Green@stratus.com.
Packit Service edead4
	echo "$UNAME_MACHINE"-stratus-vos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:VOS:*:*)
Packit 6bd9ab
	# From Paul.Green@stratus.com.
Packit 6bd9ab
	echo hppa1.1-stratus-vos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    mc68*:A/UX:*:*)
Packit Service edead4
	echo m68k-apple-aux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    news*:NEWS-OS:6*:*)
Packit 6bd9ab
	echo mips-sony-newsos6
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
Packit 6bd9ab
	if [ -d /usr/nec ]; then
Packit Service edead4
		echo mips-nec-sysv"$UNAME_RELEASE"
Packit 6bd9ab
	else
Packit Service edead4
		echo mips-unknown-sysv"$UNAME_RELEASE"
Packit 6bd9ab
	fi
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
Packit 6bd9ab
	echo powerpc-be-beos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
Packit 6bd9ab
	echo powerpc-apple-beos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
Packit 6bd9ab
	echo i586-pc-beos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
Packit 6bd9ab
	echo i586-pc-haiku
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    x86_64:Haiku:*:*)
Packit 6bd9ab
	echo x86_64-unknown-haiku
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-4:SUPER-UX:*:*)
Packit Service edead4
	echo sx4-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-5:SUPER-UX:*:*)
Packit Service edead4
	echo sx5-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-6:SUPER-UX:*:*)
Packit Service edead4
	echo sx6-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-7:SUPER-UX:*:*)
Packit Service edead4
	echo sx7-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-8:SUPER-UX:*:*)
Packit Service edead4
	echo sx8-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-8R:SUPER-UX:*:*)
Packit Service edead4
	echo sx8r-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SX-ACE:SUPER-UX:*:*)
Packit Service edead4
	echo sxace-nec-superux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    Power*:Rhapsody:*:*)
Packit Service edead4
	echo powerpc-apple-rhapsody"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Rhapsody:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Darwin:*:*)
Packit 6bd9ab
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
Packit Service edead4
	eval "$set_cc_for_build"
Packit 6bd9ab
	if test "$UNAME_PROCESSOR" = unknown ; then
Packit 6bd9ab
	    UNAME_PROCESSOR=powerpc
Packit 6bd9ab
	fi
Packit Service edead4
	if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
Packit 6bd9ab
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
Packit 6bd9ab
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
Packit 6bd9ab
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
Packit 6bd9ab
		       grep IS_64BIT_ARCH >/dev/null
Packit 6bd9ab
		then
Packit 6bd9ab
		    case $UNAME_PROCESSOR in
Packit 6bd9ab
			i386) UNAME_PROCESSOR=x86_64 ;;
Packit 6bd9ab
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
Packit 6bd9ab
		    esac
Packit 6bd9ab
		fi
Packit 6bd9ab
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
Packit 6bd9ab
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
Packit 6bd9ab
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
Packit 6bd9ab
		       grep IS_PPC >/dev/null
Packit 6bd9ab
		then
Packit 6bd9ab
		    UNAME_PROCESSOR=powerpc
Packit 6bd9ab
		fi
Packit 6bd9ab
	    fi
Packit 6bd9ab
	elif test "$UNAME_PROCESSOR" = i386 ; then
Packit 6bd9ab
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
Packit 6bd9ab
	    # that puts up a graphical alert prompting to install
Packit 6bd9ab
	    # developer tools.  Any system running Mac OS X 10.7 or
Packit 6bd9ab
	    # later (Darwin 11 and later) is required to have a 64-bit
Packit 6bd9ab
	    # processor. This is not true of the ARM version of Darwin
Packit 6bd9ab
	    # that Apple uses in portable devices.
Packit 6bd9ab
	    UNAME_PROCESSOR=x86_64
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
Packit 6bd9ab
	UNAME_PROCESSOR=`uname -p`
Packit 6bd9ab
	if test "$UNAME_PROCESSOR" = x86; then
Packit 6bd9ab
		UNAME_PROCESSOR=i386
Packit 6bd9ab
		UNAME_MACHINE=pc
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:QNX:*:4*)
Packit 6bd9ab
	echo i386-pc-qnx
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    NEO-*:NONSTOP_KERNEL:*:*)
Packit Service edead4
	echo neo-tandem-nsk"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    NSE-*:NONSTOP_KERNEL:*:*)
Packit Service edead4
	echo nse-tandem-nsk"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    NSR-*:NONSTOP_KERNEL:*:*)
Packit Service edead4
	echo nsr-tandem-nsk"$UNAME_RELEASE"
Packit Service edead4
	exit ;;
Packit Service edead4
    NSV-*:NONSTOP_KERNEL:*:*)
Packit Service edead4
	echo nsv-tandem-nsk"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    NSX-*:NONSTOP_KERNEL:*:*)
Packit Service edead4
	echo nsx-tandem-nsk"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:NonStop-UX:*:*)
Packit 6bd9ab
	echo mips-compaq-nonstopux
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    BS2000:POSIX*:*:*)
Packit 6bd9ab
	echo bs2000-siemens-sysv
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    DS/*:UNIX_System_V:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:Plan9:*:*)
Packit 6bd9ab
	# "uname -m" is not consistent, so use $cputype instead. 386
Packit 6bd9ab
	# is converted to i386 for consistency with other x86
Packit 6bd9ab
	# operating systems.
Packit 6bd9ab
	if test "$cputype" = 386; then
Packit 6bd9ab
	    UNAME_MACHINE=i386
Packit 6bd9ab
	else
Packit 6bd9ab
	    UNAME_MACHINE="$cputype"
Packit 6bd9ab
	fi
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-plan9
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:TOPS-10:*:*)
Packit 6bd9ab
	echo pdp10-unknown-tops10
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:TENEX:*:*)
Packit 6bd9ab
	echo pdp10-unknown-tenex
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
Packit 6bd9ab
	echo pdp10-dec-tops20
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
Packit 6bd9ab
	echo pdp10-xkl-tops20
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:TOPS-20:*:*)
Packit 6bd9ab
	echo pdp10-unknown-tops20
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:ITS:*:*)
Packit 6bd9ab
	echo pdp10-unknown-its
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    SEI:*:*:SEIUX)
Packit Service edead4
	echo mips-sei-seiux"$UNAME_RELEASE"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:DragonFly:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    *:*VMS:*:*)
Packit 6bd9ab
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
Packit Service edead4
	case "$UNAME_MACHINE" in
Packit 6bd9ab
	    A*) echo alpha-dec-vms ; exit ;;
Packit 6bd9ab
	    I*) echo ia64-dec-vms ; exit ;;
Packit 6bd9ab
	    V*) echo vax-dec-vms ; exit ;;
Packit 6bd9ab
	esac ;;
Packit 6bd9ab
    *:XENIX:*:SysV)
Packit 6bd9ab
	echo i386-pc-xenix
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:skyos:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:rdos:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-rdos
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    i*86:AROS:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-pc-aros
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    x86_64:VMkernel:*:*)
Packit Service edead4
	echo "$UNAME_MACHINE"-unknown-esx
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
    amd64:Isilon\ OneFS:*:*)
Packit 6bd9ab
	echo x86_64-unknown-onefs
Packit 6bd9ab
	exit ;;
Packit 6bd9ab
esac
Packit 6bd9ab
Packit 6bd9ab
echo "$0: unable to guess system type" >&2
Packit 6bd9ab
Packit Service edead4
case "$UNAME_MACHINE:$UNAME_SYSTEM" in
Packit 6bd9ab
    mips:Linux | mips64:Linux)
Packit 6bd9ab
	# If we got here on MIPS GNU/Linux, output extra information.
Packit 6bd9ab
	cat >&2 <
Packit 6bd9ab
Packit 6bd9ab
NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
Packit 6bd9ab
the system type. Please install a C compiler and try again.
Packit 6bd9ab
EOF
Packit 6bd9ab
	;;
Packit 6bd9ab
esac
Packit 6bd9ab
Packit 6bd9ab
cat >&2 <
Packit 6bd9ab
Packit 6bd9ab
This script (version $timestamp), has failed to recognize the
Packit 6bd9ab
operating system you are using. If your script is old, overwrite *all*
Packit 6bd9ab
copies of config.guess and config.sub with the latest versions from:
Packit 6bd9ab
Packit 6bd9ab
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
Packit 6bd9ab
and
Packit 6bd9ab
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
Packit 6bd9ab
Packit 6bd9ab
If $0 has already been updated, send the following data and any
Packit 6bd9ab
information you think might be pertinent to config-patches@gnu.org to
Packit 6bd9ab
provide the necessary information to handle your system.
Packit 6bd9ab
Packit 6bd9ab
config.guess timestamp = $timestamp
Packit 6bd9ab
Packit 6bd9ab
uname -m = `(uname -m) 2>/dev/null || echo unknown`
Packit 6bd9ab
uname -r = `(uname -r) 2>/dev/null || echo unknown`
Packit 6bd9ab
uname -s = `(uname -s) 2>/dev/null || echo unknown`
Packit 6bd9ab
uname -v = `(uname -v) 2>/dev/null || echo unknown`
Packit 6bd9ab
Packit 6bd9ab
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
Packit 6bd9ab
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
Packit 6bd9ab
Packit 6bd9ab
hostinfo               = `(hostinfo) 2>/dev/null`
Packit 6bd9ab
/bin/universe          = `(/bin/universe) 2>/dev/null`
Packit 6bd9ab
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
Packit 6bd9ab
/bin/arch              = `(/bin/arch) 2>/dev/null`
Packit 6bd9ab
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
Packit 6bd9ab
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
Packit 6bd9ab
Packit Service edead4
UNAME_MACHINE = "$UNAME_MACHINE"
Packit Service edead4
UNAME_RELEASE = "$UNAME_RELEASE"
Packit Service edead4
UNAME_SYSTEM  = "$UNAME_SYSTEM"
Packit Service edead4
UNAME_VERSION = "$UNAME_VERSION"
Packit 6bd9ab
EOF
Packit 6bd9ab
Packit 6bd9ab
exit 1
Packit 6bd9ab
Packit 6bd9ab
# Local variables:
Packit Service edead4
# eval: (add-hook 'before-save-hook 'time-stamp)
Packit 6bd9ab
# time-stamp-start: "timestamp='"
Packit 6bd9ab
# time-stamp-format: "%:y-%02m-%02d"
Packit 6bd9ab
# time-stamp-end: "'"
Packit 6bd9ab
# End: