source: trunk/src/gmake/config/config.sub@ 503

Last change on this file since 503 was 503, checked in by bird, 19 years ago

Untested merge with GNU Make v3.81 (vendor/gnumake/2005-05-16 -> vendor/gnumake/current).

  • Property svn:eol-style set to native
File size: 31.5 KB
Line 
1
2timestamp='2006-03-07'
3
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.
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., 51 Franklin Street - Fifth Floor, Boston, MA
21# 02110-1301, USA.
22#
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.
27
28
29# Please send patches to <config-patches@gnu.org>. Submit a context
30# diff and a properly formatted ChangeLog entry.
31#
32# Configuration subroutine to validate and canonicalize a configuration type.
33# Supply the specified configuration type as an argument.
34# If it is invalid, we print an error message on stderr and exit with code 1.
35# Otherwise, we print the canonical config type on stdout and succeed.
36
37# This file is supposed to be the same for all GNU packages
38# and recognize all the CPU types, system types and aliases
39# that are meaningful with *any* GNU software.
40# Each package is responsible for reporting which valid configurations
41# it does not support. The user should be able to distinguish
42# a failure to support a valid configuration from a meaningless
43# configuration.
44
45# The goal of this file is to map all the various variations of a given
46# machine specification into a single specification in the form:
47# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
48# or in some cases, the newer four-part form:
49# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
50# It is wrong to echo any other type of specification.
51
52me=`echo "$0" | sed -e 's,.*/,,'`
53
54usage="\
55Usage: $0 [OPTION] CPU-MFR-OPSYS
56 $0 [OPTION] ALIAS
57
58Canonicalize a configuration name.
59
60Operation modes:
61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit
64
65Report bugs and patches to <config-patches@gnu.org>."
66
67version="\
68GNU config.sub ($timestamp)
69
70Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
71Free Software Foundation, Inc.
72
73This is free software; see the source for copying conditions. There is NO
74warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
75
76help="
77Try \`$me --help' for more information."
78
79# Parse command line
80while test $# -gt 0 ; do
81 case $1 in
82 --time-stamp | --time* | -t )
83 echo "$timestamp" ; exit ;;
84 --version | -v )
85 echo "$version" ; exit ;;
86 --help | --h* | -h )
87 echo "$usage"; exit ;;
88 -- ) # Stop option processing
89 shift; break ;;
90 - ) # Use stdin as input.
91 break ;;
92 -* )
93 echo "$me: invalid option $1$help"
94 exit 1 ;;
95
96 *local*)
97 # First pass through any local machine types.
98 echo $1
99 exit ;;
100
101 * )
102 break ;;
103 esac
104done
105
106case $# in
107 0) echo "$me: missing argument$help" >&2
108 exit 1;;
109 1) ;;
110 *) echo "$me: too many arguments$help" >&2
111 exit 1;;
112esac
113
114# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
115# Here we must recognize all the valid KERNEL-OS combinations.
116maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
117case $maybe_os in
118 nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
119 uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
120 storm-chaos* | os2-emx* | rtmk-nova*)
121 os=-$maybe_os
122 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
123 ;;
124 *)
125 basic_machine=`echo $1 | sed 's/-[^-]*$//'`
126 if [ $basic_machine != $1 ]
127 then os=`echo $1 | sed 's/.*-/-/'`
128 else os=; fi
129 ;;
130esac
131
132### Let's recognize common machines as not being operating systems so
133### that things like config.sub decstation-3100 work. We also
134### recognize some manufacturers as not being operating systems, so we
135### can provide default operating systems below.
136case $os in
137 -sun*os*)
138 # Prevent following clause from handling this invalid input.
139 ;;
140 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
141 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
142 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
143 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
144 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
145 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
146 -apple | -axis | -knuth | -cray)
147 os=
148 basic_machine=$1
149 ;;
150 -sim | -cisco | -oki | -wec | -winbond)
151 os=
152 basic_machine=$1
153 ;;
154 -scout)
155 ;;
156 -wrs)
157 os=-vxworks
158 basic_machine=$1
159 ;;
160 -chorusos*)
161 os=-chorusos
162 basic_machine=$1
163 ;;
164 -chorusrdb)
165 os=-chorusrdb
166 basic_machine=$1
167 ;;
168 -hiux*)
169 os=-hiuxwe2
170 ;;
171 -sco6)
172 os=-sco5v6
173 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
174 ;;
175 -sco5)
176 os=-sco3.2v5
177 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
178 ;;
179 -sco4)
180 os=-sco3.2v4
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
182 ;;
183 -sco3.2.[4-9]*)
184 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
185 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
186 ;;
187 -sco3.2v[4-9]*)
188 # Don't forget version if it is 3.2v4 or newer.
189 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
190 ;;
191 -sco5v6*)
192 # Don't forget version if it is 3.2v4 or newer.
193 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
194 ;;
195 -sco*)
196 os=-sco3.2v2
197 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
198 ;;
199 -udk*)
200 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
201 ;;
202 -isc)
203 os=-isc2.2
204 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
205 ;;
206 -clix*)
207 basic_machine=clipper-intergraph
208 ;;
209 -isc*)
210 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
211 ;;
212 -lynx*)
213 os=-lynxos
214 ;;
215 -ptx*)
216 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
217 ;;
218 -windowsnt*)
219 os=`echo $os | sed -e 's/windowsnt/winnt/'`
220 ;;
221 -psos*)
222 os=-psos
223 ;;
224 -mint | -mint[0-9]*)
225 basic_machine=m68k-atari
226 os=-mint
227 ;;
228esac
229
230# Decode aliases for certain CPU-COMPANY combinations.
231case $basic_machine in
232 # Recognize the basic CPU types without company name.
233 # Some are omitted here because they have special meanings below.
234 1750a | 580 \
235 | a29k \
236 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
237 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
238 | am33_2.0 \
239 | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
240 | bfin \
241 | c4x | clipper \
242 | d10v | d30v | dlx | dsp16xx \
243 | fr30 | frv \
244 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
245 | i370 | i860 | i960 | ia64 \
246 | ip2k | iq2000 \
247 | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
248 | mips | mipsbe | mipseb | mipsel | mipsle \
249 | mips16 \
250 | mips64 | mips64el \
251 | mips64vr | mips64vrel \
252 | mips64orion | mips64orionel \
253 | mips64vr4100 | mips64vr4100el \
254 | mips64vr4300 | mips64vr4300el \
255 | mips64vr5000 | mips64vr5000el \
256 | mips64vr5900 | mips64vr5900el \
257 | mipsisa32 | mipsisa32el \
258 | mipsisa32r2 | mipsisa32r2el \
259 | mipsisa64 | mipsisa64el \
260 | mipsisa64r2 | mipsisa64r2el \
261 | mipsisa64sb1 | mipsisa64sb1el \
262 | mipsisa64sr71k | mipsisa64sr71kel \
263 | mipstx39 | mipstx39el \
264 | mn10200 | mn10300 \
265 | mt \
266 | msp430 \
267 | nios | nios2 \
268 | ns16k | ns32k \
269 | or32 \
270 | pdp10 | pdp11 | pj | pjl \
271 | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
272 | pyramid \
273 | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
274 | sh64 | sh64le \
275 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
276 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
277 | strongarm \
278 | tahoe | thumb | tic4x | tic80 | tron \
279 | v850 | v850e \
280 | we32k \
281 | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
282 | z8k)
283 basic_machine=$basic_machine-unknown
284 ;;
285 m32c)
286 basic_machine=$basic_machine-unknown
287 ;;
288 m6811 | m68hc11 | m6812 | m68hc12)
289 # Motorola 68HC11/12.
290 basic_machine=$basic_machine-unknown
291 os=-none
292 ;;
293 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
294 ;;
295 ms1)
296 basic_machine=mt-unknown
297 ;;
298
299 # We use `pc' rather than `unknown'
300 # because (1) that's what they normally are, and
301 # (2) the word "unknown" tends to confuse beginning users.
302 i*86 | x86_64)
303 basic_machine=$basic_machine-pc
304 ;;
305 # Object if more than one company name word.
306 *-*-*)
307 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
308 exit 1
309 ;;
310 # Recognize the basic CPU types with company name.
311 580-* \
312 | a29k-* \
313 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
314 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
315 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
316 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
317 | avr-* \
318 | bfin-* | bs2000-* \
319 | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
320 | clipper-* | craynv-* | cydra-* \
321 | d10v-* | d30v-* | dlx-* \
322 | elxsi-* \
323 | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
324 | h8300-* | h8500-* \
325 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
326 | i*86-* | i860-* | i960-* | ia64-* \
327 | ip2k-* | iq2000-* \
328 | m32r-* | m32rle-* \
329 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
330 | m88110-* | m88k-* | maxq-* | mcore-* \
331 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
332 | mips16-* \
333 | mips64-* | mips64el-* \
334 | mips64vr-* | mips64vrel-* \
335 | mips64orion-* | mips64orionel-* \
336 | mips64vr4100-* | mips64vr4100el-* \
337 | mips64vr4300-* | mips64vr4300el-* \
338 | mips64vr5000-* | mips64vr5000el-* \
339 | mips64vr5900-* | mips64vr5900el-* \
340 | mipsisa32-* | mipsisa32el-* \
341 | mipsisa32r2-* | mipsisa32r2el-* \
342 | mipsisa64-* | mipsisa64el-* \
343 | mipsisa64r2-* | mipsisa64r2el-* \
344 | mipsisa64sb1-* | mipsisa64sb1el-* \
345 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
346 | mipstx39-* | mipstx39el-* \
347 | mmix-* \
348 | mt-* \
349 | msp430-* \
350 | nios-* | nios2-* \
351 | none-* | np1-* | ns16k-* | ns32k-* \
352 | orion-* \
353 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
354 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
355 | pyramid-* \
356 | romp-* | rs6000-* \
357 | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
358 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
359 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
360 | sparclite-* \
361 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
362 | tahoe-* | thumb-* \
363 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
364 | tron-* \
365 | v850-* | v850e-* | vax-* \
366 | we32k-* \
367 | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
368 | xstormy16-* | xtensa-* \
369 | ymp-* \
370 | z8k-*)
371 ;;
372 m32c-*)
373 ;;
374 # Recognize the various machine names and aliases which stand
375 # for a CPU type and a company and sometimes even an OS.
376 386bsd)
377 basic_machine=i386-unknown
378 os=-bsd
379 ;;
380 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
381 basic_machine=m68000-att
382 ;;
383 3b*)
384 basic_machine=we32k-att
385 ;;
386 a29khif)
387 basic_machine=a29k-amd
388 os=-udi
389 ;;
390 abacus)
391 basic_machine=abacus-unknown
392 ;;
393 adobe68k)
394 basic_machine=m68010-adobe
395 os=-scout
396 ;;
397 alliant | fx80)
398 basic_machine=fx80-alliant
399 ;;
400 altos | altos3068)
401 basic_machine=m68k-altos
402 ;;
403 am29k)
404 basic_machine=a29k-none
405 os=-bsd
406 ;;
407 amd64)
408 basic_machine=x86_64-pc
409 ;;
410 amd64-*)
411 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
412 ;;
413 amdahl)
414 basic_machine=580-amdahl
415 os=-sysv
416 ;;
417 amiga | amiga-*)
418 basic_machine=m68k-unknown
419 ;;
420 amigaos | amigados)
421 basic_machine=m68k-unknown
422 os=-amigaos
423 ;;
424 amigaunix | amix)
425 basic_machine=m68k-unknown
426 os=-sysv4
427 ;;
428 apollo68)
429 basic_machine=m68k-apollo
430 os=-sysv
431 ;;
432 apollo68bsd)
433 basic_machine=m68k-apollo
434 os=-bsd
435 ;;
436 aux)
437 basic_machine=m68k-apple
438 os=-aux
439 ;;
440 balance)
441 basic_machine=ns32k-sequent
442 os=-dynix
443 ;;
444 c90)
445 basic_machine=c90-cray
446 os=-unicos
447 ;;
448 convex-c1)
449 basic_machine=c1-convex
450 os=-bsd
451 ;;
452 convex-c2)
453 basic_machine=c2-convex
454 os=-bsd
455 ;;
456 convex-c32)
457 basic_machine=c32-convex
458 os=-bsd
459 ;;
460 convex-c34)
461 basic_machine=c34-convex
462 os=-bsd
463 ;;
464 convex-c38)
465 basic_machine=c38-convex
466 os=-bsd
467 ;;
468 cray | j90)
469 basic_machine=j90-cray
470 os=-unicos
471 ;;
472 craynv)
473 basic_machine=craynv-cray
474 os=-unicosmp
475 ;;
476 cr16c)
477 basic_machine=cr16c-unknown
478 os=-elf
479 ;;
480 crds | unos)
481 basic_machine=m68k-crds
482 ;;
483 crisv32 | crisv32-* | etraxfs*)
484 basic_machine=crisv32-axis
485 ;;
486 cris | cris-* | etrax*)
487 basic_machine=cris-axis
488 ;;
489 crx)
490 basic_machine=crx-unknown
491 os=-elf
492 ;;
493 da30 | da30-*)
494 basic_machine=m68k-da30
495 ;;
496 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
497 basic_machine=mips-dec
498 ;;
499 decsystem10* | dec10*)
500 basic_machine=pdp10-dec
501 os=-tops10
502 ;;
503 decsystem20* | dec20*)
504 basic_machine=pdp10-dec
505 os=-tops20
506 ;;
507 delta | 3300 | motorola-3300 | motorola-delta \
508 | 3300-motorola | delta-motorola)
509 basic_machine=m68k-motorola
510 ;;
511 delta88)
512 basic_machine=m88k-motorola
513 os=-sysv3
514 ;;
515 djgpp)
516 basic_machine=i586-pc
517 os=-msdosdjgpp
518 ;;
519 dpx20 | dpx20-*)
520 basic_machine=rs6000-bull
521 os=-bosx
522 ;;
523 dpx2* | dpx2*-bull)
524 basic_machine=m68k-bull
525 os=-sysv3
526 ;;
527 ebmon29k)
528 basic_machine=a29k-amd
529 os=-ebmon
530 ;;
531 elxsi)
532 basic_machine=elxsi-elxsi
533 os=-bsd
534 ;;
535 encore | umax | mmax)
536 basic_machine=ns32k-encore
537 ;;
538 es1800 | OSE68k | ose68k | ose | OSE)
539 basic_machine=m68k-ericsson
540 os=-ose
541 ;;
542 fx2800)
543 basic_machine=i860-alliant
544 ;;
545 genix)
546 basic_machine=ns32k-ns
547 ;;
548 gmicro)
549 basic_machine=tron-gmicro
550 os=-sysv
551 ;;
552 go32)
553 basic_machine=i386-pc
554 os=-go32
555 ;;
556 h3050r* | hiux*)
557 basic_machine=hppa1.1-hitachi
558 os=-hiuxwe2
559 ;;
560 h8300hms)
561 basic_machine=h8300-hitachi
562 os=-hms
563 ;;
564 h8300xray)
565 basic_machine=h8300-hitachi
566 os=-xray
567 ;;
568 h8500hms)
569 basic_machine=h8500-hitachi
570 os=-hms
571 ;;
572 harris)
573 basic_machine=m88k-harris
574 os=-sysv3
575 ;;
576 hp300-*)
577 basic_machine=m68k-hp
578 ;;
579 hp300bsd)
580 basic_machine=m68k-hp
581 os=-bsd
582 ;;
583 hp300hpux)
584 basic_machine=m68k-hp
585 os=-hpux
586 ;;
587 hp3k9[0-9][0-9] | hp9[0-9][0-9])
588 basic_machine=hppa1.0-hp
589 ;;
590 hp9k2[0-9][0-9] | hp9k31[0-9])
591 basic_machine=m68000-hp
592 ;;
593 hp9k3[2-9][0-9])
594 basic_machine=m68k-hp
595 ;;
596 hp9k6[0-9][0-9] | hp6[0-9][0-9])
597 basic_machine=hppa1.0-hp
598 ;;
599 hp9k7[0-79][0-9] | hp7[0-79][0-9])
600 basic_machine=hppa1.1-hp
601 ;;
602 hp9k78[0-9] | hp78[0-9])
603 # FIXME: really hppa2.0-hp
604 basic_machine=hppa1.1-hp
605 ;;
606 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
607 # FIXME: really hppa2.0-hp
608 basic_machine=hppa1.1-hp
609 ;;
610 hp9k8[0-9][13679] | hp8[0-9][13679])
611 basic_machine=hppa1.1-hp
612 ;;
613 hp9k8[0-9][0-9] | hp8[0-9][0-9])
614 basic_machine=hppa1.0-hp
615 ;;
616 hppa-next)
617 os=-nextstep3
618 ;;
619 hppaosf)
620 basic_machine=hppa1.1-hp
621 os=-osf
622 ;;
623 hppro)
624 basic_machine=hppa1.1-hp
625 os=-proelf
626 ;;
627 i370-ibm* | ibm*)
628 basic_machine=i370-ibm
629 ;;
630# I'm not sure what "Sysv32" means. Should this be sysv3.2?
631 i*86v32)
632 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
633 os=-sysv32
634 ;;
635 i*86v4*)
636 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
637 os=-sysv4
638 ;;
639 i*86v)
640 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
641 os=-sysv
642 ;;
643 i*86sol2)
644 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
645 os=-solaris2
646 ;;
647 i386mach)
648 basic_machine=i386-mach
649 os=-mach
650 ;;
651 i386-vsta | vsta)
652 basic_machine=i386-unknown
653 os=-vsta
654 ;;
655 iris | iris4d)
656 basic_machine=mips-sgi
657 case $os in
658 -irix*)
659 ;;
660 *)
661 os=-irix4
662 ;;
663 esac
664 ;;
665 isi68 | isi)
666 basic_machine=m68k-isi
667 os=-sysv
668 ;;
669 m88k-omron*)
670 basic_machine=m88k-omron
671 ;;
672 magnum | m3230)
673 basic_machine=mips-mips
674 os=-sysv
675 ;;
676 merlin)
677 basic_machine=ns32k-utek
678 os=-sysv
679 ;;
680 mingw32)
681 basic_machine=i386-pc
682 os=-mingw32
683 ;;
684 miniframe)
685 basic_machine=m68000-convergent
686 ;;
687 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
688 basic_machine=m68k-atari
689 os=-mint
690 ;;
691 mips3*-*)
692 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
693 ;;
694 mips3*)
695 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
696 ;;
697 monitor)
698 basic_machine=m68k-rom68k
699 os=-coff
700 ;;
701 morphos)
702 basic_machine=powerpc-unknown
703 os=-morphos
704 ;;
705 msdos)
706 basic_machine=i386-pc
707 os=-msdos
708 ;;
709 ms1-*)
710 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
711 ;;
712 mvs)
713 basic_machine=i370-ibm
714 os=-mvs
715 ;;
716 ncr3000)
717 basic_machine=i486-ncr
718 os=-sysv4
719 ;;
720 netbsd386)
721 basic_machine=i386-unknown
722 os=-netbsd
723 ;;
724 netwinder)
725 basic_machine=armv4l-rebel
726 os=-linux
727 ;;
728 news | news700 | news800 | news900)
729 basic_machine=m68k-sony
730 os=-newsos
731 ;;
732 news1000)
733 basic_machine=m68030-sony
734 os=-newsos
735 ;;
736 news-3600 | risc-news)
737 basic_machine=mips-sony
738 os=-newsos
739 ;;
740 necv70)
741 basic_machine=v70-nec
742 os=-sysv
743 ;;
744 next | m*-next )
745 basic_machine=m68k-next
746 case $os in
747 -nextstep* )
748 ;;
749 -ns2*)
750 os=-nextstep2
751 ;;
752 *)
753 os=-nextstep3
754 ;;
755 esac
756 ;;
757 nh3000)
758 basic_machine=m68k-harris
759 os=-cxux
760 ;;
761 nh[45]000)
762 basic_machine=m88k-harris
763 os=-cxux
764 ;;
765 nindy960)
766 basic_machine=i960-intel
767 os=-nindy
768 ;;
769 mon960)
770 basic_machine=i960-intel
771 os=-mon960
772 ;;
773 nonstopux)
774 basic_machine=mips-compaq
775 os=-nonstopux
776 ;;
777 np1)
778 basic_machine=np1-gould
779 ;;
780 nsr-tandem)
781 basic_machine=nsr-tandem
782 ;;
783 op50n-* | op60c-*)
784 basic_machine=hppa1.1-oki
785 os=-proelf
786 ;;
787 openrisc | openrisc-*)
788 basic_machine=or32-unknown
789 ;;
790 os400)
791 basic_machine=powerpc-ibm
792 os=-os400
793 ;;
794 OSE68000 | ose68000)
795 basic_machine=m68000-ericsson
796 os=-ose
797 ;;
798 os68k)
799 basic_machine=m68k-none
800 os=-os68k
801 ;;
802 pa-hitachi)
803 basic_machine=hppa1.1-hitachi
804 os=-hiuxwe2
805 ;;
806 paragon)
807 basic_machine=i860-intel
808 os=-osf
809 ;;
810 pbd)
811 basic_machine=sparc-tti
812 ;;
813 pbb)
814 basic_machine=m68k-tti
815 ;;
816 pc532 | pc532-*)
817 basic_machine=ns32k-pc532
818 ;;
819 pc98)
820 basic_machine=i386-pc
821 ;;
822 pc98-*)
823 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
824 ;;
825 pentium | p5 | k5 | k6 | nexgen | viac3)
826 basic_machine=i586-pc
827 ;;
828 pentiumpro | p6 | 6x86 | athlon | athlon_*)
829 basic_machine=i686-pc
830 ;;
831 pentiumii | pentium2 | pentiumiii | pentium3)
832 basic_machine=i686-pc
833 ;;
834 pentium4)
835 basic_machine=i786-pc
836 ;;
837 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
838 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
839 ;;
840 pentiumpro-* | p6-* | 6x86-* | athlon-*)
841 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
842 ;;
843 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
844 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
845 ;;
846 pentium4-*)
847 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
848 ;;
849 pn)
850 basic_machine=pn-gould
851 ;;
852 power) basic_machine=power-ibm
853 ;;
854 ppc) basic_machine=powerpc-unknown
855 ;;
856 ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
857 ;;
858 ppcle | powerpclittle | ppc-le | powerpc-little)
859 basic_machine=powerpcle-unknown
860 ;;
861 ppcle-* | powerpclittle-*)
862 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
863 ;;
864 ppc64) basic_machine=powerpc64-unknown
865 ;;
866 ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
867 ;;
868 ppc64le | powerpc64little | ppc64-le | powerpc64-little)
869 basic_machine=powerpc64le-unknown
870 ;;
871 ppc64le-* | powerpc64little-*)
872 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
873 ;;
874 ps2)
875 basic_machine=i386-ibm
876 ;;
877 pw32)
878 basic_machine=i586-unknown
879 os=-pw32
880 ;;
881 rdos)
882 basic_machine=i386-pc
883 os=-rdos
884 ;;
885 rom68k)
886 basic_machine=m68k-rom68k
887 os=-coff
888 ;;
889 rm[46]00)
890 basic_machine=mips-siemens
891 ;;
892 rtpc | rtpc-*)
893 basic_machine=romp-ibm
894 ;;
895 s390 | s390-*)
896 basic_machine=s390-ibm
897 ;;
898 s390x | s390x-*)
899 basic_machine=s390x-ibm
900 ;;
901 sa29200)
902 basic_machine=a29k-amd
903 os=-udi
904 ;;
905 sb1)
906 basic_machine=mipsisa64sb1-unknown
907 ;;
908 sb1el)
909 basic_machine=mipsisa64sb1el-unknown
910 ;;
911 sei)
912 basic_machine=mips-sei
913 os=-seiux
914 ;;
915 sequent)
916 basic_machine=i386-sequent
917 ;;
918 sh)
919 basic_machine=sh-hitachi
920 os=-hms
921 ;;
922 sh64)
923 basic_machine=sh64-unknown
924 ;;
925 sparclite-wrs | simso-wrs)
926 basic_machine=sparclite-wrs
927 os=-vxworks
928 ;;
929 sps7)
930 basic_machine=m68k-bull
931 os=-sysv2
932 ;;
933 spur)
934 basic_machine=spur-unknown
935 ;;
936 st2000)
937 basic_machine=m68k-tandem
938 ;;
939 stratus)
940 basic_machine=i860-stratus
941 os=-sysv4
942 ;;
943 sun2)
944 basic_machine=m68000-sun
945 ;;
946 sun2os3)
947 basic_machine=m68000-sun
948 os=-sunos3
949 ;;
950 sun2os4)
951 basic_machine=m68000-sun
952 os=-sunos4
953 ;;
954 sun3os3)
955 basic_machine=m68k-sun
956 os=-sunos3
957 ;;
958 sun3os4)
959 basic_machine=m68k-sun
960 os=-sunos4
961 ;;
962 sun4os3)
963 basic_machine=sparc-sun
964 os=-sunos3
965 ;;
966 sun4os4)
967 basic_machine=sparc-sun
968 os=-sunos4
969 ;;
970 sun4sol2)
971 basic_machine=sparc-sun
972 os=-solaris2
973 ;;
974 sun3 | sun3-*)
975 basic_machine=m68k-sun
976 ;;
977 sun4)
978 basic_machine=sparc-sun
979 ;;
980 sun386 | sun386i | roadrunner)
981 basic_machine=i386-sun
982 ;;
983 sv1)
984 basic_machine=sv1-cray
985 os=-unicos
986 ;;
987 symmetry)
988 basic_machine=i386-sequent
989 os=-dynix
990 ;;
991 t3e)
992 basic_machine=alphaev5-cray
993 os=-unicos
994 ;;
995 t90)
996 basic_machine=t90-cray
997 os=-unicos
998 ;;
999 tic54x | c54x*)
1000 basic_machine=tic54x-unknown
1001 os=-coff
1002 ;;
1003 tic55x | c55x*)
1004 basic_machine=tic55x-unknown
1005 os=-coff
1006 ;;
1007 tic6x | c6x*)
1008 basic_machine=tic6x-unknown
1009 os=-coff
1010 ;;
1011 tx39)
1012 basic_machine=mipstx39-unknown
1013 ;;
1014 tx39el)
1015 basic_machine=mipstx39el-unknown
1016 ;;
1017 toad1)
1018 basic_machine=pdp10-xkl
1019 os=-tops20
1020 ;;
1021 tower | tower-32)
1022 basic_machine=m68k-ncr
1023 ;;
1024 tpf)
1025 basic_machine=s390x-ibm
1026 os=-tpf
1027 ;;
1028 udi29k)
1029 basic_machine=a29k-amd
1030 os=-udi
1031 ;;
1032 ultra3)
1033 basic_machine=a29k-nyu
1034 os=-sym1
1035 ;;
1036 v810 | necv810)
1037 basic_machine=v810-nec
1038 os=-none
1039 ;;
1040 vaxv)
1041 basic_machine=vax-dec
1042 os=-sysv
1043 ;;
1044 vms)
1045 basic_machine=vax-dec
1046 os=-vms
1047 ;;
1048 vpp*|vx|vx-*)
1049 basic_machine=f301-fujitsu
1050 ;;
1051 vxworks960)
1052 basic_machine=i960-wrs
1053 os=-vxworks
1054 ;;
1055 vxworks68)
1056 basic_machine=m68k-wrs
1057 os=-vxworks
1058 ;;
1059 vxworks29k)
1060 basic_machine=a29k-wrs
1061 os=-vxworks
1062 ;;
1063 w65*)
1064 basic_machine=w65-wdc
1065 os=-none
1066 ;;
1067 w89k-*)
1068 basic_machine=hppa1.1-winbond
1069 os=-proelf
1070 ;;
1071 xbox)
1072 basic_machine=i686-pc
1073 os=-mingw32
1074 ;;
1075 xps | xps100)
1076 basic_machine=xps100-honeywell
1077 ;;
1078 ymp)
1079 basic_machine=ymp-cray
1080 os=-unicos
1081 ;;
1082 z8k-*-coff)
1083 basic_machine=z8k-unknown
1084 os=-sim
1085 ;;
1086 none)
1087 basic_machine=none-none
1088 os=-none
1089 ;;
1090
1091# Here we handle the default manufacturer of certain CPU types. It is in
1092# some cases the only manufacturer, in others, it is the most popular.
1093 w89k)
1094 basic_machine=hppa1.1-winbond
1095 ;;
1096 op50n)
1097 basic_machine=hppa1.1-oki
1098 ;;
1099 op60c)
1100 basic_machine=hppa1.1-oki
1101 ;;
1102 romp)
1103 basic_machine=romp-ibm
1104 ;;
1105 mmix)
1106 basic_machine=mmix-knuth
1107 ;;
1108 rs6000)
1109 basic_machine=rs6000-ibm
1110 ;;
1111 vax)
1112 basic_machine=vax-dec
1113 ;;
1114 pdp10)
1115 # there are many clones, so DEC is not a safe bet
1116 basic_machine=pdp10-unknown
1117 ;;
1118 pdp11)
1119 basic_machine=pdp11-dec
1120 ;;
1121 we32k)
1122 basic_machine=we32k-att
1123 ;;
1124 sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
1125 basic_machine=sh-unknown
1126 ;;
1127 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1128 basic_machine=sparc-sun
1129 ;;
1130 cydra)
1131 basic_machine=cydra-cydrome
1132 ;;
1133 orion)
1134 basic_machine=orion-highlevel
1135 ;;
1136 orion105)
1137 basic_machine=clipper-highlevel
1138 ;;
1139 mac | mpw | mac-mpw)
1140 basic_machine=m68k-apple
1141 ;;
1142 pmac | pmac-mpw)
1143 basic_machine=powerpc-apple
1144 ;;
1145 *-unknown)
1146 # Make sure to match an already-canonicalized machine name.
1147 ;;
1148 *)
1149 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
1150 exit 1
1151 ;;
1152esac
1153
1154# Here we canonicalize certain aliases for manufacturers.
1155case $basic_machine in
1156 *-digital*)
1157 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
1158 ;;
1159 *-commodore*)
1160 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
1161 ;;
1162 *)
1163 ;;
1164esac
1165
1166# Decode manufacturer-specific aliases for certain operating systems.
1167
1168if [ x"$os" != x"" ]
1169then
1170case $os in
1171 # First match some system type aliases
1172 # that might get confused with valid system types.
1173 # -solaris* is a basic system type, with this one exception.
1174 -solaris1 | -solaris1.*)
1175 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1176 ;;
1177 -solaris)
1178 os=-solaris2
1179 ;;
1180 -svr4*)
1181 os=-sysv4
1182 ;;
1183 -unixware*)
1184 os=-sysv4.2uw
1185 ;;
1186 -gnu/linux*)
1187 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1188 ;;
1189 # First accept the basic system types.
1190 # The portable systems comes first.
1191 # Each alternative MUST END IN A *, to match a version number.
1192 # -sysv* is not here because it comes later, after sysvr4.
1193 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1194 | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
1195 | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
1196 | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
1197 | -aos* \
1198 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1199 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1200 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
1201 | -openbsd* | -solidbsd* \
1202 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1203 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
1204 | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
1205 | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
1206 | -chorusos* | -chorusrdb* \
1207 | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
1208 | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
1209 | -uxpv* | -beos* | -mpeix* | -udk* \
1210 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
1211 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1212 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1213 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1214 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
1215 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1216 | -skyos* | -haiku* | -rdos*)
1217 # Remember, each alternative MUST END IN *, to match a version number.
1218 ;;
1219 -qnx*)
1220 case $basic_machine in
1221 x86-* | i*86-*)
1222 ;;
1223 *)
1224 os=-nto$os
1225 ;;
1226 esac
1227 ;;
1228 -nto-qnx*)
1229 ;;
1230 -nto*)
1231 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1232 ;;
1233 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
1234 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
1235 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1236 ;;
1237 -mac*)
1238 os=`echo $os | sed -e 's|mac|macos|'`
1239 ;;
1240 -linux-dietlibc)
1241 os=-linux-dietlibc
1242 ;;
1243 -linux*)
1244 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1245 ;;
1246 -sunos5*)
1247 os=`echo $os | sed -e 's|sunos5|solaris2|'`
1248 ;;
1249 -sunos6*)
1250 os=`echo $os | sed -e 's|sunos6|solaris3|'`
1251 ;;
1252 -opened*)
1253 os=-openedition
1254 ;;
1255 -os400*)
1256 os=-os400
1257 ;;
1258 -wince*)
1259 os=-wince
1260 ;;
1261 -osfrose*)
1262 os=-osfrose
1263 ;;
1264 -osf*)
1265 os=-osf
1266 ;;
1267 -utek*)
1268 os=-bsd
1269 ;;
1270 -dynix*)
1271 os=-bsd
1272 ;;
1273 -acis*)
1274 os=-aos
1275 ;;
1276 -atheos*)
1277 os=-atheos
1278 ;;
1279 -syllable*)
1280 os=-syllable
1281 ;;
1282 -386bsd)
1283 os=-bsd
1284 ;;
1285 -ctix* | -uts*)
1286 os=-sysv
1287 ;;
1288 -nova*)
1289 os=-rtmk-nova
1290 ;;
1291 -ns2 )
1292 os=-nextstep2
1293 ;;
1294 -nsk*)
1295 os=-nsk
1296 ;;
1297 # Preserve the version number of sinix5.
1298 -sinix5.*)
1299 os=`echo $os | sed -e 's|sinix|sysv|'`
1300 ;;
1301 -sinix*)
1302 os=-sysv4
1303 ;;
1304 -tpf*)
1305 os=-tpf
1306 ;;
1307 -triton*)
1308 os=-sysv3
1309 ;;
1310 -oss*)
1311 os=-sysv3
1312 ;;
1313 -svr4)
1314 os=-sysv4
1315 ;;
1316 -svr3)
1317 os=-sysv3
1318 ;;
1319 -sysvr4)
1320 os=-sysv4
1321 ;;
1322 # This must come after -sysvr4.
1323 -sysv*)
1324 ;;
1325 -ose*)
1326 os=-ose
1327 ;;
1328 -es1800*)
1329 os=-ose
1330 ;;
1331 -xenix)
1332 os=-xenix
1333 ;;
1334 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1335 os=-mint
1336 ;;
1337 -aros*)
1338 os=-aros
1339 ;;
1340 -kaos*)
1341 os=-kaos
1342 ;;
1343 -zvmoe)
1344 os=-zvmoe
1345 ;;
1346 -none)
1347 ;;
1348 *)
1349 # Get rid of the `-' at the beginning of $os.
1350 os=`echo $os | sed 's/[^-]*-//'`
1351 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
1352 exit 1
1353 ;;
1354esac
1355else
1356
1357# Here we handle the default operating systems that come with various machines.
1358# The value should be what the vendor currently ships out the door with their
1359# machine or put another way, the most popular os provided with the machine.
1360
1361# Note that if you're going to try to match "-MANUFACTURER" here (say,
1362# "-sun"), then you have to tell the case statement up towards the top
1363# that MANUFACTURER isn't an operating system. Otherwise, code above
1364# will signal an error saying that MANUFACTURER isn't an operating
1365# system, and we'll never get to this point.
1366
1367case $basic_machine in
1368 *-acorn)
1369 os=-riscix1.2
1370 ;;
1371 arm*-rebel)
1372 os=-linux
1373 ;;
1374 arm*-semi)
1375 os=-aout
1376 ;;
1377 c4x-* | tic4x-*)
1378 os=-coff
1379 ;;
1380 # This must come before the *-dec entry.
1381 pdp10-*)
1382 os=-tops20
1383 ;;
1384 pdp11-*)
1385 os=-none
1386 ;;
1387 *-dec | vax-*)
1388 os=-ultrix4.2
1389 ;;
1390 m68*-apollo)
1391 os=-domain
1392 ;;
1393 i386-sun)
1394 os=-sunos4.0.2
1395 ;;
1396 m68000-sun)
1397 os=-sunos3
1398 # This also exists in the configure program, but was not the
1399 # default.
1400 # os=-sunos4
1401 ;;
1402 m68*-cisco)
1403 os=-aout
1404 ;;
1405 mips*-cisco)
1406 os=-elf
1407 ;;
1408 mips*-*)
1409 os=-elf
1410 ;;
1411 or32-*)
1412 os=-coff
1413 ;;
1414 *-tti) # must be before sparc entry or we get the wrong os.
1415 os=-sysv3
1416 ;;
1417 sparc-* | *-sun)
1418 os=-sunos4.1.1
1419 ;;
1420 *-be)
1421 os=-beos
1422 ;;
1423 *-haiku)
1424 os=-haiku
1425 ;;
1426 *-ibm)
1427 os=-aix
1428 ;;
1429 *-knuth)
1430 os=-mmixware
1431 ;;
1432 *-wec)
1433 os=-proelf
1434 ;;
1435 *-winbond)
1436 os=-proelf
1437 ;;
1438 *-oki)
1439 os=-proelf
1440 ;;
1441 *-hp)
1442 os=-hpux
1443 ;;
1444 *-hitachi)
1445 os=-hiux
1446 ;;
1447 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1448 os=-sysv
1449 ;;
1450 *-cbm)
1451 os=-amigaos
1452 ;;
1453 *-dg)
1454 os=-dgux
1455 ;;
1456 *-dolphin)
1457 os=-sysv3
1458 ;;
1459 m68k-ccur)
1460 os=-rtu
1461 ;;
1462 m88k-omron*)
1463 os=-luna
1464 ;;
1465 *-next )
1466 os=-nextstep
1467 ;;
1468 *-sequent)
1469 os=-ptx
1470 ;;
1471 *-crds)
1472 os=-unos
1473 ;;
1474 *-ns)
1475 os=-genix
1476 ;;
1477 i370-*)
1478 os=-mvs
1479 ;;
1480 *-next)
1481 os=-nextstep3
1482 ;;
1483 *-gould)
1484 os=-sysv
1485 ;;
1486 *-highlevel)
1487 os=-bsd
1488 ;;
1489 *-encore)
1490 os=-bsd
1491 ;;
1492 *-sgi)
1493 os=-irix
1494 ;;
1495 *-siemens)
1496 os=-sysv4
1497 ;;
1498 *-masscomp)
1499 os=-rtu
1500 ;;
1501 f30[01]-fujitsu | f700-fujitsu)
1502 os=-uxpv
1503 ;;
1504 *-rom68k)
1505 os=-coff
1506 ;;
1507 *-*bug)
1508 os=-coff
1509 ;;
1510 *-apple)
1511 os=-macos
1512 ;;
1513 *-atari*)
1514 os=-mint
1515 ;;
1516 *)
1517 os=-none
1518 ;;
1519esac
1520fi
1521
1522# Here we handle the case where we know the os, and the CPU type, but not the
1523# manufacturer. We pick the logical manufacturer.
1524vendor=unknown
1525case $basic_machine in
1526 *-unknown)
1527 case $os in
1528 -riscix*)
1529 vendor=acorn
1530 ;;
1531 -sunos*)
1532 vendor=sun
1533 ;;
1534 -aix*)
1535 vendor=ibm
1536 ;;
1537 -beos*)
1538 vendor=be
1539 ;;
1540 -hpux*)
1541 vendor=hp
1542 ;;
1543 -mpeix*)
1544 vendor=hp
1545 ;;
1546 -hiux*)
1547 vendor=hitachi
1548 ;;
1549 -unos*)
1550 vendor=crds
1551 ;;
1552 -dgux*)
1553 vendor=dg
1554 ;;
1555 -luna*)
1556 vendor=omron
1557 ;;
1558 -genix*)
1559 vendor=ns
1560 ;;
1561 -mvs* | -opened*)
1562 vendor=ibm
1563 ;;
1564 -os400*)
1565 vendor=ibm
1566 ;;
1567 -ptx*)
1568 vendor=sequent
1569 ;;
1570 -tpf*)
1571 vendor=ibm
1572 ;;
1573 -vxsim* | -vxworks* | -windiss*)
1574 vendor=wrs
1575 ;;
1576 -aux*)
1577 vendor=apple
1578 ;;
1579 -hms*)
1580 vendor=hitachi
1581 ;;
1582 -mpw* | -macos*)
1583 vendor=apple
1584 ;;
1585 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1586 vendor=atari
1587 ;;
1588 -vos*)
1589 vendor=stratus
1590 ;;
1591 esac
1592 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
1593 ;;
1594esac
1595
1596echo $basic_machine$os
1597exit
1598
1599# Local variables:
1600# eval: (add-hook 'write-file-hooks 'time-stamp)
1601# time-stamp-start: "timestamp='"
1602# time-stamp-format: "%:y-%02m-%02d"
1603# time-stamp-end: "'"
1604# End:
Note: See TracBrowser for help on using the repository browser.