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