head	1.2;
access;
symbols
	netbsd-10-1-RELEASE:1.1.1.12.2.1
	netbsd-8-3-RELEASE:1.1.1.9
	netbsd-9-4-RELEASE:1.1.1.11
	netbsd-10-0-RELEASE:1.1.1.12.2.1
	netbsd-10-0-RC6:1.1.1.12.2.1
	netbsd-10-0-RC5:1.1.1.12.2.1
	netbsd-10-0-RC4:1.1.1.12.2.1
	netbsd-10-0-RC3:1.1.1.12.2.1
	netbsd-10-0-RC2:1.1.1.12.2.1
	netbsd-10-0-RC1:1.1.1.12.2.1
	netbsd-10:1.1.1.12.0.2
	netbsd-10-base:1.1.1.12
	pixman-0-42-2:1.1.1.12
	netbsd-9-3-RELEASE:1.1.1.11
	netbsd-9-2-RELEASE:1.1.1.11
	netbsd-9-1-RELEASE:1.1.1.11
	netbsd-8-2-RELEASE:1.1.1.9
	netbsd-9-0-RELEASE:1.1.1.11
	netbsd-9-0-RC2:1.1.1.11
	netbsd-9-0-RC1:1.1.1.11
	netbsd-9:1.1.1.11.0.2
	netbsd-9-base:1.1.1.11
	pixman-0-38-4:1.1.1.13
	netbsd-8-1-RELEASE:1.1.1.9
	netbsd-8-1-RC1:1.1.1.9
	pixman-0-38-0:1.1.1.10
	pixman-0-36-0:1.1.1.10
	netbsd-7-2-RELEASE:1.1.1.8
	netbsd-8-0-RELEASE:1.1.1.9
	netbsd-8-0-RC2:1.1.1.9
	netbsd-8-0-RC1:1.1.1.9
	netbsd-7-1-2-RELEASE:1.1.1.8
	netbsd-7-1-1-RELEASE:1.1.1.8
	netbsd-8:1.1.1.9.0.2
	netbsd-8-base:1.1.1.9
	netbsd-7-1:1.1.1.8.0.6
	netbsd-7-1-RELEASE:1.1.1.8
	pixman-0-34-0:1.1.1.9
	netbsd-7-1-RC2:1.1.1.8
	netbsd-7-1-RC1:1.1.1.8
	netbsd-7-0-2-RELEASE:1.1.1.8
	netbsd-7-0-1-RELEASE:1.1.1.8
	netbsd-7-0:1.1.1.8.0.4
	netbsd-7-0-RELEASE:1.1.1.8
	netbsd-7-0-RC3:1.1.1.8
	netbsd-7-0-RC2:1.1.1.8
	netbsd-7-0-RC1:1.1.1.8
	netbsd-5-2-3-RELEASE:1.1.1.1.2.1
	netbsd-5-1-5-RELEASE:1.1.1.1.2.1
	netbsd-6-0-6-RELEASE:1.1.1.4
	netbsd-6-1-5-RELEASE:1.1.1.4
	netbsd-7:1.1.1.8.0.2
	netbsd-7-base:1.1.1.8
	pixman-0-32-6:1.1.1.8
	netbsd-6-1-4-RELEASE:1.1.1.4
	netbsd-6-0-5-RELEASE:1.1.1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.7
	pixman-0-32-4:1.1.1.7
	riastradh-drm2:1.1.1.6.0.2
	riastradh-drm2-base:1.1.1.6
	netbsd-6-1-3-RELEASE:1.1.1.4
	netbsd-6-0-4-RELEASE:1.1.1.4
	netbsd-5-2-2-RELEASE:1.1.1.1.2.1
	netbsd-5-1-4-RELEASE:1.1.1.1.2.1
	netbsd-6-1-2-RELEASE:1.1.1.4
	netbsd-6-0-3-RELEASE:1.1.1.4
	netbsd-5-2-1-RELEASE:1.1.1.1.2.1
	netbsd-5-1-3-RELEASE:1.1.1.1.2.1
	netbsd-6-1-1-RELEASE:1.1.1.4
	pixman-0-30-0:1.1.1.6
	netbsd-6-1:1.1.1.4.0.6
	netbsd-6-0-2-RELEASE:1.1.1.4
	netbsd-6-1-RELEASE:1.1.1.4
	netbsd-6-1-RC4:1.1.1.4
	netbsd-6-1-RC3:1.1.1.4
	netbsd-6-1-RC2:1.1.1.4
	netbsd-6-1-RC1:1.1.1.4
	pixman-0-28-2:1.1.1.5
	netbsd-5-2:1.1.1.1.2.1.0.4
	netbsd-6-0-1-RELEASE:1.1.1.4
	netbsd-5-2-RELEASE:1.1.1.1.2.1
	netbsd-5-2-RC1:1.1.1.1.2.1
	netbsd-6-0:1.1.1.4.0.4
	netbsd-6-0-RELEASE:1.1.1.4
	netbsd-6-0-RC2:1.1.1.4
	netbsd-6-0-RC1:1.1.1.4
	netbsd-6:1.1.1.4.0.2
	netbsd-6-base:1.1.1.4
	netbsd-5-1-2-RELEASE:1.1.1.1.2.1
	netbsd-5-1-1-RELEASE:1.1.1.1.2.1
	pixman-0-23-2:1.1.1.4
	pixman-0-21-4:1.1.1.3
	pixman-0-21-2:1.1.1.3
	netbsd-5-1:1.1.1.1.2.1.0.2
	netbsd-5-1-RELEASE:1.1.1.1.2.1
	pixman-0-18-4:1.1.1.3
	netbsd-5-1-RC4:1.1.1.1.2.1
	netbsd-5-1-RC3:1.1.1.1.2.1
	pixman-0-18-2:1.1.1.3
	netbsd-5-1-RC2:1.1.1.1.2.1
	netbsd-5-1-RC1:1.1.1.1.2.1
	netbsd-5-0-2-RELEASE:1.1.1.1
	pixman-0-16-2:1.1.1.2
	netbsd-5-0-1-RELEASE:1.1.1.1
	pixman-0-15-16:1.1.1.2
	pixman-0-15-14:1.1.1.2
	pixman-0-15-10:1.1.1.2
	netbsd-5-0:1.1.1.1.0.4
	netbsd-5-0-RELEASE:1.1.1.1
	netbsd-5-0-RC4:1.1.1.1
	netbsd-5-0-RC3:1.1.1.1
	netbsd-5-0-RC2:1.1.1.1
	netbsd-5-0-RC1:1.1.1.1
	netbsd-5:1.1.1.1.0.2
	netbsd-5-base:1.1.1.1
	pixman-0-12-0:1.1.1.1
	pixman-0-11-4:1.1.1.1
	xorg:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2025.07.22.19.23.06;	author mrg;	state dead;
branches;
next	1.1;
commitid	3122IBtpc9e4dM3G;

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

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

1.1.1.2
date	2009.06.11.04.22.53;	author mrg;	state Exp;
branches;
next	1.1.1.3;

1.1.1.3
date	2010.05.23.02.10.11;	author mrg;	state Exp;
branches;
next	1.1.1.4;

1.1.1.4
date	2011.08.03.05.58.03;	author mrg;	state Exp;
branches;
next	1.1.1.5;

1.1.1.5
date	2013.01.31.10.28.44;	author jmcneill;	state Exp;
branches;
next	1.1.1.6;

1.1.1.6
date	2013.06.05.08.59.11;	author mrg;	state Exp;
branches;
next	1.1.1.7;
commitid	YqP7tFeZXVSA9pSw;

1.1.1.7
date	2014.03.17.01.18.22;	author mrg;	state Exp;
branches;
next	1.1.1.8;
commitid	8YKFWj7w8LGwrZsx;

1.1.1.8
date	2014.07.12.04.28.43;	author mrg;	state Exp;
branches;
next	1.1.1.9;
commitid	xiEMHgKUd5DEJ2Ix;

1.1.1.9
date	2017.03.04.23.15.54;	author mrg;	state Exp;
branches;
next	1.1.1.10;
commitid	C0e4VtqgbS1dVhIz;

1.1.1.10
date	2018.12.30.08.55.27;	author mrg;	state Exp;
branches;
next	1.1.1.11;
commitid	BDt5Wugh6MBKKN5B;

1.1.1.11
date	2019.06.01.06.43.04;	author mrg;	state Exp;
branches;
next	1.1.1.12;
commitid	8MGIJT7rWNmq6spB;

1.1.1.12
date	2022.11.12.03.24.10;	author mrg;	state Exp;
branches
	1.1.1.12.2.1;
next	1.1.1.13;
commitid	t5NiTb3vlcB8vm1E;

1.1.1.13
date	2022.12.17.09.03.59;	author mrg;	state Exp;
branches;
next	;
commitid	hurVPyuGJZKFfT5E;

1.1.1.1.2.1
date	2009.09.17.03.33.30;	author snj;	state Exp;
branches;
next	;

1.1.1.12.2.1
date	2022.12.19.12.05.17;	author martin;	state Exp;
branches;
next	;
commitid	9iZz0t5h3mfzba6E;


desc
@@


1.2
log
@merge pixman 0.46.4.
@
text
@#! /bin/sh
# Configuration validation subroutine script.
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
#   Inc.

timestamp='2007-04-29'

# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine.  It does not imply ALL GNU software can.
#
# 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 2 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, write to the Free Software
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
# 02110-1301, USA.
#
# 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.


# Please send patches to <config-patches@@gnu.org>.  Submit a context
# diff and a properly formatted ChangeLog entry.
#
# Configuration subroutine to validate and canonicalize a configuration type.
# Supply the specified configuration type as an argument.
# If it is invalid, we print an error message on stderr and exit with code 1.
# Otherwise, we print the canonical config type on stdout and succeed.

# This file is supposed to be the same for all GNU packages
# and recognize all the CPU types, system types and aliases
# that are meaningful with *any* GNU software.
# Each package is responsible for reporting which valid configurations
# it does not support.  The user should be able to distinguish
# a failure to support a valid configuration from a meaningless
# configuration.

# The goal of this file is to map all the various variations of a given
# machine specification into a single specification in the form:
#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
# or in some cases, the newer four-part form:
#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
# It is wrong to echo any other type of specification.

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

usage="\
Usage: $0 [OPTION] CPU-MFR-OPSYS
       $0 [OPTION] ALIAS

Canonicalize a configuration name.

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

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

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

Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
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"
       exit 1 ;;

    *local*)
       # First pass through any local machine types.
       echo $1
       exit ;;

    * )
       break ;;
  esac
done

case $# in
 0) echo "$me: missing argument$help" >&2
    exit 1;;
 1) ;;
 *) echo "$me: too many arguments$help" >&2
    exit 1;;
esac

# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
  *)
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
    else os=; fi
    ;;
esac

### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
	-sun*os*)
		# Prevent following clause from handling this invalid input.
		;;
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-apple | -axis | -knuth | -cray)
		os=
		basic_machine=$1
		;;
	-sim | -cisco | -oki | -wec | -winbond)
		os=
		basic_machine=$1
		;;
	-scout)
		;;
	-wrs)
		os=-vxworks
		basic_machine=$1
		;;
	-chorusos*)
		os=-chorusos
		basic_machine=$1
		;;
 	-chorusrdb)
 		os=-chorusrdb
		basic_machine=$1
 		;;
	-hiux*)
		os=-hiuxwe2
		;;
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco5)
		os=-sco3.2v5
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco4)
		os=-sco3.2v4
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco3.2.[4-9]*)
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco3.2v[4-9]*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco*)
		os=-sco3.2v2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-udk*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-isc)
		os=-isc2.2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-clix*)
		basic_machine=clipper-intergraph
		;;
	-isc*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-lynx*)
		os=-lynxos
		;;
	-ptx*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
		;;
	-windowsnt*)
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
		;;
	-psos*)
		os=-psos
		;;
	-mint | -mint[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
esac

# Decode aliases for certain CPU-COMPANY combinations.
case $basic_machine in
	# Recognize the basic CPU types without company name.
	# Some are omitted here because they have special meanings below.
	1750a | 580 \
	| a29k \
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
	| am33_2.0 \
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
	| bfin \
	| c4x | clipper \
	| d10v | d30v | dlx | dsp16xx \
	| fido | fr30 | frv \
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
	| i370 | i860 | i960 | ia64 \
	| ip2k | iq2000 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | mcore | mep \
	| mips | mipsbe | mipseb | mipsel | mipsle \
	| mips16 \
	| mips64 | mips64el \
	| mips64vr | mips64vrel \
	| mips64orion | mips64orionel \
	| mips64vr4100 | mips64vr4100el \
	| mips64vr4300 | mips64vr4300el \
	| mips64vr5000 | mips64vr5000el \
	| mips64vr5900 | mips64vr5900el \
	| mipsisa32 | mipsisa32el \
	| mipsisa32r2 | mipsisa32r2el \
	| mipsisa64 | mipsisa64el \
	| mipsisa64r2 | mipsisa64r2el \
	| mipsisa64sb1 | mipsisa64sb1el \
	| mipsisa64sr71k | mipsisa64sr71kel \
	| mipstx39 | mipstx39el \
	| mn10200 | mn10300 \
	| mt \
	| msp430 \
	| nios | nios2 \
	| ns16k | ns32k \
	| or32 \
	| pdp10 | pdp11 | pj | pjl \
	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
	| pyramid \
	| score \
	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
	| sh64 | sh64le \
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu | strongarm \
	| tahoe | thumb | tic4x | tic80 | tron \
	| v850 | v850e \
	| we32k \
	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
	| z8k)
		basic_machine=$basic_machine-unknown
		;;
	m6811 | m68hc11 | m6812 | m68hc12)
		# Motorola 68HC11/12.
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
		;;
	ms1)
		basic_machine=mt-unknown
		;;

	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
	  basic_machine=$basic_machine-pc
	  ;;
	# Object if more than one company name word.
	*-*-*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		;;
	# Recognize the basic CPU types with company name.
	580-* \
	| a29k-* \
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
	| avr-* | avr32-* \
	| bfin-* | bs2000-* \
	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
	| clipper-* | craynv-* | cydra-* \
	| d10v-* | d30v-* | dlx-* \
	| elxsi-* \
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
	| h8300-* | h8500-* \
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
	| i*86-* | i860-* | i960-* | ia64-* \
	| ip2k-* | iq2000-* \
	| m32c-* | m32r-* | m32rle-* \
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
	| m88110-* | m88k-* | maxq-* | mcore-* \
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
	| mips16-* \
	| mips64-* | mips64el-* \
	| mips64vr-* | mips64vrel-* \
	| mips64orion-* | mips64orionel-* \
	| mips64vr4100-* | mips64vr4100el-* \
	| mips64vr4300-* | mips64vr4300el-* \
	| mips64vr5000-* | mips64vr5000el-* \
	| mips64vr5900-* | mips64vr5900el-* \
	| mipsisa32-* | mipsisa32el-* \
	| mipsisa32r2-* | mipsisa32r2el-* \
	| mipsisa64-* | mipsisa64el-* \
	| mipsisa64r2-* | mipsisa64r2el-* \
	| mipsisa64sb1-* | mipsisa64sb1el-* \
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
	| mipstx39-* | mipstx39el-* \
	| mmix-* \
	| mt-* \
	| msp430-* \
	| nios-* | nios2-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
	| orion-* \
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
	| pyramid-* \
	| romp-* | rs6000-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
	| tahoe-* | thumb-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tron-* \
	| v850-* | v850e-* | vax-* \
	| we32k-* \
	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
	| xstormy16-* | xtensa-* \
	| ymp-* \
	| z8k-*)
		;;
	# Recognize the various machine names and aliases which stand
	# for a CPU type and a company and sometimes even an OS.
	386bsd)
		basic_machine=i386-unknown
		os=-bsd
		;;
	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
		basic_machine=m68000-att
		;;
	3b*)
		basic_machine=we32k-att
		;;
	a29khif)
		basic_machine=a29k-amd
		os=-udi
		;;
    	abacus)
		basic_machine=abacus-unknown
		;;
	adobe68k)
		basic_machine=m68010-adobe
		os=-scout
		;;
	alliant | fx80)
		basic_machine=fx80-alliant
		;;
	altos | altos3068)
		basic_machine=m68k-altos
		;;
	am29k)
		basic_machine=a29k-none
		os=-bsd
		;;
	amd64)
		basic_machine=x86_64-pc
		;;
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	amdahl)
		basic_machine=580-amdahl
		os=-sysv
		;;
	amiga | amiga-*)
		basic_machine=m68k-unknown
		;;
	amigaos | amigados)
		basic_machine=m68k-unknown
		os=-amigaos
		;;
	amigaunix | amix)
		basic_machine=m68k-unknown
		os=-sysv4
		;;
	apollo68)
		basic_machine=m68k-apollo
		os=-sysv
		;;
	apollo68bsd)
		basic_machine=m68k-apollo
		os=-bsd
		;;
	aux)
		basic_machine=m68k-apple
		os=-aux
		;;
	balance)
		basic_machine=ns32k-sequent
		os=-dynix
		;;
	c90)
		basic_machine=c90-cray
		os=-unicos
		;;
	convex-c1)
		basic_machine=c1-convex
		os=-bsd
		;;
	convex-c2)
		basic_machine=c2-convex
		os=-bsd
		;;
	convex-c32)
		basic_machine=c32-convex
		os=-bsd
		;;
	convex-c34)
		basic_machine=c34-convex
		os=-bsd
		;;
	convex-c38)
		basic_machine=c38-convex
		os=-bsd
		;;
	cray | j90)
		basic_machine=j90-cray
		os=-unicos
		;;
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16c)
		basic_machine=cr16c-unknown
		os=-elf
		;;
	crds | unos)
		basic_machine=m68k-crds
		;;
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
	cris | cris-* | etrax*)
		basic_machine=cris-axis
		;;
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
	da30 | da30-*)
		basic_machine=m68k-da30
		;;
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
		basic_machine=mips-dec
		;;
	decsystem10* | dec10*)
		basic_machine=pdp10-dec
		os=-tops10
		;;
	decsystem20* | dec20*)
		basic_machine=pdp10-dec
		os=-tops20
		;;
	delta | 3300 | motorola-3300 | motorola-delta \
	      | 3300-motorola | delta-motorola)
		basic_machine=m68k-motorola
		;;
	delta88)
		basic_machine=m88k-motorola
		os=-sysv3
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
	dpx20 | dpx20-*)
		basic_machine=rs6000-bull
		os=-bosx
		;;
	dpx2* | dpx2*-bull)
		basic_machine=m68k-bull
		os=-sysv3
		;;
	ebmon29k)
		basic_machine=a29k-amd
		os=-ebmon
		;;
	elxsi)
		basic_machine=elxsi-elxsi
		os=-bsd
		;;
	encore | umax | mmax)
		basic_machine=ns32k-encore
		;;
	es1800 | OSE68k | ose68k | ose | OSE)
		basic_machine=m68k-ericsson
		os=-ose
		;;
	fx2800)
		basic_machine=i860-alliant
		;;
	genix)
		basic_machine=ns32k-ns
		;;
	gmicro)
		basic_machine=tron-gmicro
		os=-sysv
		;;
	go32)
		basic_machine=i386-pc
		os=-go32
		;;
	h3050r* | hiux*)
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	h8300hms)
		basic_machine=h8300-hitachi
		os=-hms
		;;
	h8300xray)
		basic_machine=h8300-hitachi
		os=-xray
		;;
	h8500hms)
		basic_machine=h8500-hitachi
		os=-hms
		;;
	harris)
		basic_machine=m88k-harris
		os=-sysv3
		;;
	hp300-*)
		basic_machine=m68k-hp
		;;
	hp300bsd)
		basic_machine=m68k-hp
		os=-bsd
		;;
	hp300hpux)
		basic_machine=m68k-hp
		os=-hpux
		;;
	hp3k9[0-9][0-9] | hp9[0-9][0-9])
		basic_machine=hppa1.0-hp
		;;
	hp9k2[0-9][0-9] | hp9k31[0-9])
		basic_machine=m68000-hp
		;;
	hp9k3[2-9][0-9])
		basic_machine=m68k-hp
		;;
	hp9k6[0-9][0-9] | hp6[0-9][0-9])
		basic_machine=hppa1.0-hp
		;;
	hp9k7[0-79][0-9] | hp7[0-79][0-9])
		basic_machine=hppa1.1-hp
		;;
	hp9k78[0-9] | hp78[0-9])
		# FIXME: really hppa2.0-hp
		basic_machine=hppa1.1-hp
		;;
	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
		# FIXME: really hppa2.0-hp
		basic_machine=hppa1.1-hp
		;;
	hp9k8[0-9][13679] | hp8[0-9][13679])
		basic_machine=hppa1.1-hp
		;;
	hp9k8[0-9][0-9] | hp8[0-9][0-9])
		basic_machine=hppa1.0-hp
		;;
	hppa-next)
		os=-nextstep3
		;;
	hppaosf)
		basic_machine=hppa1.1-hp
		os=-osf
		;;
	hppro)
		basic_machine=hppa1.1-hp
		os=-proelf
		;;
	i370-ibm* | ibm*)
		basic_machine=i370-ibm
		;;
# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
	i*86v32)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv32
		;;
	i*86v4*)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv4
		;;
	i*86v)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv
		;;
	i*86sol2)
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-solaris2
		;;
	i386mach)
		basic_machine=i386-mach
		os=-mach
		;;
	i386-vsta | vsta)
		basic_machine=i386-unknown
		os=-vsta
		;;
	iris | iris4d)
		basic_machine=mips-sgi
		case $os in
		    -irix*)
			;;
		    *)
			os=-irix4
			;;
		esac
		;;
	isi68 | isi)
		basic_machine=m68k-isi
		os=-sysv
		;;
	m88k-omron*)
		basic_machine=m88k-omron
		;;
	magnum | m3230)
		basic_machine=mips-mips
		os=-sysv
		;;
	merlin)
		basic_machine=ns32k-utek
		os=-sysv
		;;
	mingw32)
		basic_machine=i386-pc
		os=-mingw32
		;;
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
	miniframe)
		basic_machine=m68000-convergent
		;;
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
	mips3*-*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
		;;
	mips3*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		;;
	monitor)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	morphos)
		basic_machine=powerpc-unknown
		os=-morphos
		;;
	msdos)
		basic_machine=i386-pc
		os=-msdos
		;;
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
		;;
	mvs)
		basic_machine=i370-ibm
		os=-mvs
		;;
	ncr3000)
		basic_machine=i486-ncr
		os=-sysv4
		;;
	netbsd386)
		basic_machine=i386-unknown
		os=-netbsd
		;;
	netwinder)
		basic_machine=armv4l-rebel
		os=-linux
		;;
	news | news700 | news800 | news900)
		basic_machine=m68k-sony
		os=-newsos
		;;
	news1000)
		basic_machine=m68030-sony
		os=-newsos
		;;
	news-3600 | risc-news)
		basic_machine=mips-sony
		os=-newsos
		;;
	necv70)
		basic_machine=v70-nec
		os=-sysv
		;;
	next | m*-next )
		basic_machine=m68k-next
		case $os in
		    -nextstep* )
			;;
		    -ns2*)
		      os=-nextstep2
			;;
		    *)
		      os=-nextstep3
			;;
		esac
		;;
	nh3000)
		basic_machine=m68k-harris
		os=-cxux
		;;
	nh[45]000)
		basic_machine=m88k-harris
		os=-cxux
		;;
	nindy960)
		basic_machine=i960-intel
		os=-nindy
		;;
	mon960)
		basic_machine=i960-intel
		os=-mon960
		;;
	nonstopux)
		basic_machine=mips-compaq
		os=-nonstopux
		;;
	np1)
		basic_machine=np1-gould
		;;
	nsr-tandem)
		basic_machine=nsr-tandem
		;;
	op50n-* | op60c-*)
		basic_machine=hppa1.1-oki
		os=-proelf
		;;
	openrisc | openrisc-*)
		basic_machine=or32-unknown
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
		;;
	OSE68000 | ose68000)
		basic_machine=m68000-ericsson
		os=-ose
		;;
	os68k)
		basic_machine=m68k-none
		os=-os68k
		;;
	pa-hitachi)
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	paragon)
		basic_machine=i860-intel
		os=-osf
		;;
	pbd)
		basic_machine=sparc-tti
		;;
	pbb)
		basic_machine=m68k-tti
		;;
	pc532 | pc532-*)
		basic_machine=ns32k-pc532
		;;
	pc98)
		basic_machine=i386-pc
		;;
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	pentium | p5 | k5 | k6 | nexgen | viac3)
		basic_machine=i586-pc
		;;
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
		basic_machine=i686-pc
		;;
	pentiumii | pentium2 | pentiumiii | pentium3)
		basic_machine=i686-pc
		;;
	pentium4)
		basic_machine=i786-pc
		;;
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	pentium4-*)
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	pn)
		basic_machine=pn-gould
		;;
	power)	basic_machine=power-ibm
		;;
	ppc)	basic_machine=powerpc-unknown
		;;
	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ppcle | powerpclittle | ppc-le | powerpc-little)
		basic_machine=powerpcle-unknown
		;;
	ppcle-* | powerpclittle-*)
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ppc64)	basic_machine=powerpc64-unknown
		;;
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
		basic_machine=powerpc64le-unknown
		;;
	ppc64le-* | powerpc64little-*)
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	ps2)
		basic_machine=i386-ibm
		;;
	pw32)
		basic_machine=i586-unknown
		os=-pw32
		;;
	rdos)
		basic_machine=i386-pc
		os=-rdos
		;;
	rom68k)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	rm[46]00)
		basic_machine=mips-siemens
		;;
	rtpc | rtpc-*)
		basic_machine=romp-ibm
		;;
	s390 | s390-*)
		basic_machine=s390-ibm
		;;
	s390x | s390x-*)
		basic_machine=s390x-ibm
		;;
	sa29200)
		basic_machine=a29k-amd
		os=-udi
		;;
	sb1)
		basic_machine=mipsisa64sb1-unknown
		;;
	sb1el)
		basic_machine=mipsisa64sb1el-unknown
		;;
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
		;;
	sei)
		basic_machine=mips-sei
		os=-seiux
		;;
	sequent)
		basic_machine=i386-sequent
		;;
	sh)
		basic_machine=sh-hitachi
		os=-hms
		;;
	sh5el)
		basic_machine=sh5le-unknown
		;;
	sh64)
		basic_machine=sh64-unknown
		;;
	sparclite-wrs | simso-wrs)
		basic_machine=sparclite-wrs
		os=-vxworks
		;;
	sps7)
		basic_machine=m68k-bull
		os=-sysv2
		;;
	spur)
		basic_machine=spur-unknown
		;;
	st2000)
		basic_machine=m68k-tandem
		;;
	stratus)
		basic_machine=i860-stratus
		os=-sysv4
		;;
	sun2)
		basic_machine=m68000-sun
		;;
	sun2os3)
		basic_machine=m68000-sun
		os=-sunos3
		;;
	sun2os4)
		basic_machine=m68000-sun
		os=-sunos4
		;;
	sun3os3)
		basic_machine=m68k-sun
		os=-sunos3
		;;
	sun3os4)
		basic_machine=m68k-sun
		os=-sunos4
		;;
	sun4os3)
		basic_machine=sparc-sun
		os=-sunos3
		;;
	sun4os4)
		basic_machine=sparc-sun
		os=-sunos4
		;;
	sun4sol2)
		basic_machine=sparc-sun
		os=-solaris2
		;;
	sun3 | sun3-*)
		basic_machine=m68k-sun
		;;
	sun4)
		basic_machine=sparc-sun
		;;
	sun386 | sun386i | roadrunner)
		basic_machine=i386-sun
		;;
	sv1)
		basic_machine=sv1-cray
		os=-unicos
		;;
	symmetry)
		basic_machine=i386-sequent
		os=-dynix
		;;
	t3e)
		basic_machine=alphaev5-cray
		os=-unicos
		;;
	t90)
		basic_machine=t90-cray
		os=-unicos
		;;
	tic54x | c54x*)
		basic_machine=tic54x-unknown
		os=-coff
		;;
	tic55x | c55x*)
		basic_machine=tic55x-unknown
		os=-coff
		;;
	tic6x | c6x*)
		basic_machine=tic6x-unknown
		os=-coff
		;;
	tx39)
		basic_machine=mipstx39-unknown
		;;
	tx39el)
		basic_machine=mipstx39el-unknown
		;;
	toad1)
		basic_machine=pdp10-xkl
		os=-tops20
		;;
	tower | tower-32)
		basic_machine=m68k-ncr
		;;
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
	udi29k)
		basic_machine=a29k-amd
		os=-udi
		;;
	ultra3)
		basic_machine=a29k-nyu
		os=-sym1
		;;
	v810 | necv810)
		basic_machine=v810-nec
		os=-none
		;;
	vaxv)
		basic_machine=vax-dec
		os=-sysv
		;;
	vms)
		basic_machine=vax-dec
		os=-vms
		;;
	vpp*|vx|vx-*)
		basic_machine=f301-fujitsu
		;;
	vxworks960)
		basic_machine=i960-wrs
		os=-vxworks
		;;
	vxworks68)
		basic_machine=m68k-wrs
		os=-vxworks
		;;
	vxworks29k)
		basic_machine=a29k-wrs
		os=-vxworks
		;;
	w65*)
		basic_machine=w65-wdc
		os=-none
		;;
	w89k-*)
		basic_machine=hppa1.1-winbond
		os=-proelf
		;;
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
	xps | xps100)
		basic_machine=xps100-honeywell
		;;
	ymp)
		basic_machine=ymp-cray
		os=-unicos
		;;
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	none)
		basic_machine=none-none
		os=-none
		;;

# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		basic_machine=hppa1.1-winbond
		;;
	op50n)
		basic_machine=hppa1.1-oki
		;;
	op60c)
		basic_machine=hppa1.1-oki
		;;
	romp)
		basic_machine=romp-ibm
		;;
	mmix)
		basic_machine=mmix-knuth
		;;
	rs6000)
		basic_machine=rs6000-ibm
		;;
	vax)
		basic_machine=vax-dec
		;;
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
		;;
	pdp11)
		basic_machine=pdp11-dec
		;;
	we32k)
		basic_machine=we32k-att
		;;
	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
		basic_machine=sh-unknown
		;;
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
		basic_machine=sparc-sun
		;;
	cydra)
		basic_machine=cydra-cydrome
		;;
	orion)
		basic_machine=orion-highlevel
		;;
	orion105)
		basic_machine=clipper-highlevel
		;;
	mac | mpw | mac-mpw)
		basic_machine=m68k-apple
		;;
	pmac | pmac-mpw)
		basic_machine=powerpc-apple
		;;
	*-unknown)
		# Make sure to match an already-canonicalized machine name.
		;;
	*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		;;
esac

# Here we canonicalize certain aliases for manufacturers.
case $basic_machine in
	*-digital*)
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
		;;
	*-commodore*)
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
		;;
	*)
		;;
esac

# Decode manufacturer-specific aliases for certain operating systems.

if [ x"$os" != x"" ]
then
case $os in
        # First match some system type aliases
        # that might get confused with valid system types.
	# -solaris* is a basic system type, with this one exception.
	-solaris1 | -solaris1.*)
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
		;;
	-solaris)
		os=-solaris2
		;;
	-svr4*)
		os=-sysv4
		;;
	-unixware*)
		os=-sysv4.2uw
		;;
	-gnu/linux*)
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
		;;
	# First accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST END IN A *, to match a version number.
	# -sysv* is not here because it comes later, after sysvr4.
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
	      | -aos* \
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -openbsd* | -solidbsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -chorusos* | -chorusrdb* \
	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* \
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
	# Remember, each alternative MUST END IN *, to match a version number.
		;;
	-qnx*)
		case $basic_machine in
		    x86-* | i*86-*)
			;;
		    *)
			os=-nto$os
			;;
		esac
		;;
	-nto-qnx*)
		;;
	-nto*)
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
		;;
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
		;;
	-mac*)
		os=`echo $os | sed -e 's|mac|macos|'`
		;;
	-linux-dietlibc)
		os=-linux-dietlibc
		;;
	-linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
		;;
	-sunos5*)
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
		;;
	-sunos6*)
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
		;;
	-opened*)
		os=-openedition
		;;
        -os400*)
		os=-os400
		;;
	-wince*)
		os=-wince
		;;
	-osfrose*)
		os=-osfrose
		;;
	-osf*)
		os=-osf
		;;
	-utek*)
		os=-bsd
		;;
	-dynix*)
		os=-bsd
		;;
	-acis*)
		os=-aos
		;;
	-atheos*)
		os=-atheos
		;;
	-syllable*)
		os=-syllable
		;;
	-386bsd)
		os=-bsd
		;;
	-ctix* | -uts*)
		os=-sysv
		;;
	-nova*)
		os=-rtmk-nova
		;;
	-ns2 )
		os=-nextstep2
		;;
	-nsk*)
		os=-nsk
		;;
	# Preserve the version number of sinix5.
	-sinix5.*)
		os=`echo $os | sed -e 's|sinix|sysv|'`
		;;
	-sinix*)
		os=-sysv4
		;;
        -tpf*)
		os=-tpf
		;;
	-triton*)
		os=-sysv3
		;;
	-oss*)
		os=-sysv3
		;;
	-svr4)
		os=-sysv4
		;;
	-svr3)
		os=-sysv3
		;;
	-sysvr4)
		os=-sysv4
		;;
	# This must come after -sysvr4.
	-sysv*)
		;;
	-ose*)
		os=-ose
		;;
	-es1800*)
		os=-ose
		;;
	-xenix)
		os=-xenix
		;;
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
		os=-mint
		;;
	-aros*)
		os=-aros
		;;
	-kaos*)
		os=-kaos
		;;
	-zvmoe)
		os=-zvmoe
		;;
	-none)
		;;
	*)
		# Get rid of the `-' at the beginning of $os.
		os=`echo $os | sed 's/[^-]*-//'`
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
		exit 1
		;;
esac
else

# Here we handle the default operating systems that come with various machines.
# The value should be what the vendor currently ships out the door with their
# machine or put another way, the most popular os provided with the machine.

# Note that if you're going to try to match "-MANUFACTURER" here (say,
# "-sun"), then you have to tell the case statement up towards the top
# that MANUFACTURER isn't an operating system.  Otherwise, code above
# will signal an error saying that MANUFACTURER isn't an operating
# system, and we'll never get to this point.

case $basic_machine in
        score-*)
		os=-elf
		;;
        spu-*)
		os=-elf
		;;
	*-acorn)
		os=-riscix1.2
		;;
	arm*-rebel)
		os=-linux
		;;
	arm*-semi)
		os=-aout
		;;
        c4x-* | tic4x-*)
        	os=-coff
		;;
	# This must come before the *-dec entry.
	pdp10-*)
		os=-tops20
		;;
	pdp11-*)
		os=-none
		;;
	*-dec | vax-*)
		os=-ultrix4.2
		;;
	m68*-apollo)
		os=-domain
		;;
	i386-sun)
		os=-sunos4.0.2
		;;
	m68000-sun)
		os=-sunos3
		# This also exists in the configure program, but was not the
		# default.
		# os=-sunos4
		;;
	m68*-cisco)
		os=-aout
		;;
        mep-*)
		os=-elf
		;;
	mips*-cisco)
		os=-elf
		;;
	mips*-*)
		os=-elf
		;;
	or32-*)
		os=-coff
		;;
	*-tti)	# must be before sparc entry or we get the wrong os.
		os=-sysv3
		;;
	sparc-* | *-sun)
		os=-sunos4.1.1
		;;
	*-be)
		os=-beos
		;;
	*-haiku)
		os=-haiku
		;;
	*-ibm)
		os=-aix
		;;
    	*-knuth)
		os=-mmixware
		;;
	*-wec)
		os=-proelf
		;;
	*-winbond)
		os=-proelf
		;;
	*-oki)
		os=-proelf
		;;
	*-hp)
		os=-hpux
		;;
	*-hitachi)
		os=-hiux
		;;
	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
		os=-sysv
		;;
	*-cbm)
		os=-amigaos
		;;
	*-dg)
		os=-dgux
		;;
	*-dolphin)
		os=-sysv3
		;;
	m68k-ccur)
		os=-rtu
		;;
	m88k-omron*)
		os=-luna
		;;
	*-next )
		os=-nextstep
		;;
	*-sequent)
		os=-ptx
		;;
	*-crds)
		os=-unos
		;;
	*-ns)
		os=-genix
		;;
	i370-*)
		os=-mvs
		;;
	*-next)
		os=-nextstep3
		;;
	*-gould)
		os=-sysv
		;;
	*-highlevel)
		os=-bsd
		;;
	*-encore)
		os=-bsd
		;;
	*-sgi)
		os=-irix
		;;
	*-siemens)
		os=-sysv4
		;;
	*-masscomp)
		os=-rtu
		;;
	f30[01]-fujitsu | f700-fujitsu)
		os=-uxpv
		;;
	*-rom68k)
		os=-coff
		;;
	*-*bug)
		os=-coff
		;;
	*-apple)
		os=-macos
		;;
	*-atari*)
		os=-mint
		;;
	*)
		os=-none
		;;
esac
fi

# Here we handle the case where we know the os, and the CPU type, but not the
# manufacturer.  We pick the logical manufacturer.
vendor=unknown
case $basic_machine in
	*-unknown)
		case $os in
			-riscix*)
				vendor=acorn
				;;
			-sunos*)
				vendor=sun
				;;
			-aix*)
				vendor=ibm
				;;
			-beos*)
				vendor=be
				;;
			-hpux*)
				vendor=hp
				;;
			-mpeix*)
				vendor=hp
				;;
			-hiux*)
				vendor=hitachi
				;;
			-unos*)
				vendor=crds
				;;
			-dgux*)
				vendor=dg
				;;
			-luna*)
				vendor=omron
				;;
			-genix*)
				vendor=ns
				;;
			-mvs* | -opened*)
				vendor=ibm
				;;
			-os400*)
				vendor=ibm
				;;
			-ptx*)
				vendor=sequent
				;;
			-tpf*)
				vendor=ibm
				;;
			-vxsim* | -vxworks* | -windiss*)
				vendor=wrs
				;;
			-aux*)
				vendor=apple
				;;
			-hms*)
				vendor=hitachi
				;;
			-mpw* | -macos*)
				vendor=apple
				;;
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
				vendor=atari
				;;
			-vos*)
				vendor=stratus
				;;
		esac
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
		;;
esac

echo $basic_machine$os
exit

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


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@initial import of pixman-0.11.4
@
text
@@


1.1.1.1.2.1
log
@Apply patch (requested by mrg in ticket #958):
Bring over X.Org updates from HEAD.
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
#   Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2008-01-16'
d75 2
a76 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d372 1
a372 1
	| xstormy16-* | xtensa*-* \
a375 4
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
		;;
a445 8
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
d478 2
a479 2
	cr16)
		basic_machine=cr16-unknown
a670 8
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a815 8
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a1023 4
	tile*)
		basic_machine=tile-unknown
		os=-linux-gnu
		;;
@


1.1.1.2
log
@initial import of pixman-0.15.10
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
#   Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2008-01-16'
d75 2
a76 2
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
d372 1
a372 1
	| xstormy16-* | xtensa*-* \
a375 4
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
		;;
a445 8
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
d478 2
a479 2
	cr16)
		basic_machine=cr16-unknown
a670 8
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a815 8
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
a1023 4
	tile*)
		basic_machine=tile-unknown
		os=-linux-gnu
		;;
@


1.1.1.3
log
@initial import of pixman-0.18.2
@
text
@d7 1
a7 1
timestamp='2009-04-17'
a124 1
  kopensolaris*-gnu* | \
a251 1
	| lm32 \
d253 1
a253 1
	| maxq | mb | microblaze | mcore | mep | metag \
d257 1
a257 1
	| mips64octeon | mips64octeonel \
a258 2
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
a270 1
	| moxie \
d280 1
a280 1
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d289 1
a289 1
	| z8k | z80)
a331 1
	| lm32-* \
d334 1
a334 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
d338 1
a338 1
	| mips64octeon-* | mips64octeonel-* \
a339 2
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
d361 1
a361 1
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
d367 1
a367 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
d374 1
a374 1
	| z8k-* | z80-*)
a441 4
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
a461 4
        cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
a528 4
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
a1130 4
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
d1169 1
a1169 1
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
a1240 1
	      | -kopensolaris* \
d1242 1
a1242 1
	      | -aos* | -aros* \
d1251 1
a1251 1
	      | -chorusos* | -chorusrdb* | -cegcc* \
a1390 3
	-dicos*)
		os=-dicos
		;;
@


1.1.1.4
log
@initial import of pixman-0.23.2.  important changes include:
	- more SSE2 support
	- more arm neon and A8 support
	- several bug fixes
@
text
@d7 1
a7 1
timestamp='2008-01-16'
d125 1
d253 1
d255 1
a255 1
	| maxq | mb | microblaze | mcore | mep \
d259 3
a262 1
	| mips64orion | mips64orionel \
d275 1
d285 1
a285 1
	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d294 1
a294 1
	| z8k)
d337 1
d340 1
a340 1
	| m88110-* | m88k-* | maxq-* | mcore-* \
d344 3
a347 1
	| mips64orion-* | mips64orionel-* \
d369 1
a369 1
	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
d375 1
a375 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
d382 1
a382 1
	| z8k-*)
d450 4
d474 4
d545 4
d1151 4
d1193 1
a1193 1
	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
d1265 1
d1267 1
a1267 1
	      | -aos* \
d1276 1
a1276 1
	      | -chorusos* | -chorusrdb* \
d1416 3
@


1.1.1.5
log
@initial import of pixman-0.28.2
@
text
@d7 1
a7 1
timestamp='2009-04-17'
a124 1
  kopensolaris*-gnu* | \
a251 1
	| lm32 \
d253 1
a253 1
	| maxq | mb | microblaze | mcore | mep | metag \
d257 1
a257 1
	| mips64octeon | mips64octeonel \
a258 2
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
a270 1
	| moxie \
d280 1
a280 1
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d289 1
a289 1
	| z8k | z80)
a331 1
	| lm32-* \
d334 1
a334 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
d338 1
a338 1
	| mips64octeon-* | mips64octeonel-* \
a339 2
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
d361 1
a361 1
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
d367 1
a367 1
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
d374 1
a374 1
	| z8k-* | z80-*)
a441 4
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
a461 4
        cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
a528 4
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
a1130 4
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
d1169 1
a1169 1
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
a1240 1
	      | -kopensolaris* \
d1242 1
a1242 1
	      | -aos* | -aros* \
d1251 1
a1251 1
	      | -chorusos* | -chorusrdb* | -cegcc* \
a1390 3
	-dicos*)
		os=-dicos
		;;
@


1.1.1.6
log
@initial import of pixman-0.30.0
@
text
@d4 2
a5 2
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
#   2011, 2012 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2012-01-01'
d35 1
a35 1
# diff and a properly formatted GNU ChangeLog entry.
a41 3
# You can get the latest version of this script from:
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD

d75 2
a76 3
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
d123 2
a124 3
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  knetbsd*-gnu* | netbsd*-gnu* | \
d152 1
a152 1
	-apple | -axis | -knuth | -cray | -microblaze)
a155 3
	-bluegene*)
		os=-cnk
		;;
d170 2
a171 2
	-chorusrdb)
		os=-chorusrdb
d173 1
a173 1
		;;
a245 1
        | be32 | be64 \
a248 1
	| epiphany \
a250 1
	| hexagon \
a252 1
	| le32 | le64 \
a277 1
	| nds32 | nds32le | nds32be \
a279 1
	| open8 \
d282 1
a282 1
	| powerpc | powerpc64 | powerpc64le | powerpcle \
a283 1
	| rl78 | rx \
d289 3
a291 4
	| spu \
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
	| ubicom32 \
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
d293 1
a293 1
	| x86 | xc16x | xstormy16 | xtensa \
d297 2
a298 10
	c54x)
		basic_machine=tic54x-unknown
		;;
	c55x)
		basic_machine=tic55x-unknown
		;;
	c6x)
		basic_machine=tic6x-unknown
		;;
	m6811 | m68hc11 | m6812 | m68hc12 | picochip)
a307 12
	strongarm | thumb | xscale)
		basic_machine=arm-unknown
		;;

	xscaleeb)
		basic_machine=armeb-unknown
		;;

	xscaleel)
		basic_machine=armel-unknown
		;;

a326 1
	| be32-* | be64-* \
d328 1
a328 1
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
a334 1
	| hexagon-* \
a336 1
	| le32-* | le64-* \
d340 1
a340 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
a361 1
	| nds32-* | nds32le-* | nds32be-* \
a363 1
	| open8-* \
d366 1
a366 1
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
d368 1
a368 1
	| rl78-* | romp-* | rs6000-* | rx-* \
d373 3
a375 4
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
	| tahoe-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tile*-* \
d377 1
a377 3
	| ubicom32-* \
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
	| vax-* \
d379 1
a379 1
	| x86-* | x86_64-* | xc16x-* | xps100-* \
d404 1
a404 1
	abacus)
a469 13
	bluegene*)
		basic_machine=powerpc-ibm
		os=-cnk
		;;
	c54x-*)
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c55x-*)
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c6x-*)
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
d474 1
a474 1
	cegcc)
d506 1
a506 1
	cr16 | cr16-*)
d664 1
a721 3
	microblaze)
		basic_machine=microblaze-xilinx
		;;
a757 4
	msys)
		basic_machine=i386-pc
		os=-msys
		;;
a761 4
	nacl)
		basic_machine=le32-unknown
		os=-nacl
		;;
a825 6
	neo-tandem)
		basic_machine=neo-tandem
		;;
	nse-tandem)
		basic_machine=nse-tandem
		;;
d908 1
a908 1
	ppc | ppcbe)	basic_machine=powerpc-unknown
d910 1
a910 2
	ppc-* | ppcbe-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
a1003 3
	strongarm-* | thumb-*)
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
d1060 12
d1073 1
a1073 1
		basic_machine=$basic_machine-unknown
a1142 3
	xscale-* | xscalee[bl]-*)
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
		;;
d1240 2
a1241 2
	# First match some system type aliases
	# that might get confused with valid system types.
a1242 3
	-auroraux)
		os=-auroraux
		;;
d1263 3
a1265 3
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* \
d1277 2
a1278 3
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -mingw32* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-uclibc* \
d1286 1
a1286 1
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
d1325 1
a1325 1
	-os400*)
d1374 1
a1374 1
	-tpf*)
a1418 2
	-nacl*)
		;;
d1441 1
a1441 1
	score-*)
d1444 1
a1444 1
	spu-*)
d1456 2
a1457 11
	c4x-* | tic4x-*)
		os=-coff
		;;
	tic54x-*)
		os=-coff
		;;
	tic55x-*)
		os=-coff
		;;
	tic6x-*)
		os=-coff
d1477 3
d1484 1
a1484 1
	mep-*)
d1511 1
a1511 1
	*-knuth)
d1616 1
a1616 1
			-cnk*|-aix*)
@


1.1.1.7
log
@initial import of pixman-0.32.4
@
text
@d5 1
a5 1
#   2011, 2012, 2013 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2013-01-11'
d9 7
a15 3
# 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
d18 4
a21 4
# 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.
d24 3
a26 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d31 1
a31 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 2
a35 1
# Please send patches with a ChangeLog entry to config-patches@@gnu.org.
d79 2
a80 2
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 Free Software Foundation, Inc.
d128 1
a128 1
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
a134 4
  android-linux)
    os=-linux-android
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    ;;
d157 1
a157 1
	-apple | -axis | -knuth | -cray | -microblaze*)
a225 6
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
a249 1
	| aarch64 | aarch64_be \
d253 2
a254 4
	| arc \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| be32 | be64 \
d257 1
a257 1
	| d10v | d30v | dlx | dsp16xx | dvp \
d267 1
a267 1
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
a284 1
	| mipsr5900 | mipsr5900el \
d322 1
a322 1
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
d335 1
a335 4
	xgate)
		basic_machine=$basic_machine-unknown
		os=-none
		;;
a357 1
	| aarch64-* | aarch64_be-* \
d379 1
a379 2
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
a396 1
	| mipsr5900-* | mipsr5900el-* \
d778 1
a778 1
	microblaze*)
a780 4
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
a795 18
	mipsEE* | ee | ps2)
		basic_machine=mips64r5900el-scei
		case $os in
		    -linux*)
			;;
		    *)
			os=-elf
			;;
		esac
		;;
	iop)
		basic_machine=mipsel-scei
		os=-irx
		;;
	dvp)
		basic_machine=dvp-scei
		os=-elf
		;;
d1009 1
a1009 5
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
d1336 1
a1336 1
	      | -sym* | -kopensolaris* | -plan9* \
d1342 1
a1342 1
	      | -bitrig* | -openbsd* | -solidbsd* \
d1349 2
a1350 2
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
d1354 1
a1354 1
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
d1482 3
a1532 3
	hexagon-*)
		os=-elf
		;;
@


1.1.1.8
log
@initial import of pixman-0.32.6
@
text
@d5 1
a5 1
#   2011, 2012 Free Software Foundation, Inc.
d7 1
a7 1
timestamp='2012-02-10'
d9 3
a11 7
# This file is (in principle) common to ALL GNU software.
# The presence of a machine in this file suggests that SOME GNU software
# can handle that machine.  It does not imply ALL GNU software can.
#
# 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 2 of the License, or
d14 4
a17 4
# 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.
d25 3
a27 1
# the same distribution terms that you use for the rest of that program.
d30 1
a30 2
# Please send patches to <config-patches@@gnu.org>.  Submit a context
# diff and a properly formatted GNU ChangeLog entry.
d74 2
a75 2
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
Free Software Foundation, Inc.
d123 1
a123 1
  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
d156 1
a156 1
	-apple | -axis | -knuth | -cray | -microblaze)
d225 6
d259 4
a262 2
	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
        | be32 | be64 \
d265 1
a265 1
	| d10v | d30v | dlx | dsp16xx \
d275 1
a275 1
	| maxq | mb | microblaze | mcore | mep | metag \
d293 1
d392 2
a393 1
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
d411 1
d793 1
a793 1
	microblaze)
d796 4
d815 18
d1046 5
a1050 1
	rdos)
d1377 1
a1377 1
	      | -sym* | -kopensolaris* \
d1383 1
a1383 1
	      | -openbsd* | -solidbsd* \
d1390 2
a1391 2
	      | -mingw32* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-uclibc* \
d1395 1
a1395 1
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
a1522 3
	-kaos*)
		os=-kaos
		;;
d1571 3
@


1.1.1.9
log
@initial import of pixman-0.34.0
@
text
@d3 13
a15 7
#   Copyright 1992-2015 Free Software Foundation, Inc.

timestamp='2015-01-01'

# 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
d18 4
a21 4
# 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.
d29 1
a29 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").
d32 2
a33 1
# Please send patches to <config-patches@@gnu.org>.
d76 3
a78 1
Copyright 1992-2015 Free Software Foundation, Inc.
d126 1
a126 1
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
d159 1
a159 1
	-apple | -axis | -knuth | -cray | -microblaze*)
a227 6
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
d256 2
a257 4
	| arc | arceb \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| be32 | be64 \
d259 1
a259 1
	| c4x | c8051 | clipper \
d262 1
a262 1
	| fido | fr30 | frv | ft32 \
a266 1
	| k1om \
d270 1
a270 1
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
a283 1
	| mipsisa32r6 | mipsisa32r6el \
a285 1
	| mipsisa64r6 | mipsisa64r6el \
a287 1
	| mipsr5900 | mipsr5900el \
d294 1
a294 1
	| nios | nios2 | nios2eb | nios2el \
d296 2
a297 1
	| open8 | or1k | or1knd | or32 \
a300 1
	| riscv32 | riscv64 \
a310 1
	| visium \
d325 1
a325 4
	leon|leon[3-9])
		basic_machine=sparc-$basic_machine
		;;
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
d367 1
a367 1
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
d373 1
a373 1
	| c8051-* | clipper-* | craynv-* | cydra-* \
a381 1
	| k1om-* \
d386 1
a386 2
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
a399 1
	| mipsisa32r6-* | mipsisa32r6el-* \
a401 1
	| mipsisa64r6-* | mipsisa64r6el-* \
a403 1
	| mipsr5900-* | mipsr5900el-* \
d409 1
a409 1
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
a411 1
	| or1k*-* \
a428 1
	| visium-* \
a765 3
	leon-*|leon[3-9]-*)
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
		;;
d785 1
a785 1
	microblaze*)
a787 4
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
d789 1
a789 1
		basic_machine=i686-pc
a816 4
	moxiebox)
		basic_machine=moxie-unknown
		os=-moxiebox
		;;
d825 1
a825 1
		basic_machine=i686-pc
d1001 1
a1001 1
	ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
d1016 1
a1016 5
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
d1343 1
a1343 1
	      | -sym* | -kopensolaris* | -plan9* \
d1349 1
a1349 1
	      | -bitrig* | -openbsd* | -solidbsd* \
d1356 3
a1358 3
	      | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
d1365 1
a1365 1
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* | -tirtos*)
d1489 3
a1539 6
	c8051-*)
		os=-elf
		;;
	hexagon-*)
		os=-elf
		;;
@


1.1.1.10
log
@initial import of pixman-0.36.0
@
text
@d3 1
a3 1
#   Copyright 1992-2018 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2018-02-22'
d18 1
a18 1
# along with this program; if not, see <https://www.gnu.org/licenses/>.
d36 1
a36 1
# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d56 2
a57 1
Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
d61 1
a61 1
Options:
d71 1
a71 1
Copyright 1992-2018 Free Software Foundation, Inc.
d98 1
a98 1
       echo "$1"
d116 1
a116 1
maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
d120 2
a121 2
  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  kopensolaris*-gnu* | cloudabi*-eabi* | \
d124 1
a124 1
    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
d128 1
a128 1
    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
d131 3
a133 3
    basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
    if [ "$basic_machine" != "$1" ]
    then os=`echo "$1" | sed 's/.*-/-/'`
d182 1
a182 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d186 1
a186 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d190 1
a190 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d194 1
a194 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d198 1
a198 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d202 1
a202 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d206 1
a206 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d209 1
a209 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d213 1
a213 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d219 1
a219 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
d231 4
a234 1
		basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
a257 1
	| ba \
d262 1
a262 1
	| e2k | epiphany \
d266 1
a266 1
	| i370 | i860 | i960 | ia16 | ia64 \
d302 1
a302 1
	| pdp10 | pj | pjl \
a303 1
	| pru \
d308 1
a308 1
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
d317 1
a317 1
	| wasm32 \
d338 1
a338 1
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
d367 1
a367 1
		echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
a378 1
	| ba-* \
d384 1
a384 1
	| e2k-* | elxsi-* \
d389 1
a389 1
	| i*86-* | i860-* | i960-* | ia16-* | ia64-* \
a429 1
	| pru-* \
a430 1
	| riscv32-* | riscv64-* \
d436 1
a436 1
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
a444 1
	| wasm32-* \
d458 1
a458 1
		basic_machine=i386-pc
d492 1
a492 1
		basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
a520 3
	asmjs)
		basic_machine=asmjs-unknown
		;;
d534 1
a534 1
		basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d542 1
a542 1
		basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d545 1
a545 1
		basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d548 1
a548 1
		basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d637 1
a637 1
	dpx2*)
a640 8
	e500v[12])
		basic_machine=powerpc-unknown
		os=$os"spe"
		;;
	e500v[12]-*)
		basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
		os=$os"spe"
		;;
d730 3
d745 1
a745 1
		basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
d749 1
a749 1
		basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
d753 1
a753 1
		basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
d757 1
a757 1
		basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
d764 1
a764 1
	vsta)
d783 1
a783 1
		basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
d790 1
a790 1
		basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d793 3
d827 1
a827 1
		basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
d830 1
a830 1
		basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
d849 1
a849 1
		basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
d891 1
a891 1
	next | m*-next)
a935 6
	nsv-tandem)
		basic_machine=nsv-tandem
		;;
	nsx-tandem)
		basic_machine=nsx-tandem
		;;
d968 1
a968 1
		basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d984 1
a984 1
		basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d999 1
a999 1
		basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1002 1
a1002 1
		basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1005 1
a1005 1
		basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1008 1
a1008 1
		basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1018 1
a1018 1
		basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1020 1
a1020 1
	ppcle | powerpclittle)
d1024 1
a1024 1
		basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1028 1
a1028 1
	ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1030 1
a1030 1
	ppc64le | powerpc64little)
d1034 1
a1034 1
		basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
d1088 4
d1095 4
a1098 1
	simso-wrs)
d1117 1
a1117 1
		basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
a1238 3
	x64)
		basic_machine=x86_64-pc
		;;
d1247 1
a1247 1
		basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
d1253 8
d1289 4
d1302 3
d1324 1
a1324 1
		echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
d1332 1
a1332 1
		basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
d1335 1
a1335 1
		basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
d1346 2
a1347 2
	# First match some system type aliases that might get confused
	# with valid system types.
d1358 3
d1367 1
a1367 5
	# es1800 is here to avoid being matched by es* (a different OS)
	-es1800*)
		os=-ose
		;;
	# Now accept the basic system types.
d1369 1
a1369 1
	# Each alternative MUST end in a * to match a version number.
d1376 1
a1376 1
	      | -aos* | -aros* | -cloudabi* | -sortix* \
d1379 2
a1380 2
	      | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
d1385 1
a1385 1
	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
d1387 1
a1387 1
	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
d1390 1
a1390 1
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
d1394 1
a1394 1
	      | -morphos* | -superux* | -rtmk* | -windiss* \
d1396 1
a1396 3
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
	      | -midnightbsd*)
d1413 2
a1414 2
	-sim | -xray | -os68k* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* \
d1418 1
a1418 1
		os=`echo "$os" | sed -e 's|mac|macos|'`
d1427 1
a1427 1
		os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
d1430 1
a1430 1
		os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
d1441 6
d1471 1
a1471 1
	-ns2)
d1493 1
a1493 1
	-svr4*)
d1508 6
d1517 3
a1525 13
	-pikeos*)
		# Until real need of OS specific support for
		# particular features comes up, bare metal
		# configurations are quite functional.
		case $basic_machine in
		    arm*)
			os=-eabi
			;;
		    *)
			os=-elf
			;;
		esac
		;;
a1527 2
	-ios)
		;;
d1533 1
a1533 1
		echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
a1622 3
	pru-*)
		os=-elf
		;;
d1626 3
d1668 1
a1668 1
	*-next)
d1683 3
d1795 1
a1795 1
		basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
d1799 1
a1799 1
echo "$basic_machine$os"
d1803 1
a1803 1
# eval: (add-hook 'write-file-functions 'time-stamp)
@


1.1.1.11
log
@initial import of pixman-0.38.4
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 1
a5 1
timestamp='2017-01-01'
d18 1
a18 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d36 1
a36 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d60 1
a60 1
Operation modes:
d70 1
a70 1
Copyright 1992-2017 Free Software Foundation, Inc.
d97 1
a97 1
       echo $1
d115 1
a115 1
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
d123 1
a123 1
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
d127 1
a127 1
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
d130 3
a132 3
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
d181 1
a181 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d185 1
a185 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d189 1
a189 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d193 1
a193 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d197 1
a197 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d201 1
a201 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d205 1
a205 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d208 1
a208 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d212 1
a212 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d218 1
a218 1
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d230 1
a230 4
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
		;;
	-windowsnt*)
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
d258 1
a258 1
	| d10v | d30v | dlx | dsp16xx | dvp \
d263 1
a263 1
	| i370 | i860 | i960 | ia64 \
d299 1
a299 1
	| pdp10 | pdp11 | pj | pjl \
d315 1
a315 1
	| we32k \
d336 1
a336 1
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
d365 1
a365 1
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
d388 1
a388 1
	| i*86-* | i860-* | i960-* | ia64-* \
d446 1
d460 1
a460 1
		basic_machine=i386-unknown
d494 1
a494 1
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
d539 1
a539 1
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
d547 1
a547 1
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
d550 1
a550 1
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
d553 1
a553 1
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
d642 1
a642 1
	dpx2* | dpx2*-bull)
d651 1
a651 1
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
a742 3
	hppa-next)
		os=-nextstep3
		;;
d755 1
a755 1
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
d759 1
a759 1
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
d763 1
a763 1
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
d767 1
a767 1
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
d774 1
a774 1
	i386-vsta | vsta)
d793 1
a793 1
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
d800 1
a800 1
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
a802 3
	m88k-omron*)
		basic_machine=m88k-omron
		;;
a832 18
	mipsEE* | ee | ps2)
		basic_machine=mips64r5900el-scei
		case $os in
		    -linux*)
			;;
		    *)
			os=-elf
			;;
		esac
		;;
	iop)
		basic_machine=mipsel-scei
		os=-irx
		;;
	dvp)
		basic_machine=dvp-scei
		os=-elf
		;;
d834 1
a834 1
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
d837 1
a837 1
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
d856 1
a856 1
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
d898 1
a898 1
	next | m*-next )
d943 6
d981 1
a981 1
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
d997 1
a997 1
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
d1012 1
a1012 1
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
d1015 1
a1015 1
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d1018 1
a1018 1
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d1021 1
a1021 1
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
d1031 1
a1031 1
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d1037 1
a1037 1
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
d1041 1
a1041 1
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
d1047 1
a1047 1
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
a1100 4
	sh)
		basic_machine=sh-hitachi
		os=-hms
		;;
d1104 1
a1104 4
	sh64)
		basic_machine=sh64-unknown
		;;
	sparclite-wrs | simso-wrs)
d1123 1
a1123 1
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
d1245 3
d1256 1
a1256 1
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
a1261 8
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
a1289 4
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
		;;
a1298 3
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
		basic_machine=sparc-sun
		;;
d1318 1
a1318 1
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
d1326 1
a1326 1
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
d1329 1
a1329 1
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
d1340 2
a1341 2
	# First match some system type aliases
	# that might get confused with valid system types.
a1351 3
	-svr4*)
		os=-sysv4
		;;
d1358 5
a1362 1
	# First accept the basic system types.
d1364 1
a1364 1
	# Each alternative MUST END IN A *, to match a version number.
d1374 1
a1374 1
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
d1385 1
a1385 1
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
d1387 1
a1387 1
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
d1389 1
a1389 1
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
d1392 2
a1393 1
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
d1410 2
a1411 2
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
d1415 1
a1415 1
		os=`echo $os | sed -e 's|mac|macos|'`
d1424 1
a1424 1
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
d1427 1
a1427 1
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
a1437 6
	-osfrose*)
		os=-osfrose
		;;
	-osf*)
		os=-osf
		;;
d1462 1
a1462 1
	-ns2 )
d1484 1
a1484 1
	-svr4)
a1498 6
	-es1800*)
		os=-ose
		;;
	-xenix)
		os=-xenix
		;;
a1501 3
	-aros*)
		os=-aros
		;;
d1508 13
d1530 1
a1530 1
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
a1625 3
	*-haiku)
		os=-haiku
		;;
d1665 1
a1665 1
	*-next )
a1679 3
	*-next)
		os=-nextstep3
		;;
d1789 1
a1789 1
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
d1793 1
a1793 1
echo $basic_machine$os
d1797 1
a1797 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


1.1.1.12
log
@initial import of pixman-0.42.2
@
text
@d3 1
a3 1
#   Copyright 1992-2022 Free Software Foundation, Inc.
d5 1
a5 3
# shellcheck disable=SC2006,SC2268 # see below for rationale

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

d60 1
a60 1
Options:
d70 1
a70 1
Copyright 1992-2022 Free Software Foundation, Inc.
d92 1
a92 1
       echo "$me: invalid option $1$help" >&2
d97 1
a97 1
       echo "$1"
d113 115
a227 13
# Split fields of configuration type
# shellcheck disable=SC2162
saved_IFS=$IFS
IFS="-" read field1 field2 field3 field4 <<EOF
$1
EOF
IFS=$saved_IFS

# Separate into logical components for further validation
case $1 in
	*-*-*-*-*)
		echo Invalid configuration \`"$1"\': more than four components >&2
		exit 1
d229 2
a230 3
	*-*-*-*)
		basic_machine=$field1-$field2
		basic_os=$field3-$field4
d232 2
a233 21
	*-*-*)
		# Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
		# parts
		maybe_os=$field2-$field3
		case $maybe_os in
			nto-qnx* | linux-* | uclinux-uclibc* \
			| uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
			| netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
			| storm-chaos* | os2-emx* | rtmk-nova*)
				basic_machine=$field1
				basic_os=$maybe_os
				;;
			android-linux)
				basic_machine=$field1-unknown
				basic_os=linux-android
				;;
			*)
				basic_machine=$field1-$field2
				basic_os=$field3
				;;
		esac
d235 2
a236 39
	*-*)
		# A lone config we happen to match not fitting any pattern
		case $field1-$field2 in
			decstation-3100)
				basic_machine=mips-dec
				basic_os=
				;;
			*-*)
				# Second component is usually, but not always the OS
				case $field2 in
					# Prevent following clause from handling this valid os
					sun*os*)
						basic_machine=$field1
						basic_os=$field2
						;;
					zephyr*)
						basic_machine=$field1-unknown
						basic_os=$field2
						;;
					# Manufacturers
					dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
					| att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
					| unicom* | ibm* | next | hp | isi* | apollo | altos* \
					| convergent* | ncr* | news | 32* | 3600* | 3100* \
					| hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
					| ultra | tti* | harris | dolphin | highlevel | gould \
					| cbm | ns | masscomp | apple | axis | knuth | cray \
					| microblaze* | sim | cisco \
					| oki | wec | wrs | winbond)
						basic_machine=$field1-$field2
						basic_os=
						;;
					*)
						basic_machine=$field1
						basic_os=$field2
						;;
				esac
			;;
		esac
d238 3
a240 453
	*)
		# Convert single-component short-hands not valid as part of
		# multi-component configurations.
		case $field1 in
			386bsd)
				basic_machine=i386-pc
				basic_os=bsd
				;;
			a29khif)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			adobe68k)
				basic_machine=m68010-adobe
				basic_os=scout
				;;
			alliant)
				basic_machine=fx80-alliant
				basic_os=
				;;
			altos | altos3068)
				basic_machine=m68k-altos
				basic_os=
				;;
			am29k)
				basic_machine=a29k-none
				basic_os=bsd
				;;
			amdahl)
				basic_machine=580-amdahl
				basic_os=sysv
				;;
			amiga)
				basic_machine=m68k-unknown
				basic_os=
				;;
			amigaos | amigados)
				basic_machine=m68k-unknown
				basic_os=amigaos
				;;
			amigaunix | amix)
				basic_machine=m68k-unknown
				basic_os=sysv4
				;;
			apollo68)
				basic_machine=m68k-apollo
				basic_os=sysv
				;;
			apollo68bsd)
				basic_machine=m68k-apollo
				basic_os=bsd
				;;
			aros)
				basic_machine=i386-pc
				basic_os=aros
				;;
			aux)
				basic_machine=m68k-apple
				basic_os=aux
				;;
			balance)
				basic_machine=ns32k-sequent
				basic_os=dynix
				;;
			blackfin)
				basic_machine=bfin-unknown
				basic_os=linux
				;;
			cegcc)
				basic_machine=arm-unknown
				basic_os=cegcc
				;;
			convex-c1)
				basic_machine=c1-convex
				basic_os=bsd
				;;
			convex-c2)
				basic_machine=c2-convex
				basic_os=bsd
				;;
			convex-c32)
				basic_machine=c32-convex
				basic_os=bsd
				;;
			convex-c34)
				basic_machine=c34-convex
				basic_os=bsd
				;;
			convex-c38)
				basic_machine=c38-convex
				basic_os=bsd
				;;
			cray)
				basic_machine=j90-cray
				basic_os=unicos
				;;
			crds | unos)
				basic_machine=m68k-crds
				basic_os=
				;;
			da30)
				basic_machine=m68k-da30
				basic_os=
				;;
			decstation | pmax | pmin | dec3100 | decstatn)
				basic_machine=mips-dec
				basic_os=
				;;
			delta88)
				basic_machine=m88k-motorola
				basic_os=sysv3
				;;
			dicos)
				basic_machine=i686-pc
				basic_os=dicos
				;;
			djgpp)
				basic_machine=i586-pc
				basic_os=msdosdjgpp
				;;
			ebmon29k)
				basic_machine=a29k-amd
				basic_os=ebmon
				;;
			es1800 | OSE68k | ose68k | ose | OSE)
				basic_machine=m68k-ericsson
				basic_os=ose
				;;
			gmicro)
				basic_machine=tron-gmicro
				basic_os=sysv
				;;
			go32)
				basic_machine=i386-pc
				basic_os=go32
				;;
			h8300hms)
				basic_machine=h8300-hitachi
				basic_os=hms
				;;
			h8300xray)
				basic_machine=h8300-hitachi
				basic_os=xray
				;;
			h8500hms)
				basic_machine=h8500-hitachi
				basic_os=hms
				;;
			harris)
				basic_machine=m88k-harris
				basic_os=sysv3
				;;
			hp300 | hp300hpux)
				basic_machine=m68k-hp
				basic_os=hpux
				;;
			hp300bsd)
				basic_machine=m68k-hp
				basic_os=bsd
				;;
			hppaosf)
				basic_machine=hppa1.1-hp
				basic_os=osf
				;;
			hppro)
				basic_machine=hppa1.1-hp
				basic_os=proelf
				;;
			i386mach)
				basic_machine=i386-mach
				basic_os=mach
				;;
			isi68 | isi)
				basic_machine=m68k-isi
				basic_os=sysv
				;;
			m68knommu)
				basic_machine=m68k-unknown
				basic_os=linux
				;;
			magnum | m3230)
				basic_machine=mips-mips
				basic_os=sysv
				;;
			merlin)
				basic_machine=ns32k-utek
				basic_os=sysv
				;;
			mingw64)
				basic_machine=x86_64-pc
				basic_os=mingw64
				;;
			mingw32)
				basic_machine=i686-pc
				basic_os=mingw32
				;;
			mingw32ce)
				basic_machine=arm-unknown
				basic_os=mingw32ce
				;;
			monitor)
				basic_machine=m68k-rom68k
				basic_os=coff
				;;
			morphos)
				basic_machine=powerpc-unknown
				basic_os=morphos
				;;
			moxiebox)
				basic_machine=moxie-unknown
				basic_os=moxiebox
				;;
			msdos)
				basic_machine=i386-pc
				basic_os=msdos
				;;
			msys)
				basic_machine=i686-pc
				basic_os=msys
				;;
			mvs)
				basic_machine=i370-ibm
				basic_os=mvs
				;;
			nacl)
				basic_machine=le32-unknown
				basic_os=nacl
				;;
			ncr3000)
				basic_machine=i486-ncr
				basic_os=sysv4
				;;
			netbsd386)
				basic_machine=i386-pc
				basic_os=netbsd
				;;
			netwinder)
				basic_machine=armv4l-rebel
				basic_os=linux
				;;
			news | news700 | news800 | news900)
				basic_machine=m68k-sony
				basic_os=newsos
				;;
			news1000)
				basic_machine=m68030-sony
				basic_os=newsos
				;;
			necv70)
				basic_machine=v70-nec
				basic_os=sysv
				;;
			nh3000)
				basic_machine=m68k-harris
				basic_os=cxux
				;;
			nh[45]000)
				basic_machine=m88k-harris
				basic_os=cxux
				;;
			nindy960)
				basic_machine=i960-intel
				basic_os=nindy
				;;
			mon960)
				basic_machine=i960-intel
				basic_os=mon960
				;;
			nonstopux)
				basic_machine=mips-compaq
				basic_os=nonstopux
				;;
			os400)
				basic_machine=powerpc-ibm
				basic_os=os400
				;;
			OSE68000 | ose68000)
				basic_machine=m68000-ericsson
				basic_os=ose
				;;
			os68k)
				basic_machine=m68k-none
				basic_os=os68k
				;;
			paragon)
				basic_machine=i860-intel
				basic_os=osf
				;;
			parisc)
				basic_machine=hppa-unknown
				basic_os=linux
				;;
			psp)
				basic_machine=mipsallegrexel-sony
				basic_os=psp
				;;
			pw32)
				basic_machine=i586-unknown
				basic_os=pw32
				;;
			rdos | rdos64)
				basic_machine=x86_64-pc
				basic_os=rdos
				;;
			rdos32)
				basic_machine=i386-pc
				basic_os=rdos
				;;
			rom68k)
				basic_machine=m68k-rom68k
				basic_os=coff
				;;
			sa29200)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			sei)
				basic_machine=mips-sei
				basic_os=seiux
				;;
			sequent)
				basic_machine=i386-sequent
				basic_os=
				;;
			sps7)
				basic_machine=m68k-bull
				basic_os=sysv2
				;;
			st2000)
				basic_machine=m68k-tandem
				basic_os=
				;;
			stratus)
				basic_machine=i860-stratus
				basic_os=sysv4
				;;
			sun2)
				basic_machine=m68000-sun
				basic_os=
				;;
			sun2os3)
				basic_machine=m68000-sun
				basic_os=sunos3
				;;
			sun2os4)
				basic_machine=m68000-sun
				basic_os=sunos4
				;;
			sun3)
				basic_machine=m68k-sun
				basic_os=
				;;
			sun3os3)
				basic_machine=m68k-sun
				basic_os=sunos3
				;;
			sun3os4)
				basic_machine=m68k-sun
				basic_os=sunos4
				;;
			sun4)
				basic_machine=sparc-sun
				basic_os=
				;;
			sun4os3)
				basic_machine=sparc-sun
				basic_os=sunos3
				;;
			sun4os4)
				basic_machine=sparc-sun
				basic_os=sunos4
				;;
			sun4sol2)
				basic_machine=sparc-sun
				basic_os=solaris2
				;;
			sun386 | sun386i | roadrunner)
				basic_machine=i386-sun
				basic_os=
				;;
			sv1)
				basic_machine=sv1-cray
				basic_os=unicos
				;;
			symmetry)
				basic_machine=i386-sequent
				basic_os=dynix
				;;
			t3e)
				basic_machine=alphaev5-cray
				basic_os=unicos
				;;
			t90)
				basic_machine=t90-cray
				basic_os=unicos
				;;
			toad1)
				basic_machine=pdp10-xkl
				basic_os=tops20
				;;
			tpf)
				basic_machine=s390x-ibm
				basic_os=tpf
				;;
			udi29k)
				basic_machine=a29k-amd
				basic_os=udi
				;;
			ultra3)
				basic_machine=a29k-nyu
				basic_os=sym1
				;;
			v810 | necv810)
				basic_machine=v810-nec
				basic_os=none
				;;
			vaxv)
				basic_machine=vax-dec
				basic_os=sysv
				;;
			vms)
				basic_machine=vax-dec
				basic_os=vms
				;;
			vsta)
				basic_machine=i386-pc
				basic_os=vsta
				;;
			vxworks960)
				basic_machine=i960-wrs
				basic_os=vxworks
				;;
			vxworks68)
				basic_machine=m68k-wrs
				basic_os=vxworks
				;;
			vxworks29k)
				basic_machine=a29k-wrs
				basic_os=vxworks
				;;
			xbox)
				basic_machine=i686-pc
				basic_os=mingw32
				;;
			ymp)
				basic_machine=ymp-cray
				basic_os=unicos
				;;
			*)
				basic_machine=$1
				basic_os=
				;;
		esac
d244 1
a244 1
# Decode 1-component or ad-hoc basic machines
d246 88
a333 5
	# Here we handle the default manufacturer of certain CPU types.  It is in
	# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		cpu=hppa1.1
		vendor=winbond
d335 3
a337 3
	op50n)
		cpu=hppa1.1
		vendor=oki
d339 1
a339 3
	op60c)
		cpu=hppa1.1
		vendor=oki
d341 2
a342 3
	ibm*)
		cpu=i370
		vendor=ibm
d344 7
a350 3
	orion105)
		cpu=clipper
		vendor=highlevel
d352 2
a353 3
	mac | mpw | mac-mpw)
		cpu=m68k
		vendor=apple
d355 3
a357 3
	pmac | pmac-mpw)
		cpu=powerpc
		vendor=apple
d360 99
d461 4
d466 1
a466 2
		cpu=m68000
		vendor=att
d469 74
a542 2
		cpu=we32k
		vendor=att
d545 70
a614 3
		cpu=powerpc
		vendor=ibm
		basic_os=cnk
d617 2
a618 3
		cpu=pdp10
		vendor=dec
		basic_os=tops10
d621 2
a622 3
		cpu=pdp10
		vendor=dec
		basic_os=tops20
d626 25
a650 2
		cpu=m68k
		vendor=motorola
d652 11
a662 4
	dpx2*)
		cpu=m68k
		vendor=bull
		basic_os=sysv3
d665 1
a665 2
		cpu=ns32k
		vendor=encore
d667 3
a669 4
	elxsi)
		cpu=elxsi
		vendor=elxsi
		basic_os=${basic_os:-bsd}
d672 1
a672 2
		cpu=i860
		vendor=alliant
d675 9
a683 2
		cpu=ns32k
		vendor=ns
d686 29
a714 3
		cpu=hppa1.1
		vendor=hitachi
		basic_os=hiuxwe2
d717 1
a717 2
		cpu=hppa1.0
		vendor=hp
d720 1
a720 2
		cpu=m68000
		vendor=hp
d723 1
a723 2
		cpu=m68k
		vendor=hp
d726 1
a726 2
		cpu=hppa1.0
		vendor=hp
d729 1
a729 2
		cpu=hppa1.1
		vendor=hp
d733 1
a733 2
		cpu=hppa1.1
		vendor=hp
d737 1
a737 2
		cpu=hppa1.1
		vendor=hp
d740 1
a740 2
		cpu=hppa1.1
		vendor=hp
d743 15
a757 2
		cpu=hppa1.0
		vendor=hp
d760 2
a761 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv32
d764 2
a765 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv4
d768 2
a769 3
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=sysv
d772 10
a781 8
		cpu=`echo "$1" | sed -e 's/86.*/86/'`
		vendor=pc
		basic_os=solaris2
		;;
	j90 | j90-cray)
		cpu=j90
		vendor=cray
		basic_os=${basic_os:-unicos}
d784 3
a786 4
		cpu=mips
		vendor=sgi
		case $basic_os in
		    irix*)
d789 1
a789 1
			basic_os=irix4
d793 41
d835 1
a835 2
		cpu=m68000
		vendor=convergent
d837 6
a842 8
	*mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
		cpu=m68k
		vendor=atari
		basic_os=mint
		;;
	mipsEE* | ee)
		cpu=mips64r5900el
		vendor=scei
d844 1
a844 1
		    linux*)
d847 1
a847 1
			os=elf
d852 2
a853 3
		cpu=mipsel
		vendor=scei
		os=irx
d856 59
a914 3
		cpu=dvp
		vendor=scei
		os=elf
d917 11
a927 11
		cpu=mips
		vendor=sony
		basic_os=newsos
		;;
	next | m*-next)
		cpu=m68k
		vendor=next
		case $basic_os in
		    openstep*)
		        ;;
		    nextstep*)
d929 2
a930 2
		    ns2*)
		      basic_os=nextstep2
d933 1
a933 1
		      basic_os=nextstep3
d937 20
d958 10
a967 2
		cpu=np1
		vendor=gould
d970 17
a986 3
		cpu=hppa1.1
		vendor=oki
		basic_os=proelf
d989 14
a1002 3
		cpu=hppa1.1
		vendor=hitachi
		basic_os=hiuxwe2
d1005 1
a1005 2
		cpu=sparc
		vendor=tti
d1008 13
a1020 2
		cpu=m68k
		vendor=tti
d1022 2
a1023 3
	pc532)
		cpu=ns32k
		vendor=pc532
d1025 2
a1026 3
	pn)
		cpu=pn
		vendor=gould
d1028 2
a1029 3
	power)
		cpu=power
		vendor=ibm
d1031 2
a1032 3
	ps2)
		cpu=i386
		vendor=ibm
d1034 2
a1035 3
	rm[46]00)
		cpu=mips
		vendor=siemens
d1037 2
a1038 3
	rtpc | rtpc-*)
		cpu=romp
		vendor=ibm
d1040 2
a1041 9
	sde)
		cpu=mipsisa32
		vendor=sde
		basic_os=${basic_os:-elf}
		;;
	simso-wrs)
		cpu=sparclite
		vendor=wrs
		basic_os=vxworks
d1043 2
a1044 3
	tower | tower-32)
		cpu=m68k
		vendor=ncr
d1046 1
a1046 3
	vpp*|vx|vx-*)
		cpu=f301
		vendor=fujitsu
d1048 1
a1048 3
	w65)
		cpu=w65
		vendor=wdc
d1050 2
a1051 4
	w89k-*)
		cpu=hppa1.1
		vendor=winbond
		basic_os=proelf
d1053 2
a1054 3
	none)
		cpu=none
		vendor=none
d1056 2
a1057 3
	leon|leon[3-9])
		cpu=sparc
		vendor=$basic_machine
d1059 1
a1059 3
	leon-*|leon[3-9]-*)
		cpu=sparc
		vendor=`echo "$basic_machine" | sed 's/-.*//'`
d1061 1
a1061 8

	*-*)
		# shellcheck disable=SC2162
		saved_IFS=$IFS
		IFS="-" read cpu vendor <<EOF
$basic_machine
EOF
		IFS=$saved_IFS
d1063 2
a1064 6
	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
		cpu=$basic_machine
		vendor=pc
d1066 2
a1067 5
	# These rules are duplicated from below for sake of the special case above;
	# i.e. things that normalized to x86 arches should also default to "pc"
	pc98)
		cpu=i386
		vendor=pc
d1069 2
a1070 3
	x64 | amd64)
		cpu=x86_64
		vendor=pc
d1072 15
a1086 4
	# Recognize the basic CPU types without company name.
	*)
		cpu=$basic_machine
		vendor=unknown
d1088 2
a1089 11
esac

unset -v basic_machine

# Decode basic machines in the full and proper CPU-Company form.
case $cpu-$vendor in
	# Here we handle the default manufacturer of certain CPU types in canonical form. It is in
	# some cases the only manufacturer, in others, it is the most popular.
	craynv-unknown)
		vendor=cray
		basic_os=${basic_os:-unicosmp}
d1091 2
a1092 3
	c90-unknown | c90-cray)
		vendor=cray
		basic_os=${Basic_os:-unicos}
d1094 2
a1095 2
	fx80-unknown)
		vendor=alliant
d1097 2
a1098 2
	romp-unknown)
		vendor=ibm
d1100 3
a1102 2
	mmix-unknown)
		vendor=knuth
d1104 2
a1105 2
	microblaze-unknown | microblazeel-unknown)
		vendor=xilinx
d1107 2
a1108 2
	rs6000-unknown)
		vendor=ibm
d1110 3
a1112 2
	vax-unknown)
		vendor=dec
d1114 3
a1116 2
	pdp11-unknown)
		vendor=dec
d1118 2
a1119 2
	we32k-unknown)
		vendor=att
d1121 3
a1123 2
	cydra-unknown)
		vendor=cydrome
d1125 2
a1126 2
	i370-ibm*)
		vendor=ibm
d1128 2
a1129 2
	orion-unknown)
		vendor=highlevel
d1131 3
a1133 3
	xps-unknown | xps100-unknown)
		cpu=xps100
		vendor=honeywell
d1135 3
a1137 6

	# Here we normalize CPU types with a missing or matching vendor
	armh-unknown | armh-alt)
		cpu=armv7l
		vendor=alt
		basic_os=${basic_os:-linux-gnueabihf}
d1139 2
a1140 4
	dpx20-unknown | dpx20-bull)
		cpu=rs6000
		vendor=bull
		basic_os=${basic_os:-bosx}
d1142 2
a1143 4

	# Here we normalize CPU types irrespective of the vendor
	amd64-*)
		cpu=x86_64
d1145 3
a1147 3
	blackfin-*)
		cpu=bfin
		basic_os=linux
d1149 2
a1150 2
	c54x-*)
		cpu=tic54x
d1152 2
a1153 2
	c55x-*)
		cpu=tic55x
d1155 3
a1157 2
	c6x-*)
		cpu=tic6x
d1159 3
a1161 3
	e500v[12]-*)
		cpu=powerpc
		basic_os=${basic_os}"spe"
d1163 3
a1165 2
	mips3*-*)
		cpu=mips64
d1167 3
a1169 2
	ms1-*)
		cpu=mt
d1171 3
a1173 3
	m68knommu-*)
		cpu=m68k
		basic_os=linux
d1175 3
a1177 2
	m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
		cpu=s12z
d1179 3
a1181 2
	openrisc-*)
		cpu=or32
d1183 2
a1184 3
	parisc-*)
		cpu=hppa
		basic_os=linux
d1186 2
a1187 2
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		cpu=i586
d1189 2
a1190 2
	pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
		cpu=i686
d1192 3
a1194 2
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		cpu=i686
d1196 3
a1198 2
	pentium4-*)
		cpu=i786
d1200 3
a1202 2
	pc98-*)
		cpu=i386
d1204 3
a1206 2
	ppc-* | ppcbe-*)
		cpu=powerpc
d1208 3
a1210 2
	ppcle-* | powerpclittle-*)
		cpu=powerpcle
d1212 2
a1213 2
	ppc64-*)
		cpu=powerpc64
d1215 2
a1216 2
	ppc64le-* | powerpc64little-*)
		cpu=powerpc64le
d1218 3
a1220 2
	sb1-*)
		cpu=mipsisa64sb1
d1222 2
a1223 2
	sb1el-*)
		cpu=mipsisa64sb1el
d1225 23
a1247 2
	sh5e[lb]-*)
		cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
d1249 2
a1250 2
	spur-*)
		cpu=spur
d1252 15
a1266 2
	strongarm-* | thumb-*)
		cpu=arm
d1268 3
a1270 2
	tx39-*)
		cpu=mipstx39
d1272 3
a1274 2
	tx39el-*)
		cpu=mipstx39el
d1276 2
a1277 2
	x64-*)
		cpu=x86_64
d1280 1
a1280 1
		cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
d1282 15
a1296 2
	arm64-* | aarch64le-*)
		cpu=aarch64
d1299 32
a1330 4
	# Recognize the canonical CPU Types that limit and/or modify the
	# company names they are paired with.
	cr16-*)
		basic_os=${basic_os:-elf}
d1332 2
a1333 3
	crisv32-* | etraxfs*-*)
		cpu=crisv32
		vendor=axis
d1335 2
a1336 3
	cris-* | etrax*-*)
		cpu=cris
		vendor=axis
d1338 2
a1339 2
	crx-*)
		basic_os=${basic_os:-elf}
d1341 2
a1342 3
	neo-tandem)
		cpu=neo
		vendor=tandem
d1344 2
a1345 3
	nse-tandem)
		cpu=nse
		vendor=tandem
d1347 2
a1348 3
	nsr-tandem)
		cpu=nsr
		vendor=tandem
d1350 2
a1351 11
	nsv-tandem)
		cpu=nsv
		vendor=tandem
		;;
	nsx-tandem)
		cpu=nsx
		vendor=tandem
		;;
	mipsallegrexel-sony)
		cpu=mipsallegrexel
		vendor=sony
d1353 2
a1354 2
	tile*-*)
		basic_os=${basic_os:-linux-gnu}
a1355 1

d1357 2
a1358 114
		# Recognize the canonical CPU types that are allowed with any
		# company name.
		case $cpu in
			1750a | 580 \
			| a29k \
			| aarch64 | aarch64_be \
			| abacus \
			| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
			| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
			| alphapca5[67] | alpha64pca5[67] \
			| am33_2.0 \
			| amdgcn \
			| arc | arceb | arc32 | arc64 \
			| arm | arm[lb]e | arme[lb] | armv* \
			| avr | avr32 \
			| asmjs \
			| ba \
			| be32 | be64 \
			| bfin | bpf | bs2000 \
			| c[123]* | c30 | [cjt]90 | c4x \
			| c8051 | clipper | craynv | csky | cydra \
			| d10v | d30v | dlx | dsp16xx | dvp \
			| e2k | elxsi | epiphany \
			| f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
			| h8300 | h8500 \
			| hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
			| hexagon \
			| i370 | i*86 | i860 | i960 | ia16 | ia64 \
			| ip2k | iq2000 \
			| k1om \
			| le32 | le64 \
			| lm32 \
			| loongarch32 | loongarch64 | loongarchx32 \
			| m32c | m32r | m32rle \
			| m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
			| m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
			| m88110 | m88k | maxq | mb | mcore | mep | metag \
			| microblaze | microblazeel \
			| mips | mipsbe | mipseb | mipsel | mipsle \
			| mips16 \
			| mips64 | mips64eb | mips64el \
			| mips64octeon | mips64octeonel \
			| mips64orion | mips64orionel \
			| mips64r5900 | mips64r5900el \
			| mips64vr | mips64vrel \
			| mips64vr4100 | mips64vr4100el \
			| mips64vr4300 | mips64vr4300el \
			| mips64vr5000 | mips64vr5000el \
			| mips64vr5900 | mips64vr5900el \
			| mipsisa32 | mipsisa32el \
			| mipsisa32r2 | mipsisa32r2el \
			| mipsisa32r3 | mipsisa32r3el \
			| mipsisa32r5 | mipsisa32r5el \
			| mipsisa32r6 | mipsisa32r6el \
			| mipsisa64 | mipsisa64el \
			| mipsisa64r2 | mipsisa64r2el \
			| mipsisa64r3 | mipsisa64r3el \
			| mipsisa64r5 | mipsisa64r5el \
			| mipsisa64r6 | mipsisa64r6el \
			| mipsisa64sb1 | mipsisa64sb1el \
			| mipsisa64sr71k | mipsisa64sr71kel \
			| mipsr5900 | mipsr5900el \
			| mipstx39 | mipstx39el \
			| mmix \
			| mn10200 | mn10300 \
			| moxie \
			| mt \
			| msp430 \
			| nds32 | nds32le | nds32be \
			| nfp \
			| nios | nios2 | nios2eb | nios2el \
			| none | np1 | ns16k | ns32k | nvptx \
			| open8 \
			| or1k* \
			| or32 \
			| orion \
			| picochip \
			| pdp10 | pdp11 | pj | pjl | pn | power \
			| powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
			| pru \
			| pyramid \
			| riscv | riscv32 | riscv32be | riscv64 | riscv64be \
			| rl78 | romp | rs6000 | rx \
			| s390 | s390x \
			| score \
			| sh | shl \
			| sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
			| sh[1234]e[lb] |  sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
			| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
			| sparclite \
			| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
			| spu \
			| tahoe \
			| thumbv7* \
			| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
			| tron \
			| ubicom32 \
			| v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
			| vax \
			| visium \
			| w65 \
			| wasm32 | wasm64 \
			| we32k \
			| x86 | x86_64 | xc16x | xgate | xps100 \
			| xstormy16 | xtensa* \
			| ymp \
			| z8k | z80)
				;;

			*)
				echo Invalid configuration \`"$1"\': machine \`"$cpu-$vendor"\' not recognized 1>&2
				exit 1
				;;
		esac
d1363 3
a1365 3
case $vendor in
	digital*)
		vendor=dec
d1367 2
a1368 2
	commodore*)
		vendor=cbm
d1376 1
a1376 1
if test x$basic_os != x
d1378 6
a1383 32

# First recognize some ad-hoc cases, or perhaps split kernel-os, or else just
# set os.
case $basic_os in
	gnu/linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|gnu/linux|gnu|'`
		;;
	os2-emx)
		kernel=os2
		os=`echo "$basic_os" | sed -e 's|os2-emx|emx|'`
		;;
	nto-qnx*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto-qnx|qnx|'`
		;;
	*-*)
		# shellcheck disable=SC2162
		saved_IFS=$IFS
		IFS="-" read kernel os <<EOF
$basic_os
EOF
		IFS=$saved_IFS
		;;
	# Default OS when just kernel was specified
	nto*)
		kernel=nto
		os=`echo "$basic_os" | sed -e 's|nto|qnx|'`
		;;
	linux*)
		kernel=linux
		os=`echo "$basic_os" | sed -e 's|linux|gnu|'`
d1385 2
a1386 3
	*)
		kernel=
		os=$basic_os
d1388 2
a1389 10
esac

# Now, normalize the OS (knowing we just have one component, it's not a kernel,
# etc.)
case $os in
	# First match some system type aliases that might get confused
	# with valid system types.
	# solaris* is a basic system type, with this one exception.
	auroraux)
		os=auroraux
d1391 2
a1392 2
	bluegene*)
		os=cnk
d1394 2
a1395 2
	solaris1 | solaris1.*)
		os=`echo "$os" | sed -e 's|solaris1|sunos4|'`
d1397 2
a1398 2
	solaris)
		os=solaris2
d1400 41
a1440 2
	unixware*)
		os=sysv4.2uw
d1442 1
a1442 3
	# es1800 is here to avoid being matched by es* (a different OS)
	es1800*)
		os=ose
d1444 2
a1445 3
	# Some version numbers need modification
	chorusos*)
		os=chorusos
d1447 3
a1449 2
	isc)
		os=isc2.2
d1451 2
a1452 2
	sco6)
		os=sco5v6
d1454 2
a1455 2
	sco5)
		os=sco3.2v5
d1457 2
a1458 2
	sco4)
		os=sco3.2v4
d1460 2
a1461 2
	sco3.2.[4-9]*)
		os=`echo "$os" | sed -e 's/sco3.2./sco3.2v/'`
d1463 2
a1464 2
	sco*v* | scout)
		# Don't match below
d1466 2
a1467 2
	sco*)
		os=sco3.2v2
d1469 2
a1470 2
	psos*)
		os=psos
d1472 2
a1473 2
	qnx*)
		os=qnx
d1475 2
a1476 2
	hiux*)
		os=hiuxwe2
d1478 2
a1479 2
	lynx*178)
		os=lynxos178
d1481 2
a1482 2
	lynx*5)
		os=lynxos5
d1484 2
a1485 2
	lynxos*)
		# don't get caught up in next wildcard
d1487 2
a1488 2
	lynx*)
		os=lynxos
d1490 2
a1491 2
	mac[0-9]*)
		os=`echo "$os" | sed -e 's|mac|macos|'`
d1493 2
a1494 2
	opened*)
		os=openedition
d1496 2
a1497 2
	os400*)
		os=os400
d1499 2
a1500 2
	sunos5*)
		os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
d1502 2
a1503 2
	sunos6*)
		os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
d1505 2
a1506 2
	wince*)
		os=wince
d1508 2
a1509 2
	utek*)
		os=bsd
d1511 3
a1513 2
	dynix*)
		os=bsd
d1515 2
a1516 2
	acis*)
		os=aos
d1518 2
a1519 2
	atheos*)
		os=atheos
d1521 2
a1522 2
	syllable*)
		os=syllable
d1524 2
a1525 5
	386bsd)
		os=bsd
		;;
	ctix* | uts*)
		os=sysv
d1527 2
a1528 2
	nova*)
		os=rtmk-nova
d1530 2
a1531 2
	ns2)
		os=nextstep2
d1533 2
a1534 3
	# Preserve the version number of sinix5.
	sinix5.*)
		os=`echo "$os" | sed -e 's|sinix|sysv|'`
d1536 2
a1537 2
	sinix*)
		os=sysv4
d1539 2
a1540 2
	tpf*)
		os=tpf
d1542 2
a1543 2
	triton*)
		os=sysv3
d1545 2
a1546 2
	oss*)
		os=sysv3
d1548 2
a1549 2
	svr4*)
		os=sysv4
d1551 2
a1552 2
	svr3)
		os=sysv3
d1554 2
a1555 2
	sysvr4)
		os=sysv4
d1557 2
a1558 2
	ose*)
		os=ose
d1560 1
a1560 2
	*mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
		os=mint
d1562 1
a1562 2
	dicos*)
		os=dicos
d1564 1
a1564 12
	pikeos*)
		# Until real need of OS specific support for
		# particular features comes up, bare metal
		# configurations are quite functional.
		case $cpu in
		    arm*)
			os=eabi
			;;
		    *)
			os=elf
			;;
		esac
d1567 4
a1570 1
		# No normalization, but not necessarily accepted, that comes below.
a1572 1

d1585 1
a1585 2
kernel=
case $cpu-$vendor in
d1587 1
a1587 1
		os=elf
d1590 1
a1590 1
		os=elf
d1593 1
a1593 1
		os=riscix1.2
d1596 1
a1596 2
		kernel=linux
		os=gnu
d1599 1
a1599 1
		os=aout
d1602 1
a1602 1
		os=coff
d1605 1
a1605 4
		os=elf
		;;
	clipper-intergraph)
		os=clix
d1608 1
a1608 1
		os=elf
d1611 1
a1611 1
		os=coff
d1614 1
a1614 1
		os=coff
d1617 1
a1617 1
		os=coff
d1621 1
a1621 1
		os=tops20
d1624 1
a1624 1
		os=none
d1627 1
a1627 1
		os=ultrix4.2
d1630 1
a1630 1
		os=domain
d1633 1
a1633 1
		os=sunos4.0.2
d1636 1
a1636 1
		os=sunos3
d1639 1
a1639 1
		os=aout
d1642 1
a1642 1
		os=elf
d1645 1
a1645 1
		os=elf
d1648 1
a1648 1
		os=elf
d1651 1
a1651 1
		os=coff
d1654 1
a1654 1
		os=sysv3
d1657 1
a1657 1
		os=sunos4.1.1
d1660 1
a1660 1
		os=elf
d1663 4
a1666 1
		os=beos
d1669 1
a1669 1
		os=aix
d1672 1
a1672 1
		os=mmixware
d1675 1
a1675 1
		os=proelf
d1678 1
a1678 1
		os=proelf
d1681 1
a1681 1
		os=proelf
d1684 1
a1684 1
		os=hpux
d1687 1
a1687 1
		os=hiux
d1690 1
a1690 1
		os=sysv
d1693 1
a1693 1
		os=amigaos
d1696 1
a1696 1
		os=dgux
d1699 1
a1699 1
		os=sysv3
d1702 1
a1702 1
		os=rtu
d1705 1
a1705 1
		os=luna
d1707 2
a1708 2
	*-next)
		os=nextstep
d1711 1
a1711 1
		os=ptx
d1714 1
a1714 1
		os=unos
d1717 1
a1717 1
		os=genix
d1720 4
a1723 1
		os=mvs
d1726 1
a1726 1
		os=sysv
d1729 1
a1729 1
		os=bsd
d1732 1
a1732 1
		os=bsd
d1735 1
a1735 1
		os=irix
d1738 1
a1738 1
		os=sysv4
d1741 1
a1741 1
		os=rtu
d1744 1
a1744 1
		os=uxpv
d1747 1
a1747 1
		os=coff
d1750 1
a1750 1
		os=coff
d1753 1
a1753 1
		os=macos
d1756 1
a1756 4
		os=mint
		;;
	*-wrs)
		os=vxworks
d1759 1
a1759 1
		os=none
a1761 1

a1763 92
# Now, validate our (potentially fixed-up) OS.
case $os in
	# Sometimes we do "kernel-libc", so those need to count as OSes.
	musl* | newlib* | relibc* | uclibc*)
		;;
	# Likewise for "kernel-abi"
	eabi* | gnueabi*)
		;;
	# VxWorks passes extra cpu info in the 4th filed.
	simlinux | simwindows | spe)
		;;
	# Now accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST end in a * to match a version number.
	gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
	     | sym* |  plan9* | psp* | sim* | xray* | os68k* | v88r* \
	     | hiux* | abug | nacl* | netware* | windows* \
	     | os9* | macos* | osx* | ios* \
	     | mpw* | magic* | mmixware* | mon960* | lnews* \
	     | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
	     | aos* | aros* | cloudabi* | sortix* | twizzler* \
	     | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
	     | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \
	     | mirbsd* | netbsd* | dicos* | openedition* | ose* \
	     | bitrig* | openbsd* | secbsd* | solidbsd* | libertybsd* | os108* \
	     | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \
	     | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
	     | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
	     | udi* | lites* | ieee* | go32* | aux* | hcos* \
	     | chorusrdb* | cegcc* | glidix* | serenity* \
	     | cygwin* | msys* | pe* | moss* | proelf* | rtems* \
	     | midipix* | mingw32* | mingw64* | mint* \
	     | uxpv* | beos* | mpeix* | udk* | moxiebox* \
	     | interix* | uwin* | mks* | rhapsody* | darwin* \
	     | openstep* | oskit* | conix* | pw32* | nonstopux* \
	     | storm-chaos* | tops10* | tenex* | tops20* | its* | irx* \
	     | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \
	     | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \
	     | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
	     | skyos* | haiku* | rdos* | toppers* | drops* | es* \
	     | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
	     | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \
	     | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx* | zephyr* \
	     | fiwix* )
		;;
	# This one is extra strict with allowed versions
	sco3.2v2 | sco3.2v[4-9]* | sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		;;
	none)
		;;
	*)
		echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 1>&2
		exit 1
		;;
esac

# As a final step for OS-related things, validate the OS-kernel combination
# (given a valid OS), if there is a kernel.
case $kernel-$os in
	linux-gnu* | linux-dietlibc* | linux-android* | linux-newlib* \
		   | linux-musl* | linux-relibc* | linux-uclibc* )
		;;
	uclinux-uclibc* )
		;;
	-dietlibc* | -newlib* | -musl* | -relibc* | -uclibc* )
		# These are just libc implementations, not actual OSes, and thus
		# require a kernel.
		echo "Invalid configuration \`$1': libc \`$os' needs explicit kernel." 1>&2
		exit 1
		;;
	kfreebsd*-gnu* | kopensolaris*-gnu*)
		;;
	vxworks-simlinux | vxworks-simwindows | vxworks-spe)
		;;
	nto-qnx*)
		;;
	os2-emx)
		;;
	*-eabi* | *-gnueabi*)
		;;
	-*)
		# Blank kernel with real OS is always fine.
		;;
	*-*)
		echo "Invalid configuration \`$1': Kernel \`$kernel' not known to work with OS \`$os'." 1>&2
		exit 1
		;;
esac

d1766 5
a1770 4
case $vendor in
	unknown)
		case $cpu-$os in
			*-riscix*)
d1773 1
a1773 1
			*-sunos*)
d1776 1
a1776 1
			*-cnk* | *-aix*)
d1779 1
a1779 1
			*-beos*)
d1782 1
a1782 1
			*-hpux*)
d1785 1
a1785 1
			*-mpeix*)
d1788 1
a1788 1
			*-hiux*)
d1791 1
a1791 1
			*-unos*)
d1794 1
a1794 1
			*-dgux*)
d1797 1
a1797 1
			*-luna*)
d1800 1
a1800 1
			*-genix*)
d1803 1
a1803 7
			*-clix*)
				vendor=intergraph
				;;
			*-mvs* | *-opened*)
				vendor=ibm
				;;
			*-os400*)
d1806 1
a1806 1
			s390-* | s390x-*)
d1809 1
a1809 1
			*-ptx*)
d1812 1
a1812 1
			*-tpf*)
d1815 1
a1815 1
			*-vxsim* | *-vxworks* | *-windiss*)
d1818 1
a1818 1
			*-aux*)
d1821 1
a1821 1
			*-hms*)
d1824 1
a1824 1
			*-mpw* | *-macos*)
d1827 1
a1827 1
			*-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*)
d1830 1
a1830 1
			*-vos*)
d1834 1
d1838 1
a1838 1
echo "$cpu-$vendor-${kernel:+$kernel-}$os"
d1842 1
a1842 1
# eval: (add-hook 'before-save-hook 'time-stamp)
@


1.1.1.12.2.1
log
@Revert pixman to 0.38.4, via patch, requested my mrg in ticket #5

xsrc/external/mit/pixman/dist/Makefile.am			apply patch
xsrc/external/mit/pixman/dist/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/README				apply patch
xsrc/external/mit/pixman/dist/a64-neon-test.S			apply patch
xsrc/external/mit/pixman/dist/aclocal.m4			apply patch
xsrc/external/mit/pixman/dist/compile				apply patch
xsrc/external/mit/pixman/dist/config.guess			apply patch
xsrc/external/mit/pixman/dist/config.h.in			apply patch
xsrc/external/mit/pixman/dist/config.sub			apply patch
xsrc/external/mit/pixman/dist/configure				apply patch
xsrc/external/mit/pixman/dist/configure.ac			apply patch
xsrc/external/mit/pixman/dist/depcomp				apply patch
xsrc/external/mit/pixman/dist/install-sh			apply patch
xsrc/external/mit/pixman/dist/ltmain.sh				apply patch
xsrc/external/mit/pixman/dist/meson.build			apply patch
xsrc/external/mit/pixman/dist/meson_options.txt			apply patch
xsrc/external/mit/pixman/dist/missing				apply patch
xsrc/external/mit/pixman/dist/test-driver			apply patch
xsrc/external/mit/pixman/dist/demos/Makefile.am			apply patch
xsrc/external/mit/pixman/dist/demos/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/demos/dither.c			apply patch
xsrc/external/mit/pixman/dist/demos/dither.ui			apply patch
xsrc/external/mit/pixman/dist/demos/gtk-utils.c			apply patch
xsrc/external/mit/pixman/dist/demos/meson.build			apply patch
xsrc/external/mit/pixman/dist/demos/scale.c			apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.am		apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.in		apply patch
xsrc/external/mit/pixman/dist/pixman/Makefile.sources		apply patch
xsrc/external/mit/pixman/dist/pixman/loongson-mmintrin.h	apply patch
xsrc/external/mit/pixman/dist/pixman/meson.build		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-access.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arm-neon.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arm.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm-bilinear.S	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm.S	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-arma64-neon-asm.h	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-bits-image.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-combine32.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-combine32.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-compiler.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-fast-path.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-general.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-gradient-walker.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-image.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-implementation.c	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-inlines.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-matrix.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-mmx.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-ppc.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-private.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-region.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-sse2.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-trap.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-utils.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-version.h		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-version.h.in	apply patch
xsrc/external/mit/pixman/dist/pixman/pixman-x86.c		apply patch
xsrc/external/mit/pixman/dist/pixman/pixman.h			apply patch
xsrc/external/mit/pixman/dist/test/Makefile.in			apply patch
xsrc/external/mit/pixman/dist/test/affine-test.c		apply patch
xsrc/external/mit/pixman/dist/test/lowlevel-blt-bench.c		apply patch
xsrc/external/mit/pixman/dist/test/meson.build			apply patch
xsrc/external/mit/pixman/dist/test/solid-test.c			apply patch
xsrc/external/mit/pixman/dist/test/stress-test.c		apply patch
xsrc/external/mit/pixman/dist/test/thread-test.c		apply patch
xsrc/external/mit/pixman/dist/test/tolerance-test.c		apply patch
xsrc/external/mit/pixman/dist/test/utils.c			apply patch
xsrc/external/mit/pixman/dist/test/utils.h			apply patch
xsrc/external/mit/pixman/include/config.h			apply patch
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 3
a7 1
timestamp='2017-01-01'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 1
a20 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d38 1
a38 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d55 7
d69 1
a69 1
Operation modes:
d79 1
a79 1
Copyright 1992-2017 Free Software Foundation, Inc.
d101 1
a101 1
       echo "$me: invalid option $1$help"
d106 1
a106 1
       echo $1
d122 13
a134 31
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  kopensolaris*-gnu* | cloudabi*-eabi* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
  android-linux)
    os=-linux-android
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    ;;
  *)
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
    else os=; fi
    ;;
esac

### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
	-sun*os*)
		# Prevent following clause from handling this invalid input.
d136 3
a138 49
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-apple | -axis | -knuth | -cray | -microblaze*)
		os=
		basic_machine=$1
		;;
	-bluegene*)
		os=-cnk
		;;
	-sim | -cisco | -oki | -wec | -winbond)
		os=
		basic_machine=$1
		;;
	-scout)
		;;
	-wrs)
		os=-vxworks
		basic_machine=$1
		;;
	-chorusos*)
		os=-chorusos
		basic_machine=$1
		;;
	-chorusrdb)
		os=-chorusrdb
		basic_machine=$1
		;;
	-hiux*)
		os=-hiuxwe2
		;;
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco5)
		os=-sco3.2v5
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco4)
		os=-sco3.2v4
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco3.2.[4-9]*)
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d140 21
a160 3
	-sco3.2v[4-9]*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d162 39
a200 3
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d202 453
a654 38
	-sco*)
		os=-sco3.2v2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-udk*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-isc)
		os=-isc2.2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-clix*)
		basic_machine=clipper-intergraph
		;;
	-isc*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
	-lynx*)
		os=-lynxos
		;;
	-ptx*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
		;;
	-windowsnt*)
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
		;;
	-psos*)
		os=-psos
		;;
	-mint | -mint[0-9]*)
		basic_machine=m68k-atari
		os=-mint
d658 1
a658 1
# Decode aliases for certain CPU-COMPANY combinations.
d660 5
a664 76
	# Recognize the basic CPU types without company name.
	# Some are omitted here because they have special meanings below.
	1750a | 580 \
	| a29k \
	| aarch64 | aarch64_be \
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
	| am33_2.0 \
	| arc | arceb \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| ba \
	| be32 | be64 \
	| bfin \
	| c4x | c8051 | clipper \
	| d10v | d30v | dlx | dsp16xx | dvp \
	| e2k | epiphany \
	| fido | fr30 | frv | ft32 \
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
	| hexagon \
	| i370 | i860 | i960 | ia64 \
	| ip2k | iq2000 \
	| k1om \
	| le32 | le64 \
	| lm32 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
	| mips | mipsbe | mipseb | mipsel | mipsle \
	| mips16 \
	| mips64 | mips64el \
	| mips64octeon | mips64octeonel \
	| mips64orion | mips64orionel \
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
	| mips64vr4100 | mips64vr4100el \
	| mips64vr4300 | mips64vr4300el \
	| mips64vr5000 | mips64vr5000el \
	| mips64vr5900 | mips64vr5900el \
	| mipsisa32 | mipsisa32el \
	| mipsisa32r2 | mipsisa32r2el \
	| mipsisa32r6 | mipsisa32r6el \
	| mipsisa64 | mipsisa64el \
	| mipsisa64r2 | mipsisa64r2el \
	| mipsisa64r6 | mipsisa64r6el \
	| mipsisa64sb1 | mipsisa64sb1el \
	| mipsisa64sr71k | mipsisa64sr71kel \
	| mipsr5900 | mipsr5900el \
	| mipstx39 | mipstx39el \
	| mn10200 | mn10300 \
	| moxie \
	| mt \
	| msp430 \
	| nds32 | nds32le | nds32be \
	| nios | nios2 | nios2eb | nios2el \
	| ns16k | ns32k \
	| open8 | or1k | or1knd | or32 \
	| pdp10 | pdp11 | pj | pjl \
	| powerpc | powerpc64 | powerpc64le | powerpcle \
	| pru \
	| pyramid \
	| riscv32 | riscv64 \
	| rl78 | rx \
	| score \
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
	| sh64 | sh64le \
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu \
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
	| ubicom32 \
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
	| visium \
	| we32k \
	| x86 | xc16x | xstormy16 | xtensa \
	| z8k | z80)
		basic_machine=$basic_machine-unknown
d666 3
a668 2
	c54x)
		basic_machine=tic54x-unknown
d670 3
a672 2
	c55x)
		basic_machine=tic55x-unknown
d674 3
a676 2
	c6x)
		basic_machine=tic6x-unknown
d678 3
a680 2
	leon|leon[3-9])
		basic_machine=sparc-$basic_machine
d682 3
a684 3
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
		basic_machine=$basic_machine-unknown
		os=-none
d686 3
a688 4
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
		;;
	ms1)
		basic_machine=mt-unknown
a690 114
	strongarm | thumb | xscale)
		basic_machine=arm-unknown
		;;
	xgate)
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	xscaleeb)
		basic_machine=armeb-unknown
		;;

	xscaleel)
		basic_machine=armel-unknown
		;;

	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
	  basic_machine=$basic_machine-pc
	  ;;
	# Object if more than one company name word.
	*-*-*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		;;
	# Recognize the basic CPU types with company name.
	580-* \
	| a29k-* \
	| aarch64-* | aarch64_be-* \
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
	| avr-* | avr32-* \
	| ba-* \
	| be32-* | be64-* \
	| bfin-* | bs2000-* \
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
	| c8051-* | clipper-* | craynv-* | cydra-* \
	| d10v-* | d30v-* | dlx-* \
	| e2k-* | elxsi-* \
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
	| h8300-* | h8500-* \
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
	| hexagon-* \
	| i*86-* | i860-* | i960-* | ia64-* \
	| ip2k-* | iq2000-* \
	| k1om-* \
	| le32-* | le64-* \
	| lm32-* \
	| m32c-* | m32r-* | m32rle-* \
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
	| mips16-* \
	| mips64-* | mips64el-* \
	| mips64octeon-* | mips64octeonel-* \
	| mips64orion-* | mips64orionel-* \
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
	| mips64vr4100-* | mips64vr4100el-* \
	| mips64vr4300-* | mips64vr4300el-* \
	| mips64vr5000-* | mips64vr5000el-* \
	| mips64vr5900-* | mips64vr5900el-* \
	| mipsisa32-* | mipsisa32el-* \
	| mipsisa32r2-* | mipsisa32r2el-* \
	| mipsisa32r6-* | mipsisa32r6el-* \
	| mipsisa64-* | mipsisa64el-* \
	| mipsisa64r2-* | mipsisa64r2el-* \
	| mipsisa64r6-* | mipsisa64r6el-* \
	| mipsisa64sb1-* | mipsisa64sb1el-* \
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
	| mipsr5900-* | mipsr5900el-* \
	| mipstx39-* | mipstx39el-* \
	| mmix-* \
	| mt-* \
	| msp430-* \
	| nds32-* | nds32le-* | nds32be-* \
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
	| open8-* \
	| or1k*-* \
	| orion-* \
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
	| pru-* \
	| pyramid-* \
	| riscv32-* | riscv64-* \
	| rl78-* | romp-* | rs6000-* | rx-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
	| tahoe-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tile*-* \
	| tron-* \
	| ubicom32-* \
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
	| vax-* \
	| visium-* \
	| we32k-* \
	| x86-* | x86_64-* | xc16x-* | xps100-* \
	| xstormy16-* | xtensa*-* \
	| ymp-* \
	| z8k-* | z80-*)
		;;
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
		;;
a692 4
	386bsd)
		basic_machine=i386-unknown
		os=-bsd
		;;
d694 2
a695 1
		basic_machine=m68000-att
d698 2
a699 74
		basic_machine=we32k-att
		;;
	a29khif)
		basic_machine=a29k-amd
		os=-udi
		;;
	abacus)
		basic_machine=abacus-unknown
		;;
	adobe68k)
		basic_machine=m68010-adobe
		os=-scout
		;;
	alliant | fx80)
		basic_machine=fx80-alliant
		;;
	altos | altos3068)
		basic_machine=m68k-altos
		;;
	am29k)
		basic_machine=a29k-none
		os=-bsd
		;;
	amd64)
		basic_machine=x86_64-pc
		;;
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	amdahl)
		basic_machine=580-amdahl
		os=-sysv
		;;
	amiga | amiga-*)
		basic_machine=m68k-unknown
		;;
	amigaos | amigados)
		basic_machine=m68k-unknown
		os=-amigaos
		;;
	amigaunix | amix)
		basic_machine=m68k-unknown
		os=-sysv4
		;;
	apollo68)
		basic_machine=m68k-apollo
		os=-sysv
		;;
	apollo68bsd)
		basic_machine=m68k-apollo
		os=-bsd
		;;
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
	asmjs)
		basic_machine=asmjs-unknown
		;;
	aux)
		basic_machine=m68k-apple
		os=-aux
		;;
	balance)
		basic_machine=ns32k-sequent
		os=-dynix
		;;
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d702 3
a704 70
		basic_machine=powerpc-ibm
		os=-cnk
		;;
	c54x-*)
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c55x-*)
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c6x-*)
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c90)
		basic_machine=c90-cray
		os=-unicos
		;;
	cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
	convex-c1)
		basic_machine=c1-convex
		os=-bsd
		;;
	convex-c2)
		basic_machine=c2-convex
		os=-bsd
		;;
	convex-c32)
		basic_machine=c32-convex
		os=-bsd
		;;
	convex-c34)
		basic_machine=c34-convex
		os=-bsd
		;;
	convex-c38)
		basic_machine=c38-convex
		os=-bsd
		;;
	cray | j90)
		basic_machine=j90-cray
		os=-unicos
		;;
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16 | cr16-*)
		basic_machine=cr16-unknown
		os=-elf
		;;
	crds | unos)
		basic_machine=m68k-crds
		;;
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
	cris | cris-* | etrax*)
		basic_machine=cris-axis
		;;
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
	da30 | da30-*)
		basic_machine=m68k-da30
		;;
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
		basic_machine=mips-dec
d707 3
a709 2
		basic_machine=pdp10-dec
		os=-tops10
d712 3
a714 2
		basic_machine=pdp10-dec
		os=-tops20
d718 2
a719 1
		basic_machine=m68k-motorola
d721 4
a724 23
	delta88)
		basic_machine=m88k-motorola
		os=-sysv3
		;;
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
	dpx20 | dpx20-*)
		basic_machine=rs6000-bull
		os=-bosx
		;;
	dpx2* | dpx2*-bull)
		basic_machine=m68k-bull
		os=-sysv3
		;;
	e500v[12])
		basic_machine=powerpc-unknown
		os=$os"spe"
d726 3
a728 7
	e500v[12]-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=$os"spe"
		;;
	ebmon29k)
		basic_machine=a29k-amd
		os=-ebmon
d731 3
a733 9
		basic_machine=elxsi-elxsi
		os=-bsd
		;;
	encore | umax | mmax)
		basic_machine=ns32k-encore
		;;
	es1800 | OSE68k | ose68k | ose | OSE)
		basic_machine=m68k-ericsson
		os=-ose
d736 2
a737 1
		basic_machine=i860-alliant
d740 2
a741 9
		basic_machine=ns32k-ns
		;;
	gmicro)
		basic_machine=tron-gmicro
		os=-sysv
		;;
	go32)
		basic_machine=i386-pc
		os=-go32
d744 3
a746 29
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	h8300hms)
		basic_machine=h8300-hitachi
		os=-hms
		;;
	h8300xray)
		basic_machine=h8300-hitachi
		os=-xray
		;;
	h8500hms)
		basic_machine=h8500-hitachi
		os=-hms
		;;
	harris)
		basic_machine=m88k-harris
		os=-sysv3
		;;
	hp300-*)
		basic_machine=m68k-hp
		;;
	hp300bsd)
		basic_machine=m68k-hp
		os=-bsd
		;;
	hp300hpux)
		basic_machine=m68k-hp
		os=-hpux
d749 2
a750 1
		basic_machine=hppa1.0-hp
d753 2
a754 1
		basic_machine=m68000-hp
d757 2
a758 1
		basic_machine=m68k-hp
d761 2
a762 1
		basic_machine=hppa1.0-hp
d765 2
a766 1
		basic_machine=hppa1.1-hp
d770 2
a771 1
		basic_machine=hppa1.1-hp
d775 2
a776 1
		basic_machine=hppa1.1-hp
d779 2
a780 1
		basic_machine=hppa1.1-hp
d783 2
a784 15
		basic_machine=hppa1.0-hp
		;;
	hppa-next)
		os=-nextstep3
		;;
	hppaosf)
		basic_machine=hppa1.1-hp
		os=-osf
		;;
	hppro)
		basic_machine=hppa1.1-hp
		os=-proelf
		;;
	i370-ibm* | ibm*)
		basic_machine=i370-ibm
d787 3
a789 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv32
d792 3
a794 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv4
d797 3
a799 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv
d802 8
a809 10
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-solaris2
		;;
	i386mach)
		basic_machine=i386-mach
		os=-mach
		;;
	i386-vsta | vsta)
		basic_machine=i386-unknown
		os=-vsta
d812 4
a815 3
		basic_machine=mips-sgi
		case $os in
		    -irix*)
d818 1
a818 1
			os=-irix4
a821 41
	isi68 | isi)
		basic_machine=m68k-isi
		os=-sysv
		;;
	leon-*|leon[3-9]-*)
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
		;;
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
	m88k-omron*)
		basic_machine=m88k-omron
		;;
	magnum | m3230)
		basic_machine=mips-mips
		os=-sysv
		;;
	merlin)
		basic_machine=ns32k-utek
		os=-sysv
		;;
	microblaze*)
		basic_machine=microblaze-xilinx
		;;
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
	mingw32)
		basic_machine=i686-pc
		os=-mingw32
		;;
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
d823 2
a824 1
		basic_machine=m68000-convergent
d826 8
a833 6
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
	mipsEE* | ee | ps2)
		basic_machine=mips64r5900el-scei
d835 1
a835 1
		    -linux*)
d838 1
a838 1
			os=-elf
d843 3
a845 2
		basic_machine=mipsel-scei
		os=-irx
d848 3
a850 59
		basic_machine=dvp-scei
		os=-elf
		;;
	mips3*-*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
		;;
	mips3*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		;;
	monitor)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	morphos)
		basic_machine=powerpc-unknown
		os=-morphos
		;;
	moxiebox)
		basic_machine=moxie-unknown
		os=-moxiebox
		;;
	msdos)
		basic_machine=i386-pc
		os=-msdos
		;;
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
		;;
	msys)
		basic_machine=i686-pc
		os=-msys
		;;
	mvs)
		basic_machine=i370-ibm
		os=-mvs
		;;
	nacl)
		basic_machine=le32-unknown
		os=-nacl
		;;
	ncr3000)
		basic_machine=i486-ncr
		os=-sysv4
		;;
	netbsd386)
		basic_machine=i386-unknown
		os=-netbsd
		;;
	netwinder)
		basic_machine=armv4l-rebel
		os=-linux
		;;
	news | news700 | news800 | news900)
		basic_machine=m68k-sony
		os=-newsos
		;;
	news1000)
		basic_machine=m68030-sony
		os=-newsos
d853 11
a863 11
		basic_machine=mips-sony
		os=-newsos
		;;
	necv70)
		basic_machine=v70-nec
		os=-sysv
		;;
	next | m*-next )
		basic_machine=m68k-next
		case $os in
		    -nextstep* )
d865 2
a866 2
		    -ns2*)
		      os=-nextstep2
d869 1
a869 1
		      os=-nextstep3
a872 20
	nh3000)
		basic_machine=m68k-harris
		os=-cxux
		;;
	nh[45]000)
		basic_machine=m88k-harris
		os=-cxux
		;;
	nindy960)
		basic_machine=i960-intel
		os=-nindy
		;;
	mon960)
		basic_machine=i960-intel
		os=-mon960
		;;
	nonstopux)
		basic_machine=mips-compaq
		os=-nonstopux
		;;
d874 2
a875 10
		basic_machine=np1-gould
		;;
	neo-tandem)
		basic_machine=neo-tandem
		;;
	nse-tandem)
		basic_machine=nse-tandem
		;;
	nsr-tandem)
		basic_machine=nsr-tandem
d878 3
a880 17
		basic_machine=hppa1.1-oki
		os=-proelf
		;;
	openrisc | openrisc-*)
		basic_machine=or32-unknown
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
		;;
	OSE68000 | ose68000)
		basic_machine=m68000-ericsson
		os=-ose
		;;
	os68k)
		basic_machine=m68k-none
		os=-os68k
d883 3
a885 14
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	paragon)
		basic_machine=i860-intel
		os=-osf
		;;
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d888 2
a889 1
		basic_machine=sparc-tti
d892 2
a893 1
		basic_machine=m68k-tti
d895 3
a897 2
	pc532 | pc532-*)
		basic_machine=ns32k-pc532
d899 3
a901 2
	pc98)
		basic_machine=i386-pc
d903 3
a905 2
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
d907 3
a909 2
	pentium | p5 | k5 | k6 | nexgen | viac3)
		basic_machine=i586-pc
d911 3
a913 2
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
		basic_machine=i686-pc
d915 3
a917 2
	pentiumii | pentium2 | pentiumiii | pentium3)
		basic_machine=i686-pc
d919 9
a927 2
	pentium4)
		basic_machine=i786-pc
d929 3
a931 2
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
d933 3
a935 2
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d937 3
a939 2
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d941 4
a944 2
	pentium4-*)
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
d946 3
a948 2
	pn)
		basic_machine=pn-gould
d950 3
a952 1
	power)	basic_machine=power-ibm
d954 3
a956 1
	ppc | ppcbe)	basic_machine=powerpc-unknown
d958 8
a965 2
	ppc-* | ppcbe-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d967 6
a972 2
	ppcle | powerpclittle)
		basic_machine=powerpcle-unknown
d974 5
a978 2
	ppcle-* | powerpclittle-*)
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
d980 3
a982 1
	ppc64)	basic_machine=powerpc64-unknown
d984 4
a987 1
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
d989 11
a999 2
	ppc64le | powerpc64little)
		basic_machine=powerpc64le-unknown
d1001 3
a1003 2
	ppc64le-* | powerpc64little-*)
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
d1005 2
a1006 2
	ps2)
		basic_machine=i386-ibm
d1008 2
a1009 15
	pw32)
		basic_machine=i586-unknown
		os=-pw32
		;;
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
		basic_machine=i386-pc
		os=-rdos
		;;
	rom68k)
		basic_machine=m68k-rom68k
		os=-coff
d1011 2
a1012 2
	rm[46]00)
		basic_machine=mips-siemens
d1014 2
a1015 2
	rtpc | rtpc-*)
		basic_machine=romp-ibm
d1017 2
a1018 2
	s390 | s390-*)
		basic_machine=s390-ibm
d1020 2
a1021 2
	s390x | s390x-*)
		basic_machine=s390x-ibm
d1023 2
a1024 3
	sa29200)
		basic_machine=a29k-amd
		os=-udi
d1026 2
a1027 2
	sb1)
		basic_machine=mipsisa64sb1-unknown
d1029 2
a1030 2
	sb1el)
		basic_machine=mipsisa64sb1el-unknown
d1032 2
a1033 3
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
d1035 2
a1036 3
	sei)
		basic_machine=mips-sei
		os=-seiux
d1038 3
a1040 2
	sequent)
		basic_machine=i386-sequent
d1042 6
a1047 3
	sh)
		basic_machine=sh-hitachi
		os=-hms
d1049 4
a1052 2
	sh5el)
		basic_machine=sh5le-unknown
d1054 4
a1057 2
	sh64)
		basic_machine=sh64-unknown
d1059 3
a1061 3
	sparclite-wrs | simso-wrs)
		basic_machine=sparclite-wrs
		os=-vxworks
d1063 2
a1064 3
	sps7)
		basic_machine=m68k-bull
		os=-sysv2
d1066 2
a1067 2
	spur)
		basic_machine=spur-unknown
d1069 2
a1070 2
	st2000)
		basic_machine=m68k-tandem
d1072 3
a1074 3
	stratus)
		basic_machine=i860-stratus
		os=-sysv4
d1076 2
a1077 2
	strongarm-* | thumb-*)
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
d1079 2
a1080 2
	sun2)
		basic_machine=m68000-sun
d1082 3
a1084 3
	sun2os3)
		basic_machine=m68000-sun
		os=-sunos3
d1086 2
a1087 3
	sun2os4)
		basic_machine=m68000-sun
		os=-sunos4
d1089 2
a1090 3
	sun3os3)
		basic_machine=m68k-sun
		os=-sunos3
d1092 3
a1094 3
	sun3os4)
		basic_machine=m68k-sun
		os=-sunos4
d1096 2
a1097 3
	sun4os3)
		basic_machine=sparc-sun
		os=-sunos3
d1099 2
a1100 3
	sun4os4)
		basic_machine=sparc-sun
		os=-sunos4
d1102 2
a1103 3
	sun4sol2)
		basic_machine=sparc-sun
		os=-solaris2
d1105 2
a1106 2
	sun3 | sun3-*)
		basic_machine=m68k-sun
d1108 2
a1109 2
	sun4)
		basic_machine=sparc-sun
d1111 2
a1112 2
	sun386 | sun386i | roadrunner)
		basic_machine=i386-sun
d1114 2
a1115 3
	sv1)
		basic_machine=sv1-cray
		os=-unicos
d1117 2
a1118 3
	symmetry)
		basic_machine=i386-sequent
		os=-dynix
d1120 2
a1121 3
	t3e)
		basic_machine=alphaev5-cray
		os=-unicos
d1123 2
a1124 3
	t90)
		basic_machine=t90-cray
		os=-unicos
d1126 2
a1127 3
	tile*)
		basic_machine=$basic_machine-unknown
		os=-linux-gnu
d1129 2
a1130 2
	tx39)
		basic_machine=mipstx39-unknown
d1132 2
a1133 2
	tx39el)
		basic_machine=mipstx39el-unknown
d1135 2
a1136 30
	toad1)
		basic_machine=pdp10-xkl
		os=-tops20
		;;
	tower | tower-32)
		basic_machine=m68k-ncr
		;;
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
	udi29k)
		basic_machine=a29k-amd
		os=-udi
		;;
	ultra3)
		basic_machine=a29k-nyu
		os=-sym1
		;;
	v810 | necv810)
		basic_machine=v810-nec
		os=-none
		;;
	vaxv)
		basic_machine=vax-dec
		os=-sysv
		;;
	vms)
		basic_machine=vax-dec
		os=-vms
d1138 2
a1139 18
	vpp*|vx|vx-*)
		basic_machine=f301-fujitsu
		;;
	vxworks960)
		basic_machine=i960-wrs
		os=-vxworks
		;;
	vxworks68)
		basic_machine=m68k-wrs
		os=-vxworks
		;;
	vxworks29k)
		basic_machine=a29k-wrs
		os=-vxworks
		;;
	w65*)
		basic_machine=w65-wdc
		os=-none
d1141 2
a1142 3
	w89k-*)
		basic_machine=hppa1.1-winbond
		os=-proelf
d1144 2
a1145 6
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
	xps | xps100)
		basic_machine=xps100-honeywell
d1148 1
a1148 1
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
d1150 2
a1151 15
	ymp)
		basic_machine=ymp-cray
		os=-unicos
		;;
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
	none)
		basic_machine=none-none
		os=-none
d1154 4
a1157 7
# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		basic_machine=hppa1.1-winbond
		;;
	op50n)
		basic_machine=hppa1.1-oki
d1159 3
a1161 2
	op60c)
		basic_machine=hppa1.1-oki
d1163 3
a1165 2
	romp)
		basic_machine=romp-ibm
d1167 2
a1168 2
	mmix)
		basic_machine=mmix-knuth
d1170 3
a1172 2
	rs6000)
		basic_machine=rs6000-ibm
d1174 3
a1176 2
	vax)
		basic_machine=vax-dec
d1178 3
a1180 3
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
d1182 11
a1192 2
	pdp11)
		basic_machine=pdp11-dec
d1194 2
a1195 26
	we32k)
		basic_machine=we32k-att
		;;
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
		basic_machine=sh-unknown
		;;
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
		basic_machine=sparc-sun
		;;
	cydra)
		basic_machine=cydra-cydrome
		;;
	orion)
		basic_machine=orion-highlevel
		;;
	orion105)
		basic_machine=clipper-highlevel
		;;
	mac | mpw | mac-mpw)
		basic_machine=m68k-apple
		;;
	pmac | pmac-mpw)
		basic_machine=powerpc-apple
		;;
	*-unknown)
		# Make sure to match an already-canonicalized machine name.
d1197 1
d1199 114
a1312 2
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
d1317 3
a1319 3
case $basic_machine in
	*-digital*)
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
d1321 2
a1322 2
	*-commodore*)
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
d1330 1
a1330 1
if [ x"$os" != x"" ]
d1332 41
d1374 5
a1378 5
	# First match some system type aliases
	# that might get confused with valid system types.
	# -solaris* is a basic system type, with this one exception.
	-auroraux)
		os=-auroraux
d1380 2
a1381 2
	-solaris1 | -solaris1.*)
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
d1383 2
a1384 2
	-solaris)
		os=-solaris2
d1386 2
a1387 2
	-svr4*)
		os=-sysv4
d1389 2
a1390 2
	-unixware*)
		os=-sysv4.2uw
d1392 3
a1394 2
	-gnu/linux*)
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
d1396 3
a1398 41
	# First accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST END IN A *, to match a version number.
	# -sysv* is not here because it comes later, after sysvr4.
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* | -plan9* \
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
	      | -aos* | -aros* | -cloudabi* | -sortix* \
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
	# Remember, each alternative MUST END IN *, to match a version number.
		;;
	-qnx*)
		case $basic_machine in
		    x86-* | i*86-*)
			;;
		    *)
			os=-nto$os
			;;
		esac
d1400 2
a1401 1
	-nto-qnx*)
d1403 2
a1404 2
	-nto*)
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
d1406 2
a1407 3
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
d1409 2
a1410 2
	-mac*)
		os=`echo $os | sed -e 's|mac|macos|'`
d1412 2
a1413 2
	-linux-dietlibc)
		os=-linux-dietlibc
d1415 2
a1416 2
	-linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
d1418 2
a1419 2
	-sunos5*)
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
d1421 2
a1422 2
	-sunos6*)
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
d1424 2
a1425 2
	-opened*)
		os=-openedition
d1427 2
a1428 2
	-os400*)
		os=-os400
d1430 2
a1431 2
	-wince*)
		os=-wince
d1433 2
a1434 2
	-osfrose*)
		os=-osfrose
d1436 2
a1437 2
	-osf*)
		os=-osf
d1439 2
a1440 2
	-utek*)
		os=-bsd
d1442 2
a1443 2
	-dynix*)
		os=-bsd
d1445 2
a1446 2
	-acis*)
		os=-aos
d1448 2
a1449 2
	-atheos*)
		os=-atheos
d1451 2
a1452 2
	-syllable*)
		os=-syllable
d1454 2
a1455 2
	-386bsd)
		os=-bsd
d1457 2
a1458 2
	-ctix* | -uts*)
		os=-sysv
d1460 2
a1461 2
	-nova*)
		os=-rtmk-nova
d1463 2
a1464 2
	-ns2 )
		os=-nextstep2
d1466 2
a1467 2
	-nsk*)
		os=-nsk
d1469 2
a1470 3
	# Preserve the version number of sinix5.
	-sinix5.*)
		os=`echo $os | sed -e 's|sinix|sysv|'`
d1472 2
a1473 2
	-sinix*)
		os=-sysv4
d1475 2
a1476 2
	-tpf*)
		os=-tpf
d1478 2
a1479 2
	-triton*)
		os=-sysv3
d1481 2
a1482 2
	-oss*)
		os=-sysv3
d1484 2
a1485 2
	-svr4)
		os=-sysv4
d1487 3
a1489 2
	-svr3)
		os=-sysv3
d1491 2
a1492 2
	-sysvr4)
		os=-sysv4
d1494 2
a1495 2
	# This must come after -sysvr4.
	-sysv*)
d1497 2
a1498 2
	-ose*)
		os=-ose
d1500 2
a1501 2
	-es1800*)
		os=-ose
d1503 2
a1504 2
	-xenix)
		os=-xenix
d1506 2
a1507 2
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
		os=-mint
d1509 2
a1510 2
	-aros*)
		os=-aros
d1512 2
a1513 2
	-zvmoe)
		os=-zvmoe
d1515 2
a1516 2
	-dicos*)
		os=-dicos
d1518 2
a1519 1
	-nacl*)
d1521 12
a1532 3
	-ios)
		;;
	-none)
d1535 1
a1535 4
		# Get rid of the `-' at the beginning of $os.
		os=`echo $os | sed 's/[^-]*-//'`
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
		exit 1
d1538 1
d1551 2
a1552 1
case $basic_machine in
d1554 1
a1554 1
		os=-elf
d1557 1
a1557 1
		os=-elf
d1560 1
a1560 1
		os=-riscix1.2
d1563 2
a1564 1
		os=-linux
d1567 1
a1567 1
		os=-aout
d1570 1
a1570 1
		os=-coff
d1573 4
a1576 1
		os=-elf
d1579 1
a1579 1
		os=-elf
d1582 1
a1582 1
		os=-coff
d1585 1
a1585 1
		os=-coff
d1588 1
a1588 1
		os=-coff
d1592 1
a1592 1
		os=-tops20
d1595 1
a1595 1
		os=-none
d1598 1
a1598 1
		os=-ultrix4.2
d1601 1
a1601 1
		os=-domain
d1604 1
a1604 1
		os=-sunos4.0.2
d1607 1
a1607 1
		os=-sunos3
d1610 1
a1610 1
		os=-aout
d1613 1
a1613 1
		os=-elf
d1616 1
a1616 1
		os=-elf
d1619 1
a1619 1
		os=-elf
d1622 1
a1622 1
		os=-coff
d1625 1
a1625 1
		os=-sysv3
d1628 1
a1628 1
		os=-sunos4.1.1
d1631 1
a1631 1
		os=-elf
d1634 1
a1634 4
		os=-beos
		;;
	*-haiku)
		os=-haiku
d1637 1
a1637 1
		os=-aix
d1640 1
a1640 1
		os=-mmixware
d1643 1
a1643 1
		os=-proelf
d1646 1
a1646 1
		os=-proelf
d1649 1
a1649 1
		os=-proelf
d1652 1
a1652 1
		os=-hpux
d1655 1
a1655 1
		os=-hiux
d1658 1
a1658 1
		os=-sysv
d1661 1
a1661 1
		os=-amigaos
d1664 1
a1664 1
		os=-dgux
d1667 1
a1667 1
		os=-sysv3
d1670 1
a1670 1
		os=-rtu
d1673 1
a1673 1
		os=-luna
d1675 2
a1676 2
	*-next )
		os=-nextstep
d1679 1
a1679 1
		os=-ptx
d1682 1
a1682 1
		os=-unos
d1685 1
a1685 1
		os=-genix
d1688 1
a1688 4
		os=-mvs
		;;
	*-next)
		os=-nextstep3
d1691 1
a1691 1
		os=-sysv
d1694 1
a1694 1
		os=-bsd
d1697 1
a1697 1
		os=-bsd
d1700 1
a1700 1
		os=-irix
d1703 1
a1703 1
		os=-sysv4
d1706 1
a1706 1
		os=-rtu
d1709 1
a1709 1
		os=-uxpv
d1712 1
a1712 1
		os=-coff
d1715 1
a1715 1
		os=-coff
d1718 1
a1718 1
		os=-macos
d1721 4
a1724 1
		os=-mint
d1727 1
a1727 1
		os=-none
d1730 1
d1733 92
d1827 4
a1830 5
vendor=unknown
case $basic_machine in
	*-unknown)
		case $os in
			-riscix*)
d1833 1
a1833 1
			-sunos*)
d1836 1
a1836 1
			-cnk*|-aix*)
d1839 1
a1839 1
			-beos*)
d1842 1
a1842 1
			-hpux*)
d1845 1
a1845 1
			-mpeix*)
d1848 1
a1848 1
			-hiux*)
d1851 1
a1851 1
			-unos*)
d1854 1
a1854 1
			-dgux*)
d1857 1
a1857 1
			-luna*)
d1860 1
a1860 1
			-genix*)
d1863 7
a1869 1
			-mvs* | -opened*)
d1872 1
a1872 1
			-os400*)
d1875 1
a1875 1
			-ptx*)
d1878 1
a1878 1
			-tpf*)
d1881 1
a1881 1
			-vxsim* | -vxworks* | -windiss*)
d1884 1
a1884 1
			-aux*)
d1887 1
a1887 1
			-hms*)
d1890 1
a1890 1
			-mpw* | -macos*)
d1893 1
a1893 1
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
d1896 1
a1896 1
			-vos*)
a1899 1
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
d1903 1
a1903 1
echo $basic_machine$os
d1907 1
a1907 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


1.1.1.13
log
@initial import of revert to pixman-0.38.4.

see arm64 neon issues, and other issues (eg, PR#57108)
@
text
@d3 1
a3 1
#   Copyright 1992-2017 Free Software Foundation, Inc.
d5 3
a7 1
timestamp='2017-01-01'
d11 1
a11 1
# the Free Software Foundation; either version 3 of the License, or
d20 1
a20 1
# along with this program; if not, see <http://www.gnu.org/licenses/>.
d38 1
a38 1
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
d55 7
d69 1
a69 1
Operation modes:
d79 1
a79 1
Copyright 1992-2017 Free Software Foundation, Inc.
d101 1
a101 1
       echo "$me: invalid option $1$help"
d106 1
a106 1
       echo $1
d122 13
a134 31
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations.
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in
  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
  linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
  knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
  kopensolaris*-gnu* | cloudabi*-eabi* | \
  storm-chaos* | os2-emx* | rtmk-nova*)
    os=-$maybe_os
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    ;;
  android-linux)
    os=-linux-android
    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    ;;
  *)
    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    if [ $basic_machine != $1 ]
    then os=`echo $1 | sed 's/.*-/-/'`
    else os=; fi
    ;;
esac

### Let's recognize common machines as not being operating systems so
### that things like config.sub decstation-3100 work.  We also
### recognize some manufacturers as not being operating systems, so we
### can provide default operating systems below.
case $os in
	-sun*os*)
		# Prevent following clause from handling this invalid input.
d136 3
a138 49
	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
	-apple | -axis | -knuth | -cray | -microblaze*)
		os=
		basic_machine=$1
		;;
	-bluegene*)
		os=-cnk
		;;
	-sim | -cisco | -oki | -wec | -winbond)
		os=
		basic_machine=$1
		;;
	-scout)
		;;
	-wrs)
		os=-vxworks
		basic_machine=$1
		;;
	-chorusos*)
		os=-chorusos
		basic_machine=$1
		;;
	-chorusrdb)
		os=-chorusrdb
		basic_machine=$1
		;;
	-hiux*)
		os=-hiuxwe2
		;;
	-sco6)
		os=-sco5v6
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco5)
		os=-sco3.2v5
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco4)
		os=-sco3.2v4
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-sco3.2.[4-9]*)
		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d140 21
a160 3
	-sco3.2v[4-9]*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d162 39
a200 3
	-sco5v6*)
		# Don't forget version if it is 3.2v4 or newer.
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
d202 453
a654 38
	-sco*)
		os=-sco3.2v2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-udk*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-isc)
		os=-isc2.2
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-clix*)
		basic_machine=clipper-intergraph
		;;
	-isc*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
		;;
	-lynx*178)
		os=-lynxos178
		;;
	-lynx*5)
		os=-lynxos5
		;;
	-lynx*)
		os=-lynxos
		;;
	-ptx*)
		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
		;;
	-windowsnt*)
		os=`echo $os | sed -e 's/windowsnt/winnt/'`
		;;
	-psos*)
		os=-psos
		;;
	-mint | -mint[0-9]*)
		basic_machine=m68k-atari
		os=-mint
d658 1
a658 1
# Decode aliases for certain CPU-COMPANY combinations.
d660 5
a664 76
	# Recognize the basic CPU types without company name.
	# Some are omitted here because they have special meanings below.
	1750a | 580 \
	| a29k \
	| aarch64 | aarch64_be \
	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
	| am33_2.0 \
	| arc | arceb \
	| arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
	| avr | avr32 \
	| ba \
	| be32 | be64 \
	| bfin \
	| c4x | c8051 | clipper \
	| d10v | d30v | dlx | dsp16xx | dvp \
	| e2k | epiphany \
	| fido | fr30 | frv | ft32 \
	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
	| hexagon \
	| i370 | i860 | i960 | ia64 \
	| ip2k | iq2000 \
	| k1om \
	| le32 | le64 \
	| lm32 \
	| m32c | m32r | m32rle | m68000 | m68k | m88k \
	| maxq | mb | microblaze | microblazeel | mcore | mep | metag \
	| mips | mipsbe | mipseb | mipsel | mipsle \
	| mips16 \
	| mips64 | mips64el \
	| mips64octeon | mips64octeonel \
	| mips64orion | mips64orionel \
	| mips64r5900 | mips64r5900el \
	| mips64vr | mips64vrel \
	| mips64vr4100 | mips64vr4100el \
	| mips64vr4300 | mips64vr4300el \
	| mips64vr5000 | mips64vr5000el \
	| mips64vr5900 | mips64vr5900el \
	| mipsisa32 | mipsisa32el \
	| mipsisa32r2 | mipsisa32r2el \
	| mipsisa32r6 | mipsisa32r6el \
	| mipsisa64 | mipsisa64el \
	| mipsisa64r2 | mipsisa64r2el \
	| mipsisa64r6 | mipsisa64r6el \
	| mipsisa64sb1 | mipsisa64sb1el \
	| mipsisa64sr71k | mipsisa64sr71kel \
	| mipsr5900 | mipsr5900el \
	| mipstx39 | mipstx39el \
	| mn10200 | mn10300 \
	| moxie \
	| mt \
	| msp430 \
	| nds32 | nds32le | nds32be \
	| nios | nios2 | nios2eb | nios2el \
	| ns16k | ns32k \
	| open8 | or1k | or1knd | or32 \
	| pdp10 | pdp11 | pj | pjl \
	| powerpc | powerpc64 | powerpc64le | powerpcle \
	| pru \
	| pyramid \
	| riscv32 | riscv64 \
	| rl78 | rx \
	| score \
	| sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
	| sh64 | sh64le \
	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
	| spu \
	| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
	| ubicom32 \
	| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
	| visium \
	| we32k \
	| x86 | xc16x | xstormy16 | xtensa \
	| z8k | z80)
		basic_machine=$basic_machine-unknown
d666 3
a668 2
	c54x)
		basic_machine=tic54x-unknown
d670 3
a672 2
	c55x)
		basic_machine=tic55x-unknown
d674 3
a676 2
	c6x)
		basic_machine=tic6x-unknown
d678 3
a680 2
	leon|leon[3-9])
		basic_machine=sparc-$basic_machine
d682 3
a684 3
	m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
		basic_machine=$basic_machine-unknown
		os=-none
d686 3
a688 4
	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
		;;
	ms1)
		basic_machine=mt-unknown
a690 114
	strongarm | thumb | xscale)
		basic_machine=arm-unknown
		;;
	xgate)
		basic_machine=$basic_machine-unknown
		os=-none
		;;
	xscaleeb)
		basic_machine=armeb-unknown
		;;

	xscaleel)
		basic_machine=armel-unknown
		;;

	# We use `pc' rather than `unknown'
	# because (1) that's what they normally are, and
	# (2) the word "unknown" tends to confuse beginning users.
	i*86 | x86_64)
	  basic_machine=$basic_machine-pc
	  ;;
	# Object if more than one company name word.
	*-*-*)
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
		;;
	# Recognize the basic CPU types with company name.
	580-* \
	| a29k-* \
	| aarch64-* | aarch64_be-* \
	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
	| avr-* | avr32-* \
	| ba-* \
	| be32-* | be64-* \
	| bfin-* | bs2000-* \
	| c[123]* | c30-* | [cjt]90-* | c4x-* \
	| c8051-* | clipper-* | craynv-* | cydra-* \
	| d10v-* | d30v-* | dlx-* \
	| e2k-* | elxsi-* \
	| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
	| h8300-* | h8500-* \
	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
	| hexagon-* \
	| i*86-* | i860-* | i960-* | ia64-* \
	| ip2k-* | iq2000-* \
	| k1om-* \
	| le32-* | le64-* \
	| lm32-* \
	| m32c-* | m32r-* | m32rle-* \
	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
	| m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
	| microblaze-* | microblazeel-* \
	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
	| mips16-* \
	| mips64-* | mips64el-* \
	| mips64octeon-* | mips64octeonel-* \
	| mips64orion-* | mips64orionel-* \
	| mips64r5900-* | mips64r5900el-* \
	| mips64vr-* | mips64vrel-* \
	| mips64vr4100-* | mips64vr4100el-* \
	| mips64vr4300-* | mips64vr4300el-* \
	| mips64vr5000-* | mips64vr5000el-* \
	| mips64vr5900-* | mips64vr5900el-* \
	| mipsisa32-* | mipsisa32el-* \
	| mipsisa32r2-* | mipsisa32r2el-* \
	| mipsisa32r6-* | mipsisa32r6el-* \
	| mipsisa64-* | mipsisa64el-* \
	| mipsisa64r2-* | mipsisa64r2el-* \
	| mipsisa64r6-* | mipsisa64r6el-* \
	| mipsisa64sb1-* | mipsisa64sb1el-* \
	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
	| mipsr5900-* | mipsr5900el-* \
	| mipstx39-* | mipstx39el-* \
	| mmix-* \
	| mt-* \
	| msp430-* \
	| nds32-* | nds32le-* | nds32be-* \
	| nios-* | nios2-* | nios2eb-* | nios2el-* \
	| none-* | np1-* | ns16k-* | ns32k-* \
	| open8-* \
	| or1k*-* \
	| orion-* \
	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
	| pru-* \
	| pyramid-* \
	| riscv32-* | riscv64-* \
	| rl78-* | romp-* | rs6000-* | rx-* \
	| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
	| sparclite-* \
	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
	| tahoe-* \
	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
	| tile*-* \
	| tron-* \
	| ubicom32-* \
	| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
	| vax-* \
	| visium-* \
	| we32k-* \
	| x86-* | x86_64-* | xc16x-* | xps100-* \
	| xstormy16-* | xtensa*-* \
	| ymp-* \
	| z8k-* | z80-*)
		;;
	# Recognize the basic CPU types without company name, with glob match.
	xtensa*)
		basic_machine=$basic_machine-unknown
		;;
a692 4
	386bsd)
		basic_machine=i386-unknown
		os=-bsd
		;;
d694 2
a695 1
		basic_machine=m68000-att
d698 2
a699 74
		basic_machine=we32k-att
		;;
	a29khif)
		basic_machine=a29k-amd
		os=-udi
		;;
	abacus)
		basic_machine=abacus-unknown
		;;
	adobe68k)
		basic_machine=m68010-adobe
		os=-scout
		;;
	alliant | fx80)
		basic_machine=fx80-alliant
		;;
	altos | altos3068)
		basic_machine=m68k-altos
		;;
	am29k)
		basic_machine=a29k-none
		os=-bsd
		;;
	amd64)
		basic_machine=x86_64-pc
		;;
	amd64-*)
		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	amdahl)
		basic_machine=580-amdahl
		os=-sysv
		;;
	amiga | amiga-*)
		basic_machine=m68k-unknown
		;;
	amigaos | amigados)
		basic_machine=m68k-unknown
		os=-amigaos
		;;
	amigaunix | amix)
		basic_machine=m68k-unknown
		os=-sysv4
		;;
	apollo68)
		basic_machine=m68k-apollo
		os=-sysv
		;;
	apollo68bsd)
		basic_machine=m68k-apollo
		os=-bsd
		;;
	aros)
		basic_machine=i386-pc
		os=-aros
		;;
	asmjs)
		basic_machine=asmjs-unknown
		;;
	aux)
		basic_machine=m68k-apple
		os=-aux
		;;
	balance)
		basic_machine=ns32k-sequent
		os=-dynix
		;;
	blackfin)
		basic_machine=bfin-unknown
		os=-linux
		;;
	blackfin-*)
		basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d702 3
a704 70
		basic_machine=powerpc-ibm
		os=-cnk
		;;
	c54x-*)
		basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c55x-*)
		basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c6x-*)
		basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
		;;
	c90)
		basic_machine=c90-cray
		os=-unicos
		;;
	cegcc)
		basic_machine=arm-unknown
		os=-cegcc
		;;
	convex-c1)
		basic_machine=c1-convex
		os=-bsd
		;;
	convex-c2)
		basic_machine=c2-convex
		os=-bsd
		;;
	convex-c32)
		basic_machine=c32-convex
		os=-bsd
		;;
	convex-c34)
		basic_machine=c34-convex
		os=-bsd
		;;
	convex-c38)
		basic_machine=c38-convex
		os=-bsd
		;;
	cray | j90)
		basic_machine=j90-cray
		os=-unicos
		;;
	craynv)
		basic_machine=craynv-cray
		os=-unicosmp
		;;
	cr16 | cr16-*)
		basic_machine=cr16-unknown
		os=-elf
		;;
	crds | unos)
		basic_machine=m68k-crds
		;;
	crisv32 | crisv32-* | etraxfs*)
		basic_machine=crisv32-axis
		;;
	cris | cris-* | etrax*)
		basic_machine=cris-axis
		;;
	crx)
		basic_machine=crx-unknown
		os=-elf
		;;
	da30 | da30-*)
		basic_machine=m68k-da30
		;;
	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
		basic_machine=mips-dec
d707 3
a709 2
		basic_machine=pdp10-dec
		os=-tops10
d712 3
a714 2
		basic_machine=pdp10-dec
		os=-tops20
d718 2
a719 1
		basic_machine=m68k-motorola
d721 4
a724 23
	delta88)
		basic_machine=m88k-motorola
		os=-sysv3
		;;
	dicos)
		basic_machine=i686-pc
		os=-dicos
		;;
	djgpp)
		basic_machine=i586-pc
		os=-msdosdjgpp
		;;
	dpx20 | dpx20-*)
		basic_machine=rs6000-bull
		os=-bosx
		;;
	dpx2* | dpx2*-bull)
		basic_machine=m68k-bull
		os=-sysv3
		;;
	e500v[12])
		basic_machine=powerpc-unknown
		os=$os"spe"
d726 3
a728 7
	e500v[12]-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=$os"spe"
		;;
	ebmon29k)
		basic_machine=a29k-amd
		os=-ebmon
d731 3
a733 9
		basic_machine=elxsi-elxsi
		os=-bsd
		;;
	encore | umax | mmax)
		basic_machine=ns32k-encore
		;;
	es1800 | OSE68k | ose68k | ose | OSE)
		basic_machine=m68k-ericsson
		os=-ose
d736 2
a737 1
		basic_machine=i860-alliant
d740 2
a741 9
		basic_machine=ns32k-ns
		;;
	gmicro)
		basic_machine=tron-gmicro
		os=-sysv
		;;
	go32)
		basic_machine=i386-pc
		os=-go32
d744 3
a746 29
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	h8300hms)
		basic_machine=h8300-hitachi
		os=-hms
		;;
	h8300xray)
		basic_machine=h8300-hitachi
		os=-xray
		;;
	h8500hms)
		basic_machine=h8500-hitachi
		os=-hms
		;;
	harris)
		basic_machine=m88k-harris
		os=-sysv3
		;;
	hp300-*)
		basic_machine=m68k-hp
		;;
	hp300bsd)
		basic_machine=m68k-hp
		os=-bsd
		;;
	hp300hpux)
		basic_machine=m68k-hp
		os=-hpux
d749 2
a750 1
		basic_machine=hppa1.0-hp
d753 2
a754 1
		basic_machine=m68000-hp
d757 2
a758 1
		basic_machine=m68k-hp
d761 2
a762 1
		basic_machine=hppa1.0-hp
d765 2
a766 1
		basic_machine=hppa1.1-hp
d770 2
a771 1
		basic_machine=hppa1.1-hp
d775 2
a776 1
		basic_machine=hppa1.1-hp
d779 2
a780 1
		basic_machine=hppa1.1-hp
d783 2
a784 15
		basic_machine=hppa1.0-hp
		;;
	hppa-next)
		os=-nextstep3
		;;
	hppaosf)
		basic_machine=hppa1.1-hp
		os=-osf
		;;
	hppro)
		basic_machine=hppa1.1-hp
		os=-proelf
		;;
	i370-ibm* | ibm*)
		basic_machine=i370-ibm
d787 3
a789 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv32
d792 3
a794 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv4
d797 3
a799 2
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-sysv
d802 8
a809 10
		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
		os=-solaris2
		;;
	i386mach)
		basic_machine=i386-mach
		os=-mach
		;;
	i386-vsta | vsta)
		basic_machine=i386-unknown
		os=-vsta
d812 4
a815 3
		basic_machine=mips-sgi
		case $os in
		    -irix*)
d818 1
a818 1
			os=-irix4
a821 41
	isi68 | isi)
		basic_machine=m68k-isi
		os=-sysv
		;;
	leon-*|leon[3-9]-*)
		basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
		;;
	m68knommu)
		basic_machine=m68k-unknown
		os=-linux
		;;
	m68knommu-*)
		basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
		;;
	m88k-omron*)
		basic_machine=m88k-omron
		;;
	magnum | m3230)
		basic_machine=mips-mips
		os=-sysv
		;;
	merlin)
		basic_machine=ns32k-utek
		os=-sysv
		;;
	microblaze*)
		basic_machine=microblaze-xilinx
		;;
	mingw64)
		basic_machine=x86_64-pc
		os=-mingw64
		;;
	mingw32)
		basic_machine=i686-pc
		os=-mingw32
		;;
	mingw32ce)
		basic_machine=arm-unknown
		os=-mingw32ce
		;;
d823 2
a824 1
		basic_machine=m68000-convergent
d826 8
a833 6
	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
		basic_machine=m68k-atari
		os=-mint
		;;
	mipsEE* | ee | ps2)
		basic_machine=mips64r5900el-scei
d835 1
a835 1
		    -linux*)
d838 1
a838 1
			os=-elf
d843 3
a845 2
		basic_machine=mipsel-scei
		os=-irx
d848 3
a850 59
		basic_machine=dvp-scei
		os=-elf
		;;
	mips3*-*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
		;;
	mips3*)
		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
		;;
	monitor)
		basic_machine=m68k-rom68k
		os=-coff
		;;
	morphos)
		basic_machine=powerpc-unknown
		os=-morphos
		;;
	moxiebox)
		basic_machine=moxie-unknown
		os=-moxiebox
		;;
	msdos)
		basic_machine=i386-pc
		os=-msdos
		;;
	ms1-*)
		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
		;;
	msys)
		basic_machine=i686-pc
		os=-msys
		;;
	mvs)
		basic_machine=i370-ibm
		os=-mvs
		;;
	nacl)
		basic_machine=le32-unknown
		os=-nacl
		;;
	ncr3000)
		basic_machine=i486-ncr
		os=-sysv4
		;;
	netbsd386)
		basic_machine=i386-unknown
		os=-netbsd
		;;
	netwinder)
		basic_machine=armv4l-rebel
		os=-linux
		;;
	news | news700 | news800 | news900)
		basic_machine=m68k-sony
		os=-newsos
		;;
	news1000)
		basic_machine=m68030-sony
		os=-newsos
d853 11
a863 11
		basic_machine=mips-sony
		os=-newsos
		;;
	necv70)
		basic_machine=v70-nec
		os=-sysv
		;;
	next | m*-next )
		basic_machine=m68k-next
		case $os in
		    -nextstep* )
d865 2
a866 2
		    -ns2*)
		      os=-nextstep2
d869 1
a869 1
		      os=-nextstep3
a872 20
	nh3000)
		basic_machine=m68k-harris
		os=-cxux
		;;
	nh[45]000)
		basic_machine=m88k-harris
		os=-cxux
		;;
	nindy960)
		basic_machine=i960-intel
		os=-nindy
		;;
	mon960)
		basic_machine=i960-intel
		os=-mon960
		;;
	nonstopux)
		basic_machine=mips-compaq
		os=-nonstopux
		;;
d874 2
a875 10
		basic_machine=np1-gould
		;;
	neo-tandem)
		basic_machine=neo-tandem
		;;
	nse-tandem)
		basic_machine=nse-tandem
		;;
	nsr-tandem)
		basic_machine=nsr-tandem
d878 3
a880 17
		basic_machine=hppa1.1-oki
		os=-proelf
		;;
	openrisc | openrisc-*)
		basic_machine=or32-unknown
		;;
	os400)
		basic_machine=powerpc-ibm
		os=-os400
		;;
	OSE68000 | ose68000)
		basic_machine=m68000-ericsson
		os=-ose
		;;
	os68k)
		basic_machine=m68k-none
		os=-os68k
d883 3
a885 14
		basic_machine=hppa1.1-hitachi
		os=-hiuxwe2
		;;
	paragon)
		basic_machine=i860-intel
		os=-osf
		;;
	parisc)
		basic_machine=hppa-unknown
		os=-linux
		;;
	parisc-*)
		basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
		os=-linux
d888 2
a889 1
		basic_machine=sparc-tti
d892 2
a893 1
		basic_machine=m68k-tti
d895 3
a897 2
	pc532 | pc532-*)
		basic_machine=ns32k-pc532
d899 3
a901 2
	pc98)
		basic_machine=i386-pc
d903 3
a905 2
	pc98-*)
		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
d907 3
a909 2
	pentium | p5 | k5 | k6 | nexgen | viac3)
		basic_machine=i586-pc
d911 3
a913 2
	pentiumpro | p6 | 6x86 | athlon | athlon_*)
		basic_machine=i686-pc
d915 3
a917 2
	pentiumii | pentium2 | pentiumiii | pentium3)
		basic_machine=i686-pc
d919 9
a927 2
	pentium4)
		basic_machine=i786-pc
d929 3
a931 2
	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
d933 3
a935 2
	pentiumpro-* | p6-* | 6x86-* | athlon-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d937 3
a939 2
	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
d941 4
a944 2
	pentium4-*)
		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
d946 3
a948 2
	pn)
		basic_machine=pn-gould
d950 3
a952 1
	power)	basic_machine=power-ibm
d954 3
a956 1
	ppc | ppcbe)	basic_machine=powerpc-unknown
d958 8
a965 2
	ppc-* | ppcbe-*)
		basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
d967 6
a972 2
	ppcle | powerpclittle)
		basic_machine=powerpcle-unknown
d974 5
a978 2
	ppcle-* | powerpclittle-*)
		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
d980 3
a982 1
	ppc64)	basic_machine=powerpc64-unknown
d984 4
a987 1
	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
d989 11
a999 2
	ppc64le | powerpc64little)
		basic_machine=powerpc64le-unknown
d1001 3
a1003 2
	ppc64le-* | powerpc64little-*)
		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
d1005 2
a1006 2
	ps2)
		basic_machine=i386-ibm
d1008 2
a1009 15
	pw32)
		basic_machine=i586-unknown
		os=-pw32
		;;
	rdos | rdos64)
		basic_machine=x86_64-pc
		os=-rdos
		;;
	rdos32)
		basic_machine=i386-pc
		os=-rdos
		;;
	rom68k)
		basic_machine=m68k-rom68k
		os=-coff
d1011 2
a1012 2
	rm[46]00)
		basic_machine=mips-siemens
d1014 2
a1015 2
	rtpc | rtpc-*)
		basic_machine=romp-ibm
d1017 2
a1018 2
	s390 | s390-*)
		basic_machine=s390-ibm
d1020 2
a1021 2
	s390x | s390x-*)
		basic_machine=s390x-ibm
d1023 2
a1024 3
	sa29200)
		basic_machine=a29k-amd
		os=-udi
d1026 2
a1027 2
	sb1)
		basic_machine=mipsisa64sb1-unknown
d1029 2
a1030 2
	sb1el)
		basic_machine=mipsisa64sb1el-unknown
d1032 2
a1033 3
	sde)
		basic_machine=mipsisa32-sde
		os=-elf
d1035 2
a1036 3
	sei)
		basic_machine=mips-sei
		os=-seiux
d1038 3
a1040 2
	sequent)
		basic_machine=i386-sequent
d1042 6
a1047 3
	sh)
		basic_machine=sh-hitachi
		os=-hms
d1049 4
a1052 2
	sh5el)
		basic_machine=sh5le-unknown
d1054 4
a1057 2
	sh64)
		basic_machine=sh64-unknown
d1059 3
a1061 3
	sparclite-wrs | simso-wrs)
		basic_machine=sparclite-wrs
		os=-vxworks
d1063 2
a1064 3
	sps7)
		basic_machine=m68k-bull
		os=-sysv2
d1066 2
a1067 2
	spur)
		basic_machine=spur-unknown
d1069 2
a1070 2
	st2000)
		basic_machine=m68k-tandem
d1072 3
a1074 3
	stratus)
		basic_machine=i860-stratus
		os=-sysv4
d1076 2
a1077 2
	strongarm-* | thumb-*)
		basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
d1079 2
a1080 2
	sun2)
		basic_machine=m68000-sun
d1082 3
a1084 3
	sun2os3)
		basic_machine=m68000-sun
		os=-sunos3
d1086 2
a1087 3
	sun2os4)
		basic_machine=m68000-sun
		os=-sunos4
d1089 2
a1090 3
	sun3os3)
		basic_machine=m68k-sun
		os=-sunos3
d1092 3
a1094 3
	sun3os4)
		basic_machine=m68k-sun
		os=-sunos4
d1096 2
a1097 3
	sun4os3)
		basic_machine=sparc-sun
		os=-sunos3
d1099 2
a1100 3
	sun4os4)
		basic_machine=sparc-sun
		os=-sunos4
d1102 2
a1103 3
	sun4sol2)
		basic_machine=sparc-sun
		os=-solaris2
d1105 2
a1106 2
	sun3 | sun3-*)
		basic_machine=m68k-sun
d1108 2
a1109 2
	sun4)
		basic_machine=sparc-sun
d1111 2
a1112 2
	sun386 | sun386i | roadrunner)
		basic_machine=i386-sun
d1114 2
a1115 3
	sv1)
		basic_machine=sv1-cray
		os=-unicos
d1117 2
a1118 3
	symmetry)
		basic_machine=i386-sequent
		os=-dynix
d1120 2
a1121 3
	t3e)
		basic_machine=alphaev5-cray
		os=-unicos
d1123 2
a1124 3
	t90)
		basic_machine=t90-cray
		os=-unicos
d1126 2
a1127 3
	tile*)
		basic_machine=$basic_machine-unknown
		os=-linux-gnu
d1129 2
a1130 2
	tx39)
		basic_machine=mipstx39-unknown
d1132 2
a1133 2
	tx39el)
		basic_machine=mipstx39el-unknown
d1135 2
a1136 30
	toad1)
		basic_machine=pdp10-xkl
		os=-tops20
		;;
	tower | tower-32)
		basic_machine=m68k-ncr
		;;
	tpf)
		basic_machine=s390x-ibm
		os=-tpf
		;;
	udi29k)
		basic_machine=a29k-amd
		os=-udi
		;;
	ultra3)
		basic_machine=a29k-nyu
		os=-sym1
		;;
	v810 | necv810)
		basic_machine=v810-nec
		os=-none
		;;
	vaxv)
		basic_machine=vax-dec
		os=-sysv
		;;
	vms)
		basic_machine=vax-dec
		os=-vms
d1138 2
a1139 18
	vpp*|vx|vx-*)
		basic_machine=f301-fujitsu
		;;
	vxworks960)
		basic_machine=i960-wrs
		os=-vxworks
		;;
	vxworks68)
		basic_machine=m68k-wrs
		os=-vxworks
		;;
	vxworks29k)
		basic_machine=a29k-wrs
		os=-vxworks
		;;
	w65*)
		basic_machine=w65-wdc
		os=-none
d1141 2
a1142 3
	w89k-*)
		basic_machine=hppa1.1-winbond
		os=-proelf
d1144 2
a1145 6
	xbox)
		basic_machine=i686-pc
		os=-mingw32
		;;
	xps | xps100)
		basic_machine=xps100-honeywell
d1148 1
a1148 1
		basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
d1150 2
a1151 15
	ymp)
		basic_machine=ymp-cray
		os=-unicos
		;;
	z8k-*-coff)
		basic_machine=z8k-unknown
		os=-sim
		;;
	z80-*-coff)
		basic_machine=z80-unknown
		os=-sim
		;;
	none)
		basic_machine=none-none
		os=-none
d1154 4
a1157 7
# Here we handle the default manufacturer of certain CPU types.  It is in
# some cases the only manufacturer, in others, it is the most popular.
	w89k)
		basic_machine=hppa1.1-winbond
		;;
	op50n)
		basic_machine=hppa1.1-oki
d1159 3
a1161 2
	op60c)
		basic_machine=hppa1.1-oki
d1163 3
a1165 2
	romp)
		basic_machine=romp-ibm
d1167 2
a1168 2
	mmix)
		basic_machine=mmix-knuth
d1170 3
a1172 2
	rs6000)
		basic_machine=rs6000-ibm
d1174 3
a1176 2
	vax)
		basic_machine=vax-dec
d1178 3
a1180 3
	pdp10)
		# there are many clones, so DEC is not a safe bet
		basic_machine=pdp10-unknown
d1182 11
a1192 2
	pdp11)
		basic_machine=pdp11-dec
d1194 2
a1195 26
	we32k)
		basic_machine=we32k-att
		;;
	sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
		basic_machine=sh-unknown
		;;
	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
		basic_machine=sparc-sun
		;;
	cydra)
		basic_machine=cydra-cydrome
		;;
	orion)
		basic_machine=orion-highlevel
		;;
	orion105)
		basic_machine=clipper-highlevel
		;;
	mac | mpw | mac-mpw)
		basic_machine=m68k-apple
		;;
	pmac | pmac-mpw)
		basic_machine=powerpc-apple
		;;
	*-unknown)
		# Make sure to match an already-canonicalized machine name.
d1197 1
d1199 114
a1312 2
		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
		exit 1
d1317 3
a1319 3
case $basic_machine in
	*-digital*)
		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
d1321 2
a1322 2
	*-commodore*)
		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
d1330 1
a1330 1
if [ x"$os" != x"" ]
d1332 41
d1374 5
a1378 5
	# First match some system type aliases
	# that might get confused with valid system types.
	# -solaris* is a basic system type, with this one exception.
	-auroraux)
		os=-auroraux
d1380 2
a1381 2
	-solaris1 | -solaris1.*)
		os=`echo $os | sed -e 's|solaris1|sunos4|'`
d1383 2
a1384 2
	-solaris)
		os=-solaris2
d1386 2
a1387 2
	-svr4*)
		os=-sysv4
d1389 2
a1390 2
	-unixware*)
		os=-sysv4.2uw
d1392 3
a1394 2
	-gnu/linux*)
		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
d1396 3
a1398 41
	# First accept the basic system types.
	# The portable systems comes first.
	# Each alternative MUST END IN A *, to match a version number.
	# -sysv* is not here because it comes later, after sysvr4.
	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
	      | -sym* | -kopensolaris* | -plan9* \
	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
	      | -aos* | -aros* | -cloudabi* | -sortix* \
	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
	      | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
	      | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
	      | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
	      | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
	      | -linux-newlib* | -linux-musl* | -linux-uclibc* \
	      | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -irx* \
	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
	      | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
	      | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)
	# Remember, each alternative MUST END IN *, to match a version number.
		;;
	-qnx*)
		case $basic_machine in
		    x86-* | i*86-*)
			;;
		    *)
			os=-nto$os
			;;
		esac
d1400 2
a1401 1
	-nto-qnx*)
d1403 2
a1404 2
	-nto*)
		os=`echo $os | sed -e 's|nto|nto-qnx|'`
d1406 2
a1407 3
	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
d1409 2
a1410 2
	-mac*)
		os=`echo $os | sed -e 's|mac|macos|'`
d1412 2
a1413 2
	-linux-dietlibc)
		os=-linux-dietlibc
d1415 2
a1416 2
	-linux*)
		os=`echo $os | sed -e 's|linux|linux-gnu|'`
d1418 2
a1419 2
	-sunos5*)
		os=`echo $os | sed -e 's|sunos5|solaris2|'`
d1421 2
a1422 2
	-sunos6*)
		os=`echo $os | sed -e 's|sunos6|solaris3|'`
d1424 2
a1425 2
	-opened*)
		os=-openedition
d1427 2
a1428 2
	-os400*)
		os=-os400
d1430 2
a1431 2
	-wince*)
		os=-wince
d1433 2
a1434 2
	-osfrose*)
		os=-osfrose
d1436 2
a1437 2
	-osf*)
		os=-osf
d1439 2
a1440 2
	-utek*)
		os=-bsd
d1442 2
a1443 2
	-dynix*)
		os=-bsd
d1445 2
a1446 2
	-acis*)
		os=-aos
d1448 2
a1449 2
	-atheos*)
		os=-atheos
d1451 2
a1452 2
	-syllable*)
		os=-syllable
d1454 2
a1455 2
	-386bsd)
		os=-bsd
d1457 2
a1458 2
	-ctix* | -uts*)
		os=-sysv
d1460 2
a1461 2
	-nova*)
		os=-rtmk-nova
d1463 2
a1464 2
	-ns2 )
		os=-nextstep2
d1466 2
a1467 2
	-nsk*)
		os=-nsk
d1469 2
a1470 3
	# Preserve the version number of sinix5.
	-sinix5.*)
		os=`echo $os | sed -e 's|sinix|sysv|'`
d1472 2
a1473 2
	-sinix*)
		os=-sysv4
d1475 2
a1476 2
	-tpf*)
		os=-tpf
d1478 2
a1479 2
	-triton*)
		os=-sysv3
d1481 2
a1482 2
	-oss*)
		os=-sysv3
d1484 2
a1485 2
	-svr4)
		os=-sysv4
d1487 3
a1489 2
	-svr3)
		os=-sysv3
d1491 2
a1492 2
	-sysvr4)
		os=-sysv4
d1494 2
a1495 2
	# This must come after -sysvr4.
	-sysv*)
d1497 2
a1498 2
	-ose*)
		os=-ose
d1500 2
a1501 2
	-es1800*)
		os=-ose
d1503 2
a1504 2
	-xenix)
		os=-xenix
d1506 2
a1507 2
	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
		os=-mint
d1509 2
a1510 2
	-aros*)
		os=-aros
d1512 2
a1513 2
	-zvmoe)
		os=-zvmoe
d1515 2
a1516 2
	-dicos*)
		os=-dicos
d1518 2
a1519 1
	-nacl*)
d1521 12
a1532 3
	-ios)
		;;
	-none)
d1535 1
a1535 4
		# Get rid of the `-' at the beginning of $os.
		os=`echo $os | sed 's/[^-]*-//'`
		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
		exit 1
d1538 1
d1551 2
a1552 1
case $basic_machine in
d1554 1
a1554 1
		os=-elf
d1557 1
a1557 1
		os=-elf
d1560 1
a1560 1
		os=-riscix1.2
d1563 2
a1564 1
		os=-linux
d1567 1
a1567 1
		os=-aout
d1570 1
a1570 1
		os=-coff
d1573 4
a1576 1
		os=-elf
d1579 1
a1579 1
		os=-elf
d1582 1
a1582 1
		os=-coff
d1585 1
a1585 1
		os=-coff
d1588 1
a1588 1
		os=-coff
d1592 1
a1592 1
		os=-tops20
d1595 1
a1595 1
		os=-none
d1598 1
a1598 1
		os=-ultrix4.2
d1601 1
a1601 1
		os=-domain
d1604 1
a1604 1
		os=-sunos4.0.2
d1607 1
a1607 1
		os=-sunos3
d1610 1
a1610 1
		os=-aout
d1613 1
a1613 1
		os=-elf
d1616 1
a1616 1
		os=-elf
d1619 1
a1619 1
		os=-elf
d1622 1
a1622 1
		os=-coff
d1625 1
a1625 1
		os=-sysv3
d1628 1
a1628 1
		os=-sunos4.1.1
d1631 1
a1631 1
		os=-elf
d1634 1
a1634 4
		os=-beos
		;;
	*-haiku)
		os=-haiku
d1637 1
a1637 1
		os=-aix
d1640 1
a1640 1
		os=-mmixware
d1643 1
a1643 1
		os=-proelf
d1646 1
a1646 1
		os=-proelf
d1649 1
a1649 1
		os=-proelf
d1652 1
a1652 1
		os=-hpux
d1655 1
a1655 1
		os=-hiux
d1658 1
a1658 1
		os=-sysv
d1661 1
a1661 1
		os=-amigaos
d1664 1
a1664 1
		os=-dgux
d1667 1
a1667 1
		os=-sysv3
d1670 1
a1670 1
		os=-rtu
d1673 1
a1673 1
		os=-luna
d1675 2
a1676 2
	*-next )
		os=-nextstep
d1679 1
a1679 1
		os=-ptx
d1682 1
a1682 1
		os=-unos
d1685 1
a1685 1
		os=-genix
d1688 1
a1688 4
		os=-mvs
		;;
	*-next)
		os=-nextstep3
d1691 1
a1691 1
		os=-sysv
d1694 1
a1694 1
		os=-bsd
d1697 1
a1697 1
		os=-bsd
d1700 1
a1700 1
		os=-irix
d1703 1
a1703 1
		os=-sysv4
d1706 1
a1706 1
		os=-rtu
d1709 1
a1709 1
		os=-uxpv
d1712 1
a1712 1
		os=-coff
d1715 1
a1715 1
		os=-coff
d1718 1
a1718 1
		os=-macos
d1721 4
a1724 1
		os=-mint
d1727 1
a1727 1
		os=-none
d1730 1
d1733 92
d1827 4
a1830 5
vendor=unknown
case $basic_machine in
	*-unknown)
		case $os in
			-riscix*)
d1833 1
a1833 1
			-sunos*)
d1836 1
a1836 1
			-cnk*|-aix*)
d1839 1
a1839 1
			-beos*)
d1842 1
a1842 1
			-hpux*)
d1845 1
a1845 1
			-mpeix*)
d1848 1
a1848 1
			-hiux*)
d1851 1
a1851 1
			-unos*)
d1854 1
a1854 1
			-dgux*)
d1857 1
a1857 1
			-luna*)
d1860 1
a1860 1
			-genix*)
d1863 7
a1869 1
			-mvs* | -opened*)
d1872 1
a1872 1
			-os400*)
d1875 1
a1875 1
			-ptx*)
d1878 1
a1878 1
			-tpf*)
d1881 1
a1881 1
			-vxsim* | -vxworks* | -windiss*)
d1884 1
a1884 1
			-aux*)
d1887 1
a1887 1
			-hms*)
d1890 1
a1890 1
			-mpw* | -macos*)
d1893 1
a1893 1
			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
d1896 1
a1896 1
			-vos*)
a1899 1
		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
d1903 1
a1903 1
echo $basic_machine$os
d1907 1
a1907 1
# eval: (add-hook 'write-file-hooks 'time-stamp)
@


