* Make sure that automatic closing of connections only affects
[alpine.git] / config.sub
blobf38250f1daa021840e4b2ff24a2236033282f06a
1 #! /bin/sh
2 # Configuration validation subroutine script.
3 # Copyright 1992-2018 Free Software Foundation, Inc.
5 timestamp='2018-05-19'
7 # This file is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 # General Public License for more details.
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, see <https://www.gnu.org/licenses/>.
20 # As a special exception to the GNU General Public License, if you
21 # distribute this file as part of a program that contains a
22 # configuration script generated by Autoconf, you may include it under
23 # the same distribution terms that you use for the rest of that
24 # program. This Exception is an additional permission under section 7
25 # of the GNU General Public License, version 3 ("GPLv3").
28 # Please send patches to <config-patches@gnu.org>.
30 # Configuration subroutine to validate and canonicalize a configuration type.
31 # Supply the specified configuration type as an argument.
32 # If it is invalid, we print an error message on stderr and exit with code 1.
33 # Otherwise, we print the canonical config type on stdout and succeed.
35 # You can get the latest version of this script from:
36 # https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
38 # This file is supposed to be the same for all GNU packages
39 # and recognize all the CPU types, system types and aliases
40 # that are meaningful with *any* GNU software.
41 # Each package is responsible for reporting which valid configurations
42 # it does not support. The user should be able to distinguish
43 # a failure to support a valid configuration from a meaningless
44 # configuration.
46 # The goal of this file is to map all the various variations of a given
47 # machine specification into a single specification in the form:
48 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
49 # or in some cases, the newer four-part form:
50 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
51 # It is wrong to echo any other type of specification.
53 me=`echo "$0" | sed -e 's,.*/,,'`
55 usage="\
56 Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
58 Canonicalize a configuration name.
60 Options:
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
65 Report bugs and patches to <config-patches@gnu.org>."
67 version="\
68 GNU config.sub ($timestamp)
70 Copyright 1992-2018 Free Software Foundation, Inc.
72 This is free software; see the source for copying conditions. There is NO
73 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
75 help="
76 Try \`$me --help' for more information."
78 # Parse command line
79 while test $# -gt 0 ; do
80 case $1 in
81 --time-stamp | --time* | -t )
82 echo "$timestamp" ; exit ;;
83 --version | -v )
84 echo "$version" ; exit ;;
85 --help | --h* | -h )
86 echo "$usage"; exit ;;
87 -- ) # Stop option processing
88 shift; break ;;
89 - ) # Use stdin as input.
90 break ;;
91 -* )
92 echo "$me: invalid option $1$help"
93 exit 1 ;;
95 *local*)
96 # First pass through any local machine types.
97 echo "$1"
98 exit ;;
101 break ;;
102 esac
103 done
105 case $# in
106 0) echo "$me: missing argument$help" >&2
107 exit 1;;
108 1) ;;
109 *) echo "$me: too many arguments$help" >&2
110 exit 1;;
111 esac
113 # Split fields of configuration type
114 IFS="-" read -r field1 field2 field3 field4 <<EOF
118 # Separate into logical components for further validation
119 case $1 in
120 *-*-*-*-*)
121 echo Invalid configuration \`"$1"\': more than four components >&2
122 exit 1
124 *-*-*-*)
125 basic_machine=$field1-$field2
126 os=$field3-$field4
128 *-*-*)
129 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
130 # parts
131 maybe_os=$field2-$field3
132 case $maybe_os in
133 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \
134 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
135 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
136 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
137 | storm-chaos* | os2-emx* | rtmk-nova*)
138 basic_machine=$field1
139 os=$maybe_os
141 android-linux)
142 basic_machine=$field1-unknown
143 os=linux-android
146 basic_machine=$field1-$field2
147 os=$field3
149 esac
151 *-*)
152 basic_machine=$field1
153 os=$field2
156 # Convert single-component short-hands not valid as part of
157 # multi-component configurations.
158 case $field1 in
159 386bsd)
160 basic_machine=i386-pc
161 os=bsd
163 a29khif)
164 basic_machine=a29k-amd
165 os=udi
167 adobe68k)
168 basic_machine=m68010-adobe
169 os=scout
171 am29k)
172 basic_machine=a29k-none
173 os=bsd
175 amdahl)
176 basic_machine=580-amdahl
177 os=sysv
179 amigaos | amigados)
180 basic_machine=m68k-unknown
181 os=amigaos
183 amigaunix | amix)
184 basic_machine=m68k-unknown
185 os=sysv4
187 apollo68)
188 basic_machine=m68k-apollo
189 os=sysv
191 apollo68bsd)
192 basic_machine=m68k-apollo
193 os=bsd
195 aros)
196 basic_machine=i386-pc
197 os=aros
199 aux)
200 basic_machine=m68k-apple
201 os=aux
203 balance)
204 basic_machine=ns32k-sequent
205 os=dynix
207 blackfin)
208 basic_machine=bfin-unknown
209 os=linux
211 cegcc)
212 basic_machine=arm-unknown
213 os=cegcc
215 cray)
216 basic_machine=j90-cray
217 os=unicos
219 craynv)
220 basic_machine=craynv-cray
221 os=unicosmp
223 delta88)
224 basic_machine=m88k-motorola
225 os=sysv3
227 dicos)
228 basic_machine=i686-pc
229 os=dicos
231 djgpp)
232 basic_machine=i586-pc
233 os=msdosdjgpp
235 ebmon29k)
236 basic_machine=a29k-amd
237 os=ebmon
239 es1800 | OSE68k | ose68k | ose | OSE)
240 basic_machine=m68k-ericsson
241 os=ose
243 gmicro)
244 basic_machine=tron-gmicro
245 os=sysv
247 go32)
248 basic_machine=i386-pc
249 os=go32
251 h8300hms)
252 basic_machine=h8300-hitachi
253 os=hms
255 h8300xray)
256 basic_machine=h8300-hitachi
257 os=xray
259 h8500hms)
260 basic_machine=h8500-hitachi
261 os=hms
263 harris)
264 basic_machine=m88k-harris
265 os=sysv3
267 hp300bsd)
268 basic_machine=m68k-hp
269 os=bsd
271 hp300hpux)
272 basic_machine=m68k-hp
273 os=hpux
275 hppaosf)
276 basic_machine=hppa1.1-hp
277 os=osf
279 hppro)
280 basic_machine=hppa1.1-hp
281 os=proelf
283 i386mach)
284 basic_machine=i386-mach
285 os=mach
287 vsta)
288 basic_machine=i386-unknown
289 os=vsta
291 isi68 | isi)
292 basic_machine=m68k-isi
293 os=sysv
295 m68knommu)
296 basic_machine=m68k-unknown
297 os=linux
299 magnum | m3230)
300 basic_machine=mips-mips
301 os=sysv
303 merlin)
304 basic_machine=ns32k-utek
305 os=sysv
307 mingw64)
308 basic_machine=x86_64-pc
309 os=mingw64
311 mingw32)
312 basic_machine=i686-pc
313 os=mingw32
315 mingw32ce)
316 basic_machine=arm-unknown
317 os=mingw32ce
319 monitor)
320 basic_machine=m68k-rom68k
321 os=coff
323 morphos)
324 basic_machine=powerpc-unknown
325 os=morphos
327 moxiebox)
328 basic_machine=moxie-unknown
329 os=moxiebox
331 msdos)
332 basic_machine=i386-pc
333 os=msdos
335 msys)
336 basic_machine=i686-pc
337 os=msys
339 mvs)
340 basic_machine=i370-ibm
341 os=mvs
343 nacl)
344 basic_machine=le32-unknown
345 os=nacl
347 ncr3000)
348 basic_machine=i486-ncr
349 os=sysv4
351 netbsd386)
352 basic_machine=i386-unknown
353 os=netbsd
355 netwinder)
356 basic_machine=armv4l-rebel
357 os=linux
359 news | news700 | news800 | news900)
360 basic_machine=m68k-sony
361 os=newsos
363 news1000)
364 basic_machine=m68030-sony
365 os=newsos
367 necv70)
368 basic_machine=v70-nec
369 os=sysv
371 nh3000)
372 basic_machine=m68k-harris
373 os=cxux
375 nh[45]000)
376 basic_machine=m88k-harris
377 os=cxux
379 nindy960)
380 basic_machine=i960-intel
381 os=nindy
383 mon960)
384 basic_machine=i960-intel
385 os=mon960
387 nonstopux)
388 basic_machine=mips-compaq
389 os=nonstopux
391 os400)
392 basic_machine=powerpc-ibm
393 os=os400
395 OSE68000 | ose68000)
396 basic_machine=m68000-ericsson
397 os=ose
399 os68k)
400 basic_machine=m68k-none
401 os=os68k
403 paragon)
404 basic_machine=i860-intel
405 os=osf
407 parisc)
408 basic_machine=hppa-unknown
409 os=linux
411 pw32)
412 basic_machine=i586-unknown
413 os=pw32
415 rdos | rdos64)
416 basic_machine=x86_64-pc
417 os=rdos
419 rdos32)
420 basic_machine=i386-pc
421 os=rdos
423 rom68k)
424 basic_machine=m68k-rom68k
425 os=coff
427 sa29200)
428 basic_machine=a29k-amd
429 os=udi
431 sei)
432 basic_machine=mips-sei
433 os=seiux
435 sps7)
436 basic_machine=m68k-bull
437 os=sysv2
439 stratus)
440 basic_machine=i860-stratus
441 os=sysv4
443 sun2os3)
444 basic_machine=m68000-sun
445 os=sunos3
447 sun2os4)
448 basic_machine=m68000-sun
449 os=sunos4
451 sun3os3)
452 basic_machine=m68k-sun
453 os=sunos3
455 sun3os4)
456 basic_machine=m68k-sun
457 os=sunos4
459 sun4os3)
460 basic_machine=sparc-sun
461 os=sunos3
463 sun4os4)
464 basic_machine=sparc-sun
465 os=sunos4
467 sun4sol2)
468 basic_machine=sparc-sun
469 os=solaris2
471 sv1)
472 basic_machine=sv1-cray
473 os=unicos
475 symmetry)
476 basic_machine=i386-sequent
477 os=dynix
479 t3e)
480 basic_machine=alphaev5-cray
481 os=unicos
483 t90)
484 basic_machine=t90-cray
485 os=unicos
487 toad1)
488 basic_machine=pdp10-xkl
489 os=tops20
491 tpf)
492 basic_machine=s390x-ibm
493 os=tpf
495 udi29k)
496 basic_machine=a29k-amd
497 os=udi
499 ultra3)
500 basic_machine=a29k-nyu
501 os=sym1
503 v810 | necv810)
504 basic_machine=v810-nec
505 os=none
507 vaxv)
508 basic_machine=vax-dec
509 os=sysv
511 vms)
512 basic_machine=vax-dec
513 os=vms
515 vxworks960)
516 basic_machine=i960-wrs
517 os=vxworks
519 vxworks68)
520 basic_machine=m68k-wrs
521 os=vxworks
523 vxworks29k)
524 basic_machine=a29k-wrs
525 os=vxworks
527 xbox)
528 basic_machine=i686-pc
529 os=mingw32
531 ymp)
532 basic_machine=ymp-cray
533 os=unicos
536 basic_machine=$1
539 esac
541 esac
543 ### Let's recognize common machines as not being operating systems so
544 ### that things like config.sub decstation-3100 work. We also
545 ### recognize some manufacturers as not being operating systems, so we
546 ### can provide default operating systems below.
547 case $os in
548 sun*os*)
549 # Prevent following clause from handling this invalid input.
551 dec* | mips* | sequent* | encore* | pc532* | sgi* | sony* | \
552 att* | 7300* | 3300* | delta* | motorola* | sun[234]* | \
553 unicom* | ibm* | next | hp | isi* | apollo | altos* | \
554 convergent* | ncr* | news | 32* | 3600* | 3100* | hitachi* |\
555 c[123]* | convex* | sun | crds | omron* | dg | ultra | tti* | \
556 harris | dolphin | highlevel | gould | cbm | ns | masscomp | \
557 apple | axis | knuth | cray | microblaze*)
559 basic_machine=$1
561 bluegene*)
562 os=cnk
564 sim | cisco | oki | wec | winbond)
566 basic_machine=$1
568 scout)
570 wrs)
571 os=vxworks
572 basic_machine=$1
574 chorusos*)
575 os=chorusos
576 basic_machine=$1
578 chorusrdb)
579 os=chorusrdb
580 basic_machine=$1
582 hiux*)
583 os=hiuxwe2
585 sco6)
586 os=sco5v6
587 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
589 sco5)
590 os=sco3.2v5
591 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
593 sco4)
594 os=sco3.2v4
595 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
597 sco3.2.[4-9]*)
598 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
599 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
601 sco3.2v[4-9]*)
602 # Don't forget version if it is 3.2v4 or newer.
603 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
605 sco5v6*)
606 # Don't forget version if it is 3.2v4 or newer.
607 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
609 sco*)
610 os=sco3.2v2
611 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
613 udk*)
614 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
616 isc)
617 os=isc2.2
618 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
620 clix*)
621 basic_machine=clipper-intergraph
623 isc*)
624 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
626 lynx*178)
627 os=lynxos178
629 lynx*5)
630 os=lynxos5
632 lynx*)
633 os=lynxos
635 ptx*)
636 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
638 psos*)
639 os=psos
641 mint | mint[0-9]*)
642 basic_machine=m68k-atari
643 os=mint
645 esac
647 # Decode aliases for certain CPU-COMPANY combinations.
648 case $basic_machine in
649 # Recognize the basic CPU types without company name.
650 # Some are omitted here because they have special meanings below.
651 1750a | 580 \
652 | a29k \
653 | aarch64 | aarch64_be \
654 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
655 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
656 | am33_2.0 \
657 | arc | arceb \
658 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
659 | avr | avr32 \
660 | ba \
661 | be32 | be64 \
662 | bfin \
663 | c4x | c8051 | clipper | csky \
664 | d10v | d30v | dlx | dsp16xx \
665 | e2k | epiphany \
666 | fido | fr30 | frv | ft32 \
667 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
668 | hexagon \
669 | i370 | i860 | i960 | ia16 | ia64 \
670 | ip2k | iq2000 \
671 | k1om \
672 | le32 | le64 \
673 | lm32 \
674 | m32c | m32r | m32rle | m68000 | m68k | m88k \
675 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
676 | mips | mipsbe | mipseb | mipsel | mipsle \
677 | mips16 \
678 | mips64 | mips64el \
679 | mips64octeon | mips64octeonel \
680 | mips64orion | mips64orionel \
681 | mips64r5900 | mips64r5900el \
682 | mips64vr | mips64vrel \
683 | mips64vr4100 | mips64vr4100el \
684 | mips64vr4300 | mips64vr4300el \
685 | mips64vr5000 | mips64vr5000el \
686 | mips64vr5900 | mips64vr5900el \
687 | mipsisa32 | mipsisa32el \
688 | mipsisa32r2 | mipsisa32r2el \
689 | mipsisa32r6 | mipsisa32r6el \
690 | mipsisa64 | mipsisa64el \
691 | mipsisa64r2 | mipsisa64r2el \
692 | mipsisa64r6 | mipsisa64r6el \
693 | mipsisa64sb1 | mipsisa64sb1el \
694 | mipsisa64sr71k | mipsisa64sr71kel \
695 | mipsr5900 | mipsr5900el \
696 | mipstx39 | mipstx39el \
697 | mn10200 | mn10300 \
698 | moxie \
699 | mt \
700 | msp430 \
701 | nds32 | nds32le | nds32be \
702 | nfp \
703 | nios | nios2 | nios2eb | nios2el \
704 | ns16k | ns32k \
705 | open8 | or1k | or1knd | or32 \
706 | pdp10 | pj | pjl \
707 | powerpc | powerpc64 | powerpc64le | powerpcle \
708 | pru \
709 | pyramid \
710 | riscv32 | riscv64 \
711 | rl78 | rx \
712 | score \
713 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
714 | sh64 | sh64le \
715 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
716 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
717 | spu \
718 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
719 | ubicom32 \
720 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
721 | visium \
722 | wasm32 \
723 | x86 | xc16x | xstormy16 | xtensa \
724 | z8k | z80)
725 basic_machine=$basic_machine-unknown
727 c54x)
728 basic_machine=tic54x-unknown
730 c55x)
731 basic_machine=tic55x-unknown
733 c6x)
734 basic_machine=tic6x-unknown
736 leon|leon[3-9])
737 basic_machine=sparc-$basic_machine
739 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
740 basic_machine=$basic_machine-unknown
741 os=${os:-none}
743 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
745 m9s12z | m68hcs12z | hcs12z | s12z)
746 basic_machine=s12z-unknown
747 os=${os:-none}
749 ms1)
750 basic_machine=mt-unknown
752 strongarm | thumb | xscale)
753 basic_machine=arm-unknown
755 xgate)
756 basic_machine=$basic_machine-unknown
757 os=${os:-none}
759 xscaleeb)
760 basic_machine=armeb-unknown
763 xscaleel)
764 basic_machine=armel-unknown
767 # We use `pc' rather than `unknown'
768 # because (1) that's what they normally are, and
769 # (2) the word "unknown" tends to confuse beginning users.
770 i*86 | x86_64)
771 basic_machine=$basic_machine-pc
773 # Recognize the basic CPU types with company name.
774 580-* \
775 | a29k-* \
776 | aarch64-* | aarch64_be-* \
777 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
778 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
779 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
780 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
781 | avr-* | avr32-* \
782 | ba-* \
783 | be32-* | be64-* \
784 | bfin-* | bs2000-* \
785 | c[123]* | c30-* | [cjt]90-* | c4x-* \
786 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
787 | d10v-* | d30v-* | dlx-* \
788 | e2k-* | elxsi-* \
789 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
790 | h8300-* | h8500-* \
791 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
792 | hexagon-* \
793 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
794 | ip2k-* | iq2000-* \
795 | k1om-* \
796 | le32-* | le64-* \
797 | lm32-* \
798 | m32c-* | m32r-* | m32rle-* \
799 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
800 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
801 | microblaze-* | microblazeel-* \
802 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
803 | mips16-* \
804 | mips64-* | mips64el-* \
805 | mips64octeon-* | mips64octeonel-* \
806 | mips64orion-* | mips64orionel-* \
807 | mips64r5900-* | mips64r5900el-* \
808 | mips64vr-* | mips64vrel-* \
809 | mips64vr4100-* | mips64vr4100el-* \
810 | mips64vr4300-* | mips64vr4300el-* \
811 | mips64vr5000-* | mips64vr5000el-* \
812 | mips64vr5900-* | mips64vr5900el-* \
813 | mipsisa32-* | mipsisa32el-* \
814 | mipsisa32r2-* | mipsisa32r2el-* \
815 | mipsisa32r6-* | mipsisa32r6el-* \
816 | mipsisa64-* | mipsisa64el-* \
817 | mipsisa64r2-* | mipsisa64r2el-* \
818 | mipsisa64r6-* | mipsisa64r6el-* \
819 | mipsisa64sb1-* | mipsisa64sb1el-* \
820 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
821 | mipsr5900-* | mipsr5900el-* \
822 | mipstx39-* | mipstx39el-* \
823 | mmix-* \
824 | mt-* \
825 | msp430-* \
826 | nds32-* | nds32le-* | nds32be-* \
827 | nfp-* \
828 | nios-* | nios2-* | nios2eb-* | nios2el-* \
829 | none-* | np1-* | ns16k-* | ns32k-* \
830 | open8-* \
831 | or1k*-* \
832 | orion-* \
833 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
834 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
835 | pru-* \
836 | pyramid-* \
837 | riscv32-* | riscv64-* \
838 | rl78-* | romp-* | rs6000-* | rx-* \
839 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
840 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
841 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
842 | sparclite-* \
843 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
844 | tahoe-* \
845 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
846 | tile*-* \
847 | tron-* \
848 | ubicom32-* \
849 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
850 | vax-* \
851 | visium-* \
852 | wasm32-* \
853 | we32k-* \
854 | x86-* | x86_64-* | xc16x-* | xps100-* \
855 | xstormy16-* | xtensa*-* \
856 | ymp-* \
857 | z8k-* | z80-*)
859 # Recognize the basic CPU types without company name, with glob match.
860 xtensa*)
861 basic_machine=$basic_machine-unknown
863 # Recognize the various machine names and aliases which stand
864 # for a CPU type and a company and sometimes even an OS.
865 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
866 basic_machine=m68000-att
868 3b*)
869 basic_machine=we32k-att
871 abacus)
872 basic_machine=abacus-unknown
874 alliant | fx80)
875 basic_machine=fx80-alliant
877 altos | altos3068)
878 basic_machine=m68k-altos
880 amd64)
881 basic_machine=x86_64-pc
883 amd64-*)
884 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
886 amiga | amiga-*)
887 basic_machine=m68k-unknown
889 asmjs)
890 basic_machine=asmjs-unknown
892 blackfin-*)
893 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
894 os=linux
896 bluegene*)
897 basic_machine=powerpc-ibm
898 os=cnk
900 c54x-*)
901 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
903 c55x-*)
904 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
906 c6x-*)
907 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
909 c90)
910 basic_machine=c90-cray
911 os=${os:-unicos}
913 convex-c1)
914 basic_machine=c1-convex
915 os=bsd
917 convex-c2)
918 basic_machine=c2-convex
919 os=bsd
921 convex-c32)
922 basic_machine=c32-convex
923 os=bsd
925 convex-c34)
926 basic_machine=c34-convex
927 os=bsd
929 convex-c38)
930 basic_machine=c38-convex
931 os=bsd
933 cr16 | cr16-*)
934 basic_machine=cr16-unknown
935 os=${os:-elf}
937 crds | unos)
938 basic_machine=m68k-crds
940 crisv32 | crisv32-* | etraxfs*)
941 basic_machine=crisv32-axis
943 cris | cris-* | etrax*)
944 basic_machine=cris-axis
946 crx)
947 basic_machine=crx-unknown
948 os=${os:-elf}
950 da30 | da30-*)
951 basic_machine=m68k-da30
953 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
954 basic_machine=mips-dec
956 decsystem10* | dec10*)
957 basic_machine=pdp10-dec
958 os=tops10
960 decsystem20* | dec20*)
961 basic_machine=pdp10-dec
962 os=tops20
964 delta | 3300 | motorola-3300 | motorola-delta \
965 | 3300-motorola | delta-motorola)
966 basic_machine=m68k-motorola
968 dpx20 | dpx20-*)
969 basic_machine=rs6000-bull
970 os=${os:-bosx}
972 dpx2*)
973 basic_machine=m68k-bull
974 os=sysv3
976 e500v[12])
977 basic_machine=powerpc-unknown
978 os=$os"spe"
980 e500v[12]-*)
981 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
982 os=$os"spe"
984 encore | umax | mmax)
985 basic_machine=ns32k-encore
987 elxsi)
988 basic_machine=elxsi-elxsi
989 os=${os:-bsd}
991 fx2800)
992 basic_machine=i860-alliant
994 genix)
995 basic_machine=ns32k-ns
997 h3050r* | hiux*)
998 basic_machine=hppa1.1-hitachi
999 os=hiuxwe2
1001 hp300-*)
1002 basic_machine=m68k-hp
1004 hp3k9[0-9][0-9] | hp9[0-9][0-9])
1005 basic_machine=hppa1.0-hp
1007 hp9k2[0-9][0-9] | hp9k31[0-9])
1008 basic_machine=m68000-hp
1010 hp9k3[2-9][0-9])
1011 basic_machine=m68k-hp
1013 hp9k6[0-9][0-9] | hp6[0-9][0-9])
1014 basic_machine=hppa1.0-hp
1016 hp9k7[0-79][0-9] | hp7[0-79][0-9])
1017 basic_machine=hppa1.1-hp
1019 hp9k78[0-9] | hp78[0-9])
1020 # FIXME: really hppa2.0-hp
1021 basic_machine=hppa1.1-hp
1023 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
1024 # FIXME: really hppa2.0-hp
1025 basic_machine=hppa1.1-hp
1027 hp9k8[0-9][13679] | hp8[0-9][13679])
1028 basic_machine=hppa1.1-hp
1030 hp9k8[0-9][0-9] | hp8[0-9][0-9])
1031 basic_machine=hppa1.0-hp
1033 i370-ibm* | ibm*)
1034 basic_machine=i370-ibm
1036 i*86v32)
1037 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
1038 os=sysv32
1040 i*86v4*)
1041 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
1042 os=sysv4
1044 i*86v)
1045 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
1046 os=sysv
1048 i*86sol2)
1049 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
1050 os=solaris2
1052 j90 | j90-cray)
1053 basic_machine=j90-cray
1054 os=${os:-unicos}
1056 iris | iris4d)
1057 basic_machine=mips-sgi
1058 case $os in
1059 irix*)
1062 os=irix4
1064 esac
1066 leon-*|leon[3-9]-*)
1067 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
1069 m68knommu-*)
1070 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1071 os=linux
1073 microblaze*)
1074 basic_machine=microblaze-xilinx
1076 miniframe)
1077 basic_machine=m68000-convergent
1079 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
1080 basic_machine=m68k-atari
1081 os=mint
1083 mips3*-*)
1084 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
1086 mips3*)
1087 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
1089 ms1-*)
1090 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
1092 news-3600 | risc-news)
1093 basic_machine=mips-sony
1094 os=newsos
1096 next | m*-next)
1097 basic_machine=m68k-next
1098 case $os in
1099 nextstep* )
1101 ns2*)
1102 os=nextstep2
1105 os=nextstep3
1107 esac
1109 np1)
1110 basic_machine=np1-gould
1112 neo-tandem)
1113 basic_machine=neo-tandem
1115 nse-tandem)
1116 basic_machine=nse-tandem
1118 nsr-tandem)
1119 basic_machine=nsr-tandem
1121 nsv-tandem)
1122 basic_machine=nsv-tandem
1124 nsx-tandem)
1125 basic_machine=nsx-tandem
1127 op50n-* | op60c-*)
1128 basic_machine=hppa1.1-oki
1129 os=proelf
1131 openrisc | openrisc-*)
1132 basic_machine=or32-unknown
1134 pa-hitachi)
1135 basic_machine=hppa1.1-hitachi
1136 os=hiuxwe2
1138 parisc-*)
1139 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1140 os=linux
1142 pbd)
1143 basic_machine=sparc-tti
1145 pbb)
1146 basic_machine=m68k-tti
1148 pc532 | pc532-*)
1149 basic_machine=ns32k-pc532
1151 pc98)
1152 basic_machine=i386-pc
1154 pc98-*)
1155 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1157 pentium | p5 | k5 | k6 | nexgen | viac3)
1158 basic_machine=i586-pc
1160 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1161 basic_machine=i686-pc
1163 pentiumii | pentium2 | pentiumiii | pentium3)
1164 basic_machine=i686-pc
1166 pentium4)
1167 basic_machine=i786-pc
1169 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1170 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1172 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1173 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1175 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1176 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1178 pentium4-*)
1179 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1182 basic_machine=pn-gould
1184 power) basic_machine=power-ibm
1186 ppc | ppcbe) basic_machine=powerpc-unknown
1188 ppc-* | ppcbe-*)
1189 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1191 ppcle | powerpclittle)
1192 basic_machine=powerpcle-unknown
1194 ppcle-* | powerpclittle-*)
1195 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1197 ppc64) basic_machine=powerpc64-unknown
1199 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1201 ppc64le | powerpc64little)
1202 basic_machine=powerpc64le-unknown
1204 ppc64le-* | powerpc64little-*)
1205 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1207 ps2)
1208 basic_machine=i386-ibm
1210 rm[46]00)
1211 basic_machine=mips-siemens
1213 rtpc | rtpc-*)
1214 basic_machine=romp-ibm
1216 s390 | s390-*)
1217 basic_machine=s390-ibm
1219 s390x | s390x-*)
1220 basic_machine=s390x-ibm
1222 sb1)
1223 basic_machine=mipsisa64sb1-unknown
1225 sb1el)
1226 basic_machine=mipsisa64sb1el-unknown
1228 sde)
1229 basic_machine=mipsisa32-sde
1230 os=${os:-elf}
1232 sequent)
1233 basic_machine=i386-sequent
1235 sh5el)
1236 basic_machine=sh5le-unknown
1238 simso-wrs)
1239 basic_machine=sparclite-wrs
1240 os=vxworks
1242 spur)
1243 basic_machine=spur-unknown
1245 st2000)
1246 basic_machine=m68k-tandem
1248 strongarm-* | thumb-*)
1249 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1251 sun2)
1252 basic_machine=m68000-sun
1254 sun3 | sun3-*)
1255 basic_machine=m68k-sun
1257 sun4)
1258 basic_machine=sparc-sun
1260 sun386 | sun386i | roadrunner)
1261 basic_machine=i386-sun
1263 tile*)
1264 basic_machine=$basic_machine-unknown
1265 os=linux-gnu
1267 tx39)
1268 basic_machine=mipstx39-unknown
1270 tx39el)
1271 basic_machine=mipstx39el-unknown
1273 tower | tower-32)
1274 basic_machine=m68k-ncr
1276 vpp*|vx|vx-*)
1277 basic_machine=f301-fujitsu
1279 w65*)
1280 basic_machine=w65-wdc
1281 os=none
1283 w89k-*)
1284 basic_machine=hppa1.1-winbond
1285 os=proelf
1287 x64)
1288 basic_machine=x86_64-pc
1290 xps | xps100)
1291 basic_machine=xps100-honeywell
1293 xscale-* | xscalee[bl]-*)
1294 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1296 none)
1297 basic_machine=none-none
1298 os=${os:-none}
1301 # Here we handle the default manufacturer of certain CPU types. It is in
1302 # some cases the only manufacturer, in others, it is the most popular.
1303 w89k)
1304 basic_machine=hppa1.1-winbond
1306 op50n)
1307 basic_machine=hppa1.1-oki
1309 op60c)
1310 basic_machine=hppa1.1-oki
1312 romp)
1313 basic_machine=romp-ibm
1315 mmix)
1316 basic_machine=mmix-knuth
1318 rs6000)
1319 basic_machine=rs6000-ibm
1321 vax)
1322 basic_machine=vax-dec
1324 pdp11)
1325 basic_machine=pdp11-dec
1327 we32k)
1328 basic_machine=we32k-att
1330 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1331 basic_machine=sh-unknown
1333 cydra)
1334 basic_machine=cydra-cydrome
1336 orion)
1337 basic_machine=orion-highlevel
1339 orion105)
1340 basic_machine=clipper-highlevel
1342 mac | mpw | mac-mpw)
1343 basic_machine=m68k-apple
1345 pmac | pmac-mpw)
1346 basic_machine=powerpc-apple
1348 *-unknown)
1349 # Make sure to match an already-canonicalized machine name.
1352 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1353 exit 1
1355 esac
1357 # Here we canonicalize certain aliases for manufacturers.
1358 case $basic_machine in
1359 *-digital*)
1360 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1362 *-commodore*)
1363 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1367 esac
1369 # Decode manufacturer-specific aliases for certain operating systems.
1371 if [ x$os != x ]
1372 then
1373 case $os in
1374 # First match some system type aliases that might get confused
1375 # with valid system types.
1376 # solaris* is a basic system type, with this one exception.
1377 auroraux)
1378 os=auroraux
1380 solaris1 | solaris1.*)
1381 os=`echo $os | sed -e 's|solaris1|sunos4|'`
1383 solaris)
1384 os=solaris2
1386 unixware*)
1387 os=sysv4.2uw
1389 gnu/linux*)
1390 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1392 # es1800 is here to avoid being matched by es* (a different OS)
1393 es1800*)
1394 os=ose
1396 # Now accept the basic system types.
1397 # The portable systems comes first.
1398 # Each alternative MUST end in a * to match a version number.
1399 # sysv* is not here because it comes later, after sysvr4.
1400 gnu* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
1401 | *vms* | sco* | esix* | isc* | aix* | cnk* | sunos | sunos[34]*\
1402 | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
1403 | sym* | kopensolaris* | plan9* \
1404 | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \
1405 | aos* | aros* | cloudabi* | sortix* \
1406 | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \
1407 | clix* | riscos* | uniplus* | iris* | rtu* | xenix* \
1408 | hiux* | knetbsd* | mirbsd* | netbsd* \
1409 | bitrig* | openbsd* | solidbsd* | libertybsd* \
1410 | ekkobsd* | kfreebsd* | freebsd* | riscix* | lynxos* \
1411 | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \
1412 | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \
1413 | udi* | eabi* | lites* | ieee* | go32* | aux* | hcos* \
1414 | chorusos* | chorusrdb* | cegcc* | glidix* \
1415 | cygwin* | msys* | pe* | psos* | moss* | proelf* | rtems* \
1416 | midipix* | mingw32* | mingw64* | linux-gnu* | linux-android* \
1417 | linux-newlib* | linux-musl* | linux-uclibc* \
1418 | uxpv* | beos* | mpeix* | udk* | moxiebox* \
1419 | interix* | uwin* | mks* | rhapsody* | darwin* \
1420 | openstep* | oskit* | conix* | pw32* | nonstopux* \
1421 | storm-chaos* | tops10* | tenex* | tops20* | its* \
1422 | os2* | vos* | palmos* | uclinux* | nucleus* \
1423 | morphos* | superux* | rtmk* | windiss* \
1424 | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \
1425 | skyos* | haiku* | rdos* | toppers* | drops* | es* \
1426 | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \
1427 | midnightbsd*)
1428 # Remember, each alternative MUST END IN *, to match a version number.
1430 qnx*)
1431 case $basic_machine in
1432 x86-* | i*86-*)
1435 os=nto-$os
1437 esac
1439 nto-qnx*)
1441 nto*)
1442 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1444 sim | xray | os68k* | v88r* \
1445 | windows* | osx | abug | netware* | os9* \
1446 | macos* | mpw* | magic* | mmixware* | mon960* | lnews*)
1448 mac*)
1449 os=`echo "$os" | sed -e 's|mac|macos|'`
1451 linux-dietlibc)
1452 os=linux-dietlibc
1454 linux*)
1455 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1457 sunos5*)
1458 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1460 sunos6*)
1461 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1463 opened*)
1464 os=openedition
1466 os400*)
1467 os=os400
1469 wince*)
1470 os=wince
1472 utek*)
1473 os=bsd
1475 dynix*)
1476 os=bsd
1478 acis*)
1479 os=aos
1481 atheos*)
1482 os=atheos
1484 syllable*)
1485 os=syllable
1487 386bsd)
1488 os=bsd
1490 ctix* | uts*)
1491 os=sysv
1493 nova*)
1494 os=rtmk-nova
1496 ns2)
1497 os=nextstep2
1499 nsk*)
1500 os=nsk
1502 # Preserve the version number of sinix5.
1503 sinix5.*)
1504 os=`echo $os | sed -e 's|sinix|sysv|'`
1506 sinix*)
1507 os=sysv4
1509 tpf*)
1510 os=tpf
1512 triton*)
1513 os=sysv3
1515 oss*)
1516 os=sysv3
1518 svr4*)
1519 os=sysv4
1521 svr3)
1522 os=sysv3
1524 sysvr4)
1525 os=sysv4
1527 # This must come after sysvr4.
1528 sysv*)
1530 ose*)
1531 os=ose
1533 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1534 os=mint
1536 zvmoe)
1537 os=zvmoe
1539 dicos*)
1540 os=dicos
1542 pikeos*)
1543 # Until real need of OS specific support for
1544 # particular features comes up, bare metal
1545 # configurations are quite functional.
1546 case $basic_machine in
1547 arm*)
1548 os=eabi
1551 os=elf
1553 esac
1555 nacl*)
1557 ios)
1559 none)
1561 *-eabi)
1564 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1565 exit 1
1567 esac
1568 else
1570 # Here we handle the default operating systems that come with various machines.
1571 # The value should be what the vendor currently ships out the door with their
1572 # machine or put another way, the most popular os provided with the machine.
1574 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1575 # "-sun"), then you have to tell the case statement up towards the top
1576 # that MANUFACTURER isn't an operating system. Otherwise, code above
1577 # will signal an error saying that MANUFACTURER isn't an operating
1578 # system, and we'll never get to this point.
1580 case $basic_machine in
1581 score-*)
1582 os=elf
1584 spu-*)
1585 os=elf
1587 *-acorn)
1588 os=riscix1.2
1590 arm*-rebel)
1591 os=linux
1593 arm*-semi)
1594 os=aout
1596 c4x-* | tic4x-*)
1597 os=coff
1599 c8051-*)
1600 os=elf
1602 hexagon-*)
1603 os=elf
1605 tic54x-*)
1606 os=coff
1608 tic55x-*)
1609 os=coff
1611 tic6x-*)
1612 os=coff
1614 # This must come before the *-dec entry.
1615 pdp10-*)
1616 os=tops20
1618 pdp11-*)
1619 os=none
1621 *-dec | vax-*)
1622 os=ultrix4.2
1624 m68*-apollo)
1625 os=domain
1627 i386-sun)
1628 os=sunos4.0.2
1630 m68000-sun)
1631 os=sunos3
1633 m68*-cisco)
1634 os=aout
1636 mep-*)
1637 os=elf
1639 mips*-cisco)
1640 os=elf
1642 mips*-*)
1643 os=elf
1645 or32-*)
1646 os=coff
1648 *-tti) # must be before sparc entry or we get the wrong os.
1649 os=sysv3
1651 sparc-* | *-sun)
1652 os=sunos4.1.1
1654 pru-*)
1655 os=elf
1657 *-be)
1658 os=beos
1660 *-ibm)
1661 os=aix
1663 *-knuth)
1664 os=mmixware
1666 *-wec)
1667 os=proelf
1669 *-winbond)
1670 os=proelf
1672 *-oki)
1673 os=proelf
1675 *-hp)
1676 os=hpux
1678 *-hitachi)
1679 os=hiux
1681 i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
1682 os=sysv
1684 *-cbm)
1685 os=amigaos
1687 *-dg)
1688 os=dgux
1690 *-dolphin)
1691 os=sysv3
1693 m68k-ccur)
1694 os=rtu
1696 m88k-omron*)
1697 os=luna
1699 *-next)
1700 os=nextstep
1702 *-sequent)
1703 os=ptx
1705 *-crds)
1706 os=unos
1708 *-ns)
1709 os=genix
1711 i370-*)
1712 os=mvs
1714 *-gould)
1715 os=sysv
1717 *-highlevel)
1718 os=bsd
1720 *-encore)
1721 os=bsd
1723 *-sgi)
1724 os=irix
1726 *-siemens)
1727 os=sysv4
1729 *-masscomp)
1730 os=rtu
1732 f30[01]-fujitsu | f700-fujitsu)
1733 os=uxpv
1735 *-rom68k)
1736 os=coff
1738 *-*bug)
1739 os=coff
1741 *-apple)
1742 os=macos
1744 *-atari*)
1745 os=mint
1748 os=none
1750 esac
1753 # Here we handle the case where we know the os, and the CPU type, but not the
1754 # manufacturer. We pick the logical manufacturer.
1755 vendor=unknown
1756 case $basic_machine in
1757 *-unknown)
1758 case $os in
1759 riscix*)
1760 vendor=acorn
1762 sunos*)
1763 vendor=sun
1765 cnk*|-aix*)
1766 vendor=ibm
1768 beos*)
1769 vendor=be
1771 hpux*)
1772 vendor=hp
1774 mpeix*)
1775 vendor=hp
1777 hiux*)
1778 vendor=hitachi
1780 unos*)
1781 vendor=crds
1783 dgux*)
1784 vendor=dg
1786 luna*)
1787 vendor=omron
1789 genix*)
1790 vendor=ns
1792 mvs* | opened*)
1793 vendor=ibm
1795 os400*)
1796 vendor=ibm
1798 ptx*)
1799 vendor=sequent
1801 tpf*)
1802 vendor=ibm
1804 vxsim* | vxworks* | windiss*)
1805 vendor=wrs
1807 aux*)
1808 vendor=apple
1810 hms*)
1811 vendor=hitachi
1813 mpw* | macos*)
1814 vendor=apple
1816 *mint | mint[0-9]* | *MiNT | MiNT[0-9]*)
1817 vendor=atari
1819 vos*)
1820 vendor=stratus
1822 esac
1823 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1825 esac
1827 echo "$basic_machine-$os"
1828 exit
1830 # Local variables:
1831 # eval: (add-hook 'before-save-hook 'time-stamp)
1832 # time-stamp-start: "timestamp='"
1833 # time-stamp-format: "%:y-%02m-%02d"
1834 # time-stamp-end: "'"
1835 # End: