Commit | Line | Data |
---|---|---|
84849c9c | 1 | #! /bin/sh |
378fd382 | 2 | # Configuration validation subroutine script, version 1.1. |
d586f394 | 3 | # Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc. |
378fd382 DZ |
4 | # This file is (in principle) common to ALL GNU software. |
5 | # The presence of a machine in this file suggests that SOME GNU software | |
d7a57996 | 6 | # can handle that machine. It does not imply ALL GNU software can. |
032d50a9 DE |
7 | # |
8 | # This file is free software; you can redistribute it and/or modify | |
9 | # it under the terms of the GNU General Public License as published by | |
10 | # the Free Software Foundation; either version 2 of the License, or | |
11 | # (at your option) any later version. | |
12 | # | |
13 | # This program is distributed in the hope that it will be useful, | |
14 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | # GNU General Public License for more details. | |
17 | # | |
18 | # You should have received a copy of the GNU General Public License | |
19 | # along with this program; if not, write to the Free Software | |
d586f394 ILT |
20 | # Foundation, Inc., 59 Temple Place - Suite 330, |
21 | # Boston, MA 02111-1307, USA. | |
a2ee3e6d | 22 | |
84849c9c ILT |
23 | # As a special exception to the GNU General Public License, if you |
24 | # distribute this file as part of a program that contains a | |
25 | # configuration script generated by Autoconf, you may include it under | |
26 | # the same distribution terms that you use for the rest of that program. | |
4f183929 RP |
27 | |
28 | # Configuration subroutine to validate and canonicalize a configuration type. | |
29 | # Supply the specified configuration type as an argument. | |
30 | # If it is invalid, we print an error message on stderr and exit with code 1. | |
31 | # Otherwise, we print the canonical config type on stdout and succeed. | |
32 | ||
33 | # This file is supposed to be the same for all GNU packages | |
34 | # and recognize all the CPU types, system types and aliases | |
35 | # that are meaningful with *any* GNU software. | |
36 | # Each package is responsible for reporting which valid configurations | |
37 | # it does not support. The user should be able to distinguish | |
38 | # a failure to support a valid configuration from a meaningless | |
a2ee3e6d | 39 | # configuration. |
4f183929 | 40 | |
a2ee3e6d JW |
41 | # The goal of this file is to map all the various variations of a given |
42 | # machine specification into a single specification in the form: | |
43 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
d7a57996 ILT |
44 | # or in some cases, the newer four-part form: |
45 | # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM | |
27a2a371 | 46 | # It is wrong to echo any other type of specification. |
8b204e6e | 47 | |
032d50a9 | 48 | if [ x$1 = x ] |
23ab00aa KR |
49 | then |
50 | echo Configuration name missing. 1>&2 | |
51 | echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 | |
52 | echo "or $0 ALIAS" 1>&2 | |
53 | echo where ALIAS is a recognized configuration type. 1>&2 | |
54 | exit 1 | |
55 | fi | |
56 | ||
a2ee3e6d JW |
57 | # First pass through any local machine types. |
58 | case $1 in | |
59 | *local*) | |
60 | echo $1 | |
61 | exit 0 | |
62 | ;; | |
63 | *) | |
69e87de2 | 64 | ;; |
a2ee3e6d | 65 | esac |
b9fe720d | 66 | |
d7a57996 ILT |
67 | # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). |
68 | # Here we must recognize all the valid KERNEL-OS combinations. | |
69 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` | |
70 | case $maybe_os in | |
71 | linux-gnu*) | |
72 | os=-$maybe_os | |
73 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` | |
74 | ;; | |
75 | *) | |
76 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
77 | if [ $basic_machine != $1 ] | |
78 | then os=`echo $1 | sed 's/.*-/-/'` | |
79 | else os=; fi | |
80 | ;; | |
81 | esac | |
caebaa16 | 82 | |
27a2a371 JW |
83 | ### Let's recognize common machines as not being operating systems so |
84 | ### that things like config.sub decstation-3100 work. We also | |
6559fbdb | 85 | ### recognize some manufacturers as not being operating systems, so we |
27a2a371 | 86 | ### can provide default operating systems below. |
a2ee3e6d | 87 | case $os in |
939d9e8a JL |
88 | -sun*os*) |
89 | # Prevent following clause from handling this invalid input. | |
90 | ;; | |
a2ee3e6d JW |
91 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ |
92 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
1983e432 | 93 | -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \ |
939d9e8a | 94 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
a2ee3e6d | 95 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
d7a57996 ILT |
96 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
97 | -apple) | |
032d50a9 DE |
98 | os= |
99 | basic_machine=$1 | |
100 | ;; | |
3b61a094 | 101 | -sim | -cisco | -oki | -wec | -winbond ) # CYGNUS LOCAL |
a2ee3e6d JW |
102 | os= |
103 | basic_machine=$1 | |
104 | ;; | |
378fd382 | 105 | -scout) # CYGNUS LOCAL |
f68be6f0 | 106 | ;; |
6559fbdb | 107 | -wrs) # CYGNUS LOCAL |
300f6a4f RS |
108 | os=vxworks |
109 | basic_machine=$1 | |
110 | ;; | |
939d9e8a | 111 | -hiux*) |
aa6db781 | 112 | os=-hiuxwe2 |
939d9e8a | 113 | ;; |
d586f394 ILT |
114 | -sco5) |
115 | os=sco3.2v5 | |
d7a57996 | 116 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
d586f394 | 117 | ;; |
939d9e8a JL |
118 | -sco4) |
119 | os=-sco3.2v4 | |
d7a57996 | 120 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
939d9e8a JL |
121 | ;; |
122 | -sco3.2.[4-9]*) | |
123 | os=`echo $os | sed -e 's/sco3.2./sco3.2v/'` | |
d7a57996 | 124 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
939d9e8a | 125 | ;; |
27a2a371 JW |
126 | -sco3.2v[4-9]*) |
127 | # Don't forget version if it is 3.2v4 or newer. | |
d7a57996 | 128 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
27a2a371 | 129 | ;; |
a2ee3e6d | 130 | -sco*) |
378fd382 | 131 | os=-sco3.2v2 |
d7a57996 | 132 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
a2ee3e6d | 133 | ;; |
27a2a371 JW |
134 | -isc) |
135 | os=-isc2.2 | |
d7a57996 | 136 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
27a2a371 | 137 | ;; |
9d784b19 RS |
138 | -clix*) |
139 | basic_machine=clipper-intergraph | |
140 | ;; | |
378fd382 | 141 | -isc*) |
d7a57996 | 142 | basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` |
a2ee3e6d | 143 | ;; |
032d50a9 | 144 | -lynx*) |
939d9e8a JL |
145 | os=-lynxos |
146 | ;; | |
d1c8b869 ILT |
147 | -ptx*) |
148 | basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'` | |
aa6db781 | 149 | ;; |
d94aca1a MT |
150 | -windowsnt*) |
151 | os=`echo $os | sed -e 's/windowsnt/winnt/'` | |
152 | ;; | |
3f5d1c2c C |
153 | -psos*) |
154 | os=-psos | |
155 | ;; | |
a2ee3e6d | 156 | esac |
b9fe720d | 157 | |
a2ee3e6d JW |
158 | # Decode aliases for certain CPU-COMPANY combinations. |
159 | case $basic_machine in | |
939d9e8a | 160 | # Recognize the basic CPU types without company name. |
378fd382 | 161 | # Some are omitted here because they have special meanings below. |
d7a57996 | 162 | tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \ |
d586f394 | 163 | | arme[lb] | pyramid \ |
9ddf4089 | 164 | | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \ |
3f5d1c2c C |
165 | | alpha | we32k | ns16k | clipper | i370 | sh \ |
166 | | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \ | |
84849c9c | 167 | | pdp11 | mips64el | mips64orion | mips64orionel \ |
3f5d1c2c | 168 | | sparc | sparclet | sparclite | sparc64) |
032d50a9 DE |
169 | basic_machine=$basic_machine-unknown |
170 | ;; | |
35262713 | 171 | m88110 | m680[01234]0 | m683?2 | m68360 | z8k | v70 | h8500 | w65) # CYGNUS LOCAL |
a2ee3e6d JW |
172 | basic_machine=$basic_machine-unknown |
173 | ;; | |
d586f394 ILT |
174 | mips64vr4300 | mips64vr4300el) # CYGNUS LOCAL jsmith/vr4300 |
175 | basic_machine=$basic_machine-unknown | |
176 | ;; | |
177 | mips64vr4100 | mips64vr4100el) # CYGNUS LOCAL jsmith/vr4100 | |
48ac1853 ILT |
178 | basic_machine=$basic_machine-unknown |
179 | ;; | |
be9b9d69 JL |
180 | mips64vr5000 | mips64vr5000el) # CYGNUS LOCAL ian/vr5000 |
181 | basic_machine=$basic_machine-unknown | |
182 | ;; | |
9ddf4089 ILT |
183 | mips16) # CYGNUS LOCAL krk/mips16 |
184 | basic_machine=$basic_machine-unknown | |
185 | ;; | |
3817470b JL |
186 | # CYGNUS LOCAL law |
187 | mn10300) | |
188 | basic_machine=$basic_machine-unknown | |
189 | ;; | |
190 | mn10200) | |
191 | basic_machine=$basic_machine-unknown | |
192 | ;; | |
193 | # END CYGNUS LOCAL | |
88632436 | 194 | # start-sanitize-v850 |
3f5d1c2c C |
195 | v850) # CYGNUS LOCAL jtc/v850 |
196 | basic_machine=$basic_machine-unknown | |
197 | ;; | |
88632436 | 198 | # end-sanitize-v850 |
3f5d1c2c C |
199 | # start-sanitize-d10v |
200 | d10v) # CYGNUS LOCAL meissner/d10v | |
201 | basic_machine=$basic_machine-unknown | |
202 | ;; | |
203 | # end-sanitize-d10v | |
88632436 | 204 | # start-sanitize-m32r |
d7a57996 | 205 | m32r) # CYGNUS LOCAL |
88632436 DE |
206 | basic_machine=$basic_machine-unknown |
207 | ;; | |
208 | # end-sanitize-m32r | |
d7a57996 | 209 | mn10200) # CYGNUS LOCAL |
ae1b99e4 JL |
210 | basic_machine=$basic_machine-unknown |
211 | ;; | |
d7a57996 | 212 | mn10300) # CYGNUS LOCAL |
be9b9d69 JL |
213 | basic_machine=$basic_machine-unknown |
214 | ;; | |
d7a57996 ILT |
215 | # We use `pc' rather than `unknown' |
216 | # because (1) that's what they normally are, and | |
217 | # (2) the word "unknown" tends to confuse beginning users. | |
218 | i[3456]86) | |
219 | basic_machine=$basic_machine-pc | |
220 | ;; | |
939d9e8a JL |
221 | # Object if more than one company name word. |
222 | *-*-*) | |
223 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
224 | exit 1 | |
225 | ;; | |
226 | # Recognize the basic CPU types with company name. | |
d586f394 | 227 | vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \ |
d7a57996 | 228 | | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ |
35262713 | 229 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \ |
d1c8b869 | 230 | | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ |
9ddf4089 | 231 | | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ |
6559fbdb | 232 | | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \ |
35262713 | 233 | | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \ |
9ddf4089 | 234 | | mips64el-* | mips64orion-* | mips64orionel-* | f301-*) |
a2ee3e6d | 235 | ;; |
9ddf4089 | 236 | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | h8500-* | v850-* | d10v-*) # CYGNUS LOCAL |
7c71fc39 | 237 | ;; |
d586f394 ILT |
238 | mips64vr4300-* | mips64vr4300el-*) # CYGNUS LOCAL jsmith/vr4300 |
239 | ;; | |
240 | mips64vr4100-* | mips64vr4100el-*) # CYGNUS LOCAL jsmith/vr4100 | |
48ac1853 | 241 | ;; |
9ddf4089 ILT |
242 | mips16-*) # CYGNUS LOCAL krk/mips16 |
243 | ;; | |
a2ee3e6d JW |
244 | # Recognize the various machine names and aliases which stand |
245 | # for a CPU type and a company and sometimes even an OS. | |
842ca181 PB |
246 | 386bsd) # CYGNUS LOCAL |
247 | basic_machine=i386-unknown | |
248 | os=-bsd | |
a2ee3e6d | 249 | ;; |
842ca181 PB |
250 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) |
251 | basic_machine=m68000-att | |
a2ee3e6d | 252 | ;; |
842ca181 PB |
253 | 3b*) |
254 | basic_machine=we32k-att | |
939d9e8a | 255 | ;; |
842ca181 PB |
256 | a29khif) # CYGNUS LOCAL |
257 | basic_machine=a29k-amd | |
258 | os=-udi | |
939d9e8a | 259 | ;; |
842ca181 PB |
260 | adobe68k) # CYGNUS LOCAL |
261 | basic_machine=m68010-adobe | |
262 | os=-scout | |
ba7f177a | 263 | ;; |
842ca181 PB |
264 | alliant | fx80) |
265 | basic_machine=fx80-alliant | |
939d9e8a | 266 | ;; |
842ca181 PB |
267 | altos | altos3068) |
268 | basic_machine=m68k-altos | |
a2ee3e6d | 269 | ;; |
842ca181 PB |
270 | am29k) |
271 | basic_machine=a29k-none | |
272 | os=-bsd | |
a2ee3e6d | 273 | ;; |
842ca181 PB |
274 | amdahl) |
275 | basic_machine=580-amdahl | |
276 | os=-sysv | |
939d9e8a | 277 | ;; |
d1c8b869 | 278 | amiga | amiga-*) |
842ca181 | 279 | basic_machine=m68k-cbm |
68cd7865 | 280 | ;; |
842ca181 PB |
281 | amigados) |
282 | basic_machine=m68k-cbm | |
283 | os=-amigados | |
a2ee3e6d | 284 | ;; |
842ca181 PB |
285 | amigaunix | amix) |
286 | basic_machine=m68k-cbm | |
6559fbdb RP |
287 | os=-sysv4 |
288 | ;; | |
842ca181 PB |
289 | apollo68) |
290 | basic_machine=m68k-apollo | |
6559fbdb RP |
291 | os=-sysv |
292 | ;; | |
842ca181 PB |
293 | apollo68bsd) # CYGNUS LOCAL |
294 | basic_machine=m68k-apollo | |
23ab00aa KR |
295 | os=-bsd |
296 | ;; | |
032d50a9 | 297 | # start-sanitize-arc |
d7a57996 | 298 | arc) # CYGNUS LOCAL |
032d50a9 DE |
299 | basic_machine=arc-unknown |
300 | ;; | |
d7a57996 | 301 | arc-*) # CYGNUS LOCAL |
032d50a9 DE |
302 | ;; |
303 | # end-sanitize-arc | |
349f03db ILT |
304 | aux) |
305 | basic_machine=m68k-apple | |
306 | os=-aux | |
307 | ;; | |
842ca181 PB |
308 | balance) |
309 | basic_machine=ns32k-sequent | |
310 | os=-dynix | |
939d9e8a | 311 | ;; |
a2ee3e6d JW |
312 | convex-c1) |
313 | basic_machine=c1-convex | |
378fd382 | 314 | os=-bsd |
a2ee3e6d JW |
315 | ;; |
316 | convex-c2) | |
317 | basic_machine=c2-convex | |
378fd382 | 318 | os=-bsd |
a2ee3e6d JW |
319 | ;; |
320 | convex-c32) | |
321 | basic_machine=c32-convex | |
378fd382 | 322 | os=-bsd |
a2ee3e6d JW |
323 | ;; |
324 | convex-c34) | |
325 | basic_machine=c34-convex | |
378fd382 | 326 | os=-bsd |
a2ee3e6d JW |
327 | ;; |
328 | convex-c38) | |
329 | basic_machine=c38-convex | |
378fd382 | 330 | os=-bsd |
a2ee3e6d | 331 | ;; |
842ca181 PB |
332 | cray | ymp) |
333 | basic_machine=ymp-cray | |
334 | os=-unicos | |
a2ee3e6d | 335 | ;; |
842ca181 PB |
336 | cray2) |
337 | basic_machine=cray2-cray | |
338 | os=-unicos | |
a2ee3e6d | 339 | ;; |
d7a57996 ILT |
340 | [ctj]90-cray) |
341 | basic_machine=c90-cray | |
342 | os=-unicos | |
343 | ;; | |
a2ee3e6d JW |
344 | crds | unos) |
345 | basic_machine=m68k-crds | |
346 | ;; | |
d1c8b869 ILT |
347 | da30 | da30-*) |
348 | basic_machine=m68k-da30 | |
349 | ;; | |
350 | decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn) | |
842ca181 PB |
351 | basic_machine=mips-dec |
352 | ;; | |
353 | delta | 3300 | motorola-3300 | motorola-delta \ | |
354 | | 3300-motorola | delta-motorola) | |
355 | basic_machine=m68k-motorola | |
356 | ;; | |
357 | delta88) | |
358 | basic_machine=m88k-motorola | |
359 | os=-sysv3 | |
360 | ;; | |
361 | dpx20 | dpx20-*) | |
362 | basic_machine=rs6000-bull | |
363 | os=-bosx | |
364 | ;; | |
365 | dpx2* | dpx2*-bull) | |
366 | basic_machine=m68k-bull | |
367 | os=-sysv3 | |
368 | ;; | |
369 | ebmon29k) | |
370 | basic_machine=a29k-amd | |
371 | os=-ebmon | |
372 | ;; | |
378fd382 DZ |
373 | elxsi) |
374 | basic_machine=elxsi-elxsi | |
375 | os=-bsd | |
376 | ;; | |
a2ee3e6d JW |
377 | encore | umax | mmax) |
378 | basic_machine=ns32k-encore | |
a2ee3e6d | 379 | ;; |
842ca181 PB |
380 | es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL |
381 | basic_machine=m68k-ericsson | |
382 | os=-ose | |
383 | ;; | |
384 | fx2800) | |
385 | basic_machine=i860-alliant | |
386 | ;; | |
a2ee3e6d JW |
387 | genix) |
388 | basic_machine=ns32k-ns | |
389 | ;; | |
842ca181 PB |
390 | gmicro) |
391 | basic_machine=tron-gmicro | |
392 | os=-sysv | |
a2ee3e6d | 393 | ;; |
842ca181 PB |
394 | h3050r* | hiux*) |
395 | basic_machine=hppa1.1-hitachi | |
396 | os=-hiuxwe2 | |
a2ee3e6d | 397 | ;; |
d94aca1a | 398 | h8300hms) |
842ca181 PB |
399 | basic_machine=h8300-hitachi |
400 | os=-hms | |
a2ee3e6d | 401 | ;; |
842ca181 PB |
402 | h8300xray) # CYGNUS LOCAL |
403 | basic_machine=h8300-hitachi | |
404 | os=-xray | |
a2ee3e6d | 405 | ;; |
842ca181 PB |
406 | h8500hms) # CYGNUS LOCAL |
407 | basic_machine=h8500-hitachi | |
408 | os=-hms | |
a2ee3e6d | 409 | ;; |
842ca181 PB |
410 | harris) |
411 | basic_machine=m88k-harris | |
412 | os=-sysv3 | |
a2ee3e6d | 413 | ;; |
d1c8b869 ILT |
414 | hp300-*) |
415 | basic_machine=m68k-hp | |
a2ee3e6d | 416 | ;; |
842ca181 PB |
417 | hp300bsd) |
418 | basic_machine=m68k-hp | |
419 | os=-bsd | |
a2ee3e6d | 420 | ;; |
842ca181 PB |
421 | hp300hpux) |
422 | basic_machine=m68k-hp | |
423 | os=-hpux | |
a2ee3e6d | 424 | ;; |
d1c8b869 ILT |
425 | w89k-*) # CYGNUS LOCAL |
426 | basic_machine=hppa1.1-winbond | |
427 | os=-proelf | |
428 | ;; | |
429 | op50n-*) # CYGNUS LOCAL | |
430 | basic_machine=hppa1.1-oki | |
431 | os=-proelf | |
432 | ;; | |
433 | op60c-*) # CYGNUS LOCAL | |
434 | basic_machine=hppa1.1-oki | |
435 | os=-proelf | |
436 | ;; | |
437 | hppro) # CYGNUS LOCAL | |
438 | basic_machine=hppa1.1-hp | |
439 | os=-proelf | |
440 | ;; | |
842ca181 PB |
441 | hp9k2[0-9][0-9] | hp9k31[0-9]) |
442 | basic_machine=m68000-hp | |
a2ee3e6d | 443 | ;; |
842ca181 PB |
444 | hp9k3[2-9][0-9]) |
445 | basic_machine=m68k-hp | |
a2ee3e6d | 446 | ;; |
842ca181 PB |
447 | hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
448 | basic_machine=hppa1.1-hp | |
a2ee3e6d | 449 | ;; |
842ca181 PB |
450 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
451 | basic_machine=hppa1.0-hp | |
a2ee3e6d | 452 | ;; |
9ddf4089 ILT |
453 | hppa-next) |
454 | os=-nextstep3 | |
455 | ;; | |
d94aca1a | 456 | hppaosf) # CYGNUS LOCAL |
842ca181 PB |
457 | basic_machine=hppa1.1-hp |
458 | os=-osf | |
459 | ;; | |
460 | i370-ibm* | ibm*) | |
461 | basic_machine=i370-ibm | |
462 | os=-mvs | |
463 | ;; | |
842ca181 | 464 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
d586f394 | 465 | i[3456]86v32) |
d7a57996 | 466 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
842ca181 PB |
467 | os=-sysv32 |
468 | ;; | |
d586f394 | 469 | i[3456]86v4*) |
d7a57996 | 470 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
842ca181 PB |
471 | os=-sysv4 |
472 | ;; | |
d586f394 | 473 | i[3456]86v) |
d7a57996 | 474 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
842ca181 PB |
475 | os=-sysv |
476 | ;; | |
d586f394 | 477 | i[3456]86sol2) |
d7a57996 | 478 | basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` |
8bcd7db2 JW |
479 | os=-solaris2 |
480 | ;; | |
d1c8b869 ILT |
481 | i386mach) # CYGNUS LOCAL |
482 | basic_machine=i386-mach | |
483 | os=-mach | |
484 | ;; | |
485 | i386-vsta | vsta) # CYGNUS LOCAL | |
486 | basic_machine=i386-unknown | |
487 | os=-vsta | |
488 | ;; | |
489 | i386-go32 | go32) # CYGNUS LOCAL | |
490 | basic_machine=i386-unknown | |
491 | os=-go32 | |
492 | ;; | |
84849c9c | 493 | iris | iris4d) |
842ca181 PB |
494 | basic_machine=mips-sgi |
495 | case $os in | |
496 | -irix*) | |
497 | ;; | |
498 | *) | |
499 | os=-irix4 | |
500 | ;; | |
501 | esac | |
502 | ;; | |
503 | isi68 | isi) | |
504 | basic_machine=m68k-isi | |
505 | os=-sysv | |
506 | ;; | |
842ca181 PB |
507 | m88k-omron*) |
508 | basic_machine=m88k-omron | |
509 | ;; | |
510 | magnum | m3230) | |
511 | basic_machine=mips-mips | |
512 | os=-sysv | |
513 | ;; | |
514 | merlin) | |
515 | basic_machine=ns32k-utek | |
516 | os=-sysv | |
517 | ;; | |
518 | miniframe) | |
d1c8b869 | 519 | basic_machine=m68000-convergent |
a2ee3e6d | 520 | ;; |
d1c8b869 | 521 | mips3*-*) |
842ca181 PB |
522 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'` |
523 | ;; | |
d1c8b869 ILT |
524 | mips3*) |
525 | basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown | |
842ca181 | 526 | ;; |
d94aca1a | 527 | monitor) # CYGNUS LOCAL |
d1c8b869 | 528 | basic_machine=m68k-rom68k |
842ca181 | 529 | os=-coff |
d1c8b869 | 530 | ;; |
378fd382 | 531 | msdos) # CYGNUS LOCAL |
afba2b22 ILT |
532 | basic_machine=i386-unknown |
533 | os=-msdos | |
534 | ;; | |
842ca181 PB |
535 | ncr3000) |
536 | basic_machine=i486-ncr | |
537 | os=-sysv4 | |
378fd382 | 538 | ;; |
842ca181 PB |
539 | netbsd386) |
540 | basic_machine=i386-unknown # CYGNUS LOCAL | |
541 | os=-netbsd | |
a2ee3e6d | 542 | ;; |
842ca181 PB |
543 | news | news700 | news800 | news900) |
544 | basic_machine=m68k-sony | |
545 | os=-newsos | |
a2ee3e6d | 546 | ;; |
842ca181 PB |
547 | news1000) |
548 | basic_machine=m68030-sony | |
549 | os=-newsos | |
550 | ;; | |
551 | news-3600 | risc-news) | |
552 | basic_machine=mips-sony | |
553 | os=-newsos | |
378fd382 | 554 | ;; |
d1c8b869 ILT |
555 | necv70) # CYGNUS LOCAL |
556 | basic_machine=v70-nec | |
557 | os=-sysv | |
558 | ;; | |
559 | next | m*-next ) | |
a2ee3e6d | 560 | basic_machine=m68k-next |
842ca181 | 561 | case $os in |
d1c8b869 ILT |
562 | -nextstep* ) |
563 | ;; | |
564 | -ns2*) | |
565 | os=-nextstep2 | |
842ca181 PB |
566 | ;; |
567 | *) | |
1983e432 | 568 | os=-nextstep3 |
842ca181 PB |
569 | ;; |
570 | esac | |
a2ee3e6d | 571 | ;; |
842ca181 PB |
572 | nh3000) |
573 | basic_machine=m68k-harris | |
574 | os=-cxux | |
378fd382 | 575 | ;; |
842ca181 PB |
576 | nh[45]000) |
577 | basic_machine=m88k-harris | |
578 | os=-cxux | |
27a2a371 | 579 | ;; |
842ca181 PB |
580 | nindy960) |
581 | basic_machine=i960-intel | |
582 | os=-nindy | |
a2ee3e6d | 583 | ;; |
d7a57996 | 584 | mon960) # CYGNUS LOCAL |
3f5d1c2c C |
585 | basic_machine=i960-intel |
586 | os=-mon960 | |
587 | ;; | |
842ca181 PB |
588 | np1) |
589 | basic_machine=np1-gould | |
a2ee3e6d | 590 | ;; |
842ca181 PB |
591 | OSE68000 | ose68000) # CYGNUS LOCAL |
592 | basic_machine=m68000-ericsson | |
593 | os=-ose | |
a2ee3e6d | 594 | ;; |
d1c8b869 ILT |
595 | os68k) # CYGNUS LOCAL |
596 | basic_machine=m68k-none | |
597 | os=-os68k | |
598 | ;; | |
842ca181 | 599 | pa-hitachi) |
9117f609 | 600 | basic_machine=hppa1.1-hitachi |
842ca181 | 601 | os=-hiuxwe2 |
9117f609 | 602 | ;; |
842ca181 PB |
603 | paragon) |
604 | basic_machine=i860-intel | |
605 | os=-osf | |
a2ee3e6d | 606 | ;; |
842ca181 PB |
607 | pbd) |
608 | basic_machine=sparc-tti | |
a2ee3e6d | 609 | ;; |
842ca181 PB |
610 | pbb) |
611 | basic_machine=m68k-tti | |
a2ee3e6d | 612 | ;; |
d1c8b869 | 613 | pc532 | pc532-*) |
842ca181 | 614 | basic_machine=ns32k-pc532 |
a2ee3e6d | 615 | ;; |
d586f394 | 616 | pentium | p5) |
35262713 SC |
617 | basic_machine=i586-intel |
618 | ;; | |
d586f394 ILT |
619 | pentiumpro | p6) |
620 | basic_machine=i686-intel | |
621 | ;; | |
622 | pentium-* | p5-*) | |
35262713 SC |
623 | basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'` |
624 | ;; | |
d586f394 ILT |
625 | pentiumpro-* | p6-*) |
626 | basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'` | |
627 | ;; | |
35262713 SC |
628 | k5) |
629 | # We don't have specific support for AMD's K5 yet, so just call it a Pentium | |
630 | basic_machine=i586-amd | |
631 | ;; | |
d586f394 | 632 | nexen) |
35262713 SC |
633 | # We don't have specific support for Nexgen yet, so just call it a Pentium |
634 | basic_machine=i586-nexgen | |
d1c8b869 | 635 | ;; |
842ca181 PB |
636 | pn) |
637 | basic_machine=pn-gould | |
638 | ;; | |
35262713 SC |
639 | power) basic_machine=rs6000-ibm |
640 | ;; | |
641 | ppc) basic_machine=powerpc-unknown | |
642 | ;; | |
643 | ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` | |
644 | ;; | |
645 | ppcle | powerpclittle | ppc-le | powerpc-little) | |
646 | basic_machine=powerpcle-unknown | |
647 | ;; | |
648 | ppcle-* | powerpclittle-*) | |
649 | basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'` | |
650 | ;; | |
842ca181 PB |
651 | ps2) |
652 | basic_machine=i386-ibm | |
68cd7865 | 653 | ;; |
d1c8b869 ILT |
654 | rom68k) # CYGNUS LOCAL |
655 | basic_machine=m68k-rom68k | |
9d784b19 | 656 | os=-coff |
d1c8b869 | 657 | ;; |
84849c9c ILT |
658 | rm[46]00) |
659 | basic_machine=mips-siemens | |
660 | ;; | |
842ca181 PB |
661 | rtpc | rtpc-*) |
662 | basic_machine=romp-ibm | |
a2ee3e6d | 663 | ;; |
842ca181 PB |
664 | sa29200) # CYGNUS LOCAL |
665 | basic_machine=a29k-amd | |
666 | os=-udi | |
a2ee3e6d | 667 | ;; |
d1c8b869 ILT |
668 | sequent) |
669 | basic_machine=i386-sequent | |
670 | ;; | |
671 | sh) | |
842ca181 PB |
672 | basic_machine=sh-hitachi |
673 | os=-hms | |
a2ee3e6d | 674 | ;; |
842ca181 PB |
675 | sparclite-wrs) # CYGNUS LOCAL |
676 | basic_machine=sparclite-wrs | |
677 | os=-vxworks | |
678 | ;; | |
842ca181 PB |
679 | sps7) |
680 | basic_machine=m68k-bull | |
681 | os=-sysv2 | |
682 | ;; | |
683 | spur) | |
684 | basic_machine=spur-unknown | |
685 | ;; | |
686 | st2000) # CYGNUS LOCAL | |
687 | basic_machine=m68k-tandem | |
a2ee3e6d | 688 | ;; |
378fd382 | 689 | stratus) # CYGNUS LOCAL |
dd16baba SEF |
690 | basic_machine=i860-stratus |
691 | os=-sysv4 | |
692 | ;; | |
842ca181 PB |
693 | sun2) |
694 | basic_machine=m68000-sun | |
a2ee3e6d | 695 | ;; |
842ca181 PB |
696 | sun2os3) |
697 | basic_machine=m68000-sun | |
698 | os=-sunos3 | |
a2ee3e6d | 699 | ;; |
842ca181 PB |
700 | sun2os4) |
701 | basic_machine=m68000-sun | |
702 | os=-sunos4 | |
a2ee3e6d | 703 | ;; |
842ca181 PB |
704 | sun3os3) |
705 | basic_machine=m68k-sun | |
706 | os=-sunos3 | |
a2ee3e6d | 707 | ;; |
842ca181 PB |
708 | sun3os4) |
709 | basic_machine=m68k-sun | |
710 | os=-sunos4 | |
a2ee3e6d | 711 | ;; |
842ca181 PB |
712 | sun4os3) |
713 | basic_machine=sparc-sun | |
714 | os=-sunos3 | |
a2ee3e6d | 715 | ;; |
842ca181 PB |
716 | sun4os4) |
717 | basic_machine=sparc-sun | |
718 | os=-sunos4 | |
2501643a | 719 | ;; |
84849c9c | 720 | sun4sol2) |
842ca181 PB |
721 | basic_machine=sparc-sun |
722 | os=-solaris2 | |
984b27cb | 723 | ;; |
d1c8b869 | 724 | sun3 | sun3-*) |
842ca181 | 725 | basic_machine=m68k-sun |
984b27cb | 726 | ;; |
842ca181 PB |
727 | sun4) |
728 | basic_machine=sparc-sun | |
378fd382 | 729 | ;; |
842ca181 PB |
730 | sun386 | sun386i | roadrunner) |
731 | basic_machine=i386-sun | |
378fd382 | 732 | ;; |
842ca181 PB |
733 | symmetry) |
734 | basic_machine=i386-sequent | |
735 | os=-dynix | |
2501643a | 736 | ;; |
842ca181 PB |
737 | tower | tower-32) |
738 | basic_machine=m68k-ncr | |
2501643a | 739 | ;; |
032d50a9 | 740 | udi29k) |
2501643a PB |
741 | basic_machine=a29k-amd |
742 | os=-udi | |
743 | ;; | |
842ca181 PB |
744 | ultra3) |
745 | basic_machine=a29k-nyu | |
746 | os=-sym1 | |
99a5da15 | 747 | ;; |
d94aca1a | 748 | v810 | necv810) # CYGNUS LOCAL |
4a967132 PB |
749 | basic_machine=v810-nec |
750 | os=-none | |
751 | ;; | |
842ca181 PB |
752 | vaxv) |
753 | basic_machine=vax-dec | |
754 | os=-sysv | |
a2ee3e6d | 755 | ;; |
842ca181 PB |
756 | vms) |
757 | basic_machine=vax-dec | |
758 | os=-vms | |
a2ee3e6d | 759 | ;; |
9ddf4089 ILT |
760 | vpp*|vx|vx-*) |
761 | basic_machine=f301-fujitsu | |
762 | ;; | |
a2ee3e6d JW |
763 | vxworks960) |
764 | basic_machine=i960-wrs | |
765 | os=-vxworks | |
766 | ;; | |
767 | vxworks68) | |
768 | basic_machine=m68k-wrs | |
769 | os=-vxworks | |
770 | ;; | |
d586f394 ILT |
771 | vxworks29k) |
772 | basic_machine=a29k-wrs | |
773 | os=-vxworks | |
774 | ;; | |
84849c9c | 775 | w65*) # CYGNUS LOCAL |
032d50a9 DE |
776 | basic_machine=w65-wdc |
777 | os=-none | |
778 | ;; | |
842ca181 PB |
779 | xmp) |
780 | basic_machine=xmp-cray | |
781 | os=-unicos | |
f68be6f0 | 782 | ;; |
27a2a371 JW |
783 | xps | xps100) |
784 | basic_machine=xps100-honeywell | |
785 | ;; | |
48ac1853 | 786 | z8k-*-coff) # CYGNUS LOCAL |
d1c8b869 | 787 | basic_machine=z8k-unknown |
842ca181 PB |
788 | os=-sim |
789 | ;; | |
a2ee3e6d JW |
790 | none) |
791 | basic_machine=none-none | |
792 | os=-none | |
793 | ;; | |
69e87de2 | 794 | |
a2ee3e6d JW |
795 | # Here we handle the default manufacturer of certain CPU types. It is in |
796 | # some cases the only manufacturer, in others, it is the most popular. | |
d1c8b869 | 797 | w89k) # CYGNUS LOCAL |
3b61a094 RS |
798 | basic_machine=hppa1.1-winbond |
799 | ;; | |
d1c8b869 | 800 | op50n) # CYGNUS LOCAL |
3b61a094 RS |
801 | basic_machine=hppa1.1-oki |
802 | ;; | |
d1c8b869 | 803 | op60c) # CYGNUS LOCAL |
3b61a094 RS |
804 | basic_machine=hppa1.1-oki |
805 | ;; | |
a2ee3e6d JW |
806 | mips) |
807 | basic_machine=mips-mips | |
808 | ;; | |
809 | romp) | |
810 | basic_machine=romp-ibm | |
811 | ;; | |
812 | rs6000) | |
813 | basic_machine=rs6000-ibm | |
814 | ;; | |
815 | vax) | |
816 | basic_machine=vax-dec | |
817 | ;; | |
84849c9c ILT |
818 | pdp11) |
819 | basic_machine=pdp11-dec | |
820 | ;; | |
378fd382 DZ |
821 | we32k) |
822 | basic_machine=we32k-att | |
823 | ;; | |
6559fbdb RP |
824 | sparc) |
825 | basic_machine=sparc-sun | |
826 | ;; | |
27a2a371 JW |
827 | cydra) |
828 | basic_machine=cydra-cydrome | |
829 | ;; | |
830 | orion) | |
831 | basic_machine=orion-highlevel | |
832 | ;; | |
833 | orion105) | |
834 | basic_machine=clipper-highlevel | |
835 | ;; | |
48ac1853 | 836 | mac | mpw | mac-mpw) # CYGNUS LOCAL |
939d9e8a JL |
837 | basic_machine=m68k-apple |
838 | ;; | |
48ac1853 ILT |
839 | pmac | pmac-mpw) # CYGNUS LOCAL |
840 | basic_machine=powerpc-apple | |
939d9e8a | 841 | ;; |
a2ee3e6d JW |
842 | *) |
843 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
4f183929 | 844 | exit 1 |
a2ee3e6d | 845 | ;; |
4f183929 RP |
846 | esac |
847 | ||
378fd382 DZ |
848 | # Here we canonicalize certain aliases for manufacturers. |
849 | case $basic_machine in | |
850 | *-digital*) | |
851 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
852 | ;; | |
853 | *-commodore*) | |
854 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
855 | ;; | |
856 | *) | |
857 | ;; | |
858 | esac | |
859 | ||
a2ee3e6d | 860 | # Decode manufacturer-specific aliases for certain operating systems. |
e6602723 | 861 | |
b48eb8b7 | 862 | if [ x"$os" != x"" ] |
a2ee3e6d JW |
863 | then |
864 | case $os in | |
d7a57996 ILT |
865 | # First match some system type aliases |
866 | # that might get confused with valid system types. | |
6559fbdb RP |
867 | # -solaris* is a basic system type, with this one exception. |
868 | -solaris1 | -solaris1.*) | |
869 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
870 | ;; | |
b2eed00f DE |
871 | -solaris) |
872 | os=-solaris2 | |
873 | ;; | |
84849c9c ILT |
874 | -unixware* | svr4*) |
875 | os=-sysv4 | |
876 | ;; | |
d94aca1a | 877 | -gnu/linux*) |
d7a57996 | 878 | os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'` |
d94aca1a | 879 | ;; |
a2ee3e6d JW |
880 | # First accept the basic system types. |
881 | # The portable systems comes first. | |
d586f394 | 882 | # Each alternative MUST END IN A *, to match a version number. |
939d9e8a | 883 | # -sysv* is not here because it comes later, after sysvr4. |
d586f394 | 884 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
d7a57996 | 885 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
d1c8b869 | 886 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
d7a57996 ILT |
887 | | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \ |
888 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ | |
889 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ | |
9ddf4089 | 890 | | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ |
d1c8b869 | 891 | | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \ |
d586f394 | 892 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
3f5d1c2c | 893 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
d7a57996 | 894 | | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
9ddf4089 | 895 | | -linux-gnu* | -uxpv*) |
d586f394 | 896 | # Remember, each alternative MUST END IN *, to match a version number. |
d1c8b869 | 897 | ;; |
032d50a9 | 898 | # CYGNUS LOCAL |
d586f394 | 899 | -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ |
d7a57996 ILT |
900 | | -windows* | -osx | -abug | -netware* | -os9* \ |
901 | | -macos* | -mpw* | -magic* | -mon960*) | |
032d50a9 | 902 | ;; |
d586f394 | 903 | -mac*) |
032d50a9 DE |
904 | os=`echo $os | sed -e 's|mac|macos|'` |
905 | ;; | |
d586f394 | 906 | # END CYGNUS LOCAL |
d7a57996 ILT |
907 | -linux*) |
908 | os=`echo $os | sed -e 's|linux|linux-gnu|'` | |
909 | ;; | |
6559fbdb RP |
910 | -sunos5*) |
911 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
912 | ;; | |
913 | -sunos6*) | |
914 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
915 | ;; | |
a2ee3e6d | 916 | -osfrose*) |
378fd382 | 917 | os=-osfrose |
a2ee3e6d JW |
918 | ;; |
919 | -osf*) | |
378fd382 DZ |
920 | os=-osf |
921 | ;; | |
922 | -utek*) | |
a2ee3e6d JW |
923 | os=-bsd |
924 | ;; | |
925 | -dynix*) | |
926 | os=-bsd | |
927 | ;; | |
378fd382 DZ |
928 | -acis*) |
929 | os=-aos | |
a2ee3e6d | 930 | ;; |
378fd382 | 931 | -386bsd) # CYGNUS LOCAL |
23ab00aa KR |
932 | os=-bsd |
933 | ;; | |
68cd7865 | 934 | -ctix* | -uts*) |
a2ee3e6d JW |
935 | os=-sysv |
936 | ;; | |
d586f394 ILT |
937 | -ns2 ) |
938 | os=-nextstep2 | |
939 | ;; | |
84849c9c ILT |
940 | # Preserve the version number of sinix5. |
941 | -sinix5.*) | |
942 | os=`echo $os | sed -e 's|sinix|sysv|'` | |
943 | ;; | |
944 | -sinix*) | |
945 | os=-sysv4 | |
946 | ;; | |
378fd382 DZ |
947 | -triton*) |
948 | os=-sysv3 | |
949 | ;; | |
950 | -oss*) | |
951 | os=-sysv3 | |
952 | ;; | |
c1e296fc SG |
953 | -svr4) |
954 | os=-sysv4 | |
955 | ;; | |
956 | -svr3) | |
957 | os=-sysv3 | |
958 | ;; | |
939d9e8a JL |
959 | -sysvr4) |
960 | os=-sysv4 | |
961 | ;; | |
962 | # This must come after -sysvr4. | |
963 | -sysv*) | |
964 | ;; | |
378fd382 | 965 | -ose*) # CYGNUS LOCAL |
afba2b22 ILT |
966 | os=-ose |
967 | ;; | |
378fd382 | 968 | -es1800*) # CYGNUS LOCAL |
afba2b22 ILT |
969 | os=-ose |
970 | ;; | |
27a2a371 JW |
971 | -xenix) |
972 | os=-xenix | |
973 | ;; | |
378fd382 DZ |
974 | -none) |
975 | ;; | |
a2ee3e6d JW |
976 | *) |
977 | # Get rid of the `-' at the beginning of $os. | |
d1c8b869 | 978 | os=`echo $os | sed 's/[^-]*-//'` |
a2ee3e6d JW |
979 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 |
980 | exit 1 | |
981 | ;; | |
69e87de2 | 982 | esac |
a2ee3e6d | 983 | else |
69e87de2 | 984 | |
a2ee3e6d JW |
985 | # Here we handle the default operating systems that come with various machines. |
986 | # The value should be what the vendor currently ships out the door with their | |
987 | # machine or put another way, the most popular os provided with the machine. | |
27a2a371 JW |
988 | |
989 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | |
990 | # "-sun"), then you have to tell the case statement up towards the top | |
991 | # that MANUFACTURER isn't an operating system. Otherwise, code above | |
992 | # will signal an error saying that MANUFACTURER isn't an operating | |
993 | # system, and we'll never get to this point. | |
994 | ||
a2ee3e6d | 995 | case $basic_machine in |
939d9e8a JL |
996 | *-acorn) |
997 | os=-riscix1.2 | |
998 | ;; | |
d586f394 ILT |
999 | arm*-semi) |
1000 | os=-aout | |
1001 | ;; | |
84849c9c ILT |
1002 | pdp11-*) |
1003 | os=-none | |
1004 | ;; | |
a2ee3e6d | 1005 | *-dec | vax-*) |
378fd382 | 1006 | os=-ultrix4.2 |
a2ee3e6d | 1007 | ;; |
84849c9c ILT |
1008 | m68*-apollo) |
1009 | os=-domain | |
1010 | ;; | |
a2ee3e6d | 1011 | i386-sun) |
378fd382 | 1012 | os=-sunos4.0.2 |
a2ee3e6d JW |
1013 | ;; |
1014 | m68000-sun) | |
1015 | os=-sunos3 | |
1016 | # This also exists in the configure program, but was not the | |
1017 | # default. | |
1018 | # os=-sunos4 | |
1019 | ;; | |
d94aca1a | 1020 | m68*-cisco) # CYGNUS LOCAL |
aa6db781 DE |
1021 | os=-aout |
1022 | ;; | |
d94aca1a | 1023 | mips*-cisco) # CYGNUS LOCAL |
aa6db781 DE |
1024 | os=-elf |
1025 | ;; | |
378fd382 DZ |
1026 | *-tti) # must be before sparc entry or we get the wrong os. |
1027 | os=-sysv3 | |
a2ee3e6d | 1028 | ;; |
378fd382 DZ |
1029 | sparc-* | *-sun) |
1030 | os=-sunos4.1.1 | |
a2ee3e6d JW |
1031 | ;; |
1032 | *-ibm) | |
1033 | os=-aix | |
1034 | ;; | |
3b61a094 | 1035 | *-wec) # CYGNUS LOCAL |
d1c8b869 | 1036 | os=-proelf |
3b61a094 RS |
1037 | ;; |
1038 | *-winbond) # CYGNUS LOCAL | |
d1c8b869 | 1039 | os=-proelf |
3b61a094 RS |
1040 | ;; |
1041 | *-oki) # CYGNUS LOCAL | |
d1c8b869 ILT |
1042 | os=-proelf |
1043 | ;; | |
1044 | *-hp) | |
1045 | os=-hpux | |
3b61a094 | 1046 | ;; |
9117f609 JK |
1047 | *-hitachi) |
1048 | os=-hiux | |
1049 | ;; | |
27a2a371 | 1050 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
a2ee3e6d JW |
1051 | os=-sysv |
1052 | ;; | |
378fd382 DZ |
1053 | *-cbm) |
1054 | os=-amigados | |
1055 | ;; | |
a2ee3e6d JW |
1056 | *-dg) |
1057 | os=-dgux | |
1058 | ;; | |
378fd382 DZ |
1059 | *-dolphin) |
1060 | os=-sysv3 | |
1061 | ;; | |
d1c8b869 ILT |
1062 | m68k-ccur) |
1063 | os=-rtu | |
1064 | ;; | |
a2ee3e6d JW |
1065 | m88k-omron*) |
1066 | os=-luna | |
1067 | ;; | |
d586f394 ILT |
1068 | *-next ) |
1069 | os=-nextstep | |
1070 | ;; | |
a70c9959 | 1071 | *-sequent) |
d1c8b869 | 1072 | os=-ptx |
a70c9959 | 1073 | ;; |
a2ee3e6d JW |
1074 | *-crds) |
1075 | os=-unos | |
1076 | ;; | |
1077 | *-ns) | |
1078 | os=-genix | |
1079 | ;; | |
939d9e8a JL |
1080 | i370-*) |
1081 | os=-mvs | |
1082 | ;; | |
1083 | *-next) | |
d1c8b869 | 1084 | os=-nextstep3 |
a2ee3e6d | 1085 | ;; |
27a2a371 JW |
1086 | *-gould) |
1087 | os=-sysv | |
1088 | ;; | |
1089 | *-highlevel) | |
1090 | os=-bsd | |
1091 | ;; | |
1092 | *-encore) | |
1093 | os=-bsd | |
1094 | ;; | |
1095 | *-sgi) | |
1096 | os=-irix | |
1097 | ;; | |
84849c9c ILT |
1098 | *-siemens) |
1099 | os=-sysv4 | |
1100 | ;; | |
27a2a371 JW |
1101 | *-masscomp) |
1102 | os=-rtu | |
1103 | ;; | |
9ddf4089 ILT |
1104 | f301-fujitsu) |
1105 | os=-uxpv | |
1106 | ;; | |
9d784b19 RS |
1107 | *-rom68k) # CYGNUS LOCAL |
1108 | os=-coff | |
1109 | ;; | |
1110 | *-*bug) # CYGNUS LOCAL | |
1111 | os=-coff | |
1112 | ;; | |
939d9e8a | 1113 | *-apple) # CYGNUS LOCAL |
48ac1853 | 1114 | os=-macos |
939d9e8a | 1115 | ;; |
a2ee3e6d JW |
1116 | *) |
1117 | os=-none | |
1118 | ;; | |
69e87de2 | 1119 | esac |
a2ee3e6d | 1120 | fi |
69e87de2 | 1121 | |
a2ee3e6d JW |
1122 | # Here we handle the case where we know the os, and the CPU type, but not the |
1123 | # manufacturer. We pick the logical manufacturer. | |
1124 | vendor=unknown | |
1125 | case $basic_machine in | |
1126 | *-unknown) | |
1127 | case $os in | |
939d9e8a JL |
1128 | -riscix*) |
1129 | vendor=acorn | |
1130 | ;; | |
a2ee3e6d JW |
1131 | -sunos*) |
1132 | vendor=sun | |
1133 | ;; | |
1134 | -aix*) | |
1135 | vendor=ibm | |
1136 | ;; | |
1137 | -hpux*) | |
1138 | vendor=hp | |
1139 | ;; | |
9117f609 JK |
1140 | -hiux*) |
1141 | vendor=hitachi | |
1142 | ;; | |
a2ee3e6d JW |
1143 | -unos*) |
1144 | vendor=crds | |
1145 | ;; | |
1146 | -dgux*) | |
1147 | vendor=dg | |
1148 | ;; | |
1149 | -luna*) | |
1150 | vendor=omron | |
1151 | ;; | |
1152 | -genix*) | |
1153 | vendor=ns | |
1154 | ;; | |
939d9e8a JL |
1155 | -mvs*) |
1156 | vendor=ibm | |
1157 | ;; | |
d1c8b869 ILT |
1158 | -ptx*) |
1159 | vendor=sequent | |
1160 | ;; | |
d7a57996 | 1161 | -vxsim* | -vxworks*) |
032d50a9 | 1162 | vendor=wrs |
afba2b22 | 1163 | ;; |
349f03db ILT |
1164 | -aux*) |
1165 | vendor=apple | |
1166 | ;; | |
984b27cb SC |
1167 | -hms*) # CYGNUS LOCAL |
1168 | vendor=hitachi | |
1169 | ;; | |
35262713 | 1170 | -mpw* | -macos*) # CYGNUS LOCAL |
939d9e8a JL |
1171 | vendor=apple |
1172 | ;; | |
a2ee3e6d JW |
1173 | esac |
1174 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
1175 | ;; | |
4f183929 RP |
1176 | esac |
1177 | ||
a2ee3e6d | 1178 | echo $basic_machine$os |