source: rtems/config.sub @ 6f9c75c3

4.104.114.84.95
Last change on this file since 6f9c75c3 was 6f9c75c3, checked in by Joel Sherrill <joel.sherrill@…>, on 01/16/98 at 16:56:48

Ralf Corsepius reported a number of missing CVS Id's:

RTEMS is under CVS control and has been since rtems 3.1.16 which was
around May 1995. So I just to add the $Id$. If you notice other files
with missing $Id$'s let me know. I try to keep w\up with it.

Now that you have asked -- I'll attach a list of files lacking an RCS-Id to
this mail. This list has been generated by a little sh-script I'll also
enclose.

  • Property mode set to 100755
File size: 18.9 KB
Line 
1#! /bin/sh
2# Configuration validation subroutine script, version 1.1.
3#   Copyright (C) 1991, 92, 93, 94, 95, 1996 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.
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., 59 Temple Place - Suite 330,
21# Boston, MA 02111-1307, 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# 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.
32
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
39# configuration.
40#
41#  $Id$
42#
43
44# The goal of this file is to map all the various variations of a given
45# machine specification into a single specification in the form:
46#       CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
47# or in some cases, the newer four-part form:
48#       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
49# It is wrong to echo any other type of specification.
50
51if [ x$1 = x ]
52then
53        echo Configuration name missing. 1>&2
54        echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
55        echo "or     $0 ALIAS" 1>&2
56        echo where ALIAS is a recognized configuration type. 1>&2
57        exit 1
58fi
59
60# First pass through any local machine types.
61case $1 in
62        *local*)
63                echo $1
64                exit 0
65                ;;
66        *)
67        ;;
68esac
69
70# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
71# Here we must recognize all the valid KERNEL-OS combinations.
72maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
73case $maybe_os in
74  linux-gnu*)
75    os=-$maybe_os
76    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
77    ;;
78  *)
79    basic_machine=`echo $1 | sed 's/-[^-]*$//'`
80    if [ $basic_machine != $1 ]
81    then os=`echo $1 | sed 's/.*-/-/'`
82    else os=; fi
83    ;;
84esac
85
86### Let's recognize common machines as not being operating systems so
87### that things like config.sub decstation-3100 work.  We also
88### recognize some manufacturers as not being operating systems, so we
89### can provide default operating systems below.
90case $os in
91        -sun*os*)
92                # Prevent following clause from handling this invalid input.
93                ;;
94        -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
95        -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
96        -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
97        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
98        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
99        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
100        -apple)
101                os=
102                basic_machine=$1
103                ;;
104        -hiux*)
105                os=-hiuxwe2
106                ;;
107        -sco5)
108                os=sco3.2v5
109                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
110                ;;
111        -sco4)
112                os=-sco3.2v4
113                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
114                ;;
115        -sco3.2.[4-9]*)
116                os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
117                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
118                ;;
119        -sco3.2v[4-9]*)
120                # Don't forget version if it is 3.2v4 or newer.
121                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
122                ;;
123        -sco*)
124                os=-sco3.2v2
125                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
126                ;;
127        -isc)
128                os=-isc2.2
129                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
130                ;;
131        -clix*)
132                basic_machine=clipper-intergraph
133                ;;
134        -isc*)
135                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
136                ;;
137        -lynx*)
138                os=-lynxos
139                ;;
140        -ptx*)
141                basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
142                ;;
143        -windowsnt*)
144                os=`echo $os | sed -e 's/windowsnt/winnt/'`
145                ;;
146        -psos*)
147                os=-psos
148                ;;
149esac
150
151# Decode aliases for certain CPU-COMPANY combinations.
152case $basic_machine in
153        # Recognize the basic CPU types without company name.
154        # Some are omitted here because they have special meanings below.
155        tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \
156                | arme[lb] | pyramid \
157                | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
158                | alpha | we32k | ns16k | clipper | i370 | sh \
159                | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
160                | pdp11 | mips64el | mips64orion | mips64orionel \
161                | sparc | sparclet | sparclite | sparc64 | no_cpu)
162                case $os in
163                        -rtems*)
164                                ;;
165                        *)
166                                basic_machine=$basic_machine-unknown
167                                ;;
168                esac
169                ;;
170        # We use `pc' rather than `unknown'
171        # because (1) that's what they normally are, and
172        # (2) the word "unknown" tends to confuse beginning users.
173        i[3456]86)
174                case $os in
175                        -rtems*)
176                                ;;
177                        *)
178                                basic_machine=$basic_machine-pc
179                                ;;
180                esac
181                ;;
182        # Object if more than one company name word.
183        *-*-*)
184                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
185                exit 1
186                ;;
187        # Recognize the basic CPU types with company name.
188        vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
189              | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
190              | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
191              | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
192              | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
193              | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
194              | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
195              | mips64el-* | mips64orion-* | mips64orionel-* | f301-*)
196                ;;
197        # Recognize the various machine names and aliases which stand
198        # for a CPU type and a company and sometimes even an OS.
199        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
200                basic_machine=m68000-att
201                ;;
202        3b*)
203                basic_machine=we32k-att
204                ;;
205        alliant | fx80)
206                basic_machine=fx80-alliant
207                ;;
208        altos | altos3068)
209                basic_machine=m68k-altos
210                ;;
211        am29k)
212                basic_machine=a29k-none
213                os=-bsd
214                ;;
215        amdahl)
216                basic_machine=580-amdahl
217                os=-sysv
218                ;;
219        amiga | amiga-*)
220                basic_machine=m68k-cbm
221                ;;
222        amigados)
223                basic_machine=m68k-cbm
224                os=-amigados
225                ;;
226        amigaunix | amix)
227                basic_machine=m68k-cbm
228                os=-sysv4
229                ;;
230        apollo68)
231                basic_machine=m68k-apollo
232                os=-sysv
233                ;;
234        aux)
235                basic_machine=m68k-apple
236                os=-aux
237                ;;
238        balance)
239                basic_machine=ns32k-sequent
240                os=-dynix
241                ;;
242        convex-c1)
243                basic_machine=c1-convex
244                os=-bsd
245                ;;
246        convex-c2)
247                basic_machine=c2-convex
248                os=-bsd
249                ;;
250        convex-c32)
251                basic_machine=c32-convex
252                os=-bsd
253                ;;
254        convex-c34)
255                basic_machine=c34-convex
256                os=-bsd
257                ;;
258        convex-c38)
259                basic_machine=c38-convex
260                os=-bsd
261                ;;
262        cray | ymp)
263                basic_machine=ymp-cray
264                os=-unicos
265                ;;
266        cray2)
267                basic_machine=cray2-cray
268                os=-unicos
269                ;;
270        [ctj]90-cray)
271                basic_machine=c90-cray
272                os=-unicos
273                ;;
274        crds | unos)
275                basic_machine=m68k-crds
276                ;;
277        da30 | da30-*)
278                basic_machine=m68k-da30
279                ;;
280        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
281                basic_machine=mips-dec
282                ;;
283        delta | 3300 | motorola-3300 | motorola-delta \
284              | 3300-motorola | delta-motorola)
285                basic_machine=m68k-motorola
286                ;;
287        delta88)
288                basic_machine=m88k-motorola
289                os=-sysv3
290                ;;
291        dpx20 | dpx20-*)
292                basic_machine=rs6000-bull
293                os=-bosx
294                ;;
295        dpx2* | dpx2*-bull)
296                basic_machine=m68k-bull
297                os=-sysv3
298                ;;
299        ebmon29k)
300                basic_machine=a29k-amd
301                os=-ebmon
302                ;;
303        elxsi)
304                basic_machine=elxsi-elxsi
305                os=-bsd
306                ;;
307        encore | umax | mmax)
308                basic_machine=ns32k-encore
309                ;;
310        fx2800)
311                basic_machine=i860-alliant
312                ;;
313        genix)
314                basic_machine=ns32k-ns
315                ;;
316        gmicro)
317                basic_machine=tron-gmicro
318                os=-sysv
319                ;;
320        h3050r* | hiux*)
321                basic_machine=hppa1.1-hitachi
322                os=-hiuxwe2
323                ;;
324        h8300hms)
325                basic_machine=h8300-hitachi
326                os=-hms
327                ;;
328        harris)
329                basic_machine=m88k-harris
330                os=-sysv3
331                ;;
332        hp300-*)
333                basic_machine=m68k-hp
334                ;;
335        hp300bsd)
336                basic_machine=m68k-hp
337                os=-bsd
338                ;;
339        hp300hpux)
340                basic_machine=m68k-hp
341                os=-hpux
342                ;;
343        hp9k2[0-9][0-9] | hp9k31[0-9])
344                basic_machine=m68000-hp
345                ;;
346        hp9k3[2-9][0-9])
347                basic_machine=m68k-hp
348                ;;
349        hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
350                basic_machine=hppa1.1-hp
351                ;;
352        hp9k8[0-9][0-9] | hp8[0-9][0-9])
353                basic_machine=hppa1.0-hp
354                ;;
355        hppa-next)
356                os=-nextstep3
357                ;;
358        i370-ibm* | ibm*)
359                basic_machine=i370-ibm
360                os=-mvs
361                ;;
362# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
363        i[3456]86v32)
364                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
365                os=-sysv32
366                ;;
367        i[3456]86v4*)
368                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
369                os=-sysv4
370                ;;
371        i[3456]86v)
372                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
373                os=-sysv
374                ;;
375        i[3456]86sol2)
376                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
377                os=-solaris2
378                ;;
379        iris | iris4d)
380                basic_machine=mips-sgi
381                case $os in
382                    -irix*)
383                        ;;
384                    *)
385                        os=-irix4
386                        ;;
387                esac
388                ;;
389        isi68 | isi)
390                basic_machine=m68k-isi
391                os=-sysv
392                ;;
393        m88k-omron*)
394                basic_machine=m88k-omron
395                ;;
396        magnum | m3230)
397                basic_machine=mips-mips
398                os=-sysv
399                ;;
400        merlin)
401                basic_machine=ns32k-utek
402                os=-sysv
403                ;;
404        miniframe)
405                basic_machine=m68000-convergent
406                ;;
407        mips3*-*)
408                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
409                ;;
410        mips3*)
411                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
412                ;;
413        ncr3000)
414                basic_machine=i486-ncr
415                os=-sysv4
416                ;;
417        news | news700 | news800 | news900)
418                basic_machine=m68k-sony
419                os=-newsos
420                ;;
421        news1000)
422                basic_machine=m68030-sony
423                os=-newsos
424                ;;
425        news-3600 | risc-news)
426                basic_machine=mips-sony
427                os=-newsos
428                ;;
429        next | m*-next )
430                basic_machine=m68k-next
431                case $os in
432                    -nextstep* )
433                        ;;
434                    -ns2*)
435                      os=-nextstep2
436                        ;;
437                    *)
438                      os=-nextstep3
439                        ;;
440                esac
441                ;;
442        nh3000)
443                basic_machine=m68k-harris
444                os=-cxux
445                ;;
446        nh[45]000)
447                basic_machine=m88k-harris
448                os=-cxux
449                ;;
450        nindy960)
451                basic_machine=i960-intel
452                os=-nindy
453                ;;
454        np1)
455                basic_machine=np1-gould
456                ;;
457        pa-hitachi)
458                basic_machine=hppa1.1-hitachi
459                os=-hiuxwe2
460                ;;
461        paragon)
462                basic_machine=i860-intel
463                os=-osf
464                ;;
465        pbd)
466                basic_machine=sparc-tti
467                ;;
468        pbb)
469                basic_machine=m68k-tti
470                ;;
471        pc532 | pc532-*)
472                basic_machine=ns32k-pc532
473                ;;
474        pentium | p5)
475                basic_machine=i586-intel
476                ;;
477        pentiumpro | p6)
478                basic_machine=i686-intel
479                ;;
480        pentium-* | p5-*)
481                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
482                ;;
483        pentiumpro-* | p6-*)
484                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
485                ;;
486        k5)
487                # We don't have specific support for AMD's K5 yet, so just call it a Pentium
488                basic_machine=i586-amd
489                ;;
490        nexen)
491                # We don't have specific support for Nexgen yet, so just call it a Pentium
492                basic_machine=i586-nexgen
493                ;;
494        pn)
495                basic_machine=pn-gould
496                ;;
497        power)  basic_machine=rs6000-ibm
498                ;;
499        ppc)    basic_machine=powerpc-unknown
500                ;;
501        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
502                ;;
503        ppcle | powerpclittle | ppc-le | powerpc-little)
504                basic_machine=powerpcle-unknown
505                ;;
506        ppcle-* | powerpclittle-*)
507                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
508                ;;
509        ps2)
510                basic_machine=i386-ibm
511                ;;
512        rm[46]00)
513                basic_machine=mips-siemens
514                ;;
515        rtpc | rtpc-*)
516                basic_machine=romp-ibm
517                ;;
518        sequent)
519                basic_machine=i386-sequent
520                ;;
521        sh)
522                basic_machine=sh-hitachi
523                os=-hms
524                ;;
525        sps7)
526                basic_machine=m68k-bull
527                os=-sysv2
528                ;;
529        spur)
530                basic_machine=spur-unknown
531                ;;
532        sun2)
533                basic_machine=m68000-sun
534                ;;
535        sun2os3)
536                basic_machine=m68000-sun
537                os=-sunos3
538                ;;
539        sun2os4)
540                basic_machine=m68000-sun
541                os=-sunos4
542                ;;
543        sun3os3)
544                basic_machine=m68k-sun
545                os=-sunos3
546                ;;
547        sun3os4)
548                basic_machine=m68k-sun
549                os=-sunos4
550                ;;
551        sun4os3)
552                basic_machine=sparc-sun
553                os=-sunos3
554                ;;
555        sun4os4)
556                basic_machine=sparc-sun
557                os=-sunos4
558                ;;
559        sun4sol2)
560                basic_machine=sparc-sun
561                os=-solaris2
562                ;;
563        sun3 | sun3-*)
564                basic_machine=m68k-sun
565                ;;
566        sun4)
567                basic_machine=sparc-sun
568                ;;
569        sun386 | sun386i | roadrunner)
570                basic_machine=i386-sun
571                ;;
572        symmetry)
573                basic_machine=i386-sequent
574                os=-dynix
575                ;;
576        tower | tower-32)
577                basic_machine=m68k-ncr
578                ;;
579        udi29k)
580                basic_machine=a29k-amd
581                os=-udi
582                ;;
583        ultra3)
584                basic_machine=a29k-nyu
585                os=-sym1
586                ;;
587        vaxv)
588                basic_machine=vax-dec
589                os=-sysv
590                ;;
591        vms)
592                basic_machine=vax-dec
593                os=-vms
594                ;;
595       vpp*|vx|vx-*)
596               basic_machine=f301-fujitsu
597               ;;
598        vxworks960)
599                basic_machine=i960-wrs
600                os=-vxworks
601                ;;
602        vxworks68)
603                basic_machine=m68k-wrs
604                os=-vxworks
605                ;;
606        vxworks29k)
607                basic_machine=a29k-wrs
608                os=-vxworks
609                ;;
610        xmp)
611                basic_machine=xmp-cray
612                os=-unicos
613                ;;
614        xps | xps100)
615                basic_machine=xps100-honeywell
616                ;;
617        none)
618                basic_machine=none-none
619                os=-none
620                ;;
621
622# Here we handle the default manufacturer of certain CPU types.  It is in
623# some cases the only manufacturer, in others, it is the most popular.
624        mips)
625                basic_machine=mips-mips
626                ;;
627        romp)
628                basic_machine=romp-ibm
629                ;;
630        rs6000)
631                basic_machine=rs6000-ibm
632                ;;
633        vax)
634                basic_machine=vax-dec
635                ;;
636        pdp11)
637                basic_machine=pdp11-dec
638                ;;
639        we32k)
640                basic_machine=we32k-att
641                ;;
642        sparc)
643                basic_machine=sparc-sun
644                ;;
645        cydra)
646                basic_machine=cydra-cydrome
647                ;;
648        orion)
649                basic_machine=orion-highlevel
650                ;;
651        orion105)
652                basic_machine=clipper-highlevel
653                ;;
654        *)
655                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
656                exit 1
657                ;;
658esac
659
660# Here we canonicalize certain aliases for manufacturers.
661case $basic_machine in
662        *-digital*)
663                basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
664                ;;
665        *-commodore*)
666                basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
667                ;;
668        *)
669                ;;
670esac
671
672# Decode manufacturer-specific aliases for certain operating systems.
673
674if [ x"$os" != x"" ]
675then
676case $os in
677        # First match some system type aliases
678        # that might get confused with valid system types.
679        # -solaris* is a basic system type, with this one exception.
680        -solaris1 | -solaris1.*)
681                os=`echo $os | sed -e 's|solaris1|sunos4|'`
682                ;;
683        -solaris)
684                os=-solaris2
685                ;;
686        -unixware* | svr4*)
687                os=-sysv4
688                ;;
689        -gnu/linux*)
690                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
691                ;;
692        # First accept the basic system types.
693        # The portable systems comes first.
694        # Each alternative MUST END IN A *, to match a version number.
695        # -sysv* is not here because it comes later, after sysvr4.
696        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
697              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
698              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
699              | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
700              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
701              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
702              | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
703              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
704              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
705              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
706              | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
707              | -linux-gnu* | -uxpv*)
708        # Remember, each alternative MUST END IN *, to match a version number.
709                ;;
710        -linux*)
711                os=`echo $os | sed -e 's|linux|linux-gnu|'`
712                ;;
713        -sunos5*)
714                os=`echo $os | sed -e 's|sunos5|solaris2|'`
715                ;;
716        -sunos6*)
717                os=`echo $os | sed -e 's|sunos6|solaris3|'`
718                ;;
719        -osfrose*)
720                os=-osfrose
721                ;;
722        -osf*)
723                os=-osf
724                ;;
725        -utek*)
726                os=-bsd
727                ;;
728        -dynix*)
729                os=-bsd
730                ;;
731        -acis*)
732                os=-aos
733                ;;
734        -ctix* | -uts*)
735                os=-sysv
736                ;;
737        -ns2 )
738                os=-nextstep2
739                ;;
740        # Preserve the version number of sinix5.
741        -sinix5.*)
742                os=`echo $os | sed -e 's|sinix|sysv|'`
743                ;;
744        -sinix*)
745                os=-sysv4
746                ;;
747        -triton*)
748                os=-sysv3
749                ;;
750        -oss*)
751                os=-sysv3
752                ;;
753        -svr4)
754                os=-sysv4
755                ;;
756        -svr3)
757                os=-sysv3
758                ;;
759        -sysvr4)
760                os=-sysv4
761                ;;
762        # This must come after -sysvr4.
763        -sysv*)
764                ;;
765        -xenix)
766                os=-xenix
767                ;;
768        -none)
769                ;;
770        *)
771                # Get rid of the `-' at the beginning of $os.
772                os=`echo $os | sed 's/[^-]*-//'`
773                echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
774                exit 1
775                ;;
776esac
777else
778
779# Here we handle the default operating systems that come with various machines.
780# The value should be what the vendor currently ships out the door with their
781# machine or put another way, the most popular os provided with the machine.
782
783# Note that if you're going to try to match "-MANUFACTURER" here (say,
784# "-sun"), then you have to tell the case statement up towards the top
785# that MANUFACTURER isn't an operating system.  Otherwise, code above
786# will signal an error saying that MANUFACTURER isn't an operating
787# system, and we'll never get to this point.
788
789case $basic_machine in
790        *-acorn)
791                os=-riscix1.2
792                ;;
793        arm*-semi)
794                os=-aout
795                ;;
796        pdp11-*)
797                os=-none
798                ;;
799        *-dec | vax-*)
800                os=-ultrix4.2
801                ;;
802        m68*-apollo)
803                os=-domain
804                ;;
805        i386-sun)
806                os=-sunos4.0.2
807                ;;
808        m68000-sun)
809                os=-sunos3
810                # This also exists in the configure program, but was not the
811                # default.
812                # os=-sunos4
813                ;;
814        *-tti)  # must be before sparc entry or we get the wrong os.
815                os=-sysv3
816                ;;
817        sparc-* | *-sun)
818                os=-sunos4.1.1
819                ;;
820        *-ibm)
821                os=-aix
822                ;;
823        *-hp)
824                os=-hpux
825                ;;
826        *-hitachi)
827                os=-hiux
828                ;;
829        i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
830                os=-sysv
831                ;;
832        *-cbm)
833                os=-amigados
834                ;;
835        *-dg)
836                os=-dgux
837                ;;
838        *-dolphin)
839                os=-sysv3
840                ;;
841        m68k-ccur)
842                os=-rtu
843                ;;
844        m88k-omron*)
845                os=-luna
846                ;;
847        *-next )
848                os=-nextstep
849                ;;
850        *-sequent)
851                os=-ptx
852                ;;
853        *-crds)
854                os=-unos
855                ;;
856        *-ns)
857                os=-genix
858                ;;
859        i370-*)
860                os=-mvs
861                ;;
862        *-next)
863                os=-nextstep3
864                ;;
865        *-gould)
866                os=-sysv
867                ;;
868        *-highlevel)
869                os=-bsd
870                ;;
871        *-encore)
872                os=-bsd
873                ;;
874        *-sgi)
875                os=-irix
876                ;;
877        *-siemens)
878                os=-sysv4
879                ;;
880        *-masscomp)
881                os=-rtu
882                ;;
883        f301-fujitsu)
884                os=-uxpv
885                ;;
886        *)
887                os=-none
888                ;;
889esac
890fi
891
892# Here we handle the case where we know the os, and the CPU type, but not the
893# manufacturer.  We pick the logical manufacturer.
894vendor=unknown
895case $basic_machine in
896        *-unknown)
897                case $os in
898                        -riscix*)
899                                vendor=acorn
900                                ;;
901                        -sunos*)
902                                vendor=sun
903                                ;;
904                        -aix*)
905                                vendor=ibm
906                                ;;
907                        -hpux*)
908                                vendor=hp
909                                ;;
910                        -hiux*)
911                                vendor=hitachi
912                                ;;
913                        -unos*)
914                                vendor=crds
915                                ;;
916                        -dgux*)
917                                vendor=dg
918                                ;;
919                        -luna*)
920                                vendor=omron
921                                ;;
922                        -genix*)
923                                vendor=ns
924                                ;;
925                        -mvs*)
926                                vendor=ibm
927                                ;;
928                        -ptx*)
929                                vendor=sequent
930                                ;;
931                        -vxsim* | -vxworks*)
932                                vendor=wrs
933                                ;;
934                        -aux*)
935                                vendor=apple
936                                ;;
937                esac
938                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
939                ;;
940esac
941
942echo $basic_machine$os
Note: See TracBrowser for help on using the repository browser.