]>
Commit | Line | Data |
---|---|---|
84eba752 | 1 | #!/bin/sh |
882b3f1d | 2 | # Configuration validation subroutine script, version 1.1. |
4f7113af RS |
3 | # Copyright (C) 1991, 1992 Free Software Foundation, Inc. |
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. | |
84eba752 RS |
7 | |
8 | #This file is free software; you can redistribute it and/or modify | |
9 | #it under the terms of the GNU General Public License as published by | |
10 | #the Free Software Foundation; either version 2 of the License, or | |
11 | #(at your option) any later version. | |
12 | ||
13 | #This program is distributed in the hope that it will be useful, | |
14 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | #GNU General Public License for more details. | |
17 | ||
18 | #You should have received a copy of the GNU General Public License | |
19 | #along with this program; if not, write to the Free Software | |
20 | #Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | |
21 | ||
22 | ||
23 | # Configuration subroutine to validate and canonicalize a configuration type. | |
24 | # Supply the specified configuration type as an argument. | |
25 | # If it is invalid, we print an error message on stderr and exit with code 1. | |
26 | # Otherwise, we print the canonical config type on stdout and succeed. | |
27 | ||
28 | # This file is supposed to be the same for all GNU packages | |
29 | # and recognize all the CPU types, system types and aliases | |
30 | # that are meaningful with *any* GNU software. | |
31 | # Each package is responsible for reporting which valid configurations | |
32 | # it does not support. The user should be able to distinguish | |
33 | # a failure to support a valid configuration from a meaningless | |
34 | # configuration. | |
35 | ||
36 | # The goal of this file is to map all the various variations of a given | |
37 | # machine specification into a single specification in the form: | |
38 | # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM | |
2513f07a | 39 | # It is wrong to echo any other type of specification. |
84eba752 RS |
40 | |
41 | # First pass through any local machine types. | |
42 | case $1 in | |
43 | *local*) | |
44 | echo $1 | |
45 | exit 0 | |
46 | ;; | |
47 | *) | |
48 | ;; | |
49 | esac | |
50 | ||
51 | # Separate what the user gave into CPU-COMPANY and OS (if any). | |
52 | basic_machine=`echo $1 | sed 's/-[^-]*$//'` | |
53 | if [ $basic_machine != $1 ] | |
54 | then os=`echo $1 | sed 's/.*-/-/'` | |
55 | else os=; fi | |
56 | ||
2513f07a JB |
57 | ### Let's recognize common machines as not being operating systems so |
58 | ### that things like config.sub decstation-3100 work. We also | |
59 | ### recognize some manufacturers as not being operating systems, so we | |
60 | ### can provide default operating systems below. | |
84eba752 RS |
61 | case $os in |
62 | -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \ | |
63 | -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \ | |
64 | -unicom* | -ibm* | -next* | -hp | -isi* | -apollo | -altos* | \ | |
a2ff7f8c | 65 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | \ |
84eba752 | 66 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
2513f07a | 67 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp ) |
84eba752 RS |
68 | os= |
69 | basic_machine=$1 | |
70 | ;; | |
b222feb2 RS |
71 | -sco3.2v[4-9]*) |
72 | # Don't forget version if it is 3.2v4 or newer. | |
f45aa40e | 73 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
b222feb2 | 74 | ;; |
84eba752 | 75 | -sco*) |
67709096 | 76 | os=-sco3.2v2 |
f45aa40e | 77 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
84eba752 | 78 | ;; |
2513f07a JB |
79 | -isc) |
80 | os=-isc2.2 | |
f45aa40e | 81 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
2513f07a | 82 | ;; |
84eba752 | 83 | -isc*) |
f45aa40e | 84 | basic_machine=`echo $1 | sed -e 's/86-.*/86-unknown/'` |
84eba752 RS |
85 | ;; |
86 | esac | |
87 | ||
88 | # Decode aliases for certain CPU-COMPANY combinations. | |
89 | case $basic_machine in | |
90 | # Recognize the basic CPU types with without company name. | |
91 | # Some are omitted here because they have special meanings below. | |
1dfd223b | 92 | tahoe | i[34]86 | i860 | m68k | m68000 | m88k | ns32k | arm | pyramid \ |
9ae7be35 | 93 | | tron | a29k | 580 | i960 | h8300 | hppa1.0 | hppa1.1 \ |
2513f07a | 94 | | alpha | we32k | ns16k | clipper ) |
84eba752 RS |
95 | basic_machine=$basic_machine-unknown |
96 | ;; | |
97 | # Recognize the basic CPU types with with company name. | |
c468d2d0 | 98 | vax-* | tahoe-* | i[34]86-* | i860-* | m68k-* | m68000-* | m88k-* \ |
84eba752 RS |
99 | | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \ |
100 | | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \ | |
101 | | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \ | |
2513f07a JB |
102 | | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \ |
103 | | pn-* | np1-* | xps100-* | clipper-* | orion-* ) | |
84eba752 RS |
104 | ;; |
105 | # Recognize the various machine names and aliases which stand | |
106 | # for a CPU type and a company and sometimes even an OS. | |
107 | vaxv) | |
108 | basic_machine=vax-dec | |
109 | os=-sysv | |
110 | ;; | |
111 | vms) | |
112 | basic_machine=vax-dec | |
113 | os=-vms | |
114 | ;; | |
f45aa40e RS |
115 | # I'm not sure what "Sysv32" means. Should this be sysv3.2? |
116 | i[34]86v32) | |
117 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | |
84eba752 RS |
118 | os=-sysv32 |
119 | ;; | |
f45aa40e RS |
120 | i[34]86v4*) |
121 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | |
c468d2d0 RS |
122 | os=-sysv4 |
123 | ;; | |
f45aa40e RS |
124 | i[34]86v) |
125 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | |
d8ab444e RS |
126 | os=-sysv |
127 | ;; | |
d6839827 JW |
128 | i[34]86sol2) |
129 | basic_machine=`echo $1 | sed -e 's/86.*/86-unknown/'` | |
130 | os=-solaris2 | |
131 | ;; | |
84eba752 RS |
132 | spur) |
133 | basic_machine=spur-unknown | |
134 | ;; | |
135 | alliant | fx80) | |
136 | basic_machine=fx80-alliant | |
137 | ;; | |
138 | convex-c1) | |
139 | basic_machine=c1-convex | |
140 | os=-bsd | |
141 | ;; | |
142 | convex-c2) | |
143 | basic_machine=c2-convex | |
144 | os=-bsd | |
145 | ;; | |
146 | convex-c32) | |
147 | basic_machine=c32-convex | |
148 | os=-bsd | |
149 | ;; | |
150 | convex-c34) | |
151 | basic_machine=c34-convex | |
152 | os=-bsd | |
153 | ;; | |
154 | convex-c38) | |
155 | basic_machine=c38-convex | |
156 | os=-bsd | |
157 | ;; | |
158 | m88k-omron*) | |
159 | basic_machine=m88k-omron | |
160 | ;; | |
161 | merlin) | |
162 | basic_machine=ns32k-utek | |
163 | os=-sysv | |
164 | ;; | |
165 | crds | unos) | |
166 | basic_machine=m68k-crds | |
167 | ;; | |
fa771c37 MS |
168 | elxsi) |
169 | basic_machine=elxsi-elxsi | |
170 | os=-bsd | |
171 | ;; | |
84eba752 RS |
172 | encore | umax | mmax) |
173 | basic_machine=ns32k-encore | |
84eba752 RS |
174 | ;; |
175 | genix) | |
176 | basic_machine=ns32k-ns | |
177 | ;; | |
178 | iris | iris4d) | |
179 | basic_machine=mips-sgi | |
fc769a06 RS |
180 | case $os in |
181 | -irix*) | |
182 | ;; | |
183 | *) | |
184 | os=-irix4 | |
185 | ;; | |
186 | esac | |
84eba752 RS |
187 | ;; |
188 | news | news700 | news800 | news900) | |
189 | basic_machine=m68k-sony | |
190 | os=-newsos | |
191 | ;; | |
192 | 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) | |
193 | basic_machine=m68000-att | |
194 | ;; | |
7c6d68c8 | 195 | 3b*) |
3d3ac9d0 | 196 | basic_machine=we32k-att |
7c6d68c8 | 197 | ;; |
84eba752 RS |
198 | delta | 3300 | motorola-3300 | motorola-delta \ |
199 | | 3300-motorola | delta-motorola) | |
200 | basic_machine=m68k-motorola | |
201 | ;; | |
202 | balance) | |
203 | basic_machine=ns32k-sequent | |
204 | os=-dynix | |
205 | ;; | |
206 | pc532) | |
207 | basic_machine=ns32k-pc532 | |
208 | ;; | |
209 | symmetry) | |
210 | basic_machine=i386-sequent | |
211 | os=-dynix | |
212 | ;; | |
213 | sun2) | |
214 | basic_machine=m68000-sun | |
215 | ;; | |
216 | sun2os3) | |
217 | basic_machine=m68000-sun | |
218 | os=-sunos3 | |
219 | ;; | |
220 | sun2os4) | |
221 | basic_machine=m68000-sun | |
222 | os=-sunos4 | |
223 | ;; | |
224 | sun3os3) | |
225 | basic_machine=m68k-sun | |
226 | os=-sunos3 | |
227 | ;; | |
228 | sun3os4) | |
229 | basic_machine=m68k-sun | |
230 | os=-sunos4 | |
231 | ;; | |
232 | sun4os3) | |
233 | basic_machine=sparc-sun | |
234 | os=-sunos3 | |
235 | ;; | |
236 | sun4os4) | |
237 | basic_machine=sparc-sun | |
238 | os=-sunos4 | |
239 | ;; | |
240 | sun3) | |
241 | basic_machine=m68k-sun | |
242 | ;; | |
243 | sun4) | |
244 | basic_machine=sparc-sun | |
245 | ;; | |
246 | pbd) | |
247 | basic_machine=sparc-tti | |
248 | ;; | |
249 | pbb) | |
250 | basic_machine=m68k-tti | |
251 | ;; | |
252 | sun386 | sun386i | roadrunner) | |
253 | basic_machine=i386-sun | |
254 | ;; | |
255 | ps2) | |
256 | basic_machine=i386-ibm | |
257 | ;; | |
3d3ac9d0 RS |
258 | fx2800) |
259 | basic_machine=i860-alliant | |
260 | ;; | |
84eba752 RS |
261 | next) |
262 | basic_machine=m68k-next | |
4be1e768 | 263 | os=-bsd |
84eba752 RS |
264 | ;; |
265 | amiga) | |
266 | basic_machine=m68k-cbm | |
267 | ;; | |
2513f07a JB |
268 | amigados) |
269 | basic_machine=m68k-cbm | |
270 | os=-amigados | |
271 | ;; | |
272 | amigaunix | amix) | |
273 | basic_machine=m68k-cbm | |
274 | os=-sysv4 | |
275 | ;; | |
84eba752 RS |
276 | hp9k3[2-9][0-9]) |
277 | basic_machine=m68k-hp | |
278 | ;; | |
279 | hp9k31[0-9] | hp9k2[0-9][0-9]) | |
280 | basic_machine=m68000-hp | |
281 | ;; | |
91be9fb2 TG |
282 | hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7) |
283 | basic_machine=hppa1.1-hp | |
84eba752 | 284 | ;; |
91be9fb2 TG |
285 | hp9k8[0-9][0-9] | hp8[0-9][0-9]) |
286 | basic_machine=hppa1.0-hp | |
c468d2d0 | 287 | ;; |
84eba752 RS |
288 | isi68 | isi) |
289 | basic_machine=m68k-isi | |
290 | os=-sysv | |
291 | ;; | |
292 | apollo68) | |
293 | basic_machine=m68k-apollo | |
294 | os=-sysv | |
295 | ;; | |
296 | altos | altos3068) | |
297 | basic_machine=m68k-altos | |
298 | ;; | |
299 | miniframe) | |
300 | basic_machine=m68000-convergent | |
301 | ;; | |
302 | tower | tower-32) | |
303 | basic_machine=m68k-ncr | |
304 | ;; | |
305 | news-3600 | risc-news) | |
306 | basic_machine=mips-sony | |
307 | os=-newsos | |
308 | ;; | |
3d3ac9d0 | 309 | decstation | decstation-3100 | pmax | pmin | dec3100 | decstatn) |
84eba752 RS |
310 | basic_machine=mips-dec |
311 | ;; | |
312 | magnum | m3230) | |
313 | basic_machine=mips-mips | |
314 | os=-sysv | |
315 | ;; | |
316 | gmicro) | |
317 | basic_machine=tron-gmicro | |
318 | os=-sysv | |
319 | ;; | |
320 | rtpc | rtpc-*) | |
321 | basic_machine=romp-ibm | |
322 | ;; | |
323 | am29k) | |
324 | basic_machine=a29k-none | |
325 | os=-bsd | |
326 | ;; | |
327 | amdahl) | |
328 | basic_machine=580-amdahl | |
329 | os=-sysv | |
330 | ;; | |
84eba752 RS |
331 | cray | ymp) |
332 | basic_machine=ymp-cray | |
333 | os=-unicos | |
334 | ;; | |
335 | cray2) | |
336 | basic_machine=cray2-cray | |
337 | os=-unicos | |
338 | ;; | |
339 | xmp) | |
340 | basic_machine=xmp-cray | |
341 | os=-unicos | |
342 | ;; | |
343 | delta88) | |
344 | basic_machine=m88k-motorola | |
63a05e28 | 345 | os=-sysv3 |
84eba752 RS |
346 | ;; |
347 | dpx2) | |
348 | basic_machine=m68k-bull | |
349 | os=-sysv | |
350 | ;; | |
351 | ebmon29k) | |
352 | basic_machine=a29k-amd | |
353 | os=-ebmon | |
354 | ;; | |
355 | h8300hds) | |
356 | basic_machine=h8300-hitachi | |
357 | os=-hds | |
358 | ;; | |
359 | harris) | |
360 | basic_machine=m88k-harris | |
63a05e28 | 361 | os=-sysv3 |
84eba752 RS |
362 | ;; |
363 | hp300bsd) | |
364 | basic_machine=m68k-hp | |
365 | os=-bsd | |
366 | ;; | |
367 | hp300hpux) | |
368 | basic_machine=m68k-hp | |
369 | os=-hpux | |
370 | ;; | |
371 | hp9k2[0-9][0-9] | hp9k31[0-9]) | |
372 | basic_machine=m68000-hp | |
373 | os=-hpux | |
374 | ;; | |
375 | hp9k3[2-9][0-9]) | |
376 | basic_machine=m68k-hp | |
377 | os=-hpux | |
378 | ;; | |
379 | ncr3000) | |
c468d2d0 | 380 | basic_machine=i486-ncr |
84eba752 RS |
381 | os=-sysv4 |
382 | ;; | |
383 | news1000) | |
384 | basic_machine=m68030-sony | |
385 | os=-newsos | |
386 | ;; | |
387 | nindy960) | |
388 | basic_machine=i960-intel | |
389 | os=-nindy | |
390 | ;; | |
391 | pn) | |
392 | basic_machine=pn-gould | |
84eba752 RS |
393 | ;; |
394 | np1) | |
395 | basic_machine=np1-gould | |
84eba752 RS |
396 | ;; |
397 | ultra3) | |
398 | basic_machine=a29k-nyu | |
399 | os=-sym1 | |
400 | ;; | |
401 | vxworks960) | |
402 | basic_machine=i960-wrs | |
403 | os=-vxworks | |
404 | ;; | |
405 | vxworks68) | |
406 | basic_machine=m68k-wrs | |
407 | os=-vxworks | |
408 | ;; | |
2513f07a JB |
409 | xps | xps100) |
410 | basic_machine=xps100-honeywell | |
411 | ;; | |
84eba752 RS |
412 | none) |
413 | basic_machine=none-none | |
414 | os=-none | |
415 | ;; | |
416 | ||
417 | # Here we handle the default manufacturer of certain CPU types. It is in | |
418 | # some cases the only manufacturer, in others, it is the most popular. | |
419 | mips) | |
420 | basic_machine=mips-mips | |
421 | ;; | |
422 | romp) | |
423 | basic_machine=romp-ibm | |
424 | ;; | |
425 | rs6000) | |
426 | basic_machine=rs6000-ibm | |
427 | ;; | |
428 | vax) | |
429 | basic_machine=vax-dec | |
430 | ;; | |
3d3ac9d0 RS |
431 | we32k) |
432 | basic_machine=we32k-att | |
433 | ;; | |
84eba752 RS |
434 | sparc) |
435 | basic_machine=sparc-sun | |
436 | ;; | |
2513f07a JB |
437 | cydra) |
438 | basic_machine=cydra-cydrome | |
439 | ;; | |
440 | orion) | |
441 | basic_machine=orion-highlevel | |
442 | ;; | |
443 | orion105) | |
444 | basic_machine=clipper-highlevel | |
445 | ;; | |
84eba752 RS |
446 | *) |
447 | echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2 | |
448 | exit 1 | |
449 | ;; | |
450 | esac | |
451 | ||
452 | # Here we canonicalize certain aliases for manufacturers. | |
453 | case $basic_machine in | |
454 | *-digital*) | |
455 | basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'` | |
456 | ;; | |
457 | *-commodore*) | |
458 | basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'` | |
459 | ;; | |
460 | *) | |
461 | ;; | |
462 | esac | |
463 | ||
464 | # Decode manufacturer-specific aliases for certain operating systems. | |
465 | ||
466 | if [ "$os" ] | |
467 | then | |
468 | case $os in | |
0bb5b6bc RS |
469 | # -solaris* is a basic system type, with this one exception. |
470 | -solaris1 | -solaris1.*) | |
471 | os=`echo $os | sed -e 's|solaris1|sunos4|'` | |
472 | ;; | |
84eba752 RS |
473 | # First accept the basic system types. |
474 | # The portable systems comes first. | |
475 | # Each alternative must end in a *, to match a version number. | |
476 | -bsd* | -sysv* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ | |
0bb5b6bc RS |
477 | | -vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]* | -hpux* \ |
478 | | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ | |
91be9fb2 | 479 | | -amigados* | -msdos* | -newsos* | -unicos* | -aos* \ |
63a05e28 | 480 | | -nindy* | -vxworks* | -ebmon* | -hds* \ |
2513f07a | 481 | | -riscos* | -linux* | -uniplus* | -iris* | -rtu* | -xenix* ) |
84eba752 | 482 | ;; |
0bb5b6bc RS |
483 | -sunos5*) |
484 | os=`echo $os | sed -e 's|sunos5|solaris2|'` | |
485 | ;; | |
486 | -sunos6*) | |
487 | os=`echo $os | sed -e 's|sunos6|solaris3|'` | |
488 | ;; | |
84eba752 | 489 | -osfrose*) |
a2ff7f8c | 490 | os=-osfrose |
84eba752 RS |
491 | ;; |
492 | -osf*) | |
a2ff7f8c | 493 | os=-osf |
84eba752 | 494 | ;; |
3fa9d981 CH |
495 | -utek*) |
496 | os=-bsd | |
497 | ;; | |
84eba752 RS |
498 | -dynix*) |
499 | os=-bsd | |
500 | ;; | |
501 | -acis*) | |
502 | os=-aos | |
503 | ;; | |
504 | -ctix* | -uts*) | |
505 | os=-sysv | |
506 | ;; | |
507 | -triton*) | |
508 | os=-sysv3 | |
509 | ;; | |
510 | -oss*) | |
511 | os=-sysv3 | |
512 | ;; | |
513 | -svr4) | |
514 | os=-sysv4 | |
515 | ;; | |
516 | -svr3) | |
517 | os=-sysv3 | |
518 | ;; | |
566a1312 JB |
519 | -xenix) |
520 | os=-xenix | |
521 | ;; | |
4f7113af RS |
522 | -none) |
523 | ;; | |
84eba752 RS |
524 | *) |
525 | # Get rid of the `-' at the beginning of $os. | |
526 | os=`echo $1 | sed 's/[^-]*-//'` | |
527 | echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2 | |
528 | exit 1 | |
529 | ;; | |
530 | esac | |
531 | else | |
532 | ||
533 | # Here we handle the default operating systems that come with various machines. | |
534 | # The value should be what the vendor currently ships out the door with their | |
535 | # machine or put another way, the most popular os provided with the machine. | |
2513f07a JB |
536 | |
537 | # Note that if you're going to try to match "-MANUFACTURER" here (say, | |
538 | # "-sun"), then you have to tell the case statement up towards the top | |
539 | # that MANUFACTURER isn't an operating system. Otherwise, code above | |
540 | # will signal an error saying that MANUFACTURER isn't an operating | |
541 | # system, and we'll never get to this point. | |
542 | ||
84eba752 RS |
543 | case $basic_machine in |
544 | *-dec | vax-*) | |
2e24869e | 545 | os=-ultrix4.2 |
84eba752 RS |
546 | ;; |
547 | i386-sun) | |
2e24869e | 548 | os=-sunos4.0.2 |
84eba752 RS |
549 | ;; |
550 | m68000-sun) | |
551 | os=-sunos3 | |
552 | # This also exists in the configure program, but was not the | |
553 | # default. | |
554 | # os=-sunos4 | |
555 | ;; | |
556 | *-tti) # must be before sparc entry or we get the wrong os. | |
557 | os=-sysv3 | |
558 | ;; | |
559 | sparc-* | *-sun) | |
2e24869e | 560 | os=-sunos4.1.1 |
84eba752 RS |
561 | ;; |
562 | *-ibm) | |
563 | os=-aix | |
564 | ;; | |
565 | *-hp) | |
566 | os=-hpux | |
567 | ;; | |
2513f07a | 568 | i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent) |
84eba752 RS |
569 | os=-sysv |
570 | ;; | |
571 | *-cbm) | |
572 | os=-amigados | |
573 | ;; | |
574 | *-dg) | |
575 | os=-dgux | |
576 | ;; | |
577 | *-dolphin) | |
578 | os=-sysv3 | |
579 | ;; | |
580 | m88k-omron*) | |
581 | os=-luna | |
582 | ;; | |
0129f367 RS |
583 | *-sequent) |
584 | os=-bsd | |
585 | ;; | |
84eba752 RS |
586 | *-crds) |
587 | os=-unos | |
588 | ;; | |
589 | *-ns) | |
590 | os=-genix | |
591 | ;; | |
d8ab444e | 592 | i[34]86-*) |
67709096 | 593 | os=-sco3.2v2 |
84eba752 | 594 | ;; |
2513f07a JB |
595 | *-gould) |
596 | os=-sysv | |
597 | ;; | |
598 | *-highlevel) | |
599 | os=-bsd | |
600 | ;; | |
601 | *-encore) | |
602 | os=-bsd | |
603 | ;; | |
604 | *-sgi) | |
605 | os=-irix | |
606 | ;; | |
607 | *-masscomp) | |
608 | os=-rtu | |
609 | ;; | |
84eba752 RS |
610 | *) |
611 | os=-none | |
612 | ;; | |
613 | esac | |
614 | fi | |
615 | ||
616 | # Here we handle the case where we know the os, and the CPU type, but not the | |
617 | # manufacturer. We pick the logical manufacturer. | |
618 | vendor=unknown | |
619 | case $basic_machine in | |
620 | *-unknown) | |
621 | case $os in | |
622 | -sunos*) | |
623 | vendor=sun | |
624 | ;; | |
625 | -aix*) | |
626 | vendor=ibm | |
627 | ;; | |
628 | -hpux*) | |
629 | vendor=hp | |
630 | ;; | |
631 | -unos*) | |
632 | vendor=crds | |
633 | ;; | |
634 | -dgux*) | |
635 | vendor=dg | |
636 | ;; | |
637 | -luna*) | |
638 | vendor=omron | |
639 | ;; | |
640 | -genix*) | |
641 | vendor=ns | |
642 | ;; | |
643 | esac | |
644 | basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"` | |
645 | ;; | |
646 | esac | |
647 | ||
648 | echo $basic_machine$os |