166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#! /bin/sh
266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Configuration validation subroutine script.
366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumantimestamp='2003-02-22'
766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is (in principle) common to ALL GNU software.
966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The presence of a machine in this file suggests that SOME GNU software
1066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# can handle that machine.  It does not imply ALL GNU software can.
1166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
1266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is free software; you can redistribute it and/or modify
1366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it under the terms of the GNU General Public License as published by
1466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the Free Software Foundation; either version 2 of the License, or
1566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# (at your option) any later version.
1666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
1766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This program is distributed in the hope that it will be useful,
1866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# but WITHOUT ANY WARRANTY; without even the implied warranty of
1966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
2066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# GNU General Public License for more details.
2166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
2266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# You should have received a copy of the GNU General Public License
2366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# along with this program; if not, write to the Free Software
2466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Foundation, Inc., 59 Temple Place - Suite 330,
2566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Boston, MA 02111-1307, USA.
2666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
2766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# As a special exception to the GNU General Public License, if you
2866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# distribute this file as part of a program that contains a
2966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# configuration script generated by Autoconf, you may include it under
3066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# the same distribution terms that you use for the rest of that program.
3166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
3266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Please send patches to <config-patches@gnu.org>.  Submit a context
3366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# diff and a properly formatted ChangeLog entry.
3466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#
3566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Configuration subroutine to validate and canonicalize a configuration type.
3666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Supply the specified configuration type as an argument.
3766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# If it is invalid, we print an error message on stderr and exit with code 1.
3866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Otherwise, we print the canonical config type on stdout and succeed.
3966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
4066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# This file is supposed to be the same for all GNU packages
4166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# and recognize all the CPU types, system types and aliases
4266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# that are meaningful with *any* GNU software.
4366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Each package is responsible for reporting which valid configurations
4466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# it does not support.  The user should be able to distinguish
4566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# a failure to support a valid configuration from a meaningless
4666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# configuration.
4766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
4866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The goal of this file is to map all the various variations of a given
4966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# machine specification into a single specification in the form:
5066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
5166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# or in some cases, the newer four-part form:
5266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
5366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# It is wrong to echo any other type of specification.
5466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
5566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanme=`echo "$0" | sed -e 's,.*/,,'`
5666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
5766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanusage="\
5866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanUsage: $0 [OPTION] CPU-MFR-OPSYS
5966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       $0 [OPTION] ALIAS
6066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
6166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCanonicalize a configuration name.
6266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
6366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanOperation modes:
6466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  -h, --help         print this help, then exit
6566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  -t, --time-stamp   print date of last modification, then exit
6666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  -v, --version      print version number, then exit
6766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
6866b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanReport bugs and patches to <config-patches@gnu.org>."
6966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanversion="\
7166b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanGNU config.sub ($timestamp)
7266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7366b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
7466b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanFree Software Foundation, Inc.
7566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7666b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanThis is free software; see the source for copying conditions.  There is NO
7766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
7966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanhelp="
8066b8ab22586debccb1f787d4d52b7f042d4ddeb8John BaumanTry \`$me --help' for more information."
8166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
8266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Parse command line
8366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanwhile test $# -gt 0 ; do
8466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  case $1 in
8566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    --time-stamp | --time* | -t )
8666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo "$timestamp" ; exit 0 ;;
8766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    --version | -v )
8866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo "$version" ; exit 0 ;;
8966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    --help | --h* | -h )
9066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo "$usage"; exit 0 ;;
9166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    -- )     # Stop option processing
9266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       shift; break ;;
9366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    - )	# Use stdin as input.
9466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       break ;;
9566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    -* )
9666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo "$me: invalid option $1$help"
9766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       exit 1 ;;
9866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
9966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    *local*)
10066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       # First pass through any local machine types.
10166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       echo $1
10266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       exit 0;;
10366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
10466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    * )
10566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman       break ;;
10666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  esac
10766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumandone
10866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
10966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $# in
11066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 0) echo "$me: missing argument$help" >&2
11166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    exit 1;;
11266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 1) ;;
11366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman *) echo "$me: too many arguments$help" >&2
11466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    exit 1;;
11566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
11666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
11766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
11866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we must recognize all the valid KERNEL-OS combinations.
11966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
12066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $maybe_os in
12166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
12266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    os=-$maybe_os
12366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
12466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
12566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman  *)
12666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
12766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    if [ $basic_machine != $1 ]
12866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    then os=`echo $1 | sed 's/.*-/-/'`
12966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    else os=; fi
13066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman    ;;
13166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
13266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
13366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### Let's recognize common machines as not being operating systems so
13466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### that things like config.sub decstation-3100 work.  We also
13566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### recognize some manufacturers as not being operating systems, so we
13666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman### can provide default operating systems below.
13766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $os in
13866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sun*os*)
13966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# Prevent following clause from handling this invalid input.
14066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
14166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
14266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
14366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
14466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
14566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
14666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
14766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-apple | -axis)
14866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=
14966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$1
15066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
15166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sim | -cisco | -oki | -wec | -winbond)
15266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=
15366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$1
15466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
15566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-scout)
15666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
15766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-wrs)
15866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vxworks
15966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$1
16066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
16166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-chorusos*)
16266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-chorusos
16366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$1
16466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
16566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 	-chorusrdb)
16666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 		os=-chorusrdb
16766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$1
16866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman 		;;
16966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-hiux*)
17066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hiuxwe2
17166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
17266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sco5)
17366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sco3.2v5
17466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
17566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
17666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sco4)
17766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sco3.2v4
17866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
17966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
18066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sco3.2.[4-9]*)
18166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
18266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
18366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
18466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sco3.2v[4-9]*)
18566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# Don't forget version if it is 3.2v4 or newer.
18666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
18766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
18866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sco*)
18966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sco3.2v2
19066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
19166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
19266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-udk*)
19366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
19466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
19566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-isc)
19666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-isc2.2
19766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
19866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
19966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-clix*)
20066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=clipper-intergraph
20166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
20266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-isc*)
20366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
20466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
20566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-lynx*)
20666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-lynxos
20766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
20866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-ptx*)
20966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
21066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
21166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-windowsnt*)
21266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's/windowsnt/winnt/'`
21366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
21466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-psos*)
21566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-psos
21666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
21766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-mint | -mint[0-9]*)
21866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-atari
21966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mint
22066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
22166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
22266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
22366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Decode aliases for certain CPU-COMPANY combinations.
22466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in
22566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Recognize the basic CPU types without company name.
22666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Some are omitted here because they have special meanings below.
22766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	1750a | 580 \
22866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| a29k \
22966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
23066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
23166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
23266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| clipper \
23366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| d10v | d30v | dlx | dsp16xx \
23466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| fr30 | frv \
23566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
23666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| i370 | i860 | i960 | ia64 \
23766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| ip2k \
23866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| m32r | m68000 | m68k | m88k | mcore \
23966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips | mipsbe | mipseb | mipsel | mipsle \
24066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips16 \
24166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64 | mips64el \
24266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr | mips64vrel \
24366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64orion | mips64orionel \
24466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr4100 | mips64vr4100el \
24566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr4300 | mips64vr4300el \
24666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr5000 | mips64vr5000el \
24766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa32 | mipsisa32el \
24866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa32r2 | mipsisa32r2el \
24966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64 | mipsisa64el \
25066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64sb1 | mipsisa64sb1el \
25166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64sr71k | mipsisa64sr71kel \
25266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipstx39 | mipstx39el \
25366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mn10200 | mn10300 \
25466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| msp430 \
25566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| ns16k | ns32k \
25666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| openrisc | or32 \
25766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| pdp10 | pdp11 | pj | pjl \
25866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
25966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| pyramid \
26066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
26166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sh64 | sh64le \
26266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
26366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| strongarm \
26466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| tahoe | thumb | tic80 | tron \
26566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| v850 | v850e \
26666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| we32k \
26766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| x86 | xscale | xstormy16 | xtensa \
26866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| z8k)
26966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$basic_machine-unknown
27066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
27166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m6811 | m68hc11 | m6812 | m68hc12)
27266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# Motorola 68HC11/12.
27366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=$basic_machine-unknown
27466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
27566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
27666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
27766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
27866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
27966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# We use `pc' rather than `unknown'
28066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# because (1) that's what they normally are, and
28166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# (2) the word "unknown" tends to confuse beginning users.
28266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i*86 | x86_64)
28366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  basic_machine=$basic_machine-pc
28466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	  ;;
28566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Object if more than one company name word.
28666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-*-*)
28766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
28866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		exit 1
28966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
29066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Recognize the basic CPU types with company name.
29166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	580-* \
29266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| a29k-* \
29366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
29466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
29566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
29666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
29766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| avr-* \
29866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| bs2000-* \
29966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
30066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| clipper-* | cydra-* \
30166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| d10v-* | d30v-* | dlx-* \
30266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| elxsi-* \
30366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
30466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| h8300-* | h8500-* \
30566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
30666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| i*86-* | i860-* | i960-* | ia64-* \
30766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| ip2k-* \
30866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| m32r-* \
30966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
31066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| m88110-* | m88k-* | mcore-* \
31166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
31266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips16-* \
31366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64-* | mips64el-* \
31466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr-* | mips64vrel-* \
31566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64orion-* | mips64orionel-* \
31666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr4100-* | mips64vr4100el-* \
31766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr4300-* | mips64vr4300el-* \
31866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mips64vr5000-* | mips64vr5000el-* \
31966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa32-* | mipsisa32el-* \
32066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa32r2-* | mipsisa32r2el-* \
32166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64-* | mipsisa64el-* \
32266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64sb1-* | mipsisa64sb1el-* \
32366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
32466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| mipstx39-* | mipstx39el-* \
32566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| msp430-* \
32666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
32766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| orion-* \
32866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
32966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
33066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| pyramid-* \
33166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| romp-* | rs6000-* \
33266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
33366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
33466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
33566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
33666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| tahoe-* | thumb-* \
33766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
33866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| tron-* \
33966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| v850-* | v850e-* | vax-* \
34066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| we32k-* \
34166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
34266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| xtensa-* \
34366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| ymp-* \
34466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	| z8k-*)
34566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
34666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Recognize the various machine names and aliases which stand
34766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# for a CPU type and a company and sometimes even an OS.
34866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	386bsd)
34966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-unknown
35066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
35166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
35266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
35366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-att
35466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
35566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	3b*)
35666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=we32k-att
35766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
35866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	a29khif)
35966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-amd
36066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-udi
36166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
36266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	adobe68k)
36366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68010-adobe
36466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-scout
36566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
36666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	alliant | fx80)
36766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=fx80-alliant
36866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
36966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	altos | altos3068)
37066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-altos
37166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
37266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	am29k)
37366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-none
37466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
37566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
37666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	amdahl)
37766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=580-amdahl
37866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
37966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
38066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	amiga | amiga-*)
38166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-unknown
38266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
38366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	amigaos | amigados)
38466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-unknown
38566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-amigaos
38666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
38766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	amigaunix | amix)
38866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-unknown
38966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
39066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
39166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	apollo68)
39266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-apollo
39366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
39466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
39566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	apollo68bsd)
39666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-apollo
39766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
39866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
39966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	aux)
40066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-apple
40166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aux
40266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
40366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	balance)
40466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ns32k-sequent
40566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-dynix
40666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
40766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	c90)
40866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c90-cray
40966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
41066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
41166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	convex-c1)
41266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c1-convex
41366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
41466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
41566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	convex-c2)
41666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c2-convex
41766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
41866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
41966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	convex-c32)
42066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c32-convex
42166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
42266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
42366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	convex-c34)
42466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c34-convex
42566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
42666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
42766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	convex-c38)
42866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=c38-convex
42966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
43066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
43166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cray | j90)
43266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=j90-cray
43366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
43466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
43566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	crds | unos)
43666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-crds
43766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
43866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cris | cris-* | etrax*)
43966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=cris-axis
44066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
44166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	da30 | da30-*)
44266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-da30
44366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
44466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
44566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-dec
44666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
44766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	decsystem10* | dec10*)
44866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pdp10-dec
44966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-tops10
45066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
45166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	decsystem20* | dec20*)
45266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pdp10-dec
45366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-tops20
45466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
45566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	delta | 3300 | motorola-3300 | motorola-delta \
45666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | 3300-motorola | delta-motorola)
45766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-motorola
45866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
45966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	delta88)
46066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m88k-motorola
46166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
46266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
46366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	dpx20 | dpx20-*)
46466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=rs6000-bull
46566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bosx
46666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
46766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	dpx2* | dpx2*-bull)
46866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-bull
46966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
47066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
47166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ebmon29k)
47266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-amd
47366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ebmon
47466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
47566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	elxsi)
47666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=elxsi-elxsi
47766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
47866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
47966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	encore | umax | mmax)
48066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ns32k-encore
48166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
48266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	es1800 | OSE68k | ose68k | ose | OSE)
48366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-ericsson
48466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ose
48566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
48666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	fx2800)
48766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i860-alliant
48866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
48966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	genix)
49066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ns32k-ns
49166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
49266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	gmicro)
49366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=tron-gmicro
49466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
49566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
49666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	go32)
49766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-pc
49866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-go32
49966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
50066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	h3050r* | hiux*)
50166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hitachi
50266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hiuxwe2
50366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
50466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	h8300hms)
50566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=h8300-hitachi
50666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hms
50766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
50866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	h8300xray)
50966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=h8300-hitachi
51066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-xray
51166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
51266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	h8500hms)
51366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=h8500-hitachi
51466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hms
51566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
51666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	harris)
51766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m88k-harris
51866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
51966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
52066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp300-*)
52166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-hp
52266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
52366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp300bsd)
52466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-hp
52566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
52666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
52766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp300hpux)
52866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-hp
52966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hpux
53066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
53166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp3k9[0-9][0-9] | hp9[0-9][0-9])
53266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.0-hp
53366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
53466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k2[0-9][0-9] | hp9k31[0-9])
53566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-hp
53666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
53766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k3[2-9][0-9])
53866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-hp
53966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
54066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k6[0-9][0-9] | hp6[0-9][0-9])
54166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.0-hp
54266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
54366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k7[0-79][0-9] | hp7[0-79][0-9])
54466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
54566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
54666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k78[0-9] | hp78[0-9])
54766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# FIXME: really hppa2.0-hp
54866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
54966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
55066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
55166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# FIXME: really hppa2.0-hp
55266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
55366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
55466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k8[0-9][13679] | hp8[0-9][13679])
55566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
55666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
55766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hp9k8[0-9][0-9] | hp8[0-9][0-9])
55866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.0-hp
55966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
56066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppa-next)
56166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nextstep3
56266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
56366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppaosf)
56466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
56566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-osf
56666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
56766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	hppro)
56866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hp
56966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
57066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
57166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i370-ibm* | ibm*)
57266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i370-ibm
57366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
57466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
57566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i*86v32)
57666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
57766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv32
57866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
57966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i*86v4*)
58066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
58166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
58266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
58366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i*86v)
58466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
58566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
58666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
58766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i*86sol2)
58866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
58966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-solaris2
59066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
59166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i386mach)
59266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-mach
59366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mach
59466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
59566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i386-vsta | vsta)
59666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-unknown
59766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vsta
59866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
59966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	iris | iris4d)
60066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-sgi
60166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		case $os in
60266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    -irix*)
60366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
60466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    *)
60566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			os=-irix4
60666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
60766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		esac
60866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
60966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	isi68 | isi)
61066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-isi
61166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
61266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
61366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m88k-omron*)
61466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m88k-omron
61566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
61666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	magnum | m3230)
61766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-mips
61866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
61966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
62066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	merlin)
62166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ns32k-utek
62266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
62366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
62466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mingw32)
62566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-pc
62666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mingw32
62766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
62866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	miniframe)
62966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-convergent
63066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
63166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
63266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-atari
63366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mint
63466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
63566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mips3*-*)
63666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
63766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
63866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mips3*)
63966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
64066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
64166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mmix*)
64266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mmix-knuth
64366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mmixware
64466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
64566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	monitor)
64666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-rom68k
64766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
64866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
64966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	morphos)
65066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpc-unknown
65166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-morphos
65266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
65366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	msdos)
65466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-pc
65566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-msdos
65666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
65766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mvs)
65866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i370-ibm
65966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mvs
66066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
66166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ncr3000)
66266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i486-ncr
66366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
66466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
66566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	netbsd386)
66666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-unknown
66766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-netbsd
66866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
66966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	netwinder)
67066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=armv4l-rebel
67166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-linux
67266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
67366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	news | news700 | news800 | news900)
67466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-sony
67566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-newsos
67666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
67766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	news1000)
67866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68030-sony
67966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-newsos
68066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
68166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	news-3600 | risc-news)
68266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-sony
68366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-newsos
68466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
68566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	necv70)
68666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=v70-nec
68766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
68866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
68966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	next | m*-next )
69066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-next
69166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		case $os in
69266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    -nextstep* )
69366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
69466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    -ns2*)
69566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		      os=-nextstep2
69666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
69766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    *)
69866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		      os=-nextstep3
69966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
70066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		esac
70166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
70266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nh3000)
70366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-harris
70466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-cxux
70566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
70666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nh[45]000)
70766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m88k-harris
70866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-cxux
70966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
71066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nindy960)
71166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i960-intel
71266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nindy
71366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
71466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mon960)
71566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i960-intel
71666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mon960
71766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
71866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nonstopux)
71966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-compaq
72066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nonstopux
72166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
72266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	np1)
72366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=np1-gould
72466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
72566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nv1)
72666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=nv1-cray
72766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicosmp
72866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
72966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	nsr-tandem)
73066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=nsr-tandem
73166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
73266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	op50n-* | op60c-*)
73366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-oki
73466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
73566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
73666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	or32 | or32-*)
73766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=or32-unknown
73866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
73966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
74066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	OSE68000 | ose68000)
74166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-ericsson
74266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ose
74366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
74466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	os68k)
74566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-none
74666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-os68k
74766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
74866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pa-hitachi)
74966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-hitachi
75066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hiuxwe2
75166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
75266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	paragon)
75366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i860-intel
75466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-osf
75566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
75666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pbd)
75766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-tti
75866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
75966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pbb)
76066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-tti
76166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
76266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pc532 | pc532-*)
76366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ns32k-pc532
76466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
76566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentium | p5 | k5 | k6 | nexgen | viac3)
76666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i586-pc
76766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
76866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentiumpro | p6 | 6x86 | athlon | athlon_*)
76966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i686-pc
77066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
77166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentiumii | pentium2)
77266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i686-pc
77366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
77466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
77566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
77666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
77766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentiumpro-* | p6-* | 6x86-* | athlon-*)
77866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
77966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
78066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pentiumii-* | pentium2-*)
78166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
78266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
78366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pn)
78466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pn-gould
78566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
78666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	power)	basic_machine=power-ibm
78766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
78866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc)	basic_machine=powerpc-unknown
78966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
79066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
79166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
79266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppcle | powerpclittle | ppc-le | powerpc-little)
79366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpcle-unknown
79466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
79566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppcle-* | powerpclittle-*)
79666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
79766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
79866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc64)	basic_machine=powerpc64-unknown
79966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
80066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
80166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
80266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
80366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpc64le-unknown
80466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
80566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ppc64le-* | powerpc64little-*)
80666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
80766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
80866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ps2)
80966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-ibm
81066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
81166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pw32)
81266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i586-unknown
81366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-pw32
81466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
81566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	rom68k)
81666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-rom68k
81766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
81866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
81966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	rm[46]00)
82066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mips-siemens
82166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
82266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	rtpc | rtpc-*)
82366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=romp-ibm
82466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
82566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	s390 | s390-*)
82666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=s390-ibm
82766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
82866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	s390x | s390x-*)
82966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=s390x-ibm
83066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
83166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sa29200)
83266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-amd
83366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-udi
83466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
83566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sb1)
83666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mipsisa64sb1-unknown
83766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
83866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sb1el)
83966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mipsisa64sb1el-unknown
84066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
84166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sequent)
84266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-sequent
84366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
84466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sh)
84566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sh-hitachi
84666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hms
84766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
84866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sparclite-wrs | simso-wrs)
84966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparclite-wrs
85066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vxworks
85166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
85266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sps7)
85366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-bull
85466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv2
85566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
85666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	spur)
85766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=spur-unknown
85866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
85966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	st2000)
86066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-tandem
86166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
86266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	stratus)
86366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i860-stratus
86466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
86566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
86666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun2)
86766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-sun
86866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
86966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun2os3)
87066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-sun
87166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos3
87266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
87366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun2os4)
87466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68000-sun
87566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos4
87666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
87766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun3os3)
87866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-sun
87966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos3
88066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
88166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun3os4)
88266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-sun
88366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos4
88466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
88566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun4os3)
88666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-sun
88766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos3
88866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
88966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun4os4)
89066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-sun
89166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos4
89266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
89366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun4sol2)
89466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-sun
89566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-solaris2
89666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
89766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun3 | sun3-*)
89866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-sun
89966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
90066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun4)
90166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-sun
90266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
90366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sun386 | sun386i | roadrunner)
90466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-sun
90566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
90666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sv1)
90766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sv1-cray
90866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
90966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
91066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	symmetry)
91166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i386-sequent
91266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-dynix
91366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
91466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	t3e)
91566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=alphaev5-cray
91666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
91766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
91866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	t90)
91966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=t90-cray
92066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
92166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
92266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        tic4x | c4x*)
92366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=tic4x-unknown
92466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
92566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
92666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tic54x | c54x*)
92766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=tic54x-unknown
92866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
92966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
93066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tic55x | c55x*)
93166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=tic55x-unknown
93266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
93366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
93466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tic6x | c6x*)
93566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=tic6x-unknown
93666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
93766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
93866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tx39)
93966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mipstx39-unknown
94066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
94166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tx39el)
94266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=mipstx39el-unknown
94366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
94466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	toad1)
94566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pdp10-xkl
94666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-tops20
94766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
94866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	tower | tower-32)
94966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-ncr
95066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
95166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	udi29k)
95266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-amd
95366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-udi
95466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
95566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ultra3)
95666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-nyu
95766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sym1
95866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
95966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	v810 | necv810)
96066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=v810-nec
96166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
96266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
96366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vaxv)
96466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=vax-dec
96566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
96666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
96766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vms)
96866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=vax-dec
96966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vms
97066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
97166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vpp*|vx|vx-*)
97266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=f301-fujitsu
97366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
97466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vxworks960)
97566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=i960-wrs
97666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vxworks
97766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
97866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vxworks68)
97966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-wrs
98066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vxworks
98166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
98266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vxworks29k)
98366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=a29k-wrs
98466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-vxworks
98566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
98666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	w65*)
98766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=w65-wdc
98866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
98966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
99066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	w89k-*)
99166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-winbond
99266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
99366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
99466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	xps | xps100)
99566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=xps100-honeywell
99666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
99766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	ymp)
99866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=ymp-cray
99966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unicos
100066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
100166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	z8k-*-coff)
100266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=z8k-unknown
100366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sim
100466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
100566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	none)
100666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=none-none
100766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
100866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
100966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
101066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the default manufacturer of certain CPU types.  It is in
101166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# some cases the only manufacturer, in others, it is the most popular.
101266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	w89k)
101366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-winbond
101466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
101566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	op50n)
101666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-oki
101766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
101866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	op60c)
101966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=hppa1.1-oki
102066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
102166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	romp)
102266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=romp-ibm
102366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
102466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	rs6000)
102566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=rs6000-ibm
102666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
102766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	vax)
102866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=vax-dec
102966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
103066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pdp10)
103166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# there are many clones, so DEC is not a safe bet
103266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pdp10-unknown
103366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
103466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pdp11)
103566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=pdp11-dec
103666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
103766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	we32k)
103866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=we32k-att
103966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
104066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
104166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sh-unknown
104266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
104366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sh64)
104466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sh64-unknown
104566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
104666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sparc | sparcv9 | sparcv9b)
104766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=sparc-sun
104866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
104966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	cydra)
105066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=cydra-cydrome
105166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
105266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	orion)
105366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=orion-highlevel
105466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
105566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	orion105)
105666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=clipper-highlevel
105766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
105866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mac | mpw | mac-mpw)
105966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=m68k-apple
106066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
106166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pmac | pmac-mpw)
106266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=powerpc-apple
106366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
106466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-unknown)
106566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# Make sure to match an already-canonicalized machine name.
106666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
106766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
106866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
106966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		exit 1
107066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
107166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
107266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
107366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we canonicalize certain aliases for manufacturers.
107466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in
107566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-digital*)
107666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
107766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
107866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-commodore*)
107966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
108066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
108166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
108266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
108366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
108466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
108566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Decode manufacturer-specific aliases for certain operating systems.
108666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
108766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanif [ x"$os" != x"" ]
108866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanthen
108966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $os in
109066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # First match some system type aliases
109166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman        # that might get confused with valid system types.
109266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# -solaris* is a basic system type, with this one exception.
109366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-solaris1 | -solaris1.*)
109466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|solaris1|sunos4|'`
109566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
109666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-solaris)
109766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-solaris2
109866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
109966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-svr4*)
110066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
110166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
110266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-unixware*)
110366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4.2uw
110466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
110566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-gnu/linux*)
110666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
110766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
110866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# First accept the basic system types.
110966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# The portable systems comes first.
111066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Each alternative MUST END IN A *, to match a version number.
111166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# -sysv* is not here because it comes later, after sysvr4.
111266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
111366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
111466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
111566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
111666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -aos* \
111766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
111866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
111966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
112066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
112166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
112266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
112366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -chorusos* | -chorusrdb* \
112466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
112566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
112666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
112766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
112866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
112966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
113066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
113166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -powermax* | -dnix*)
113266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Remember, each alternative MUST END IN *, to match a version number.
113366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
113466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-qnx*)
113566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		case $basic_machine in
113666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    x86-* | i*86-*)
113766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
113866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		    *)
113966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			os=-nto$os
114066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			;;
114166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		esac
114266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
114366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-nto-qnx*)
114466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
114566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-nto*)
114666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|nto|nto-qnx|'`
114766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
114866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
114966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
115066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
115166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
115266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-mac*)
115366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|mac|macos|'`
115466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
115566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-linux*)
115666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|linux|linux-gnu|'`
115766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
115866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sunos5*)
115966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|sunos5|solaris2|'`
116066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
116166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sunos6*)
116266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|sunos6|solaris3|'`
116366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
116466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-opened*)
116566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-openedition
116666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
116766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-wince*)
116866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-wince
116966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
117066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-osfrose*)
117166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-osfrose
117266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
117366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-osf*)
117466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-osf
117566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
117666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-utek*)
117766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
117866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
117966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-dynix*)
118066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
118166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
118266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-acis*)
118366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aos
118466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
118566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-atheos*)
118666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-atheos
118766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
118866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-386bsd)
118966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
119066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
119166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-ctix* | -uts*)
119266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
119366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
119466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-nova*)
119566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-rtmk-nova
119666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
119766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-ns2 )
119866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nextstep2
119966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
120066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-nsk*)
120166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nsk
120266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
120366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# Preserve the version number of sinix5.
120466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sinix5.*)
120566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed -e 's|sinix|sysv|'`
120666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
120766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sinix*)
120866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
120966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
121066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-triton*)
121166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
121266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
121366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-oss*)
121466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
121566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
121666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-svr4)
121766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
121866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
121966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-svr3)
122066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
122166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
122266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sysvr4)
122366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
122466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
122566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# This must come after -sysvr4.
122666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-sysv*)
122766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
122866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-ose*)
122966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ose
123066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
123166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-es1800*)
123266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ose
123366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
123466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-xenix)
123566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-xenix
123666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
123766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
123866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mint
123966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
124066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-aros*)
124166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aros
124266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
124366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-kaos*)
124466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-kaos
124566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
124666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	-none)
124766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
124866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
124966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# Get rid of the `-' at the beginning of $os.
125066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=`echo $os | sed 's/[^-]*-//'`
125166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
125266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		exit 1
125366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
125466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
125566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanelse
125666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
125766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the default operating systems that come with various machines.
125866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# The value should be what the vendor currently ships out the door with their
125966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# machine or put another way, the most popular os provided with the machine.
126066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
126166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Note that if you're going to try to match "-MANUFACTURER" here (say,
126266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# "-sun"), then you have to tell the case statement up towards the top
126366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# that MANUFACTURER isn't an operating system.  Otherwise, code above
126466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# will signal an error saying that MANUFACTURER isn't an operating
126566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# system, and we'll never get to this point.
126666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
126766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in
126866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-acorn)
126966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-riscix1.2
127066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
127166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	arm*-rebel)
127266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-linux
127366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
127466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	arm*-semi)
127566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aout
127666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
127766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	# This must come before the *-dec entry.
127866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pdp10-*)
127966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-tops20
128066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
128166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	pdp11-*)
128266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
128366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
128466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-dec | vax-*)
128566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ultrix4.2
128666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
128766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m68*-apollo)
128866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-domain
128966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
129066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i386-sun)
129166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos4.0.2
129266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
129366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m68000-sun)
129466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos3
129566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# This also exists in the configure program, but was not the
129666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# default.
129766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		# os=-sunos4
129866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
129966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m68*-cisco)
130066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aout
130166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
130266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mips*-cisco)
130366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-elf
130466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
130566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	mips*-*)
130666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-elf
130766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
130866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	or32-*)
130966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
131066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
131166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-tti)	# must be before sparc entry or we get the wrong os.
131266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
131366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
131466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	sparc-* | *-sun)
131566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sunos4.1.1
131666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
131766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-be)
131866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-beos
131966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
132066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-ibm)
132166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-aix
132266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
132366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-wec)
132466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
132566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
132666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-winbond)
132766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
132866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
132966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-oki)
133066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-proelf
133166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
133266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-hp)
133366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hpux
133466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
133566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-hitachi)
133666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-hiux
133766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
133866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
133966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
134066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
134166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-cbm)
134266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-amigaos
134366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
134466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-dg)
134566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-dgux
134666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
134766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-dolphin)
134866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv3
134966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
135066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m68k-ccur)
135166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-rtu
135266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
135366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	m88k-omron*)
135466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-luna
135566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
135666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-next )
135766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nextstep
135866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
135966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-sequent)
136066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-ptx
136166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
136266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-crds)
136366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-unos
136466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
136566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-ns)
136666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-genix
136766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
136866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	i370-*)
136966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mvs
137066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
137166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-next)
137266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-nextstep3
137366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
137466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-gould)
137566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv
137666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
137766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-highlevel)
137866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
137966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
138066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-encore)
138166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-bsd
138266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
138366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-sgi)
138466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-irix
138566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
138666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-siemens)
138766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-sysv4
138866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
138966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-masscomp)
139066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-rtu
139166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
139266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	f30[01]-fujitsu | f700-fujitsu)
139366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-uxpv
139466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
139566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-rom68k)
139666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
139766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
139866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-*bug)
139966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-coff
140066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
140166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-apple)
140266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-macos
140366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
140466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-atari*)
140566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-mint
140666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
140766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*)
140866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		os=-none
140966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
141066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
141166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanfi
141266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
141366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Here we handle the case where we know the os, and the CPU type, but not the
141466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# manufacturer.  We pick the logical manufacturer.
141566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanvendor=unknown
141666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumancase $basic_machine in
141766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman	*-unknown)
141866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		case $os in
141966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-riscix*)
142066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=acorn
142166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
142266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-sunos*)
142366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=sun
142466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
142566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-aix*)
142666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=ibm
142766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
142866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-beos*)
142966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=be
143066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
143166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-hpux*)
143266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=hp
143366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
143466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-mpeix*)
143566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=hp
143666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
143766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-hiux*)
143866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=hitachi
143966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
144066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-unos*)
144166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=crds
144266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
144366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-dgux*)
144466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=dg
144566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
144666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-luna*)
144766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=omron
144866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
144966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-genix*)
145066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=ns
145166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
145266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-mvs* | -opened*)
145366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=ibm
145466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
145566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-ptx*)
145666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=sequent
145766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
145866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-vxsim* | -vxworks* | -windiss*)
145966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=wrs
146066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
146166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-aux*)
146266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=apple
146366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
146466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-hms*)
146566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=hitachi
146666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
146766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-mpw* | -macos*)
146866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=apple
146966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
147066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
147166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=atari
147266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
147366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman			-vos*)
147466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				vendor=stratus
147566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman				;;
147666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		esac
147766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
147866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman		;;
147966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanesac
148066b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
148166b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanecho $basic_machine$os
148266b8ab22586debccb1f787d4d52b7f042d4ddeb8John Baumanexit 0
148366b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman
148466b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# Local variables:
148566b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# eval: (add-hook 'write-file-hooks 'time-stamp)
148666b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-start: "timestamp='"
148766b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-format: "%:y-%02m-%02d"
148866b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# time-stamp-end: "'"
148966b8ab22586debccb1f787d4d52b7f042d4ddeb8John Bauman# End:
1490