head	1.3;
access;
symbols
	netbsd-11-0-RC4:1.2.10.1
	xz-5-8-3:1.1.1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.10
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.8
	perseant-exfatfs-base:1.2
	netbsd-9-4-RELEASE:1.1.1.1
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.6
	netbsd-10-base:1.2
	netbsd-9-3-RELEASE:1.1.1.1
	cjep_sun2x-base1:1.2
	cjep_sun2x:1.2.0.4
	cjep_sun2x-base:1.2
	cjep_staticlib_x-base1:1.2
	netbsd-9-2-RELEASE:1.1.1.1
	cjep_staticlib_x:1.2.0.2
	cjep_staticlib_x-base:1.2
	netbsd-9-1-RELEASE:1.1.1.1
	phil-wifi-20200421:1.1.1.1
	phil-wifi-20200411:1.1.1.1
	is-mlppp:1.1.1.1.0.8
	is-mlppp-base:1.1.1.1
	phil-wifi-20200406:1.1.1.1
	netbsd-9-0-RELEASE:1.1.1.1
	netbsd-9-0-RC2:1.1.1.1
	netbsd-9-0-RC1:1.1.1.1
	phil-wifi-20191119:1.1.1.1
	netbsd-9:1.1.1.1.0.6
	netbsd-9-base:1.1.1.1
	phil-wifi:1.1.1.1.0.4
	phil-wifi-20190609:1.1.1.1
	pgoyette-compat-merge-20190127:1.1.1.1.2.2
	pgoyette-compat-20190127:1.1.1.1
	pgoyette-compat-20190118:1.1.1.1
	pgoyette-compat-1226:1.1.1.1
	pgoyette-compat-1126:1.1.1.1
	pgoyette-compat-1020:1.1.1.1
	pgoyette-compat:1.1.1.1.0.2
	pgoyette-compat-0930:1.1.1.1
	xz-5-2-4:1.1.1.1
	XZ:1.1.1;
locks; strict;
comment	@# @;


1.3
date	2026.04.08.21.00.50;	author christos;	state Exp;
branches;
next	1.2;
commitid	40Bg994CgYwdocBG;

1.2
date	2020.11.17.10.35.16;	author rin;	state Exp;
branches
	1.2.10.1;
next	1.1;
commitid	hRb62eUrAIizbewC;

1.1
date	2018.09.24.22.36.03;	author joerg;	state Exp;
branches
	1.1.1.1;
next	;
commitid	qbIr2HhHGiIvppTA;

1.2.10.1
date	2026.05.07.17.41.23;	author martin;	state Exp;
branches;
next	;
commitid	UDYUnD7C1YWLlUEG;

1.1.1.1
date	2018.09.24.22.36.03;	author joerg;	state Exp;
branches
	1.1.1.1.2.1
	1.1.1.1.4.1;
next	1.1.1.2;
commitid	qbIr2HhHGiIvppTA;

1.1.1.2
date	2026.04.08.20.28.16;	author christos;	state Exp;
branches;
next	;
commitid	E7kpWUUfSey5ccBG;

1.1.1.1.2.1
date	2018.09.24.22.36.03;	author pgoyette;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	SQ44grEPCeKPh4UA;

1.1.1.1.2.2
date	2018.09.30.01.45.30;	author pgoyette;	state Exp;
branches;
next	;
commitid	SQ44grEPCeKPh4UA;

1.1.1.1.4.1
date	2018.09.24.22.36.03;	author christos;	state dead;
branches;
next	1.1.1.1.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.1.1.1.4.2
date	2019.06.10.22.05.06;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;


desc
@@


1.3
log
@merge changes between 5.2.4 and 5.8.3
@
text
@#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2025 Free Software Foundation, Inc.

# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2025-07-10'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <https://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
#
# Please send patches to <config-patches@@gnu.org>.


# The "shellcheck disable" line above the timestamp inhibits complaints
# about features and limitations of the classic Bourne shell that were
# superseded or lifted in POSIX.  However, this script identifies a wide
# variety of pre-POSIX systems that do not have POSIX shells at all, and
# even some reasonably current systems (Solaris 10 as case-in-point) still
# have a pre-POSIX /bin/sh.


me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION]

Output the configuration name of the system '$me' is run on.

Options:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@@gnu.org>."

version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2025 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try '$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done

if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi

# Just in case it came from the environment.
GUESS=

# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.

# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
# use 'HOST_CC' if defined, but it is deprecated.

# Portable tmp directory creation inspired by the Autoconf team.

tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15

set_cc_for_build() {
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039,SC3028
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
	{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
	{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
	{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
    dummy=$tmp/dummy
    case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
	,,)    echo "int x;" > "$dummy.c"
	       for driver in cc gcc c17 c99 c89 ; do
		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
		       CC_FOR_BUILD=$driver
		       break
		   fi
	       done
	       if test x"$CC_FOR_BUILD" = x ; then
		   CC_FOR_BUILD=no_compiler_found
	       fi
	       ;;
	,,*)   CC_FOR_BUILD=$CC ;;
	,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    esac
}

# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@@noc.rutgers.edu 1994-08-24)
if test -f /.attbin/uname ; then
	PATH=$PATH:/.attbin ; export PATH
fi

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

case $UNAME_SYSTEM in
Linux|GNU|GNU/*)
	LIBC=unknown

	set_cc_for_build
	cat <<-EOF > "$dummy.c"
	#if defined(__ANDROID__)
	LIBC=android
	#else
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#elif defined(__GLIBC__)
	LIBC=gnu
	#elif defined(__LLVM_LIBC__)
	LIBC=llvm
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
	#endif
	#endif
	EOF
	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	eval "$cc_set_libc"

	# Second heuristic to detect musl libc.
	if [ "$LIBC" = unknown ] &&
	   command -v ldd >/dev/null &&
	   ldd --version 2>&1 | grep -q ^musl; then
		LIBC=musl
	fi

	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	if [ "$LIBC" = unknown ]; then
		LIBC=gnu
	fi
	;;
esac

# Note: order is significant - the case branches are not exclusive.

case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
	# switched to ELF, *-*-netbsd* would select the old
	# object file format.  This provides both forward
	# compatibility and a consistent mechanism for selecting the
	# object file format.
	#
	# Note: NetBSD doesn't particularly care about the vendor
	# portion of the name.  We always set it to "unknown".
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    echo unknown)`
	case $UNAME_MACHINE_ARCH in
	    aarch64eb) machine=aarch64_be-unknown ;;
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-unknown ;;
	    sh5el) machine=sh5le-unknown ;;
	    earmv*)
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
	    *) machine=$UNAME_MACHINE_ARCH-unknown ;;
	esac
	# The Operating System including object format, if it has switched
	# to ELF recently (or will in the future) and ABI.
	case $UNAME_MACHINE_ARCH in
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ELF__
		then
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
		    # Return netbsd for either.  FIX?
		    os=netbsd
		else
		    os=netbsdelf
		fi
		;;
	    *)
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case $UNAME_MACHINE_ARCH in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
		;;
	esac
	# The OS release
	# Debian GNU/NetBSD machines have a different userland, and
	# thus, need a distinct triplet. However, they do not need
	# kernel version information, so it can be replaced with a
	# suitable tag, in the style of linux-gnu.
	case $UNAME_VERSION in
	    Debian*)
		release='-gnu'
		;;
	    *)
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
		;;
	esac
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	GUESS=$machine-${os}${release}${abi-}
	;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
	;;
    *:OpenBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
	;;
    *:SecBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
	;;
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
	;;
    *:MidnightBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
	;;
    *:ekkoBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
	;;
    *:SolidBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
	;;
    *:OS108:*:*)
	GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
	;;
    macppc:MirBSD:*:*)
	GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
	;;
    *:MirBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
	;;
    *:Sortix:*:*)
	GUESS=$UNAME_MACHINE-unknown-sortix
	;;
    *:Twizzler:*:*)
	GUESS=$UNAME_MACHINE-unknown-twizzler
	;;
    *:Redox:*:*)
	GUESS=$UNAME_MACHINE-unknown-redox
	;;
    mips:OSF1:*.*)
	GUESS=mips-dec-osf1
	;;
    alpha:OSF1:*:*)
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	trap '' 0
	case $UNAME_RELEASE in
	*4.0)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		;;
	*5.*)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
	# According to Compaq, /usr/sbin/psrinfo has been available on
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
	# covers most systems running today.  This code pipes the CPU
	# types through head -n 1, so we only detect the type of CPU 0.
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
	case $ALPHA_CPU_TYPE in
	    "EV4 (21064)")
		UNAME_MACHINE=alpha ;;
	    "EV4.5 (21064)")
		UNAME_MACHINE=alpha ;;
	    "LCA4 (21066/21068)")
		UNAME_MACHINE=alpha ;;
	    "EV5 (21164)")
		UNAME_MACHINE=alphaev5 ;;
	    "EV5.6 (21164A)")
		UNAME_MACHINE=alphaev56 ;;
	    "EV5.6 (21164PC)")
		UNAME_MACHINE=alphapca56 ;;
	    "EV5.7 (21164PC)")
		UNAME_MACHINE=alphapca57 ;;
	    "EV6 (21264)")
		UNAME_MACHINE=alphaev6 ;;
	    "EV6.7 (21264A)")
		UNAME_MACHINE=alphaev67 ;;
	    "EV6.8CB (21264C)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8AL (21264B)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8CX (21264D)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.9A (21264/EV69A)")
		UNAME_MACHINE=alphaev69 ;;
	    "EV7 (21364)")
		UNAME_MACHINE=alphaev7 ;;
	    "EV7.9 (21364A)")
		UNAME_MACHINE=alphaev79 ;;
	esac
	# A Pn.n version is a patched version.
	# A Vn.n version is a released version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
	;;
    Amiga*:UNIX_System_V:4.0:*)
	GUESS=m68k-unknown-sysv4
	;;
    *:[Aa]miga[Oo][Ss]:*:*)
	GUESS=$UNAME_MACHINE-unknown-amigaos
	;;
    *:[Mm]orph[Oo][Ss]:*:*)
	GUESS=$UNAME_MACHINE-unknown-morphos
	;;
    *:OS/390:*:*)
	GUESS=i370-ibm-openedition
	;;
    *:z/VM:*:*)
	GUESS=s390-ibm-zvmoe
	;;
    *:OS400:*:*)
	GUESS=powerpc-ibm-os400
	;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	GUESS=arm-acorn-riscix$UNAME_RELEASE
	;;
    arm*:riscos:*:*|arm*:RISCOS:*:*)
	GUESS=arm-unknown-riscos
	;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	GUESS=hppa1.1-hitachi-hiuxmpp
	;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	case `(/bin/universe) 2>/dev/null` in
	    att) GUESS=pyramid-pyramid-sysv3 ;;
	    *)   GUESS=pyramid-pyramid-bsd   ;;
	esac
	;;
    NILE*:*:*:dcosx)
	GUESS=pyramid-pyramid-svr4
	;;
    DRS?6000:unix:4.0:6*)
	GUESS=sparc-icl-nx6
	;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
	case `/usr/bin/uname -p` in
	    sparc) GUESS=sparc-icl-nx7 ;;
	esac
	;;
    s390x:SunOS:*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
	;;
    sun4H:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-hal-solaris2$SUN_REL
	;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris2$SUN_REL
	;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	GUESS=i386-pc-auroraux$UNAME_RELEASE
	;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
	;;
    sun4*:SunOS:6*:*)
	# According to config.sub, this is the proper way to canonicalize
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
	# it's likely to be more like Solaris than SunOS4.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris3$SUN_REL
	;;
    sun4*:SunOS:*:*)
	case `/usr/bin/arch -k` in
	    Series*|S4*)
		UNAME_RELEASE=`uname -v`
		;;
	esac
	# Japanese Language versions have a version number like '4.1.3-JL'.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
	GUESS=sparc-sun-sunos$SUN_REL
	;;
    sun3*:SunOS:*:*)
	GUESS=m68k-sun-sunos$UNAME_RELEASE
	;;
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
	case `/bin/arch` in
	    sun3)
		GUESS=m68k-sun-sunos$UNAME_RELEASE
		;;
	    sun4)
		GUESS=sparc-sun-sunos$UNAME_RELEASE
		;;
	esac
	;;
    aushp:SunOS:*:*)
	GUESS=sparc-auspex-sunos$UNAME_RELEASE
	;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
	GUESS=m68k-milan-mint$UNAME_RELEASE
	;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
	GUESS=m68k-hades-mint$UNAME_RELEASE
	;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
	GUESS=m68k-unknown-mint$UNAME_RELEASE
	;;
    m68k:machten:*:*)
	GUESS=m68k-apple-machten$UNAME_RELEASE
	;;
    powerpc:machten:*:*)
	GUESS=powerpc-apple-machten$UNAME_RELEASE
	;;
    RISC*:Mach:*:*)
	GUESS=mips-dec-mach_bsd4.3
	;;
    RISC*:ULTRIX:*:*)
	GUESS=mips-dec-ultrix$UNAME_RELEASE
	;;
    VAX*:ULTRIX*:*:*)
	GUESS=vax-dec-ultrix$UNAME_RELEASE
	;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
	GUESS=clipper-intergraph-clix$UNAME_RELEASE
	;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
	int main (int argc, char *argv[]) {
#else
	int main (argc, argv) int argc; char *argv[]; {
#endif
	#if defined (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_SVR4)
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
	#endif
	#endif
	  exit (-1);
	}
EOF
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
	    { echo "$SYSTEM_NAME"; exit; }
	GUESS=mips-mips-riscos$UNAME_RELEASE
	;;
    Motorola:PowerMAX_OS:*:*)
	GUESS=powerpc-motorola-powermax
	;;
    Motorola:*:4.3:PL8-*)
	GUESS=powerpc-harris-powermax
	;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
	GUESS=powerpc-harris-powermax
	;;
    Night_Hawk:Power_UNIX:*:*)
	GUESS=powerpc-harris-powerunix
	;;
    m88k:CX/UX:7*:*)
	GUESS=m88k-harris-cxux7
	;;
    m88k:*:4*:R4*)
	GUESS=m88k-motorola-sysv4
	;;
    m88k:*:3*:R3*)
	GUESS=m88k-motorola-sysv3
	;;
    AViiON:dgux:*:*)
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
	then
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
	    then
		GUESS=m88k-dg-dgux$UNAME_RELEASE
	    else
		GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
	    fi
	else
	    GUESS=i586-dg-dgux$UNAME_RELEASE
	fi
	;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	GUESS=m88k-dolphin-sysv3
	;;
    M88*:*:R3*:*)
	# Delta 88k system running SVR3
	GUESS=m88k-motorola-sysv3
	;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
	GUESS=m88k-tektronix-sysv3
	;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
	GUESS=m68k-tektronix-bsd
	;;
    *:IRIX*:*:*)
	IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
	GUESS=mips-sgi-irix$IRIX_REL
	;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
	GUESS=romp-ibm-aix    # uname -m gives an 8 hex-code CPU id
	;;                    # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
	GUESS=i386-ibm-aix
	;;
    ia64:AIX:*:*)
	if test -x /usr/bin/oslevel ; then
		IBM_REV=`/usr/bin/oslevel`
	else
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
	fi
	GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
	;;
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
		#include <sys/systemcfg.h>

		int
		main ()
			{
			if (!__power_pc())
				exit(1);
			puts("powerpc-ibm-aix3.2.5");
			exit(0);
			}
EOF
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
		then
			GUESS=$SYSTEM_NAME
		else
			GUESS=rs6000-ibm-aix3.2.5
		fi
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		GUESS=rs6000-ibm-aix3.2.4
	else
		GUESS=rs6000-ibm-aix3.2
	fi
	;;
    *:AIX:*:[4567])
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
		IBM_ARCH=rs6000
	else
		IBM_ARCH=powerpc
	fi
	if test -x /usr/bin/lslpp ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
	else
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
	fi
	GUESS=$IBM_ARCH-ibm-aix$IBM_REV
	;;
    *:AIX:*:*)
	GUESS=rs6000-ibm-aix
	;;
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
	GUESS=romp-ibm-bsd4.4
	;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	GUESS=romp-ibm-bsd$UNAME_RELEASE    # 4.3 with uname added to
	;;                                  # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
	GUESS=rs6000-bull-bosx
	;;
    DPX/2?00:B.O.S.:*:*)
	GUESS=m68k-bull-sysv3
	;;
    9000/[34]??:4.3bsd:1.*:*)
	GUESS=m68k-hp-bsd
	;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	GUESS=m68k-hp-bsd4.4
	;;
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	case $UNAME_MACHINE in
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
	    9000/[678][0-9][0-9])
		if test -x /usr/bin/getconf; then
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case $sc_cpu_version in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case $sc_kernel_bits in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
		fi
		if test "$HP_ARCH" = ""; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int
		main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
EOF
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
		    test -z "$HP_ARCH" && HP_ARCH=hppa
		fi ;;
	esac
	if test "$HP_ARCH" = hppa2.0w
	then
	    set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
	    then
		HP_ARCH=hppa2.0w
	    else
		HP_ARCH=hppa64
	    fi
	fi
	GUESS=$HP_ARCH-hp-hpux$HPUX_REV
	;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	GUESS=ia64-hp-hpux$HPUX_REV
	;;
    3050*:HI-UX:*:*)
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
	#include <unistd.h>
	int
	main ()
	{
	  long cpu = sysconf (_SC_CPU_VERSION);
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
	     results, however.  */
	  if (CPU_IS_PA_RISC (cpu))
	    {
	      switch (cpu)
		{
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
		}
	    }
	  else if (CPU_IS_HP_MC68K (cpu))
	    puts ("m68k-hitachi-hiuxwe2");
	  else puts ("unknown-hitachi-hiuxwe2");
	  exit (0);
	}
EOF
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
		{ echo "$SYSTEM_NAME"; exit; }
	GUESS=unknown-hitachi-hiuxwe2
	;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
	GUESS=hppa1.1-hp-bsd
	;;
    9000/8??:4.3bsd:*:*)
	GUESS=hppa1.0-hp-bsd
	;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	GUESS=hppa1.0-hp-mpeix
	;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
	GUESS=hppa1.1-hp-osf
	;;
    hp8??:OSF1:*:*)
	GUESS=hppa1.0-hp-osf
	;;
    i*86:OSF1:*:*)
	if test -x /usr/sbin/sysversion ; then
	    GUESS=$UNAME_MACHINE-unknown-osf1mk
	else
	    GUESS=$UNAME_MACHINE-unknown-osf1
	fi
	;;
    parisc*:Lites*:*:*)
	GUESS=hppa1.1-hp-lites
	;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
	GUESS=c1-convex-bsd
	;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
	GUESS=c34-convex-bsd
	;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
	GUESS=c38-convex-bsd
	;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	GUESS=c4-convex-bsd
	;;
    CRAY*Y-MP:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=ymp-cray-unicos$CRAY_REL
	;;
    CRAY*[A-Z]90:*:*:*)
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*TS:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=t90-cray-unicos$CRAY_REL
	;;
    CRAY*T3E:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=alphaev5-cray-unicosmk$CRAY_REL
	;;
    CRAY*SV1:*:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=sv1-cray-unicos$CRAY_REL
	;;
    *:UNICOS/mp:*:*)
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=craynv-cray-unicosmp$CRAY_REL
	;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
	GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
    5000:UNIX_System_V:4.*:*)
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
	GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
	;;
    sparc*:BSD/OS:*:*)
	GUESS=sparc-unknown-bsdi$UNAME_RELEASE
	;;
    *:BSD/OS:*:*)
	GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
	;;
    arm:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	set_cc_for_build
	if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_PCS_VFP
	then
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
	else
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
	fi
	;;
    *:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    amd64)
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
	esac
	FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
	;;
    i*:CYGWIN*:*)
	GUESS=$UNAME_MACHINE-pc-cygwin
	;;
    *:MINGW64*:*)
	GUESS=$UNAME_MACHINE-pc-mingw64
	;;
    *:MINGW*:*)
	GUESS=$UNAME_MACHINE-pc-mingw32
	;;
    *:MSYS*:*)
	GUESS=$UNAME_MACHINE-pc-msys
	;;
    i*:PW*:*)
	GUESS=$UNAME_MACHINE-pc-pw32
	;;
    *:SerenityOS:*:*)
        GUESS=$UNAME_MACHINE-pc-serenity
        ;;
    *:Interix*:*)
	case $UNAME_MACHINE in
	    x86)
		GUESS=i586-pc-interix$UNAME_RELEASE
		;;
	    authenticamd | genuineintel | EM64T)
		GUESS=x86_64-unknown-interix$UNAME_RELEASE
		;;
	    IA64)
		GUESS=ia64-unknown-interix$UNAME_RELEASE
		;;
	esac ;;
    i*:UWIN*:*)
	GUESS=$UNAME_MACHINE-pc-uwin
	;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	GUESS=x86_64-pc-cygwin
	;;
    prep*:SunOS:5.*:*)
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=powerpcle-unknown-solaris2$SUN_REL
	;;
    *:GNU:*:*)
	# the GNU system
	GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
	GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
	;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
	;;
    x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-pc-managarm-mlibc"
	;;
    *:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-unknown-managarm-mlibc"
	;;
    *:Minix:*:*)
	GUESS=$UNAME_MACHINE-unknown-minix
	;;
    aarch64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __ARM_EABI__
	    #ifdef __ARM_PCS_VFP
	    ABI=eabihf
	    #else
	    ABI=eabi
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;;
	    esac
	fi
	GUESS=$CPU-unknown-linux-$LIBCABI
	;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
	esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arm*:Linux:*:*)
	set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	else
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
	    else
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
	    fi
	fi
	;;
    avr32*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    cris:Linux:*:*)
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
    crisv32:Linux:*:*)
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
    e2k:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    frv:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    hexagon:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    i*86:Linux:*:*)
	GUESS=$UNAME_MACHINE-pc-linux-$LIBC
	;;
    ia64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    k1om:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:cos:*:*)
	GUESS=$UNAME_MACHINE-unknown-cos
	;;
    kvx:mbr:*:*)
	GUESS=$UNAME_MACHINE-unknown-mbr
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    m32r*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    m68*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    mips:Linux:*:* | mips64:Linux:*:*)
	set_cc_for_build
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
	sed 's/^	//' << EOF > "$dummy.c"
	#undef CPU
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	MIPS_ENDIAN=el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	MIPS_ENDIAN=
	#else
	MIPS_ENDIAN=
	#endif
	#endif
EOF
	cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
	eval "$cc_set_vars"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
	;;
    mips64el:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    openrisc*:Linux:*:*)
	GUESS=or1k-unknown-linux-$LIBC
	;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    padre:Linux:*:*)
	GUESS=sparc-unknown-linux-$LIBC
	;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	GUESS=hppa64-unknown-linux-$LIBC
	;;
    parisc:Linux:*:* | hppa:Linux:*:*)
	# Look for CPU level
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
	  PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
	  PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
	  *)    GUESS=hppa-unknown-linux-$LIBC ;;
	esac
	;;
    ppc64:Linux:*:*)
	GUESS=powerpc64-unknown-linux-$LIBC
	;;
    ppc:Linux:*:*)
	GUESS=powerpc-unknown-linux-$LIBC
	;;
    ppc64le:Linux:*:*)
	GUESS=powerpc64le-unknown-linux-$LIBC
	;;
    ppcle:Linux:*:*)
	GUESS=powerpcle-unknown-linux-$LIBC
	;;
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    s390:Linux:*:* | s390x:Linux:*:*)
	GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
	;;
    sh64*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    sh*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    tile*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    vax:Linux:*:*)
	GUESS=$UNAME_MACHINE-dec-linux-$LIBC
	;;
    x86_64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __i386__
	    ABI=x86
	    #else
	    #ifdef __ILP32__
	    ABI=x32
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		x86) CPU=i686 ;;
		x32) LIBCABI=${LIBC}x32 ;;
	    esac
	fi
	GUESS=$CPU-pc-linux-$LIBCABI
	;;
    xtensa*:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    i*86:DYNIX/ptx:4*:*)
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
	# earlier versions are messed up and put the nodename in both
	# sysname and nodename.
	GUESS=i386-sequent-sysv4
	;;
    i*86:UNIX_SV:4.2MP:2.*)
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
	# I just have to hope.  -- rms.
	# Use sysv4.2uw... so that sysv4* matches it.
	GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
	;;
    i*86:OS/2:*:*)
	# If we were able to find 'uname', then EMX Unix compatibility
	# is probably installed.
	GUESS=$UNAME_MACHINE-pc-os2-emx
	;;
    i*86:XTS-300:*:STOP)
	GUESS=$UNAME_MACHINE-unknown-stop
	;;
    i*86:atheos:*:*)
	GUESS=$UNAME_MACHINE-unknown-atheos
	;;
    i*86:syllable:*:*)
	GUESS=$UNAME_MACHINE-pc-syllable
	;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
	GUESS=i386-unknown-lynxos$UNAME_RELEASE
	;;
    i*86:*DOS:*:*)
	GUESS=$UNAME_MACHINE-pc-msdosdjgpp
	;;
    i*86:*:4.*:*)
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
	else
		GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
	fi
	;;
    i*86:*:5:[678]*)
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
	case `/bin/uname -X | grep "^Machine"` in
	    *486*)	     UNAME_MACHINE=i486 ;;
	    *Pentium)	     UNAME_MACHINE=i586 ;;
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
	esac
	GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
	else
		GUESS=$UNAME_MACHINE-pc-sysv32
	fi
	;;
    pc:*:*:*)
	# Left here for compatibility:
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configure will decide that
	# this is a cross-build.
	GUESS=i586-pc-msdosdjgpp
	;;
    Intel:Mach:3*:*)
	GUESS=i386-pc-mach3
	;;
    paragon:*:*:*)
	GUESS=i860-intel-osf1
	;;
    i860:*:4.*:*) # i860-SVR4
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
	  GUESS=i860-stardent-sysv$UNAME_RELEASE    # Stardent Vistra i860-SVR4
	else # Add other i860-SVR4 vendors below as they are discovered.
	  GUESS=i860-unknown-sysv$UNAME_RELEASE     # Unknown i860-SVR4
	fi
	;;
    mini*:CTIX:SYS*5:*)
	# "miniframe"
	GUESS=m68010-convergent-sysv
	;;
    mc68k:UNIX:SYSTEM5:3.51m)
	GUESS=m68k-convergent-sysv
	;;
    M680?0:D-NIX:5.3:*)
	GUESS=m68k-diab-dnix
	;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
	OS_REL=''
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	GUESS=m68k-unknown-lynxos$UNAME_RELEASE
	;;
    mc68030:UNIX_System_V:4.*:*)
	GUESS=m68k-atari-sysv4
	;;
    TSUNAMI:LynxOS:2.*:*)
	GUESS=sparc-unknown-lynxos$UNAME_RELEASE
	;;
    rs6000:LynxOS:2.*:*)
	GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
	;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
	GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
	;;
    SM[BE]S:UNIX_SV:*:*)
	GUESS=mips-dde-sysv$UNAME_RELEASE
	;;
    RM*:ReliantUNIX-*:*:*)
	GUESS=mips-sni-sysv4
	;;
    RM*:SINIX-*:*:*)
	GUESS=mips-sni-sysv4
	;;
    *:SINIX-*:*:*)
	if uname -p 2>/dev/null >/dev/null ; then
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
		GUESS=$UNAME_MACHINE-sni-sysv4
	else
		GUESS=ns32k-sni-sysv
	fi
	;;
    PENTIUM:*:4.0*:*)	# Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	GUESS=i586-unisys-sysv4
	;;
    *:UNIX_System_V:4*:FTX*)
	# From Gerald Hewes <hewes@@openmarket.com>.
	# How about differentiating between stratus architectures? -djm
	GUESS=hppa1.1-stratus-sysv4
	;;
    *:*:*:FTX*)
	# From seanf@@swdc.stratus.com.
	GUESS=i860-stratus-sysv4
	;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	GUESS=$UNAME_MACHINE-stratus-vos
	;;
    *:VOS:*:*)
	# From Paul.Green@@stratus.com.
	GUESS=hppa1.1-stratus-vos
	;;
    mc68*:A/UX:*:*)
	GUESS=m68k-apple-aux$UNAME_RELEASE
	;;
    news*:NEWS-OS:6*:*)
	GUESS=mips-sony-newsos6
	;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if test -d /usr/nec; then
		GUESS=mips-nec-sysv$UNAME_RELEASE
	else
		GUESS=mips-unknown-sysv$UNAME_RELEASE
	fi
	;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	GUESS=powerpc-be-beos
	;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	GUESS=powerpc-apple-beos
	;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	GUESS=i586-pc-beos
	;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	GUESS=i586-pc-haiku
	;;
    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
	GUESS=powerpc-apple-haiku
	;;
    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
	GUESS=$UNAME_MACHINE-unknown-haiku
	;;
    SX-4:SUPER-UX:*:*)
	GUESS=sx4-nec-superux$UNAME_RELEASE
	;;
    SX-5:SUPER-UX:*:*)
	GUESS=sx5-nec-superux$UNAME_RELEASE
	;;
    SX-6:SUPER-UX:*:*)
	GUESS=sx6-nec-superux$UNAME_RELEASE
	;;
    SX-7:SUPER-UX:*:*)
	GUESS=sx7-nec-superux$UNAME_RELEASE
	;;
    SX-8:SUPER-UX:*:*)
	GUESS=sx8-nec-superux$UNAME_RELEASE
	;;
    SX-8R:SUPER-UX:*:*)
	GUESS=sx8r-nec-superux$UNAME_RELEASE
	;;
    SX-ACE:SUPER-UX:*:*)
	GUESS=sxace-nec-superux$UNAME_RELEASE
	;;
    Power*:Rhapsody:*:*)
	GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
	;;
    *:Rhapsody:*:*)
	GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
	;;
    arm64:Darwin:*:*)
	GUESS=aarch64-apple-darwin$UNAME_RELEASE
	;;
    *:Darwin:*:*)
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
	fi
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
	fi
	GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
	;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
	UNAME_PROCESSOR=`uname -p`
	if test "$UNAME_PROCESSOR" = x86; then
		UNAME_PROCESSOR=i386
		UNAME_MACHINE=pc
	fi
	GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
	;;
    *:QNX:*:4*)
	GUESS=i386-pc-qnx
	;;
    NEO-*:NONSTOP_KERNEL:*:*)
	GUESS=neo-tandem-nsk$UNAME_RELEASE
	;;
    NSE-*:NONSTOP_KERNEL:*:*)
	GUESS=nse-tandem-nsk$UNAME_RELEASE
	;;
    NSR-*:NONSTOP_KERNEL:*:*)
	GUESS=nsr-tandem-nsk$UNAME_RELEASE
	;;
    NSV-*:NONSTOP_KERNEL:*:*)
	GUESS=nsv-tandem-nsk$UNAME_RELEASE
	;;
    NSX-*:NONSTOP_KERNEL:*:*)
	GUESS=nsx-tandem-nsk$UNAME_RELEASE
	;;
    *:NonStop-UX:*:*)
	GUESS=mips-compaq-nonstopux
	;;
    BS2000:POSIX*:*:*)
	GUESS=bs2000-siemens-sysv
	;;
    DS/*:UNIX_System_V:*:*)
	GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
	;;
    *:Plan9:*:*)
	# "uname -m" is not consistent, so use $cputype instead. 386
	# is converted to i386 for consistency with other x86
	# operating systems.
	if test "${cputype-}" = 386; then
	    UNAME_MACHINE=i386
	elif test "x${cputype-}" != x; then
	    UNAME_MACHINE=$cputype
	fi
	GUESS=$UNAME_MACHINE-unknown-plan9
	;;
    *:TOPS-10:*:*)
	GUESS=pdp10-unknown-tops10
	;;
    *:TENEX:*:*)
	GUESS=pdp10-unknown-tenex
	;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	GUESS=pdp10-dec-tops20
	;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	GUESS=pdp10-xkl-tops20
	;;
    *:TOPS-20:*:*)
	GUESS=pdp10-unknown-tops20
	;;
    *:ITS:*:*)
	GUESS=pdp10-unknown-its
	;;
    SEI:*:*:SEIUX)
	GUESS=mips-sei-seiux$UNAME_RELEASE
	;;
    *:DragonFly:*:*)
	DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
	;;
    *:*VMS:*:*)
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case $UNAME_MACHINE in
	    A*) GUESS=alpha-dec-vms ;;
	    I*) GUESS=ia64-dec-vms ;;
	    V*) GUESS=vax-dec-vms ;;
	esac ;;
    *:XENIX:*:SysV)
	GUESS=i386-pc-xenix
	;;
    i*86:skyos:*:*)
	SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
	GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
	;;
    i*86:rdos:*:*)
	GUESS=$UNAME_MACHINE-pc-rdos
	;;
    i*86:Fiwix:*:*)
	GUESS=$UNAME_MACHINE-pc-fiwix
	;;
    *:AROS:*:*)
	GUESS=$UNAME_MACHINE-unknown-aros
	;;
    x86_64:VMkernel:*:*)
	GUESS=$UNAME_MACHINE-unknown-esx
	;;
    amd64:Isilon\ OneFS:*:*)
	GUESS=x86_64-unknown-onefs
	;;
    *:Unleashed:*:*)
	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
	;;
    x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
	;;
    *:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
	;;
esac

# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
    echo "$GUESS"
    exit
fi

# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

echo "$0: unable to guess system type" >&2

case $UNAME_MACHINE:$UNAME_SYSTEM in
    mips:Linux | mips64:Linux)
	# If we got here on MIPS GNU/Linux, output extra information.
	cat >&2 <<EOF

NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
the system type. Please install a C compiler and try again.
EOF
	;;
esac

cat >&2 <<EOF

This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:

  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
and
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

our_year=`echo $timestamp | sed 's,-.*,,'`
thisyear=`date +%Y`
# shellcheck disable=SC2003
script_age=`expr "$thisyear" - "$our_year"`
if test "$script_age" -lt 3 ; then
   cat >&2 <<EOF

If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.

config.guess timestamp = $timestamp

uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`

hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`

UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
EOF
fi

exit 1

# Local variables:
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%Y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


1.2
log
@Support aarch64eb in */config.guess.

Cherry-picked from upstream:
https://git.savannah.gnu.org/gitweb/?p=config.git;a=commit;h=1c4398015583eb77bc043234f5734be055e64bea

Everything except external/apache2/llvm/dist/llvm/cmake/config.guess
is patched, which is under vendor tag and cannot be modified. I expect
that this file is not actually used as we use hand-crafted version of
configure script instead of cmake for building LLVM.

Note that external/apache2/llvm/autoconf/autoconf/config.guess has
already been committed on Oct. 20, but commit message disappeared as
cvs aborted due to "permission denied" when trying to modify the file
mentioned above. Sorry for confusing you.

Also note that GMP uses its own config.guess Patch for
external/lgpl3/gmp/dist/config.guess is provided by ryo@@. Thanks!
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 3
a7 1
timestamp='2017-05-27'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 1
a20 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d32 1
a32 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d37 8
d50 1
a50 1
Output the configuration name of the system \`$me' is run on.
d52 1
a52 1
Operation modes:
d63 1
a63 1
Copyright 1992-2017 Free Software Foundation, Inc.
d69 1
a69 1
Try \`$me --help' for more information."
d97 2
a98 1
trap 'exit 1' 1 2 15
d105 2
a106 2
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.
d110 30
a139 24
set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	if test x"$CC_FOR_BUILD" = x ; then
	  CC_FOR_BUILD=no_compiler_found ;
	fi
	;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'
d143 1
a143 1
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
d149 1
a149 1
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
d152 1
a152 1
case "${UNAME_SYSTEM}" in
d154 1
a154 3
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu
d156 5
a160 2
	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
d166 4
d171 6
a176 1
	LIBC=gnu
d179 15
a193 1
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
d199 1
a199 1
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
a210 1
	sysctl="sysctl -n hw.machine_arch"
d212 2
a213 2
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
d215 1
a215 1
	case "${UNAME_MACHINE_ARCH}" in
d223 2
a224 2
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
d227 1
a227 1
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
d231 1
a231 1
	case "${UNAME_MACHINE_ARCH}" in
d236 1
a236 1
		eval $set_cc_for_build
d252 1
a252 1
	case "${UNAME_MACHINE_ARCH}" in
d255 1
a255 1
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
d263 1
a263 1
	case "${UNAME_VERSION}" in
d268 1
a268 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d274 2
a275 2
	echo "${machine}-${os}${release}${abi}"
	exit ;;
d278 2
a279 2
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
d282 6
a287 2
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
d290 5
a294 2
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
d296 2
a297 2
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
d299 5
a303 2
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
d305 2
a306 2
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
d308 2
a309 2
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
d311 11
a321 2
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
d323 2
d338 1
a338 1
	case "$ALPHA_CPU_TYPE" in
d375 3
a377 14
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
    Alpha\ *:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# Should we change UNAME_MACHINE based on the output of uname instead
	# of the specific Alpha model?
	echo alpha-pc-interix
	exit ;;
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	exit ;;
d379 2
a380 2
	echo m68k-unknown-sysv4
	exit ;;
d382 2
a383 2
	echo ${UNAME_MACHINE}-unknown-amigaos
	exit ;;
d385 2
a386 2
	echo ${UNAME_MACHINE}-unknown-morphos
	exit ;;
d388 2
a389 2
	echo i370-ibm-openedition
	exit ;;
d391 2
a392 2
	echo s390-ibm-zvmoe
	exit ;;
d394 2
a395 2
	echo powerpc-ibm-os400
	exit ;;
d397 2
a398 2
	echo arm-acorn-riscix${UNAME_RELEASE}
	exit ;;
d400 2
a401 2
	echo arm-unknown-riscos
	exit ;;
d403 2
a404 2
	echo hppa1.1-hitachi-hiuxmpp
	exit ;;
d407 5
a411 6
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
	else
		echo pyramid-pyramid-bsd
	fi
	exit ;;
d413 2
a414 2
	echo pyramid-pyramid-svr4
	exit ;;
d416 2
a417 2
	echo sparc-icl-nx6
	exit ;;
d420 3
a422 2
	    sparc) echo sparc-icl-nx7; exit ;;
	esac ;;
d424 3
a426 2
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d428 3
a430 2
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d432 3
a434 2
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d436 2
a437 2
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
d439 1
a439 1
	eval $set_cc_for_build
d444 1
a444 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d446 1
a446 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d452 3
a454 2
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d459 3
a461 2
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d463 1
a463 1
	case "`/usr/bin/arch -k`" in
d468 4
a471 3
	# Japanese Language versions have a version number like `4.1.3-JL'.
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
	exit ;;
d473 2
a474 2
	echo m68k-sun-sunos${UNAME_RELEASE}
	exit ;;
d477 2
a478 2
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
	case "`/bin/arch`" in
d480 1
a480 1
		echo m68k-sun-sunos${UNAME_RELEASE}
d483 1
a483 1
		echo sparc-sun-sunos${UNAME_RELEASE}
d486 1
a486 1
	exit ;;
d488 2
a489 2
	echo sparc-auspex-sunos${UNAME_RELEASE}
	exit ;;
d499 2
a500 2
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
d502 2
a503 2
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
d505 2
a506 2
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
d508 2
a509 2
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
d511 2
a512 2
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
d514 2
a515 2
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
d517 2
a518 2
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
d520 2
a521 2
	echo powerpc-apple-machten${UNAME_RELEASE}
	exit ;;
d523 2
a524 2
	echo mips-dec-mach_bsd4.3
	exit ;;
d526 2
a527 2
	echo mips-dec-ultrix${UNAME_RELEASE}
	exit ;;
d529 2
a530 2
	echo vax-dec-ultrix${UNAME_RELEASE}
	exit ;;
d532 2
a533 2
	echo clipper-intergraph-clix${UNAME_RELEASE}
	exit ;;
d535 2
a536 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d545 1
a545 1
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
d548 1
a548 1
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
d551 1
a551 1
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
d557 3
a559 3
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
d561 2
a562 2
	echo mips-mips-riscos${UNAME_RELEASE}
	exit ;;
d564 2
a565 2
	echo powerpc-motorola-powermax
	exit ;;
d567 2
a568 2
	echo powerpc-harris-powermax
	exit ;;
d570 2
a571 2
	echo powerpc-harris-powermax
	exit ;;
d573 2
a574 2
	echo powerpc-harris-powerunix
	exit ;;
d576 2
a577 2
	echo m88k-harris-cxux7
	exit ;;
d579 2
a580 2
	echo m88k-motorola-sysv4
	exit ;;
d582 2
a583 2
	echo m88k-motorola-sysv3
	exit ;;
d587 1
a587 1
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
d589 2
a590 2
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
d592 1
a592 1
		echo m88k-dg-dgux${UNAME_RELEASE}
d594 1
a594 1
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
d597 1
a597 1
	    echo i586-dg-dgux${UNAME_RELEASE}
d599 1
a599 1
	exit ;;
d601 2
a602 2
	echo m88k-dolphin-sysv3
	exit ;;
d605 2
a606 2
	echo m88k-motorola-sysv3
	exit ;;
d608 2
a609 2
	echo m88k-tektronix-sysv3
	exit ;;
d611 2
a612 2
	echo m68k-tektronix-bsd
	exit ;;
d614 3
a616 2
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
	exit ;;
d618 2
a619 2
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
d621 2
a622 2
	echo i386-ibm-aix
	exit ;;
d624 1
a624 1
	if [ -x /usr/bin/oslevel ] ; then
d627 1
a627 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d629 2
a630 2
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
	exit ;;
d633 2
a634 2
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
d637 2
a638 1
		main()
d646 1
a646 1
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
d648 1
a648 1
			echo "$SYSTEM_NAME"
d650 1
a650 1
			echo rs6000-ibm-aix3.2.5
d653 1
a653 1
		echo rs6000-ibm-aix3.2.4
d655 1
a655 1
		echo rs6000-ibm-aix3.2
d657 1
a657 1
	exit ;;
d660 1
a660 1
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
d665 2
a666 2
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
d669 1
a669 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d671 2
a672 2
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	exit ;;
d674 5
a678 5
	echo rs6000-ibm-aix
	exit ;;
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
	echo romp-ibm-bsd4.4
	exit ;;
d680 2
a681 2
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	exit ;;                             # report: romp-ibm BSD 4.3
d683 2
a684 2
	echo rs6000-bull-bosx
	exit ;;
d686 2
a687 2
	echo m68k-bull-sysv3
	exit ;;
d689 2
a690 2
	echo m68k-hp-bsd
	exit ;;
d692 2
a693 2
	echo m68k-hp-bsd4.4
	exit ;;
d695 4
a698 4
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
d700 1
a700 1
		if [ -x /usr/bin/getconf ]; then
d703 1
a703 1
		    case "${sc_cpu_version}" in
d707 1
a707 1
			case "${sc_kernel_bits}" in
d714 3
a716 3
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c
d722 2
a723 1
		int main ()
d750 1
a750 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d754 1
a754 1
	if [ ${HP_ARCH} = hppa2.0w ]
d756 1
a756 1
	    eval $set_cc_for_build
d775 2
a776 2
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	exit ;;
d778 3
a780 3
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
	exit ;;
d782 2
a783 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d808 1
a808 1
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
d810 5
a814 5
	echo unknown-hitachi-hiuxwe2
	exit ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
	echo hppa1.1-hp-bsd
	exit ;;
d816 2
a817 2
	echo hppa1.0-hp-bsd
	exit ;;
d819 5
a823 5
	echo hppa1.0-hp-mpeix
	exit ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
	echo hppa1.1-hp-osf
	exit ;;
d825 2
a826 2
	echo hppa1.0-hp-osf
	exit ;;
d828 2
a829 2
	if [ -x /usr/sbin/sysversion ] ; then
	    echo ${UNAME_MACHINE}-unknown-osf1mk
d831 1
a831 1
	    echo ${UNAME_MACHINE}-unknown-osf1
d833 1
a833 1
	exit ;;
d835 2
a836 2
	echo hppa1.1-hp-lites
	exit ;;
d838 2
a839 2
	echo c1-convex-bsd
	exit ;;
d847 2
a848 2
	echo c34-convex-bsd
	exit ;;
d850 2
a851 2
	echo c38-convex-bsd
	exit ;;
d853 2
a854 2
	echo c4-convex-bsd
	exit ;;
d856 3
a858 2
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d860 1
a860 1
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
d866 3
a868 2
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d870 3
a872 2
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d874 3
a876 2
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d878 3
a880 2
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
d884 3
a886 3
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d889 3
a891 3
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
d893 2
a894 2
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
	exit ;;
d896 2
a897 2
	echo sparc-unknown-bsdi${UNAME_RELEASE}
	exit ;;
d899 15
a913 2
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
	exit ;;
d915 2
a916 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
d922 3
a924 2
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
d926 2
a927 2
	echo ${UNAME_MACHINE}-pc-cygwin
	exit ;;
d929 2
a930 2
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
d932 2
a933 2
	echo ${UNAME_MACHINE}-pc-mingw32
	exit ;;
d935 2
a936 6
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
d938 5
a942 2
	echo ${UNAME_MACHINE}-pc-pw32
	exit ;;
d944 1
a944 1
	case ${UNAME_MACHINE} in
d946 2
a947 2
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
d949 2
a950 2
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
d952 2
a953 2
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
a954 12
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
	echo i${UNAME_MACHINE}-pc-mks
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
	# UNAME_MACHINE based on the output of uname instead of i386?
	echo i586-pc-interix
	exit ;;
d956 2
a957 2
	echo ${UNAME_MACHINE}-pc-uwin
	exit ;;
d959 2
a960 5
	echo x86_64-unknown-cygwin
	exit ;;
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
d962 3
a964 2
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
d967 4
a970 2
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	exit ;;
d973 13
a985 5
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
	exit ;;
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
	exit ;;
d987 22
a1008 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1011 2
a1012 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1014 1
a1014 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
d1025 5
a1029 5
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1031 1
a1031 1
	eval $set_cc_for_build
d1035 1
a1035 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1040 1
a1040 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
d1042 1
a1042 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
d1045 1
a1045 1
	exit ;;
d1047 2
a1048 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1050 2
a1051 2
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
d1053 2
a1054 2
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
d1056 2
a1057 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1059 2
a1060 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1062 2
a1063 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1065 2
a1066 2
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
d1068 2
a1069 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1071 14
a1084 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1086 2
a1087 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1089 2
a1090 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1092 4
a1095 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d1097 28
a1124 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d1126 1
a1126 1
	CPU=${UNAME_MACHINE}el
d1129 1
a1129 1
	CPU=${UNAME_MACHINE}
d1131 1
a1131 1
	CPU=
d1135 3
a1137 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
d1140 2
a1141 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1143 2
a1144 2
	echo or1k-unknown-linux-${LIBC}
	exit ;;
d1146 2
a1147 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1149 2
a1150 2
	echo sparc-unknown-linux-${LIBC}
	exit ;;
d1152 2
a1153 2
	echo hppa64-unknown-linux-${LIBC}
	exit ;;
d1157 3
a1159 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d1161 1
a1161 1
	exit ;;
d1163 2
a1164 2
	echo powerpc64-unknown-linux-${LIBC}
	exit ;;
d1166 2
a1167 2
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
d1169 2
a1170 2
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
d1172 5
a1176 5
	echo powerpcle-unknown-linux-${LIBC}
	exit ;;
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1178 2
a1179 2
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
	exit ;;
d1181 2
a1182 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1184 2
a1185 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1187 2
a1188 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1190 2
a1191 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1193 2
a1194 2
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
	exit ;;
d1196 23
a1218 2
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
d1220 2
a1221 2
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1226 2
a1227 2
	echo i386-sequent-sysv4
	exit ;;
d1234 2
a1235 2
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	exit ;;
d1237 1
a1237 1
	# If we were able to find `uname', then EMX Unix compatibility
d1239 2
a1240 2
	echo ${UNAME_MACHINE}-pc-os2-emx
	exit ;;
d1242 2
a1243 2
	echo ${UNAME_MACHINE}-unknown-stop
	exit ;;
d1245 2
a1246 2
	echo ${UNAME_MACHINE}-unknown-atheos
	exit ;;
d1248 2
a1249 2
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
d1251 2
a1252 2
	echo i386-unknown-lynxos${UNAME_RELEASE}
	exit ;;
d1254 4
a1257 4
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
	exit ;;
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
d1259 1
a1259 1
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
d1261 1
a1261 1
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
d1263 1
a1263 1
	exit ;;
d1271 2
a1272 2
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	exit ;;
d1276 1
a1276 1
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
d1286 1
a1286 1
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
d1288 1
a1288 1
		echo ${UNAME_MACHINE}-pc-sysv32
d1290 1
a1290 1
	exit ;;
d1298 2
a1299 2
	echo i586-pc-msdosdjgpp
	exit ;;
d1301 2
a1302 2
	echo i386-pc-mach3
	exit ;;
d1304 2
a1305 2
	echo i860-intel-osf1
	exit ;;
d1308 1
a1308 1
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
d1310 1
a1310 1
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
d1312 1
a1312 1
	exit ;;
d1315 2
a1316 2
	echo m68010-convergent-sysv
	exit ;;
d1318 2
a1319 2
	echo m68k-convergent-sysv
	exit ;;
d1321 2
a1322 2
	echo m68k-diab-dnix
	exit ;;
d1330 1
a1330 1
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1332 1
a1332 1
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1341 1
a1341 1
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1343 1
a1343 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
d1345 1
a1345 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1347 2
a1348 2
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	exit ;;
d1350 2
a1351 2
	echo m68k-atari-sysv4
	exit ;;
d1353 2
a1354 2
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
d1356 2
a1357 2
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	exit ;;
d1359 2
a1360 2
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
d1362 2
a1363 2
	echo mips-dde-sysv${UNAME_RELEASE}
	exit ;;
d1365 2
a1366 2
	echo mips-sni-sysv4
	exit ;;
d1368 2
a1369 2
	echo mips-sni-sysv4
	exit ;;
d1373 1
a1373 1
		echo ${UNAME_MACHINE}-sni-sysv4
d1375 1
a1375 1
		echo ns32k-sni-sysv
d1377 2
a1378 2
	exit ;;
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
d1380 2
a1381 2
	echo i586-unisys-sysv4
	exit ;;
d1385 2
a1386 2
	echo hppa1.1-stratus-sysv4
	exit ;;
d1389 2
a1390 2
	echo i860-stratus-sysv4
	exit ;;
d1393 2
a1394 2
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
d1397 2
a1398 2
	echo hppa1.1-stratus-vos
	exit ;;
d1400 2
a1401 2
	echo m68k-apple-aux${UNAME_RELEASE}
	exit ;;
d1403 2
a1404 2
	echo mips-sony-newsos6
	exit ;;
d1406 2
a1407 2
	if [ -d /usr/nec ]; then
		echo mips-nec-sysv${UNAME_RELEASE}
d1409 1
a1409 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1411 1
a1411 1
	exit ;;
d1413 2
a1414 2
	echo powerpc-be-beos
	exit ;;
d1416 2
a1417 2
	echo powerpc-apple-beos
	exit ;;
d1419 2
a1420 2
	echo i586-pc-beos
	exit ;;
d1422 8
a1429 5
	echo i586-pc-haiku
	exit ;;
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
d1431 2
a1432 2
	echo sx4-nec-superux${UNAME_RELEASE}
	exit ;;
d1434 2
a1435 2
	echo sx5-nec-superux${UNAME_RELEASE}
	exit ;;
d1437 2
a1438 2
	echo sx6-nec-superux${UNAME_RELEASE}
	exit ;;
d1440 2
a1441 2
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
d1443 2
a1444 2
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
d1446 2
a1447 2
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
d1449 2
a1450 2
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
d1452 2
a1453 2
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
	exit ;;
d1455 5
a1459 2
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
	exit ;;
d1461 29
a1489 23
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
d1492 2
a1493 7
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
d1495 2
a1496 2
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
	exit ;;
d1503 2
a1504 2
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
	exit ;;
d1506 2
a1507 2
	echo i386-pc-qnx
	exit ;;
d1509 2
a1510 2
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
d1512 2
a1513 2
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
d1515 5
a1519 2
	echo nsr-tandem-nsk${UNAME_RELEASE}
	exit ;;
d1521 2
a1522 2
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
d1524 2
a1525 2
	echo mips-compaq-nonstopux
	exit ;;
d1527 2
a1528 2
	echo bs2000-siemens-sysv
	exit ;;
d1530 2
a1531 2
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
	exit ;;
d1536 1
a1536 1
	if test "$cputype" = 386; then
d1538 2
a1539 2
	else
	    UNAME_MACHINE="$cputype"
d1541 2
a1542 2
	echo ${UNAME_MACHINE}-unknown-plan9
	exit ;;
d1544 2
a1545 2
	echo pdp10-unknown-tops10
	exit ;;
d1547 2
a1548 2
	echo pdp10-unknown-tenex
	exit ;;
d1550 2
a1551 2
	echo pdp10-dec-tops20
	exit ;;
d1553 2
a1554 2
	echo pdp10-xkl-tops20
	exit ;;
d1556 2
a1557 2
	echo pdp10-unknown-tops20
	exit ;;
d1559 2
a1560 2
	echo pdp10-unknown-its
	exit ;;
d1562 2
a1563 2
	echo mips-sei-seiux${UNAME_RELEASE}
	exit ;;
d1565 3
a1567 2
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
d1570 4
a1573 4
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
d1576 2
a1577 2
	echo i386-pc-xenix
	exit ;;
d1579 3
a1581 2
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
	exit ;;
d1583 8
a1590 5
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
d1592 2
a1593 2
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
d1595 168
a1762 2
	echo x86_64-unknown-onefs
	exit ;;
a1765 1
$0: unable to guess system type
d1768 2
a1769 2
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1771 1
a1771 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1773 9
a1781 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1804 4
a1807 4
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
d1809 1
d1814 1
a1814 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
d1816 1
a1816 1
# time-stamp-format: "%:y-%02m-%02d"
@


1.2.10.1
log
@Pull up the following, requested by christos in ticket #270:

	external/public-domain/xz/dist/doc/examples/11_file_info.c up to 1.1.1.1
	external/public-domain/xz/dist/po/pt_BR.gmo     up to 1.1.1.1
	external/public-domain/xz/dist/po/ca.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/ca.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/da.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/da.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/eo.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/eo.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/es.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/es.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/fi.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/fi.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/hr.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/hr.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/hu.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/hu.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/ka.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/ka.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/ko.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/ko.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/nl.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/nl.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/pt.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/pt.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/pt_BR.po      up to 1.1.1.1
	external/public-domain/xz/dist/po/ro.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/ro.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/sr.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/sr.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/sv.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/sv.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/tr.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/tr.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/uk.gmo        up to 1.1.1.1
	external/public-domain/xz/dist/po/uk.po         up to 1.1.1.1
	external/public-domain/xz/dist/po/zh_CN.gmo     up to 1.1.1.1
	external/public-domain/xz/dist/po/zh_CN.po      up to 1.1.1.1
	external/public-domain/xz/dist/po/zh_TW.gmo     up to 1.1.1.1
	external/public-domain/xz/dist/po/zh_TW.po      up to 1.1.1.1
	external/public-domain/xz/dist/src/common/my_landlock.h up to 1.1.1.1
	external/public-domain/xz/dist/src/common/tuklib_mbstr_nonprint.c up to 1.1.1.1
	external/public-domain/xz/dist/src/common/tuklib_mbstr_nonprint.h up to 1.1.1.1
	external/public-domain/xz/dist/src/common/tuklib_mbstr_wrap.c up to 1.1.1.1
	external/public-domain/xz/dist/src/common/tuklib_mbstr_wrap.h up to 1.1.1.1
	external/public-domain/xz/dist/src/common/w32_application.manifest up to 1.1.1.1
	external/public-domain/xz/dist/src/common/w32_application.manifest.comments.txt up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/check/crc_common.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/check/crc_x86_clmul.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/check/crc32_arm64.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/check/crc32_loongarch.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/check/crc_clmul_consts_gen.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/file_info.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/index_decoder.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/lzip_decoder.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/lzip_decoder.h up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/microlzma_decoder.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/microlzma_encoder.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/stream_decoder_mt.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/common/string_conversion.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/simple/arm64.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/simple/riscv.c up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/liblzma_generic.map up to 1.1.1.1
	external/public-domain/xz/dist/src/liblzma/liblzma_linux.map up to 1.1.1.1
	external/public-domain/xz/dist/src/xz/sandbox.c up to 1.1.1.1
	external/public-domain/xz/dist/src/xz/sandbox.h up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-v0-trailing-1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-2-v0-v1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-check-crc32-2.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-10.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-9.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-11.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v0-uncomp-size.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-crc32.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-dict-1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-dict-2.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-magic-1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-magic-2.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-member-size.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-trailing-magic.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-1-v1-uncomp-size.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-3-index-uncomp-overflow.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-too_big_size-with_eopm.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-1.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-2.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-too_small_size-without_eopm-3.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/bad-unknown_size-without_eopm.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-arm64-lzma2-1.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-arm64-lzma2-2.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-empty-bcj-lzma2.xz.base64 up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-v0.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-v1-trailing-1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-v1-trailing-2.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-1-v1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-2-v1-v0.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-2-v1-v1.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-known_size-with_eopm.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-known_size-without_eopm.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/good-unknown_size-with_eopm.lzma up to 1.1.1.1
	external/public-domain/xz/dist/tests/files/unsupported-1-v234.lz up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_alone.options up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_stream.options up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_decode_stream_mt.options up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_encode_stream.options up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_lzma.dict up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/config/fuzz_xz.dict up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/fuzz_common.h up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_alone.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_stream.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/fuzz_decode_stream_mt.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/ossfuzz/fuzz_encode_stream.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_compress_generated_abc up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_compress_generated_random up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_compress_generated_text up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_filter_str.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_hardware.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_index_hash.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_lzip_decoder.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_memlimit.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_microlzma.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_suffix.sh up to 1.1.1.1
	external/public-domain/xz/dist/tests/test_vli.c up to 1.1.1.1
	external/public-domain/xz/dist/tests/tests.cmake up to 1.1.1.1
	external/public-domain/xz/dist/tests/tests_w32res.rc up to 1.1.1.1
	external/public-domain/xz/dist/tests/tuktest.h  up to 1.1.1.1
	external/public-domain/xz/dist/build-aux/license-check.sh up to 1.1.1.1
	external/public-domain/xz/dist/build-aux/test-driver up to 1.1.1.1
	external/public-domain/xz/dist/cmake/remove-ordinals.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_common.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_cpucores.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_integer.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_large_file_support.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_mbstr.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_physmem.cmake up to 1.1.1.1
	external/public-domain/xz/dist/cmake/tuklib_progname.cmake up to 1.1.1.1
	external/public-domain/xz/dist/CMakeLists.txt   up to 1.1.1.1
	external/public-domain/xz/dist/COPYING.0BSD     up to 1.1.1.1
	external/public-domain/xz/dist/doxygen/Doxyfile up to 1.1.1.1
	external/public-domain/xz/dist/doxygen/update-doxygen up to 1.1.1.1
	external/public-domain/xz/dist/po4a/po4a.conf   up to 1.1.1.1
	external/public-domain/xz/dist/po4a/ar.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/de.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/fr.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/it.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/ko.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ar/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/de/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/fr/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/fr/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/fr/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/fr/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/it/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ko/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/pt_BR/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/pt_BR/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/pt_BR/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/pt_BR/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/ro/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sr/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/sv/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/lzmainfo.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xz.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xzdec.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xzdiff.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xzgrep.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xzless.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/man/uk/xzmore.1 up to 1.1.1.1
	external/public-domain/xz/dist/po4a/pt_BR.po    up to 1.1.1.1
	external/public-domain/xz/dist/po4a/ro.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/sr.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/sv.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/uk.po       up to 1.1.1.1
	external/public-domain/xz/dist/po4a/update-po   up to 1.1.1.1
	external/public-domain/xz/dist/po4a/xz-man.pot  up to 1.1.1.1
	external/public-domain/xz/dist/doc/examples_old/xz_pipe_comp.c delete
	external/public-domain/xz/dist/doc/examples_old/xz_pipe_decomp.c delete
	external/public-domain/xz/dist/macosx/build.sh  delete
	external/public-domain/xz/dist/src/liblzma/liblzma.map delete
	external/public-domain/xz/dist/src/liblzma/check/crc32_table.c delete
	external/public-domain/xz/dist/src/liblzma/check/crc64_table.c delete
	external/public-domain/xz/dist/src/liblzma/check/crc_macros.h delete
	external/public-domain/xz/dist/tests/files/good-1-sparc-lzma2.xz.base64 delete
	external/public-domain/xz/dist/tests/files/good-1-x86-lzma2.xz.base64 delete
	external/public-domain/xz/dist/tests/bcj_test.c delete
	external/public-domain/xz/dist/tests/compress_prepared_bcj_sparc.base64 delete
	external/public-domain/xz/dist/tests/compress_prepared_bcj_x86.base64 delete
	external/public-domain/xz/Makefile.inc          up to 1.7
	external/public-domain/xz/prepare-import.sh     up to 1.6
	external/public-domain/xz/bin/lzmainfo/Makefile up to 1.3
	external/public-domain/xz/bin/xz/Makefile       up to 1.8
	external/public-domain/xz/dist/AUTHORS          up to 1.1.1.3
	external/public-domain/xz/dist/COPYING          up to 1.1.1.3
	external/public-domain/xz/dist/ChangeLog        up to 1.1.1.5
	external/public-domain/xz/dist/INSTALL          up to 1.1.1.5
	external/public-domain/xz/dist/NEWS             up to 1.1.1.5
	external/public-domain/xz/dist/PACKAGERS        up to 1.1.1.2
	external/public-domain/xz/dist/README           up to 1.1.1.4
	external/public-domain/xz/dist/THANKS           up to 1.1.1.5
	external/public-domain/xz/dist/TODO             up to 1.1.1.3
	external/public-domain/xz/dist/config.h.in      up to 1.1.1.4
	external/public-domain/xz/dist/configure        up to 1.3
	external/public-domain/xz/dist/configure.ac     up to 1.6
	external/public-domain/xz/dist/build-aux/compile up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/config.guess up to 1.3
	external/public-domain/xz/dist/build-aux/config.rpath up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/config.sub up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/depcomp up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/install-sh up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/ltmain.sh up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/manconv.sh up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/missing up to 1.1.1.2
	external/public-domain/xz/dist/build-aux/version.sh up to 1.1.1.2
	external/public-domain/xz/dist/doc/faq.txt      up to 1.1.1.4
	external/public-domain/xz/dist/doc/lzma-file-format.txt up to 1.1.1.3
	external/public-domain/xz/dist/doc/xz-file-format.txt up to 1.1.1.2
	external/public-domain/xz/dist/doc/examples/01_compress_easy.c up to 1.1.1.2
	external/public-domain/xz/dist/doc/examples/02_decompress.c up to 1.1.1.3
	external/public-domain/xz/dist/doc/examples/03_compress_custom.c up to 1.1.1.2
	external/public-domain/xz/dist/doc/examples/04_compress_easy_mt.c up to 1.1.1.2
	external/public-domain/xz/dist/m4/tuklib_common.m4 up to 1.1.1.2
	external/public-domain/xz/dist/m4/tuklib_cpucores.m4 up to 1.1.1.4
	external/public-domain/xz/dist/m4/tuklib_integer.m4 up to 1.1.1.3
	external/public-domain/xz/dist/m4/tuklib_mbstr.m4 up to 1.1.1.2
	external/public-domain/xz/dist/m4/tuklib_physmem.m4 up to 1.1.1.4
	external/public-domain/xz/dist/m4/tuklib_progname.m4 up to 1.1.1.2
	external/public-domain/xz/dist/po/cs.gmo        up to 1.1.1.5
	external/public-domain/xz/dist/po/cs.po         up to 1.1.1.5
	external/public-domain/xz/dist/po/de.gmo        up to 1.1.1.5
	external/public-domain/xz/dist/po/de.po         up to 1.1.1.5
	external/public-domain/xz/dist/po/fr.gmo        up to 1.1.1.4
	external/public-domain/xz/dist/po/fr.po         up to 1.1.1.4
	external/public-domain/xz/dist/po/it.gmo        up to 1.1.1.5
	external/public-domain/xz/dist/po/it.po         up to 1.1.1.5
	external/public-domain/xz/dist/po/pl.gmo        up to 1.1.1.4
	external/public-domain/xz/dist/po/pl.po         up to 1.1.1.4
	external/public-domain/xz/dist/po/vi.gmo        up to 1.1.1.3
	external/public-domain/xz/dist/po/vi.po         up to 1.1.1.3
	external/public-domain/xz/dist/src/common/common_w32res.rc up to 1.1.1.3
	external/public-domain/xz/dist/src/common/mythread.h up to 1.1.1.3
	external/public-domain/xz/dist/src/common/sysdefs.h up to 1.1.1.4
	external/public-domain/xz/dist/src/common/tuklib_common.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_config.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_cpucores.c up to 1.1.1.4
	external/public-domain/xz/dist/src/common/tuklib_cpucores.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_exit.c up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_exit.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_gettext.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_integer.h up to 1.2
	external/public-domain/xz/dist/src/common/tuklib_mbstr.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_mbstr_fw.c up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_mbstr_width.c up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_open_stdxxx.c up to 1.1.1.3
	external/public-domain/xz/dist/src/common/tuklib_open_stdxxx.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_physmem.c up to 1.1.1.4
	external/public-domain/xz/dist/src/common/tuklib_physmem.h up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_progname.c up to 1.1.1.2
	external/public-domain/xz/dist/src/common/tuklib_progname.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/liblzma.pc.in up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/liblzma_w32res.rc up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/validate_map.sh up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/api/lzma/base.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/api/lzma/bcj.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma/block.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/api/lzma/check.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma/container.h up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/api/lzma/delta.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma/filter.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/api/lzma/hardware.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/api/lzma/index.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/api/lzma/index_hash.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/api/lzma/lzma12.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma/stream_flags.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/api/lzma/version.h up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/api/lzma/vli.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/check.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/check.h up to 1.5
	external/public-domain/xz/dist/src/liblzma/check/crc32_fast.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/check/crc32_small.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc32_table_be.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc32_table_le.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc32_tablegen.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc32_x86.S up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_fast.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_small.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_table_be.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_table_le.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_tablegen.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/crc64_x86.S up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/check/sha256.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/alone_decoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/alone_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/alone_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/auto_decoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/block_buffer_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/block_buffer_encoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/block_buffer_encoder.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/block_decoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/block_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/block_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/block_encoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/block_header_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/block_header_encoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/block_util.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/common.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/common.h up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/easy_buffer_encoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/easy_decoder_memusage.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/easy_encoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/easy_encoder_memusage.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/easy_preset.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/easy_preset.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/filter_buffer_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_buffer_encoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_common.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/filter_common.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_encoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_encoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_flags_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/filter_flags_encoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/hardware_cputhreads.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/hardware_physmem.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/index.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/index.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/index_decoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/index_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/index_encoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/index_hash.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/memcmplen.h up to 1.2
	external/public-domain/xz/dist/src/liblzma/common/outqueue.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/outqueue.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/stream_buffer_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/stream_buffer_encoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/stream_decoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/common/stream_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/stream_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/common/stream_encoder_mt.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/common/stream_flags_common.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/stream_flags_common.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/stream_flags_decoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/stream_flags_encoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/vli_decoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/vli_encoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/common/vli_size.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/delta/delta_common.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/delta/delta_common.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/delta/delta_decoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/delta/delta_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/delta/delta_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/delta/delta_encoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/delta/delta_private.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lz/lz_decoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/lz/lz_decoder.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lz/lz_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/lz/lz_encoder.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_hash.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_hash_table.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/lz/lz_encoder_mf.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/fastpos.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/fastpos_table.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/lzma/fastpos_tablegen.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/lzma/lzma2_decoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/lzma/lzma2_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/lzma2_encoder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/lzma/lzma2_encoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_common.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_decoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_optimum_fast.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_optimum_normal.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_presets.c up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/lzma/lzma_encoder_private.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/rangecoder/price.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/rangecoder/price_table.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/rangecoder/price_tablegen.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/rangecoder/range_common.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/rangecoder/range_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/rangecoder/range_encoder.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/simple/arm.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/armthumb.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/ia64.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/powerpc.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/simple_coder.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/simple_coder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/simple/simple_decoder.c up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/simple/simple_decoder.h up to 1.1.1.3
	external/public-domain/xz/dist/src/liblzma/simple/simple_encoder.c up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/simple/simple_encoder.h up to 1.1.1.2
	external/public-domain/xz/dist/src/liblzma/simple/simple_private.h up to 1.1.1.4
	external/public-domain/xz/dist/src/liblzma/simple/sparc.c up to 1.1.1.5
	external/public-domain/xz/dist/src/liblzma/simple/x86.c up to 1.1.1.4
	external/public-domain/xz/dist/src/lzmainfo/lzmainfo.1 up to 1.1.1.3
	external/public-domain/xz/dist/src/lzmainfo/lzmainfo.c up to 1.1.1.3
	external/public-domain/xz/dist/src/lzmainfo/lzmainfo_w32res.rc up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/args.c    up to 1.4
	external/public-domain/xz/dist/src/xz/args.h    up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/coder.c   up to 1.1.1.5
	external/public-domain/xz/dist/src/xz/coder.h   up to 1.1.1.3
	external/public-domain/xz/dist/src/xz/file_io.c up to 1.1.1.5
	external/public-domain/xz/dist/src/xz/file_io.h up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/hardware.c up to 1.1.1.3
	external/public-domain/xz/dist/src/xz/hardware.h up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/list.c    up to 1.4
	external/public-domain/xz/dist/src/xz/list.h    up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/main.c    up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/main.h    up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/message.c up to 1.1.1.5
	external/public-domain/xz/dist/src/xz/message.h up to 1.1.1.3
	external/public-domain/xz/dist/src/xz/mytime.c  up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/mytime.h  up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/options.c up to 1.1.1.5
	external/public-domain/xz/dist/src/xz/options.h up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/private.h up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/signals.c up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/signals.h up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/suffix.c  up to 1.1.1.4
	external/public-domain/xz/dist/src/xz/suffix.h  up to 1.1.1.2
	external/public-domain/xz/dist/src/xz/util.c    up to 1.1.1.3
	external/public-domain/xz/dist/src/xz/util.h    up to 1.1.1.3
	external/public-domain/xz/dist/src/xz/xz.1      up to 1.1.1.5
	external/public-domain/xz/dist/src/xz/xz_w32res.rc up to 1.1.1.2
	external/public-domain/xz/dist/src/xzdec/lzmadec_w32res.rc up to 1.1.1.2
	external/public-domain/xz/dist/src/xzdec/xzdec.1 up to 1.1.1.4
	external/public-domain/xz/dist/src/xzdec/xzdec.c up to 1.1.1.4
	external/public-domain/xz/dist/src/xzdec/xzdec_w32res.rc up to 1.1.1.2
	external/public-domain/xz/dist/tests/create_compress_files.c up to 1.1.1.3
	external/public-domain/xz/dist/tests/test_bcj_exact_size.c up to 1.1.1.3
	external/public-domain/xz/dist/tests/test_block_header.c up to 1.1.1.2
	external/public-domain/xz/dist/tests/test_check.c up to 1.1.1.2
	external/public-domain/xz/dist/tests/test_compress.sh up to 1.1.1.2
	external/public-domain/xz/dist/tests/test_files.sh up to 1.1.1.3
	external/public-domain/xz/dist/tests/test_filter_flags.c up to 1.1.1.2
	external/public-domain/xz/dist/tests/test_index.c up to 1.1.1.3
	external/public-domain/xz/dist/tests/test_scripts.sh up to 1.1.1.2
	external/public-domain/xz/dist/tests/test_stream_flags.c up to 1.1.1.2
	external/public-domain/xz/dist/tests/tests.h    up to 1.1.1.2
	external/public-domain/xz/dist/tests/files/README up to 1.1.1.4
	external/public-domain/xz/dist/tests/files/bad-0cat-alone.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-0cat-header_magic.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-0catpad-empty.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-4.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-5.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-block_header-6.xz.base64 up to 1.1.1.3
	external/public-domain/xz/dist/tests/files/bad-1-check-crc32.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-check-crc64.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-check-sha256.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-4.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-5.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-6.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-7.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-lzma2-8.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-stream_flags-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-stream_flags-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-stream_flags-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-vli-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-1-vli-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-compressed_data_padding.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-index-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-index-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-index-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-index-4.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/bad-2-index-5.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-0cat-empty.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-0catpad-empty.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-3delta-lzma2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-block_header-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-block_header-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-block_header-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-check-crc32.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-check-crc64.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-check-none.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-check-sha256.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-delta-lzma2.tiff.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-lzma2-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-lzma2-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-lzma2-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-lzma2-4.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/good-1-lzma2-5.xz.base64 up to 1.1.1.4
	external/public-domain/xz/dist/tests/files/good-2-lzma2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/unsupported-block_header.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/unsupported-check.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/unsupported-filter_flags-1.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/unsupported-filter_flags-2.xz.base64 up to 1.1.1.5
	external/public-domain/xz/dist/tests/files/unsupported-filter_flags-3.xz.base64 up to 1.1.1.5
	external/public-domain/xz/include/config.h      up to 1.10
	external/public-domain/xz/lib/Makefile          up to 1.13
	external/public-domain/xz/lib/lzma.expsym       up to 1.3
	external/public-domain/xz/lib/shlib_version     up to 1.4

Update xz to 5.8.3.
@
text
@d3 1
a3 1
#   Copyright 1992-2025 Free Software Foundation, Inc.
d5 1
a5 3
# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2025-07-10'
d9 1
a9 1
# the Free Software Foundation, either version 3 of the License, or
d18 1
a18 1
# along with this program; if not, see <https://www.gnu.org/licenses/>.
d30 1
a30 1
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
a34 8
# The "shellcheck disable" line above the timestamp inhibits complaints
# about features and limitations of the classic Bourne shell that were
# superseded or lifted in POSIX.  However, this script identifies a wide
# variety of pre-POSIX systems that do not have POSIX shells at all, and
# even some reasonably current systems (Solaris 10 as case-in-point) still
# have a pre-POSIX /bin/sh.


d40 1
a40 1
Output the configuration name of the system '$me' is run on.
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2025 Free Software Foundation, Inc.
d59 1
a59 1
Try '$me --help' for more information."
d87 1
a87 2
# Just in case it came from the environment.
GUESS=
d94 2
a95 2
# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
# use 'HOST_CC' if defined, but it is deprecated.
d99 24
a122 30
tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15

set_cc_for_build() {
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039,SC3028
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
	{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
	{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
	{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
    dummy=$tmp/dummy
    case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
	,,)    echo "int x;" > "$dummy.c"
	       for driver in cc gcc c17 c99 c89 ; do
		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
		       CC_FOR_BUILD=$driver
		       break
		   fi
	       done
	       if test x"$CC_FOR_BUILD" = x ; then
		   CC_FOR_BUILD=no_compiler_found
	       fi
	       ;;
	,,*)   CC_FOR_BUILD=$CC ;;
	,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    esac
}
d126 1
a126 1
if test -f /.attbin/uname ; then
d132 1
a132 1
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
d135 1
a135 1
case $UNAME_SYSTEM in
d137 3
a139 1
	LIBC=unknown
d141 2
a142 5
	set_cc_for_build
	cat <<-EOF > "$dummy.c"
	#if defined(__ANDROID__)
	LIBC=android
	#else
d148 1
a148 1
	#elif defined(__GLIBC__)
a149 9
	#elif defined(__LLVM_LIBC__)
	LIBC=llvm
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
	#endif
d152 1
a152 15
	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	eval "$cc_set_libc"

	# Second heuristic to detect musl libc.
	if [ "$LIBC" = unknown ] &&
	   command -v ldd >/dev/null &&
	   ldd --version 2>&1 | grep -q ^musl; then
		LIBC=musl
	fi

	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	if [ "$LIBC" = unknown ]; then
		LIBC=gnu
	fi
d158 1
a158 1
case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
d170 1
d172 2
a173 2
	    /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
d175 1
a175 1
	case $UNAME_MACHINE_ARCH in
d183 2
a184 2
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
d187 1
a187 1
	    *) machine=$UNAME_MACHINE_ARCH-unknown ;;
d191 1
a191 1
	case $UNAME_MACHINE_ARCH in
d196 1
a196 1
		set_cc_for_build
d212 1
a212 1
	case $UNAME_MACHINE_ARCH in
d215 1
a215 1
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
d223 1
a223 1
	case $UNAME_VERSION in
d228 1
a228 1
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
d234 2
a235 2
	GUESS=$machine-${os}${release}${abi-}
	;;
d238 2
a239 2
	GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
	;;
d242 2
a243 6
	GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
	;;
    *:SecBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
	;;
d246 2
a247 5
	GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
	;;
    *:MidnightBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
	;;
d249 2
a250 2
	GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
	;;
d252 2
a253 5
	GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
	;;
    *:OS108:*:*)
	GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
	;;
d255 2
a256 2
	GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
	;;
d258 2
a259 2
	GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
	;;
d261 2
a262 11
	GUESS=$UNAME_MACHINE-unknown-sortix
	;;
    *:Twizzler:*:*)
	GUESS=$UNAME_MACHINE-unknown-twizzler
	;;
    *:Redox:*:*)
	GUESS=$UNAME_MACHINE-unknown-redox
	;;
    mips:OSF1:*.*)
	GUESS=mips-dec-osf1
	;;
a263 2
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	trap '' 0
d277 1
a277 1
	case $ALPHA_CPU_TYPE in
d314 14
a327 3
	OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
	;;
d329 2
a330 2
	GUESS=m68k-unknown-sysv4
	;;
d332 2
a333 2
	GUESS=$UNAME_MACHINE-unknown-amigaos
	;;
d335 2
a336 2
	GUESS=$UNAME_MACHINE-unknown-morphos
	;;
d338 2
a339 2
	GUESS=i370-ibm-openedition
	;;
d341 2
a342 2
	GUESS=s390-ibm-zvmoe
	;;
d344 2
a345 2
	GUESS=powerpc-ibm-os400
	;;
d347 2
a348 2
	GUESS=arm-acorn-riscix$UNAME_RELEASE
	;;
d350 2
a351 2
	GUESS=arm-unknown-riscos
	;;
d353 2
a354 2
	GUESS=hppa1.1-hitachi-hiuxmpp
	;;
d357 6
a362 5
	case `(/bin/universe) 2>/dev/null` in
	    att) GUESS=pyramid-pyramid-sysv3 ;;
	    *)   GUESS=pyramid-pyramid-bsd   ;;
	esac
	;;
d364 2
a365 2
	GUESS=pyramid-pyramid-svr4
	;;
d367 2
a368 2
	GUESS=sparc-icl-nx6
	;;
d371 2
a372 3
	    sparc) GUESS=sparc-icl-nx7 ;;
	esac
	;;
d374 2
a375 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
	;;
d377 2
a378 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-hal-solaris2$SUN_REL
	;;
d380 2
a381 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris2$SUN_REL
	;;
d383 2
a384 2
	GUESS=i386-pc-auroraux$UNAME_RELEASE
	;;
d386 1
a386 1
	set_cc_for_build
d391 1
a391 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d393 1
a393 1
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
d399 2
a400 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
	;;
d405 2
a406 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris3$SUN_REL
	;;
d408 1
a408 1
	case `/usr/bin/arch -k` in
d413 3
a415 4
	# Japanese Language versions have a version number like '4.1.3-JL'.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
	GUESS=sparc-sun-sunos$SUN_REL
	;;
d417 2
a418 2
	GUESS=m68k-sun-sunos$UNAME_RELEASE
	;;
d421 2
a422 2
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
	case `/bin/arch` in
d424 1
a424 1
		GUESS=m68k-sun-sunos$UNAME_RELEASE
d427 1
a427 1
		GUESS=sparc-sun-sunos$UNAME_RELEASE
d430 1
a430 1
	;;
d432 2
a433 2
	GUESS=sparc-auspex-sunos$UNAME_RELEASE
	;;
d443 2
a444 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d446 2
a447 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d449 2
a450 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d452 2
a453 2
	GUESS=m68k-milan-mint$UNAME_RELEASE
	;;
d455 2
a456 2
	GUESS=m68k-hades-mint$UNAME_RELEASE
	;;
d458 2
a459 2
	GUESS=m68k-unknown-mint$UNAME_RELEASE
	;;
d461 2
a462 2
	GUESS=m68k-apple-machten$UNAME_RELEASE
	;;
d464 2
a465 2
	GUESS=powerpc-apple-machten$UNAME_RELEASE
	;;
d467 2
a468 2
	GUESS=mips-dec-mach_bsd4.3
	;;
d470 2
a471 2
	GUESS=mips-dec-ultrix$UNAME_RELEASE
	;;
d473 2
a474 2
	GUESS=vax-dec-ultrix$UNAME_RELEASE
	;;
d476 2
a477 2
	GUESS=clipper-intergraph-clix$UNAME_RELEASE
	;;
d479 2
a480 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d489 1
a489 1
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
d492 1
a492 1
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
d495 1
a495 1
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
d501 3
a503 3
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
d505 2
a506 2
	GUESS=mips-mips-riscos$UNAME_RELEASE
	;;
d508 2
a509 2
	GUESS=powerpc-motorola-powermax
	;;
d511 2
a512 2
	GUESS=powerpc-harris-powermax
	;;
d514 2
a515 2
	GUESS=powerpc-harris-powermax
	;;
d517 2
a518 2
	GUESS=powerpc-harris-powerunix
	;;
d520 2
a521 2
	GUESS=m88k-harris-cxux7
	;;
d523 2
a524 2
	GUESS=m88k-motorola-sysv4
	;;
d526 2
a527 2
	GUESS=m88k-motorola-sysv3
	;;
d531 1
a531 1
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
d533 2
a534 2
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
d536 1
a536 1
		GUESS=m88k-dg-dgux$UNAME_RELEASE
d538 1
a538 1
		GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
d541 1
a541 1
	    GUESS=i586-dg-dgux$UNAME_RELEASE
d543 1
a543 1
	;;
d545 2
a546 2
	GUESS=m88k-dolphin-sysv3
	;;
d549 2
a550 2
	GUESS=m88k-motorola-sysv3
	;;
d552 2
a553 2
	GUESS=m88k-tektronix-sysv3
	;;
d555 2
a556 2
	GUESS=m68k-tektronix-bsd
	;;
d558 2
a559 3
	IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
	GUESS=mips-sgi-irix$IRIX_REL
	;;
d561 2
a562 2
	GUESS=romp-ibm-aix    # uname -m gives an 8 hex-code CPU id
	;;                    # Note that: echo "'`uname -s`'" gives 'AIX '
d564 2
a565 2
	GUESS=i386-ibm-aix
	;;
d567 1
a567 1
	if test -x /usr/bin/oslevel ; then
d570 1
a570 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d572 2
a573 2
	GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
	;;
d576 2
a577 2
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
d580 1
a580 2
		int
		main ()
d588 1
a588 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
d590 1
a590 1
			GUESS=$SYSTEM_NAME
d592 1
a592 1
			GUESS=rs6000-ibm-aix3.2.5
d595 1
a595 1
		GUESS=rs6000-ibm-aix3.2.4
d597 1
a597 1
		GUESS=rs6000-ibm-aix3.2
d599 1
a599 1
	;;
d602 1
a602 1
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
d607 2
a608 2
	if test -x /usr/bin/lslpp ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
d611 1
a611 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d613 2
a614 2
	GUESS=$IBM_ARCH-ibm-aix$IBM_REV
	;;
d616 5
a620 5
	GUESS=rs6000-ibm-aix
	;;
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
	GUESS=romp-ibm-bsd4.4
	;;
d622 2
a623 2
	GUESS=romp-ibm-bsd$UNAME_RELEASE    # 4.3 with uname added to
	;;                                  # report: romp-ibm BSD 4.3
d625 2
a626 2
	GUESS=rs6000-bull-bosx
	;;
d628 2
a629 2
	GUESS=m68k-bull-sysv3
	;;
d631 2
a632 2
	GUESS=m68k-hp-bsd
	;;
d634 2
a635 2
	GUESS=m68k-hp-bsd4.4
	;;
d637 4
a640 4
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	case $UNAME_MACHINE in
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d642 1
a642 1
		if test -x /usr/bin/getconf; then
d645 1
a645 1
		    case $sc_cpu_version in
d649 1
a649 1
			case $sc_kernel_bits in
d656 3
a658 3
		if test "$HP_ARCH" = ""; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"
d664 1
a664 2
		int
		main ()
d691 1
a691 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
d695 1
a695 1
	if test "$HP_ARCH" = hppa2.0w
d697 1
a697 1
	    set_cc_for_build
d716 2
a717 2
	GUESS=$HP_ARCH-hp-hpux$HPUX_REV
	;;
d719 3
a721 3
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	GUESS=ia64-hp-hpux$HPUX_REV
	;;
d723 2
a724 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d749 1
a749 1
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
d751 5
a755 5
	GUESS=unknown-hitachi-hiuxwe2
	;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
	GUESS=hppa1.1-hp-bsd
	;;
d757 2
a758 2
	GUESS=hppa1.0-hp-bsd
	;;
d760 5
a764 5
	GUESS=hppa1.0-hp-mpeix
	;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
	GUESS=hppa1.1-hp-osf
	;;
d766 2
a767 2
	GUESS=hppa1.0-hp-osf
	;;
d769 2
a770 2
	if test -x /usr/sbin/sysversion ; then
	    GUESS=$UNAME_MACHINE-unknown-osf1mk
d772 1
a772 1
	    GUESS=$UNAME_MACHINE-unknown-osf1
d774 1
a774 1
	;;
d776 2
a777 2
	GUESS=hppa1.1-hp-lites
	;;
d779 2
a780 2
	GUESS=c1-convex-bsd
	;;
d788 2
a789 2
	GUESS=c34-convex-bsd
	;;
d791 2
a792 2
	GUESS=c38-convex-bsd
	;;
d794 2
a795 2
	GUESS=c4-convex-bsd
	;;
d797 2
a798 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=ymp-cray-unicos$CRAY_REL
	;;
d800 1
a800 1
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
d806 2
a807 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=t90-cray-unicos$CRAY_REL
	;;
d809 2
a810 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=alphaev5-cray-unicosmk$CRAY_REL
	;;
d812 2
a813 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=sv1-cray-unicos$CRAY_REL
	;;
d815 2
a816 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=craynv-cray-unicosmp$CRAY_REL
	;;
d820 3
a822 3
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
	GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d825 3
a827 3
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d829 2
a830 2
	GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
	;;
d832 2
a833 2
	GUESS=sparc-unknown-bsdi$UNAME_RELEASE
	;;
d835 2
a836 15
	GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
	;;
    arm:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	set_cc_for_build
	if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_PCS_VFP
	then
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
	else
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
	fi
	;;
d838 2
a839 2
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
d845 2
a846 3
	FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
	;;
d848 2
a849 2
	GUESS=$UNAME_MACHINE-pc-cygwin
	;;
d851 2
a852 2
	GUESS=$UNAME_MACHINE-pc-mingw64
	;;
d854 2
a855 2
	GUESS=$UNAME_MACHINE-pc-mingw32
	;;
d857 6
a862 2
	GUESS=$UNAME_MACHINE-pc-msys
	;;
d864 2
a865 5
	GUESS=$UNAME_MACHINE-pc-pw32
	;;
    *:SerenityOS:*:*)
        GUESS=$UNAME_MACHINE-pc-serenity
        ;;
d867 1
a867 1
	case $UNAME_MACHINE in
d869 2
a870 2
		GUESS=i586-pc-interix$UNAME_RELEASE
		;;
d872 2
a873 2
		GUESS=x86_64-unknown-interix$UNAME_RELEASE
		;;
d875 2
a876 2
		GUESS=ia64-unknown-interix$UNAME_RELEASE
		;;
d878 12
d891 2
a892 2
	GUESS=$UNAME_MACHINE-pc-uwin
	;;
d894 5
a898 2
	GUESS=x86_64-pc-cygwin
	;;
d900 2
a901 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=powerpcle-unknown-solaris2$SUN_REL
	;;
d904 2
a905 4
	GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
	GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
	;;
d908 8
a915 36
	GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
	;;
    x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-pc-managarm-mlibc"
	;;
    *:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-unknown-managarm-mlibc"
	;;
    *:Minix:*:*)
	GUESS=$UNAME_MACHINE-unknown-minix
	;;
    aarch64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __ARM_EABI__
	    #ifdef __ARM_PCS_VFP
	    ABI=eabihf
	    #else
	    ABI=eabi
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;;
	    esac
	fi
	GUESS=$CPU-unknown-linux-$LIBCABI
	;;
d918 2
a919 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d921 1
a921 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
d932 5
a936 5
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d938 1
a938 1
	set_cc_for_build
d942 1
a942 1
	    GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
d947 1
a947 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
d949 1
a949 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
d952 1
a952 1
	;;
d954 2
a955 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d957 2
a958 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d960 2
a961 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d963 2
a964 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d966 2
a967 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d969 2
a970 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d972 2
a973 2
	GUESS=$UNAME_MACHINE-pc-linux-$LIBC
	;;
d975 2
a976 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d978 2
a979 14
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:cos:*:*)
	GUESS=$UNAME_MACHINE-unknown-cos
	;;
    kvx:mbr:*:*)
	GUESS=$UNAME_MACHINE-unknown-mbr
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d981 2
a982 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d984 2
a985 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d987 2
a988 4
	set_cc_for_build
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
	sed 's/^	//' << EOF > "$dummy.c"
d990 2
a991 28
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

d993 1
a993 1
	MIPS_ENDIAN=el
d996 1
a996 1
	MIPS_ENDIAN=
d998 1
a998 1
	MIPS_ENDIAN=
d1002 2
a1003 3
	cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
	eval "$cc_set_vars"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
d1006 2
a1007 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1009 2
a1010 2
	GUESS=or1k-unknown-linux-$LIBC
	;;
d1012 2
a1013 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1015 2
a1016 2
	GUESS=sparc-unknown-linux-$LIBC
	;;
d1018 2
a1019 2
	GUESS=hppa64-unknown-linux-$LIBC
	;;
d1023 3
a1025 3
	  PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
	  PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
	  *)    GUESS=hppa-unknown-linux-$LIBC ;;
d1027 1
a1027 1
	;;
d1029 2
a1030 2
	GUESS=powerpc64-unknown-linux-$LIBC
	;;
d1032 2
a1033 2
	GUESS=powerpc-unknown-linux-$LIBC
	;;
d1035 2
a1036 2
	GUESS=powerpc64le-unknown-linux-$LIBC
	;;
d1038 5
a1042 5
	GUESS=powerpcle-unknown-linux-$LIBC
	;;
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1044 2
a1045 2
	GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
	;;
d1047 2
a1048 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1050 2
a1051 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1053 2
a1054 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1056 2
a1057 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1059 2
a1060 2
	GUESS=$UNAME_MACHINE-dec-linux-$LIBC
	;;
d1062 2
a1063 23
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __i386__
	    ABI=x86
	    #else
	    #ifdef __ILP32__
	    ABI=x32
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		x86) CPU=i686 ;;
		x32) LIBCABI=${LIBC}x32 ;;
	    esac
	fi
	GUESS=$CPU-pc-linux-$LIBCABI
	;;
d1065 2
a1066 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1071 2
a1072 2
	GUESS=i386-sequent-sysv4
	;;
d1079 2
a1080 2
	GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
	;;
d1082 1
a1082 1
	# If we were able to find 'uname', then EMX Unix compatibility
d1084 2
a1085 2
	GUESS=$UNAME_MACHINE-pc-os2-emx
	;;
d1087 2
a1088 2
	GUESS=$UNAME_MACHINE-unknown-stop
	;;
d1090 2
a1091 2
	GUESS=$UNAME_MACHINE-unknown-atheos
	;;
d1093 2
a1094 2
	GUESS=$UNAME_MACHINE-pc-syllable
	;;
d1096 2
a1097 2
	GUESS=i386-unknown-lynxos$UNAME_RELEASE
	;;
d1099 4
a1102 4
	GUESS=$UNAME_MACHINE-pc-msdosdjgpp
	;;
    i*86:*:4.*:*)
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
d1104 1
a1104 1
		GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
d1106 1
a1106 1
		GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
d1108 1
a1108 1
	;;
d1116 2
a1117 2
	GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	;;
d1121 1
a1121 1
		GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
d1131 1
a1131 1
		GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
d1133 1
a1133 1
		GUESS=$UNAME_MACHINE-pc-sysv32
d1135 1
a1135 1
	;;
d1143 2
a1144 2
	GUESS=i586-pc-msdosdjgpp
	;;
d1146 2
a1147 2
	GUESS=i386-pc-mach3
	;;
d1149 2
a1150 2
	GUESS=i860-intel-osf1
	;;
d1153 1
a1153 1
	  GUESS=i860-stardent-sysv$UNAME_RELEASE    # Stardent Vistra i860-SVR4
d1155 1
a1155 1
	  GUESS=i860-unknown-sysv$UNAME_RELEASE     # Unknown i860-SVR4
d1157 1
a1157 1
	;;
d1160 2
a1161 2
	GUESS=m68010-convergent-sysv
	;;
d1163 2
a1164 2
	GUESS=m68k-convergent-sysv
	;;
d1166 2
a1167 2
	GUESS=m68k-diab-dnix
	;;
d1175 1
a1175 1
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1177 1
a1177 1
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1186 1
a1186 1
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1188 1
a1188 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
d1190 1
a1190 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1192 2
a1193 2
	GUESS=m68k-unknown-lynxos$UNAME_RELEASE
	;;
d1195 2
a1196 2
	GUESS=m68k-atari-sysv4
	;;
d1198 2
a1199 2
	GUESS=sparc-unknown-lynxos$UNAME_RELEASE
	;;
d1201 2
a1202 2
	GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
	;;
d1204 2
a1205 2
	GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
	;;
d1207 2
a1208 2
	GUESS=mips-dde-sysv$UNAME_RELEASE
	;;
d1210 2
a1211 2
	GUESS=mips-sni-sysv4
	;;
d1213 2
a1214 2
	GUESS=mips-sni-sysv4
	;;
d1218 1
a1218 1
		GUESS=$UNAME_MACHINE-sni-sysv4
d1220 1
a1220 1
		GUESS=ns32k-sni-sysv
d1222 2
a1223 2
	;;
    PENTIUM:*:4.0*:*)	# Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
d1225 2
a1226 2
	GUESS=i586-unisys-sysv4
	;;
d1230 2
a1231 2
	GUESS=hppa1.1-stratus-sysv4
	;;
d1234 2
a1235 2
	GUESS=i860-stratus-sysv4
	;;
d1238 2
a1239 2
	GUESS=$UNAME_MACHINE-stratus-vos
	;;
d1242 2
a1243 2
	GUESS=hppa1.1-stratus-vos
	;;
d1245 2
a1246 2
	GUESS=m68k-apple-aux$UNAME_RELEASE
	;;
d1248 2
a1249 2
	GUESS=mips-sony-newsos6
	;;
d1251 2
a1252 2
	if test -d /usr/nec; then
		GUESS=mips-nec-sysv$UNAME_RELEASE
d1254 1
a1254 1
		GUESS=mips-unknown-sysv$UNAME_RELEASE
d1256 1
a1256 1
	;;
d1258 2
a1259 2
	GUESS=powerpc-be-beos
	;;
d1261 2
a1262 2
	GUESS=powerpc-apple-beos
	;;
d1264 2
a1265 2
	GUESS=i586-pc-beos
	;;
d1267 5
a1271 8
	GUESS=i586-pc-haiku
	;;
    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
	GUESS=powerpc-apple-haiku
	;;
    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
	GUESS=$UNAME_MACHINE-unknown-haiku
	;;
d1273 2
a1274 2
	GUESS=sx4-nec-superux$UNAME_RELEASE
	;;
d1276 2
a1277 2
	GUESS=sx5-nec-superux$UNAME_RELEASE
	;;
d1279 2
a1280 2
	GUESS=sx6-nec-superux$UNAME_RELEASE
	;;
d1282 2
a1283 2
	GUESS=sx7-nec-superux$UNAME_RELEASE
	;;
d1285 2
a1286 2
	GUESS=sx8-nec-superux$UNAME_RELEASE
	;;
d1288 2
a1289 2
	GUESS=sx8r-nec-superux$UNAME_RELEASE
	;;
d1291 2
a1292 2
	GUESS=sxace-nec-superux$UNAME_RELEASE
	;;
d1294 2
a1295 2
	GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
	;;
d1297 2
a1298 5
	GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
	;;
    arm64:Darwin:*:*)
	GUESS=aarch64-apple-darwin$UNAME_RELEASE
	;;
d1300 23
a1322 29
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
	fi
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
d1325 7
a1331 2
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
d1333 2
a1334 2
	GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
	;;
d1341 2
a1342 2
	GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
	;;
d1344 2
a1345 2
	GUESS=i386-pc-qnx
	;;
d1347 2
a1348 2
	GUESS=neo-tandem-nsk$UNAME_RELEASE
	;;
d1350 2
a1351 2
	GUESS=nse-tandem-nsk$UNAME_RELEASE
	;;
d1353 2
a1354 5
	GUESS=nsr-tandem-nsk$UNAME_RELEASE
	;;
    NSV-*:NONSTOP_KERNEL:*:*)
	GUESS=nsv-tandem-nsk$UNAME_RELEASE
	;;
d1356 2
a1357 2
	GUESS=nsx-tandem-nsk$UNAME_RELEASE
	;;
d1359 2
a1360 2
	GUESS=mips-compaq-nonstopux
	;;
d1362 2
a1363 2
	GUESS=bs2000-siemens-sysv
	;;
d1365 2
a1366 2
	GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
	;;
d1371 1
a1371 1
	if test "${cputype-}" = 386; then
d1373 2
a1374 2
	elif test "x${cputype-}" != x; then
	    UNAME_MACHINE=$cputype
d1376 2
a1377 2
	GUESS=$UNAME_MACHINE-unknown-plan9
	;;
d1379 2
a1380 2
	GUESS=pdp10-unknown-tops10
	;;
d1382 2
a1383 2
	GUESS=pdp10-unknown-tenex
	;;
d1385 2
a1386 2
	GUESS=pdp10-dec-tops20
	;;
d1388 2
a1389 2
	GUESS=pdp10-xkl-tops20
	;;
d1391 2
a1392 2
	GUESS=pdp10-unknown-tops20
	;;
d1394 2
a1395 2
	GUESS=pdp10-unknown-its
	;;
d1397 2
a1398 2
	GUESS=mips-sei-seiux$UNAME_RELEASE
	;;
d1400 2
a1401 3
	DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
	;;
d1404 4
a1407 4
	case $UNAME_MACHINE in
	    A*) GUESS=alpha-dec-vms ;;
	    I*) GUESS=ia64-dec-vms ;;
	    V*) GUESS=vax-dec-vms ;;
d1410 2
a1411 2
	GUESS=i386-pc-xenix
	;;
d1413 2
a1414 3
	SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
	GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
	;;
d1416 5
a1420 8
	GUESS=$UNAME_MACHINE-pc-rdos
	;;
    i*86:Fiwix:*:*)
	GUESS=$UNAME_MACHINE-pc-fiwix
	;;
    *:AROS:*:*)
	GUESS=$UNAME_MACHINE-unknown-aros
	;;
d1422 2
a1423 2
	GUESS=$UNAME_MACHINE-unknown-esx
	;;
d1425 2
a1426 168
	GUESS=x86_64-unknown-onefs
	;;
    *:Unleashed:*:*)
	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
	;;
    x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
	;;
    *:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
	;;
esac

# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
    echo "$GUESS"
    exit
fi

# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

echo "$0: unable to guess system type" >&2

case $UNAME_MACHINE:$UNAME_SYSTEM in
    mips:Linux | mips64:Linux)
	# If we got here on MIPS GNU/Linux, output extra information.
	cat >&2 <<EOF

NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
the system type. Please install a C compiler and try again.
EOF
	;;
d1430 1
d1433 2
a1434 2
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:
d1436 1
a1436 1
  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
d1438 1
a1438 9
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

our_year=`echo $timestamp | sed 's,-.*,,'`
thisyear=`date +%Y`
# shellcheck disable=SC2003
script_age=`expr "$thisyear" - "$our_year"`
if test "$script_age" -lt 3 ; then
   cat >&2 <<EOF
d1461 4
a1464 4
UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
a1465 1
fi
d1470 1
a1470 1
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
d1472 1
a1472 1
# time-stamp-format: "%Y-%02m-%02d"
@


1.1
log
@Initial revision
@
text
@d176 1
@


1.1.1.1
log
@Import xz 5.2.4.
@
text
@@


1.1.1.2
log
@Import xz-5.8.3 (previous was 5.2.4)

5.8.3 (2026-03-31)

    * liblzma:

        - Fix a buffer overflow in lzma_index_append(): If
          lzma_index_decoder() was used to decode an Index that
          contained no Records, the resulting lzma_index was left in
          a state where where a subsequent lzma_index_append() would
          allocate too little memory, and a buffer overflow would occur.

          The lzma_index functions are rarely used by applications
          directly. In the few applications that do use these functions,
          the combination of function calls required to trigger this bug
          are unlikely to exist, because there typically is no reason to
          append Records to a decoded lzma_index. Thus, it's likely that
          this bug cannot be triggered in any real-world application.

          The bug was reported and discovered by Cantina using their
          AppSec agent, Apex.

        - Fix the build on Windows ARM64EC.

        - Add "License: 0BSD" to liblzma.pc.

    * xz:

        - Fix invalid memory access in --files and --files0. All of
          the following must be true to trigger it:

            1. A string being read (which supposedly is a filename) is
               at least SIZE_MAX / 2 bytes long. This size is plausible
               on 32-bit platforms (2 GiB - 1 B).

            2. realloc(ptr, SIZE_MAX / 2 + 1) must succeed.
               On glibc >= 2.30 it shouldn't because the value
               exceeds PTRDIFF_MAX.

            3. An integer overflow results in a realloc(ptr, 0) call.
               If it doesn't return NULL, then invalid memory access
               will occur.

        - On QNX, don't use fsync() on directories because it fails.

    * Autotools: Enable 32-bit x86 assembler on Hurd by default.
      It was already enabled in the CMake-based build.

    * Translations: Add Arabic man page translations.

For the changelog of previous versions please see:

    https://github.com/tukaani-project/xz/releases/tag/vM.m.p

The changes are too big to include here, since this package has not been
updated for a while.
@
text
@d3 1
a3 1
#   Copyright 1992-2025 Free Software Foundation, Inc.
d5 1
a5 3
# shellcheck disable=SC2006,SC2268 # see below for rationale

timestamp='2025-07-10'
d9 1
a9 1
# the Free Software Foundation, either version 3 of the License, or
d18 1
a18 1
# along with this program; if not, see <https://www.gnu.org/licenses/>.
d30 1
a30 1
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
a34 8
# The "shellcheck disable" line above the timestamp inhibits complaints
# about features and limitations of the classic Bourne shell that were
# superseded or lifted in POSIX.  However, this script identifies a wide
# variety of pre-POSIX systems that do not have POSIX shells at all, and
# even some reasonably current systems (Solaris 10 as case-in-point) still
# have a pre-POSIX /bin/sh.


d40 1
a40 1
Output the configuration name of the system '$me' is run on.
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2025 Free Software Foundation, Inc.
d59 1
a59 1
Try '$me --help' for more information."
d87 1
a87 2
# Just in case it came from the environment.
GUESS=
d94 2
a95 2
# Historically, 'CC_FOR_BUILD' used to be named 'HOST_CC'. We still
# use 'HOST_CC' if defined, but it is deprecated.
d99 24
a122 30
tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15

set_cc_for_build() {
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039,SC3028
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
	{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
	{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
	{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
    dummy=$tmp/dummy
    case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
	,,)    echo "int x;" > "$dummy.c"
	       for driver in cc gcc c17 c99 c89 ; do
		   if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
		       CC_FOR_BUILD=$driver
		       break
		   fi
	       done
	       if test x"$CC_FOR_BUILD" = x ; then
		   CC_FOR_BUILD=no_compiler_found
	       fi
	       ;;
	,,*)   CC_FOR_BUILD=$CC ;;
	,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    esac
}
d126 1
a126 1
if test -f /.attbin/uname ; then
d132 1
a132 1
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
d135 1
a135 1
case $UNAME_SYSTEM in
d137 3
a139 1
	LIBC=unknown
d141 2
a142 5
	set_cc_for_build
	cat <<-EOF > "$dummy.c"
	#if defined(__ANDROID__)
	LIBC=android
	#else
d148 1
a148 1
	#elif defined(__GLIBC__)
a149 9
	#elif defined(__LLVM_LIBC__)
	LIBC=llvm
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
	#endif
d152 1
a152 15
	cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	eval "$cc_set_libc"

	# Second heuristic to detect musl libc.
	if [ "$LIBC" = unknown ] &&
	   command -v ldd >/dev/null &&
	   ldd --version 2>&1 | grep -q ^musl; then
		LIBC=musl
	fi

	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	if [ "$LIBC" = unknown ]; then
		LIBC=gnu
	fi
d158 1
a158 1
case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
d170 1
d172 2
a173 2
	    /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
	    /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
d175 1
a175 2
	case $UNAME_MACHINE_ARCH in
	    aarch64eb) machine=aarch64_be-unknown ;;
d182 2
a183 2
		arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
d186 1
a186 1
	    *) machine=$UNAME_MACHINE_ARCH-unknown ;;
d190 1
a190 1
	case $UNAME_MACHINE_ARCH in
d195 1
a195 1
		set_cc_for_build
d211 1
a211 1
	case $UNAME_MACHINE_ARCH in
d214 1
a214 1
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
d222 1
a222 1
	case $UNAME_VERSION in
d227 1
a227 1
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
d233 2
a234 2
	GUESS=$machine-${os}${release}${abi-}
	;;
d237 2
a238 2
	GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
	;;
d241 2
a242 6
	GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
	;;
    *:SecBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
	GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
	;;
d245 2
a246 5
	GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
	;;
    *:MidnightBSD:*:*)
	GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
	;;
d248 2
a249 2
	GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
	;;
d251 2
a252 5
	GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
	;;
    *:OS108:*:*)
	GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
	;;
d254 2
a255 2
	GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
	;;
d257 2
a258 2
	GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
	;;
d260 2
a261 11
	GUESS=$UNAME_MACHINE-unknown-sortix
	;;
    *:Twizzler:*:*)
	GUESS=$UNAME_MACHINE-unknown-twizzler
	;;
    *:Redox:*:*)
	GUESS=$UNAME_MACHINE-unknown-redox
	;;
    mips:OSF1:*.*)
	GUESS=mips-dec-osf1
	;;
a262 2
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	trap '' 0
d276 1
a276 1
	case $ALPHA_CPU_TYPE in
d313 14
a326 3
	OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
	;;
d328 2
a329 2
	GUESS=m68k-unknown-sysv4
	;;
d331 2
a332 2
	GUESS=$UNAME_MACHINE-unknown-amigaos
	;;
d334 2
a335 2
	GUESS=$UNAME_MACHINE-unknown-morphos
	;;
d337 2
a338 2
	GUESS=i370-ibm-openedition
	;;
d340 2
a341 2
	GUESS=s390-ibm-zvmoe
	;;
d343 2
a344 2
	GUESS=powerpc-ibm-os400
	;;
d346 2
a347 2
	GUESS=arm-acorn-riscix$UNAME_RELEASE
	;;
d349 2
a350 2
	GUESS=arm-unknown-riscos
	;;
d352 2
a353 2
	GUESS=hppa1.1-hitachi-hiuxmpp
	;;
d356 6
a361 5
	case `(/bin/universe) 2>/dev/null` in
	    att) GUESS=pyramid-pyramid-sysv3 ;;
	    *)   GUESS=pyramid-pyramid-bsd   ;;
	esac
	;;
d363 2
a364 2
	GUESS=pyramid-pyramid-svr4
	;;
d366 2
a367 2
	GUESS=sparc-icl-nx6
	;;
d370 2
a371 3
	    sparc) GUESS=sparc-icl-nx7 ;;
	esac
	;;
d373 2
a374 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
	;;
d376 2
a377 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-hal-solaris2$SUN_REL
	;;
d379 2
a380 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris2$SUN_REL
	;;
d382 2
a383 2
	GUESS=i386-pc-auroraux$UNAME_RELEASE
	;;
d385 1
a385 1
	set_cc_for_build
d390 1
a390 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d392 1
a392 1
		(CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
d398 2
a399 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
	;;
d404 2
a405 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=sparc-sun-solaris3$SUN_REL
	;;
d407 1
a407 1
	case `/usr/bin/arch -k` in
d412 3
a414 4
	# Japanese Language versions have a version number like '4.1.3-JL'.
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
	GUESS=sparc-sun-sunos$SUN_REL
	;;
d416 2
a417 2
	GUESS=m68k-sun-sunos$UNAME_RELEASE
	;;
d420 2
a421 2
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
	case `/bin/arch` in
d423 1
a423 1
		GUESS=m68k-sun-sunos$UNAME_RELEASE
d426 1
a426 1
		GUESS=sparc-sun-sunos$UNAME_RELEASE
d429 1
a429 1
	;;
d431 2
a432 2
	GUESS=sparc-auspex-sunos$UNAME_RELEASE
	;;
d442 2
a443 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d445 2
a446 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d448 2
a449 2
	GUESS=m68k-atari-mint$UNAME_RELEASE
	;;
d451 2
a452 2
	GUESS=m68k-milan-mint$UNAME_RELEASE
	;;
d454 2
a455 2
	GUESS=m68k-hades-mint$UNAME_RELEASE
	;;
d457 2
a458 2
	GUESS=m68k-unknown-mint$UNAME_RELEASE
	;;
d460 2
a461 2
	GUESS=m68k-apple-machten$UNAME_RELEASE
	;;
d463 2
a464 2
	GUESS=powerpc-apple-machten$UNAME_RELEASE
	;;
d466 2
a467 2
	GUESS=mips-dec-mach_bsd4.3
	;;
d469 2
a470 2
	GUESS=mips-dec-ultrix$UNAME_RELEASE
	;;
d472 2
a473 2
	GUESS=vax-dec-ultrix$UNAME_RELEASE
	;;
d475 2
a476 2
	GUESS=clipper-intergraph-clix$UNAME_RELEASE
	;;
d478 2
a479 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d488 1
a488 1
	  printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
d491 1
a491 1
	  printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
d494 1
a494 1
	  printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
d500 3
a502 3
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
d504 2
a505 2
	GUESS=mips-mips-riscos$UNAME_RELEASE
	;;
d507 2
a508 2
	GUESS=powerpc-motorola-powermax
	;;
d510 2
a511 2
	GUESS=powerpc-harris-powermax
	;;
d513 2
a514 2
	GUESS=powerpc-harris-powermax
	;;
d516 2
a517 2
	GUESS=powerpc-harris-powerunix
	;;
d519 2
a520 2
	GUESS=m88k-harris-cxux7
	;;
d522 2
a523 2
	GUESS=m88k-motorola-sysv4
	;;
d525 2
a526 2
	GUESS=m88k-motorola-sysv3
	;;
d530 1
a530 1
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
d532 2
a533 2
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
d535 1
a535 1
		GUESS=m88k-dg-dgux$UNAME_RELEASE
d537 1
a537 1
		GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
d540 1
a540 1
	    GUESS=i586-dg-dgux$UNAME_RELEASE
d542 1
a542 1
	;;
d544 2
a545 2
	GUESS=m88k-dolphin-sysv3
	;;
d548 2
a549 2
	GUESS=m88k-motorola-sysv3
	;;
d551 2
a552 2
	GUESS=m88k-tektronix-sysv3
	;;
d554 2
a555 2
	GUESS=m68k-tektronix-bsd
	;;
d557 2
a558 3
	IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
	GUESS=mips-sgi-irix$IRIX_REL
	;;
d560 2
a561 2
	GUESS=romp-ibm-aix    # uname -m gives an 8 hex-code CPU id
	;;                    # Note that: echo "'`uname -s`'" gives 'AIX '
d563 2
a564 2
	GUESS=i386-ibm-aix
	;;
d566 1
a566 1
	if test -x /usr/bin/oslevel ; then
d569 1
a569 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d571 2
a572 2
	GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
	;;
d575 2
a576 2
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
d579 1
a579 2
		int
		main ()
d587 1
a587 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
d589 1
a589 1
			GUESS=$SYSTEM_NAME
d591 1
a591 1
			GUESS=rs6000-ibm-aix3.2.5
d594 1
a594 1
		GUESS=rs6000-ibm-aix3.2.4
d596 1
a596 1
		GUESS=rs6000-ibm-aix3.2
d598 1
a598 1
	;;
d601 1
a601 1
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
d606 2
a607 2
	if test -x /usr/bin/lslpp ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
d610 1
a610 1
		IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
d612 2
a613 2
	GUESS=$IBM_ARCH-ibm-aix$IBM_REV
	;;
d615 5
a619 5
	GUESS=rs6000-ibm-aix
	;;
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
	GUESS=romp-ibm-bsd4.4
	;;
d621 2
a622 2
	GUESS=romp-ibm-bsd$UNAME_RELEASE    # 4.3 with uname added to
	;;                                  # report: romp-ibm BSD 4.3
d624 2
a625 2
	GUESS=rs6000-bull-bosx
	;;
d627 2
a628 2
	GUESS=m68k-bull-sysv3
	;;
d630 2
a631 2
	GUESS=m68k-hp-bsd
	;;
d633 2
a634 2
	GUESS=m68k-hp-bsd4.4
	;;
d636 4
a639 4
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	case $UNAME_MACHINE in
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d641 1
a641 1
		if test -x /usr/bin/getconf; then
d644 1
a644 1
		    case $sc_cpu_version in
d648 1
a648 1
			case $sc_kernel_bits in
d655 3
a657 3
		if test "$HP_ARCH" = ""; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"
d663 1
a663 2
		int
		main ()
d690 1
a690 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
d694 1
a694 1
	if test "$HP_ARCH" = hppa2.0w
d696 1
a696 1
	    set_cc_for_build
d715 2
a716 2
	GUESS=$HP_ARCH-hp-hpux$HPUX_REV
	;;
d718 3
a720 3
	HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
	GUESS=ia64-hp-hpux$HPUX_REV
	;;
d722 2
a723 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d748 1
a748 1
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
d750 5
a754 5
	GUESS=unknown-hitachi-hiuxwe2
	;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
	GUESS=hppa1.1-hp-bsd
	;;
d756 2
a757 2
	GUESS=hppa1.0-hp-bsd
	;;
d759 5
a763 5
	GUESS=hppa1.0-hp-mpeix
	;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
	GUESS=hppa1.1-hp-osf
	;;
d765 2
a766 2
	GUESS=hppa1.0-hp-osf
	;;
d768 2
a769 2
	if test -x /usr/sbin/sysversion ; then
	    GUESS=$UNAME_MACHINE-unknown-osf1mk
d771 1
a771 1
	    GUESS=$UNAME_MACHINE-unknown-osf1
d773 1
a773 1
	;;
d775 2
a776 2
	GUESS=hppa1.1-hp-lites
	;;
d778 2
a779 2
	GUESS=c1-convex-bsd
	;;
d787 2
a788 2
	GUESS=c34-convex-bsd
	;;
d790 2
a791 2
	GUESS=c38-convex-bsd
	;;
d793 2
a794 2
	GUESS=c4-convex-bsd
	;;
d796 2
a797 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=ymp-cray-unicos$CRAY_REL
	;;
d799 1
a799 1
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
d805 2
a806 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=t90-cray-unicos$CRAY_REL
	;;
d808 2
a809 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=alphaev5-cray-unicosmk$CRAY_REL
	;;
d811 2
a812 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=sv1-cray-unicos$CRAY_REL
	;;
d814 2
a815 3
	CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
	GUESS=craynv-cray-unicosmp$CRAY_REL
	;;
d819 3
a821 3
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
	GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d824 3
a826 3
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
	;;
d828 2
a829 2
	GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
	;;
d831 2
a832 2
	GUESS=sparc-unknown-bsdi$UNAME_RELEASE
	;;
d834 2
a835 15
	GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
	;;
    arm:FreeBSD:*:*)
	UNAME_PROCESSOR=`uname -p`
	set_cc_for_build
	if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_PCS_VFP
	then
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
	else
	    FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	    GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
	fi
	;;
d837 2
a838 2
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
d844 2
a845 3
	FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
	;;
d847 2
a848 2
	GUESS=$UNAME_MACHINE-pc-cygwin
	;;
d850 2
a851 2
	GUESS=$UNAME_MACHINE-pc-mingw64
	;;
d853 2
a854 2
	GUESS=$UNAME_MACHINE-pc-mingw32
	;;
d856 6
a861 2
	GUESS=$UNAME_MACHINE-pc-msys
	;;
d863 2
a864 5
	GUESS=$UNAME_MACHINE-pc-pw32
	;;
    *:SerenityOS:*:*)
        GUESS=$UNAME_MACHINE-pc-serenity
        ;;
d866 1
a866 1
	case $UNAME_MACHINE in
d868 2
a869 2
		GUESS=i586-pc-interix$UNAME_RELEASE
		;;
d871 2
a872 2
		GUESS=x86_64-unknown-interix$UNAME_RELEASE
		;;
d874 2
a875 2
		GUESS=ia64-unknown-interix$UNAME_RELEASE
		;;
d877 12
d890 2
a891 2
	GUESS=$UNAME_MACHINE-pc-uwin
	;;
d893 5
a897 2
	GUESS=x86_64-pc-cygwin
	;;
d899 2
a900 3
	SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
	GUESS=powerpcle-unknown-solaris2$SUN_REL
	;;
d903 2
a904 4
	GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
	GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
	;;
d907 8
a914 36
	GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
	GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
	;;
    x86_64:[Mm]anagarm:*:*|i?86:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-pc-managarm-mlibc"
	;;
    *:[Mm]anagarm:*:*)
	GUESS="$UNAME_MACHINE-unknown-managarm-mlibc"
	;;
    *:Minix:*:*)
	GUESS=$UNAME_MACHINE-unknown-minix
	;;
    aarch64:Linux:*:*)
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __ARM_EABI__
	    #ifdef __ARM_PCS_VFP
	    ABI=eabihf
	    #else
	    ABI=eabi
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		eabi | eabihf) CPU=armv8l; LIBCABI=$LIBC$ABI ;;
	    esac
	fi
	GUESS=$CPU-unknown-linux-$LIBCABI
	;;
d917 2
a918 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d920 1
a920 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
d931 5
a935 5
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d937 1
a937 1
	set_cc_for_build
d941 1
a941 1
	    GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
d946 1
a946 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
d948 1
a948 1
		GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
d951 1
a951 1
	;;
d953 2
a954 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d956 2
a957 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d959 2
a960 2
	GUESS=$UNAME_MACHINE-axis-linux-$LIBC
	;;
d962 2
a963 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d965 2
a966 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d968 2
a969 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d971 2
a972 2
	GUESS=$UNAME_MACHINE-pc-linux-$LIBC
	;;
d974 2
a975 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d977 2
a978 14
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
    kvx:cos:*:*)
	GUESS=$UNAME_MACHINE-unknown-cos
	;;
    kvx:mbr:*:*)
	GUESS=$UNAME_MACHINE-unknown-mbr
	;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d980 2
a981 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d983 2
a984 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d986 2
a987 4
	set_cc_for_build
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
	sed 's/^	//' << EOF > "$dummy.c"
d989 2
a990 28
	#undef mips
	#undef mipsel
	#undef mips64
	#undef mips64el
	#if ${IS_GLIBC} && defined(_ABI64)
	LIBCABI=gnuabi64
	#else
	#if ${IS_GLIBC} && defined(_ABIN32)
	LIBCABI=gnuabin32
	#else
	LIBCABI=${LIBC}
	#endif
	#endif

	#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa64r6
	#else
	#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
	CPU=mipsisa32r6
	#else
	#if defined(__mips64)
	CPU=mips64
	#else
	CPU=mips
	#endif
	#endif
	#endif

d992 1
a992 1
	MIPS_ENDIAN=el
d995 1
a995 1
	MIPS_ENDIAN=
d997 1
a997 1
	MIPS_ENDIAN=
d1001 2
a1002 3
	cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
	eval "$cc_set_vars"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
d1005 2
a1006 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1008 2
a1009 2
	GUESS=or1k-unknown-linux-$LIBC
	;;
d1011 2
a1012 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1014 2
a1015 2
	GUESS=sparc-unknown-linux-$LIBC
	;;
d1017 2
a1018 2
	GUESS=hppa64-unknown-linux-$LIBC
	;;
d1022 3
a1024 3
	  PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
	  PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
	  *)    GUESS=hppa-unknown-linux-$LIBC ;;
d1026 1
a1026 1
	;;
d1028 2
a1029 2
	GUESS=powerpc64-unknown-linux-$LIBC
	;;
d1031 2
a1032 2
	GUESS=powerpc-unknown-linux-$LIBC
	;;
d1034 2
a1035 2
	GUESS=powerpc64le-unknown-linux-$LIBC
	;;
d1037 5
a1041 5
	GUESS=powerpcle-unknown-linux-$LIBC
	;;
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1043 2
a1044 2
	GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
	;;
d1046 2
a1047 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1049 2
a1050 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1052 2
a1053 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1055 2
a1056 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1058 2
a1059 2
	GUESS=$UNAME_MACHINE-dec-linux-$LIBC
	;;
d1061 2
a1062 23
	set_cc_for_build
	CPU=$UNAME_MACHINE
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    ABI=64
	    sed 's/^	    //' << EOF > "$dummy.c"
	    #ifdef __i386__
	    ABI=x86
	    #else
	    #ifdef __ILP32__
	    ABI=x32
	    #endif
	    #endif
EOF
	    cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
	    eval "$cc_set_abi"
	    case $ABI in
		x86) CPU=i686 ;;
		x32) LIBCABI=${LIBC}x32 ;;
	    esac
	fi
	GUESS=$CPU-pc-linux-$LIBCABI
	;;
d1064 2
a1065 2
	GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
	;;
d1070 2
a1071 2
	GUESS=i386-sequent-sysv4
	;;
d1078 2
a1079 2
	GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
	;;
d1081 1
a1081 1
	# If we were able to find 'uname', then EMX Unix compatibility
d1083 2
a1084 2
	GUESS=$UNAME_MACHINE-pc-os2-emx
	;;
d1086 2
a1087 2
	GUESS=$UNAME_MACHINE-unknown-stop
	;;
d1089 2
a1090 2
	GUESS=$UNAME_MACHINE-unknown-atheos
	;;
d1092 2
a1093 2
	GUESS=$UNAME_MACHINE-pc-syllable
	;;
d1095 2
a1096 2
	GUESS=i386-unknown-lynxos$UNAME_RELEASE
	;;
d1098 4
a1101 4
	GUESS=$UNAME_MACHINE-pc-msdosdjgpp
	;;
    i*86:*:4.*:*)
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
d1103 1
a1103 1
		GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
d1105 1
a1105 1
		GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
d1107 1
a1107 1
	;;
d1115 2
a1116 2
	GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	;;
d1120 1
a1120 1
		GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
d1130 1
a1130 1
		GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
d1132 1
a1132 1
		GUESS=$UNAME_MACHINE-pc-sysv32
d1134 1
a1134 1
	;;
d1142 2
a1143 2
	GUESS=i586-pc-msdosdjgpp
	;;
d1145 2
a1146 2
	GUESS=i386-pc-mach3
	;;
d1148 2
a1149 2
	GUESS=i860-intel-osf1
	;;
d1152 1
a1152 1
	  GUESS=i860-stardent-sysv$UNAME_RELEASE    # Stardent Vistra i860-SVR4
d1154 1
a1154 1
	  GUESS=i860-unknown-sysv$UNAME_RELEASE     # Unknown i860-SVR4
d1156 1
a1156 1
	;;
d1159 2
a1160 2
	GUESS=m68010-convergent-sysv
	;;
d1162 2
a1163 2
	GUESS=m68k-convergent-sysv
	;;
d1165 2
a1166 2
	GUESS=m68k-diab-dnix
	;;
d1174 1
a1174 1
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1176 1
a1176 1
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1185 1
a1185 1
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1187 1
a1187 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
d1189 1
a1189 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1191 2
a1192 2
	GUESS=m68k-unknown-lynxos$UNAME_RELEASE
	;;
d1194 2
a1195 2
	GUESS=m68k-atari-sysv4
	;;
d1197 2
a1198 2
	GUESS=sparc-unknown-lynxos$UNAME_RELEASE
	;;
d1200 2
a1201 2
	GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
	;;
d1203 2
a1204 2
	GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
	;;
d1206 2
a1207 2
	GUESS=mips-dde-sysv$UNAME_RELEASE
	;;
d1209 2
a1210 2
	GUESS=mips-sni-sysv4
	;;
d1212 2
a1213 2
	GUESS=mips-sni-sysv4
	;;
d1217 1
a1217 1
		GUESS=$UNAME_MACHINE-sni-sysv4
d1219 1
a1219 1
		GUESS=ns32k-sni-sysv
d1221 2
a1222 2
	;;
    PENTIUM:*:4.0*:*)	# Unisys 'ClearPath HMP IX 4000' SVR4/MP effort
d1224 2
a1225 2
	GUESS=i586-unisys-sysv4
	;;
d1229 2
a1230 2
	GUESS=hppa1.1-stratus-sysv4
	;;
d1233 2
a1234 2
	GUESS=i860-stratus-sysv4
	;;
d1237 2
a1238 2
	GUESS=$UNAME_MACHINE-stratus-vos
	;;
d1241 2
a1242 2
	GUESS=hppa1.1-stratus-vos
	;;
d1244 2
a1245 2
	GUESS=m68k-apple-aux$UNAME_RELEASE
	;;
d1247 2
a1248 2
	GUESS=mips-sony-newsos6
	;;
d1250 2
a1251 2
	if test -d /usr/nec; then
		GUESS=mips-nec-sysv$UNAME_RELEASE
d1253 1
a1253 1
		GUESS=mips-unknown-sysv$UNAME_RELEASE
d1255 1
a1255 1
	;;
d1257 2
a1258 2
	GUESS=powerpc-be-beos
	;;
d1260 2
a1261 2
	GUESS=powerpc-apple-beos
	;;
d1263 2
a1264 2
	GUESS=i586-pc-beos
	;;
d1266 5
a1270 8
	GUESS=i586-pc-haiku
	;;
    ppc:Haiku:*:*)	# Haiku running on Apple PowerPC
	GUESS=powerpc-apple-haiku
	;;
    *:Haiku:*:*)	# Haiku modern gcc (not bound by BeOS compat)
	GUESS=$UNAME_MACHINE-unknown-haiku
	;;
d1272 2
a1273 2
	GUESS=sx4-nec-superux$UNAME_RELEASE
	;;
d1275 2
a1276 2
	GUESS=sx5-nec-superux$UNAME_RELEASE
	;;
d1278 2
a1279 2
	GUESS=sx6-nec-superux$UNAME_RELEASE
	;;
d1281 2
a1282 2
	GUESS=sx7-nec-superux$UNAME_RELEASE
	;;
d1284 2
a1285 2
	GUESS=sx8-nec-superux$UNAME_RELEASE
	;;
d1287 2
a1288 2
	GUESS=sx8r-nec-superux$UNAME_RELEASE
	;;
d1290 2
a1291 2
	GUESS=sxace-nec-superux$UNAME_RELEASE
	;;
d1293 2
a1294 2
	GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
	;;
d1296 2
a1297 5
	GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
	;;
    arm64:Darwin:*:*)
	GUESS=aarch64-apple-darwin$UNAME_RELEASE
	;;
d1299 23
a1321 29
	UNAME_PROCESSOR=`uname -p`
	case $UNAME_PROCESSOR in
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
	if command -v xcode-select > /dev/null 2> /dev/null && \
		! xcode-select --print-path > /dev/null 2> /dev/null ; then
	    # Avoid executing cc if there is no toolchain installed as
	    # cc will be a stub that puts up a graphical alert
	    # prompting the user to install developer tools.
	    CC_FOR_BUILD=no_compiler_found
	else
	    set_cc_for_build
	fi
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_64BIT_ARCH >/dev/null
	    then
		case $UNAME_PROCESSOR in
		    i386) UNAME_PROCESSOR=x86_64 ;;
		    powerpc) UNAME_PROCESSOR=powerpc64 ;;
		esac
	    fi
	    # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
	    if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		   (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		   grep IS_PPC >/dev/null
	    then
		UNAME_PROCESSOR=powerpc
d1324 7
a1330 2
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
d1332 2
a1333 2
	GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
	;;
d1340 2
a1341 2
	GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
	;;
d1343 2
a1344 2
	GUESS=i386-pc-qnx
	;;
d1346 2
a1347 2
	GUESS=neo-tandem-nsk$UNAME_RELEASE
	;;
d1349 2
a1350 2
	GUESS=nse-tandem-nsk$UNAME_RELEASE
	;;
d1352 2
a1353 5
	GUESS=nsr-tandem-nsk$UNAME_RELEASE
	;;
    NSV-*:NONSTOP_KERNEL:*:*)
	GUESS=nsv-tandem-nsk$UNAME_RELEASE
	;;
d1355 2
a1356 2
	GUESS=nsx-tandem-nsk$UNAME_RELEASE
	;;
d1358 2
a1359 2
	GUESS=mips-compaq-nonstopux
	;;
d1361 2
a1362 2
	GUESS=bs2000-siemens-sysv
	;;
d1364 2
a1365 2
	GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
	;;
d1370 1
a1370 1
	if test "${cputype-}" = 386; then
d1372 2
a1373 2
	elif test "x${cputype-}" != x; then
	    UNAME_MACHINE=$cputype
d1375 2
a1376 2
	GUESS=$UNAME_MACHINE-unknown-plan9
	;;
d1378 2
a1379 2
	GUESS=pdp10-unknown-tops10
	;;
d1381 2
a1382 2
	GUESS=pdp10-unknown-tenex
	;;
d1384 2
a1385 2
	GUESS=pdp10-dec-tops20
	;;
d1387 2
a1388 2
	GUESS=pdp10-xkl-tops20
	;;
d1390 2
a1391 2
	GUESS=pdp10-unknown-tops20
	;;
d1393 2
a1394 2
	GUESS=pdp10-unknown-its
	;;
d1396 2
a1397 2
	GUESS=mips-sei-seiux$UNAME_RELEASE
	;;
d1399 2
a1400 3
	DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
	GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
	;;
d1403 4
a1406 4
	case $UNAME_MACHINE in
	    A*) GUESS=alpha-dec-vms ;;
	    I*) GUESS=ia64-dec-vms ;;
	    V*) GUESS=vax-dec-vms ;;
d1409 2
a1410 2
	GUESS=i386-pc-xenix
	;;
d1412 2
a1413 3
	SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
	GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
	;;
d1415 5
a1419 8
	GUESS=$UNAME_MACHINE-pc-rdos
	;;
    i*86:Fiwix:*:*)
	GUESS=$UNAME_MACHINE-pc-fiwix
	;;
    *:AROS:*:*)
	GUESS=$UNAME_MACHINE-unknown-aros
	;;
d1421 2
a1422 2
	GUESS=$UNAME_MACHINE-unknown-esx
	;;
d1424 2
a1425 168
	GUESS=x86_64-unknown-onefs
	;;
    *:Unleashed:*:*)
	GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
	;;
    x86_64:[Ii]ronclad:*:*|i?86:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-pc-ironclad-mlibc
	;;
    *:[Ii]ronclad:*:*)
	GUESS=$UNAME_MACHINE-unknown-ironclad-mlibc
	;;
esac

# Do we have a guess based on uname results?
if test "x$GUESS" != x; then
    echo "$GUESS"
    exit
fi

# No uname command or uname output not recognized.
set_cc_for_build
cat > "$dummy.c" <<EOF
#ifdef _SEQUENT_
#include <sys/types.h>
#include <sys/utsname.h>
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#include <signal.h>
#if defined(_SIZE_T_) || defined(SIGLOST)
#include <sys/utsname.h>
#endif
#endif
#endif
int
main ()
{
#if defined (sony)
#if defined (MIPSEB)
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
     I don't know....  */
  printf ("mips-sony-bsd\n"); exit (0);
#else
#include <sys/param.h>
  printf ("m68k-sony-newsos%s\n",
#ifdef NEWSOS4
  "4"
#else
  ""
#endif
  ); exit (0);
#endif
#endif

#if defined (NeXT)
#if !defined (__ARCHITECTURE__)
#define __ARCHITECTURE__ "m68k"
#endif
  int version;
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
  if (version < 4)
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
  else
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
  exit (0);
#endif

#if defined (MULTIMAX) || defined (n16)
#if defined (UMAXV)
  printf ("ns32k-encore-sysv\n"); exit (0);
#else
#if defined (CMU)
  printf ("ns32k-encore-mach\n"); exit (0);
#else
  printf ("ns32k-encore-bsd\n"); exit (0);
#endif
#endif
#endif

#if defined (__386BSD__)
  printf ("i386-pc-bsd\n"); exit (0);
#endif

#if defined (sequent)
#if defined (i386)
  printf ("i386-sequent-dynix\n"); exit (0);
#endif
#if defined (ns32000)
  printf ("ns32k-sequent-dynix\n"); exit (0);
#endif
#endif

#if defined (_SEQUENT_)
  struct utsname un;

  uname(&un);
  if (strncmp(un.version, "V2", 2) == 0) {
    printf ("i386-sequent-ptx2\n"); exit (0);
  }
  if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
    printf ("i386-sequent-ptx1\n"); exit (0);
  }
  printf ("i386-sequent-ptx\n"); exit (0);
#endif

#if defined (vax)
#if !defined (ultrix)
#include <sys/param.h>
#if defined (BSD)
#if BSD == 43
  printf ("vax-dec-bsd4.3\n"); exit (0);
#else
#if BSD == 199006
  printf ("vax-dec-bsd4.3reno\n"); exit (0);
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#endif
#else
  printf ("vax-dec-bsd\n"); exit (0);
#endif
#else
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname un;
  uname (&un);
  printf ("vax-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("vax-dec-ultrix\n"); exit (0);
#endif
#endif
#endif
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
#if defined(_SIZE_T_) || defined(SIGLOST)
  struct utsname *un;
  uname (&un);
  printf ("mips-dec-ultrix%s\n", un.release); exit (0);
#else
  printf ("mips-dec-ultrix\n"); exit (0);
#endif
#endif
#endif

#if defined (alliant) && defined (i860)
  printf ("i860-alliant-bsd\n"); exit (0);
#endif

  exit (1);
}
EOF

$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
	{ echo "$SYSTEM_NAME"; exit; }

# Apollos put the system type in the environment.
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }

echo "$0: unable to guess system type" >&2

case $UNAME_MACHINE:$UNAME_SYSTEM in
    mips:Linux | mips64:Linux)
	# If we got here on MIPS GNU/Linux, output extra information.
	cat >&2 <<EOF

NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
the system type. Please install a C compiler and try again.
EOF
	;;
d1429 1
d1432 2
a1433 2
operating system you are using. If your script is old, overwrite *all*
copies of config.guess and config.sub with the latest versions from:
d1435 1
a1435 1
  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
d1437 1
a1437 9
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

our_year=`echo $timestamp | sed 's,-.*,,'`
thisyear=`date +%Y`
# shellcheck disable=SC2003
script_age=`expr "$thisyear" - "$our_year"`
if test "$script_age" -lt 3 ; then
   cat >&2 <<EOF
d1460 4
a1463 4
UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
a1464 1
fi
d1469 1
a1469 1
# eval: (add-hook 'before-save-hook 'time-stamp nil t)
d1471 1
a1471 1
# time-stamp-format: "%Y-%02m-%02d"
@


1.1.1.1.4.1
log
@file config.guess was added on branch phil-wifi on 2019-06-10 22:05:06 +0000
@
text
@d1 1473
@


1.1.1.1.4.2
log
@Sync with HEAD
@
text
@a0 1473
#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2017 Free Software Foundation, Inc.

timestamp='2017-05-27'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
#
# Please send patches to <config-patches@@gnu.org>.


me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION]

Output the configuration name of the system \`$me' is run on.

Operation modes:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@@gnu.org>."

version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2017 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try \`$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done

if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi

trap 'exit 1' 1 2 15

# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.

# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.

# Portable tmp directory creation inspired by the Autoconf team.

set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	if test x"$CC_FOR_BUILD" = x ; then
	  CC_FOR_BUILD=no_compiler_found ;
	fi
	;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'

# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
	PATH=$PATH:/.attbin ; export PATH
fi

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

case "${UNAME_SYSTEM}" in
Linux|GNU|GNU/*)
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu

	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#else
	LIBC=gnu
	#endif
	EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	;;
esac

# Note: order is significant - the case branches are not exclusive.

case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
	# switched to ELF, *-*-netbsd* would select the old
	# object file format.  This provides both forward
	# compatibility and a consistent mechanism for selecting the
	# object file format.
	#
	# Note: NetBSD doesn't particularly care about the vendor
	# portion of the name.  We always set it to "unknown".
	sysctl="sysctl -n hw.machine_arch"
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
	case "${UNAME_MACHINE_ARCH}" in
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-unknown ;;
	    sh5el) machine=sh5le-unknown ;;
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
	esac
	# The Operating System including object format, if it has switched
	# to ELF recently (or will in the future) and ABI.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		eval $set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ELF__
		then
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
		    # Return netbsd for either.  FIX?
		    os=netbsd
		else
		    os=netbsdelf
		fi
		;;
	    *)
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
		;;
	esac
	# The OS release
	# Debian GNU/NetBSD machines have a different userland, and
	# thus, need a distinct triplet. However, they do not need
	# kernel version information, so it can be replaced with a
	# suitable tag, in the style of linux-gnu.
	case "${UNAME_VERSION}" in
	    Debian*)
		release='-gnu'
		;;
	    *)
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
		;;
	esac
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	echo "${machine}-${os}${release}${abi}"
	exit ;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
    *:OpenBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
    *:ekkoBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
    *:SolidBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
    macppc:MirBSD:*:*)
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:MirBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
    alpha:OSF1:*:*)
	case $UNAME_RELEASE in
	*4.0)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		;;
	*5.*)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
	# According to Compaq, /usr/sbin/psrinfo has been available on
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
	# covers most systems running today.  This code pipes the CPU
	# types through head -n 1, so we only detect the type of CPU 0.
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
	case "$ALPHA_CPU_TYPE" in
	    "EV4 (21064)")
		UNAME_MACHINE=alpha ;;
	    "EV4.5 (21064)")
		UNAME_MACHINE=alpha ;;
	    "LCA4 (21066/21068)")
		UNAME_MACHINE=alpha ;;
	    "EV5 (21164)")
		UNAME_MACHINE=alphaev5 ;;
	    "EV5.6 (21164A)")
		UNAME_MACHINE=alphaev56 ;;
	    "EV5.6 (21164PC)")
		UNAME_MACHINE=alphapca56 ;;
	    "EV5.7 (21164PC)")
		UNAME_MACHINE=alphapca57 ;;
	    "EV6 (21264)")
		UNAME_MACHINE=alphaev6 ;;
	    "EV6.7 (21264A)")
		UNAME_MACHINE=alphaev67 ;;
	    "EV6.8CB (21264C)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8AL (21264B)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8CX (21264D)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.9A (21264/EV69A)")
		UNAME_MACHINE=alphaev69 ;;
	    "EV7 (21364)")
		UNAME_MACHINE=alphaev7 ;;
	    "EV7.9 (21364A)")
		UNAME_MACHINE=alphaev79 ;;
	esac
	# A Pn.n version is a patched version.
	# A Vn.n version is a released version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
    Alpha\ *:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# Should we change UNAME_MACHINE based on the output of uname instead
	# of the specific Alpha model?
	echo alpha-pc-interix
	exit ;;
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	exit ;;
    Amiga*:UNIX_System_V:4.0:*)
	echo m68k-unknown-sysv4
	exit ;;
    *:[Aa]miga[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-amigaos
	exit ;;
    *:[Mm]orph[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-morphos
	exit ;;
    *:OS/390:*:*)
	echo i370-ibm-openedition
	exit ;;
    *:z/VM:*:*)
	echo s390-ibm-zvmoe
	exit ;;
    *:OS400:*:*)
	echo powerpc-ibm-os400
	exit ;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	echo arm-acorn-riscix${UNAME_RELEASE}
	exit ;;
    arm*:riscos:*:*|arm*:RISCOS:*:*)
	echo arm-unknown-riscos
	exit ;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	echo hppa1.1-hitachi-hiuxmpp
	exit ;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
	else
		echo pyramid-pyramid-bsd
	fi
	exit ;;
    NILE*:*:*:dcosx)
	echo pyramid-pyramid-svr4
	exit ;;
    DRS?6000:unix:4.0:6*)
	echo sparc-icl-nx6
	exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
	case `/usr/bin/uname -p` in
	    sparc) echo sparc-icl-nx7; exit ;;
	esac ;;
    s390x:SunOS:*:*)
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4H:SunOS:5.*:*)
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:6*:*)
	# According to config.sub, this is the proper way to canonicalize
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
	# it's likely to be more like Solaris than SunOS4.
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:*:*)
	case "`/usr/bin/arch -k`" in
	    Series*|S4*)
		UNAME_RELEASE=`uname -v`
		;;
	esac
	# Japanese Language versions have a version number like `4.1.3-JL'.
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
	exit ;;
    sun3*:SunOS:*:*)
	echo m68k-sun-sunos${UNAME_RELEASE}
	exit ;;
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
	case "`/bin/arch`" in
	    sun3)
		echo m68k-sun-sunos${UNAME_RELEASE}
		;;
	    sun4)
		echo sparc-sun-sunos${UNAME_RELEASE}
		;;
	esac
	exit ;;
    aushp:SunOS:*:*)
	echo sparc-auspex-sunos${UNAME_RELEASE}
	exit ;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
    m68k:machten:*:*)
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
    powerpc:machten:*:*)
	echo powerpc-apple-machten${UNAME_RELEASE}
	exit ;;
    RISC*:Mach:*:*)
	echo mips-dec-mach_bsd4.3
	exit ;;
    RISC*:ULTRIX:*:*)
	echo mips-dec-ultrix${UNAME_RELEASE}
	exit ;;
    VAX*:ULTRIX*:*:*)
	echo vax-dec-ultrix${UNAME_RELEASE}
	exit ;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
	echo clipper-intergraph-clix${UNAME_RELEASE}
	exit ;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
	int main (int argc, char *argv[]) {
#else
	int main (argc, argv) int argc; char *argv[]; {
#endif
	#if defined (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_SVR4)
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
	#endif
	#endif
	  exit (-1);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
	    { echo "$SYSTEM_NAME"; exit; }
	echo mips-mips-riscos${UNAME_RELEASE}
	exit ;;
    Motorola:PowerMAX_OS:*:*)
	echo powerpc-motorola-powermax
	exit ;;
    Motorola:*:4.3:PL8-*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:Power_UNIX:*:*)
	echo powerpc-harris-powerunix
	exit ;;
    m88k:CX/UX:7*:*)
	echo m88k-harris-cxux7
	exit ;;
    m88k:*:4*:R4*)
	echo m88k-motorola-sysv4
	exit ;;
    m88k:*:3*:R3*)
	echo m88k-motorola-sysv3
	exit ;;
    AViiON:dgux:*:*)
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
	then
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
	    then
		echo m88k-dg-dgux${UNAME_RELEASE}
	    else
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
	    fi
	else
	    echo i586-dg-dgux${UNAME_RELEASE}
	fi
	exit ;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	echo m88k-dolphin-sysv3
	exit ;;
    M88*:*:R3*:*)
	# Delta 88k system running SVR3
	echo m88k-motorola-sysv3
	exit ;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
	echo m88k-tektronix-sysv3
	exit ;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
	echo m68k-tektronix-bsd
	exit ;;
    *:IRIX*:*:*)
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
	exit ;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
	echo i386-ibm-aix
	exit ;;
    ia64:AIX:*:*)
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
		#include <sys/systemcfg.h>

		main()
			{
			if (!__power_pc())
				exit(1);
			puts("powerpc-ibm-aix3.2.5");
			exit(0);
			}
EOF
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
		then
			echo "$SYSTEM_NAME"
		else
			echo rs6000-ibm-aix3.2.5
		fi
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		echo rs6000-ibm-aix3.2.4
	else
		echo rs6000-ibm-aix3.2
	fi
	exit ;;
    *:AIX:*:[4567])
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
		IBM_ARCH=rs6000
	else
		IBM_ARCH=powerpc
	fi
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:*:*)
	echo rs6000-ibm-aix
	exit ;;
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
	echo romp-ibm-bsd4.4
	exit ;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	exit ;;                             # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
	echo rs6000-bull-bosx
	exit ;;
    DPX/2?00:B.O.S.:*:*)
	echo m68k-bull-sysv3
	exit ;;
    9000/[34]??:4.3bsd:1.*:*)
	echo m68k-hp-bsd
	exit ;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	echo m68k-hp-bsd4.4
	exit ;;
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
	    9000/[678][0-9][0-9])
		if [ -x /usr/bin/getconf ]; then
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case "${sc_cpu_version}" in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case "${sc_kernel_bits}" in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
		fi
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
EOF
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
		    test -z "$HP_ARCH" && HP_ARCH=hppa
		fi ;;
	esac
	if [ ${HP_ARCH} = hppa2.0w ]
	then
	    eval $set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
	    then
		HP_ARCH=hppa2.0w
	    else
		HP_ARCH=hppa64
	    fi
	fi
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	exit ;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
	exit ;;
    3050*:HI-UX:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <unistd.h>
	int
	main ()
	{
	  long cpu = sysconf (_SC_CPU_VERSION);
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
	     results, however.  */
	  if (CPU_IS_PA_RISC (cpu))
	    {
	      switch (cpu)
		{
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
		}
	    }
	  else if (CPU_IS_HP_MC68K (cpu))
	    puts ("m68k-hitachi-hiuxwe2");
	  else puts ("unknown-hitachi-hiuxwe2");
	  exit (0);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
		{ echo "$SYSTEM_NAME"; exit; }
	echo unknown-hitachi-hiuxwe2
	exit ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
	echo hppa1.1-hp-bsd
	exit ;;
    9000/8??:4.3bsd:*:*)
	echo hppa1.0-hp-bsd
	exit ;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	echo hppa1.0-hp-mpeix
	exit ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
	echo hppa1.1-hp-osf
	exit ;;
    hp8??:OSF1:*:*)
	echo hppa1.0-hp-osf
	exit ;;
    i*86:OSF1:*:*)
	if [ -x /usr/sbin/sysversion ] ; then
	    echo ${UNAME_MACHINE}-unknown-osf1mk
	else
	    echo ${UNAME_MACHINE}-unknown-osf1
	fi
	exit ;;
    parisc*:Lites*:*:*)
	echo hppa1.1-hp-lites
	exit ;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
	echo c1-convex-bsd
	exit ;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
	echo c34-convex-bsd
	exit ;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
	echo c38-convex-bsd
	exit ;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	echo c4-convex-bsd
	exit ;;
    CRAY*Y-MP:*:*:*)
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*[A-Z]90:*:*:*)
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*TS:*:*:*)
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*T3E:*:*:*)
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*SV1:*:*:*)
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    *:UNICOS/mp:*:*)
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    5000:UNIX_System_V:4.*:*)
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
	exit ;;
    sparc*:BSD/OS:*:*)
	echo sparc-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:BSD/OS:*:*)
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:FreeBSD:*:*)
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
	    amd64)
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
	esac
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    i*:CYGWIN*:*)
	echo ${UNAME_MACHINE}-pc-cygwin
	exit ;;
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
    *:MINGW*:*)
	echo ${UNAME_MACHINE}-pc-mingw32
	exit ;;
    *:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
    i*:PW*:*)
	echo ${UNAME_MACHINE}-pc-pw32
	exit ;;
    *:Interix*:*)
	case ${UNAME_MACHINE} in
	    x86)
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
	    authenticamd | genuineintel | EM64T)
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
	    IA64)
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
	esac ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
	echo i${UNAME_MACHINE}-pc-mks
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
	# UNAME_MACHINE based on the output of uname instead of i386?
	echo i586-pc-interix
	exit ;;
    i*:UWIN*:*)
	echo ${UNAME_MACHINE}-pc-uwin
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-unknown-cygwin
	exit ;;
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
    prep*:SunOS:5.*:*)
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    *:GNU:*:*)
	# the GNU system
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	exit ;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
	exit ;;
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
	exit ;;
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
	esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arm*:Linux:*:*)
	eval $set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	else
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
	    fi
	fi
	exit ;;
    avr32*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    cris:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    crisv32:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    frv:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m32r*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    mips:Linux:*:* | mips64:Linux:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#undef CPU
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=${UNAME_MACHINE}el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=${UNAME_MACHINE}
	#else
	CPU=
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
	;;
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    openrisc*:Linux:*:*)
	echo or1k-unknown-linux-${LIBC}
	exit ;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    padre:Linux:*:*)
	echo sparc-unknown-linux-${LIBC}
	exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-${LIBC}
	exit ;;
    parisc:Linux:*:* | hppa:Linux:*:*)
	# Look for CPU level
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
	esac
	exit ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-${LIBC}
	exit ;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
	exit ;;
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    s390:Linux:*:* | s390x:Linux:*:*)
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
	exit ;;
    sh64*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sh*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    vax:Linux:*:*)
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
	exit ;;
    x86_64:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    xtensa*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:DYNIX/ptx:4*:*)
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
	# earlier versions are messed up and put the nodename in both
	# sysname and nodename.
	echo i386-sequent-sysv4
	exit ;;
    i*86:UNIX_SV:4.2MP:2.*)
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
	# I just have to hope.  -- rms.
	# Use sysv4.2uw... so that sysv4* matches it.
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	exit ;;
    i*86:OS/2:*:*)
	# If we were able to find `uname', then EMX Unix compatibility
	# is probably installed.
	echo ${UNAME_MACHINE}-pc-os2-emx
	exit ;;
    i*86:XTS-300:*:STOP)
	echo ${UNAME_MACHINE}-unknown-stop
	exit ;;
    i*86:atheos:*:*)
	echo ${UNAME_MACHINE}-unknown-atheos
	exit ;;
    i*86:syllable:*:*)
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
	echo i386-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    i*86:*DOS:*:*)
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
	exit ;;
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
	else
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
	fi
	exit ;;
    i*86:*:5:[678]*)
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
	case `/bin/uname -X | grep "^Machine"` in
	    *486*)	     UNAME_MACHINE=i486 ;;
	    *Pentium)	     UNAME_MACHINE=i586 ;;
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
	esac
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	exit ;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
	else
		echo ${UNAME_MACHINE}-pc-sysv32
	fi
	exit ;;
    pc:*:*:*)
	# Left here for compatibility:
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configure will decide that
	# this is a cross-build.
	echo i586-pc-msdosdjgpp
	exit ;;
    Intel:Mach:3*:*)
	echo i386-pc-mach3
	exit ;;
    paragon:*:*:*)
	echo i860-intel-osf1
	exit ;;
    i860:*:4.*:*) # i860-SVR4
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
	else # Add other i860-SVR4 vendors below as they are discovered.
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
	fi
	exit ;;
    mini*:CTIX:SYS*5:*)
	# "miniframe"
	echo m68010-convergent-sysv
	exit ;;
    mc68k:UNIX:SYSTEM5:3.51m)
	echo m68k-convergent-sysv
	exit ;;
    M680?0:D-NIX:5.3:*)
	echo m68k-diab-dnix
	exit ;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
	OS_REL=''
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    mc68030:UNIX_System_V:4.*:*)
	echo m68k-atari-sysv4
	exit ;;
    TSUNAMI:LynxOS:2.*:*)
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    rs6000:LynxOS:2.*:*)
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    SM[BE]S:UNIX_SV:*:*)
	echo mips-dde-sysv${UNAME_RELEASE}
	exit ;;
    RM*:ReliantUNIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    RM*:SINIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    *:SINIX-*:*:*)
	if uname -p 2>/dev/null >/dev/null ; then
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
		echo ${UNAME_MACHINE}-sni-sysv4
	else
		echo ns32k-sni-sysv
	fi
	exit ;;
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
    *:UNIX_System_V:4*:FTX*)
	# From Gerald Hewes <hewes@@openmarket.com>.
	# How about differentiating between stratus architectures? -djm
	echo hppa1.1-stratus-sysv4
	exit ;;
    *:*:*:FTX*)
	# From seanf@@swdc.stratus.com.
	echo i860-stratus-sysv4
	exit ;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
    *:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo hppa1.1-stratus-vos
	exit ;;
    mc68*:A/UX:*:*)
	echo m68k-apple-aux${UNAME_RELEASE}
	exit ;;
    news*:NEWS-OS:6*:*)
	echo mips-sony-newsos6
	exit ;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if [ -d /usr/nec ]; then
		echo mips-nec-sysv${UNAME_RELEASE}
	else
		echo mips-unknown-sysv${UNAME_RELEASE}
	fi
	exit ;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	echo powerpc-be-beos
	exit ;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	echo powerpc-apple-beos
	exit ;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	echo i586-pc-beos
	exit ;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	echo i586-pc-haiku
	exit ;;
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
    SX-4:SUPER-UX:*:*)
	echo sx4-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-5:SUPER-UX:*:*)
	echo sx5-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-6:SUPER-UX:*:*)
	echo sx6-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-7:SUPER-UX:*:*)
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8:SUPER-UX:*:*)
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8R:SUPER-UX:*:*)
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
    Power*:Rhapsody:*:*)
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Rhapsody:*:*)
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Darwin:*:*)
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
	fi
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
	exit ;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
	UNAME_PROCESSOR=`uname -p`
	if test "$UNAME_PROCESSOR" = x86; then
		UNAME_PROCESSOR=i386
		UNAME_MACHINE=pc
	fi
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
	exit ;;
    *:QNX:*:4*)
	echo i386-pc-qnx
	exit ;;
    NEO-*:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSR-*:NONSTOP_KERNEL:*:*)
	echo nsr-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSX-*:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
    *:NonStop-UX:*:*)
	echo mips-compaq-nonstopux
	exit ;;
    BS2000:POSIX*:*:*)
	echo bs2000-siemens-sysv
	exit ;;
    DS/*:UNIX_System_V:*:*)
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
	exit ;;
    *:Plan9:*:*)
	# "uname -m" is not consistent, so use $cputype instead. 386
	# is converted to i386 for consistency with other x86
	# operating systems.
	if test "$cputype" = 386; then
	    UNAME_MACHINE=i386
	else
	    UNAME_MACHINE="$cputype"
	fi
	echo ${UNAME_MACHINE}-unknown-plan9
	exit ;;
    *:TOPS-10:*:*)
	echo pdp10-unknown-tops10
	exit ;;
    *:TENEX:*:*)
	echo pdp10-unknown-tenex
	exit ;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	echo pdp10-dec-tops20
	exit ;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	echo pdp10-xkl-tops20
	exit ;;
    *:TOPS-20:*:*)
	echo pdp10-unknown-tops20
	exit ;;
    *:ITS:*:*)
	echo pdp10-unknown-its
	exit ;;
    SEI:*:*:SEIUX)
	echo mips-sei-seiux${UNAME_RELEASE}
	exit ;;
    *:DragonFly:*:*)
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    *:*VMS:*:*)
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
	esac ;;
    *:XENIX:*:SysV)
	echo i386-pc-xenix
	exit ;;
    i*86:skyos:*:*)
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
	exit ;;
    i*86:rdos:*:*)
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
esac

cat >&2 <<EOF
$0: unable to guess system type

This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.

config.guess timestamp = $timestamp

uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`

hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`

UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF

exit 1

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


1.1.1.1.2.1
log
@file config.guess was added on branch pgoyette-compat on 2018-09-30 01:45:30 +0000
@
text
@d1 1473
@


1.1.1.1.2.2
log
@Ssync with HEAD
@
text
@a0 1473
#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2017 Free Software Foundation, Inc.

timestamp='2017-05-27'

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>.
#
# As a special exception to the GNU General Public License, if you
# distribute this file as part of a program that contains a
# configuration script generated by Autoconf, you may include it under
# the same distribution terms that you use for the rest of that
# program.  This Exception is an additional permission under section 7
# of the GNU General Public License, version 3 ("GPLv3").
#
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
#
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
#
# Please send patches to <config-patches@@gnu.org>.


me=`echo "$0" | sed -e 's,.*/,,'`

usage="\
Usage: $0 [OPTION]

Output the configuration name of the system \`$me' is run on.

Operation modes:
  -h, --help         print this help, then exit
  -t, --time-stamp   print date of last modification, then exit
  -v, --version      print version number, then exit

Report bugs and patches to <config-patches@@gnu.org>."

version="\
GNU config.guess ($timestamp)

Originally written by Per Bothner.
Copyright 1992-2017 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."

help="
Try \`$me --help' for more information."

# Parse command line
while test $# -gt 0 ; do
  case $1 in
    --time-stamp | --time* | -t )
       echo "$timestamp" ; exit ;;
    --version | -v )
       echo "$version" ; exit ;;
    --help | --h* | -h )
       echo "$usage"; exit ;;
    -- )     # Stop option processing
       shift; break ;;
    - )	# Use stdin as input.
       break ;;
    -* )
       echo "$me: invalid option $1$help" >&2
       exit 1 ;;
    * )
       break ;;
  esac
done

if test $# != 0; then
  echo "$me: too many arguments$help" >&2
  exit 1
fi

trap 'exit 1' 1 2 15

# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
# compiler to aid in system detection is discouraged as it requires
# temporary files to be created and, as you can see below, it is a
# headache to deal with in a portable fashion.

# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
# use `HOST_CC' if defined, but it is deprecated.

# Portable tmp directory creation inspired by the Autoconf team.

set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
: ${TMPDIR=/tmp} ;
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
dummy=$tmp/dummy ;
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
case $CC_FOR_BUILD,$HOST_CC,$CC in
 ,,)    echo "int x;" > $dummy.c ;
	for c in cc gcc c89 c99 ; do
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
	     CC_FOR_BUILD="$c"; break ;
	  fi ;
	done ;
	if test x"$CC_FOR_BUILD" = x ; then
	  CC_FOR_BUILD=no_compiler_found ;
	fi
	;;
 ,,*)   CC_FOR_BUILD=$CC ;;
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
esac ; set_cc_for_build= ;'

# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
# (ghazi@@noc.rutgers.edu 1994-08-24)
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
	PATH=$PATH:/.attbin ; export PATH
fi

UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown

case "${UNAME_SYSTEM}" in
Linux|GNU|GNU/*)
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu

	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#else
	LIBC=gnu
	#endif
	EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
	;;
esac

# Note: order is significant - the case branches are not exclusive.

case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    *:NetBSD:*:*)
	# NetBSD (nbsd) targets should (where applicable) match one or
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
	# switched to ELF, *-*-netbsd* would select the old
	# object file format.  This provides both forward
	# compatibility and a consistent mechanism for selecting the
	# object file format.
	#
	# Note: NetBSD doesn't particularly care about the vendor
	# portion of the name.  We always set it to "unknown".
	sysctl="sysctl -n hw.machine_arch"
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
	case "${UNAME_MACHINE_ARCH}" in
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
	    sh3el) machine=shl-unknown ;;
	    sh3eb) machine=sh-unknown ;;
	    sh5el) machine=sh5le-unknown ;;
	    earmv*)
		arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
		endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
		machine=${arch}${endian}-unknown
		;;
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
	esac
	# The Operating System including object format, if it has switched
	# to ELF recently (or will in the future) and ABI.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
		eval $set_cc_for_build
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ELF__
		then
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
		    # Return netbsd for either.  FIX?
		    os=netbsd
		else
		    os=netbsdelf
		fi
		;;
	    *)
		os=netbsd
		;;
	esac
	# Determine ABI tags.
	case "${UNAME_MACHINE_ARCH}" in
	    earm*)
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
		;;
	esac
	# The OS release
	# Debian GNU/NetBSD machines have a different userland, and
	# thus, need a distinct triplet. However, they do not need
	# kernel version information, so it can be replaced with a
	# suitable tag, in the style of linux-gnu.
	case "${UNAME_VERSION}" in
	    Debian*)
		release='-gnu'
		;;
	    *)
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
		;;
	esac
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
	# contains redundant information, the shorter form:
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
	echo "${machine}-${os}${release}${abi}"
	exit ;;
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
    *:OpenBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
	exit ;;
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
    *:ekkoBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
	exit ;;
    *:SolidBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
	exit ;;
    macppc:MirBSD:*:*)
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:MirBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
	exit ;;
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
    alpha:OSF1:*:*)
	case $UNAME_RELEASE in
	*4.0)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
		;;
	*5.*)
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
		;;
	esac
	# According to Compaq, /usr/sbin/psrinfo has been available on
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
	# covers most systems running today.  This code pipes the CPU
	# types through head -n 1, so we only detect the type of CPU 0.
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
	case "$ALPHA_CPU_TYPE" in
	    "EV4 (21064)")
		UNAME_MACHINE=alpha ;;
	    "EV4.5 (21064)")
		UNAME_MACHINE=alpha ;;
	    "LCA4 (21066/21068)")
		UNAME_MACHINE=alpha ;;
	    "EV5 (21164)")
		UNAME_MACHINE=alphaev5 ;;
	    "EV5.6 (21164A)")
		UNAME_MACHINE=alphaev56 ;;
	    "EV5.6 (21164PC)")
		UNAME_MACHINE=alphapca56 ;;
	    "EV5.7 (21164PC)")
		UNAME_MACHINE=alphapca57 ;;
	    "EV6 (21264)")
		UNAME_MACHINE=alphaev6 ;;
	    "EV6.7 (21264A)")
		UNAME_MACHINE=alphaev67 ;;
	    "EV6.8CB (21264C)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8AL (21264B)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.8CX (21264D)")
		UNAME_MACHINE=alphaev68 ;;
	    "EV6.9A (21264/EV69A)")
		UNAME_MACHINE=alphaev69 ;;
	    "EV7 (21364)")
		UNAME_MACHINE=alphaev7 ;;
	    "EV7.9 (21364A)")
		UNAME_MACHINE=alphaev79 ;;
	esac
	# A Pn.n version is a patched version.
	# A Vn.n version is a released version.
	# A Tn.n version is a released field test version.
	# A Xn.n version is an unreleased experimental baselevel.
	# 1.2 uses "1.2" for uname -r.
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
    Alpha\ *:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# Should we change UNAME_MACHINE based on the output of uname instead
	# of the specific Alpha model?
	echo alpha-pc-interix
	exit ;;
    21064:Windows_NT:50:3)
	echo alpha-dec-winnt3.5
	exit ;;
    Amiga*:UNIX_System_V:4.0:*)
	echo m68k-unknown-sysv4
	exit ;;
    *:[Aa]miga[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-amigaos
	exit ;;
    *:[Mm]orph[Oo][Ss]:*:*)
	echo ${UNAME_MACHINE}-unknown-morphos
	exit ;;
    *:OS/390:*:*)
	echo i370-ibm-openedition
	exit ;;
    *:z/VM:*:*)
	echo s390-ibm-zvmoe
	exit ;;
    *:OS400:*:*)
	echo powerpc-ibm-os400
	exit ;;
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
	echo arm-acorn-riscix${UNAME_RELEASE}
	exit ;;
    arm*:riscos:*:*|arm*:RISCOS:*:*)
	echo arm-unknown-riscos
	exit ;;
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
	echo hppa1.1-hitachi-hiuxmpp
	exit ;;
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
	# akee@@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
		echo pyramid-pyramid-sysv3
	else
		echo pyramid-pyramid-bsd
	fi
	exit ;;
    NILE*:*:*:dcosx)
	echo pyramid-pyramid-svr4
	exit ;;
    DRS?6000:unix:4.0:6*)
	echo sparc-icl-nx6
	exit ;;
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
	case `/usr/bin/uname -p` in
	    sparc) echo sparc-icl-nx7; exit ;;
	esac ;;
    s390x:SunOS:*:*)
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4H:SunOS:5.*:*)
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
	echo i386-pc-auroraux${UNAME_RELEASE}
	exit ;;
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
	eval $set_cc_for_build
	SUN_ARCH=i386
	# If there is a compiler, see if it is configured for 64-bit objects.
	# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
	# This test works for both compilers.
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
	    if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=x86_64
	    fi
	fi
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:6*:*)
	# According to config.sub, this is the proper way to canonicalize
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
	# it's likely to be more like Solaris than SunOS4.
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    sun4*:SunOS:*:*)
	case "`/usr/bin/arch -k`" in
	    Series*|S4*)
		UNAME_RELEASE=`uname -v`
		;;
	esac
	# Japanese Language versions have a version number like `4.1.3-JL'.
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
	exit ;;
    sun3*:SunOS:*:*)
	echo m68k-sun-sunos${UNAME_RELEASE}
	exit ;;
    sun*:*:4.2BSD:*)
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
	case "`/bin/arch`" in
	    sun3)
		echo m68k-sun-sunos${UNAME_RELEASE}
		;;
	    sun4)
		echo sparc-sun-sunos${UNAME_RELEASE}
		;;
	esac
	exit ;;
    aushp:SunOS:*:*)
	echo sparc-auspex-sunos${UNAME_RELEASE}
	exit ;;
    # The situation for MiNT is a little confusing.  The machine name
    # can be virtually everything (everything which is not
    # "atarist" or "atariste" at least should have a processor
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    # to the lowercase version "mint" (or "freemint").  Finally
    # the system name "TOS" denotes a system which is actually not
    # MiNT.  But MiNT is downward compatible to TOS, so this should
    # be no problem.
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
	echo m68k-atari-mint${UNAME_RELEASE}
	exit ;;
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
    m68k:machten:*:*)
	echo m68k-apple-machten${UNAME_RELEASE}
	exit ;;
    powerpc:machten:*:*)
	echo powerpc-apple-machten${UNAME_RELEASE}
	exit ;;
    RISC*:Mach:*:*)
	echo mips-dec-mach_bsd4.3
	exit ;;
    RISC*:ULTRIX:*:*)
	echo mips-dec-ultrix${UNAME_RELEASE}
	exit ;;
    VAX*:ULTRIX*:*:*)
	echo vax-dec-ultrix${UNAME_RELEASE}
	exit ;;
    2020:CLIX:*:* | 2430:CLIX:*:*)
	echo clipper-intergraph-clix${UNAME_RELEASE}
	exit ;;
    mips:*:*:UMIPS | mips:*:*:RISCos)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
#ifdef __cplusplus
#include <stdio.h>  /* for printf() prototype */
	int main (int argc, char *argv[]) {
#else
	int main (argc, argv) int argc; char *argv[]; {
#endif
	#if defined (host_mips) && defined (MIPSEB)
	#if defined (SYSTYPE_SYSV)
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_SVR4)
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
	#endif
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
	#endif
	#endif
	  exit (-1);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
	    { echo "$SYSTEM_NAME"; exit; }
	echo mips-mips-riscos${UNAME_RELEASE}
	exit ;;
    Motorola:PowerMAX_OS:*:*)
	echo powerpc-motorola-powermax
	exit ;;
    Motorola:*:4.3:PL8-*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
	echo powerpc-harris-powermax
	exit ;;
    Night_Hawk:Power_UNIX:*:*)
	echo powerpc-harris-powerunix
	exit ;;
    m88k:CX/UX:7*:*)
	echo m88k-harris-cxux7
	exit ;;
    m88k:*:4*:R4*)
	echo m88k-motorola-sysv4
	exit ;;
    m88k:*:3*:R3*)
	echo m88k-motorola-sysv3
	exit ;;
    AViiON:dgux:*:*)
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
	then
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
	    then
		echo m88k-dg-dgux${UNAME_RELEASE}
	    else
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
	    fi
	else
	    echo i586-dg-dgux${UNAME_RELEASE}
	fi
	exit ;;
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
	echo m88k-dolphin-sysv3
	exit ;;
    M88*:*:R3*:*)
	# Delta 88k system running SVR3
	echo m88k-motorola-sysv3
	exit ;;
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
	echo m88k-tektronix-sysv3
	exit ;;
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
	echo m68k-tektronix-bsd
	exit ;;
    *:IRIX*:*:*)
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
	exit ;;
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    i*86:AIX:*:*)
	echo i386-ibm-aix
	exit ;;
    ia64:AIX:*:*)
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:2:3)
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
		#include <sys/systemcfg.h>

		main()
			{
			if (!__power_pc())
				exit(1);
			puts("powerpc-ibm-aix3.2.5");
			exit(0);
			}
EOF
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
		then
			echo "$SYSTEM_NAME"
		else
			echo rs6000-ibm-aix3.2.5
		fi
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
		echo rs6000-ibm-aix3.2.4
	else
		echo rs6000-ibm-aix3.2
	fi
	exit ;;
    *:AIX:*:[4567])
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
		IBM_ARCH=rs6000
	else
		IBM_ARCH=powerpc
	fi
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
	else
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
	fi
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
	exit ;;
    *:AIX:*:*)
	echo rs6000-ibm-aix
	exit ;;
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
	echo romp-ibm-bsd4.4
	exit ;;
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
	exit ;;                             # report: romp-ibm BSD 4.3
    *:BOSX:*:*)
	echo rs6000-bull-bosx
	exit ;;
    DPX/2?00:B.O.S.:*:*)
	echo m68k-bull-sysv3
	exit ;;
    9000/[34]??:4.3bsd:1.*:*)
	echo m68k-hp-bsd
	exit ;;
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
	echo m68k-hp-bsd4.4
	exit ;;
    9000/[34678]??:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
	    9000/[678][0-9][0-9])
		if [ -x /usr/bin/getconf ]; then
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
		    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
		    case "${sc_cpu_version}" in
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
		      532)                      # CPU_PA_RISC2_0
			case "${sc_kernel_bits}" in
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
			esac ;;
		    esac
		fi
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>

		int main ()
		{
		#if defined(_SC_KERNEL_BITS)
		    long bits = sysconf(_SC_KERNEL_BITS);
		#endif
		    long cpu  = sysconf (_SC_CPU_VERSION);

		    switch (cpu)
			{
			case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
			case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
			case CPU_PA_RISC2_0:
		#if defined(_SC_KERNEL_BITS)
			    switch (bits)
				{
				case 64: puts ("hppa2.0w"); break;
				case 32: puts ("hppa2.0n"); break;
				default: puts ("hppa2.0"); break;
				} break;
		#else  /* !defined(_SC_KERNEL_BITS) */
			    puts ("hppa2.0"); break;
		#endif
			default: puts ("hppa1.0"); break;
			}
		    exit (0);
		}
EOF
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
		    test -z "$HP_ARCH" && HP_ARCH=hppa
		fi ;;
	esac
	if [ ${HP_ARCH} = hppa2.0w ]
	then
	    eval $set_cc_for_build

	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
	    # generating 64-bit code.  GNU and HP use different nomenclature:
	    #
	    # $ CC_FOR_BUILD=cc ./config.guess
	    # => hppa2.0w-hp-hpux11.23
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
	    # => hppa64-hp-hpux11.23

	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
		grep -q __LP64__
	    then
		HP_ARCH=hppa2.0w
	    else
		HP_ARCH=hppa64
	    fi
	fi
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
	exit ;;
    ia64:HP-UX:*:*)
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
	exit ;;
    3050*:HI-UX:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#include <unistd.h>
	int
	main ()
	{
	  long cpu = sysconf (_SC_CPU_VERSION);
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
	     results, however.  */
	  if (CPU_IS_PA_RISC (cpu))
	    {
	      switch (cpu)
		{
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
		}
	    }
	  else if (CPU_IS_HP_MC68K (cpu))
	    puts ("m68k-hitachi-hiuxwe2");
	  else puts ("unknown-hitachi-hiuxwe2");
	  exit (0);
	}
EOF
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
		{ echo "$SYSTEM_NAME"; exit; }
	echo unknown-hitachi-hiuxwe2
	exit ;;
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
	echo hppa1.1-hp-bsd
	exit ;;
    9000/8??:4.3bsd:*:*)
	echo hppa1.0-hp-bsd
	exit ;;
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
	echo hppa1.0-hp-mpeix
	exit ;;
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
	echo hppa1.1-hp-osf
	exit ;;
    hp8??:OSF1:*:*)
	echo hppa1.0-hp-osf
	exit ;;
    i*86:OSF1:*:*)
	if [ -x /usr/sbin/sysversion ] ; then
	    echo ${UNAME_MACHINE}-unknown-osf1mk
	else
	    echo ${UNAME_MACHINE}-unknown-osf1
	fi
	exit ;;
    parisc*:Lites*:*:*)
	echo hppa1.1-hp-lites
	exit ;;
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
	echo c1-convex-bsd
	exit ;;
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
	echo c34-convex-bsd
	exit ;;
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
	echo c38-convex-bsd
	exit ;;
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
	echo c4-convex-bsd
	exit ;;
    CRAY*Y-MP:*:*:*)
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*[A-Z]90:*:*:*)
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
	      -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*TS:*:*:*)
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*T3E:*:*:*)
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    CRAY*SV1:*:*:*)
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    *:UNICOS/mp:*:*)
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
	exit ;;
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
	echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    5000:UNIX_System_V:4.*:*)
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
	echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
	exit ;;
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
	exit ;;
    sparc*:BSD/OS:*:*)
	echo sparc-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:BSD/OS:*:*)
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
	exit ;;
    *:FreeBSD:*:*)
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
	    amd64)
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
	esac
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    i*:CYGWIN*:*)
	echo ${UNAME_MACHINE}-pc-cygwin
	exit ;;
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
    *:MINGW*:*)
	echo ${UNAME_MACHINE}-pc-mingw32
	exit ;;
    *:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
    i*:PW*:*)
	echo ${UNAME_MACHINE}-pc-pw32
	exit ;;
    *:Interix*:*)
	case ${UNAME_MACHINE} in
	    x86)
		echo i586-pc-interix${UNAME_RELEASE}
		exit ;;
	    authenticamd | genuineintel | EM64T)
		echo x86_64-unknown-interix${UNAME_RELEASE}
		exit ;;
	    IA64)
		echo ia64-unknown-interix${UNAME_RELEASE}
		exit ;;
	esac ;;
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
	echo i${UNAME_MACHINE}-pc-mks
	exit ;;
    8664:Windows_NT:*)
	echo x86_64-pc-mks
	exit ;;
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
	# How do we know it's Interix rather than the generic POSIX subsystem?
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
	# UNAME_MACHINE based on the output of uname instead of i386?
	echo i586-pc-interix
	exit ;;
    i*:UWIN*:*)
	echo ${UNAME_MACHINE}-pc-uwin
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-unknown-cygwin
	exit ;;
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
    prep*:SunOS:5.*:*)
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
	exit ;;
    *:GNU:*:*)
	# the GNU system
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
	exit ;;
    *:GNU/*:*:*)
	# other systems with GNU libc and userland
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
	exit ;;
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
	exit ;;
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    alpha:Linux:*:*)
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
	  EV5)   UNAME_MACHINE=alphaev5 ;;
	  EV56)  UNAME_MACHINE=alphaev56 ;;
	  PCA56) UNAME_MACHINE=alphapca56 ;;
	  PCA57) UNAME_MACHINE=alphapca56 ;;
	  EV6)   UNAME_MACHINE=alphaev6 ;;
	  EV67)  UNAME_MACHINE=alphaev67 ;;
	  EV68*) UNAME_MACHINE=alphaev68 ;;
	esac
	objdump --private-headers /bin/sh | grep -q ld.so.1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arm*:Linux:*:*)
	eval $set_cc_for_build
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
	    | grep -q __ARM_EABI__
	then
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	else
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
	    fi
	fi
	exit ;;
    avr32*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    cris:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    crisv32:Linux:*:*)
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
	exit ;;
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    frv:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    ia64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m32r*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    m68*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    mips:Linux:*:* | mips64:Linux:*:*)
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#undef CPU
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
	CPU=${UNAME_MACHINE}el
	#else
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
	CPU=${UNAME_MACHINE}
	#else
	CPU=
	#endif
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
	;;
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    openrisc*:Linux:*:*)
	echo or1k-unknown-linux-${LIBC}
	exit ;;
    or32:Linux:*:* | or1k*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    padre:Linux:*:*)
	echo sparc-unknown-linux-${LIBC}
	exit ;;
    parisc64:Linux:*:* | hppa64:Linux:*:*)
	echo hppa64-unknown-linux-${LIBC}
	exit ;;
    parisc:Linux:*:* | hppa:Linux:*:*)
	# Look for CPU level
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
	esac
	exit ;;
    ppc64:Linux:*:*)
	echo powerpc64-unknown-linux-${LIBC}
	exit ;;
    ppc:Linux:*:*)
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
	exit ;;
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    s390:Linux:*:* | s390x:Linux:*:*)
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
	exit ;;
    sh64*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sh*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    sparc:Linux:*:* | sparc64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    vax:Linux:*:*)
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
	exit ;;
    x86_64:Linux:*:*)
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
	exit ;;
    xtensa*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    i*86:DYNIX/ptx:4*:*)
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
	# earlier versions are messed up and put the nodename in both
	# sysname and nodename.
	echo i386-sequent-sysv4
	exit ;;
    i*86:UNIX_SV:4.2MP:2.*)
	# Unixware is an offshoot of SVR4, but it has its own version
	# number series starting with 2...
	# I am not positive that other SVR4 systems won't match this,
	# I just have to hope.  -- rms.
	# Use sysv4.2uw... so that sysv4* matches it.
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
	exit ;;
    i*86:OS/2:*:*)
	# If we were able to find `uname', then EMX Unix compatibility
	# is probably installed.
	echo ${UNAME_MACHINE}-pc-os2-emx
	exit ;;
    i*86:XTS-300:*:STOP)
	echo ${UNAME_MACHINE}-unknown-stop
	exit ;;
    i*86:atheos:*:*)
	echo ${UNAME_MACHINE}-unknown-atheos
	exit ;;
    i*86:syllable:*:*)
	echo ${UNAME_MACHINE}-pc-syllable
	exit ;;
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
	echo i386-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    i*86:*DOS:*:*)
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
	exit ;;
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
	else
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
	fi
	exit ;;
    i*86:*:5:[678]*)
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
	case `/bin/uname -X | grep "^Machine"` in
	    *486*)	     UNAME_MACHINE=i486 ;;
	    *Pentium)	     UNAME_MACHINE=i586 ;;
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
	esac
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
	exit ;;
    i*86:*:3.2:*)
	if test -f /usr/options/cb.name; then
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
			&& UNAME_MACHINE=i586
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
			&& UNAME_MACHINE=i686
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
			&& UNAME_MACHINE=i686
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
	else
		echo ${UNAME_MACHINE}-pc-sysv32
	fi
	exit ;;
    pc:*:*:*)
	# Left here for compatibility:
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
	# Note: whatever this is, it MUST be the same as what config.sub
	# prints for the "djgpp" host, or else GDB configure will decide that
	# this is a cross-build.
	echo i586-pc-msdosdjgpp
	exit ;;
    Intel:Mach:3*:*)
	echo i386-pc-mach3
	exit ;;
    paragon:*:*:*)
	echo i860-intel-osf1
	exit ;;
    i860:*:4.*:*) # i860-SVR4
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
	else # Add other i860-SVR4 vendors below as they are discovered.
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
	fi
	exit ;;
    mini*:CTIX:SYS*5:*)
	# "miniframe"
	echo m68010-convergent-sysv
	exit ;;
    mc68k:UNIX:SYSTEM5:3.51m)
	echo m68k-convergent-sysv
	exit ;;
    M680?0:D-NIX:5.3:*)
	echo m68k-diab-dnix
	exit ;;
    M68*:*:R3V[5678]*:*)
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
    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)
	OS_REL=''
	test -r /etc/.relid \
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
	OS_REL='.3'
	test -r /etc/.relid \
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
	/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
	echo m68k-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    mc68030:UNIX_System_V:4.*:*)
	echo m68k-atari-sysv4
	exit ;;
    TSUNAMI:LynxOS:2.*:*)
	echo sparc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    rs6000:LynxOS:2.*:*)
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
	exit ;;
    SM[BE]S:UNIX_SV:*:*)
	echo mips-dde-sysv${UNAME_RELEASE}
	exit ;;
    RM*:ReliantUNIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    RM*:SINIX-*:*:*)
	echo mips-sni-sysv4
	exit ;;
    *:SINIX-*:*:*)
	if uname -p 2>/dev/null >/dev/null ; then
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
		echo ${UNAME_MACHINE}-sni-sysv4
	else
		echo ns32k-sni-sysv
	fi
	exit ;;
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
    *:UNIX_System_V:4*:FTX*)
	# From Gerald Hewes <hewes@@openmarket.com>.
	# How about differentiating between stratus architectures? -djm
	echo hppa1.1-stratus-sysv4
	exit ;;
    *:*:*:FTX*)
	# From seanf@@swdc.stratus.com.
	echo i860-stratus-sysv4
	exit ;;
    i*86:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo ${UNAME_MACHINE}-stratus-vos
	exit ;;
    *:VOS:*:*)
	# From Paul.Green@@stratus.com.
	echo hppa1.1-stratus-vos
	exit ;;
    mc68*:A/UX:*:*)
	echo m68k-apple-aux${UNAME_RELEASE}
	exit ;;
    news*:NEWS-OS:6*:*)
	echo mips-sony-newsos6
	exit ;;
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
	if [ -d /usr/nec ]; then
		echo mips-nec-sysv${UNAME_RELEASE}
	else
		echo mips-unknown-sysv${UNAME_RELEASE}
	fi
	exit ;;
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
	echo powerpc-be-beos
	exit ;;
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
	echo powerpc-apple-beos
	exit ;;
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
	echo i586-pc-beos
	exit ;;
    BePC:Haiku:*:*)	# Haiku running on Intel PC compatible.
	echo i586-pc-haiku
	exit ;;
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
    SX-4:SUPER-UX:*:*)
	echo sx4-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-5:SUPER-UX:*:*)
	echo sx5-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-6:SUPER-UX:*:*)
	echo sx6-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-7:SUPER-UX:*:*)
	echo sx7-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8:SUPER-UX:*:*)
	echo sx8-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-8R:SUPER-UX:*:*)
	echo sx8r-nec-superux${UNAME_RELEASE}
	exit ;;
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
    Power*:Rhapsody:*:*)
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Rhapsody:*:*)
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
	exit ;;
    *:Darwin:*:*)
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
		if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
		then
		    case $UNAME_PROCESSOR in
			i386) UNAME_PROCESSOR=x86_64 ;;
			powerpc) UNAME_PROCESSOR=powerpc64 ;;
		    esac
		fi
		# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
		if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_PPC >/dev/null
		then
		    UNAME_PROCESSOR=powerpc
		fi
	    fi
	elif test "$UNAME_PROCESSOR" = i386 ; then
	    # Avoid executing cc on OS X 10.9, as it ships with a stub
	    # that puts up a graphical alert prompting to install
	    # developer tools.  Any system running Mac OS X 10.7 or
	    # later (Darwin 11 and later) is required to have a 64-bit
	    # processor. This is not true of the ARM version of Darwin
	    # that Apple uses in portable devices.
	    UNAME_PROCESSOR=x86_64
	fi
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
	exit ;;
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
	UNAME_PROCESSOR=`uname -p`
	if test "$UNAME_PROCESSOR" = x86; then
		UNAME_PROCESSOR=i386
		UNAME_MACHINE=pc
	fi
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
	exit ;;
    *:QNX:*:4*)
	echo i386-pc-qnx
	exit ;;
    NEO-*:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
	echo nse-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSR-*:NONSTOP_KERNEL:*:*)
	echo nsr-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSX-*:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
    *:NonStop-UX:*:*)
	echo mips-compaq-nonstopux
	exit ;;
    BS2000:POSIX*:*:*)
	echo bs2000-siemens-sysv
	exit ;;
    DS/*:UNIX_System_V:*:*)
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
	exit ;;
    *:Plan9:*:*)
	# "uname -m" is not consistent, so use $cputype instead. 386
	# is converted to i386 for consistency with other x86
	# operating systems.
	if test "$cputype" = 386; then
	    UNAME_MACHINE=i386
	else
	    UNAME_MACHINE="$cputype"
	fi
	echo ${UNAME_MACHINE}-unknown-plan9
	exit ;;
    *:TOPS-10:*:*)
	echo pdp10-unknown-tops10
	exit ;;
    *:TENEX:*:*)
	echo pdp10-unknown-tenex
	exit ;;
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
	echo pdp10-dec-tops20
	exit ;;
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
	echo pdp10-xkl-tops20
	exit ;;
    *:TOPS-20:*:*)
	echo pdp10-unknown-tops20
	exit ;;
    *:ITS:*:*)
	echo pdp10-unknown-its
	exit ;;
    SEI:*:*:SEIUX)
	echo mips-sei-seiux${UNAME_RELEASE}
	exit ;;
    *:DragonFly:*:*)
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
	exit ;;
    *:*VMS:*:*)
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
	case "${UNAME_MACHINE}" in
	    A*) echo alpha-dec-vms ; exit ;;
	    I*) echo ia64-dec-vms ; exit ;;
	    V*) echo vax-dec-vms ; exit ;;
	esac ;;
    *:XENIX:*:SysV)
	echo i386-pc-xenix
	exit ;;
    i*86:skyos:*:*)
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
	exit ;;
    i*86:rdos:*:*)
	echo ${UNAME_MACHINE}-pc-rdos
	exit ;;
    i*86:AROS:*:*)
	echo ${UNAME_MACHINE}-pc-aros
	exit ;;
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
esac

cat >&2 <<EOF
$0: unable to guess system type

This script (version $timestamp), has failed to recognize the
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:

  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
and
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub

If $0 has already been updated, send the following data and any
information you think might be pertinent to config-patches@@gnu.org to
provide the necessary information to handle your system.

config.guess timestamp = $timestamp

uname -m = `(uname -m) 2>/dev/null || echo unknown`
uname -r = `(uname -r) 2>/dev/null || echo unknown`
uname -s = `(uname -s) 2>/dev/null || echo unknown`
uname -v = `(uname -v) 2>/dev/null || echo unknown`

/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`

hostinfo               = `(hostinfo) 2>/dev/null`
/bin/universe          = `(/bin/universe) 2>/dev/null`
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
/bin/arch              = `(/bin/arch) 2>/dev/null`
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`

UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
EOF

exit 1

# Local variables:
# eval: (add-hook 'write-file-hooks 'time-stamp)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


