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