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