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