Ignore:
Timestamp:
2013-01-29T16:21:04+13:00 (11 years ago)
Author:
davidb
Message:

Newer version of config.guess and config.sub to include architecture support for Android

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/packages/javagdbm/config.sub

    r18343 r26796  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    4 #   Free Software Foundation, Inc.
    5 
    6 timestamp='2001-06-08'
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
     5#   2011 Free Software Foundation, Inc.
     6
     7timestamp='2011-11-11'
    78
    89# This file is (in principle) common to ALL GNU software.
     
    2223# You should have received a copy of the GNU General Public License
    2324# along with this program; if not, write to the Free Software
    24 # Foundation, Inc., 59 Temple Place - Suite 330,
    25 # Boston, MA 02111-1307, USA.
    26 
     25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     26# 02110-1301, USA.
     27#
    2728# As a special exception to the GNU General Public License, if you
    2829# distribute this file as part of a program that contains a
     
    3031# the same distribution terms that you use for the rest of that program.
    3132
    32 # Please send patches to <[email protected]>.
     33
     34# Please send patches to <[email protected]>.  Submit a context
     35# diff and a properly formatted GNU ChangeLog entry.
    3336#
    3437# Configuration subroutine to validate and canonicalize a configuration type.
     
    3639# If it is invalid, we print an error message on stderr and exit with code 1.
    3740# Otherwise, we print the canonical config type on stdout and succeed.
     41
     42# You can get the latest version of this script from:
     43# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    3844
    3945# This file is supposed to be the same for all GNU packages
     
    7076GNU config.sub ($timestamp)
    7177
    72 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    73 Free Software Foundation, Inc.
     78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
     792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Free
     80Software Foundation, Inc.
    7481
    7582This is free software; see the source for copying conditions.  There is NO
     
    8390  case $1 in
    8491    --time-stamp | --time* | -t )
    85        echo "$timestamp" ; exit 0 ;;
     92       echo "$timestamp" ; exit ;;
    8693    --version | -v )
    87        echo "$version" ; exit 0 ;;
     94       echo "$version" ; exit ;;
    8895    --help | --h* | -h )
    89        echo "$usage"; exit 0 ;;
     96       echo "$usage"; exit ;;
    9097    -- )     # Stop option processing
    9198       shift; break ;;
     
    99106       # First pass through any local machine types.
    100107       echo $1
    101        exit 0;;
     108       exit ;;
    102109
    103110    * )
     
    118125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    119126case $maybe_os in
    120   nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
     127  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
     128  linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
     129  knetbsd*-gnu* | netbsd*-gnu* | \
     130  kopensolaris*-gnu* | \
     131  storm-chaos* | os2-emx* | rtmk-nova*)
    121132    os=-$maybe_os
    122133    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    144155    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    145156    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    146     -apple | -axis)
     157    -apple | -axis | -knuth | -cray | -microblaze)
    147158        os=
    148159        basic_machine=$1
     160        ;;
     161    -bluegene*)
     162        os=-cnk
    149163        ;;
    150164    -sim | -cisco | -oki | -wec | -winbond)
     
    162176        basic_machine=$1
    163177        ;;
    164     -chorusrdb)
    165         os=-chorusrdb
     178    -chorusrdb)
     179        os=-chorusrdb
    166180        basic_machine=$1
    167         ;;
     181        ;;
    168182    -hiux*)
    169183        os=-hiuxwe2
     184        ;;
     185    -sco6)
     186        os=-sco5v6
     187        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    170188        ;;
    171189    -sco5)
     
    182200        ;;
    183201    -sco3.2v[4-9]*)
     202        # Don't forget version if it is 3.2v4 or newer.
     203        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     204        ;;
     205    -sco5v6*)
    184206        # Don't forget version if it is 3.2v4 or newer.
    185207        basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    224246    # Recognize the basic CPU types without company name.
    225247    # Some are omitted here because they have special meanings below.
    226     tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc \
    227             | arm | arme[lb] | arm[bl]e | armv[2345] | armv[345][lb] | strongarm | xscale \
    228         | pyramid | mn10200 | mn10300 | tron | a29k \
    229         | 580 | i960 | h8300 \
    230         | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
    231         | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
    232         | hppa64 \
    233         | alpha | alphaev[4-8] | alphaev56 | alphapca5[67] \
    234         | alphaev6[78] \
    235         | we32k | ns16k | clipper | i370 | sh | sh[34] \
    236         | powerpc | powerpcle \
    237         | 1750a | dsp16xx | pdp10 | pdp11 \
    238         | mips16 | mips64 | mipsel | mips64el \
    239         | mips64orion | mips64orionel | mipstx39 | mipstx39el \
    240         | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
    241         | mips64vr5000 | mips64vr5000el | mcore | s390 | s390x \
    242         | sparc | sparclet | sparclite | sparc64 | sparcv9 | sparcv9b \
    243         | v850 | c4x \
    244         | thumb | d10v | d30v | fr30 | avr | openrisc | tic80 \
    245         | pj | pjl | h8500 | z8k)
     248    1750a | 580 \
     249    | a29k \
     250    | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     251    | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     252    | am33_2.0 \
     253    | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
     254        | be32 | be64 \
     255    | bfin \
     256    | c4x | clipper \
     257    | d10v | d30v | dlx | dsp16xx \
     258    | epiphany \
     259    | fido | fr30 | frv \
     260    | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
     261    | hexagon \
     262    | i370 | i860 | i960 | ia64 \
     263    | ip2k | iq2000 \
     264    | le32 | le64 \
     265    | lm32 \
     266    | m32c | m32r | m32rle | m68000 | m68k | m88k \
     267    | maxq | mb | microblaze | mcore | mep | metag \
     268    | mips | mipsbe | mipseb | mipsel | mipsle \
     269    | mips16 \
     270    | mips64 | mips64el \
     271    | mips64octeon | mips64octeonel \
     272    | mips64orion | mips64orionel \
     273    | mips64r5900 | mips64r5900el \
     274    | mips64vr | mips64vrel \
     275    | mips64vr4100 | mips64vr4100el \
     276    | mips64vr4300 | mips64vr4300el \
     277    | mips64vr5000 | mips64vr5000el \
     278    | mips64vr5900 | mips64vr5900el \
     279    | mipsisa32 | mipsisa32el \
     280    | mipsisa32r2 | mipsisa32r2el \
     281    | mipsisa64 | mipsisa64el \
     282    | mipsisa64r2 | mipsisa64r2el \
     283    | mipsisa64sb1 | mipsisa64sb1el \
     284    | mipsisa64sr71k | mipsisa64sr71kel \
     285    | mipstx39 | mipstx39el \
     286    | mn10200 | mn10300 \
     287    | moxie \
     288    | mt \
     289    | msp430 \
     290    | nds32 | nds32le | nds32be \
     291    | nios | nios2 \
     292    | ns16k | ns32k \
     293    | open8 \
     294    | or32 \
     295    | pdp10 | pdp11 | pj | pjl \
     296    | powerpc | powerpc64 | powerpc64le | powerpcle \
     297    | pyramid \
     298    | rl78 | rx \
     299    | score \
     300    | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
     301    | sh64 | sh64le \
     302    | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
     303    | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
     304    | spu \
     305    | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
     306    | ubicom32 \
     307    | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
     308    | we32k \
     309    | x86 | xc16x | xstormy16 | xtensa \
     310    | z8k | z80)
    246311        basic_machine=$basic_machine-unknown
    247312        ;;
    248     m6811 | m68hc11 | m6812 | m68hc12)
     313    c54x)
     314        basic_machine=tic54x-unknown
     315        ;;
     316    c55x)
     317        basic_machine=tic55x-unknown
     318        ;;
     319    c6x)
     320        basic_machine=tic6x-unknown
     321        ;;
     322    m6811 | m68hc11 | m6812 | m68hc12 | picochip)
    249323        # Motorola 68HC11/12.
    250324        basic_machine=$basic_machine-unknown
     
    252326        ;;
    253327    m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
     328        ;;
     329    ms1)
     330        basic_machine=mt-unknown
     331        ;;
     332
     333    strongarm | thumb | xscale)
     334        basic_machine=arm-unknown
     335        ;;
     336
     337    xscaleeb)
     338        basic_machine=armeb-unknown
     339        ;;
     340
     341    xscaleel)
     342        basic_machine=armel-unknown
    254343        ;;
    255344
     
    266355        ;;
    267356    # Recognize the basic CPU types with company name.
    268     # FIXME: clean up the formatting here.
    269     vax-* | tahoe-* | i*86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
    270           | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | c[123]* \
    271           | arm-*  | armbe-* | armle-* | armv*-* | strongarm-* | xscale-* \
    272           | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
    273           | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
    274           | xmp-* | ymp-* \
    275           | x86-* | ppcbe-* | mipsbe-* | mipsle-* | shbe-* | shle-* \
    276           | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* \
    277           | hppa2.0n-* | hppa64-* \
    278           | alpha-* | alphaev[4-8]-* | alphaev56-* | alphapca5[67]-* \
    279           | alphaev6[78]-* \
    280           | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
    281           | clipper-* | orion-* \
    282           | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
    283           | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
    284           | mips16-* | mips64-* | mipsel-* \
    285           | mips64el-* | mips64orion-* | mips64orionel-* \
    286           | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
    287           | mipstx39-* | mipstx39el-* | mcore-* \
    288           | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
    289           | [cjt]90-* \
    290           | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
    291           | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
    292           | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
     357    580-* \
     358    | a29k-* \
     359    | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
     360    | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
     361    | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
     362    | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
     363    | avr-* | avr32-* \
     364    | be32-* | be64-* \
     365    | bfin-* | bs2000-* \
     366    | c[123]* | c30-* | [cjt]90-* | c4x-* \
     367    | clipper-* | craynv-* | cydra-* \
     368    | d10v-* | d30v-* | dlx-* \
     369    | elxsi-* \
     370    | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
     371    | h8300-* | h8500-* \
     372    | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
     373    | hexagon-* \
     374    | i*86-* | i860-* | i960-* | ia64-* \
     375    | ip2k-* | iq2000-* \
     376    | le32-* | le64-* \
     377    | lm32-* \
     378    | m32c-* | m32r-* | m32rle-* \
     379    | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
     380    | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
     381    | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
     382    | mips16-* \
     383    | mips64-* | mips64el-* \
     384    | mips64octeon-* | mips64octeonel-* \
     385    | mips64orion-* | mips64orionel-* \
     386    | mips64r5900-* | mips64r5900el-* \
     387    | mips64vr-* | mips64vrel-* \
     388    | mips64vr4100-* | mips64vr4100el-* \
     389    | mips64vr4300-* | mips64vr4300el-* \
     390    | mips64vr5000-* | mips64vr5000el-* \
     391    | mips64vr5900-* | mips64vr5900el-* \
     392    | mipsisa32-* | mipsisa32el-* \
     393    | mipsisa32r2-* | mipsisa32r2el-* \
     394    | mipsisa64-* | mipsisa64el-* \
     395    | mipsisa64r2-* | mipsisa64r2el-* \
     396    | mipsisa64sb1-* | mipsisa64sb1el-* \
     397    | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     398    | mipstx39-* | mipstx39el-* \
     399    | mmix-* \
     400    | mt-* \
     401    | msp430-* \
     402    | nds32-* | nds32le-* | nds32be-* \
     403    | nios-* | nios2-* \
     404    | none-* | np1-* | ns16k-* | ns32k-* \
     405    | open8-* \
     406    | orion-* \
     407    | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     408    | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
     409    | pyramid-* \
     410    | rl78-* | romp-* | rs6000-* | rx-* \
     411    | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
     412    | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     413    | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
     414    | sparclite-* \
     415    | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
     416    | tahoe-* \
     417    | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     418    | tile*-* \
     419    | tron-* \
     420    | ubicom32-* \
     421    | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
     422    | vax-* \
     423    | we32k-* \
     424    | x86-* | x86_64-* | xc16x-* | xps100-* \
     425    | xstormy16-* | xtensa*-* \
     426    | ymp-* \
     427    | z8k-* | z80-*)
     428        ;;
     429    # Recognize the basic CPU types without company name, with glob match.
     430    xtensa*)
     431        basic_machine=$basic_machine-unknown
    293432        ;;
    294433    # Recognize the various machine names and aliases which stand
     
    308447        os=-udi
    309448        ;;
     449    abacus)
     450        basic_machine=abacus-unknown
     451        ;;
    310452    adobe68k)
    311453        basic_machine=m68010-adobe
     
    322464        os=-bsd
    323465        ;;
     466    amd64)
     467        basic_machine=x86_64-pc
     468        ;;
     469    amd64-*)
     470        basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     471        ;;
    324472    amdahl)
    325473        basic_machine=580-amdahl
     
    345493        os=-bsd
    346494        ;;
     495    aros)
     496        basic_machine=i386-pc
     497        os=-aros
     498        ;;
    347499    aux)
    348500        basic_machine=m68k-apple
     
    353505        os=-dynix
    354506        ;;
     507    blackfin)
     508        basic_machine=bfin-unknown
     509        os=-linux
     510        ;;
     511    blackfin-*)
     512        basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     513        os=-linux
     514        ;;
     515    bluegene*)
     516        basic_machine=powerpc-ibm
     517        os=-cnk
     518        ;;
     519    c54x-*)
     520        basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
     521        ;;
     522    c55x-*)
     523        basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
     524        ;;
     525    c6x-*)
     526        basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
     527        ;;
     528    c90)
     529        basic_machine=c90-cray
     530        os=-unicos
     531        ;;
     532    cegcc)
     533        basic_machine=arm-unknown
     534        os=-cegcc
     535        ;;
    355536    convex-c1)
    356537        basic_machine=c1-convex
     
    373554        os=-bsd
    374555        ;;
    375     cray | ymp)
    376         basic_machine=ymp-cray
     556    cray | j90)
     557        basic_machine=j90-cray
    377558        os=-unicos
    378559        ;;
    379     cray2)
    380         basic_machine=cray2-cray
    381         os=-unicos
    382         ;;
    383     [cjt]90)
    384         basic_machine=${basic_machine}-cray
    385         os=-unicos
     560    craynv)
     561        basic_machine=craynv-cray
     562        os=-unicosmp
     563        ;;
     564    cr16 | cr16-*)
     565        basic_machine=cr16-unknown
     566        os=-elf
    386567        ;;
    387568    crds | unos)
    388569        basic_machine=m68k-crds
    389570        ;;
     571    crisv32 | crisv32-* | etraxfs*)
     572        basic_machine=crisv32-axis
     573        ;;
    390574    cris | cris-* | etrax*)
    391575        basic_machine=cris-axis
    392576        ;;
     577    crx)
     578        basic_machine=crx-unknown
     579        os=-elf
     580        ;;
    393581    da30 | da30-*)
    394582        basic_machine=m68k-da30
     
    396584    decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    397585        basic_machine=mips-dec
     586        ;;
     587    decsystem10* | dec10*)
     588        basic_machine=pdp10-dec
     589        os=-tops10
     590        ;;
     591    decsystem20* | dec20*)
     592        basic_machine=pdp10-dec
     593        os=-tops20
    398594        ;;
    399595    delta | 3300 | motorola-3300 | motorola-delta \
     
    404600        basic_machine=m88k-motorola
    405601        os=-sysv3
     602        ;;
     603    dicos)
     604        basic_machine=i686-pc
     605        os=-dicos
     606        ;;
     607    djgpp)
     608        basic_machine=i586-pc
     609        os=-msdosdjgpp
    406610        ;;
    407611    dpx20 | dpx20-*)
     
    555759        os=-sysv
    556760        ;;
     761    m68knommu)
     762        basic_machine=m68k-unknown
     763        os=-linux
     764        ;;
     765    m68knommu-*)
     766        basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     767        os=-linux
     768        ;;
    557769    m88k-omron*)
    558770        basic_machine=m88k-omron
     
    566778        os=-sysv
    567779        ;;
     780    microblaze)
     781        basic_machine=microblaze-xilinx
     782        ;;
    568783    mingw32)
    569784        basic_machine=i386-pc
    570785        os=-mingw32
    571786        ;;
     787    mingw32ce)
     788        basic_machine=arm-unknown
     789        os=-mingw32ce
     790        ;;
    572791    miniframe)
    573792        basic_machine=m68000-convergent
     
    577796        os=-mint
    578797        ;;
    579     mipsel*-linux*)
    580         basic_machine=mipsel-unknown
    581         os=-linux-gnu
    582         ;;
    583     mips*-linux*)
    584         basic_machine=mips-unknown
    585         os=-linux-gnu
    586         ;;
    587798    mips3*-*)
    588799        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     
    590801    mips3*)
    591802        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    592         ;;
    593     mmix*)
    594         basic_machine=mmix-knuth
    595         os=-mmixware
    596803        ;;
    597804    monitor)
     
    599806        os=-coff
    600807        ;;
     808    morphos)
     809        basic_machine=powerpc-unknown
     810        os=-morphos
     811        ;;
    601812    msdos)
    602813        basic_machine=i386-pc
    603814        os=-msdos
    604815        ;;
     816    ms1-*)
     817        basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
     818        ;;
     819    msys)
     820        basic_machine=i386-pc
     821        os=-msys
     822        ;;
    605823    mvs)
    606824        basic_machine=i370-ibm
    607825        os=-mvs
     826        ;;
     827    nacl)
     828        basic_machine=le32-unknown
     829        os=-nacl
    608830        ;;
    609831    ncr3000)
     
    671893        basic_machine=np1-gould
    672894        ;;
     895    neo-tandem)
     896        basic_machine=neo-tandem
     897        ;;
     898    nse-tandem)
     899        basic_machine=nse-tandem
     900        ;;
    673901    nsr-tandem)
    674902        basic_machine=nsr-tandem
     
    678906        os=-proelf
    679907        ;;
     908    openrisc | openrisc-*)
     909        basic_machine=or32-unknown
     910        ;;
     911    os400)
     912        basic_machine=powerpc-ibm
     913        os=-os400
     914        ;;
    680915    OSE68000 | ose68000)
    681916        basic_machine=m68000-ericsson
     
    694929        os=-osf
    695930        ;;
     931    parisc)
     932        basic_machine=hppa-unknown
     933        os=-linux
     934        ;;
     935    parisc-*)
     936        basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     937        os=-linux
     938        ;;
    696939    pbd)
    697940        basic_machine=sparc-tti
     
    700943        basic_machine=m68k-tti
    701944        ;;
    702         pc532 | pc532-*)
     945    pc532 | pc532-*)
    703946        basic_machine=ns32k-pc532
    704947        ;;
    705     pentium | p5 | k5 | k6 | nexgen)
     948    pc98)
     949        basic_machine=i386-pc
     950        ;;
     951    pc98-*)
     952        basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
     953        ;;
     954    pentium | p5 | k5 | k6 | nexgen | viac3)
    706955        basic_machine=i586-pc
    707956        ;;
    708     pentiumpro | p6 | 6x86 | athlon)
     957    pentiumpro | p6 | 6x86 | athlon | athlon_*)
    709958        basic_machine=i686-pc
    710959        ;;
    711     pentiumii | pentium2)
     960    pentiumii | pentium2 | pentiumiii | pentium3)
    712961        basic_machine=i686-pc
    713962        ;;
    714     pentium-* | p5-* | k5-* | k6-* | nexgen-*)
     963    pentium4)
     964        basic_machine=i786-pc
     965        ;;
     966    pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
    715967        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    716968        ;;
     
    718970        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    719971        ;;
    720     pentiumii-* | pentium2-*)
     972    pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
    721973        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     974        ;;
     975    pentium4-*)
     976        basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
    722977        ;;
    723978    pn)
     
    726981    power)  basic_machine=power-ibm
    727982        ;;
    728     ppc)    basic_machine=powerpc-unknown
    729             ;;
    730     ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
     983    ppc | ppcbe)    basic_machine=powerpc-unknown
     984        ;;
     985    ppc-* | ppcbe-*)
     986        basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    731987        ;;
    732988    ppcle | powerpclittle | ppc-le | powerpc-little)
    733989        basic_machine=powerpcle-unknown
    734             ;;
     990        ;;
    735991    ppcle-* | powerpclittle-*)
    736992        basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
     993        ;;
     994    ppc64)  basic_machine=powerpc64-unknown
     995        ;;
     996    ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
     997        ;;
     998    ppc64le | powerpc64little | ppc64-le | powerpc64-little)
     999        basic_machine=powerpc64le-unknown
     1000        ;;
     1001    ppc64le-* | powerpc64little-*)
     1002        basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
    7371003        ;;
    7381004    ps2)
     
    7431009        os=-pw32
    7441010        ;;
     1011    rdos)
     1012        basic_machine=i386-pc
     1013        os=-rdos
     1014        ;;
    7451015    rom68k)
    7461016        basic_machine=m68k-rom68k
     
    7531023        basic_machine=romp-ibm
    7541024        ;;
     1025    s390 | s390-*)
     1026        basic_machine=s390-ibm
     1027        ;;
     1028    s390x | s390x-*)
     1029        basic_machine=s390x-ibm
     1030        ;;
    7551031    sa29200)
    7561032        basic_machine=a29k-amd
    7571033        os=-udi
    7581034        ;;
     1035    sb1)
     1036        basic_machine=mipsisa64sb1-unknown
     1037        ;;
     1038    sb1el)
     1039        basic_machine=mipsisa64sb1el-unknown
     1040        ;;
     1041    sde)
     1042        basic_machine=mipsisa32-sde
     1043        os=-elf
     1044        ;;
     1045    sei)
     1046        basic_machine=mips-sei
     1047        os=-seiux
     1048        ;;
    7591049    sequent)
    7601050        basic_machine=i386-sequent
     
    7641054        os=-hms
    7651055        ;;
    766     sparclite-wrs)
     1056    sh5el)
     1057        basic_machine=sh5le-unknown
     1058        ;;
     1059    sh64)
     1060        basic_machine=sh64-unknown
     1061        ;;
     1062    sparclite-wrs | simso-wrs)
    7671063        basic_machine=sparclite-wrs
    7681064        os=-vxworks
     
    7821078        os=-sysv4
    7831079        ;;
     1080    strongarm-* | thumb-*)
     1081        basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
     1082        ;;
    7841083    sun2)
    7851084        basic_machine=m68000-sun
     
    8311130        ;;
    8321131    t3e)
    833         basic_machine=t3e-cray
     1132        basic_machine=alphaev5-cray
    8341133        os=-unicos
    8351134        ;;
    836     tic54x | c54x*)
    837         basic_machine=tic54x-unknown
    838         os=-coff
     1135    t90)
     1136        basic_machine=t90-cray
     1137        os=-unicos
     1138        ;;
     1139    tile*)
     1140        basic_machine=$basic_machine-unknown
     1141        os=-linux-gnu
    8391142        ;;
    8401143    tx39)
     
    8441147        basic_machine=mipstx39el-unknown
    8451148        ;;
     1149    toad1)
     1150        basic_machine=pdp10-xkl
     1151        os=-tops20
     1152        ;;
    8461153    tower | tower-32)
    8471154        basic_machine=m68k-ncr
     1155        ;;
     1156    tpf)
     1157        basic_machine=s390x-ibm
     1158        os=-tpf
    8481159        ;;
    8491160    udi29k)
     
    8681179        ;;
    8691180    vpp*|vx|vx-*)
    870                basic_machine=f301-fujitsu
    871                ;;
     1181        basic_machine=f301-fujitsu
     1182        ;;
    8721183    vxworks960)
    8731184        basic_machine=i960-wrs
     
    8901201        os=-proelf
    8911202        ;;
    892     windows32)
    893         basic_machine=i386-pc
    894         os=-windows32-msvcrt
    895         ;;
    896     xmp)
    897         basic_machine=xmp-cray
     1203    xbox)
     1204        basic_machine=i686-pc
     1205        os=-mingw32
     1206        ;;
     1207    xps | xps100)
     1208        basic_machine=xps100-honeywell
     1209        ;;
     1210    xscale-* | xscalee[bl]-*)
     1211        basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
     1212        ;;
     1213    ymp)
     1214        basic_machine=ymp-cray
    8981215        os=-unicos
    899         ;;
    900         xps | xps100)
    901         basic_machine=xps100-honeywell
    9021216        ;;
    9031217    z8k-*-coff)
    9041218        basic_machine=z8k-unknown
     1219        os=-sim
     1220        ;;
     1221    z80-*-coff)
     1222        basic_machine=z80-unknown
    9051223        os=-sim
    9061224        ;;
     
    9211239        basic_machine=hppa1.1-oki
    9221240        ;;
    923     mips)
    924         if [ x$os = x-linux-gnu ]; then
    925             basic_machine=mips-unknown
    926         else
    927             basic_machine=mips-mips
    928         fi
    929         ;;
    9301241    romp)
    9311242        basic_machine=romp-ibm
     1243        ;;
     1244    mmix)
     1245        basic_machine=mmix-knuth
    9321246        ;;
    9331247    rs6000)
     
    9471261        basic_machine=we32k-att
    9481262        ;;
    949     sh3 | sh4)
     1263    sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
    9501264        basic_machine=sh-unknown
    9511265        ;;
    952     sparc | sparcv9 | sparcv9b)
     1266    sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
    9531267        basic_machine=sparc-sun
    9541268        ;;
    955         cydra)
     1269    cydra)
    9561270        basic_machine=cydra-cydrome
    9571271        ;;
     
    9671281    pmac | pmac-mpw)
    9681282        basic_machine=powerpc-apple
    969         ;;
    970     c4x*)
    971         basic_machine=c4x-none
    972         os=-coff
    9731283        ;;
    9741284    *-unknown)
     
    9981308then
    9991309case $os in
    1000         # First match some system type aliases
    1001         # that might get confused with valid system types.
     1310    # First match some system type aliases
     1311    # that might get confused with valid system types.
    10021312    # -solaris* is a basic system type, with this one exception.
     1313    -auroraux)
     1314        os=-auroraux
     1315        ;;
    10031316    -solaris1 | -solaris1.*)
    10041317        os=`echo $os | sed -e 's|solaris1|sunos4|'`
     
    10211334    # -sysv* is not here because it comes later, after sysvr4.
    10221335    -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
    1023           | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
    1024           | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
     1336          | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
     1337          | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
     1338          | -sym* | -kopensolaris* \
    10251339          | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
    1026           | -aos* \
     1340          | -aos* | -aros* \
    10271341          | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    10281342          | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1029           | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    1030           | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1343          | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     1344          | -openbsd* | -solidbsd* \
     1345          | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1346          | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    10311347          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    10321348          | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    1033           | -chorusos* | -chorusrdb* \
    1034           | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1035           | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    1036           | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1349          | -chorusos* | -chorusrdb* | -cegcc* \
     1350          | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
     1351          | -mingw32* | -linux-gnu* | -linux-android* \
     1352          | -linux-newlib* | -linux-uclibc* \
     1353          | -uxpv* | -beos* | -mpeix* | -udk* \
     1354          | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    10371355          | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    1038           | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
     1356          | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
     1357          | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
     1358          | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1359          | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
     1360          | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
    10391361    # Remember, each alternative MUST END IN *, to match a version number.
    10401362        ;;
     
    10481370        esac
    10491371        ;;
     1372    -nto-qnx*)
     1373        ;;
    10501374    -nto*)
    1051         os=-nto-qnx
     1375        os=`echo $os | sed -e 's|nto|nto-qnx|'`
    10521376        ;;
    10531377    -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    1054           | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     1378          | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
    10551379          | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    10561380        ;;
     
    10581382        os=`echo $os | sed -e 's|mac|macos|'`
    10591383        ;;
     1384    -linux-dietlibc)
     1385        os=-linux-dietlibc
     1386        ;;
    10601387    -linux*)
    10611388        os=`echo $os | sed -e 's|linux|linux-gnu|'`
     
    10701397        os=-openedition
    10711398        ;;
     1399    -os400*)
     1400        os=-os400
     1401        ;;
    10721402    -wince*)
    10731403        os=-wince
     
    10881418        os=-aos
    10891419        ;;
     1420    -atheos*)
     1421        os=-atheos
     1422        ;;
     1423    -syllable*)
     1424        os=-syllable
     1425        ;;
    10901426    -386bsd)
    10911427        os=-bsd
     
    10941430        os=-sysv
    10951431        ;;
     1432    -nova*)
     1433        os=-rtmk-nova
     1434        ;;
    10961435    -ns2 )
    1097             os=-nextstep2
     1436        os=-nextstep2
    10981437        ;;
    10991438    -nsk*)
     
    11071446        os=-sysv4
    11081447        ;;
     1448    -tpf*)
     1449        os=-tpf
     1450        ;;
    11091451    -triton*)
    11101452        os=-sysv3
     
    11341476        os=-xenix
    11351477        ;;
    1136         -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    1137             os=-mint
     1478    -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1479        os=-mint
     1480        ;;
     1481    -aros*)
     1482        os=-aros
     1483        ;;
     1484    -kaos*)
     1485        os=-kaos
     1486        ;;
     1487    -zvmoe)
     1488        os=-zvmoe
     1489        ;;
     1490    -dicos*)
     1491        os=-dicos
     1492        ;;
     1493    -nacl*)
    11381494        ;;
    11391495    -none)
     
    11591515
    11601516case $basic_machine in
     1517    score-*)
     1518        os=-elf
     1519        ;;
     1520    spu-*)
     1521        os=-elf
     1522        ;;
    11611523    *-acorn)
    11621524        os=-riscix1.2
     
    11681530        os=-aout
    11691531        ;;
     1532    c4x-* | tic4x-*)
     1533        os=-coff
     1534        ;;
     1535    tic54x-*)
     1536        os=-coff
     1537        ;;
     1538    tic55x-*)
     1539        os=-coff
     1540        ;;
     1541    tic6x-*)
     1542        os=-coff
     1543        ;;
     1544    # This must come before the *-dec entry.
    11701545    pdp10-*)
    11711546        os=-tops20
    11721547        ;;
    1173         pdp11-*)
     1548    pdp11-*)
    11741549        os=-none
    11751550        ;;
     
    11921567        os=-aout
    11931568        ;;
     1569    mep-*)
     1570        os=-elf
     1571        ;;
    11941572    mips*-cisco)
    11951573        os=-elf
     
    11981576        os=-elf
    11991577        ;;
     1578    or32-*)
     1579        os=-coff
     1580        ;;
    12001581    *-tti)  # must be before sparc entry or we get the wrong os.
    12011582        os=-sysv3
     
    12071588        os=-beos
    12081589        ;;
     1590    *-haiku)
     1591        os=-haiku
     1592        ;;
    12091593    *-ibm)
    12101594        os=-aix
    12111595        ;;
     1596    *-knuth)
     1597        os=-mmixware
     1598        ;;
    12121599    *-wec)
    12131600        os=-proelf
     
    12611648        os=-nextstep3
    12621649        ;;
    1263         *-gould)
     1650    *-gould)
    12641651        os=-sysv
    12651652        ;;
    1266         *-highlevel)
     1653    *-highlevel)
    12671654        os=-bsd
    12681655        ;;
     
    12701657        os=-bsd
    12711658        ;;
    1272         *-sgi)
     1659    *-sgi)
    12731660        os=-irix
    12741661        ;;
    1275         *-siemens)
     1662    *-siemens)
    12761663        os=-sysv4
    12771664        ;;
     
    13121699                vendor=sun
    13131700                ;;
    1314             -aix*)
     1701            -cnk*|-aix*)
    13151702                vendor=ibm
    13161703                ;;
     
    13421729                vendor=ibm
    13431730                ;;
     1731            -os400*)
     1732                vendor=ibm
     1733                ;;
    13441734            -ptx*)
    13451735                vendor=sequent
    13461736                ;;
    1347             -vxsim* | -vxworks*)
     1737            -tpf*)
     1738                vendor=ibm
     1739                ;;
     1740            -vxsim* | -vxworks* | -windiss*)
    13481741                vendor=wrs
    13491742                ;;
     
    13601753                vendor=atari
    13611754                ;;
     1755            -vos*)
     1756                vendor=stratus
     1757                ;;
    13621758        esac
    13631759        basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
     
    13661762
    13671763echo $basic_machine$os
    1368 exit 0
     1764exit
    13691765
    13701766# Local variables:
Note: See TracChangeset for help on using the changeset viewer.