head	1.20;
access;
symbols
	netbsd-11-0-RC4:1.20
	netbsd-11-0-RC3:1.20
	netbsd-11-0-RC2:1.20
	netbsd-11-0-RC1:1.20
	gcc-14-3-0:1.1.1.12
	perseant-exfatfs-base-20250801:1.20
	netbsd-11:1.20.0.4
	netbsd-11-base:1.20
	gcc-12-5-0:1.1.1.12
	netbsd-10-1-RELEASE:1.19
	perseant-exfatfs-base-20240630:1.20
	gcc-12-4-0:1.1.1.12
	perseant-exfatfs:1.20.0.2
	perseant-exfatfs-base:1.20
	netbsd-8-3-RELEASE:1.13
	netbsd-9-4-RELEASE:1.15
	netbsd-10-0-RELEASE:1.19
	netbsd-10-0-RC6:1.19
	netbsd-10-0-RC5:1.19
	netbsd-10-0-RC4:1.19
	netbsd-10-0-RC3:1.19
	netbsd-10-0-RC2:1.19
	netbsd-10-0-RC1:1.19
	gcc-12-3-0:1.1.1.12
	gcc-10-5-0:1.1.1.11
	netbsd-10:1.19.0.6
	netbsd-10-base:1.19
	netbsd-9-3-RELEASE:1.15
	gcc-10-4-0:1.1.1.11
	cjep_sun2x-base1:1.19
	cjep_sun2x:1.19.0.4
	cjep_sun2x-base:1.19
	cjep_staticlib_x-base1:1.19
	netbsd-9-2-RELEASE:1.15
	cjep_staticlib_x:1.19.0.2
	cjep_staticlib_x-base:1.19
	gcc-10-3-0:1.1.1.11
	netbsd-9-1-RELEASE:1.15
	gcc-9-3-0:1.1.1.10
	gcc-7-5-0:1.1.1.8
	phil-wifi-20200421:1.16
	phil-wifi-20200411:1.16
	is-mlppp:1.16.0.2
	is-mlppp-base:1.16
	phil-wifi-20200406:1.16
	netbsd-8-2-RELEASE:1.13
	gcc-8-4-0:1.1.1.9
	netbsd-9-0-RELEASE:1.15
	netbsd-9-0-RC2:1.15
	netbsd-9-0-RC1:1.15
	phil-wifi-20191119:1.16
	gcc-8-3-0:1.1.1.7
	netbsd-9:1.15.0.2
	netbsd-9-base:1.15
	phil-wifi-20190609:1.15
	netbsd-8-1-RELEASE:1.13
	netbsd-8-1-RC1:1.13
	pgoyette-compat-merge-20190127:1.14.2.1
	pgoyette-compat-20190127:1.15
	gcc-7-4-0:1.1.1.6
	pgoyette-compat-20190118:1.14
	pgoyette-compat-1226:1.14
	pgoyette-compat-1126:1.14
	gcc-6-5-0:1.1.1.5
	pgoyette-compat-1020:1.14
	pgoyette-compat-0930:1.14
	pgoyette-compat-0906:1.14
	netbsd-7-2-RELEASE:1.7
	pgoyette-compat-0728:1.14
	netbsd-8-0-RELEASE:1.13
	phil-wifi:1.14.0.4
	phil-wifi-base:1.14
	pgoyette-compat-0625:1.14
	netbsd-8-0-RC2:1.13
	pgoyette-compat-0521:1.14
	pgoyette-compat-0502:1.14
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.13
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.7
	pgoyette-compat:1.14.0.2
	pgoyette-compat-base:1.14
	gcc-6-4-0:1.1.1.5
	netbsd-7-1-1-RELEASE:1.7
	gcc-5-5-0:1.1.1.4
	matt-nb8-mediatek:1.13.0.8
	matt-nb8-mediatek-base:1.13
	perseant-stdc-iso10646:1.13.0.6
	perseant-stdc-iso10646-base:1.13
	netbsd-8:1.13.0.4
	netbsd-8-base:1.13
	prg-localcount2-base3:1.13
	prg-localcount2-base2:1.13
	prg-localcount2-base1:1.13
	prg-localcount2:1.13.0.2
	prg-localcount2-base:1.13
	pgoyette-localcount-20170426:1.13
	bouyer-socketcan-base1:1.13
	pgoyette-localcount-20170320:1.13
	netbsd-7-1:1.7.0.8
	netbsd-7-1-RELEASE:1.7
	netbsd-7-1-RC2:1.7
	netbsd-7-nhusb-base-20170116:1.7
	bouyer-socketcan:1.12.0.4
	bouyer-socketcan-base:1.12
	pgoyette-localcount-20170107:1.12
	netbsd-7-1-RC1:1.7
	pgoyette-localcount-20161104:1.12
	netbsd-7-0-2-RELEASE:1.7
	localcount-20160914:1.12
	netbsd-7-nhusb:1.7.0.6
	netbsd-7-nhusb-base:1.7
	pgoyette-localcount-20160806:1.12
	pgoyette-localcount-20160726:1.12
	pgoyette-localcount:1.12.0.2
	pgoyette-localcount-base:1.12
	gcc-5-4-0:1.1.1.4
	netbsd-7-0-1-RELEASE:1.7
	gcc-5-3-0:1.1.1.4
	netbsd-7-0:1.7.0.4
	netbsd-7-0-RELEASE:1.7
	gcc-4-8-5-pre-gcc-old-import:1.7
	netbsd-7-0-RC3:1.7
	netbsd-7-0-RC2:1.7
	post-gcc-4-8-5-merge:1.7
	gcc-4-8-5:1.1.1.3
	netbsd-7-0-RC1:1.7
	gcc-4-8-4:1.1.1.3
	gcc-4-8-20141009:1.1.1.3
	netbsd-6-0-6-RELEASE:1.1.1.1
	netbsd-6-1-5-RELEASE:1.1.1.1
	netbsd-7:1.7.0.2
	netbsd-7-base:1.7
	gcc-4-8-3:1.1.1.3
	yamt-pagecache-base9:1.6
	yamt-pagecache-tag8:1.1.1.1.2.1
	netbsd-6-1-4-RELEASE:1.1.1.1
	netbsd-6-0-5-RELEASE:1.1.1.1
	tls-earlyentropy:1.6.0.2
	tls-earlyentropy-base:1.7
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.6
	riastradh-drm2-base3:1.6
	gcc-4-8-3-pre-r208254:1.1.1.2
	gcc-4-8-3-pre-r206687:1.1.1.2
	imported-to-gcc-old-20140227-0107:1.4
	netbsd-6-1-3-RELEASE:1.1.1.1
	netbsd-6-0-4-RELEASE:1.1.1.1
	netbsd-6-1-2-RELEASE:1.1.1.1
	netbsd-6-0-3-RELEASE:1.1.1.1
	netbsd-6-1-1-RELEASE:1.1.1.1
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.3.0.2
	riastradh-drm2-base:1.3
	netbsd-6-1:1.1.1.1.0.10
	netbsd-6-0-2-RELEASE:1.1.1.1
	netbsd-6-1-RELEASE:1.1.1.1
	netbsd-6-1-RC4:1.1.1.1
	netbsd-6-1-RC3:1.1.1.1
	agc-symver:1.2.0.6
	agc-symver-base:1.2
	netbsd-6-1-RC2:1.1.1.1
	netbsd-6-1-RC1:1.1.1.1
	yamt-pagecache-base8:1.2
	netbsd-6-0-1-RELEASE:1.1.1.1
	yamt-pagecache-base7:1.2
	matt-nb6-plus-nbase:1.1.1.1
	yamt-pagecache-base6:1.2
	netbsd-6-0:1.1.1.1.0.8
	netbsd-6-0-RELEASE:1.1.1.1
	gcc-4-5-4:1.1.1.1
	netbsd-6-0-RC2:1.1.1.1
	tls-maxphys:1.2.0.2
	tls-maxphys-base:1.7
	matt-nb6-plus:1.1.1.1.0.6
	matt-nb6-plus-base:1.1.1.1
	netbsd-6-0-RC1:1.1.1.1
	yamt-pagecache-base5:1.1.1.1
	yamt-pagecache-base4:1.1.1.1
	netbsd-6:1.1.1.1.0.4
	netbsd-6-base:1.1.1.1
	yamt-pagecache-base3:1.1.1.1
	yamt-pagecache-base2:1.1.1.1
	yamt-pagecache:1.1.1.1.0.2
	yamt-pagecache-base:1.1.1.1
	gcc-4-5-3:1.1.1.1
	FSF:1.1.1;
locks; strict;
comment	@# @;


1.20
date	2023.07.30.05.51.10;	author mrg;	state Exp;
branches;
next	1.19;
commitid	Iugici1GtQ2mWMyE;

1.19
date	2021.04.11.00.02.10;	author mrg;	state Exp;
branches;
next	1.18;
commitid	rXajJcXg3xWG0OOC;

1.18
date	2020.11.17.10.35.14;	author rin;	state Exp;
branches;
next	1.17;
commitid	hRb62eUrAIizbewC;

1.17
date	2020.09.05.09.12.22;	author mrg;	state Exp;
branches;
next	1.16;
commitid	dS3LXwk3lAvP4QmC;

1.16
date	2019.10.01.10.38.16;	author mrg;	state Exp;
branches;
next	1.15;
commitid	r1DeKUVOMBnJt9FB;

1.15
date	2019.01.19.12.10.03;	author mrg;	state Exp;
branches;
next	1.14;
commitid	k8UsQyKpGt5Abo8B;

1.14
date	2018.02.02.03.41.03;	author mrg;	state Exp;
branches
	1.14.2.1
	1.14.4.1;
next	1.13;
commitid	YbHkrPGCnw2dEepA;

1.13
date	2017.02.01.09.26.43;	author sevan;	state Exp;
branches;
next	1.12;
commitid	GAil0cnWzrQL6eEz;

1.12
date	2016.05.12.15.27.54;	author skrll;	state Exp;
branches
	1.12.2.1
	1.12.4.1;
next	1.11;
commitid	6sB2acclEQRmQc6z;

1.11
date	2016.05.12.12.51.53;	author skrll;	state Exp;
branches;
next	1.10;
commitid	1dgMdyiVjdjWYb6z;

1.10
date	2016.05.12.10.55.03;	author skrll;	state Exp;
branches;
next	1.9;
commitid	0l2JW7w1J6UGkb6z;

1.9
date	2016.05.12.08.43.50;	author skrll;	state Exp;
branches;
next	1.8;
commitid	PRe1HENj8KHEBa6z;

1.8
date	2016.01.24.09.43.31;	author mrg;	state Exp;
branches;
next	1.7;
commitid	dxhNntGC3MSSqaSy;

1.7
date	2014.05.27.09.18.53;	author skrll;	state Exp;
branches;
next	1.6;
commitid	Z8i3oVrmy8KgN9Cx;

1.6
date	2014.03.01.09.44.50;	author mrg;	state Exp;
branches
	1.6.2.1;
next	1.5;
commitid	pNWEBU9jLCR3LYqx;

1.5
date	2014.03.01.08.58.29;	author mrg;	state Exp;
branches;
next	1.4;
commitid	PSOLhRBVEIqVuYqx;

1.4
date	2013.07.19.15.55.57;	author matt;	state Exp;
branches;
next	1.3;
commitid	ZPlZillCVw3G26Yw;

1.3
date	2013.04.22.08.52.33;	author skrll;	state Exp;
branches
	1.3.2.1;
next	1.2;

1.2
date	2012.07.19.19.34.26;	author christos;	state Exp;
branches
	1.2.2.1;
next	1.1;

1.1
date	2011.06.21.01.19.46;	author mrg;	state Exp;
branches
	1.1.1.1;
next	;

1.14.2.1
date	2019.01.26.21.58.19;	author pgoyette;	state Exp;
branches;
next	;
commitid	JKpcmvSjdT25dl9B;

1.14.4.1
date	2019.06.10.21.53.15;	author christos;	state Exp;
branches;
next	1.14.4.2;
commitid	jtc8rnCzWiEEHGqB;

1.14.4.2
date	2020.04.13.07.57.03;	author martin;	state Exp;
branches;
next	;
commitid	X01YhRUPVUDaec4C;

1.12.2.1
date	2017.03.20.06.56.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.12.4.1
date	2017.04.21.16.52.42;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.6.2.1
date	2014.08.10.07.10.40;	author tls;	state Exp;
branches;
next	;
commitid	3hJZAsnr6L0lHMLx;

1.3.2.1
date	2013.07.23.21.07.26;	author riastradh;	state Exp;
branches;
next	;
commitid	rochtllMBJfBDDYw;

1.2.2.1
date	2013.06.23.06.28.33;	author tls;	state Exp;
branches;
next	1.2.2.2;
commitid	OnlO1cBgtQRcIHUw;

1.2.2.2
date	2014.08.19.23.53.11;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.1.1.1
date	2011.06.21.01.19.46;	author mrg;	state Exp;
branches
	1.1.1.1.2.1;
next	1.1.1.2;

1.1.1.2
date	2014.03.01.08.41.18;	author mrg;	state Exp;
branches;
next	1.1.1.3;
commitid	TtaB91QNTknAoYqx;

1.1.1.3
date	2014.05.27.08.31.46;	author skrll;	state Exp;
branches;
next	1.1.1.4;
commitid	Esid9j2Tay8qt9Cx;

1.1.1.4
date	2016.01.24.06.05.38;	author mrg;	state Exp;
branches;
next	1.1.1.5;
commitid	uWWfbLp08zOK79Sy;

1.1.1.5
date	2018.02.02.01.58.38;	author mrg;	state Exp;
branches;
next	1.1.1.6;
commitid	XNKaycqpfhzd5epA;

1.1.1.6
date	2019.01.19.10.14.00;	author mrg;	state Exp;
branches;
next	1.1.1.7;
commitid	VQ8OwWIg5RS9kn8B;

1.1.1.7
date	2019.10.01.09.36.01;	author mrg;	state Exp;
branches;
next	1.1.1.8;
commitid	smvgr2IPAQDr89FB;

1.1.1.8
date	2020.08.11.05.10.29;	author mrg;	state Exp;
branches;
next	1.1.1.9;
commitid	5dBRDT7i6e65xBjC;

1.1.1.9
date	2020.08.11.05.30.02;	author mrg;	state Exp;
branches;
next	1.1.1.10;
commitid	7AI4OfpLi4eqEBjC;

1.1.1.10
date	2020.09.05.07.52.01;	author mrg;	state Exp;
branches;
next	1.1.1.11;
commitid	ZRYA7IOuwfMjAPmC;

1.1.1.11
date	2021.04.10.22.09.16;	author mrg;	state Exp;
branches;
next	1.1.1.12;
commitid	eC4g0MRpqTvEkNOC;

1.1.1.12
date	2023.07.30.05.20.36;	author mrg;	state Exp;
branches;
next	;
commitid	tk6nV4mbc9nVEMyE;

1.1.1.1.2.1
date	2012.10.30.18.56.46;	author yamt;	state Exp;
branches;
next	1.1.1.1.2.2;

1.1.1.1.2.2
date	2014.05.22.16.53.13;	author yamt;	state Exp;
branches;
next	;
commitid	v7BzuaTHWIjEuyBx;


desc
@@


1.20
log
@initial merge of GCC 12.3.0.

this doesn't include any of the changes to the .c -> .cc files renamed,
and reverts our local changes to the vax port and libsanitizer subdir.
vax GCC was rewritten and our local fixes no longer are relevant, and
the new libsanitizer is more updated than our old one, and merging via
gcc10->gcc12 is not really possible.

unfortunately, our local changes to libsanitizer that aren't related
to the general update of those sources (ie, the netbsd code) will need
to be re-checked and perhaps re-ported.
@
text
@#! /bin/sh
# Attempt to guess a canonical system name.
#   Copyright 1992-2021 Free Software Foundation, Inc.

timestamp='2021-01-25'

# 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>.


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-2021 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

# 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
    { 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 c89 c99 ; 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"
	#include <features.h>
	#if defined(__UCLIBC__)
	LIBC=uclibc
	#elif defined(__dietlibc__)
	LIBC=dietlibc
	#elif defined(__GLIBC__)
	LIBC=gnu
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
	#endif
	EOF
	eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')"

	# 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.
	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 ;;
    *:MidnightBSD:*:*)
	echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
	exit ;;
    *:ekkoBSD:*:*)
	echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
	exit ;;
    *:SolidBSD:*:*)
	echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
	exit ;;
    *:OS108:*:*)
	echo "$UNAME_MACHINE"-unknown-os108_"$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 ;;
    *:Twizzler:*:*)
	echo "$UNAME_MACHINE"-unknown-twizzler
	exit ;;
    *:Redox:*:*)
	echo "$UNAME_MACHINE"-unknown-redox
	exit ;;
    mips:OSF1:*.*)
	echo mips-dec-osf1
	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 ;;
    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.*:*)
	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 -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)
	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 test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
	then
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$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 test -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
		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 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
	echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
	exit ;;
    *:AIX:*:*)
	echo rs6000-ibm-aix
	exit ;;
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
	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 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
	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:*:*)
	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 test -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 ;;
    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
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi
	else
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf
	fi
	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*: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 ;;
    i*:UWIN*:*)
	echo "$UNAME_MACHINE"-pc-uwin
	exit ;;
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
	echo x86_64-pc-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 ;;
    *:Minix:*:*)
	echo "$UNAME_MACHINE"-unknown-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 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
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
    arm*:Linux:*:*)
	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 ;;
    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32: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:*:*)
	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
	eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; 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:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be: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:*:*)
	set_cc_for_build
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_X32 >/dev/null
	    then
		LIBCABI="$LIBC"x32
	    fi
	fi
	echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
	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.*:*)
	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 test -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 ;;
    arm64:Darwin:*:*)
	echo aarch64-apple-darwin"$UNAME_RELEASE"
	exit ;;
    *: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
	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 ;;
    NSV-*:NONSTOP_KERNEL:*:*)
	echo nsv-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.
	# shellcheck disable=SC2154
	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 ;;
    *:AROS:*:*)
	echo "$UNAME_MACHINE"-unknown-aros
	exit ;;
    x86_64:VMkernel:*:*)
	echo "$UNAME_MACHINE"-unknown-esx
	exit ;;
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
    *:Unleashed:*:*)
	echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
	exit ;;
esac

# 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
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

year=$(echo $timestamp | sed 's,-.*,,')
# shellcheck disable=SC2003
if test "$(expr "$(date +%Y)" - "$year")" -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)
# time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'"
# End:
@


1.19
log
@initial merge of GCC 10.3.0.

these three files are not yet finished merging:

gcc/config/rs6000/rs6000.c
libsanitizer/lsan/lsan_allocator.h
libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h

our current GCC 9 sanitizers are newer than GCC 10's still, so that
may take a little to untease, so it's probable that more than
these 2 will need more changes.

rs6000.c has some changes related to ABI and supported functionality
that need to be merged forward.
@
text
@d3 1
a3 1
#   Copyright 1992-2019 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2019-07-24'
d30 1
a30 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d35 1
a35 1
me=`echo "$0" | sed -e 's,.*/,,'`
d53 1
a53 1
Copyright 1992-2019 Free Software Foundation, Inc.
d102 2
d106 1
a106 1
    { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
d134 4
a137 4
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
d141 1
a141 3
	# If the system lacks a compiler, then just pick glibc.
	# We could probably try harder.
	LIBC=gnu
d150 2
d153 5
a157 1
	LIBC=gnu
d160 1
a160 1
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
d162 11
a172 5
	# If ldd exists, use it to detect musl libc.
	if command -v ldd >/dev/null && \
		ldd --version 2>&1 | grep -q ^musl
	then
	    LIBC=musl
d191 4
a194 5
	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)`
d203 2
a204 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'`
d235 1
a235 1
		abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
d248 1
a248 1
		release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
d257 1
a257 1
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
d261 1
a261 1
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
d265 1
a265 1
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
d289 3
d301 1
a301 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
d304 1
a304 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d311 1
a311 1
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
d349 1
a349 1
	echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
d383 1
a383 1
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
d396 1
a396 1
	case `/usr/bin/uname -p` in
d400 1
a400 1
	echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
d403 1
a403 1
	echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d406 1
a406 1
	echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
d417 1
a417 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d425 1
a425 1
	echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d431 1
a431 1
	echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d434 1
a434 1
	case "`/usr/bin/arch -k`" in
d436 1
a436 1
		UNAME_RELEASE=`uname -v`
d440 1
a440 1
	echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
d446 1
a446 1
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
d448 1
a448 1
	case "`/bin/arch`" in
d528 2
a529 2
	  dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
d556 2
a557 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
d559 2
a560 2
	    if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
	       [ "$TARGET_BINARY_INTERFACE"x = x ]
d584 1
a584 1
	echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
d588 1
a588 1
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
d593 2
a594 2
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
d614 1
a614 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
d627 1
a627 1
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
d633 3
a635 3
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
d663 1
a663 1
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
d668 3
a670 3
		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`
d682 1
a682 1
		if [ "$HP_ARCH" = "" ]; then
d717 1
a717 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
d721 1
a721 1
	if [ "$HP_ARCH" = hppa2.0w ]
d745 1
a745 1
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
d775 1
a775 1
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
d795 1
a795 1
	if [ -x /usr/sbin/sysversion ] ; then
d844 3
a846 3
	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/ /_/'`
d850 2
a851 2
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d864 1
a864 1
	UNAME_PROCESSOR=`uname -p`
d869 1
a869 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
d871 1
a871 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
d875 1
a875 1
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d882 1
a882 1
	echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d918 1
a918 1
	echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d922 1
a922 1
	echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
d926 1
a926 1
	echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
d939 1
a939 1
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
d998 3
d1051 1
a1051 1
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
d1071 1
a1071 1
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
d1089 1
a1089 1
    riscv32:Linux:*:* | riscv64:Linux:*:*)
d1111 11
a1121 1
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
d1161 1
a1161 1
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
d1170 1
a1170 1
	case `/bin/uname -X | grep "^Machine"` in
d1179 1
a1179 1
		UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
d1182 1
a1182 1
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
d1232 1
a1232 1
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
d1243 1
a1243 1
	    && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
d1276 1
a1276 1
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
d1310 1
a1310 1
	if [ -d /usr/nec ]; then
d1358 3
d1362 1
a1362 1
	UNAME_PROCESSOR=`uname -p`
d1375 1
a1375 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d1399 1
a1399 1
	UNAME_PROCESSOR=`uname -p`
d1467 1
a1467 1
	echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d1470 1
a1470 1
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
d1480 1
a1480 1
	echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
d1485 2
a1486 2
    i*86:AROS:*:*)
	echo "$UNAME_MACHINE"-pc-aros
d1538 1
a1538 1
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
d1630 1
a1630 1
$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`$dummy` &&
d1655 1
a1655 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1657 7
a1663 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1671 14
a1684 14
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`
d1691 1
@


1.18
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
@d5 1
a5 1
timestamp='2019-01-03'
d266 3
d282 2
a283 2
        echo mips-dec-osf1
        exit ;;
d392 1
a392 14
	set_cc_for_build
	SUN_ARCH=sparc
	# 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 __sparcv9'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=sparcv9
	    fi
	fi
	echo "$SUN_ARCH"-sun-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d992 2
d996 28
a1023 2
	#undef ${UNAME_MACHINE}
	#undef ${UNAME_MACHINE}el
d1025 1
a1025 1
	CPU=${UNAME_MACHINE}el
d1028 1
a1028 1
	CPU=${UNAME_MACHINE}
d1030 1
a1030 1
	CPU=
d1034 2
a1035 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
d1148 1
a1148 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
d1332 12
a1343 4
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
	set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
d1345 16
a1360 18
	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
d1363 2
a1364 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
d1469 137
@


1.17
log
@merge GCC 9.3.0.
@
text
@d185 1
@


1.16
log
@merge GCC 8.3.0 pass 1.  will not compile yet.  thare are still
about 25 files with merge issues.
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-01-01'
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
a86 2
trap 'exit 1' 1 2 15

d97 28
a124 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= ;'
d128 1
a128 1
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
d137 1
a137 1
case "${UNAME_SYSTEM}" in
d143 2
a144 2
	eval $set_cc_for_build
	cat <<-EOF > $dummy.c
d154 8
a161 1
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
d167 1
a167 1
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
d181 2
a182 2
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
d184 1
a184 1
	case "${UNAME_MACHINE_ARCH}" in
d191 3
a193 3
		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
d195 1
a195 1
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
d199 1
a199 1
	case "${UNAME_MACHINE_ARCH}" in
d204 1
a204 1
		eval $set_cc_for_build
d220 1
a220 1
	case "${UNAME_MACHINE_ARCH}" in
d223 1
a223 1
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
d231 1
a231 1
	case "${UNAME_VERSION}" in
d236 1
a236 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d242 1
a242 1
	echo "${machine}-${os}${release}${abi}"
d246 1
a246 1
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
d250 1
a250 1
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
d254 1
a254 1
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
d257 1
a257 1
	echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE}
d260 1
a260 1
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
d263 1
a263 1
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
d266 1
a266 1
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
d269 1
a269 1
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
d272 1
a272 1
	echo ${UNAME_MACHINE}-unknown-sortix
d275 1
a275 1
	echo ${UNAME_MACHINE}-unknown-redox
d331 1
a331 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
d340 1
a340 1
	echo ${UNAME_MACHINE}-unknown-amigaos
d343 1
a343 1
	echo ${UNAME_MACHINE}-unknown-morphos
d355 1
a355 1
	echo arm-acorn-riscix${UNAME_RELEASE}
d382 1
a382 1
	echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d385 1
a385 1
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d388 14
a401 1
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d404 1
a404 1
	echo i386-pc-auroraux${UNAME_RELEASE}
d407 1
a407 1
	eval $set_cc_for_build
d420 1
a420 1
	echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d426 1
a426 1
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d435 1
a435 1
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
d438 1
a438 1
	echo m68k-sun-sunos${UNAME_RELEASE}
d442 1
a442 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d445 1
a445 1
		echo m68k-sun-sunos${UNAME_RELEASE}
d448 1
a448 1
		echo sparc-sun-sunos${UNAME_RELEASE}
d453 1
a453 1
	echo sparc-auspex-sunos${UNAME_RELEASE}
d464 1
a464 1
	echo m68k-atari-mint${UNAME_RELEASE}
d467 1
a467 1
	echo m68k-atari-mint${UNAME_RELEASE}
d470 1
a470 1
	echo m68k-atari-mint${UNAME_RELEASE}
d473 1
a473 1
	echo m68k-milan-mint${UNAME_RELEASE}
d476 1
a476 1
	echo m68k-hades-mint${UNAME_RELEASE}
d479 1
a479 1
	echo m68k-unknown-mint${UNAME_RELEASE}
d482 1
a482 1
	echo m68k-apple-machten${UNAME_RELEASE}
d485 1
a485 1
	echo powerpc-apple-machten${UNAME_RELEASE}
d491 1
a491 1
	echo mips-dec-ultrix${UNAME_RELEASE}
d494 1
a494 1
	echo vax-dec-ultrix${UNAME_RELEASE}
d497 1
a497 1
	echo clipper-intergraph-clix${UNAME_RELEASE}
d500 2
a501 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d522 3
a524 3
	$CC_FOR_BUILD -o $dummy $dummy.c &&
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
	  SYSTEM_NAME=`$dummy $dummyarg` &&
d526 1
a526 1
	echo mips-mips-riscos${UNAME_RELEASE}
d552 1
a552 1
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
d554 2
a555 2
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
d557 1
a557 1
		echo m88k-dg-dgux${UNAME_RELEASE}
d559 1
a559 1
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
d562 1
a562 1
	    echo i586-dg-dgux${UNAME_RELEASE}
d579 1
a579 1
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
d591 1
a591 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d593 1
a593 1
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
d597 2
a598 2
		eval $set_cc_for_build
		sed 's/^		//' << EOF >$dummy.c
d609 1
a609 1
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
d623 1
a623 1
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
d632 1
a632 1
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
d634 1
a634 1
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
d643 1
a643 1
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
d658 2
a659 2
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	case "${UNAME_MACHINE}" in
d666 1
a666 1
		    case "${sc_cpu_version}" in
d670 1
a670 1
			case "${sc_kernel_bits}" in
d677 3
a679 3
		if [ "${HP_ARCH}" = "" ]; then
		    eval $set_cc_for_build
		    sed 's/^		//' << EOF >$dummy.c
d712 1
a712 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d716 1
a716 1
	if [ ${HP_ARCH} = hppa2.0w ]
d718 1
a718 1
	    eval $set_cc_for_build
d737 1
a737 1
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
d740 2
a741 2
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
	echo ia64-hp-hpux${HPUX_REV}
d744 2
a745 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d770 1
a770 1
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
d791 1
a791 1
	    echo ${UNAME_MACHINE}-unknown-osf1mk
d793 1
a793 1
	    echo ${UNAME_MACHINE}-unknown-osf1
d818 1
a818 1
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d821 1
a821 1
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
d827 1
a827 1
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d830 1
a830 1
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d833 1
a833 1
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d836 1
a836 1
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
d841 1
a841 1
	FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
d846 1
a846 1
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d850 1
a850 1
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
d853 1
a853 1
	echo sparc-unknown-bsdi${UNAME_RELEASE}
d856 12
a867 1
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
d871 1
a871 1
	case ${UNAME_PROCESSOR} in
d877 1
a877 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d880 1
a880 1
	echo ${UNAME_MACHINE}-pc-cygwin
d883 1
a883 1
	echo ${UNAME_MACHINE}-pc-mingw64
d886 1
a886 1
	echo ${UNAME_MACHINE}-pc-mingw32
d889 1
a889 1
	echo ${UNAME_MACHINE}-pc-msys
d892 1
a892 1
	echo ${UNAME_MACHINE}-pc-pw32
d895 1
a895 1
	case ${UNAME_MACHINE} in
d897 1
a897 1
		echo i586-pc-interix${UNAME_RELEASE}
d900 1
a900 1
		echo x86_64-unknown-interix${UNAME_RELEASE}
d903 1
a903 1
		echo ia64-unknown-interix${UNAME_RELEASE}
d907 1
a907 1
	echo ${UNAME_MACHINE}-pc-uwin
d910 1
a910 1
	echo x86_64-unknown-cygwin
d913 1
a913 1
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
d917 1
a917 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d921 1
a921 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d923 2
a924 2
    i*86:Minix:*:*)
	echo ${UNAME_MACHINE}-pc-minix
d927 1
a927 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d931 1
a931 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d945 1
a945 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d948 1
a948 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d951 1
a951 1
	eval $set_cc_for_build
d955 1
a955 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d960 1
a960 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
d962 1
a962 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
d967 1
a967 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d970 1
a970 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d973 1
a973 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d976 1
a976 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d979 1
a979 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d982 1
a982 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d985 1
a985 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d988 1
a988 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d991 1
a991 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d994 1
a994 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d997 1
a997 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1000 2
a1001 2
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
d1015 2
a1016 2
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
d1019 1
a1019 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1022 1
a1022 1
	echo or1k-unknown-linux-${LIBC}
d1025 1
a1025 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1028 1
a1028 1
	echo sparc-unknown-linux-${LIBC}
d1031 1
a1031 1
	echo hppa64-unknown-linux-${LIBC}
d1036 3
a1038 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d1042 1
a1042 1
	echo powerpc64-unknown-linux-${LIBC}
d1045 1
a1045 1
	echo powerpc-unknown-linux-${LIBC}
d1048 1
a1048 1
	echo powerpc64le-unknown-linux-${LIBC}
d1051 1
a1051 1
	echo powerpcle-unknown-linux-${LIBC}
d1054 1
a1054 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1057 1
a1057 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d1060 1
a1060 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1063 1
a1063 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1066 1
a1066 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1069 1
a1069 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1072 1
a1072 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d1075 1
a1075 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d1078 1
a1078 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1092 1
a1092 1
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
d1097 1
a1097 1
	echo ${UNAME_MACHINE}-pc-os2-emx
d1100 1
a1100 1
	echo ${UNAME_MACHINE}-unknown-stop
d1103 1
a1103 1
	echo ${UNAME_MACHINE}-unknown-atheos
d1106 1
a1106 1
	echo ${UNAME_MACHINE}-pc-syllable
d1109 1
a1109 1
	echo i386-unknown-lynxos${UNAME_RELEASE}
d1112 1
a1112 1
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
d1115 1
a1115 1
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
d1117 1
a1117 1
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
d1119 1
a1119 1
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
d1129 1
a1129 1
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
d1134 1
a1134 1
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
d1144 1
a1144 1
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
d1146 1
a1146 1
		echo ${UNAME_MACHINE}-pc-sysv32
d1166 1
a1166 1
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
d1168 1
a1168 1
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
d1188 1
a1188 1
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1190 1
a1190 1
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1199 1
a1199 1
	    && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
d1201 1
a1201 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
d1203 1
a1203 1
	    && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
d1205 1
a1205 1
	echo m68k-unknown-lynxos${UNAME_RELEASE}
d1211 1
a1211 1
	echo sparc-unknown-lynxos${UNAME_RELEASE}
d1214 1
a1214 1
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
d1217 1
a1217 1
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
d1220 1
a1220 1
	echo mips-dde-sysv${UNAME_RELEASE}
d1231 1
a1231 1
		echo ${UNAME_MACHINE}-sni-sysv4
d1251 1
a1251 1
	echo ${UNAME_MACHINE}-stratus-vos
d1258 1
a1258 1
	echo m68k-apple-aux${UNAME_RELEASE}
d1265 1
a1265 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1267 1
a1267 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1286 1
a1286 1
	echo sx4-nec-superux${UNAME_RELEASE}
d1289 1
a1289 1
	echo sx5-nec-superux${UNAME_RELEASE}
d1292 1
a1292 1
	echo sx6-nec-superux${UNAME_RELEASE}
d1295 1
a1295 1
	echo sx7-nec-superux${UNAME_RELEASE}
d1298 1
a1298 1
	echo sx8-nec-superux${UNAME_RELEASE}
d1301 1
a1301 1
	echo sx8r-nec-superux${UNAME_RELEASE}
d1304 1
a1304 1
	echo sxace-nec-superux${UNAME_RELEASE}
d1307 1
a1307 1
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
d1310 1
a1310 1
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
d1314 1
a1314 1
	eval $set_cc_for_build
d1318 1
a1318 1
	if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
d1346 1
a1346 1
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
d1354 1
a1354 1
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
d1360 1
a1360 1
	echo neo-tandem-nsk${UNAME_RELEASE}
d1363 1
a1363 1
	echo nse-tandem-nsk${UNAME_RELEASE}
d1366 4
a1369 1
	echo nsr-tandem-nsk${UNAME_RELEASE}
d1372 1
a1372 1
	echo nsx-tandem-nsk${UNAME_RELEASE}
d1381 1
a1381 1
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
d1387 1
d1393 1
a1393 1
	echo ${UNAME_MACHINE}-unknown-plan9
d1414 1
a1414 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1417 1
a1417 1
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d1421 1
a1421 1
	case "${UNAME_MACHINE}" in
d1430 1
a1430 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
d1433 1
a1433 1
	echo ${UNAME_MACHINE}-pc-rdos
d1436 1
a1436 1
	echo ${UNAME_MACHINE}-pc-aros
d1439 1
a1439 1
	echo ${UNAME_MACHINE}-unknown-esx
d1444 3
d1451 1
a1451 1
case "${UNAME_MACHINE}:${UNAME_SYSTEM}" in
d1493 4
a1496 4
UNAME_MACHINE = ${UNAME_MACHINE}
UNAME_RELEASE = ${UNAME_RELEASE}
UNAME_SYSTEM  = ${UNAME_SYSTEM}
UNAME_VERSION = ${UNAME_VERSION}
d1502 1
a1502 1
# eval: (add-hook 'write-file-functions 'time-stamp)
@


1.15
log
@first pass at merging GCC 7.4.0.  unlikely to compile..
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-03-05'
d18 1
a18 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Operation modes:
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d247 3
d265 6
a326 9
    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 ;;
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);
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
d638 2
a639 2
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
a857 4
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
a872 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 ;;
a878 3
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
d1081 1
a1081 1
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
d1288 2
a1289 2
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		    grep IS_64BIT_ARCH >/dev/null
d1296 7
d1326 1
a1326 1
    NEO-?:NONSTOP_KERNEL:*:*)
d1332 1
a1332 1
    NSR-?:NONSTOP_KERNEL:*:*)
d1335 1
a1335 1
    NSX-?:NONSTOP_KERNEL:*:*)
d1409 13
a1422 1
$0: unable to guess system type
d1425 2
a1426 2
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1428 1
a1428 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1430 1
a1430 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1462 1
a1462 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


1.14
log
@merge GCC 6.4.0.  sanitizer stuff is probably busted, but most
other changes merged easily.

docs need to be regenerated with modern versions still.
@
text
@d3 1
a3 1
#   Copyright 1992-2016 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2016-01-01'
d53 1
a53 1
Copyright 1992-2016 Free Software Foundation, Inc.
d191 4
a194 1
	    arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
d840 3
a842 3
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
	    *)
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
d844 1
d1347 3
@


1.14.4.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-03-05'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
d837 3
a839 3
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
a840 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
a1342 3
    NSX-?:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
@


1.14.4.2
log
@Mostly merge changes from HEAD upto 20200411
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-01-01'
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/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
a246 3
    *:MidnightBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE}
	exit ;;
a261 6
    *:Redox:*:*)
	echo ${UNAME_MACHINE}-unknown-redox
	exit ;;
    mips:OSF1:*.*)
        echo mips-dec-osf1
        exit ;;
d318 9
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);
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
d638 2
a639 2
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
d858 4
d877 12
d895 3
d1100 1
a1100 1
    i*86:*:4.*:*)
d1307 2
a1308 2
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
a1314 7
		# 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
d1338 1
a1338 1
    NEO-*:NONSTOP_KERNEL:*:*)
d1344 1
a1344 1
    NSR-*:NONSTOP_KERNEL:*:*)
d1347 1
a1347 1
    NSX-*:NONSTOP_KERNEL:*:*)
a1420 13
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

d1422 1
d1425 2
a1426 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:
d1428 1
a1428 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1430 1
a1430 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1462 1
a1462 1
# eval: (add-hook 'write-file-functions 'time-stamp)
@


1.14.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-03-05'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
d837 3
a839 3
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
a840 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
a1342 3
    NSX-?:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
@


1.13
log
@Update supporting files for components which rely on autoconf to allow systems
introducing since release of software to be recognised. This should hopefully
allow the builds to progress a littles further on systems such as the POWER8
which features a little endian 64-bit PowerPC CPU identified as ppc64le.
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
@


1.12
log
@Preserve the arm architecture version (if present)
@
text
@d3 1
a3 1
#   Copyright 1992-2016 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2016-04-02'
d53 1
a53 1
Copyright 1992-2016 Free Software Foundation, Inc.
a177 1
	    coldfire) machine=m5407-unknown ;;
d189 1
a189 1
	# to ELF recently, or will in the future and ABI.
a190 1
	    coldfire) os=netbsdelf ;;
d213 2
a214 8
		eval $set_cc_for_build
		if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ARM_PCS_VFP
		then
		    abi=-eabi
		else
		    abi=-eabihf
		fi
d1003 3
d1038 3
d1420 3
a1422 3
This script, last modified $timestamp, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from
d1428 3
a1430 4
If the version you run ($0) is already up to date, please
send the following data and any information you think might be
pertinent to <config-patches@@gnu.org> in order to provide the needed
information to handle your system.
@


1.12.4.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d178 1
d190 1
a190 1
	# to ELF recently (or will in the future) and ABI.
d192 1
d215 8
a222 2
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
a1010 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1042 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1422 3
a1424 3
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:
d1430 4
a1433 3
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.
@


1.12.2.1
log
@Sync with HEAD
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d178 1
d190 1
a190 1
	# to ELF recently (or will in the future) and ABI.
d192 1
d215 8
a222 2
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
a1010 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1042 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1422 3
a1424 3
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:
d1430 4
a1433 3
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.
@


1.11
log
@For earm use the compiler to determine sf vs hf
@
text
@a178 2
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
@


1.10
log
@Doh... don't add the ABI to 'os'.  Hopefully arm is really fixed now.
@
text
@d217 8
a224 2
		expr='s/^earmv[0-9]/-eabi/;s/eb$//'
		abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
@


1.9
log
@Sync config.guess with upstream, but maintain earm* stuff.

Fixes tools build on arm platform.
@
text
@d196 1
a196 8
		eval $set_cc_for_build
		if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ARM_PCS_VFP
		then
		    os=netbsdelf-eabi
		else
		    os=netbsdelf-eabihf
		fi
@


1.8
log
@merge GCC 5.3.  round 1.  this probably won't work  :-)

libsanitizer likely needs to be re-ported, though i've done most of
the updating we'll need i think already.
@
text
@d3 1
a3 1
#   Copyright 1992-2015 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2015-01-01'
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d53 1
a53 1
Copyright 1992-2015 Free Software Foundation, Inc.
d171 4
a174 2
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
a175 2
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
d184 5
d221 7
d238 1
a238 1
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
d244 1
a244 1
	echo "${machine}-${os}${release}"
d254 4
d270 3
d289 1
a289 1
		UNAME_MACHINE="alpha" ;;
d291 1
a291 1
		UNAME_MACHINE="alpha" ;;
d293 1
a293 1
		UNAME_MACHINE="alpha" ;;
d295 1
a295 1
		UNAME_MACHINE="alphaev5" ;;
d297 1
a297 1
		UNAME_MACHINE="alphaev56" ;;
d299 1
a299 1
		UNAME_MACHINE="alphapca56" ;;
d301 1
a301 1
		UNAME_MACHINE="alphapca57" ;;
d303 1
a303 1
		UNAME_MACHINE="alphaev6" ;;
d305 1
a305 1
		UNAME_MACHINE="alphaev67" ;;
d307 1
a307 1
		UNAME_MACHINE="alphaev68" ;;
d309 1
a309 1
		UNAME_MACHINE="alphaev68" ;;
d311 1
a311 1
		UNAME_MACHINE="alphaev68" ;;
d313 1
a313 1
		UNAME_MACHINE="alphaev69" ;;
d315 1
a315 1
		UNAME_MACHINE="alphaev7" ;;
d317 1
a317 1
		UNAME_MACHINE="alphaev79" ;;
d324 1
a324 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
d397 1
a397 1
	SUN_ARCH="i386"
d401 1
a401 1
	if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
d403 1
a403 1
		(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
d406 1
a406 1
		SUN_ARCH="x86_64"
d431 1
a431 1
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
d656 2
a657 2
		      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
		      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
d660 3
a662 3
			  32) HP_ARCH="hppa2.0n" ;;
			  64) HP_ARCH="hppa2.0w" ;;
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
d701 1
a701 1
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d705 1
a705 1
	if [ ${HP_ARCH} = "hppa2.0w" ]
d718 1
a718 1
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
d721 1
a721 1
		HP_ARCH="hppa2.0w"
d723 1
a723 1
		HP_ARCH="hppa64"
d828 2
a829 2
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
d834 2
a835 2
	FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
d917 1
a917 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d940 1
a940 1
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
d971 3
d986 3
d1065 1
a1065 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1144 1
a1144 1
	# prints for the "djgpp" host, or else GDB configury will decide that
d1293 3
d1309 1
a1309 1
	    if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
d1311 1
a1311 1
		    (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
d1333 1
a1333 1
	if test "$UNAME_PROCESSOR" = "x86"; then
d1364 1
a1364 1
	if test "$cputype" = "386"; then
d1406 1
a1406 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
d1417 3
d1429 1
a1429 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
d1431 1
a1431 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
@


1.7
log
@Resolve conflicts
@
text
@d3 1
a3 1
#   Copyright 1992-2013 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2013-06-10'
d27 1
a27 1
# Originally written by Per Bothner.
d32 1
a32 1
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.
d53 1
a53 1
Copyright 1992-2013 Free Software Foundation, Inc.
d152 1
a152 1
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
d598 3
a600 2
	if [ -x /usr/bin/oslevel ] ; then
		IBM_REV=`/usr/bin/oslevel`
d846 1
a846 1
    i*:MSYS*:*)
d989 2
a990 2
    or1k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d992 1
a992 1
    or32:Linux:*:*)
d1280 11
a1290 9
	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
d1292 8
a1390 148
eval $set_cc_for_build
cat >$dummy.c <<EOF
#ifdef _SEQUENT_
# include <sys/types.h>
# include <sys/utsname.h>
#endif
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 (__arm) && defined (__acorn) && defined (__unix)
  printf ("arm-acorn-riscix\n"); exit (0);
#endif

#if defined (hp300) && !defined (hpux)
  printf ("m68k-hp-bsd\n"); exit (0);
#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
    printf ("vax-dec-ultrix\n"); exit (0);
# 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; }

# Convex versions that predate uname can use getsysinfo(1)

if [ -x /usr/convex/getsysinfo ]
then
    case `getsysinfo -f cpu_type` in
    c1*)
	echo c1-convex-bsd
	exit ;;
    c2*)
	if getsysinfo -f scalar_acc
	then echo c32-convex-bsd
	else echo c2-convex-bsd
	fi
	exit ;;
    c34*)
	echo c34-convex-bsd
	exit ;;
    c38*)
	echo c38-convex-bsd
	exit ;;
    c4*)
	echo c4-convex-bsd
	exit ;;
    esac
fi

@


1.6
log
@merge gcc 4.8.2 r206687 (part 3).
@
text
@d3 1
a3 3
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
#   2011, 2012, 2013 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2012-12-30'
d53 1
a53 3
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 Free Software Foundation, Inc.
d135 21
d893 1
a893 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d897 1
a897 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
d903 1
a903 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d907 1
a907 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d920 5
a924 2
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
d931 1
a931 1
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
d936 1
a936 1
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
d938 1
a938 1
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
d943 1
a943 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d946 1
a946 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d949 1
a949 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d952 1
a952 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d955 1
a955 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d958 1
a958 9
	LIBC=gnu
	eval $set_cc_for_build
	sed 's/^	//' << EOF >$dummy.c
	#ifdef __dietlibc__
	LIBC=dietlibc
	#endif
EOF
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
	echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
d961 1
a961 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d964 1
a964 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d967 1
a967 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d986 1
a986 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
d988 3
d992 1
a992 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d995 1
a995 1
	echo sparc-unknown-linux-gnu
d998 1
a998 1
	echo hppa64-unknown-linux-gnu
d1003 3
a1005 3
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
	  *)    echo hppa-unknown-linux-gnu ;;
d1009 1
a1009 1
	echo powerpc64-unknown-linux-gnu
d1012 7
a1018 1
	echo powerpc-unknown-linux-gnu
d1021 1
a1021 1
	echo ${UNAME_MACHINE}-ibm-linux
d1024 1
a1024 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1027 1
a1027 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1030 1
a1030 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1033 1
a1033 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1036 1
a1036 1
	echo ${UNAME_MACHINE}-dec-linux-gnu
d1039 1
a1039 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1042 1
a1042 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1275 15
a1289 13
	case $UNAME_PROCESSOR in
	    i386)
		eval $set_cc_for_build
		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
		      UNAME_PROCESSOR="x86_64"
		  fi
		fi ;;
	    unknown) UNAME_PROCESSOR=powerpc ;;
	esac
@


1.6.2.1
log
@Rebase.
@
text
@d3 3
a5 1
#   Copyright 1992-2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2013-06-10'
d55 3
a57 1
Copyright 1992-2013 Free Software Foundation, Inc.
a138 21
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'`
	;;
esac

d876 1
a876 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d880 1
a880 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d886 1
a886 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d890 1
a890 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d903 2
a904 5
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d911 1
a911 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d916 1
a916 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
d918 1
a918 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
d923 1
a923 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d926 1
a926 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d929 1
a929 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d932 1
a932 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d935 1
a935 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d938 9
a946 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d949 1
a949 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d952 1
a952 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d955 1
a955 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d974 1
a974 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
a975 3
    or1k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d977 1
a977 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d980 1
a980 1
	echo sparc-unknown-linux-${LIBC}
d983 1
a983 1
	echo hppa64-unknown-linux-${LIBC}
d988 3
a990 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d994 1
a994 1
	echo powerpc64-unknown-linux-${LIBC}
d997 1
a997 7
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
d1000 1
a1000 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d1003 1
a1003 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1006 1
a1006 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1009 1
a1009 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1012 1
a1012 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1015 1
a1015 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d1018 1
a1018 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1021 1
a1021 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1254 13
a1266 15
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	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
	fi
@


1.5
log
@merge gcc 4.8.2 r206687 (part 1).
@
text
@d157 2
@


1.4
log
@Make these consistent.  Make sure all handle earm and coldfire.
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
#   Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2009-12-30'
d11 1
a11 1
# the Free Software Foundation; either version 2 of the License, or
d20 1
a20 3
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
d25 3
a27 6
# the same distribution terms that you use for the rest of that program.


# Originally written by Per Bothner.  Please send patches (context
# diff format) to <config-patches@@gnu.org> and include a ChangeLog
# entry.
d29 1
a29 3
# This script attempts to guess a canonical system name similar to
# config.sub.  If it succeeds, it prints the system name on stdout, and
# exits with 0.  Otherwise, it exits with 1.
d33 3
d56 2
a57 2
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
Software Foundation, Inc.
d144 1
a144 1
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
d194 1
a194 1
	        os=netbsd
d215 4
d241 1
a241 1
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d287 4
a290 1
	exit ;;
d316 1
a316 1
        echo powerpc-ibm-os400
d321 1
a321 1
    arm:riscos:*:*|arm:RISCOS:*:*)
d415 1
a415 1
        echo m68k-atari-mint${UNAME_RELEASE}
d419 1
a419 1
        exit ;;
d421 1
a421 1
        echo m68k-atari-mint${UNAME_RELEASE}
d424 2
a425 2
        echo m68k-milan-mint${UNAME_RELEASE}
        exit ;;
d427 2
a428 2
        echo m68k-hades-mint${UNAME_RELEASE}
        exit ;;
d430 2
a431 2
        echo m68k-unknown-mint${UNAME_RELEASE}
        exit ;;
d501 2
a502 2
        # DG/UX returns AViiON for all architectures
        UNAME_PROCESSOR=`/usr/bin/uname -p`
d515 1
a515 1
 	exit ;;
d572 1
a572 1
    *:AIX:*:[456])
d615 8
a622 8
                    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" ;;
d624 2
a625 2
                        esac ;;
                    esac
d629 1
a629 1
		    sed 's/^              //' << EOF >$dummy.c
d631 30
a660 30
              #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);
              }
d751 1
a751 1
        exit ;;
d757 1
a757 1
        exit ;;
d760 1
a760 1
        exit ;;
d763 1
a763 1
        exit ;;
d766 1
a766 1
        exit ;;
d790 4
a793 4
        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 ;;
d795 3
a797 3
        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}"
d809 2
a810 3
	case ${UNAME_MACHINE} in
	    pc98)
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
d814 1
a814 1
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
d820 3
d826 3
d830 2
a831 2
    	# uname -m includes "-pc" on this system.
    	echo ${UNAME_MACHINE}-mingw32
d837 1
a837 1
    	case ${UNAME_MACHINE} in
d883 7
d899 1
a899 1
        esac
d911 7
a917 1
	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
d924 1
a924 1
	echo cris-axis-linux-gnu
d927 1
a927 1
	echo crisv32-axis-linux-gnu
d930 4
a933 1
    	echo frv-unknown-linux-gnu
d975 1
a975 1
	echo or32-unknown-linux-gnu
d1001 1
a1001 1
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1016 1
a1016 1
	echo x86_64-unknown-linux-gnu
d1019 1
a1019 1
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
d1028 3
a1030 3
        # 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,
d1032 1
a1032 1
        # Use sysv4.2uw... so that sysv4* matches it.
d1064 1
a1064 1
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1092 2
a1093 2
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
        # the processor, so we play safe by assuming i586.
d1098 1
a1098 1
        exit ;;
d1133 2
a1134 2
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
          && { echo i486-ncr-sysv4; exit; } ;;
d1177 4
a1180 4
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
                      # says <Richard.M.Bartel@@ccMail.Census.GOV>
        echo i586-unisys-sysv4
        exit ;;
d1206 1
a1206 1
	        echo mips-nec-sysv${UNAME_RELEASE}
d1208 1
a1208 1
	        echo mips-unknown-sysv${UNAME_RELEASE}
d1210 1
a1210 1
        exit ;;
d1223 3
d1278 4
a1281 1
    NSE-?:NONSTOP_KERNEL:*:*)
d1326 1
a1326 1
        echo mips-sei-seiux${UNAME_RELEASE}
d1332 1
a1332 1
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
d1350 3
a1354 3
#echo '(No uname command or uname output not recognized.)' 1>&2
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2

d1372 1
a1372 1
          "4"
d1374 1
a1374 1
	  ""
d1376 1
a1376 1
         ); exit (0);
@


1.3
log
@Deal with earm*
@
text
@d161 3
a165 2
	    armeb) machine=armeb-unknown ;;
	    arm*) machine=arm-unknown ;;
d174 1
@


1.3.2.1
log
@sync with HEAD
@
text
@d161 2
a164 3
	    coldfire) machine=m5407-unknown ;;
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
a172 1
	    coldfire) os=netbsdelf ;;
@


1.2
log
@PR/46704: Antti Kantee: Recognize tilera in config.guess
@
text
@d161 2
d171 1
a171 1
	# to ELF recently, or will in the future.
d173 10
@


1.2.2.1
log
@resync from head
@
text
@a160 2
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
d169 1
a169 1
	# to ELF recently, or will in the future and ABI.
a170 10
	    earm*)
		eval $set_cc_for_build
		if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ARM_PCS_VFP
		then
		    os=netbsdelf-eabi
		else
		    os=netbsdelf-eabihf
		fi
		;;
@


1.2.2.2
log
@Rebase to HEAD as of a few days ago.
@
text
@d3 3
a5 1
#   Copyright 1992-2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2013-06-10'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 3
a22 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d27 6
a32 3
# 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").
d34 3
a36 1
# Originally written by Per Bothner.
a39 3
#
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.

d59 3
a61 1
Copyright 1992-2013 Free Software Foundation, Inc.
a142 21
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'`
	;;
esac

d148 1
a148 1
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
a164 3
	    coldfire) machine=m5407-unknown ;;
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
a172 1
	    coldfire) os=netbsdelf ;;
d196 1
a196 1
		os=netbsd
a216 4
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
d239 1
a239 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d285 1
a285 4
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
d311 1
a311 1
	echo powerpc-ibm-os400
d316 1
a316 1
    arm*:riscos:*:*|arm*:RISCOS:*:*)
d410 1
a410 1
	echo m68k-atari-mint${UNAME_RELEASE}
d414 1
a414 1
	exit ;;
d416 1
a416 1
	echo m68k-atari-mint${UNAME_RELEASE}
d419 2
a420 2
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
d422 2
a423 2
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
d425 2
a426 2
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
d496 2
a497 2
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d510 1
a510 1
	exit ;;
d567 1
a567 1
    *:AIX:*:[4567])
d610 8
a617 8
		    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" ;;
d619 2
a620 2
			esac ;;
		    esac
d624 1
a624 5
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>
d626 30
a655 26
		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);
		}
d746 1
a746 1
	exit ;;
d752 1
a752 1
	exit ;;
d755 1
a755 1
	exit ;;
d758 1
a758 1
	exit ;;
d761 1
a761 1
	exit ;;
d785 4
a788 4
	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 ;;
d790 3
a792 3
	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}"
d804 3
a806 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
d810 1
a810 1
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
a815 3
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
a818 3
    i*:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
d820 2
a821 2
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
d827 1
a827 1
	case ${UNAME_MACHINE} in
d864 1
a864 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d868 1
a868 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
a872 7
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d882 1
a882 1
	esac
d884 2
a885 5
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d892 1
a892 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d894 1
a894 7
	    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
d898 1
a898 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d901 1
a901 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d904 1
a904 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d907 1
a907 4
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d910 9
a918 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d921 1
a921 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d924 1
a924 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d927 1
a927 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d946 1
a946 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
a947 3
    or1k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d949 1
a949 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d952 1
a952 1
	echo sparc-unknown-linux-${LIBC}
d955 1
a955 1
	echo hppa64-unknown-linux-${LIBC}
d960 3
a962 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d966 1
a966 1
	echo powerpc64-unknown-linux-${LIBC}
d969 1
a969 7
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
d972 1
a972 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d975 1
a975 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d978 1
a978 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d981 1
a981 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d984 1
a984 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d987 1
a987 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d990 1
a990 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d993 1
a993 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1002 3
a1004 3
	# 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,
d1006 1
a1006 1
	# Use sysv4.2uw... so that sysv4* matches it.
d1038 1
a1038 1
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1066 2
a1067 2
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
d1072 1
a1072 1
	exit ;;
d1107 2
a1108 2
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
d1151 4
a1154 4
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
d1180 1
a1180 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1182 1
a1182 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1184 1
a1184 1
	exit ;;
a1196 3
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
d1223 13
a1235 15
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	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
	fi
d1249 1
a1249 4
    NEO-?:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
d1294 1
a1294 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1300 1
a1300 1
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
a1317 3
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
d1320 3
d1340 1
a1340 1
	"4"
d1342 1
a1342 1
	""
d1344 1
a1344 1
	); exit (0);
@


1.1
log
@Initial revision
@
text
@d971 3
@


1.1.1.1
log
@initial import of GCC 4.5.3 sources.  changes since 4.1 are way too numerous
to review, please see http://gcc.gnu.org/gcc-4.5/changes.html (and the 4.2,
4.3 and 4.4 versions, too.)

this includes the core, c++, objc and the non java/ada/fortran parts of the
testsuite.
@
text
@@


1.1.1.2
log
@import GCC 4.8 branch at r206687.

highlights from: http://gcc.gnu.org/gcc-4.6/changes.html

   GCC now has stricter checks for invalid command-line options
   New -Wunused-but-set-variable and -Wunused-but-set-parameter
      warnings
   Many platforms have been obsoleted
   Link-time optimization improvements
   A new switch -fstack-usage has been added
   A new function attribute leaf was introduced
   A new warning, enabled by -Wdouble-promotion
   Support for selectively enabling and disabling warnings via
      #pragma GCC diagnostic has been added
   There is now experimental support for some features from the
      upcoming C1X revision of the ISO C standard
   Improved experimental support for the upcoming C++0x ISO C++
      standard
   G++ now issues clearer diagnostics in several cases
   Updates for ARM, x86, MIPS, PPC/PPC64, SPARC
   Darwin, FreeBSD, Solaris 2, MinGW and Cygwin now all support
      __float128 on 32-bit and 64-bit x86 targets. [*1]

highlights from: http://gcc.gnu.org/gcc-4.7/changes.html

   The -fconserve-space flag has been deprecated
   Support for a new parameter --param case-values-threshold=n
      was added
   Interprocedural and Link-time optimization improvements
   A new built-in, __builtin_assume_aligned, has been added
   A new warning option -Wunused-local-typedefs was added
   A new experimental command-line option -ftrack-macro-expansion
      was added
   Support for atomic operations specifying the C++11/C11 memory
      model has been added
   There is support for some more features from the C11 revision
      of the ISO C standard
   Improved experimental support for the new ISO C++ standard,
      C++11
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*
   A new option (-grecord-gcc-switches) was added

highlights from: http://gcc.gnu.org/gcc-4.8/changes.html

   GCC now uses C++ as its implementation language.  This means
      that to build GCC from sources, you will need a C++
      compiler that understands C++ 2003
   DWARF4 is now the default when generating DWARF debug
      information
   A new general optimization level, -Og, has been introduced
   A new option -ftree-partial-pre was added
   The option -fconserve-space has been removed
   The command-line options -fipa-struct-reorg and
      -fipa-matrix-reorg have been removed
   Interprocedural and Link-time optimization improvements
   AddressSanitizer, a fast memory error detector, has been
      added  [*2]
   A new -Wsizeof-pointer-memaccess warning has been added
   G++ now supports a -std=c++1y option for experimentation
      with features proposed for the next revision of the
      standard, expected around 2014
   Improved experimental support for the new ISO C++ standard,
      C++11
   A new port has been added to support AArch64
   Updates for ARM, x86, MIPS, PPC/PPC64, SH, SPARC, TILE*


[*1] we should support this too!
[*2] we should look into this.
     https://code.google.com/p/address-sanitizer/
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
#   2011, 2012, 2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2012-12-30'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 3
a22 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d27 6
a32 3
# 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").
d34 3
a36 1
# Originally written by Per Bothner.
a39 3
#
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.

d60 2
a61 2
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 Free Software Foundation, Inc.
d148 1
a148 1
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
d184 1
a184 1
		os=netbsd
a204 4
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
d227 1
a227 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d273 1
a273 4
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
d299 1
a299 1
	echo powerpc-ibm-os400
d304 1
a304 1
    arm*:riscos:*:*|arm*:RISCOS:*:*)
d398 1
a398 1
	echo m68k-atari-mint${UNAME_RELEASE}
d402 1
a402 1
	exit ;;
d404 1
a404 1
	echo m68k-atari-mint${UNAME_RELEASE}
d407 2
a408 2
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
d410 2
a411 2
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
d413 2
a414 2
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
d484 2
a485 2
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d498 1
a498 1
	exit ;;
d555 1
a555 1
    *:AIX:*:[4567])
d598 8
a605 8
		    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" ;;
d607 2
a608 2
			esac ;;
		    esac
d612 1
a612 5
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>
d614 30
a643 26
		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);
		}
d734 1
a734 1
	exit ;;
d740 1
a740 1
	exit ;;
d743 1
a743 1
	exit ;;
d746 1
a746 1
	exit ;;
d749 1
a749 1
	exit ;;
d773 4
a776 4
	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 ;;
d778 3
a780 3
	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}"
d792 3
a794 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
d798 1
a798 1
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
a803 3
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
a806 3
    i*:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
d808 2
a809 2
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
d815 1
a815 1
	case ${UNAME_MACHINE} in
a860 7
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
d870 1
a870 1
	esac
d882 1
a882 7
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
	    fi
d889 1
a889 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d892 1
a892 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d895 1
a895 4
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d937 1
a937 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d963 1
a963 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
a970 3
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
d975 1
a975 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d978 1
a978 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d987 3
a989 3
	# 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,
d991 1
a991 1
	# Use sysv4.2uw... so that sysv4* matches it.
d1023 1
a1023 1
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1051 2
a1052 2
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
d1057 1
a1057 1
	exit ;;
d1092 2
a1093 2
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
d1136 4
a1139 4
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
d1165 1
a1165 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1167 1
a1167 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1169 1
a1169 1
	exit ;;
a1181 3
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
d1234 1
a1234 4
    NEO-?:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
d1279 1
a1279 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1285 1
a1285 1
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
a1302 3
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
d1305 3
d1325 1
a1325 1
	"4"
d1327 1
a1327 1
	""
d1329 1
a1329 1
	); exit (0);
@


1.1.1.3
log
@Import gcc 4.8.3 which has 98 bugs fixed on gcc-4-8-3-pre-r208254
@
text
@d3 3
a5 1
#   Copyright 1992-2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2013-06-10'
d55 3
a57 1
Copyright 1992-2013 Free Software Foundation, Inc.
a138 21
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'`
	;;
esac

d860 1
a860 1
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
d864 1
a864 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d870 1
a870 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d874 1
a874 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d887 2
a888 5
	if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
    arc:Linux:*:* | arceb:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d895 1
a895 1
	    echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d900 1
a900 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
d902 1
a902 1
		echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
d907 1
a907 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d910 1
a910 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d913 1
a913 1
	echo ${UNAME_MACHINE}-axis-linux-${LIBC}
d916 1
a916 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d919 1
a919 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d922 9
a930 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d933 1
a933 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d936 1
a936 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d939 1
a939 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d958 1
a958 1
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
a959 3
    or1k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d961 1
a961 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d964 1
a964 1
	echo sparc-unknown-linux-${LIBC}
d967 1
a967 1
	echo hppa64-unknown-linux-${LIBC}
d972 3
a974 3
	  PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
	  PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
	  *)    echo hppa-unknown-linux-${LIBC} ;;
d978 1
a978 1
	echo powerpc64-unknown-linux-${LIBC}
d981 1
a981 7
	echo powerpc-unknown-linux-${LIBC}
	exit ;;
    ppc64le:Linux:*:*)
	echo powerpc64le-unknown-linux-${LIBC}
	exit ;;
    ppcle:Linux:*:*)
	echo powerpcle-unknown-linux-${LIBC}
d984 1
a984 1
	echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
d987 1
a987 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d990 1
a990 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d993 1
a993 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d996 1
a996 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d999 1
a999 1
	echo ${UNAME_MACHINE}-dec-linux-${LIBC}
d1002 1
a1002 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1005 1
a1005 1
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
d1238 13
a1250 15
	eval $set_cc_for_build
	if test "$UNAME_PROCESSOR" = unknown ; then
	    UNAME_PROCESSOR=powerpc
	fi
	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
	fi
@


1.1.1.4
log
@import GCC 5.3.0.  see these urls for details which are too large to
include here:

	http://gcc.gnu.org/gcc-4.9/changes.html
	http://gcc.gnu.org/gcc-5/changes.html

(note that GCC 5.x is a release stream like GCC 4.9.x, 4.8.x, etc.)


the main issues we will have are:

The default mode for C is now -std=gnu11 instead of -std=gnu89.

ARM:
The deprecated option -mwords-little-endian has been removed.
The options -mapcs, -mapcs-frame, -mtpcs-frame and -mtpcs-leaf-frame
 which are only applicable to the old ABI have been deprecated.

MIPS:
The o32 ABI has been modified and extended. The o32 64-bit
 floating-point register support is now obsolete and has been removed.
 It has been replaced by three ABI extensions FPXX, FP64A, and FP64.
 The meaning of the -mfp64 command-line option has changed. It is now
 used to enable the FP64A and FP64 ABI extensions.
@
text
@d3 1
a3 1
#   Copyright 1992-2015 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2015-01-01'
d27 1
a27 1
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
d32 1
a32 1
# Please send patches to <config-patches@@gnu.org>.
d53 1
a53 1
Copyright 1992-2015 Free Software Foundation, Inc.
d152 1
a152 1
	eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
d582 2
a583 3
	if [ -x /usr/bin/lslpp ] ; then
		IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
			   awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
d829 1
a829 1
    *:MSYS*:*)
d972 2
a973 2
    openrisc*:Linux:*:*)
	echo or1k-unknown-linux-${LIBC}
d975 1
a975 1
    or32:Linux:*:* | or1k*:Linux:*:*)
d1263 9
a1271 11
	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
a1272 8
	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
d1364 148
@


1.1.1.5
log
@import GCC 6.4.0.  see this url for details which are too large to
include here:

   http://gcc.gnu.org/gcc-6/changes.html

the main visible changes appear to be:

- The default mode for C++ is now -std=gnu++14 instead of -std=gnu++98.
- The C and C++ compilers now support attributes on enumerators.
- Diagnostics can now contain "fix-it hints"
- more warnings (some added to -Wall)
@
text
@d3 1
a3 1
#   Copyright 1992-2016 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2016-01-01'
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d53 1
a53 1
Copyright 1992-2016 Free Software Foundation, Inc.
d171 2
a172 4
	UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
	    /sbin/$sysctl 2>/dev/null || \
	    /usr/sbin/$sysctl 2>/dev/null || \
	    echo unknown)`
a178 5
	    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
		;;
d184 1
a184 1
	    arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
a199 7
	# 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
d210 1
a210 1
		release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
d216 1
a216 1
	echo "${machine}-${os}${release}${abi}"
a237 3
    *:Sortix:*:*)
	echo ${UNAME_MACHINE}-unknown-sortix
	exit ;;
a935 3
    e2k:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a947 3
    k1om:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
d1024 1
a1024 1
	echo ${UNAME_MACHINE}-pc-linux-${LIBC}
d1103 1
a1103 1
	# prints for the "djgpp" host, or else GDB configure will decide that
a1372 3
    amd64:Isilon\ OneFS:*:*)
	echo x86_64-unknown-onefs
	exit ;;
d1382 1
a1382 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1384 1
a1384 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
@


1.1.1.6
log
@import GCC 7.4.0.  main changes include:

The non-standard C++0x type traits has_trivial_default_constructor,
has_trivial_copy_constructor and has_trivial_copy_assign have been
removed.

On ARM targets (arm*-*-*), a bug introduced in GCC 5 that affects
conformance to the procedure call standard (AAPCS) has been fixed.

Many optimiser improvements

DWARF-5 support.

Many new and enhanced warnings.

Warnings about format strings now underline the pertinent part of
the string, and can offer suggested fixes.

Several new warnings related to buffer overflows and buffer
truncation.

New __builtin_add_overflow_p, __builtin_sub_overflow_p,
__builtin_mul_overflow_p built-ins added that test for overflow.

The C++ front end has experimental support for all of the current
C++17 draft.

The -fverbose-asm option has been expanded to prints comments
showing the source lines that correspond to the assembly.

The gcc and g++ driver programs will now provide suggestions for
misspelled arguments to command-line options.


AArch64 specific:

GCC has been updated to the latest revision of the procedure call
standard (AAPCS64) to provide support for parameter passing when
data types have been over-aligned.

The ARMv8.2-A and ARMv8.3-A architecture are now supported.

ARM specific:

Support for the ARMv5 and ARMv5E architectures has been
deprecated (which have no known implementations).

A new command-line option -mpure-code has been added. It does not
allow constant data to be placed in code sections.

x86 specific:

Support for the AVX-512 4FMAPS, 4VNNIW, VPOPCNTDQ and Software
Guard Extensions (SGX) ISA extensions has been added.

PPC specific:

GCC now diagnoses inline assembly that clobbers register r2.

RISC-V specific:

Support for the RISC-V instruction set has been added.

SH specific:

Support for SH5/SH64 has been removed.

Support for SH2A has been enhanced.
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-03-05'
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d189 1
a189 1
	# to ELF recently (or will in the future) and ABI.
d191 1
a191 4
	    earm*)
		os=netbsdelf
		;;
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
a239 4
    *:LibertyBSD:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
	exit ;;
d271 1
a271 1
		UNAME_MACHINE=alpha ;;
d273 1
a273 1
		UNAME_MACHINE=alpha ;;
d275 1
a275 1
		UNAME_MACHINE=alpha ;;
d277 1
a277 1
		UNAME_MACHINE=alphaev5 ;;
d279 1
a279 1
		UNAME_MACHINE=alphaev56 ;;
d281 1
a281 1
		UNAME_MACHINE=alphapca56 ;;
d283 1
a283 1
		UNAME_MACHINE=alphapca57 ;;
d285 1
a285 1
		UNAME_MACHINE=alphaev6 ;;
d287 1
a287 1
		UNAME_MACHINE=alphaev67 ;;
d289 1
a289 1
		UNAME_MACHINE=alphaev68 ;;
d291 1
a291 1
		UNAME_MACHINE=alphaev68 ;;
d293 1
a293 1
		UNAME_MACHINE=alphaev68 ;;
d295 1
a295 1
		UNAME_MACHINE=alphaev69 ;;
d297 1
a297 1
		UNAME_MACHINE=alphaev7 ;;
d299 1
a299 1
		UNAME_MACHINE=alphaev79 ;;
d306 1
a306 1
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
d379 1
a379 1
	SUN_ARCH=i386
d383 1
a383 1
	if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d385 1
a385 1
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d388 1
a388 1
		SUN_ARCH=x86_64
d413 1
a413 1
	test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
d638 2
a639 2
		      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
		      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
d642 3
a644 3
			  32) HP_ARCH=hppa2.0n ;;
			  64) HP_ARCH=hppa2.0w ;;
			  '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
d683 1
a683 1
		    (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
d687 1
a687 1
	if [ ${HP_ARCH} = hppa2.0w ]
d700 1
a700 1
	    if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
d703 1
a703 1
		HP_ARCH=hppa2.0w
d705 1
a705 1
		HP_ARCH=hppa64
d810 2
a811 2
	FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
d816 2
a817 2
	FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
	FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d833 3
a835 3
		UNAME_PROCESSOR=x86_64 ;;
	    i386)
		UNAME_PROCESSOR=i586 ;;
a836 1
	echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
d899 1
a899 1
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
d922 1
a922 1
	if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
a995 3
    mips64el:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1027 3
    riscv32:Linux:*:* | riscv64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
	exit ;;
a1274 3
    SX-ACE:SUPER-UX:*:*)
	echo sxace-nec-superux${UNAME_RELEASE}
	exit ;;
d1288 1
a1288 1
	    if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
d1290 1
a1290 1
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
d1312 1
a1312 1
	if test "$UNAME_PROCESSOR" = x86; then
a1329 3
    NSX-?:NONSTOP_KERNEL:*:*)
	echo nsx-tandem-nsk${UNAME_RELEASE}
	exit ;;
d1343 1
a1343 1
	if test "$cputype" = 386; then
d1385 1
a1385 1
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
d1404 3
a1406 3
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:
d1412 4
a1415 3
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.
@


1.1.1.7
log
@import GCC 8.3.  it includes these new features:
- many optimisations improved: inter-procedural, profile-directed,
  LTO, loops including user-controllable unroll support, and more.
- columns numbers added to line numbers in dwarf
- gcov extended significantly
- many sanitizer updates
- many new warning messages
- many better hints and more useful error messages
- minor ABI changes on x86-64 libstdc++, and some c++17 modes
- draft c++2a features
- better c++17 experimental support
- Armv8.4-A supported, better 8.2-A and 8.3-A support, including
  32 bit arm port.  cortex a-55, a-75 and a-55.a-75 combo support.
- in the GCC bugzilla, 8.1 shows 1149 bugs fixed, 8.2 shows 100, and
  8.3 shows 158.
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-01-01'
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/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
a246 3
    *:MidnightBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE}
	exit ;;
a261 6
    *:Redox:*:*)
	echo ${UNAME_MACHINE}-unknown-redox
	exit ;;
    mips:OSF1:*.*)
        echo mips-dec-osf1
        exit ;;
d318 9
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);
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
d638 2
a639 2
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
d858 4
d877 12
d895 3
d1100 1
a1100 1
    i*86:*:4.*:*)
d1307 2
a1308 2
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
a1314 7
		# 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
d1338 1
a1338 1
    NEO-*:NONSTOP_KERNEL:*:*)
d1344 1
a1344 1
    NSR-*:NONSTOP_KERNEL:*:*)
d1347 1
a1347 1
    NSX-*:NONSTOP_KERNEL:*:*)
a1420 13
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

d1422 1
d1425 2
a1426 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:
d1428 1
a1428 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1430 1
a1430 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1462 1
a1462 1
# eval: (add-hook 'write-file-functions 'time-stamp)
@


1.1.1.8
log
@import GCC 7.5.0.  doing this here so that the vendor branch has
the code we'll merge into gcc.old and the netbsd-9 tree gcc tree.
GCC 8.4.0 will be imported immediately on top of this again,
restoring the current status.

these PRs in the GCC bugzilla are fixed with this update:

89869 80693 89795 84272 85593 86669 87148 87647 87895 88103 88107 88563
88870 88976 89002 89187 89195 89234 89303 89314 89354 89361 89403 89412
89512 89520 89590 89621 89663 89679 89704 89734 89872 89933 90090 90208
87075 85870 89009 89242 88167 80864 81933 85890 86608 87145 88857 89024
89119 89214 89511 89612 89705 89400 81740 82186 84552 86554 87609 88105
88149 88415 88739 88903 89135 89223 89296 89505 89572 89677 89698 89710
90006 90020 90071 90328 90474 91126 91162 91812 91887 90075 88998 89945
87047 87506 88074 88656 88740 91137 89008 84010 89349 91136 91347 91995
89397 87030 60702 78884 85594 87649 87725 88181 88470 88553 88568 88588
88620 88644 88906 88949 89246 89587 89726 89768 89796 89998 90108 90756
90950 91704 88825 88983 86538 51333 89446 90220 91308 92143 89392 90213
90278 91131 91200 91510 89037 91481 87673 88418 88938 88948 90547 27221
58321 61250 67183 67958 77583 83531 86215 88648 88720 88726 89091 89466
89629 90105 90329 90585 90760 90924 91087 89222 81956 71861 35031 69455
81849 82993 85798 88138 88155 88169 88205 88206 88228 88249 88269 88376
77703 80260 82077 86248 88393 90786 57048 66089 66695 67679 68009 71723
72714 84394 85544 87734 88298 90937 91557 63891 64132 65342 68649 68717
71066 71860 71935 77746 78421 78645 78865 78983 79485 79540 85953 88326
89651 90744
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-03-05'
d18 1
a18 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d30 1
a30 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Operation modes:
d53 1
a53 1
Copyright 1992-2017 Free Software Foundation, Inc.
d247 3
d265 6
a326 9
    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 ;;
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);
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
d638 2
a639 2
	    9000/31? )            HP_ARCH=m68000 ;;
	    9000/[34]?? )         HP_ARCH=m68k ;;
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
a857 4
    i*:windows32*:*)
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
	exit ;;
a872 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 ;;
a878 3
    p*:CYGWIN*:*)
	echo powerpcle-unknown-cygwin
	exit ;;
d1081 1
a1081 1
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
d1288 2
a1289 2
		    (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		    grep IS_64BIT_ARCH >/dev/null
d1296 7
d1326 1
a1326 1
    NEO-?:NONSTOP_KERNEL:*:*)
d1332 1
a1332 1
    NSR-?:NONSTOP_KERNEL:*:*)
d1335 1
a1335 1
    NSX-?:NONSTOP_KERNEL:*:*)
d1409 13
a1422 1
$0: unable to guess system type
d1425 2
a1426 2
operating system you are using. If your script is old, overwrite
config.guess and config.sub with the latest versions from:
d1428 1
a1428 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1430 1
a1430 1
  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1462 1
a1462 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


1.1.1.9
log
@re-import GCC 8.4.0.
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-01-01'
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/gitweb/?p=config.git;a=blob_plain;f=config.guess
d42 1
a42 1
Options:
d53 1
a53 1
Copyright 1992-2018 Free Software Foundation, Inc.
a246 3
    *:MidnightBSD:*:*)
	echo ${UNAME_MACHINE}-unknown-midnightbsd${UNAME_RELEASE}
	exit ;;
a261 6
    *:Redox:*:*)
	echo ${UNAME_MACHINE}-unknown-redox
	exit ;;
    mips:OSF1:*.*)
        echo mips-dec-osf1
        exit ;;
d318 9
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);
d617 1
a617 1
    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
d638 2
a639 2
	    9000/31?)            HP_ARCH=m68000 ;;
	    9000/[34]??)         HP_ARCH=m68k ;;
d752 1
a752 1
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
d761 1
a761 1
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
d858 4
d877 12
d895 3
d1100 1
a1100 1
    i*86:*:4.*:*)
d1307 2
a1308 2
		       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		       grep IS_64BIT_ARCH >/dev/null
a1314 7
		# 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
d1338 1
a1338 1
    NEO-*:NONSTOP_KERNEL:*:*)
d1344 1
a1344 1
    NSR-*:NONSTOP_KERNEL:*:*)
d1347 1
a1347 1
    NSX-*:NONSTOP_KERNEL:*:*)
a1420 13
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

d1422 1
d1425 2
a1426 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:
d1428 1
a1428 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
d1430 1
a1430 1
  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d1462 1
a1462 1
# eval: (add-hook 'write-file-functions 'time-stamp)
@


1.1.1.10
log
@initial import of GCC 9.3.0.  changes include:

- live patching support
- shell completion help
- generally better diagnostic output (less verbose/more useful)
- diagnostics and optimisation choices can be emitted in json
- asan memory usage reduction
- many general, and specific to switch, inter-procedure,
  profile and link-time optimisations.  from the release notes:
  "Overall compile time of Firefox 66 and LibreOffice 6.2.3 on
  an 8-core machine was reduced by about 5% compared to GCC 8.3"
- OpenMP 5.0 support
- better spell-guesser
- partial experimental support for c2x and c++2a
- c++17 is no longer experimental
- arm AAPCS GCC 6-8 structure passing bug fixed, may cause
  incompatibility (restored compat with GCC 5 and earlier.)
- openrisc support
@
text
@d3 1
a3 1
#   Copyright 1992-2019 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2019-01-03'
d53 1
a53 1
Copyright 1992-2019 Free Software Foundation, Inc.
d87 2
d99 24
a122 28
tmp=
# shellcheck disable=SC2172
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15

set_cc_for_build() {
    : "${TMPDIR=/tmp}"
    # shellcheck disable=SC2039
    { 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 c89 c99 ; 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
d135 1
a135 1
case "$UNAME_SYSTEM" in
d141 2
a142 2
	set_cc_for_build
	cat <<-EOF > "$dummy.c"
d152 1
a152 8
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"

	# If ldd exists, use it to detect musl libc.
	if command -v ldd >/dev/null && \
		ldd --version 2>&1 | grep -q ^musl
	then
	    LIBC=musl
	fi
d158 1
a158 1
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
d172 2
a173 2
	    "/sbin/$sysctl" 2>/dev/null || \
	    "/usr/sbin/$sysctl" 2>/dev/null || \
d175 1
a175 1
	case "$UNAME_MACHINE_ARCH" in
d182 3
a184 3
		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
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 1
a233 1
	echo "$machine-${os}${release}${abi-}"
d237 1
a237 1
	echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
d241 1
a241 1
	echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
d245 1
a245 1
	echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
d248 1
a248 1
	echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
d251 1
a251 1
	echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
d254 1
a254 1
	echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
d257 1
a257 1
	echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
d260 1
a260 1
	echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
d263 1
a263 1
	echo "$UNAME_MACHINE"-unknown-sortix
d266 1
a266 1
	echo "$UNAME_MACHINE"-unknown-redox
d322 1
a322 1
	echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
d331 1
a331 1
	echo "$UNAME_MACHINE"-unknown-amigaos
d334 1
a334 1
	echo "$UNAME_MACHINE"-unknown-morphos
d346 1
a346 1
	echo arm-acorn-riscix"$UNAME_RELEASE"
d373 1
a373 1
	echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
d376 1
a376 1
	echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d379 1
a379 14
	set_cc_for_build
	SUN_ARCH=sparc
	# 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 __sparcv9'; echo IS_64BIT_ARCH; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_64BIT_ARCH >/dev/null
	    then
		SUN_ARCH=sparcv9
	    fi
	fi
	echo "$SUN_ARCH"-sun-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d382 1
a382 1
	echo i386-pc-auroraux"$UNAME_RELEASE"
d385 1
a385 1
	set_cc_for_build
d398 1
a398 1
	echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d404 1
a404 1
	echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d413 1
a413 1
	echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
d416 1
a416 1
	echo m68k-sun-sunos"$UNAME_RELEASE"
d420 1
a420 1
	test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
d423 1
a423 1
		echo m68k-sun-sunos"$UNAME_RELEASE"
d426 1
a426 1
		echo sparc-sun-sunos"$UNAME_RELEASE"
d431 1
a431 1
	echo sparc-auspex-sunos"$UNAME_RELEASE"
d442 1
a442 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d445 1
a445 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d448 1
a448 1
	echo m68k-atari-mint"$UNAME_RELEASE"
d451 1
a451 1
	echo m68k-milan-mint"$UNAME_RELEASE"
d454 1
a454 1
	echo m68k-hades-mint"$UNAME_RELEASE"
d457 1
a457 1
	echo m68k-unknown-mint"$UNAME_RELEASE"
d460 1
a460 1
	echo m68k-apple-machten"$UNAME_RELEASE"
d463 1
a463 1
	echo powerpc-apple-machten"$UNAME_RELEASE"
d469 1
a469 1
	echo mips-dec-ultrix"$UNAME_RELEASE"
d472 1
a472 1
	echo vax-dec-ultrix"$UNAME_RELEASE"
d475 1
a475 1
	echo clipper-intergraph-clix"$UNAME_RELEASE"
d478 2
a479 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
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 1
a504 1
	echo mips-mips-riscos"$UNAME_RELEASE"
d530 1
a530 1
	if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
d532 2
a533 2
	    if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
	       [ "$TARGET_BINARY_INTERFACE"x = x ]
d535 1
a535 1
		echo m88k-dg-dgux"$UNAME_RELEASE"
d537 1
a537 1
		echo m88k-dg-dguxbcs"$UNAME_RELEASE"
d540 1
a540 1
	    echo i586-dg-dgux"$UNAME_RELEASE"
d557 1
a557 1
	echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
d569 1
a569 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d571 1
a571 1
	echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
d575 2
a576 2
		set_cc_for_build
		sed 's/^		//' << EOF > "$dummy.c"
d587 1
a587 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
d601 1
a601 1
	if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
d610 1
a610 1
		IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
d612 1
a612 1
	echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
d621 1
a621 1
	echo romp-ibm-bsd"$UNAME_RELEASE"   # 4.3 with uname added to
d636 2
a637 2
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	case "$UNAME_MACHINE" in
d644 1
a644 1
		    case "$sc_cpu_version" in
d648 1
a648 1
			case "$sc_kernel_bits" in
d655 3
a657 3
		if [ "$HP_ARCH" = "" ]; then
		    set_cc_for_build
		    sed 's/^		//' << EOF > "$dummy.c"
d690 1
a690 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
d694 1
a694 1
	if [ "$HP_ARCH" = hppa2.0w ]
d696 1
a696 1
	    set_cc_for_build
d715 1
a715 1
	echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
d718 2
a719 2
	HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
	echo 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"` &&
d769 1
a769 1
	    echo "$UNAME_MACHINE"-unknown-osf1mk
d771 1
a771 1
	    echo "$UNAME_MACHINE"-unknown-osf1
d796 1
a796 1
	echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d799 1
a799 1
	echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
d805 1
a805 1
	echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d808 1
a808 1
	echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d811 1
a811 1
	echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d814 1
a814 1
	echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
d819 1
a819 1
	FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
d824 1
a824 1
	FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
d828 1
a828 1
	echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
d831 1
a831 1
	echo sparc-unknown-bsdi"$UNAME_RELEASE"
d834 1
a834 12
	echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
	exit ;;
    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
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi
	else
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf
	fi
d838 1
a838 1
	case "$UNAME_PROCESSOR" in
d844 1
a844 1
	echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d847 1
a847 1
	echo "$UNAME_MACHINE"-pc-cygwin
d850 1
a850 1
	echo "$UNAME_MACHINE"-pc-mingw64
d853 1
a853 1
	echo "$UNAME_MACHINE"-pc-mingw32
d856 1
a856 1
	echo "$UNAME_MACHINE"-pc-msys
d859 1
a859 1
	echo "$UNAME_MACHINE"-pc-pw32
d862 1
a862 1
	case "$UNAME_MACHINE" in
d864 1
a864 1
		echo i586-pc-interix"$UNAME_RELEASE"
d867 1
a867 1
		echo x86_64-unknown-interix"$UNAME_RELEASE"
d870 1
a870 1
		echo ia64-unknown-interix"$UNAME_RELEASE"
d874 1
a874 1
	echo "$UNAME_MACHINE"-pc-uwin
d877 1
a877 1
	echo x86_64-pc-cygwin
d880 1
a880 1
	echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
d884 1
a884 1
	echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
d888 1
a888 1
	echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
d890 2
a891 2
    *:Minix:*:*)
	echo "$UNAME_MACHINE"-unknown-minix
d894 1
a894 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d898 1
a898 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d912 1
a912 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d915 1
a915 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d918 1
a918 1
	set_cc_for_build
d922 1
a922 1
	    echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d927 1
a927 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
d929 1
a929 1
		echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
d934 1
a934 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d937 1
a937 1
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
d940 1
a940 1
	echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
d943 1
a943 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d946 1
a946 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d949 1
a949 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d952 1
a952 1
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
d955 1
a955 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d958 1
a958 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d961 1
a961 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d964 1
a964 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d967 2
a968 2
	set_cc_for_build
	sed 's/^	//' << EOF > "$dummy.c"
d982 2
a983 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
	test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
d986 1
a986 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d989 1
a989 1
	echo or1k-unknown-linux-"$LIBC"
d992 1
a992 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d995 1
a995 1
	echo sparc-unknown-linux-"$LIBC"
d998 1
a998 1
	echo hppa64-unknown-linux-"$LIBC"
d1003 3
a1005 3
	  PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
	  PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
	  *)    echo hppa-unknown-linux-"$LIBC" ;;
d1009 1
a1009 1
	echo powerpc64-unknown-linux-"$LIBC"
d1012 1
a1012 1
	echo powerpc-unknown-linux-"$LIBC"
d1015 1
a1015 1
	echo powerpc64le-unknown-linux-"$LIBC"
d1018 1
a1018 1
	echo powerpcle-unknown-linux-"$LIBC"
d1021 1
a1021 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1024 1
a1024 1
	echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
d1027 1
a1027 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1030 1
a1030 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1033 1
a1033 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1036 1
a1036 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1039 1
a1039 1
	echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
d1042 1
a1042 1
	echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
d1045 1
a1045 1
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
d1059 1
a1059 1
	echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
d1064 1
a1064 1
	echo "$UNAME_MACHINE"-pc-os2-emx
d1067 1
a1067 1
	echo "$UNAME_MACHINE"-unknown-stop
d1070 1
a1070 1
	echo "$UNAME_MACHINE"-unknown-atheos
d1073 1
a1073 1
	echo "$UNAME_MACHINE"-pc-syllable
d1076 1
a1076 1
	echo i386-unknown-lynxos"$UNAME_RELEASE"
d1079 1
a1079 1
	echo "$UNAME_MACHINE"-pc-msdosdjgpp
d1082 1
a1082 1
	UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
d1084 1
a1084 1
		echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
d1086 1
a1086 1
		echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
d1096 1
a1096 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
d1101 1
a1101 1
		echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
d1111 1
a1111 1
		echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
d1113 1
a1113 1
		echo "$UNAME_MACHINE"-pc-sysv32
d1133 1
a1133 1
	  echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
d1135 1
a1135 1
	  echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
d1155 1
a1155 1
	  && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1157 1
a1157 1
	  && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1166 1
a1166 1
	    && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
d1168 1
a1168 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
d1170 1
a1170 1
	    && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
d1172 1
a1172 1
	echo m68k-unknown-lynxos"$UNAME_RELEASE"
d1178 1
a1178 1
	echo sparc-unknown-lynxos"$UNAME_RELEASE"
d1181 1
a1181 1
	echo rs6000-unknown-lynxos"$UNAME_RELEASE"
d1184 1
a1184 1
	echo powerpc-unknown-lynxos"$UNAME_RELEASE"
d1187 1
a1187 1
	echo mips-dde-sysv"$UNAME_RELEASE"
d1198 1
a1198 1
		echo "$UNAME_MACHINE"-sni-sysv4
d1218 1
a1218 1
	echo "$UNAME_MACHINE"-stratus-vos
d1225 1
a1225 1
	echo m68k-apple-aux"$UNAME_RELEASE"
d1232 1
a1232 1
		echo mips-nec-sysv"$UNAME_RELEASE"
d1234 1
a1234 1
		echo mips-unknown-sysv"$UNAME_RELEASE"
d1253 1
a1253 1
	echo sx4-nec-superux"$UNAME_RELEASE"
d1256 1
a1256 1
	echo sx5-nec-superux"$UNAME_RELEASE"
d1259 1
a1259 1
	echo sx6-nec-superux"$UNAME_RELEASE"
d1262 1
a1262 1
	echo sx7-nec-superux"$UNAME_RELEASE"
d1265 1
a1265 1
	echo sx8-nec-superux"$UNAME_RELEASE"
d1268 1
a1268 1
	echo sx8r-nec-superux"$UNAME_RELEASE"
d1271 1
a1271 1
	echo sxace-nec-superux"$UNAME_RELEASE"
d1274 1
a1274 1
	echo powerpc-apple-rhapsody"$UNAME_RELEASE"
d1277 1
a1277 1
	echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
d1281 1
a1281 1
	set_cc_for_build
d1285 1
a1285 1
	if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
d1313 1
a1313 1
	echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
d1321 1
a1321 1
	echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
d1327 1
a1327 1
	echo neo-tandem-nsk"$UNAME_RELEASE"
d1330 1
a1330 1
	echo nse-tandem-nsk"$UNAME_RELEASE"
d1333 1
a1333 4
	echo nsr-tandem-nsk"$UNAME_RELEASE"
	exit ;;
    NSV-*:NONSTOP_KERNEL:*:*)
	echo nsv-tandem-nsk"$UNAME_RELEASE"
d1336 1
a1336 1
	echo nsx-tandem-nsk"$UNAME_RELEASE"
d1345 1
a1345 1
	echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
a1350 1
	# shellcheck disable=SC2154
d1356 1
a1356 1
	echo "$UNAME_MACHINE"-unknown-plan9
d1377 1
a1377 1
	echo mips-sei-seiux"$UNAME_RELEASE"
d1380 1
a1380 1
	echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
d1384 1
a1384 1
	case "$UNAME_MACHINE" in
d1393 1
a1393 1
	echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
d1396 1
a1396 1
	echo "$UNAME_MACHINE"-pc-rdos
d1399 1
a1399 1
	echo "$UNAME_MACHINE"-pc-aros
d1402 1
a1402 1
	echo "$UNAME_MACHINE"-unknown-esx
a1406 3
    *:Unleashed:*:*)
	echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
	exit ;;
d1411 1
a1411 1
case "$UNAME_MACHINE:$UNAME_SYSTEM" in
d1453 4
a1456 4
UNAME_MACHINE = "$UNAME_MACHINE"
UNAME_RELEASE = "$UNAME_RELEASE"
UNAME_SYSTEM  = "$UNAME_SYSTEM"
UNAME_VERSION = "$UNAME_VERSION"
d1462 1
a1462 1
# eval: (add-hook 'before-save-hook 'time-stamp)
@


1.1.1.11
log
@initial import of GCC 10.3.0.  main changes include:

caveats:
- ABI issue between c++14 and c++17 fixed
- profile mode is removed from libstdc++
- -fno-common is now the default

new features:
- new flags -fallocation-dce, -fprofile-partial-training,
  -fprofile-reproducible, -fprofile-prefix-path, and -fanalyzer
- many new compile and link time optimisations
- enhanced drive optimisations
- openacc 2.6 support
- openmp 5.0 features
- new warnings: -Wstring-compare and -Wzero-length-bounds
- extended warnings: -Warray-bounds, -Wformat-overflow,
  -Wrestrict, -Wreturn-local-addr, -Wstringop-overflow,
  -Warith-conversion, -Wmismatched-tags, and -Wredundant-tags
- some likely C2X features implemented
- more C++20 implemented
- many new arm & intel CPUs known

hundreds of reported bugs are fixed.  full list of changes
can be found at:

   https://gcc.gnu.org/gcc-10/changes.html
@
text
@d5 1
a5 1
timestamp='2019-07-24'
a264 3
    *:OS108:*:*)
	echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
	exit ;;
d278 2
a279 2
	echo mips-dec-osf1
	exit ;;
d388 14
a401 1
	echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
a1000 2
	IS_GLIBC=0
	test x"${LIBC}" = xgnu && IS_GLIBC=1
d1003 2
a1004 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

d1006 1
a1006 1
	MIPS_ENDIAN=el
d1009 1
a1009 1
	MIPS_ENDIAN=
d1011 1
a1011 1
	MIPS_ENDIAN=
d1015 2
a1016 2
	eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`"
	test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
d1129 1
a1129 1
	echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
d1313 4
a1316 12
	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
d1318 18
a1335 16
	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
d1338 7
a1344 2
	    # uname -m returns i386 or x86_64
	    UNAME_PROCESSOR=$UNAME_MACHINE
a1448 137
# 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
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; }

@


1.1.1.12
log
@initial import of GCC 12.3.0.

major changes in GCC 11 included:

- The default mode for C++ is now -std=gnu++17 instead of -std=gnu++14.
- When building GCC itself, the host compiler must now support C++11,
  rather than C++98.
- Some short options of the gcov tool have been renamed: -i to -j and
  -j to -H.
- ThreadSanitizer improvements.
- Introduce Hardware-assisted AddressSanitizer support.
- For targets that produce DWARF debugging information GCC now defaults
  to DWARF version 5. This can produce up to 25% more compact debug
  information compared to earlier versions.
- Many optimisations.
- The existing malloc attribute has been extended so that it can be
  used to identify allocator/deallocator API pairs. A pair of new
  -Wmismatched-dealloc and -Wmismatched-new-delete warnings are added.
- Other new warnings:
  -Wsizeof-array-div, enabled by -Wall, warns about divisions of two
    sizeof operators when the first one is applied to an array and the
    divisor does not equal the size of the array element.
  -Wstringop-overread, enabled by default, warns about calls to string
    functions reading past the end of the arrays passed to them as
    arguments.
  -Wtsan, enabled by default, warns about unsupported features in
    ThreadSanitizer (currently std::atomic_thread_fence).
- Enchanced warnings:
  -Wfree-nonheap-object detects many more instances of calls to
    deallocation functions with pointers not returned from a dynamic
    memory allocation function.
  -Wmaybe-uninitialized diagnoses passing pointers or references to
    uninitialized memory to functions taking const-qualified arguments.
  -Wuninitialized detects reads from uninitialized dynamically
    allocated memory.
  -Warray-parameter warns about functions with inconsistent array forms.
  -Wvla-parameter warns about functions with inconsistent VLA forms.
- Several new features from the upcoming C2X revision of the ISO C
  standard are supported with -std=c2x and -std=gnu2x.
- Several C++20 features have been implemented.
- The C++ front end has experimental support for some of the upcoming
  C++23 draft.
- Several new C++ warnings.
- Enhanced Arm, AArch64, x86, and RISC-V CPU support.
- The implementation of how program state is tracked within
  -fanalyzer has been completely rewritten with many enhancements.

see https://gcc.gnu.org/gcc-11/changes.html for a full list.

major changes in GCC 12 include:

- An ABI incompatibility between C and C++ when passing or returning
  by value certain aggregates containing zero width bit-fields has
  been discovered on various targets. x86-64, ARM and AArch64
  will always ignore them (so there is a C ABI incompatibility
  between GCC 11 and earlier with GCC 12 or later), PowerPC64 ELFv2
  always take them into account (so there is a C++ ABI
  incompatibility, GCC 4.4 and earlier compatible with GCC 12 or
  later, incompatible with GCC 4.5 through GCC 11). RISC-V has
  changed the handling of these already starting with GCC 10. As
  the ABI requires, MIPS takes them into account handling function
  return values so there is a C++ ABI incompatibility with GCC 4.5
  through 11.
- STABS: Support for emitting the STABS debugging format is
  deprecated and will be removed in the next release. All ports now
  default to emit DWARF (version 2 or later) debugging info or are
  obsoleted.
- Vectorization is enabled at -O2 which is now equivalent to the
  original -O2 -ftree-vectorize -fvect-cost-model=very-cheap.
- GCC now supports the ShadowCallStack sanitizer.
- Support for __builtin_shufflevector compatible with the clang
  language extension was added.
- Support for attribute unavailable was added.
- Support for __builtin_dynamic_object_size compatible with the
  clang language extension was added.
- New warnings:
  -Wbidi-chars warns about potentially misleading UTF-8
    bidirectional control characters.
  -Warray-compare warns about comparisons between two operands of
    array type.
- Some new features from the upcoming C2X revision of the ISO C
  standard are supported with -std=c2x and -std=gnu2x.
- Several C++23 features have been implemented.
- Many C++ enhancements across warnings and -f options.

see https://gcc.gnu.org/gcc-12/changes.html for a full list.
@
text
@d3 1
a3 1
#   Copyright 1992-2021 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2021-01-25'
d30 1
a30 1
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
d35 1
a35 1
me=$(echo "$0" | sed -e 's,.*/,,')
d53 1
a53 1
Copyright 1992-2021 Free Software Foundation, Inc.
a101 2
    # prevent multiple calls if $tmp is already set
    test "$tmp" && return 0
d104 1
a104 1
    { tmp=$( (umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null) && test -n "$tmp" && test -d "$tmp" ; } ||
d132 4
a135 4
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
d139 3
a141 1
	LIBC=unknown
d150 1
a150 1
	#elif defined(__GLIBC__)
a151 6
	#else
	#include <stdarg.h>
	/* First heuristic to detect musl libc.  */
	#ifdef __DEFINED_va_list
	LIBC=musl
	#endif
d154 1
a154 1
	eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')"
d156 5
a160 11
	# 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
d179 5
a183 4
	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))
a184 1
	    aarch64eb) machine=aarch64_be-unknown ;;
d191 2
a192 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')
d223 1
a223 1
		abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr")
d236 1
a236 1
		release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2)
d245 1
a245 1
	UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//')
d249 1
a249 1
	UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//')
d253 1
a253 1
	UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
a276 3
    *:Twizzler:*:*)
	echo "$UNAME_MACHINE"-unknown-twizzler
	exit ;;
d286 1
a286 1
		UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}')
d289 1
a289 1
		UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $4}')
d296 1
a296 1
	ALPHA_CPU_TYPE=$(/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1)
d334 1
a334 1
	echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)"
d368 1
a368 1
	if test "$( (/bin/universe) 2>/dev/null)" = att ; then
d381 1
a381 1
	case $(/usr/bin/uname -p) in
d385 1
a385 1
	echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
d388 1
a388 1
	echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
d391 1
a391 1
	echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
d402 1
a402 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d410 1
a410 1
	echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
d416 1
a416 1
	echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
d419 1
a419 1
	case "$(/usr/bin/arch -k)" in
d421 1
a421 1
		UNAME_RELEASE=$(uname -v)
d425 1
a425 1
	echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')"
d431 1
a431 1
	UNAME_RELEASE=$( (sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null)
d433 1
a433 1
	case "$(/bin/arch)" in
d513 2
a514 2
	  dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') &&
	  SYSTEM_NAME=$("$dummy" "$dummyarg") &&
d541 2
a542 2
	UNAME_PROCESSOR=$(/usr/bin/uname -p)
	if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
d544 2
a545 2
	    if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
	       test "$TARGET_BINARY_INTERFACE"x = x
d569 1
a569 1
	echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')"
d573 1
a573 1
	exit ;;               # Note that: echo "'$(uname -s)'" gives 'AIX '
d578 2
a579 2
	if test -x /usr/bin/oslevel ; then
		IBM_REV=$(/usr/bin/oslevel)
d599 1
a599 1
		if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy")
d612 1
a612 1
	IBM_CPU_ID=$(/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }')
d618 3
a620 3
	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/)
d648 1
a648 1
	HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
d653 3
a655 3
		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)
d667 1
a667 1
		if test "$HP_ARCH" = ""; then
d702 1
a702 1
		    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy")
d706 1
a706 1
	if test "$HP_ARCH" = hppa2.0w
d730 1
a730 1
	HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
d760 1
a760 1
	$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") &&
d780 1
a780 1
	if test -x /usr/sbin/sysversion ; then
d829 3
a831 3
	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/ /_/')
d835 2
a836 2
	FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///')
	FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/')
d849 1
a849 1
	UNAME_PROCESSOR=$(uname -p)
d854 1
a854 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi
d856 1
a856 1
	    echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf
d860 1
a860 1
	UNAME_PROCESSOR=$(/usr/bin/uname -p)
d867 1
a867 1
	echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
d903 1
a903 1
	echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
d907 1
a907 1
	echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')"
d911 1
a911 1
	echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC"
d924 1
a924 1
	case $(sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null) in
a982 3
    loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
	echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
	exit ;;
d1033 1
a1033 1
	eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')"
d1053 1
a1053 1
	case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in
d1071 1
a1071 1
    riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
d1093 1
a1093 11
	set_cc_for_build
	LIBCABI=$LIBC
	if test "$CC_FOR_BUILD" != no_compiler_found; then
	    if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
		(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
		grep IS_X32 >/dev/null
	    then
		LIBCABI="$LIBC"x32
	    fi
	fi
	echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
d1133 1
a1133 1
	UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//')
d1142 1
a1142 1
	case $(/bin/uname -X | grep "^Machine") in
d1151 1
a1151 1
		UNAME_REL=$(sed -n 's/.*Version //p' </usr/options/cb.name)
d1154 1
a1154 1
		UNAME_REL=$( (/bin/uname -X|grep Release|sed -e 's/.*= //'))
d1204 1
a1204 1
	&& OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
d1215 1
a1215 1
	    && OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
d1248 1
a1248 1
		UNAME_MACHINE=$( (uname -p) 2>/dev/null)
d1282 1
a1282 1
	if test -d /usr/nec; then
a1329 3
    arm64:Darwin:*:*)
	echo aarch64-apple-darwin"$UNAME_RELEASE"
	exit ;;
d1331 1
a1331 1
	UNAME_PROCESSOR=$(uname -p)
d1344 1
a1344 1
	if test "$CC_FOR_BUILD" != no_compiler_found; then
d1368 1
a1368 1
	UNAME_PROCESSOR=$(uname -p)
d1436 1
a1436 1
	echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
d1439 1
a1439 1
	UNAME_MACHINE=$( (uname -p) 2>/dev/null)
d1449 1
a1449 1
	echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')"
d1454 2
a1455 2
    *:AROS:*:*)
	echo "$UNAME_MACHINE"-unknown-aros
d1507 1
a1507 1
  version=$( (hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null);
d1599 1
a1599 1
$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=$($dummy) &&
d1624 1
a1624 1
  https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
d1626 1
a1626 7
  https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
EOF

year=$(echo $timestamp | sed 's,-.*,,')
# shellcheck disable=SC2003
if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then
   cat >&2 <<EOF
d1634 14
a1647 14
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)
a1653 1
fi
@


1.1.1.1.2.1
log
@sync with head
@
text
@a970 3
    tile*:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
@


1.1.1.1.2.2
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
#   2011, 2012, 2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2012-12-30'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 3
a22 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d27 6
a32 3
# 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").
d34 3
a36 1
# Originally written by Per Bothner.
a39 3
#
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.

d60 2
a61 2
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 Free Software Foundation, Inc.
d148 1
a148 1
	# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
a160 2
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
a162 3
	    coldfire) machine=m5407-unknown ;;
	    earm*eb*) machine=armeb-unknown ;;
	    earm*) machine=arm-unknown ;;
d169 1
a169 1
	# to ELF recently, or will in the future and ABI.
a170 11
	    coldfire) os=netbsdelf ;;
	    earm*)
		eval $set_cc_for_build
		if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
			| grep -q __ARM_PCS_VFP
		then
		    os=netbsdelf-eabi
		else
		    os=netbsdelf-eabihf
		fi
		;;
d184 1
a184 1
		os=netbsd
a204 4
    *:Bitrig:*:*)
	UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
	echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
	exit ;;
d227 1
a227 1
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
d273 1
a273 4
	# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
	exitcode=$?
	trap '' 0
	exit $exitcode ;;
d299 1
a299 1
	echo powerpc-ibm-os400
d304 1
a304 1
    arm*:riscos:*:*|arm*:RISCOS:*:*)
d398 1
a398 1
	echo m68k-atari-mint${UNAME_RELEASE}
d402 1
a402 1
	exit ;;
d404 1
a404 1
	echo m68k-atari-mint${UNAME_RELEASE}
d407 2
a408 2
	echo m68k-milan-mint${UNAME_RELEASE}
	exit ;;
d410 2
a411 2
	echo m68k-hades-mint${UNAME_RELEASE}
	exit ;;
d413 2
a414 2
	echo m68k-unknown-mint${UNAME_RELEASE}
	exit ;;
d484 2
a485 2
	# DG/UX returns AViiON for all architectures
	UNAME_PROCESSOR=`/usr/bin/uname -p`
d498 1
a498 1
	exit ;;
d555 1
a555 1
    *:AIX:*:[4567])
d598 8
a605 8
		    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" ;;
d607 2
a608 2
			esac ;;
		    esac
d612 1
a612 5
		    sed 's/^		//' << EOF >$dummy.c

		#define _HPUX_SOURCE
		#include <stdlib.h>
		#include <unistd.h>
d614 30
a643 26
		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);
		}
d734 1
a734 1
	exit ;;
d740 1
a740 1
	exit ;;
d743 1
a743 1
	exit ;;
d746 1
a746 1
	exit ;;
d749 1
a749 1
	exit ;;
d773 4
a776 4
	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 ;;
d778 3
a780 3
	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}"
d792 3
a794 2
	UNAME_PROCESSOR=`/usr/bin/uname -p`
	case ${UNAME_PROCESSOR} in
d798 1
a798 1
		echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
a803 3
    *:MINGW64*:*)
	echo ${UNAME_MACHINE}-pc-mingw64
	exit ;;
a806 3
    i*:MSYS*:*)
	echo ${UNAME_MACHINE}-pc-msys
	exit ;;
d808 2
a809 2
	# uname -m includes "-pc" on this system.
	echo ${UNAME_MACHINE}-mingw32
d815 1
a815 1
	case ${UNAME_MACHINE} in
a860 7
    aarch64:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    aarch64_be:Linux:*:*)
	UNAME_MACHINE=aarch64_be
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
d870 1
a870 1
	esac
d882 1
a882 7
	    if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
		| grep -q __ARM_PCS_VFP
	    then
		echo ${UNAME_MACHINE}-unknown-linux-gnueabi
	    else
		echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
	    fi
d889 1
a889 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d892 1
a892 1
	echo ${UNAME_MACHINE}-axis-linux-gnu
d895 1
a895 4
	echo ${UNAME_MACHINE}-unknown-linux-gnu
	exit ;;
    hexagon:Linux:*:*)
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d937 1
a937 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d963 1
a963 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d978 1
a978 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d981 1
a981 1
	echo ${UNAME_MACHINE}-unknown-linux-gnu
d990 3
a992 3
	# 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,
d994 1
a994 1
	# Use sysv4.2uw... so that sysv4* matches it.
d1026 1
a1026 1
	# UnixWare 7.x, OpenUNIX and OpenServer 6.
d1054 2
a1055 2
	# uname -m prints for DJGPP always 'pc', but it prints nothing about
	# the processor, so we play safe by assuming i586.
d1060 1
a1060 1
	exit ;;
d1095 2
a1096 2
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
	  && { echo i486-ncr-sysv4; exit; } ;;
d1139 4
a1142 4
    PENTIUM:*:4.0*:*)	# Unisys `ClearPath HMP IX 4000' SVR4/MP effort
			# says <Richard.M.Bartel@@ccMail.Census.GOV>
	echo i586-unisys-sysv4
	exit ;;
d1168 1
a1168 1
		echo mips-nec-sysv${UNAME_RELEASE}
d1170 1
a1170 1
		echo mips-unknown-sysv${UNAME_RELEASE}
d1172 1
a1172 1
	exit ;;
a1184 3
    x86_64:Haiku:*:*)
	echo x86_64-unknown-haiku
	exit ;;
d1237 1
a1237 4
    NEO-?:NONSTOP_KERNEL:*:*)
	echo neo-tandem-nsk${UNAME_RELEASE}
	exit ;;
    NSE-*:NONSTOP_KERNEL:*:*)
d1282 1
a1282 1
	echo mips-sei-seiux${UNAME_RELEASE}
d1288 1
a1288 1
	UNAME_MACHINE=`(uname -p) 2>/dev/null`
a1305 3
    x86_64:VMkernel:*:*)
	echo ${UNAME_MACHINE}-unknown-esx
	exit ;;
d1308 3
d1328 1
a1328 1
	"4"
d1330 1
a1330 1
	""
d1332 1
a1332 1
	); exit (0);
@


