Commit | Line | Data |
---|---|---|
4f183929 | 1 | #!/bin/sh |
378fd382 | 2 | # Configuration validation subroutine script, version 1.1. |
68cd7865 | 3 | # Copyright (C) 1991, 1992 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 | |
6 | # can handle that machine. It does not imply ALL GNU software can. | |
a2ee3e6d JW |
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 | |
20 | #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | ||
4f183929 RP |
22 | |
23 | # Configuration subroutine to validate and canonicalize a configuration type. | |
24 | # Supply the specified configuration type as an argument. | |
25 | # If it is invalid, we print an error message on stderr and exit with code 1. | |
26 | # Otherwise, we print the canonical config type on stdout and succeed. | |
27 | ||
28 | # This file is supposed to be the same for all GNU packages | |
29 | # and recognize all the CPU types, system types and aliases | |
30 | # that are meaningful with *any* GNU software. | |
31 | # Each package is responsible for reporting which valid configurations | |
32 | # it does not support. The user should be able to distinguish | |
33 | # a failure to support a valid configuration from a meaningless | |
a2ee3e6d | 34 | # configuration. |
4f183929 | 35 | |
a2ee3e6d JW |
36 | # The goal of this file is to map all the various variations of a given |
37 | # machine specification into a single specification in the form: | |
38 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
27a2a371 | 39 | # It is wrong to echo any other type of specification. |
8b204e6e | 40 | |
23ab00aa KR |
41 | if [ x$1 = x ] |
42 | then | |
43 | echo Configuration name missing. 1>&2 | |
44 | echo "Usage: $0 CPU-MFR-OPSYS" 1>&2 | |
45 | echo "or $0 ALIAS" 1>&2 | |
46 | echo where ALIAS is a recognized configuration type. 1>&2 | |
47 | exit 1 | |
48 | fi | |
49 | ||
a2ee3e6d JW |
50 | # First pass through any local machine types. |
51 | case $1 in | |
52 | *local*) | |
53 | echo $1 | |
54 | exit 0 | |
55 | ;; | |
56 | *) | |
69e87de2 | 57 | ;; |
a2ee3e6d | 58 | esac |
b9fe720d | 59 | |
a2ee3e6d | 60 | # Separate what the user gave into CPU-COMPANY and OS (if any). |
378fd382 | 61 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` |
a2ee3e6d JW |
62 | if [ $basic_machine != $1 ] |
63 | then os=`echo $1 | sed 's/.*-/-/'` | |
64 | else os=; fi | |
caebaa16 | 65 | |
27a2a371 JW |
66 | ### Let's recognize common machines as not being operating systems so |
67 | ### that things like config.sub decstation-3100 work. We also | |
68 | ### recognize some manufacturers as not being operatin systems, so we | |
69 | ### can provide default operating systems below. | |
a2ee3e6d JW |
70 | case $os in |
71 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | |
72 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
73 | -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \ | |
378fd382 | 74 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | \ |
a2ee3e6d | 75 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
27a2a371 | 76 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
378fd382 | 77 | -sim) # CYGNUS LOCAL |
a2ee3e6d JW |
78 | os= |
79 | basic_machine=$1 | |
80 | ;; | |
378fd382 | 81 | -scout) # CYGNUS LOCAL |
f68be6f0 | 82 | ;; |
300f6a4f RS |
83 | -wrs) |
84 | os=vxworks | |
85 | basic_machine=$1 | |
86 | ;; | |
27a2a371 JW |
87 | -sco3.2v[4-9]*) |
88 | # Don't forget version if it is 3.2v4 or newer. | |
89 | os=-sco3.2v4 | |
90 | basic_machine=i386-unknown | |
91 | ;; | |
a2ee3e6d | 92 | -sco*) |
378fd382 | 93 | os=-sco3.2v2 |
a2ee3e6d JW |
94 | basic_machine=i386-unknown |
95 | ;; | |
27a2a371 JW |
96 | -isc) |
97 | os=-isc2.2 | |
98 | basic_machine=i386-unknown | |
99 | ;; | |
378fd382 DZ |
100 | -isc*) |
101 | os=-isc | |
102 | basic_machine=i386-unknown | |
103 | ;; | |
a2ee3e6d | 104 | # start-sanitize-v9 |
378fd382 | 105 | -32) # CYGNUS LOCAL |
a2ee3e6d JW |
106 | basic_machine=sparc64-hal |
107 | os=-hal32 | |
108 | ;; | |
378fd382 | 109 | -64) # CYGNUS LOCAL |
a2ee3e6d JW |
110 | basic_machine=sparc64-hal |
111 | os=-hal64 | |
112 | ;; | |
378fd382 | 113 | -v7) # CYGNUS LOCAL |
a2ee3e6d JW |
114 | basic_machine=sparc64-sun |
115 | os=-v7 | |
116 | ;; | |
117 | # end-sanitize-v9 | |
118 | esac | |
b9fe720d | 119 | |
a2ee3e6d JW |
120 | # Decode aliases for certain CPU-COMPANY combinations. |
121 | case $basic_machine in | |
122 | # Recognize the basic CPU types with without company name. | |
378fd382 DZ |
123 | # Some are omitted here because they have special meanings below. |
124 | tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ | |
125 | | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ | |
27a2a371 | 126 | | alpha | we32k | ns16k | clipper \ |
ba7f177a | 127 | | sparc | m680[01234]0 | m683?2 | z8k | v70 | h8500)# CYGNUS LOCAL |
a2ee3e6d JW |
128 | basic_machine=$basic_machine-unknown |
129 | ;; | |
130 | # Recognize the basic CPU types with with company name. | |
378fd382 DZ |
131 | vax-* | tahoe-* | i[34]86-* | i860-* | m68k-* | m68000-* | m88k-* \ |
132 | | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ | |
a2ee3e6d JW |
133 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ |
134 | | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ | |
27a2a371 JW |
135 | | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ |
136 | | pn-* | np1-* | xps100-* | clipper-* | orion-* \ | |
378fd382 | 137 | | m680[01234]0-* | m683?2-* | z8k-*) # CYGNUS LOCAL |
a2ee3e6d JW |
138 | ;; |
139 | # Recognize the various machine names and aliases which stand | |
140 | # for a CPU type and a company and sometimes even an OS. | |
25fa8f53 | 141 | # start-sanitize-v9 |
378fd382 DZ |
142 | sparc64-*) ;; # CYGNUS LOCAL |
143 | hal-32 | hal32) # CYGNUS LOCAL | |
a2ee3e6d JW |
144 | basic_machine=sparc64-hal |
145 | os=-hal32 | |
146 | ;; | |
378fd382 | 147 | hal-64 | hal64) # CYGNUS LOCAL |
a2ee3e6d JW |
148 | basic_machine=sparc64-hal |
149 | os=-hal64 | |
150 | ;; | |
378fd382 | 151 | sparc64) # CYGNUS LOCAL |
a2ee3e6d | 152 | basic_machine=sparc64-sun |
ba7f177a | 153 | os=-v9 # 32 bit pointers |
a2ee3e6d | 154 | ;; |
378fd382 | 155 | sparc64-v7 | sparc64v7) # CYGNUS LOCAL |
a2ee3e6d JW |
156 | basic_machine=sparc64-sun |
157 | os=-v7 | |
158 | ;; | |
25fa8f53 | 159 | # end-sanitize-v9 |
7054ee6d | 160 | |
ba7f177a PB |
161 | dpx20 | dpx20-*) # CYGNUS LOCAL |
162 | basic_machine=rs6000-bull | |
163 | os=-bosx | |
164 | ;; | |
a2ee3e6d JW |
165 | vaxv) |
166 | basic_machine=vax-dec | |
167 | os=-sysv | |
168 | ;; | |
169 | vms) | |
170 | basic_machine=vax-dec | |
171 | os=-vms | |
172 | ;; | |
378fd382 | 173 | i386mach) # CYGNUS LOCAL |
68cd7865 SEF |
174 | basic_machine=i386-mach |
175 | os=-mach | |
176 | ;; | |
a2ee3e6d JW |
177 | i386v32) |
178 | basic_machine=i386-unknown | |
179 | os=-sysv32 | |
180 | ;; | |
181 | i386-sco* | i386sco | sco) | |
182 | basic_machine=i386-unknown | |
378fd382 | 183 | os=-sco3.2v2 |
a2ee3e6d | 184 | ;; |
378fd382 | 185 | go32 | i386-go32) # CYGNUS LOCAL |
2501643a PB |
186 | basic_machine=i386-unknown |
187 | os=-go32 | |
188 | ;; | |
a2ee3e6d JW |
189 | i386-isc* | isc) |
190 | basic_machine=i386-unknown | |
378fd382 | 191 | os=-isc |
a2ee3e6d | 192 | ;; |
378fd382 | 193 | i386-linux* | linux) # CYGNUS LOCAL |
8bcd7db2 JW |
194 | basic_machine=i386-unknown |
195 | os=-linux | |
196 | ;; | |
378fd382 DZ |
197 | i486v32) |
198 | basic_machine=i486-unknown | |
199 | os=-sysv32 | |
200 | ;; | |
201 | i486-sco* | i486sco | sco) | |
202 | basic_machine=i486-unknown | |
203 | os=-sco3.2v2 | |
204 | ;; | |
205 | i486-isc* | isc) | |
206 | basic_machine=i486-unknown | |
207 | os=-isc | |
208 | ;; | |
27a2a371 JW |
209 | i386sol2) # CYGNUS LOCAL |
210 | basic_machine=i386-unknown | |
211 | os=-solaris2 | |
212 | ;; | |
213 | i486sol2) # CYGNUS LOCAL | |
214 | basic_machine=i486-unknown | |
215 | os=-solaris2 | |
216 | ;; | |
a2ee3e6d JW |
217 | i386v4*) |
218 | basic_machine=i386-unknown | |
219 | os=-sysv4 | |
220 | ;; | |
fb90daeb ME |
221 | i486v4*) |
222 | basic_machine=i486-unknown | |
223 | os=-sysv4 | |
224 | ;; | |
a2ee3e6d JW |
225 | i386v) |
226 | basic_machine=i386-unknown | |
227 | os=-sysv | |
228 | ;; | |
fb90daeb ME |
229 | i486v) |
230 | basic_machine=i486-unknown | |
231 | os=-sysv | |
232 | ;; | |
378fd382 | 233 | 386bsd) # CYGNUS LOCAL |
23ab00aa KR |
234 | basic_machine=i386-unknown |
235 | os=-bsd | |
236 | ;; | |
a2ee3e6d JW |
237 | spur) |
238 | basic_machine=spur-unknown | |
239 | ;; | |
378fd382 DZ |
240 | alliant | fx80) |
241 | basic_machine=fx80-alliant | |
a2ee3e6d JW |
242 | ;; |
243 | convex-c1) | |
244 | basic_machine=c1-convex | |
378fd382 | 245 | os=-bsd |
a2ee3e6d JW |
246 | ;; |
247 | convex-c2) | |
248 | basic_machine=c2-convex | |
378fd382 | 249 | os=-bsd |
a2ee3e6d JW |
250 | ;; |
251 | convex-c32) | |
252 | basic_machine=c32-convex | |
378fd382 | 253 | os=-bsd |
a2ee3e6d JW |
254 | ;; |
255 | convex-c34) | |
256 | basic_machine=c34-convex | |
378fd382 | 257 | os=-bsd |
a2ee3e6d JW |
258 | ;; |
259 | convex-c38) | |
260 | basic_machine=c38-convex | |
378fd382 | 261 | os=-bsd |
a2ee3e6d JW |
262 | ;; |
263 | m88k-omron*) | |
264 | basic_machine=m88k-omron | |
265 | ;; | |
266 | merlin) | |
267 | basic_machine=ns32k-utek | |
268 | os=-sysv | |
269 | ;; | |
270 | crds | unos) | |
271 | basic_machine=m68k-crds | |
272 | ;; | |
378fd382 DZ |
273 | elxsi) |
274 | basic_machine=elxsi-elxsi | |
275 | os=-bsd | |
276 | ;; | |
a2ee3e6d JW |
277 | encore | umax | mmax) |
278 | basic_machine=ns32k-encore | |
a2ee3e6d JW |
279 | ;; |
280 | genix) | |
281 | basic_machine=ns32k-ns | |
282 | ;; | |
378fd382 DZ |
283 | iris | iris4d | \ |
284 | iris3 | iris4) # CYGNUS LOCAL | |
68cd7865 | 285 | basic_machine=mips-sgi |
378fd382 DZ |
286 | case $os in |
287 | -irix*) | |
288 | ;; | |
289 | *) | |
290 | os=-irix4 | |
291 | ;; | |
292 | esac | |
a2ee3e6d JW |
293 | ;; |
294 | news | news700 | news800 | news900) | |
295 | basic_machine=m68k-sony | |
296 | os=-newsos | |
297 | ;; | |
298 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
378fd382 | 299 | basic_machine=m68000-att |
a2ee3e6d | 300 | ;; |
378fd382 | 301 | 3b*) |
de0f17d8 | 302 | basic_machine=we32k-att |
de0f17d8 | 303 | ;; |
a2ee3e6d JW |
304 | delta | 3300 | motorola-3300 | motorola-delta \ |
305 | | 3300-motorola | delta-motorola) | |
306 | basic_machine=m68k-motorola | |
307 | ;; | |
308 | balance) | |
309 | basic_machine=ns32k-sequent | |
310 | os=-dynix | |
311 | ;; | |
312 | pc532) | |
313 | basic_machine=ns32k-pc532 | |
314 | ;; | |
315 | symmetry) | |
316 | basic_machine=i386-sequent | |
317 | os=-dynix | |
318 | ;; | |
319 | sun2) | |
320 | basic_machine=m68000-sun | |
321 | ;; | |
322 | sun2os3) | |
323 | basic_machine=m68000-sun | |
324 | os=-sunos3 | |
325 | ;; | |
326 | sun2os4) | |
327 | basic_machine=m68000-sun | |
328 | os=-sunos4 | |
329 | ;; | |
330 | sun3os3) | |
331 | basic_machine=m68k-sun | |
332 | os=-sunos3 | |
333 | ;; | |
334 | sun3os4) | |
335 | basic_machine=m68k-sun | |
336 | os=-sunos4 | |
337 | ;; | |
338 | sun4os3) | |
339 | basic_machine=sparc-sun | |
340 | os=-sunos3 | |
341 | ;; | |
342 | sun4os4) | |
343 | basic_machine=sparc-sun | |
344 | os=-sunos4 | |
345 | ;; | |
378fd382 | 346 | sun4sol2) # CYGNUS LOCAL |
8bcd7db2 JW |
347 | basic_machine=sparc-sun |
348 | os=-solaris2 | |
349 | ;; | |
378fd382 | 350 | z8ksim) # CYGNUS LOCAL |
de0f17d8 BK |
351 | basic_machine=z8k-unknown |
352 | os=-sim | |
353 | ;; | |
a2ee3e6d JW |
354 | sun3) |
355 | basic_machine=m68k-sun | |
356 | ;; | |
357 | sun4) | |
358 | basic_machine=sparc-sun | |
359 | ;; | |
378fd382 | 360 | msdos) # CYGNUS LOCAL |
afba2b22 ILT |
361 | basic_machine=i386-unknown |
362 | os=-msdos | |
363 | ;; | |
a2ee3e6d | 364 | pbd) |
378fd382 DZ |
365 | basic_machine=sparc-tti |
366 | ;; | |
367 | pbb) | |
368 | basic_machine=m68k-tti | |
a2ee3e6d JW |
369 | ;; |
370 | sun386 | sun386i | roadrunner) | |
371 | basic_machine=i386-sun | |
372 | ;; | |
373 | ps2) | |
374 | basic_machine=i386-ibm | |
375 | ;; | |
378fd382 DZ |
376 | fx2800) |
377 | basic_machine=i860-alliant | |
378 | ;; | |
a2ee3e6d JW |
379 | next) |
380 | basic_machine=m68k-next | |
ad1f7512 | 381 | os=-bsd |
a2ee3e6d | 382 | ;; |
378fd382 DZ |
383 | amiga) |
384 | basic_machine=m68k-cbm | |
385 | ;; | |
27a2a371 JW |
386 | amigados) |
387 | basic_machine=m68k-cbm | |
388 | os=-amigados | |
389 | ;; | |
390 | amigaunix | amix) | |
391 | basic_machine=m68k-cbm | |
392 | os=-sysv4 | |
393 | ;; | |
a2ee3e6d JW |
394 | hp9k3[2-9][0-9]) |
395 | basic_machine=m68k-hp | |
396 | ;; | |
397 | hp9k31[0-9] | hp9k2[0-9][0-9]) | |
398 | basic_machine=m68000-hp | |
399 | ;; | |
8bcd7db2 JW |
400 | hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
401 | basic_machine=hppa1.1-hp | |
402 | ;; | |
403 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) | |
404 | basic_machine=hppa1.0-hp | |
a2ee3e6d JW |
405 | ;; |
406 | isi68 | isi) | |
407 | basic_machine=m68k-isi | |
408 | os=-sysv | |
409 | ;; | |
410 | apollo68) | |
411 | basic_machine=m68k-apollo | |
412 | os=-sysv | |
413 | ;; | |
378fd382 | 414 | apollo68bsd) # CYGNUS LOCAL |
68cd7865 SEF |
415 | basic_machine=m68k-apollo |
416 | os=-bsd | |
417 | ;; | |
a2ee3e6d JW |
418 | altos | altos3068) |
419 | basic_machine=m68k-altos | |
420 | ;; | |
421 | miniframe) | |
422 | basic_machine=m68000-convergent | |
423 | ;; | |
424 | tower | tower-32) | |
425 | basic_machine=m68k-ncr | |
426 | ;; | |
427 | news-3600 | risc-news) | |
428 | basic_machine=mips-sony | |
429 | os=-newsos | |
430 | ;; | |
378fd382 | 431 | st2000) # CYGNUS LOCAL |
012be2b1 | 432 | basic_machine=m68k-tandem |
68cd7865 | 433 | ;; |
378fd382 | 434 | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn) |
a2ee3e6d JW |
435 | basic_machine=mips-dec |
436 | ;; | |
437 | magnum | m3230) | |
438 | basic_machine=mips-mips | |
439 | os=-sysv | |
440 | ;; | |
441 | gmicro) | |
442 | basic_machine=tron-gmicro | |
443 | os=-sysv | |
444 | ;; | |
445 | rtpc | rtpc-*) | |
446 | basic_machine=romp-ibm | |
447 | ;; | |
448 | am29k) | |
449 | basic_machine=a29k-none | |
450 | os=-bsd | |
451 | ;; | |
452 | amdahl) | |
453 | basic_machine=580-amdahl | |
454 | os=-sysv | |
455 | ;; | |
378fd382 | 456 | stratus) # CYGNUS LOCAL |
dd16baba SEF |
457 | basic_machine=i860-stratus |
458 | os=-sysv4 | |
459 | ;; | |
a2ee3e6d JW |
460 | cray | ymp) |
461 | basic_machine=ymp-cray | |
462 | os=-unicos | |
463 | ;; | |
464 | cray2) | |
465 | basic_machine=cray2-cray | |
466 | os=-unicos | |
467 | ;; | |
468 | xmp) | |
469 | basic_machine=xmp-cray | |
470 | os=-unicos | |
471 | ;; | |
472 | delta88) | |
473 | basic_machine=m88k-motorola | |
474 | os=-m88kbcs | |
475 | ;; | |
476 | dpx2) | |
477 | basic_machine=m68k-bull | |
478 | os=-sysv | |
479 | ;; | |
480 | ebmon29k) | |
481 | basic_machine=a29k-amd | |
482 | os=-ebmon | |
483 | ;; | |
2501643a | 484 | |
378fd382 | 485 | h8300hms) # CYGNUS LOCAL |
a2ee3e6d | 486 | basic_machine=h8300-hitachi |
2501643a PB |
487 | os=-hms |
488 | ;; | |
378fd382 DZ |
489 | h8300xray) # CYGNUS LOCAL |
490 | basic_machine=h8300-hitachi | |
491 | os=-xray | |
492 | ;; | |
493 | h8300hds) | |
494 | basic_machine=h8300-hitachi | |
495 | os=-hds | |
496 | ;; | |
497 | udi29k) # CYGNUS LOCAL | |
2501643a PB |
498 | basic_machine=a29k-amd |
499 | os=-udi | |
500 | ;; | |
378fd382 | 501 | a29khif) # CYGNUS LOCAL |
2501643a PB |
502 | basic_machine=a29k-amd |
503 | os=-udi | |
504 | ;; | |
378fd382 | 505 | sa29200) # CYGNUS LOCAL |
2501643a PB |
506 | basic_machine=a29k-amd |
507 | os=-udi | |
508 | ;; | |
a2ee3e6d JW |
509 | harris) |
510 | basic_machine=m88k-harris | |
511 | os=-m88kbcs | |
512 | ;; | |
513 | hp300bsd) | |
514 | basic_machine=m68k-hp | |
515 | os=-bsd | |
516 | ;; | |
517 | hp300hpux) | |
518 | basic_machine=m68k-hp | |
519 | os=-hpux | |
520 | ;; | |
521 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
522 | basic_machine=m68000-hp | |
523 | os=-hpux | |
524 | ;; | |
525 | hp9k3[2-9][0-9]) | |
526 | basic_machine=m68k-hp | |
527 | os=-hpux | |
528 | ;; | |
529 | ncr3000) | |
afba2b22 | 530 | basic_machine=i486-ncr |
a2ee3e6d JW |
531 | os=-sysv4 |
532 | ;; | |
378fd382 | 533 | necv70) # CYGNUS LOCAL |
68cd7865 SEF |
534 | basic_machine=v70-nec |
535 | os=-sysv | |
536 | ;; | |
a2ee3e6d JW |
537 | news1000) |
538 | basic_machine=m68030-sony | |
539 | os=-newsos | |
540 | ;; | |
541 | nindy960) | |
542 | basic_machine=i960-intel | |
543 | os=-nindy | |
544 | ;; | |
545 | pn) | |
546 | basic_machine=pn-gould | |
a2ee3e6d JW |
547 | ;; |
548 | np1) | |
549 | basic_machine=np1-gould | |
a2ee3e6d JW |
550 | ;; |
551 | ultra3) | |
552 | basic_machine=a29k-nyu | |
c1e296fc | 553 | os=-sym1 |
a2ee3e6d JW |
554 | ;; |
555 | vxworks960) | |
556 | basic_machine=i960-wrs | |
557 | os=-vxworks | |
558 | ;; | |
559 | vxworks68) | |
560 | basic_machine=m68k-wrs | |
561 | os=-vxworks | |
562 | ;; | |
300f6a4f | 563 | es1800 | OSE68k | ose68k | ose | OSE) # CYGNUS LOCAL |
afba2b22 ILT |
564 | basic_machine=m68k-ericsson |
565 | os=-ose | |
566 | ;; | |
378fd382 | 567 | OSE68000 | ose68000) # CYGNUS LOCAL |
afba2b22 ILT |
568 | basic_machine=m68000-ericsson |
569 | os=-ose | |
570 | ;; | |
378fd382 | 571 | os68k) # CYGNUS LOCAL |
dd16baba SEF |
572 | basic_machine=m68k-none |
573 | os=-os68k | |
574 | ;; | |
378fd382 | 575 | sparclite) # CYGNUS LOCAL |
ad1f7512 MT |
576 | basic_machine=sparclite-fujitsu |
577 | os=-none | |
578 | ;; | |
378fd382 | 579 | sparclite-wrs) # CYGNUS LOCAL |
fb90daeb ME |
580 | basic_machine=sparclite-wrs |
581 | os=-vxworks | |
582 | ;; | |
378fd382 | 583 | sparcfrw) # CYGNUS LOCAL |
c73e3fe4 JW |
584 | basic_machine=sparcfrw-sun |
585 | os=-sunos4 | |
586 | ;; | |
378fd382 | 587 | sparcfrwcompat) # CYGNUS LOCAL |
c73e3fe4 JW |
588 | basic_machine=sparcfrwcompat-sun |
589 | os=-sunos4 | |
590 | ;; | |
378fd382 | 591 | sparclitefrw) # CYGNUS LOCAL |
c73e3fe4 JW |
592 | basic_machine=sparclitefrw-fujitsu |
593 | os=-none | |
594 | ;; | |
378fd382 | 595 | sparclitefrwcompat) # CYGNUS LOCAL |
c73e3fe4 JW |
596 | basic_machine=sparclitefrwcompat-fujitsu |
597 | os=-none | |
598 | ;; | |
378fd382 | 599 | adobe68k) # CYGNUS LOCAL |
f68be6f0 ILT |
600 | basic_machine=m68010-adobe |
601 | os=-scout | |
602 | ;; | |
ad1f7512 | 603 | |
27a2a371 JW |
604 | xps | xps100) |
605 | basic_machine=xps100-honeywell | |
606 | ;; | |
a2ee3e6d JW |
607 | none) |
608 | basic_machine=none-none | |
609 | os=-none | |
610 | ;; | |
69e87de2 | 611 | |
a2ee3e6d JW |
612 | # Here we handle the default manufacturer of certain CPU types. It is in |
613 | # some cases the only manufacturer, in others, it is the most popular. | |
614 | mips) | |
615 | basic_machine=mips-mips | |
616 | ;; | |
617 | romp) | |
618 | basic_machine=romp-ibm | |
619 | ;; | |
620 | rs6000) | |
621 | basic_machine=rs6000-ibm | |
622 | ;; | |
623 | vax) | |
624 | basic_machine=vax-dec | |
625 | ;; | |
378fd382 DZ |
626 | we32k) |
627 | basic_machine=we32k-att | |
628 | ;; | |
27a2a371 JW |
629 | cydra) |
630 | basic_machine=cydra-cydrome | |
631 | ;; | |
632 | orion) | |
633 | basic_machine=orion-highlevel | |
634 | ;; | |
635 | orion105) | |
636 | basic_machine=clipper-highlevel | |
637 | ;; | |
a2ee3e6d JW |
638 | *) |
639 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
4f183929 | 640 | exit 1 |
a2ee3e6d | 641 | ;; |
4f183929 RP |
642 | esac |
643 | ||
378fd382 DZ |
644 | # Here we canonicalize certain aliases for manufacturers. |
645 | case $basic_machine in | |
646 | *-digital*) | |
647 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
648 | ;; | |
649 | *-commodore*) | |
650 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
651 | ;; | |
652 | *) | |
653 | ;; | |
654 | esac | |
655 | ||
a2ee3e6d | 656 | # Decode manufacturer-specific aliases for certain operating systems. |
e6602723 | 657 | |
a2ee3e6d JW |
658 | if [ "$os" ] |
659 | then | |
660 | case $os in | |
661 | # First accept the basic system types. | |
662 | # The portable systems comes first. | |
663 | # Each alternative must end in a *, to match a version number. | |
378fd382 | 664 | -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
a2ee3e6d | 665 | | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos* | -hpux* \ |
378fd382 DZ |
666 | | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
667 | | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ | |
668 | | -nindy* | -vxworks* | -ebmon* | -hds* | -m88kbcs* \ | |
27a2a371 JW |
669 | | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* \ |
670 | | -go32 | -sim | -es1800* | -udi | -hms* | -xray \ | |
ba7f177a PB |
671 | | -os68k* | -none* | -v88r* | -aout | -coff | -elf | -bosx* \ |
672 | | -abug | -ecoff) | |
673 | # The last three lines above are CYGNUS LOCAL | |
2501643a | 674 | ;; |
25fa8f53 | 675 | # start-sanitize-v9 |
ba7f177a | 676 | -v7 | -v9 | -v9p64 | -hal32 | -hal64) ;; # CYGNUS LOCAL |
25fa8f53 RP |
677 | # end-sanitize-v9 |
678 | ||
a2ee3e6d | 679 | -osfrose*) |
378fd382 | 680 | os=-osfrose |
a2ee3e6d JW |
681 | ;; |
682 | -osf*) | |
378fd382 DZ |
683 | os=-osf |
684 | ;; | |
685 | -utek*) | |
a2ee3e6d JW |
686 | os=-bsd |
687 | ;; | |
688 | -dynix*) | |
689 | os=-bsd | |
690 | ;; | |
378fd382 DZ |
691 | -acis*) |
692 | os=-aos | |
a2ee3e6d | 693 | ;; |
378fd382 | 694 | -386bsd) # CYGNUS LOCAL |
23ab00aa KR |
695 | os=-bsd |
696 | ;; | |
68cd7865 | 697 | -ctix* | -uts*) |
a2ee3e6d JW |
698 | os=-sysv |
699 | ;; | |
378fd382 DZ |
700 | -triton*) |
701 | os=-sysv3 | |
702 | ;; | |
703 | -oss*) | |
704 | os=-sysv3 | |
705 | ;; | |
c1e296fc SG |
706 | -svr4) |
707 | os=-sysv4 | |
708 | ;; | |
709 | -svr3) | |
710 | os=-sysv3 | |
711 | ;; | |
378fd382 | 712 | -ose*) # CYGNUS LOCAL |
afba2b22 ILT |
713 | os=-ose |
714 | ;; | |
378fd382 | 715 | -es1800*) # CYGNUS LOCAL |
afba2b22 ILT |
716 | os=-ose |
717 | ;; | |
27a2a371 JW |
718 | -xenix) |
719 | os=-xenix | |
720 | ;; | |
378fd382 DZ |
721 | -none) |
722 | ;; | |
a2ee3e6d JW |
723 | *) |
724 | # Get rid of the `-' at the beginning of $os. | |
725 | os=`echo $1 | sed 's/[^-]*-//'` | |
726 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
727 | exit 1 | |
728 | ;; | |
69e87de2 | 729 | esac |
a2ee3e6d | 730 | else |
69e87de2 | 731 | |
a2ee3e6d JW |
732 | # Here we handle the default operating systems that come with various machines. |
733 | # The value should be what the vendor currently ships out the door with their | |
734 | # machine or put another way, the most popular os provided with the machine. | |
27a2a371 JW |
735 | |
736 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | |
737 | # "-sun"), then you have to tell the case statement up towards the top | |
738 | # that MANUFACTURER isn't an operating system. Otherwise, code above | |
739 | # will signal an error saying that MANUFACTURER isn't an operating | |
740 | # system, and we'll never get to this point. | |
741 | ||
a2ee3e6d JW |
742 | case $basic_machine in |
743 | *-dec | vax-*) | |
378fd382 | 744 | os=-ultrix4.2 |
a2ee3e6d JW |
745 | ;; |
746 | i386-sun) | |
378fd382 | 747 | os=-sunos4.0.2 |
a2ee3e6d JW |
748 | ;; |
749 | m68000-sun) | |
750 | os=-sunos3 | |
751 | # This also exists in the configure program, but was not the | |
752 | # default. | |
753 | # os=-sunos4 | |
754 | ;; | |
378fd382 DZ |
755 | *-tti) # must be before sparc entry or we get the wrong os. |
756 | os=-sysv3 | |
a2ee3e6d | 757 | ;; |
378fd382 DZ |
758 | sparc-* | *-sun) |
759 | os=-sunos4.1.1 | |
a2ee3e6d JW |
760 | ;; |
761 | *-ibm) | |
762 | os=-aix | |
763 | ;; | |
764 | *-hp) | |
765 | os=-hpux | |
766 | ;; | |
27a2a371 | 767 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
a2ee3e6d JW |
768 | os=-sysv |
769 | ;; | |
378fd382 DZ |
770 | *-cbm) |
771 | os=-amigados | |
772 | ;; | |
a2ee3e6d JW |
773 | *-dg) |
774 | os=-dgux | |
775 | ;; | |
378fd382 DZ |
776 | *-dolphin) |
777 | os=-sysv3 | |
778 | ;; | |
a2ee3e6d JW |
779 | m88k-omron*) |
780 | os=-luna | |
781 | ;; | |
a70c9959 KR |
782 | *-sequent) |
783 | os=-bsd | |
784 | ;; | |
a2ee3e6d JW |
785 | *-crds) |
786 | os=-unos | |
787 | ;; | |
788 | *-ns) | |
789 | os=-genix | |
790 | ;; | |
378fd382 DZ |
791 | i[34]86-*) |
792 | os=-sco3.2v2 | |
a2ee3e6d | 793 | ;; |
27a2a371 JW |
794 | *-gould) |
795 | os=-sysv | |
796 | ;; | |
797 | *-highlevel) | |
798 | os=-bsd | |
799 | ;; | |
800 | *-encore) | |
801 | os=-bsd | |
802 | ;; | |
803 | *-sgi) | |
804 | os=-irix | |
805 | ;; | |
806 | *-masscomp) | |
807 | os=-rtu | |
808 | ;; | |
a2ee3e6d JW |
809 | *) |
810 | os=-none | |
811 | ;; | |
69e87de2 | 812 | esac |
a2ee3e6d | 813 | fi |
69e87de2 | 814 | |
a2ee3e6d JW |
815 | # Here we handle the case where we know the os, and the CPU type, but not the |
816 | # manufacturer. We pick the logical manufacturer. | |
817 | vendor=unknown | |
818 | case $basic_machine in | |
819 | *-unknown) | |
820 | case $os in | |
821 | -sunos*) | |
822 | vendor=sun | |
823 | ;; | |
ba7f177a PB |
824 | -bosx*) |
825 | vendor=bull | |
826 | ;; | |
a2ee3e6d JW |
827 | -aix*) |
828 | vendor=ibm | |
829 | ;; | |
830 | -hpux*) | |
831 | vendor=hp | |
832 | ;; | |
833 | -unos*) | |
834 | vendor=crds | |
835 | ;; | |
836 | -dgux*) | |
837 | vendor=dg | |
838 | ;; | |
839 | -luna*) | |
840 | vendor=omron | |
841 | ;; | |
842 | -genix*) | |
843 | vendor=ns | |
844 | ;; | |
378fd382 | 845 | -vxworks*) # CYGNUS LOCAL |
afba2b22 ILT |
846 | vendor=wrs |
847 | ;; | |
a2ee3e6d JW |
848 | esac |
849 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
850 | ;; | |
4f183929 RP |
851 | esac |
852 | ||
a2ee3e6d | 853 | echo $basic_machine$os |