Changeset 2962 for trunk/gsdl/config.sub


Ignore:
Timestamp:
2002-02-12T14:10:34+13:00 (22 years ago)
Author:
jrm21
Message:

Updated with new versions from autoconf version 2.52 (from ftp.gnu.org), so
hopefully we now understand most machines currently out there. Previous
"upgrade" for the alphas actually stopped us from recognising darwin (OS X),
so this new `official' version should be canonical....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/config.sub

    r2721 r2962  
    11#! /bin/sh
    2 # Configuration validation subroutine script, version 1.1.
    3 #   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
     2# Configuration validation subroutine script.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4#   Free Software Foundation, Inc.
     5
     6timestamp='2001-06-08'
     7
    48# This file is (in principle) common to ALL GNU software.
    59# The presence of a machine in this file suggests that SOME GNU software
     
    2630# the same distribution terms that you use for the rest of that program.
    2731
     32# Please send patches to <[email protected]>.
     33#
    2834# Configuration subroutine to validate and canonicalize a configuration type.
    2935# Supply the specified configuration type as an argument.
     
    4652# It is wrong to echo any other type of specification.
    4753
    48 if [ x$1 = x ]
    49 then
    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
    54     exit 1
    55 fi
    56 
    57 # First pass through any local machine types.
    58 case $1 in
    59     *local*)
    60         echo $1
    61         exit 0
    62         ;;
    63     *)
    64     ;;
     54me=`echo "$0" | sed -e 's,.*/,,'`
     55
     56usage="\
     57Usage: $0 [OPTION] CPU-MFR-OPSYS
     58       $0 [OPTION] ALIAS
     59
     60Canonicalize a configuration name.
     61
     62Operation modes:
     63  -h, --help         print this help, then exit
     64  -t, --time-stamp   print date of last modification, then exit
     65  -v, --version      print version number, then exit
     66
     67Report bugs and patches to <[email protected]>."
     68
     69version="\
     70GNU config.sub ($timestamp)
     71
     72Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     73Free Software Foundation, Inc.
     74
     75This is free software; see the source for copying conditions.  There is NO
     76warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     77
     78help="
     79Try \`$me --help' for more information."
     80
     81# Parse command line
     82while test $# -gt 0 ; do
     83  case $1 in
     84    --time-stamp | --time* | -t )
     85       echo "$timestamp" ; exit 0 ;;
     86    --version | -v )
     87       echo "$version" ; exit 0 ;;
     88    --help | --h* | -h )
     89       echo "$usage"; exit 0 ;;
     90    -- )     # Stop option processing
     91       shift; break ;;
     92    - ) # Use stdin as input.
     93       break ;;
     94    -* )
     95       echo "$me: invalid option $1$help"
     96       exit 1 ;;
     97
     98    *local*)
     99       # First pass through any local machine types.
     100       echo $1
     101       exit 0;;
     102
     103    * )
     104       break ;;
     105  esac
     106done
     107
     108case $# in
     109 0) echo "$me: missing argument$help" >&2
     110    exit 1;;
     111 1) ;;
     112 *) echo "$me: too many arguments$help" >&2
     113    exit 1;;
    65114esac
    66115
     
    69118maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    70119case $maybe_os in
    71   linux-gnu*)
     120  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
    72121    os=-$maybe_os
    73122    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     
    95144    -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    96145    -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    97     -apple)
     146    -apple | -axis)
    98147        os=
    99148        basic_machine=$1
     
    106155        ;;
    107156    -wrs)
    108         os=vxworks
     157        os=-vxworks
    109158        basic_machine=$1
    110159        ;;
     160    -chorusos*)
     161        os=-chorusos
     162        basic_machine=$1
     163        ;;
     164    -chorusrdb)
     165        os=-chorusrdb
     166        basic_machine=$1
     167        ;;
    111168    -hiux*)
    112169        os=-hiuxwe2
     
    156213    -psos*)
    157214        os=-psos
     215        ;;
     216    -mint | -mint[0-9]*)
     217        basic_machine=m68k-atari
     218        os=-mint
    158219        ;;
    159220esac
     
    163224    # Recognize the basic CPU types without company name.
    164225    # Some are omitted here because they have special meanings below.
    165     tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
    166         | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
     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 \
    167229        | 580 | i960 | h8300 \
     230        | x86 | ppcbe | mipsbe | mipsle | shbe | shle \
    168231        | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
    169         | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
    170         | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
    171         | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
     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 \
    172239        | mips64orion | mips64orionel | mipstx39 | mipstx39el \
    173240        | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
    174         | mips64vr5000 | miprs64vr5000el | mcore \
    175         | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
    176         | thumb | d10v)
     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)
    177246        basic_machine=$basic_machine-unknown
    178247        ;;
    179     m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65)
     248    m6811 | m68hc11 | m6812 | m68hc12)
     249        # Motorola 68HC11/12.
     250        basic_machine=$basic_machine-unknown
     251        os=-none
     252        ;;
     253    m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
    180254        ;;
    181255
     
    183257    # because (1) that's what they normally are, and
    184258    # (2) the word "unknown" tends to confuse beginning users.
    185     i[34567]86)
     259    i*86 | x86_64)
    186260      basic_machine=$basic_machine-pc
    187261      ;;
     
    193267    # Recognize the basic CPU types with company name.
    194268    # FIXME: clean up the formatting here.
    195     vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
    196           | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
     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-* \
    197272          | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
    198273          | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
    199274          | xmp-* | ymp-* \
    200           | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
    201           | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
     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]-* \
    202280          | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
    203281          | clipper-* | orion-* \
    204           | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
    205           | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
     282          | sparclite-* | pdp10-* | pdp11-* | sh-* | sh[34]-* | sh[34]eb-* \
     283          | powerpc-* | powerpcle-* | sparc64-* | sparcv9-* | sparcv9b-* | sparc86x-* \
     284          | mips16-* | mips64-* | mipsel-* \
    206285          | mips64el-* | mips64orion-* | mips64orionel-* \
    207286          | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
    208287          | mipstx39-* | mipstx39el-* | mcore-* \
    209           | f301-* | armv*-* | t3e-* \
     288          | f30[01]-* | f700-* | s390-* | s390x-* | sv1-* | t3e-* \
     289          | [cjt]90-* \
    210290          | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
    211           | thumb-* | v850-* | d30v-* | tic30-* | c30-* )
     291          | thumb-* | v850-* | d30v-* | tic30-* | tic80-* | c30-* | fr30-* \
     292          | bs2000-* | tic54x-* | c54x-* | x86_64-* | pj-* | pjl-*)
    212293        ;;
    213294    # Recognize the various machine names and aliases which stand
     
    246327        ;;
    247328    amiga | amiga-*)
    248         basic_machine=m68k-cbm
     329        basic_machine=m68k-unknown
    249330        ;;
    250331    amigaos | amigados)
    251         basic_machine=m68k-cbm
     332        basic_machine=m68k-unknown
    252333        os=-amigaos
    253334        ;;
    254335    amigaunix | amix)
    255         basic_machine=m68k-cbm
     336        basic_machine=m68k-unknown
    256337        os=-sysv4
    257338        ;;
     
    300381        os=-unicos
    301382        ;;
    302     [ctj]90-cray)
    303         basic_machine=c90-cray
     383    [cjt]90)
     384        basic_machine=${basic_machine}-cray
    304385        os=-unicos
    305386        ;;
    306387    crds | unos)
    307388        basic_machine=m68k-crds
     389        ;;
     390    cris | cris-* | etrax*)
     391        basic_machine=cris-axis
    308392        ;;
    309393    da30 | da30-*)
     
    354438        os=-sysv
    355439        ;;
     440    go32)
     441        basic_machine=i386-pc
     442        os=-go32
     443        ;;
    356444    h3050r* | hiux*)
    357445        basic_machine=hppa1.1-hitachi
     
    427515    i370-ibm* | ibm*)
    428516        basic_machine=i370-ibm
    429         os=-mvs
    430517        ;;
    431518# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
    432     i[34567]86v32)
     519    i*86v32)
    433520        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    434521        os=-sysv32
    435522        ;;
    436     i[34567]86v4*)
     523    i*86v4*)
    437524        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    438525        os=-sysv4
    439526        ;;
    440     i[34567]86v)
     527    i*86v)
    441528        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    442529        os=-sysv
    443530        ;;
    444     i[34567]86sol2)
     531    i*86sol2)
    445532        basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    446533        os=-solaris2
     
    453540        basic_machine=i386-unknown
    454541        os=-vsta
    455         ;;
    456     i386-go32 | go32)
    457         basic_machine=i386-unknown
    458         os=-go32
    459         ;;
    460     i386-mingw32 | mingw32)
    461         basic_machine=i386-unknown
    462         os=-mingw32
    463542        ;;
    464543    iris | iris4d)
     
    487566        os=-sysv
    488567        ;;
     568    mingw32)
     569        basic_machine=i386-pc
     570        os=-mingw32
     571        ;;
    489572    miniframe)
    490573        basic_machine=m68000-convergent
    491574        ;;
    492     *mint | *MiNT)
     575    *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
    493576        basic_machine=m68k-atari
    494577        os=-mint
     
    508591        basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    509592        ;;
     593    mmix*)
     594        basic_machine=mmix-knuth
     595        os=-mmixware
     596        ;;
    510597    monitor)
    511598        basic_machine=m68k-rom68k
     
    513600        ;;
    514601    msdos)
    515         basic_machine=i386-unknown
     602        basic_machine=i386-pc
    516603        os=-msdos
     604        ;;
     605    mvs)
     606        basic_machine=i370-ibm
     607        os=-mvs
    517608        ;;
    518609    ncr3000)
     
    525616        ;;
    526617    netwinder)
    527         basic_machine=armv4l-corel
     618        basic_machine=armv4l-rebel
    528619        os=-linux
    529620        ;;
     
    573664        os=-mon960
    574665        ;;
     666    nonstopux)
     667        basic_machine=mips-compaq
     668        os=-nonstopux
     669        ;;
    575670    np1)
    576671        basic_machine=np1-gould
     672        ;;
     673    nsr-tandem)
     674        basic_machine=nsr-tandem
    577675        ;;
    578676    op50n-* | op60c-*)
     
    605703        basic_machine=ns32k-pc532
    606704        ;;
    607     pentium | p5 | k5 | k6 | nexen)
     705    pentium | p5 | k5 | k6 | nexgen)
    608706        basic_machine=i586-pc
    609707        ;;
    610     pentiumpro | p6 | 6x86)
     708    pentiumpro | p6 | 6x86 | athlon)
    611709        basic_machine=i686-pc
    612710        ;;
    613711    pentiumii | pentium2)
    614         basic_machine=i786-pc
    615         ;;
    616     pentium-* | p5-* | k5-* | k6-* | nexen-*)
     712        basic_machine=i686-pc
     713        ;;
     714    pentium-* | p5-* | k5-* | k6-* | nexgen-*)
    617715        basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    618716        ;;
    619     pentiumpro-* | p6-* | 6x86-*)
     717    pentiumpro-* | p6-* | 6x86-* | athlon-*)
    620718        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    621719        ;;
    622720    pentiumii-* | pentium2-*)
    623         basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     721        basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    624722        ;;
    625723    pn)
    626724        basic_machine=pn-gould
    627725        ;;
    628     power)  basic_machine=rs6000-ibm
     726    power)  basic_machine=power-ibm
    629727        ;;
    630728    ppc)    basic_machine=powerpc-unknown
     
    641739        basic_machine=i386-ibm
    642740        ;;
     741    pw32)
     742        basic_machine=i586-unknown
     743        os=-pw32
     744        ;;
    643745    rom68k)
    644746        basic_machine=m68k-rom68k
     
    720822        basic_machine=i386-sun
    721823        ;;
     824    sv1)
     825        basic_machine=sv1-cray
     826        os=-unicos
     827        ;;
    722828    symmetry)
    723829        basic_machine=i386-sequent
     
    727833        basic_machine=t3e-cray
    728834        os=-unicos
     835        ;;
     836    tic54x | c54x*)
     837        basic_machine=tic54x-unknown
     838        os=-coff
    729839        ;;
    730840    tx39)
     
    780890        os=-proelf
    781891        ;;
     892    windows32)
     893        basic_machine=i386-pc
     894        os=-windows32-msvcrt
     895        ;;
    782896    xmp)
    783897        basic_machine=xmp-cray
     
    823937        basic_machine=vax-dec
    824938        ;;
     939    pdp10)
     940        # there are many clones, so DEC is not a safe bet
     941        basic_machine=pdp10-unknown
     942        ;;
    825943    pdp11)
    826944        basic_machine=pdp11-dec
     
    829947        basic_machine=we32k-att
    830948        ;;
    831     sparc | sparcv9)
     949    sh3 | sh4)
     950        basic_machine=sh-unknown
     951        ;;
     952    sparc | sparcv9 | sparcv9b)
    832953        basic_machine=sparc-sun
    833954        ;;
     
    850971        basic_machine=c4x-none
    851972        os=-coff
     973        ;;
     974    *-unknown)
     975        # Make sure to match an already-canonicalized machine name.
    852976        ;;
    853977    *)
     
    9071031          | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    9081032          | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
     1033          | -chorusos* | -chorusrdb* \
    9091034          | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    9101035          | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    911           | -interix* | -uwin* | -rhapsody* | -openstep* | -oskit*)
     1036          | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1037          | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     1038          | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* | -os2*)
    9121039    # Remember, each alternative MUST END IN *, to match a version number.
     1040        ;;
     1041    -qnx*)
     1042        case $basic_machine in
     1043            x86-* | i*86-*)
     1044            ;;
     1045            *)
     1046            os=-nto$os
     1047            ;;
     1048        esac
     1049        ;;
     1050    -nto*)
     1051        os=-nto-qnx
    9131052        ;;
    9141053    -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    9151054          | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
    916           | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
     1055          | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    9171056        ;;
    9181057    -mac*)
     
    9281067        os=`echo $os | sed -e 's|sunos6|solaris3|'`
    9291068        ;;
     1069    -opened*)
     1070        os=-openedition
     1071        ;;
     1072    -wince*)
     1073        os=-wince
     1074        ;;
    9301075    -osfrose*)
    9311076        os=-osfrose
     
    9511096    -ns2 )
    9521097            os=-nextstep2
     1098        ;;
     1099    -nsk*)
     1100        os=-nsk
    9531101        ;;
    9541102    # Preserve the version number of sinix5.
     
    9861134        os=-xenix
    9871135        ;;
    988         -*mint | -*MiNT)
     1136        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    9891137            os=-mint
    9901138        ;;
     
    10141162        os=-riscix1.2
    10151163        ;;
    1016     arm*-corel)
     1164    arm*-rebel)
    10171165        os=-linux
    10181166        ;;
    10191167    arm*-semi)
    10201168        os=-aout
     1169        ;;
     1170    pdp10-*)
     1171        os=-tops20
    10211172        ;;
    10221173        pdp11-*)
     
    11281279        os=-rtu
    11291280        ;;
    1130     f301-fujitsu)
     1281    f30[01]-fujitsu | f700-fujitsu)
    11311282        os=-uxpv
    11321283        ;;
     
    11881339                vendor=ns
    11891340                ;;
    1190             -mvs*)
     1341            -mvs* | -opened*)
    11911342                vendor=ibm
    11921343                ;;
     
    12061357                vendor=apple
    12071358                ;;
    1208             -*mint | -*MiNT)
     1359            -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    12091360                vendor=atari
    12101361                ;;
     
    12151366
    12161367echo $basic_machine$os
     1368exit 0
     1369
     1370# Local variables:
     1371# eval: (add-hook 'write-file-hooks 'time-stamp)
     1372# time-stamp-start: "timestamp='"
     1373# time-stamp-format: "%:y-%02m-%02d"
     1374# time-stamp-end: "'"
     1375# End:
Note: See TracChangeset for help on using the changeset viewer.