annotate GEMBASSY-1.0.3/config.sub @ 0:8300eb051bea draft

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