2 # Configuration validation subroutine script, version 1.1.
3 # Copyright (C) 1991, 92-97, 1998, 1999 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.
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.
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.
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., 59 Temple Place - Suite 330,
21 # Boston, MA 02111-1307, USA.
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.
28 # Configuration subroutine to validate and canonicalize a configuration type.
29 # Supply the specified configuration type as an argument.
30 # If it is invalid, we print an error message on stderr and exit with code 1.
31 # Otherwise, we print the canonical config type on stdout and succeed.
33 # This file is supposed to be the same for all GNU packages
34 # and recognize all the CPU types, system types and aliases
35 # that are meaningful with *any* GNU software.
36 # Each package is responsible for reporting which valid configurations
37 # it does not support. The user should be able to distinguish
38 # a failure to support a valid configuration from a meaningless
41 # The goal of this file is to map all the various variations of a given
42 # machine specification into a single specification in the form:
43 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
44 # or in some cases, the newer four-part form:
45 # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
46 # It is wrong to echo any other type of specification.
50 echo Configuration name missing.
1>&2
51 echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
52 echo "or $0 ALIAS" 1>&2
53 echo where ALIAS is a recognized configuration
type.
1>&2
57 # First pass through any local machine types.
67 # CYGNUS LOCAL marketing-names
68 # Here we handle any "marketing" names - translating them to
72 set mipstx39-unknown-elf
77 # END CYGNUS LOCAL marketing-names
79 # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
80 # Here we must recognize all the valid KERNEL-OS combinations.
81 maybe_os
=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
85 basic_machine
=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
88 basic_machine
=`echo $1 | sed 's/-[^-]*$//'`
89 if [ $basic_machine != $1 ]
90 then os
=`echo $1 | sed 's/.*-/-/'`
95 ### Let's recognize common machines as not being operating systems so
96 ### that things like config.sub decstation-3100 work. We also
97 ### recognize some manufacturers as not being operating systems, so we
98 ### can provide default operating systems below.
101 # Prevent following clause from handling this invalid input.
103 -dec* |
-mips* |
-sequent* |
-encore* |
-pc532* |
-sgi* |
-sony* | \
104 -att* |
-7300* |
-3300* |
-delta* |
-motorola* |
-sun[234]* | \
105 -unicom* |
-ibm* |
-next |
-hp |
-isi* |
-apollo |
-altos* | \
106 -convergent* |
-ncr* |
-news |
-32* |
-3600* |
-3100* |
-hitachi* |\
107 -c[123]* |
-convex* |
-sun |
-crds |
-omron* |
-dg |
-ultra |
-tti* | \
108 -harris |
-dolphin |
-highlevel |
-gould |
-cbm |
-ns |
-masscomp | \
113 -sim |
-cisco |
-oki |
-wec |
-winbond ) # EGCS LOCAL
128 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
132 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
135 os
=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
136 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
139 # Don't forget version if it is 3.2v4 or newer.
140 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
144 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
147 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
151 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
154 basic_machine
=clipper-intergraph
157 basic_machine
=`echo $1 | sed -e 's/86-.*/86-pc/'`
163 basic_machine
=`echo $1 | sed -e 's/86-.*/86-sequent/'`
166 os
=`echo $os | sed -e 's/windowsnt/winnt/'`
173 # Decode aliases for certain CPU-COMPANY combinations.
174 case $basic_machine in
175 # Recognize the basic CPU types without company name.
176 # Some are omitted here because they have special meanings below.
177 tahoe | i860 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
178 | arme
[lb
] | pyramid | mn10200 | mn10300 \
179 | tron | a29k |
580 | i960 | h8300 \
180 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
181 | alpha | alphaev
[45678] | alphaev56 | alphapca5
[67] \
182 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
183 |
1750a | dsp16xx | pdp11 \
184 | mips64 | mipsel | mips64el | mips64orion | mips64orionel \
185 | mipstx39 | mipstx39el \
186 | sparc | sparclet | sparclite | sparc64 | sparc86x | v850 \
188 basic_machine
=$basic_machine-unknown
190 m88110 | m680
[012346]0 | m683?
2 | m68360 | m5200 | z8k | v70 \
191 | h8500 | w65 | fr30 | mcore
) # CYGNUS / EGCS LOCAL
192 basic_machine
=$basic_machine-unknown
194 strongarm
) # CYGNUS LOCAL nickc/strongarm
195 basic_machine
=$basic_machine-unknown
198 basic_machine
=$basic_machine-unknown
200 # CYGNUS LOCAL vr4111/gavin
201 mips64vr4111 | mips64vr4111el
)
202 basic_machine
=$basic_machine-unknown
204 # END CYGNUS LOCAL vr4111/gavin
205 mips64vr4300 | mips64vr4300el
) # EGCS LOCAL jsmith/vr4300
206 basic_machine
=$basic_machine-unknown
208 mips64vr4100 | mips64vr4100el
) # EGCS LOCAL jsmith/vr4100
209 basic_machine
=$basic_machine-unknown
211 mips64vr5000 | mips64vr5000el
) # EGCS LOCAL ian/vr5000
212 basic_machine
=$basic_machine-unknown
215 basic_machine
=$basic_machine-unknown
217 tic30
) # CYGNUS LOCAL ian/tic30
218 basic_machine
=$basic_machine-unknown
220 c30
) # CYGNUS LOCAL ian/tic30
221 basic_machine
=tic30-unknown
224 tic80
) # CYGNUS LOCAL fnf/TIc80
225 basic_machine
=$basic_machine-unknown
227 v850e
) # CYGNUS LOCAL jtc/v850
228 basic_machine
=$basic_machine-unknown
230 v850ea
) # CYGNUS LOCAL jtc/v850
231 basic_machine
=$basic_machine-unknown
234 basic_machine
=$basic_machine-unknown
236 d30v
) # CYGNUS LOCAL hunt/d30v
237 basic_machine
=$basic_machine-unknown
239 # We use `pc' rather than `unknown'
240 # because (1) that's what they normally are, and
241 # (2) the word "unknown" tends to confuse beginning users.
243 basic_machine
=$basic_machine-pc
245 # Object if more than one company name word.
247 echo Invalid configuration \
`$1\': machine \`$basic_machine\' not recognized
1>&2
250 # Recognize the basic CPU types with company name.
251 vax-
* | tahoe-
* | i
[34567]86-* | i860-
* | m32r-
* | m68k-
* | m68000-
* \
252 | m88k-
* | sparc-
* | ns32k-
* | fx80-
* | arc-
* | arm-
* | c
[123]* \
253 | mips-
* | pyramid-
* | tron-
* | a29k-
* | romp-
* | rs6000-
* \
254 | power-
* | none-
* |
580-* | cray2-
* | h8300-
* | i960-
* \
256 | hppa-
* | hppa1.0
-* | hppa1.1
-* \
257 | hppa2.0
-* | hppa2.0w-
* | hppa2.0n-
* \
258 | alpha-
* | alphaev
[45678]-* | alphaev56-
* | alphapca5
[67]-* \
259 | we32k-
* | cydra-
* | ns16k-
* | pn-
* | np1-
* \
260 | xps100-
* | clipper-
* | orion-
* \
261 | sparclite-
* | pdp11-
* | sh-
* | powerpc-
* | powerpcle-
* \
262 | sparc64-
* | sparcv9-
* | sparc86x-
* | mips64-
* | mipsel-
* \
263 | mips64el-
* | mips64orion-
* | mips64orionel-
* \
264 | mipstx39-
* | mipstx39el-
* \
266 | fr30-
* | mcore-
*) # CYGNUS LOCAL
268 m88110-
* | m680
[01234]0-* | m683?
2-* | m68360-
* | z8k-
* | h8500-
* | d10v-
*) # EGCS LOCAL
270 strongarm-
*) # CYGNUS LOCAL nickc/strongarm
272 thumb-
*) # EGCS LOCAL angela/thumb
276 v850e-
*) # CYGNUS LOCAL
278 v850ea-
*) # CYGNUS LOCAL
282 # CYGNUS LOCAL vr4111/gavin
283 mips64vr4111-
* | mips64vr4111el-
*)
285 # END CYGNUS LOCAL vr4111/gavin
286 mips64vr4300-
* | mips64vr4300el-
*) # EGCS LOCAL jsmith/vr4300
288 mips64vr4100-
* | mips64vr4100el-
*) # EGCS LOCAL jsmith/vr4100
290 mips16-
*) # EGCS LOCAL krk/mips16
292 tic30-
*) # EGCS LOCAL ian/tic30
294 c30-
*) # EGCS LOCAL ian/tic30
295 basic_machine
=tic30-unknown
297 tic80-
*) # CYGNUS LOCAL fnf/TIc80
299 # Recognize the various machine names and aliases which stand
300 # for a CPU type and a company and sometimes even an OS.
302 basic_machine
=i386-unknown
305 3b1 |
7300 |
7300-att | att-7300 | pc7300 | safari | unixpc
)
306 basic_machine
=m68000-att
309 basic_machine
=we32k-att
311 a29khif
) # EGCS LOCAL
312 basic_machine
=a29k-amd
315 adobe68k
) # EGCS LOCAL
316 basic_machine
=m68010-adobe
320 basic_machine
=fx80-alliant
323 basic_machine
=m68k-altos
326 basic_machine
=a29k-none
330 basic_machine
=580-amdahl
334 basic_machine
=m68k-cbm
337 basic_machine
=m68k-cbm
341 basic_machine
=m68k-cbm
345 basic_machine
=m68k-apollo
348 apollo68bsd
) # EGCS LOCAL
349 basic_machine
=m68k-apollo
353 basic_machine
=m68k-apple
357 basic_machine
=ns32k-sequent
361 basic_machine
=c1-convex
365 basic_machine
=c2-convex
369 basic_machine
=c32-convex
373 basic_machine
=c34-convex
377 basic_machine
=c38-convex
381 basic_machine
=ymp-cray
385 basic_machine
=cray2-cray
389 basic_machine
=c90-cray
393 basic_machine
=m68k-crds
396 basic_machine
=m68k-da30
398 decstation | decstation-3100 | pmax | pmax-
* | pmin | dec3100 | decstatn
)
399 basic_machine
=mips-dec
401 delta |
3300 | motorola-3300 | motorola-delta \
402 |
3300-motorola | delta-motorola
)
403 basic_machine
=m68k-motorola
406 basic_machine
=m88k-motorola
410 basic_machine
=rs6000-bull
414 basic_machine
=m68k-bull
418 basic_machine
=a29k-amd
422 basic_machine
=elxsi-elxsi
425 encore | umax | mmax
)
426 basic_machine
=ns32k-encore
428 es1800 | OSE68k | ose68k | ose | OSE
) # EGCS LOCAL
429 basic_machine
=m68k-ericsson
433 basic_machine
=i860-alliant
436 basic_machine
=ns32k-ns
439 basic_machine
=tron-gmicro
443 basic_machine
=hppa1.1
-hitachi
447 basic_machine
=h8300-hitachi
450 h8300xray
) # EGCS LOCAL
451 basic_machine
=h8300-hitachi
454 h8500hms
) # EGCS LOCAL
455 basic_machine
=h8500-hitachi
459 basic_machine
=m88k-harris
463 basic_machine
=m68k-hp
466 basic_machine
=m68k-hp
470 basic_machine
=m68k-hp
474 basic_machine
=hppa1.1
-winbond
477 op50n-
*) # EGCS LOCAL
478 basic_machine
=hppa1.1
-oki
481 op60c-
*) # EGCS LOCAL
482 basic_machine
=hppa1.1
-oki
486 basic_machine
=hppa1.1
-hp
489 hp3k9
[0-9][0-9] | hp9
[0-9][0-9])
490 basic_machine
=hppa1.0
-hp
492 hp9k2
[0-9][0-9] | hp9k31
[0-9])
493 basic_machine
=m68000-hp
496 basic_machine
=m68k-hp
498 hp9k6
[0-9][0-9] | hp6
[0-9][0-9] )
499 basic_machine
=hppa1.0
-hp
501 hp9k7
[0-79][0-9] | hp7
[0-79][0-9] )
502 basic_machine
=hppa1.1
-hp
504 hp9k78
[0-9] | hp78
[0-9] )
505 # FIXME: really hppa2.0-hp
506 basic_machine
=hppa1.1
-hp
508 hp9k8
[67]1 | hp8
[67]1 | hp9k80
[24] | hp80
[24] | \
509 hp9k8
[78]9 | hp8
[78]9 | hp9k893 | hp893
)
510 # FIXME: really hppa2.0-hp
511 basic_machine
=hppa1.1
-hp
513 hp9k8
[0-9][13679] | hp8
[0-9][13679] )
514 basic_machine
=hppa1.1
-hp
516 hp9k8
[0-9][0-9] | hp8
[0-9][0-9])
517 basic_machine
=hppa1.0
-hp
522 hppaosf
) # EGCS LOCAL
523 basic_machine
=hppa1.1
-hp
527 basic_machine
=i370-ibm
530 # I'm not sure what "Sysv32" means. Should this be sysv3.2?
532 basic_machine
=`echo $1 | sed -e 's/86.*/86-pc/'`
536 basic_machine
=`echo $1 | sed -e 's/86.*/86-pc/'`
540 basic_machine
=`echo $1 | sed -e 's/86.*/86-pc/'`
544 basic_machine
=`echo $1 | sed -e 's/86.*/86-pc/'`
547 i386mach
) # EGCS LOCAL
548 basic_machine
=i386-mach
551 i386-vsta | vsta
) # EGCS LOCAL
552 basic_machine
=i386-unknown
555 i386-go32 | go32
) # EGCS LOCAL
556 basic_machine
=i386-unknown
559 i386-mingw32 | mingw32
)
560 basic_machine
=i386-unknown
564 basic_machine
=mips-sgi
574 basic_machine
=m68k-isi
578 basic_machine
=m88k-omron
581 basic_machine
=mips-mips
585 basic_machine
=ns32k-utek
589 basic_machine
=m68000-convergent
592 basic_machine
=mipsel-unknown
596 basic_machine
=mips-unknown
600 basic_machine
=`echo $basic_machine | sed -e 's/mips3/mips64/'`
603 basic_machine
=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
605 monitor
) # EGCS LOCAL
606 basic_machine
=m68k-rom68k
610 basic_machine
=i386-unknown
614 basic_machine
=i486-ncr
618 basic_machine
=i386-unknown
# EGCS LOCAL
622 basic_machine
=armv4l-corel
625 news | news700 | news800 | news900
)
626 basic_machine
=m68k-sony
630 basic_machine
=m68030-sony
633 news-3600 | risc-news
)
634 basic_machine
=mips-sony
638 basic_machine
=v70-nec
642 basic_machine
=m68k-next
655 basic_machine
=m68k-harris
659 basic_machine
=m88k-harris
663 basic_machine
=i960-intel
667 basic_machine
=i960-intel
671 basic_machine
=np1-gould
673 OSE68000 | ose68000
) # EGCS LOCAL
674 basic_machine
=m68000-ericsson
678 basic_machine
=m68k-none
682 basic_machine
=hppa1.1
-hitachi
686 basic_machine
=i860-intel
690 basic_machine
=sparc-tti
693 basic_machine
=m68k-tti
696 basic_machine
=ns32k-pc532
698 pentium | p5 | k5 | nexen
)
699 basic_machine
=i586-pc
701 pentiumpro | p6 | k6 |
6x86
)
702 basic_machine
=i686-pc
704 pentiumii | pentium2
)
705 basic_machine
=i786-pc
707 pentium-
* | p5-
* | k5-
* | nexen-
*)
708 basic_machine
=i586-
`echo $basic_machine | sed 's/^[^-]*-//'`
710 pentiumpro-
* | p6-
* | k6-
* |
6x86-
*)
711 basic_machine
=i686-
`echo $basic_machine | sed 's/^[^-]*-//'`
713 pentiumii-
* | pentium2-
*)
714 basic_machine
=i786-
`echo $basic_machine | sed 's/^[^-]*-//'`
717 basic_machine
=pn-gould
719 power
) basic_machine
=rs6000-ibm
721 ppc
) basic_machine
=powerpc-unknown
723 ppc-
*) basic_machine
=powerpc-
`echo $basic_machine | sed 's/^[^-]*-//'`
725 ppcle | powerpclittle | ppc-le | powerpc-little
)
726 basic_machine
=powerpcle-unknown
728 ppcle-
* | powerpclittle-
*)
729 basic_machine
=powerpcle-
`echo $basic_machine | sed 's/^[^-]*-//'`
732 basic_machine
=i386-ibm
735 basic_machine
=m68k-rom68k
739 basic_machine
=mips-siemens
742 basic_machine
=romp-ibm
744 sa29200
) # EGCS LOCAL
745 basic_machine
=a29k-amd
749 basic_machine
=i386-sequent
752 basic_machine
=sh-hitachi
755 sparclite-wrs
) # EGCS LOCAL
756 basic_machine
=sparclite-wrs
760 basic_machine
=m68k-bull
764 basic_machine
=spur-unknown
767 basic_machine
=m68k-tandem
769 stratus
) # EGCS LOCAL
770 basic_machine
=i860-stratus
774 basic_machine
=m68000-sun
777 basic_machine
=m68000-sun
781 basic_machine
=m68000-sun
785 basic_machine
=m68k-sun
789 basic_machine
=m68k-sun
793 basic_machine
=sparc-sun
797 basic_machine
=sparc-sun
801 basic_machine
=sparc-sun
805 basic_machine
=m68k-sun
808 basic_machine
=sparc-sun
810 sun386 | sun386i | roadrunner
)
811 basic_machine
=i386-sun
814 basic_machine
=i386-sequent
818 basic_machine
=mipstx39-unknown
821 basic_machine
=mipstx39el-unknown
824 basic_machine
=m68k-ncr
827 basic_machine
=a29k-amd
831 basic_machine
=a29k-nyu
834 v810 | necv810
) # EGCS LOCAL
835 basic_machine
=v810-nec
839 basic_machine
=vax-dec
843 basic_machine
=vax-dec
847 basic_machine
=f301-fujitsu
850 basic_machine
=i960-wrs
854 basic_machine
=m68k-wrs
858 basic_machine
=a29k-wrs
862 basic_machine
=w65-wdc
866 basic_machine
=xmp-cray
870 basic_machine
=xps100-honeywell
872 z8k-
*-coff) # EGCS LOCAL
873 basic_machine
=z8k-unknown
877 basic_machine
=none-none
881 # Here we handle the default manufacturer of certain CPU types. It is in
882 # some cases the only manufacturer, in others, it is the most popular.
884 basic_machine
=hppa1.1
-winbond
887 basic_machine
=hppa1.1
-oki
890 basic_machine
=hppa1.1
-oki
893 if [ x
$os = x-linux-gnu
]; then
894 basic_machine
=mips-unknown
896 basic_machine
=mips-mips
900 basic_machine
=romp-ibm
903 basic_machine
=rs6000-ibm
906 basic_machine
=vax-dec
909 basic_machine
=pdp11-dec
912 basic_machine
=we32k-att
915 basic_machine
=sparc-sun
918 basic_machine
=cydra-cydrome
921 basic_machine
=orion-highlevel
924 basic_machine
=clipper-highlevel
926 mac | mpw | mac-mpw
) # EGCS LOCAL
927 basic_machine
=m68k-apple
929 pmac | pmac-mpw
) # EGCS LOCAL
930 basic_machine
=powerpc-apple
933 basic_machine
=c4x-none
937 echo Invalid configuration \
`$1\': machine \`$basic_machine\' not recognized
1>&2
942 # Here we canonicalize certain aliases for manufacturers.
943 case $basic_machine in
945 basic_machine
=`echo $basic_machine | sed 's/digital.*/dec/'`
948 basic_machine
=`echo $basic_machine | sed 's/commodore.*/cbm/'`
954 # Decode manufacturer-specific aliases for certain operating systems.
959 # First match some system type aliases
960 # that might get confused with valid system types.
961 # -solaris* is a basic system type, with this one exception.
962 -solaris1 |
-solaris1.
*)
963 os
=`echo $os | sed -e 's|solaris1|sunos4|'`
975 os
=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
977 # First accept the basic system types.
978 # The portable systems comes first.
979 # Each alternative MUST END IN A *, to match a version number.
980 # -sysv* is not here because it comes later, after sysvr4.
981 -gnu* |
-bsd* |
-mach* |
-minix* |
-genix* |
-ultrix* |
-irix* \
982 |
-*vms
* |
-sco* |
-esix* |
-isc* |
-aix* |
-sunos |
-sunos[34]*\
983 |
-hpux* |
-unos* |
-osf* |
-luna* |
-dgux* |
-solaris* |
-sym* \
984 |
-amigaos* |
-amigados* |
-msdos* |
-newsos* |
-unicos* |
-aof* \
986 |
-nindy* |
-vxsim* |
-vxworks* |
-ebmon* |
-hms* |
-mvs* \
987 |
-clix* |
-riscos* |
-uniplus* |
-iris* |
-rtu* |
-xenix* \
988 |
-hiux* |
-386bsd* |
-netbsd* |
-openbsd* |
-freebsd* |
-riscix* \
989 |
-lynxos* |
-bosx* |
-nextstep* |
-cxux* |
-aout* |
-elf* |
-oabi* \
990 |
-ptx* |
-coff* |
-ecoff* |
-winnt* |
-domain* |
-vsta* \
991 |
-udi* |
-eabi* |
-lites* |
-ieee* |
-go32* |
-aux* \
992 |
-cygwin* |
-pe* |
-psos* |
-moss* |
-proelf* |
-rtems* \
993 |
-mingw32* |
-linux-gnu* |
-uxpv* |
-beos* |
-mpeix* |
-udk* \
994 |
-interix* |
-uwin* )
995 # Remember, each alternative MUST END IN *, to match a version number.
998 -sim |
-es1800* |
-hms* |
-xray |
-os68k* |
-none* |
-v88r* \
999 |
-windows* |
-osx |
-abug |
-netware* |
-os9* |
-beos* \
1000 |
-macos* |
-mpw* |
-magic* |
-mon960* |
-lnews* )
1003 os
=`echo $os | sed -e 's|mac|macos|'`
1007 os
=`echo $os | sed -e 's|linux|linux-gnu|'`
1010 os
=`echo $os | sed -e 's|sunos5|solaris2|'`
1013 os
=`echo $os | sed -e 's|sunos6|solaris3|'`
1030 -386bsd) # EGCS LOCAL
1039 # Preserve the version number of sinix5.
1041 os
=`echo $os | sed -e 's|sinix|sysv|'`
1061 # This must come after -sysvr4.
1067 -es1800*) # EGCS LOCAL
1076 # Get rid of the `-' at the beginning of $os.
1077 os
=`echo $os | sed 's/[^-]*-//'`
1078 echo Invalid configuration \
`$1\': system \`$os\' not recognized
1>&2
1084 # Here we handle the default operating systems that come with various machines.
1085 # The value should be what the vendor currently ships out the door with their
1086 # machine or put another way, the most popular os provided with the machine.
1088 # Note that if you're going to try to match "-MANUFACTURER" here (say,
1089 # "-sun"), then you have to tell the case statement up towards the top
1090 # that MANUFACTURER isn't an operating system. Otherwise, code above
1091 # will signal an error saying that MANUFACTURER isn't an operating
1092 # system, and we'll never get to this point.
1094 case $basic_machine in
1118 # This also exists in the configure program, but was not the
1122 m68
*-cisco) # EGCS LOCAL
1125 mips
*-cisco) # EGCS LOCAL
1128 mips
*-*) # EGCS LOCAL
1131 *-tti) # must be before sparc entry or we get the wrong os.
1146 *-winbond) # EGCS LOCAL
1158 i860-
* |
*-att |
*-ncr |
*-altos |
*-motorola |
*-convergent)
1215 *-rom68k) # EGCS LOCAL
1218 *-*bug
) # EGCS LOCAL
1221 *-apple) # EGCS LOCAL
1230 # Here we handle the case where we know the os, and the CPU type, but not the
1231 # manufacturer. We pick the logical manufacturer.
1233 case $basic_machine in
1275 -vxsim* |
-vxworks*)
1284 -mpw* |
-macos*) # EGCS LOCAL
1288 basic_machine
=`echo $basic_machine | sed "s/unknown/$vendor/"`
1292 echo $basic_machine$os