1b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#! /bin/sh
2b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Configuration validation subroutine script.
3b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes#   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
5d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes#   Inc.
6b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
7d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughestimestamp='2006-09-20'
8b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
9b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# This file is (in principle) common to ALL GNU software.
10b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# The presence of a machine in this file suggests that SOME GNU software
11b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# can handle that machine.  It does not imply ALL GNU software can.
12b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#
13b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# This file is free software; you can redistribute it and/or modify
14b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# it under the terms of the GNU General Public License as published by
15b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# the Free Software Foundation; either version 2 of the License, or
16b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# (at your option) any later version.
17b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#
18b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# This program is distributed in the hope that it will be useful,
19b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# but WITHOUT ANY WARRANTY; without even the implied warranty of
20b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# GNU General Public License for more details.
22b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#
23b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# You should have received a copy of the GNU General Public License
24b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# along with this program; if not, write to the Free Software
25d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
26d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes# 02110-1301, USA.
27d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes#
28b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# As a special exception to the GNU General Public License, if you
29b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# distribute this file as part of a program that contains a
30b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# configuration script generated by Autoconf, you may include it under
31b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# the same distribution terms that you use for the rest of that program.
32b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
33b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
34b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Please send patches to <config-patches@gnu.org>.  Submit a context
35b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# diff and a properly formatted ChangeLog entry.
36b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#
37b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Configuration subroutine to validate and canonicalize a configuration type.
38b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Supply the specified configuration type as an argument.
39b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# If it is invalid, we print an error message on stderr and exit with code 1.
40b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Otherwise, we print the canonical config type on stdout and succeed.
41b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
42b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# This file is supposed to be the same for all GNU packages
43b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# and recognize all the CPU types, system types and aliases
44b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# that are meaningful with *any* GNU software.
45b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Each package is responsible for reporting which valid configurations
46b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# it does not support.  The user should be able to distinguish
47b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# a failure to support a valid configuration from a meaningless
48b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# configuration.
49b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
50b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# The goal of this file is to map all the various variations of a given
51b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# machine specification into a single specification in the form:
52b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#	CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
53b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# or in some cases, the newer four-part form:
54b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project#	CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
55b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# It is wrong to echo any other type of specification.
56b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
57b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectme=`echo "$0" | sed -e 's,.*/,,'`
58b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
59b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectusage="\
60b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectUsage: $0 [OPTION] CPU-MFR-OPSYS
61b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       $0 [OPTION] ALIAS
62b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
63b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectCanonicalize a configuration name.
64b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
65b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectOperation modes:
66b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  -h, --help         print this help, then exit
67b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  -t, --time-stamp   print date of last modification, then exit
68b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  -v, --version      print version number, then exit
69b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
70b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectReport bugs and patches to <config-patches@gnu.org>."
71b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
72b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectversion="\
73b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectGNU config.sub ($timestamp)
74b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
75d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott HughesCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
76b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectFree Software Foundation, Inc.
77b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
78b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectThis is free software; see the source for copying conditions.  There is NO
79b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
80b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
81b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projecthelp="
82b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source ProjectTry \`$me --help' for more information."
83b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
84b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Parse command line
85b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectwhile test $# -gt 0 ; do
86b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  case $1 in
87b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    --time-stamp | --time* | -t )
88d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes       echo "$timestamp" ; exit ;;
89b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    --version | -v )
90d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes       echo "$version" ; exit ;;
91b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    --help | --h* | -h )
92d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes       echo "$usage"; exit ;;
93b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    -- )     # Stop option processing
94b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       shift; break ;;
95b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    - )	# Use stdin as input.
96b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       break ;;
97b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    -* )
98b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       echo "$me: invalid option $1$help"
99b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       exit 1 ;;
100b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
101b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    *local*)
102b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       # First pass through any local machine types.
103b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       echo $1
104d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes       exit ;;
105b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
106b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    * )
107b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project       break ;;
108b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  esac
109b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectdone
110b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
111b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $# in
112b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project 0) echo "$me: missing argument$help" >&2
113b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    exit 1;;
114b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project 1) ;;
115b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project *) echo "$me: too many arguments$help" >&2
116b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    exit 1;;
117b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
118b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
119b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
120b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Here we must recognize all the valid KERNEL-OS combinations.
121b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectmaybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
122b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $maybe_os in
123d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
124d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
125d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes  storm-chaos* | os2-emx* | rtmk-nova*)
126b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    os=-$maybe_os
127b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
128b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    ;;
129b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project  *)
130b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
131b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    if [ $basic_machine != $1 ]
132b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    then os=`echo $1 | sed 's/.*-/-/'`
133b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    else os=; fi
134b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project    ;;
135b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
136b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
137b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project### Let's recognize common machines as not being operating systems so
138b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project### that things like config.sub decstation-3100 work.  We also
139b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project### recognize some manufacturers as not being operating systems, so we
140b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project### can provide default operating systems below.
141b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $os in
142b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sun*os*)
143b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# Prevent following clause from handling this invalid input.
144b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
145b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
146b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
147b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
148b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
149b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
150b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
151d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-apple | -axis | -knuth | -cray)
152b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=
153b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$1
154b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
155b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sim | -cisco | -oki | -wec | -winbond)
156b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=
157b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$1
158b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
159b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-scout)
160b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
161b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-wrs)
162b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vxworks
163b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$1
164b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
165b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-chorusos*)
166b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-chorusos
167b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$1
168b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
169b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project 	-chorusrdb)
170b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project 		os=-chorusrdb
171b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$1
172b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project 		;;
173b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-hiux*)
174b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hiuxwe2
175b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
176d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-sco6)
177d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-sco5v6
178d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
179d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
180b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sco5)
181b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sco3.2v5
182b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
183b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
184b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sco4)
185b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sco3.2v4
186b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
187b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
188b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sco3.2.[4-9]*)
189b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
190b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
191b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
192b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sco3.2v[4-9]*)
193b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# Don't forget version if it is 3.2v4 or newer.
194b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
195b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
196d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-sco5v6*)
197d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		# Don't forget version if it is 3.2v4 or newer.
198d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
199d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
200b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sco*)
201b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sco3.2v2
202b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
203b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
204b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-udk*)
205b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
206b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
207b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-isc)
208b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-isc2.2
209b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
210b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
211b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-clix*)
212b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=clipper-intergraph
213b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
214b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-isc*)
215b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
216b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
217b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-lynx*)
218b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-lynxos
219b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
220b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-ptx*)
221b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
222b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
223b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-windowsnt*)
224b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's/windowsnt/winnt/'`
225b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
226b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-psos*)
227b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-psos
228b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
229b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-mint | -mint[0-9]*)
230b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-atari
231b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mint
232b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
233b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
234b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
235b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Decode aliases for certain CPU-COMPANY combinations.
236b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $basic_machine in
237b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Recognize the basic CPU types without company name.
238b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Some are omitted here because they have special meanings below.
239b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	1750a | 580 \
240b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| a29k \
241b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
242b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
243d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| am33_2.0 \
244d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
245d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| bfin \
246b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| c4x | clipper \
247d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| d10v | d30v | dlx | dsp16xx \
248d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| fr30 | frv \
249b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
250b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| i370 | i860 | i960 | ia64 \
251d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| ip2k | iq2000 \
252d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| m32c | m32r | m32rle | m68000 | m68k | m88k \
253d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| maxq | mb | microblaze | mcore \
254d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips | mipsbe | mipseb | mipsel | mipsle \
255d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips16 \
256d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64 | mips64el \
257d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr | mips64vrel \
258d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64orion | mips64orionel \
259d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr4100 | mips64vr4100el \
260d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr4300 | mips64vr4300el \
261d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr5000 | mips64vr5000el \
262d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr5900 | mips64vr5900el \
263d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa32 | mipsisa32el \
264d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa32r2 | mipsisa32r2el \
265d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64 | mipsisa64el \
266d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64r2 | mipsisa64r2el \
267d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64sb1 | mipsisa64sb1el \
268d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64sr71k | mipsisa64sr71kel \
269d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipstx39 | mipstx39el \
270b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| mn10200 | mn10300 \
271d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mt \
272d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| msp430 \
273d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| nios | nios2 \
274b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| ns16k | ns32k \
275d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| or32 \
276b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| pdp10 | pdp11 | pj | pjl \
277b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
278b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| pyramid \
279d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| score \
280d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
281d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sh64 | sh64le \
282d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
283d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
284d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| spu | strongarm \
285d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| tahoe | thumb | tic4x | tic80 | tron \
286b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| v850 | v850e \
287b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| we32k \
288d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
289b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| z8k)
290b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$basic_machine-unknown
291b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
292b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m6811 | m68hc11 | m6812 | m68hc12)
293b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# Motorola 68HC11/12.
294b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=$basic_machine-unknown
295b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
296b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
297b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
298b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
299d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	ms1)
300d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mt-unknown
301d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
302b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
303b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# We use `pc' rather than `unknown'
304b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# because (1) that's what they normally are, and
305b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# (2) the word "unknown" tends to confuse beginning users.
306b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i*86 | x86_64)
307b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	  basic_machine=$basic_machine-pc
308b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	  ;;
309b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Object if more than one company name word.
310b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-*-*)
311b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
312b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		exit 1
313b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
314b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Recognize the basic CPU types with company name.
315b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	580-* \
316b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| a29k-* \
317b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
318b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
319b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
320d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
321d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| avr-* | avr32-* \
322d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| bfin-* | bs2000-* \
323d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
324d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| clipper-* | craynv-* | cydra-* \
325d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| d10v-* | d30v-* | dlx-* \
326b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| elxsi-* \
327d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
328b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| h8300-* | h8500-* \
329b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
330b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| i*86-* | i860-* | i960-* | ia64-* \
331d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| ip2k-* | iq2000-* \
332d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| m32c-* | m32r-* | m32rle-* \
333b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
334d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| m88110-* | m88k-* | maxq-* | mcore-* \
335d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
336d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips16-* \
337d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64-* | mips64el-* \
338d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr-* | mips64vrel-* \
339d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64orion-* | mips64orionel-* \
340d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr4100-* | mips64vr4100el-* \
341d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr4300-* | mips64vr4300el-* \
342d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr5000-* | mips64vr5000el-* \
343d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mips64vr5900-* | mips64vr5900el-* \
344d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa32-* | mipsisa32el-* \
345d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa32r2-* | mipsisa32r2el-* \
346d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64-* | mipsisa64el-* \
347d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64r2-* | mipsisa64r2el-* \
348d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64sb1-* | mipsisa64sb1el-* \
349d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipsisa64sr71k-* | mipsisa64sr71kel-* \
350d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mipstx39-* | mipstx39el-* \
351d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mmix-* \
352d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| mt-* \
353d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| msp430-* \
354d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| nios-* | nios2-* \
355b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| none-* | np1-* | ns16k-* | ns32k-* \
356b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| orion-* \
357b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
358b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
359b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| pyramid-* \
360b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| romp-* | rs6000-* \
361d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
362d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
363d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
364d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sparclite-* \
365d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
366d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| tahoe-* | thumb-* \
367d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
368d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| tron-* \
369b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| v850-* | v850e-* | vax-* \
370b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| we32k-* \
371d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
372d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	| xstormy16-* | xtensa-* \
373b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| ymp-* \
374b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	| z8k-*)
375b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
376b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Recognize the various machine names and aliases which stand
377b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# for a CPU type and a company and sometimes even an OS.
378b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	386bsd)
379b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-unknown
380b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
381b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
382b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
383b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-att
384b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
385b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	3b*)
386b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=we32k-att
387b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
388b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	a29khif)
389b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-amd
390b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-udi
391b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
392d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes    	abacus)
393d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=abacus-unknown
394d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
395b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	adobe68k)
396b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68010-adobe
397b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-scout
398b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
399b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	alliant | fx80)
400b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=fx80-alliant
401b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
402b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	altos | altos3068)
403b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-altos
404b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
405b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	am29k)
406b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-none
407b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
408b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
409d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	amd64)
410d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=x86_64-pc
411d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
412d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	amd64-*)
413d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
414d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
415b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	amdahl)
416b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=580-amdahl
417b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
418b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
419b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	amiga | amiga-*)
420b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-unknown
421b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
422b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	amigaos | amigados)
423b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-unknown
424b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-amigaos
425b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
426b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	amigaunix | amix)
427b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-unknown
428b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
429b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
430b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	apollo68)
431b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-apollo
432b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
433b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
434b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	apollo68bsd)
435b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-apollo
436b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
437b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
438b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	aux)
439b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-apple
440b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-aux
441b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
442b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	balance)
443b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ns32k-sequent
444b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-dynix
445b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
446b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	c90)
447b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c90-cray
448b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
449b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
450b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	convex-c1)
451b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c1-convex
452b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
453b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
454b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	convex-c2)
455b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c2-convex
456b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
457b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
458b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	convex-c32)
459b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c32-convex
460b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
461b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
462b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	convex-c34)
463b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c34-convex
464b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
465b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
466b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	convex-c38)
467b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=c38-convex
468b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
469b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
470b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	cray | j90)
471b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=j90-cray
472b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
473b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
474d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	craynv)
475d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=craynv-cray
476d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-unicosmp
477d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
478d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	cr16c)
479d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=cr16c-unknown
480d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-elf
481d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
482b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	crds | unos)
483b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-crds
484b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
485d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	crisv32 | crisv32-* | etraxfs*)
486d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=crisv32-axis
487d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
488b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	cris | cris-* | etrax*)
489b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=cris-axis
490b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
491d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	crx)
492d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=crx-unknown
493d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-elf
494d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
495b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	da30 | da30-*)
496b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-da30
497b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
498b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
499b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-dec
500b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
501b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	decsystem10* | dec10*)
502b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pdp10-dec
503b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-tops10
504b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
505b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	decsystem20* | dec20*)
506b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pdp10-dec
507b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-tops20
508b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
509b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	delta | 3300 | motorola-3300 | motorola-delta \
510b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | 3300-motorola | delta-motorola)
511b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-motorola
512b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
513b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	delta88)
514b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m88k-motorola
515b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
516b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
517d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	djgpp)
518d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i586-pc
519d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-msdosdjgpp
520d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
521b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	dpx20 | dpx20-*)
522b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=rs6000-bull
523b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bosx
524b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
525b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	dpx2* | dpx2*-bull)
526b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-bull
527b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
528b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
529b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ebmon29k)
530b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-amd
531b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ebmon
532b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
533b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	elxsi)
534b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=elxsi-elxsi
535b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
536b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
537b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	encore | umax | mmax)
538b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ns32k-encore
539b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
540b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	es1800 | OSE68k | ose68k | ose | OSE)
541b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-ericsson
542b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ose
543b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
544b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	fx2800)
545b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i860-alliant
546b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
547b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	genix)
548b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ns32k-ns
549b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
550b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	gmicro)
551b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=tron-gmicro
552b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
553b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
554b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	go32)
555b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-pc
556b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-go32
557b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
558b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	h3050r* | hiux*)
559b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hitachi
560b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hiuxwe2
561b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
562b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	h8300hms)
563b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=h8300-hitachi
564b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hms
565b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
566b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	h8300xray)
567b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=h8300-hitachi
568b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-xray
569b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
570b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	h8500hms)
571b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=h8500-hitachi
572b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hms
573b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
574b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	harris)
575b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m88k-harris
576b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
577b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
578b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp300-*)
579b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-hp
580b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
581b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp300bsd)
582b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-hp
583b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
584b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
585b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp300hpux)
586b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-hp
587b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hpux
588b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
589b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp3k9[0-9][0-9] | hp9[0-9][0-9])
590b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.0-hp
591b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
592b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k2[0-9][0-9] | hp9k31[0-9])
593b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-hp
594b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
595b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k3[2-9][0-9])
596b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-hp
597b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
598b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k6[0-9][0-9] | hp6[0-9][0-9])
599b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.0-hp
600b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
601b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k7[0-79][0-9] | hp7[0-79][0-9])
602b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
603b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
604b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k78[0-9] | hp78[0-9])
605b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# FIXME: really hppa2.0-hp
606b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
607b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
608b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
609b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# FIXME: really hppa2.0-hp
610b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
611b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
612b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k8[0-9][13679] | hp8[0-9][13679])
613b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
614b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
615b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hp9k8[0-9][0-9] | hp8[0-9][0-9])
616b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.0-hp
617b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
618b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hppa-next)
619b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nextstep3
620b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
621b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hppaosf)
622b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
623b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-osf
624b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
625b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	hppro)
626b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hp
627b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
628b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
629b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i370-ibm* | ibm*)
630b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i370-ibm
631b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
632b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
633b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i*86v32)
634b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
635b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv32
636b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
637b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i*86v4*)
638b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
639b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
640b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
641b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i*86v)
642b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
643b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
644b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
645b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i*86sol2)
646b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
647b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-solaris2
648b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
649b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i386mach)
650b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-mach
651b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mach
652b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
653b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i386-vsta | vsta)
654b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-unknown
655b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vsta
656b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
657b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	iris | iris4d)
658b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-sgi
659b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		case $os in
660b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    -irix*)
661b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
662b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    *)
663b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			os=-irix4
664b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
665b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		esac
666b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
667b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	isi68 | isi)
668b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-isi
669b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
670b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
671b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m88k-omron*)
672b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m88k-omron
673b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
674b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	magnum | m3230)
675b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-mips
676b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
677b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
678b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	merlin)
679b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ns32k-utek
680b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
681b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
682b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mingw32)
683b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-pc
684b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mingw32
685b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
686b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	miniframe)
687b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-convergent
688b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
689b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
690b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-atari
691b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mint
692b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
693b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mips3*-*)
694b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
695b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
696b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mips3*)
697b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
698b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
699b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	monitor)
700b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-rom68k
701b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
702b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
703b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	morphos)
704b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpc-unknown
705b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-morphos
706b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
707b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	msdos)
708b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-pc
709b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-msdos
710b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
711d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	ms1-*)
712d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
713d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
714b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mvs)
715b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i370-ibm
716b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mvs
717b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
718b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ncr3000)
719b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i486-ncr
720b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
721b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
722b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	netbsd386)
723b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-unknown
724b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-netbsd
725b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
726b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	netwinder)
727b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=armv4l-rebel
728b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-linux
729b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
730b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	news | news700 | news800 | news900)
731b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-sony
732b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-newsos
733b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
734b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	news1000)
735b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68030-sony
736b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-newsos
737b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
738b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	news-3600 | risc-news)
739b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-sony
740b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-newsos
741b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
742b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	necv70)
743b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=v70-nec
744b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
745b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
746b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	next | m*-next )
747b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-next
748b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		case $os in
749b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    -nextstep* )
750b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
751b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    -ns2*)
752b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		      os=-nextstep2
753b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
754b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    *)
755b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		      os=-nextstep3
756b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
757b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		esac
758b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
759b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	nh3000)
760b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-harris
761b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-cxux
762b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
763b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	nh[45]000)
764b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m88k-harris
765b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-cxux
766b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
767b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	nindy960)
768b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i960-intel
769b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nindy
770b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
771b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mon960)
772b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i960-intel
773b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mon960
774b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
775b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	nonstopux)
776b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-compaq
777b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nonstopux
778b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
779b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	np1)
780b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=np1-gould
781b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
782b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	nsr-tandem)
783b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=nsr-tandem
784b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
785b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	op50n-* | op60c-*)
786b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-oki
787b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
788b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
789d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	openrisc | openrisc-*)
790b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=or32-unknown
791d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
792d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	os400)
793d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=powerpc-ibm
794d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-os400
795b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
796b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	OSE68000 | ose68000)
797b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-ericsson
798b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ose
799b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
800b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	os68k)
801b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-none
802b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-os68k
803b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
804b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pa-hitachi)
805b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-hitachi
806b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hiuxwe2
807b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
808b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	paragon)
809b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i860-intel
810b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-osf
811b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
812b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pbd)
813b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-tti
814b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
815b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pbb)
816b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-tti
817b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
818d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pc532 | pc532-*)
819b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ns32k-pc532
820b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
821d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pc98)
822d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i386-pc
823d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
824d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pc98-*)
825d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
826d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
827b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pentium | p5 | k5 | k6 | nexgen | viac3)
828b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i586-pc
829b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
830d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pentiumpro | p6 | 6x86 | athlon | athlon_*)
831b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i686-pc
832b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
833d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pentiumii | pentium2 | pentiumiii | pentium3)
834b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i686-pc
835b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
836d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pentium4)
837d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i786-pc
838d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
839b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
840b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
841b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
842b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pentiumpro-* | p6-* | 6x86-* | athlon-*)
843b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
844b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
845d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
846b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
847b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
848d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pentium4-*)
849d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
850d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
851b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pn)
852b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pn-gould
853b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
854b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	power)	basic_machine=power-ibm
855b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
856b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc)	basic_machine=powerpc-unknown
857d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
858b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc-*)	basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
859b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
860b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppcle | powerpclittle | ppc-le | powerpc-little)
861b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpcle-unknown
862d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
863b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppcle-* | powerpclittle-*)
864b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
865b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
866b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc64)	basic_machine=powerpc64-unknown
867d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
868b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
869b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
870b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
871b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpc64le-unknown
872d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
873b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ppc64le-* | powerpc64little-*)
874b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
875b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
876b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ps2)
877b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-ibm
878b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
879b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pw32)
880b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i586-unknown
881b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-pw32
882b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
883d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	rdos)
884d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i386-pc
885d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-rdos
886d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
887b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	rom68k)
888b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-rom68k
889b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
890b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
891b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	rm[46]00)
892b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mips-siemens
893b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
894b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	rtpc | rtpc-*)
895b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=romp-ibm
896b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
897b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	s390 | s390-*)
898b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=s390-ibm
899b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
900b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	s390x | s390x-*)
901b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=s390x-ibm
902b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
903b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sa29200)
904b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-amd
905b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-udi
906b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
907d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sb1)
908d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mipsisa64sb1-unknown
909d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
910d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sb1el)
911d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mipsisa64sb1el-unknown
912d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
913d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sde)
914d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mipsisa32-sde
915d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-elf
916d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
917d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sei)
918d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mips-sei
919d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-seiux
920b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
921b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sequent)
922b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-sequent
923b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
924b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sh)
925b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sh-hitachi
926b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hms
927b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
928d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sh64)
929d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=sh64-unknown
930d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
931b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sparclite-wrs | simso-wrs)
932b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparclite-wrs
933b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vxworks
934b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
935b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sps7)
936b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-bull
937b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv2
938b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
939b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	spur)
940b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=spur-unknown
941b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
942b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	st2000)
943b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-tandem
944b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
945b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	stratus)
946b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i860-stratus
947b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
948b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
949b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun2)
950b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-sun
951b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
952b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun2os3)
953b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-sun
954b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos3
955b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
956b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun2os4)
957b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68000-sun
958b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos4
959b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
960b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun3os3)
961b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-sun
962b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos3
963b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
964b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun3os4)
965b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-sun
966b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos4
967b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
968b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun4os3)
969b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-sun
970b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos3
971b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
972b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun4os4)
973b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-sun
974b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos4
975b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
976b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun4sol2)
977b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-sun
978b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-solaris2
979b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
980b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun3 | sun3-*)
981b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-sun
982b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
983b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun4)
984b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-sun
985b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
986b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sun386 | sun386i | roadrunner)
987b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-sun
988b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
989d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sv1)
990b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sv1-cray
991b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
992b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
993b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	symmetry)
994b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i386-sequent
995b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-dynix
996b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
997b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	t3e)
998b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=alphaev5-cray
999b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
1000b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1001b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	t90)
1002b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=t90-cray
1003b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
1004b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1005b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	tic54x | c54x*)
1006b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=tic54x-unknown
1007b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
1008b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1009d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	tic55x | c55x*)
1010d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=tic55x-unknown
1011d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-coff
1012d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1013d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	tic6x | c6x*)
1014d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=tic6x-unknown
1015d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-coff
1016d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1017b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	tx39)
1018b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mipstx39-unknown
1019b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1020b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	tx39el)
1021b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=mipstx39el-unknown
1022b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1023b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	toad1)
1024b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pdp10-xkl
1025b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-tops20
1026b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1027b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	tower | tower-32)
1028b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-ncr
1029b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1030d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	tpf)
1031d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=s390x-ibm
1032d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-tpf
1033d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1034b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	udi29k)
1035b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-amd
1036b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-udi
1037b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1038b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ultra3)
1039b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-nyu
1040b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sym1
1041b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1042b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	v810 | necv810)
1043b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=v810-nec
1044b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
1045b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1046b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vaxv)
1047b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=vax-dec
1048b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
1049b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1050b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vms)
1051b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=vax-dec
1052b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vms
1053b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1054b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vpp*|vx|vx-*)
1055d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=f301-fujitsu
1056d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1057b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vxworks960)
1058b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=i960-wrs
1059b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vxworks
1060b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1061b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vxworks68)
1062b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-wrs
1063b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vxworks
1064b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1065b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vxworks29k)
1066b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=a29k-wrs
1067b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-vxworks
1068b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1069b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	w65*)
1070b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=w65-wdc
1071b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
1072b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1073b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	w89k-*)
1074b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-winbond
1075b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
1076b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1077d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	xbox)
1078d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=i686-pc
1079d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-mingw32
1080b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1081d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	xps | xps100)
1082b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=xps100-honeywell
1083b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1084b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	ymp)
1085b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=ymp-cray
1086b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unicos
1087b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1088b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	z8k-*-coff)
1089b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=z8k-unknown
1090b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sim
1091b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1092b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	none)
1093b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=none-none
1094b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
1095b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1096b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1097b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Here we handle the default manufacturer of certain CPU types.  It is in
1098b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# some cases the only manufacturer, in others, it is the most popular.
1099b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	w89k)
1100b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-winbond
1101b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1102b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	op50n)
1103b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-oki
1104b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1105b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	op60c)
1106b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=hppa1.1-oki
1107b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1108b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	romp)
1109b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=romp-ibm
1110b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1111d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	mmix)
1112d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		basic_machine=mmix-knuth
1113d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1114b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	rs6000)
1115b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=rs6000-ibm
1116b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1117b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	vax)
1118b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=vax-dec
1119b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1120b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pdp10)
1121b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# there are many clones, so DEC is not a safe bet
1122b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pdp10-unknown
1123b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1124b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pdp11)
1125b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=pdp11-dec
1126b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1127b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	we32k)
1128b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=we32k-att
1129b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1130d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1131b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sh-unknown
1132b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1133d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1134b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=sparc-sun
1135b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1136d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	cydra)
1137b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=cydra-cydrome
1138b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1139b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	orion)
1140b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=orion-highlevel
1141b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1142b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	orion105)
1143b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=clipper-highlevel
1144b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1145b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mac | mpw | mac-mpw)
1146b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=m68k-apple
1147b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1148b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pmac | pmac-mpw)
1149b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=powerpc-apple
1150b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1151b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-unknown)
1152b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# Make sure to match an already-canonicalized machine name.
1153b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1154b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*)
1155b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1156b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		exit 1
1157b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1158b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
1159b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1160b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Here we canonicalize certain aliases for manufacturers.
1161b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $basic_machine in
1162b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-digital*)
1163b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1164b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1165b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-commodore*)
1166b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1167b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1168b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*)
1169b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1170b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
1171b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1172b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Decode manufacturer-specific aliases for certain operating systems.
1173b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1174b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectif [ x"$os" != x"" ]
1175b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectthen
1176b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $os in
1177b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project        # First match some system type aliases
1178b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project        # that might get confused with valid system types.
1179b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# -solaris* is a basic system type, with this one exception.
1180b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-solaris1 | -solaris1.*)
1181b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|solaris1|sunos4|'`
1182b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1183b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-solaris)
1184b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-solaris2
1185b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1186b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-svr4*)
1187b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
1188b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1189b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-unixware*)
1190b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4.2uw
1191b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1192b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-gnu/linux*)
1193b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1194b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1195b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# First accept the basic system types.
1196b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# The portable systems comes first.
1197b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Each alternative MUST END IN A *, to match a version number.
1198b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# -sysv* is not here because it comes later, after sysvr4.
1199b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1200b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1201b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1202b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1203b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -aos* \
1204b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1205b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1206d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1207d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -openbsd* | -solidbsd* \
1208d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1209d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1210b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1211b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1212b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -chorusos* | -chorusrdb* \
1213b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1214d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1215d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -uxpv* | -beos* | -mpeix* | -udk* \
1216d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1217b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1218b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1219b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1220d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1221d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1222d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -skyos* | -haiku* | -rdos* | -toppers*)
1223b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Remember, each alternative MUST END IN *, to match a version number.
1224b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1225b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-qnx*)
1226b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		case $basic_machine in
1227b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    x86-* | i*86-*)
1228b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
1229b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		    *)
1230b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			os=-nto$os
1231b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			;;
1232b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		esac
1233b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1234d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-nto-qnx*)
1235d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1236b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-nto*)
1237d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=`echo $os | sed -e 's|nto|nto-qnx|'`
1238b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1239b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1240d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	      | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1241b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	      | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1242b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1243b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-mac*)
1244b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|mac|macos|'`
1245b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1246d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-linux-dietlibc)
1247d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-linux-dietlibc
1248d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1249b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-linux*)
1250b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|linux|linux-gnu|'`
1251b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1252b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sunos5*)
1253b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|sunos5|solaris2|'`
1254b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1255b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sunos6*)
1256b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|sunos6|solaris3|'`
1257b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1258b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-opened*)
1259b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-openedition
1260b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1261d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        -os400*)
1262d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-os400
1263d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1264b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-wince*)
1265b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-wince
1266b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1267b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-osfrose*)
1268b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-osfrose
1269b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1270b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-osf*)
1271b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-osf
1272b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1273b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-utek*)
1274b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
1275b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1276b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-dynix*)
1277b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
1278b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1279b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-acis*)
1280b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-aos
1281b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1282b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-atheos*)
1283b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-atheos
1284b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1285d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-syllable*)
1286d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-syllable
1287d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1288b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-386bsd)
1289b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
1290b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1291b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-ctix* | -uts*)
1292b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
1293b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1294b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-nova*)
1295b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-rtmk-nova
1296b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1297b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-ns2 )
1298d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-nextstep2
1299b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1300b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-nsk*)
1301b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nsk
1302b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1303b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# Preserve the version number of sinix5.
1304b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sinix5.*)
1305b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed -e 's|sinix|sysv|'`
1306b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1307b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sinix*)
1308b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
1309b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1310d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        -tpf*)
1311d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-tpf
1312d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1313b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-triton*)
1314b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
1315b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1316b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-oss*)
1317b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
1318b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1319b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-svr4)
1320b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
1321b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1322b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-svr3)
1323b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
1324b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1325b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sysvr4)
1326b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
1327b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1328b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# This must come after -sysvr4.
1329b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-sysv*)
1330b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1331b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-ose*)
1332b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ose
1333b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1334b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-es1800*)
1335b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ose
1336b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1337b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-xenix)
1338b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-xenix
1339b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1340d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1341d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-mint
1342d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1343d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-aros*)
1344d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-aros
1345d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1346d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-kaos*)
1347d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-kaos
1348d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1349d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	-zvmoe)
1350d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-zvmoe
1351b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1352b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	-none)
1353b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1354b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*)
1355b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# Get rid of the `-' at the beginning of $os.
1356b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=`echo $os | sed 's/[^-]*-//'`
1357b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1358b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		exit 1
1359b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1360b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
1361b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectelse
1362b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1363b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Here we handle the default operating systems that come with various machines.
1364b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# The value should be what the vendor currently ships out the door with their
1365b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# machine or put another way, the most popular os provided with the machine.
1366b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1367b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Note that if you're going to try to match "-MANUFACTURER" here (say,
1368b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# "-sun"), then you have to tell the case statement up towards the top
1369b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# that MANUFACTURER isn't an operating system.  Otherwise, code above
1370b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# will signal an error saying that MANUFACTURER isn't an operating
1371b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# system, and we'll never get to this point.
1372b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1373b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $basic_machine in
1374d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        score-*)
1375d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-elf
1376d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1377d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        spu-*)
1378d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-elf
1379d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1380b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-acorn)
1381b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-riscix1.2
1382b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1383b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	arm*-rebel)
1384b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-linux
1385b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1386b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	arm*-semi)
1387b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-aout
1388b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1389d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        c4x-* | tic4x-*)
1390d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes        	os=-coff
1391d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1392b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	# This must come before the *-dec entry.
1393b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	pdp10-*)
1394b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-tops20
1395b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1396d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	pdp11-*)
1397b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
1398b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1399b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-dec | vax-*)
1400b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ultrix4.2
1401b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1402b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m68*-apollo)
1403b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-domain
1404b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1405b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i386-sun)
1406b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos4.0.2
1407b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1408b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m68000-sun)
1409b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos3
1410b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# This also exists in the configure program, but was not the
1411b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# default.
1412b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		# os=-sunos4
1413b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1414b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m68*-cisco)
1415b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-aout
1416b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1417b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mips*-cisco)
1418b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-elf
1419b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1420b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	mips*-*)
1421b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-elf
1422b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1423b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	or32-*)
1424b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
1425b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1426b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-tti)	# must be before sparc entry or we get the wrong os.
1427b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
1428b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1429b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	sparc-* | *-sun)
1430b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sunos4.1.1
1431b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1432b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-be)
1433b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-beos
1434b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1435d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	*-haiku)
1436d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-haiku
1437d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1438b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-ibm)
1439d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-aix
1440d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1441d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes    	*-knuth)
1442d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		os=-mmixware
1443d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes		;;
1444b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-wec)
1445b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
1446b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1447b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-winbond)
1448b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
1449b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1450b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-oki)
1451b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-proelf
1452b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1453b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-hp)
1454b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hpux
1455b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1456b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-hitachi)
1457b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-hiux
1458b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1459b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1460b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
1461b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1462b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-cbm)
1463b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-amigaos
1464b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1465b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-dg)
1466b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-dgux
1467b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1468b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-dolphin)
1469b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv3
1470b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1471b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m68k-ccur)
1472b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-rtu
1473b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1474b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	m88k-omron*)
1475b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-luna
1476b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1477b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-next )
1478b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nextstep
1479b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1480b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-sequent)
1481b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-ptx
1482b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1483b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-crds)
1484b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-unos
1485b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1486b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-ns)
1487b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-genix
1488b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1489b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	i370-*)
1490b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mvs
1491b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1492b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-next)
1493b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-nextstep3
1494b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1495d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	*-gould)
1496b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv
1497b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1498d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	*-highlevel)
1499b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
1500b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1501b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-encore)
1502b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-bsd
1503b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1504d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	*-sgi)
1505b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-irix
1506b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1507d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes	*-siemens)
1508b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-sysv4
1509b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1510b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-masscomp)
1511b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-rtu
1512b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1513b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	f30[01]-fujitsu | f700-fujitsu)
1514b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-uxpv
1515b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1516b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-rom68k)
1517b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
1518b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1519b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-*bug)
1520b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-coff
1521b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1522b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-apple)
1523b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-macos
1524b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1525b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-atari*)
1526b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-mint
1527b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1528b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*)
1529b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		os=-none
1530b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1531b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
1532b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectfi
1533b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1534b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Here we handle the case where we know the os, and the CPU type, but not the
1535b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# manufacturer.  We pick the logical manufacturer.
1536b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectvendor=unknown
1537b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectcase $basic_machine in
1538b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project	*-unknown)
1539b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		case $os in
1540b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-riscix*)
1541b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=acorn
1542b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1543b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-sunos*)
1544b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=sun
1545b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1546b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-aix*)
1547b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=ibm
1548b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1549b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-beos*)
1550b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=be
1551b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1552b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-hpux*)
1553b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=hp
1554b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1555b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-mpeix*)
1556b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=hp
1557b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1558b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-hiux*)
1559b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=hitachi
1560b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1561b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-unos*)
1562b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=crds
1563b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1564b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-dgux*)
1565b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=dg
1566b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1567b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-luna*)
1568b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=omron
1569b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1570b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-genix*)
1571b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=ns
1572b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1573b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-mvs* | -opened*)
1574b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=ibm
1575b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1576d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes			-os400*)
1577d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes				vendor=ibm
1578d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes				;;
1579b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-ptx*)
1580b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=sequent
1581b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1582d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes			-tpf*)
1583d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes				vendor=ibm
1584d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes				;;
1585d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughes			-vxsim* | -vxworks* | -windiss*)
1586b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=wrs
1587b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1588b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-aux*)
1589b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=apple
1590b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1591b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-hms*)
1592b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=hitachi
1593b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1594b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-mpw* | -macos*)
1595b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=apple
1596b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1597b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1598b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=atari
1599b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1600b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project			-vos*)
1601b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				vendor=stratus
1602b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project				;;
1603b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		esac
1604b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1605b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project		;;
1606b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectesac
1607b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1608b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Projectecho $basic_machine$os
1609d07d5a72938fd52415368c2320fc29575ae9a0c3Elliott Hughesexit
1610b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project
1611b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# Local variables:
1612b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# eval: (add-hook 'write-file-hooks 'time-stamp)
1613b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# time-stamp-start: "timestamp='"
1614b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# time-stamp-format: "%:y-%02m-%02d"
1615b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# time-stamp-end: "'"
1616b80e287d54a028e744f9fe412840a89ec7f8084bThe Android Open Source Project# End:
1617