Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5479 in orxonox.OLD for trunk/config.guess


Ignore:
Timestamp:
Nov 3, 2005, 8:50:51 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: updated to new autoconf, moved resourcemanager to util/loading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/config.guess

    r5413 r5479  
    22# Attempt to guess a canonical system name.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    5 
    6 timestamp='2004-03-12'
     4#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
     5
     6timestamp='2005-05-27'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    1818# You should have received a copy of the GNU General Public License
    1919# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     20# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     21# 02110-1301, USA.
    2122#
    2223# As a special exception to the GNU General Public License, if you
     
    2425# configuration script generated by Autoconf, you may include it under
    2526# the same distribution terms that you use for the rest of that program.
     27
    2628
    2729# Originally written by Per Bothner <per@bothner.com>.
     
    5456
    5557Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     58Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    5759Free Software Foundation, Inc.
    5860
     
    6769  case $1 in
    6870    --time-stamp | --time* | -t )
    69        echo "$timestamp" ; exit 0 ;;
     71       echo "$timestamp" ; exit ;;
    7072    --version | -v )
    71        echo "$version" ; exit 0 ;;
     73       echo "$version" ; exit ;;
    7274    --help | --h* | -h )
    73        echo "$usage"; exit 0 ;;
     75       echo "$usage"; exit ;;
    7476    -- )     # Stop option processing
    7577       shift; break ;;
     
    137139UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    138140
    139 # Detect uclibc systems.
    140 
    141 LIBC="gnu"
    142 if [ -f /usr/include/bits/uClibc_config.h ]
    143 then
     141if [ "${UNAME_SYSTEM}" = "Linux" ] ; then
     142        eval $set_cc_for_build
     143        cat << EOF > $dummy.c
     144        #include <features.h>
     145        #ifdef __UCLIBC__
     146        # ifdef __UCLIBC_CONFIG_VERSION__
     147        LIBC=uclibc __UCLIBC_CONFIG_VERSION__
     148        # else
    144149        LIBC=uclibc
    145         if [[ -n `grep "#define __UCLIBC_CONFIG_VERSION__" /usr/include/bits/uClibc_config.h` ]]
    146         then
    147                 UCLIBC_SUBVER=`sed -n "/#define __UCLIBC_CONFIG_VERSION__ /s///p" /usr/include/bits/uClibc_config.h`
    148                 LIBC=$LIBC$UCLIBC_SUBVER
    149         fi
     150        # endif
     151        #else
     152        LIBC=gnu
     153        #endif
     154EOF
     155        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep LIBC= | sed -e 's: ::g'`
    150156fi
    151157
     
    210216        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    211217        echo "${machine}-${os}${release}"
    212         exit 0 ;;
     218        exit ;;
    213219    amd64:OpenBSD:*:*)
    214220        echo x86_64-unknown-openbsd${UNAME_RELEASE}
    215         exit 0 ;;
     221        exit ;;
    216222    amiga:OpenBSD:*:*)
    217223        echo m68k-unknown-openbsd${UNAME_RELEASE}
    218         exit 0 ;;
    219     arc:OpenBSD:*:*)
    220         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    221         exit 0 ;;
     224        exit ;;
    222225    cats:OpenBSD:*:*)
    223226        echo arm-unknown-openbsd${UNAME_RELEASE}
    224         exit 0 ;;
     227        exit ;;
    225228    hp300:OpenBSD:*:*)
    226229        echo m68k-unknown-openbsd${UNAME_RELEASE}
    227         exit 0 ;;
     230        exit ;;
     231    luna88k:OpenBSD:*:*)
     232        echo m88k-unknown-openbsd${UNAME_RELEASE}
     233        exit ;;
    228234    mac68k:OpenBSD:*:*)
    229235        echo m68k-unknown-openbsd${UNAME_RELEASE}
    230         exit 0 ;;
     236        exit ;;
    231237    macppc:OpenBSD:*:*)
    232238        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    233         exit 0 ;;
     239        exit ;;
    234240    mvme68k:OpenBSD:*:*)
    235241        echo m68k-unknown-openbsd${UNAME_RELEASE}
    236         exit 0 ;;
     242        exit ;;
    237243    mvme88k:OpenBSD:*:*)
    238244        echo m88k-unknown-openbsd${UNAME_RELEASE}
    239         exit 0 ;;
     245        exit ;;
    240246    mvmeppc:OpenBSD:*:*)
    241247        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    242         exit 0 ;;
    243     pegasos:OpenBSD:*:*)
    244         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    245         exit 0 ;;
    246     pmax:OpenBSD:*:*)
    247         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    248         exit 0 ;;
     248        exit ;;
    249249    sgi:OpenBSD:*:*)
    250         echo mipseb-unknown-openbsd${UNAME_RELEASE}
    251         exit 0 ;;
     250        echo mips64-unknown-openbsd${UNAME_RELEASE}
     251        exit ;;
    252252    sun3:OpenBSD:*:*)
    253253        echo m68k-unknown-openbsd${UNAME_RELEASE}
    254         exit 0 ;;
    255     wgrisc:OpenBSD:*:*)
    256         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    257         exit 0 ;;
     254        exit ;;
    258255    *:OpenBSD:*:*)
    259256        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    260         exit 0 ;;
     257        exit ;;
    261258    *:ekkoBSD:*:*)
    262259        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    263         exit 0 ;;
     260        exit ;;
    264261    macppc:MirBSD:*:*)
    265262        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    266         exit 0 ;;
     263        exit ;;
    267264    *:MirBSD:*:*)
    268265        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    269         exit 0 ;;
     266        exit ;;
    270267    alpha:OSF1:*:*)
    271268        case $UNAME_RELEASE in
     
    320317        # 1.2 uses "1.2" for uname -r.
    321318        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    322         exit 0 ;;
    323     Alpha*:OpenVMS:*:*)
    324         echo alpha-hp-vms
    325         exit 0 ;;
     319        exit ;;
    326320    Alpha\ *:Windows_NT*:*)
    327321        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    329323        # of the specific Alpha model?
    330324        echo alpha-pc-interix
    331         exit 0 ;;
     325        exit ;;
    332326    21064:Windows_NT:50:3)
    333327        echo alpha-dec-winnt3.5
    334         exit 0 ;;
     328        exit ;;
    335329    Amiga*:UNIX_System_V:4.0:*)
    336330        echo m68k-unknown-sysv4
    337         exit 0;;
     331        exit ;;
    338332    *:[Aa]miga[Oo][Ss]:*:*)
    339333        echo ${UNAME_MACHINE}-unknown-amigaos
    340         exit 0 ;;
     334        exit ;;
    341335    *:[Mm]orph[Oo][Ss]:*:*)
    342336        echo ${UNAME_MACHINE}-unknown-morphos
    343         exit 0 ;;
     337        exit ;;
    344338    *:OS/390:*:*)
    345339        echo i370-ibm-openedition
    346         exit 0 ;;
     340        exit ;;
     341    *:z/VM:*:*)
     342        echo s390-ibm-zvmoe
     343        exit ;;
    347344    *:OS400:*:*)
    348345        echo powerpc-ibm-os400
    349         exit 0 ;;
     346        exit ;;
    350347    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    351348        echo arm-acorn-riscix${UNAME_RELEASE}
    352         exit 0;;
     349        exit ;;
     350    arm:riscos:*:*|arm:RISCOS:*:*)
     351        echo arm-unknown-riscos
     352        exit ;;
    353353    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    354354        echo hppa1.1-hitachi-hiuxmpp
    355         exit 0;;
     355        exit ;;
    356356    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    357357        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
     
    361361                echo pyramid-pyramid-bsd
    362362        fi
    363         exit 0 ;;
     363        exit ;;
    364364    NILE*:*:*:dcosx)
    365365        echo pyramid-pyramid-svr4
    366         exit 0 ;;
     366        exit ;;
    367367    DRS?6000:unix:4.0:6*)
    368368        echo sparc-icl-nx6
    369         exit 0 ;;
    370     DRS?6000:UNIX_SV:4.2*:7*)
     369        exit ;;
     370    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    371371        case `/usr/bin/uname -p` in
    372             sparc) echo sparc-icl-nx7 && exit 0 ;;
     372            sparc) echo sparc-icl-nx7; exit ;;
    373373        esac ;;
    374374    sun4H:SunOS:5.*:*)
    375375        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    376         exit 0 ;;
     376        exit ;;
    377377    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    378378        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    379         exit 0 ;;
     379        exit ;;
    380380    i86pc:SunOS:5.*:*)
    381381        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    382         exit 0 ;;
     382        exit ;;
    383383    sun4*:SunOS:6*:*)
    384384        # According to config.sub, this is the proper way to canonicalize
     
    386386        # it's likely to be more like Solaris than SunOS4.
    387387        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    388         exit 0 ;;
     388        exit ;;
    389389    sun4*:SunOS:*:*)
    390390        case "`/usr/bin/arch -k`" in
     
    395395        # Japanese Language versions have a version number like `4.1.3-JL'.
    396396        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    397         exit 0 ;;
     397        exit ;;
    398398    sun3*:SunOS:*:*)
    399399        echo m68k-sun-sunos${UNAME_RELEASE}
    400         exit 0 ;;
     400        exit ;;
    401401    sun*:*:4.2BSD:*)
    402402        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     
    410410                ;;
    411411        esac
    412         exit 0 ;;
     412        exit ;;
    413413    aushp:SunOS:*:*)
    414414        echo sparc-auspex-sunos${UNAME_RELEASE}
    415         exit 0 ;;
     415        exit ;;
    416416    # The situation for MiNT is a little confusing.  The machine name
    417417    # can be virtually everything (everything which is not
     
    424424    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    425425        echo m68k-atari-mint${UNAME_RELEASE}
    426         exit 0 ;;
     426        exit ;;
    427427    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    428428        echo m68k-atari-mint${UNAME_RELEASE}
    429         exit 0 ;;
     429        exit ;;
    430430    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    431431        echo m68k-atari-mint${UNAME_RELEASE}
    432         exit 0 ;;
     432        exit ;;
    433433    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    434434        echo m68k-milan-mint${UNAME_RELEASE}
    435         exit 0 ;;
     435        exit ;;
    436436    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    437437        echo m68k-hades-mint${UNAME_RELEASE}
    438         exit 0 ;;
     438        exit ;;
    439439    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    440440        echo m68k-unknown-mint${UNAME_RELEASE}
    441         exit 0 ;;
     441        exit ;;
    442442    m68k:machten:*:*)
    443443        echo m68k-apple-machten${UNAME_RELEASE}
    444         exit 0 ;;
     444        exit ;;
    445445    powerpc:machten:*:*)
    446446        echo powerpc-apple-machten${UNAME_RELEASE}
    447         exit 0 ;;
     447        exit ;;
    448448    RISC*:Mach:*:*)
    449449        echo mips-dec-mach_bsd4.3
    450         exit 0 ;;
     450        exit ;;
    451451    RISC*:ULTRIX:*:*)
    452452        echo mips-dec-ultrix${UNAME_RELEASE}
    453         exit 0 ;;
     453        exit ;;
    454454    VAX*:ULTRIX*:*:*)
    455455        echo vax-dec-ultrix${UNAME_RELEASE}
    456         exit 0 ;;
     456        exit ;;
    457457    2020:CLIX:*:* | 2430:CLIX:*:*)
    458458        echo clipper-intergraph-clix${UNAME_RELEASE}
    459         exit 0 ;;
     459        exit ;;
    460460    mips:*:*:UMIPS | mips:*:*:RISCos)
    461461        eval $set_cc_for_build
     
    481481        }
    482482EOF
    483         $CC_FOR_BUILD -o $dummy $dummy.c \
    484           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    485           && exit 0
     483        $CC_FOR_BUILD -o $dummy $dummy.c &&
     484          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     485          SYSTEM_NAME=`$dummy $dummyarg` &&
     486            { echo "$SYSTEM_NAME"; exit; }
    486487        echo mips-mips-riscos${UNAME_RELEASE}
    487         exit 0 ;;
     488        exit ;;
    488489    Motorola:PowerMAX_OS:*:*)
    489490        echo powerpc-motorola-powermax
    490         exit 0 ;;
     491        exit ;;
    491492    Motorola:*:4.3:PL8-*)
    492493        echo powerpc-harris-powermax
    493         exit 0 ;;
     494        exit ;;
    494495    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    495496        echo powerpc-harris-powermax
    496         exit 0 ;;
     497        exit ;;
    497498    Night_Hawk:Power_UNIX:*:*)
    498499        echo powerpc-harris-powerunix
    499         exit 0 ;;
     500        exit ;;
    500501    m88k:CX/UX:7*:*)
    501502        echo m88k-harris-cxux7
    502         exit 0 ;;
     503        exit ;;
    503504    m88k:*:4*:R4*)
    504505        echo m88k-motorola-sysv4
    505         exit 0 ;;
     506        exit ;;
    506507    m88k:*:3*:R3*)
    507508        echo m88k-motorola-sysv3
    508         exit 0 ;;
     509        exit ;;
    509510    AViiON:dgux:*:*)
    510511        # DG/UX returns AViiON for all architectures
     
    522523            echo i586-dg-dgux${UNAME_RELEASE}
    523524        fi
    524         exit 0 ;;
     525        exit ;;
    525526    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    526527        echo m88k-dolphin-sysv3
    527         exit 0 ;;
     528        exit ;;
    528529    M88*:*:R3*:*)
    529530        # Delta 88k system running SVR3
    530531        echo m88k-motorola-sysv3
    531         exit 0 ;;
     532        exit ;;
    532533    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    533534        echo m88k-tektronix-sysv3
    534         exit 0 ;;
     535        exit ;;
    535536    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    536537        echo m68k-tektronix-bsd
    537         exit 0 ;;
     538        exit ;;
    538539    *:IRIX*:*:*)
    539540        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    540         exit 0 ;;
     541        exit ;;
    541542    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    542         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    543         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     543        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     544        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    544545    i*86:AIX:*:*)
    545546        echo i386-ibm-aix
    546         exit 0 ;;
     547        exit ;;
    547548    ia64:AIX:*:*)
    548549        if [ -x /usr/bin/oslevel ] ; then
     
    552553        fi
    553554        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    554         exit 0 ;;
     555        exit ;;
    555556    *:AIX:2:3)
    556557        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     
    567568                        }
    568569EOF
    569                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    570                 echo rs6000-ibm-aix3.2.5
     570                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     571                then
     572                        echo "$SYSTEM_NAME"
     573                else
     574                        echo rs6000-ibm-aix3.2.5
     575                fi
    571576        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    572577                echo rs6000-ibm-aix3.2.4
     
    574579                echo rs6000-ibm-aix3.2
    575580        fi
    576         exit 0 ;;
     581        exit ;;
    577582    *:AIX:*:[45])
    578583        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     
    588593        fi
    589594        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    590         exit 0 ;;
     595        exit ;;
    591596    *:AIX:*:*)
    592597        echo rs6000-ibm-aix
    593         exit 0 ;;
     598        exit ;;
    594599    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    595600        echo romp-ibm-bsd4.4
    596         exit 0 ;;
     601        exit ;;
    597602    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    598603        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    599         exit 0 ;;                           # report: romp-ibm BSD 4.3
     604        exit ;;                             # report: romp-ibm BSD 4.3
    600605    *:BOSX:*:*)
    601606        echo rs6000-bull-bosx
    602         exit 0 ;;
     607        exit ;;
    603608    DPX/2?00:B.O.S.:*:*)
    604609        echo m68k-bull-sysv3
    605         exit 0 ;;
     610        exit ;;
    606611    9000/[34]??:4.3bsd:1.*:*)
    607612        echo m68k-hp-bsd
    608         exit 0 ;;
     613        exit ;;
    609614    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    610615        echo m68k-hp-bsd4.4
    611         exit 0 ;;
     616        exit ;;
    612617    9000/[34678]??:HP-UX:*:*)
    613618        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
     
    673678            # avoid double evaluation of $set_cc_for_build
    674679            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    675             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     680
     681            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     682            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     683            # generating 64-bit code.  GNU and HP use different nomenclature:
     684            #
     685            # $ CC_FOR_BUILD=cc ./config.guess
     686            # => hppa2.0w-hp-hpux11.23
     687            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     688            # => hppa64-hp-hpux11.23
     689
     690            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     691                grep __LP64__ >/dev/null
    676692            then
    677693                HP_ARCH="hppa2.0w"
     
    681697        fi
    682698        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    683         exit 0 ;;
     699        exit ;;
    684700    ia64:HP-UX:*:*)
    685701        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    686702        echo ia64-hp-hpux${HPUX_REV}
    687         exit 0 ;;
     703        exit ;;
    688704    3050*:HI-UX:*:*)
    689705        eval $set_cc_for_build
     
    713729        }
    714730EOF
    715         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     731        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     732                { echo "$SYSTEM_NAME"; exit; }
    716733        echo unknown-hitachi-hiuxwe2
    717         exit 0 ;;
     734        exit ;;
    718735    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    719736        echo hppa1.1-hp-bsd
    720         exit 0 ;;
     737        exit ;;
    721738    9000/8??:4.3bsd:*:*)
    722739        echo hppa1.0-hp-bsd
    723         exit 0 ;;
     740        exit ;;
    724741    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    725742        echo hppa1.0-hp-mpeix
    726         exit 0 ;;
     743        exit ;;
    727744    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    728745        echo hppa1.1-hp-osf
    729         exit 0 ;;
     746        exit ;;
    730747    hp8??:OSF1:*:*)
    731748        echo hppa1.0-hp-osf
    732         exit 0 ;;
     749        exit ;;
    733750    i*86:OSF1:*:*)
    734751        if [ -x /usr/sbin/sysversion ] ; then
     
    737754            echo ${UNAME_MACHINE}-unknown-osf1
    738755        fi
    739         exit 0 ;;
     756        exit ;;
    740757    parisc*:Lites*:*:*)
    741758        echo hppa1.1-hp-lites
    742         exit 0 ;;
     759        exit ;;
    743760    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    744761        echo c1-convex-bsd
    745         exit 0 ;;
     762        exit ;;
    746763    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    747764        if getsysinfo -f scalar_acc
     
    749766        else echo c2-convex-bsd
    750767        fi
    751         exit 0 ;;
     768        exit ;;
    752769    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    753770        echo c34-convex-bsd
    754         exit 0 ;;
     771        exit ;;
    755772    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    756773        echo c38-convex-bsd
    757         exit 0 ;;
     774        exit ;;
    758775    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    759776        echo c4-convex-bsd
    760         exit 0 ;;
     777        exit ;;
    761778    CRAY*Y-MP:*:*:*)
    762779        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    763         exit 0 ;;
     780        exit ;;
    764781    CRAY*[A-Z]90:*:*:*)
    765782        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     
    767784              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    768785              -e 's/\.[^.]*$/.X/'
    769         exit 0 ;;
     786        exit ;;
    770787    CRAY*TS:*:*:*)
    771788        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    772         exit 0 ;;
     789        exit ;;
    773790    CRAY*T3E:*:*:*)
    774791        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    775         exit 0 ;;
     792        exit ;;
    776793    CRAY*SV1:*:*:*)
    777794        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    778         exit 0 ;;
     795        exit ;;
    779796    *:UNICOS/mp:*:*)
    780         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    781         exit 0 ;;
     797        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     798        exit ;;
    782799    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    783800        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     
    785802        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    786803        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    787         exit 0 ;;
     804        exit ;;
    788805    5000:UNIX_System_V:4.*:*)
    789806        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    790807        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    791808        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    792         exit 0 ;;
     809        exit ;;
    793810    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    794811        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    795         exit 0 ;;
     812        exit ;;
    796813    sparc*:BSD/OS:*:*)
    797814        echo sparc-unknown-bsdi${UNAME_RELEASE}
    798         exit 0 ;;
     815        exit ;;
    799816    *:BSD/OS:*:*)
    800817        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    801         exit 0 ;;
     818        exit ;;
    802819    *:FreeBSD:*:*)
    803         # Determine whether the default compiler uses glibc.
    804         eval $set_cc_for_build
    805         sed 's/^        //' << EOF >$dummy.c
    806         #include <features.h>
    807         #if __GLIBC__ >= 2
    808         LIBC=gnu
    809         #else
    810         LIBC=
    811         #endif
    812 EOF
    813         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    814         # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
    815         # FreeBSD's kernel, but not the complete OS.
    816         case ${LIBC} in gnu) kernel_only='k' ;; esac
    817         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    818         exit 0 ;;
     820        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     821        exit ;;
    819822    i*:CYGWIN*:*)
    820823        echo ${UNAME_MACHINE}-pc-cygwin
    821         exit 0 ;;
     824        exit ;;
    822825    i*:MINGW*:*)
    823826        echo ${UNAME_MACHINE}-pc-mingw32
    824         exit 0 ;;
     827        exit ;;
     828    i*:windows32*:*)
     829        # uname -m includes "-pc" on this system.
     830        echo ${UNAME_MACHINE}-mingw32
     831        exit ;;
    825832    i*:PW*:*)
    826833        echo ${UNAME_MACHINE}-pc-pw32
    827         exit 0 ;;
     834        exit ;;
    828835    x86:Interix*:[34]*)
    829836        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    830         exit 0 ;;
     837        exit ;;
    831838    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    832839        echo i${UNAME_MACHINE}-pc-mks
    833         exit 0 ;;
     840        exit ;;
    834841    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    835842        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    837844        # UNAME_MACHINE based on the output of uname instead of i386?
    838845        echo i586-pc-interix
    839         exit 0 ;;
     846        exit ;;
    840847    i*:UWIN*:*)
    841848        echo ${UNAME_MACHINE}-pc-uwin
    842         exit 0 ;;
     849        exit ;;
     850    amd64:CYGWIN*:*:*)
     851        echo x86_64-unknown-cygwin
     852        exit ;;
    843853    p*:CYGWIN*:*)
    844854        echo powerpcle-unknown-cygwin
    845         exit 0 ;;
     855        exit ;;
    846856    prep*:SunOS:5.*:*)
    847857        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    848         exit 0 ;;
     858        exit ;;
    849859    *:GNU:*:*)
    850860        # the GNU system
    851861        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    852         exit 0 ;;
     862        exit ;;
    853863    *:GNU/*:*:*)
    854864        # other systems with GNU libc and userland
    855865        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    856         exit 0 ;;
     866        exit ;;
    857867    i*86:Minix:*:*)
    858868        echo ${UNAME_MACHINE}-pc-minix
    859         exit 0 ;;
     869        exit ;;
    860870    arm*:Linux:*:*)
    861871        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    862         exit 0 ;;
     872        exit ;;
    863873    cris:Linux:*:*)
    864874        echo cris-axis-linux-${LIBC}
    865         exit 0 ;;
     875        exit ;;
     876    crisv32:Linux:*:*)
     877        echo crisv32-axis-linux-${LIBC}
     878        exit ;;
     879    frv:Linux:*:*)
     880        echo frv-unknown-linux-${LIBC}
     881        exit ;;
    866882    ia64:Linux:*:*)
    867883        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    868         exit 0 ;;
     884        exit ;;
    869885    m32r*:Linux:*:*)
    870886        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    871         exit 0 ;;
     887        exit ;;
    872888    m68*:Linux:*:*)
    873889        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    874         exit 0 ;;
     890        exit ;;
    875891    mips:Linux:*:*)
    876892        eval $set_cc_for_build
     
    890906EOF
    891907        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    892         test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
     908        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
    893909        ;;
    894910    mips64:Linux:*:*)
     
    909925EOF
    910926        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    911         test x"${CPU}" != x && echo "${CPU}-unknown-linux-${LIBC}" && exit 0
     927        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
    912928        ;;
    913929    ppc:Linux:*:*)
    914930        echo powerpc-unknown-linux-${LIBC}
    915         exit 0 ;;
     931        exit ;;
    916932    ppc64:Linux:*:*)
    917933        echo powerpc64-unknown-linux-${LIBC}
    918         exit 0 ;;
     934        exit ;;
    919935    alpha:Linux:*:*)
    920936        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    930946        if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
    931947        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    932         exit 0 ;;
     948        exit ;;
    933949    parisc:Linux:*:* | hppa:Linux:*:*)
    934950        # Look for CPU level
     
    938954          *)    echo hppa-unknown-linux-${LIBC} ;;
    939955        esac
    940         exit 0 ;;
     956        exit ;;
    941957    parisc64:Linux:*:* | hppa64:Linux:*:*)
    942958        echo hppa64-unknown-linux-${LIBC}
    943         exit 0 ;;
     959        exit ;;
    944960    s390:Linux:*:* | s390x:Linux:*:*)
    945961        echo ${UNAME_MACHINE}-ibm-linux
    946         exit 0 ;;
     962        exit ;;
    947963    sh64*:Linux:*:*)
    948964        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    949         exit 0 ;;
     965        exit ;;
    950966    sh*:Linux:*:*)
    951967        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    952         exit 0 ;;
     968        exit ;;
    953969    sparc:Linux:*:* | sparc64:Linux:*:*)
    954970        echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
    955         exit 0 ;;
     971        exit ;;
    956972    x86_64:Linux:*:*)
    957973        echo x86_64-unknown-linux-${LIBC}
    958         exit 0 ;;
     974        exit ;;
    959975    i*86:Linux:*:*)
    960976        # The BFD linker knows what the default object file format is, so
     
    974990          a.out-i386-linux)
    975991                echo "${UNAME_MACHINE}-pc-linux-${LIBC}aout"
    976                 exit 0 ;;
     992                exit ;;
    977993          coff-i386)
    978994                echo "${UNAME_MACHINE}-pc-linux-${LIBC}coff"
    979                 exit 0 ;;
     995                exit ;;
    980996          "")
    981997                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    982998                # one that does not give us useful --help.
    983999                echo "${UNAME_MACHINE}-pc-linux-${LIBC}oldld"
    984                 exit 0 ;;
     1000                exit ;;
    9851001        esac
    986         if [ $LIBC != "gnu" -o $LIBC != "gnulibc1" ];then echo "$TENTATIVE" && exit 0; fi
     1002        if [ "$LIBC" != "gnu" ] ; then echo "$TENTATIVE" && exit 0 ; fi
    9871003        # Determine whether the default compiler is a.out or elf
    9881004        eval $set_cc_for_build
     
    10111027EOF
    10121028        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    1013         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    1014         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     1029        test x"${LIBC}" != x && {
     1030                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     1031                exit
     1032        }
     1033        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
    10151034        ;;
    10161035    i*86:DYNIX/ptx:4*:*)
     
    10191038        # sysname and nodename.
    10201039        echo i386-sequent-sysv4
    1021         exit 0 ;;
     1040        exit ;;
    10221041    i*86:UNIX_SV:4.2MP:2.*)
    10231042        # Unixware is an offshoot of SVR4, but it has its own version
     
    10271046        # Use sysv4.2uw... so that sysv4* matches it.
    10281047        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1029         exit 0 ;;
     1048        exit ;;
    10301049    i*86:OS/2:*:*)
    10311050        # If we were able to find `uname', then EMX Unix compatibility
    10321051        # is probably installed.
    10331052        echo ${UNAME_MACHINE}-pc-os2-emx
    1034         exit 0 ;;
     1053        exit ;;
    10351054    i*86:XTS-300:*:STOP)
    10361055        echo ${UNAME_MACHINE}-unknown-stop
    1037         exit 0 ;;
     1056        exit ;;
    10381057    i*86:atheos:*:*)
    10391058        echo ${UNAME_MACHINE}-unknown-atheos
    1040         exit 0 ;;
    1041         i*86:syllable:*:*)
     1059        exit ;;
     1060    i*86:syllable:*:*)
    10421061        echo ${UNAME_MACHINE}-pc-syllable
    1043         exit 0 ;;
     1062        exit ;;
    10441063    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    10451064        echo i386-unknown-lynxos${UNAME_RELEASE}
    1046         exit 0 ;;
     1065        exit ;;
    10471066    i*86:*DOS:*:*)
    10481067        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1049         exit 0 ;;
     1068        exit ;;
    10501069    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    10511070        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     
    10551074                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10561075        fi
    1057         exit 0 ;;
    1058     i*86:*:5:[78]*)
     1076        exit ;;
     1077    i*86:*:5:[678]*)
     1078        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10591079        case `/bin/uname -X | grep "^Machine"` in
    10601080            *486*)           UNAME_MACHINE=i486 ;;
     
    10631083        esac
    10641084        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1065         exit 0 ;;
     1085        exit ;;
    10661086    i*86:*:3.2:*)
    10671087        if test -f /usr/options/cb.name; then
     
    10811101                echo ${UNAME_MACHINE}-pc-sysv32
    10821102        fi
    1083         exit 0 ;;
     1103        exit ;;
    10841104    pc:*:*:*)
    10851105        # Left here for compatibility:
     
    10871107        # the processor, so we play safe by assuming i386.
    10881108        echo i386-pc-msdosdjgpp
    1089         exit 0 ;;
     1109        exit ;;
    10901110    Intel:Mach:3*:*)
    10911111        echo i386-pc-mach3
    1092         exit 0 ;;
     1112        exit ;;
    10931113    paragon:*:*:*)
    10941114        echo i860-intel-osf1
    1095         exit 0 ;;
     1115        exit ;;
    10961116    i860:*:4.*:*) # i860-SVR4
    10971117        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
     
    11001120          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    11011121        fi
    1102         exit 0 ;;
     1122        exit ;;
    11031123    mini*:CTIX:SYS*5:*)
    11041124        # "miniframe"
    11051125        echo m68010-convergent-sysv
    1106         exit 0 ;;
     1126        exit ;;
    11071127    mc68k:UNIX:SYSTEM5:3.51m)
    11081128        echo m68k-convergent-sysv
    1109         exit 0 ;;
     1129        exit ;;
    11101130    M680?0:D-NIX:5.3:*)
    11111131        echo m68k-diab-dnix
    1112         exit 0 ;;
    1113     M68*:*:R3V[567]*:*)
    1114         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1115     3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
     1132        exit ;;
     1133    M68*:*:R3V[5678]*:*)
     1134        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
     1135    3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
    11161136        OS_REL=''
    11171137        test -r /etc/.relid \
    11181138        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11191139        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1120           && echo i486-ncr-sysv4.3${OS_REL} && exit 0
     1140          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    11211141        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1122           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
     1142          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    11231143    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11241144        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1125           && echo i486-ncr-sysv4 && exit 0 ;;
     1145          && { echo i486-ncr-sysv4; exit; } ;;
    11261146    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    11271147        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1128         exit 0 ;;
     1148        exit ;;
    11291149    mc68030:UNIX_System_V:4.*:*)
    11301150        echo m68k-atari-sysv4
    1131         exit 0 ;;
     1151        exit ;;
    11321152    TSUNAMI:LynxOS:2.*:*)
    11331153        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1134         exit 0 ;;
     1154        exit ;;
    11351155    rs6000:LynxOS:2.*:*)
    11361156        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1137         exit 0 ;;
     1157        exit ;;
    11381158    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11391159        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1140         exit 0 ;;
     1160        exit ;;
    11411161    SM[BE]S:UNIX_SV:*:*)
    11421162        echo mips-dde-sysv${UNAME_RELEASE}
    1143         exit 0 ;;
     1163        exit ;;
    11441164    RM*:ReliantUNIX-*:*:*)
    11451165        echo mips-sni-sysv4
    1146         exit 0 ;;
     1166        exit ;;
    11471167    RM*:SINIX-*:*:*)
    11481168        echo mips-sni-sysv4
    1149         exit 0 ;;
     1169        exit ;;
    11501170    *:SINIX-*:*:*)
    11511171        if uname -p 2>/dev/null >/dev/null ; then
     
    11551175                echo ns32k-sni-sysv
    11561176        fi
    1157         exit 0 ;;
     1177        exit ;;
    11581178    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11591179                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11601180        echo i586-unisys-sysv4
    1161         exit 0 ;;
     1181        exit ;;
    11621182    *:UNIX_System_V:4*:FTX*)
    11631183        # From Gerald Hewes <hewes@openmarket.com>.
    11641184        # How about differentiating between stratus architectures? -djm
    11651185        echo hppa1.1-stratus-sysv4
    1166         exit 0 ;;
     1186        exit ;;
    11671187    *:*:*:FTX*)
    11681188        # From seanf@swdc.stratus.com.
    11691189        echo i860-stratus-sysv4
    1170         exit 0 ;;
     1190        exit ;;
     1191    i*86:VOS:*:*)
     1192        # From Paul.Green@stratus.com.
     1193        echo ${UNAME_MACHINE}-stratus-vos
     1194        exit ;;
    11711195    *:VOS:*:*)
    11721196        # From Paul.Green@stratus.com.
    11731197        echo hppa1.1-stratus-vos
    1174         exit 0 ;;
     1198        exit ;;
    11751199    mc68*:A/UX:*:*)
    11761200        echo m68k-apple-aux${UNAME_RELEASE}
    1177         exit 0 ;;
     1201        exit ;;
    11781202    news*:NEWS-OS:6*:*)
    11791203        echo mips-sony-newsos6
    1180         exit 0 ;;
     1204        exit ;;
    11811205    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11821206        if [ -d /usr/nec ]; then
     
    11851209                echo mips-unknown-sysv${UNAME_RELEASE}
    11861210        fi
    1187         exit 0 ;;
     1211        exit ;;
    11881212    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11891213        echo powerpc-be-beos
    1190         exit 0 ;;
     1214        exit ;;
    11911215    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    11921216        echo powerpc-apple-beos
    1193         exit 0 ;;
     1217        exit ;;
    11941218    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    11951219        echo i586-pc-beos
    1196         exit 0 ;;
     1220        exit ;;
    11971221    SX-4:SUPER-UX:*:*)
    11981222        echo sx4-nec-superux${UNAME_RELEASE}
    1199         exit 0 ;;
     1223        exit ;;
    12001224    SX-5:SUPER-UX:*:*)
    12011225        echo sx5-nec-superux${UNAME_RELEASE}
    1202         exit 0 ;;
     1226        exit ;;
    12031227    SX-6:SUPER-UX:*:*)
    12041228        echo sx6-nec-superux${UNAME_RELEASE}
    1205         exit 0 ;;
     1229        exit ;;
    12061230    Power*:Rhapsody:*:*)
    12071231        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1208         exit 0 ;;
     1232        exit ;;
    12091233    *:Rhapsody:*:*)
    12101234        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1211         exit 0 ;;
     1235        exit ;;
    12121236    *:Darwin:*:*)
    1213         case `uname -p` in
     1237        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1238        case $UNAME_PROCESSOR in
    12141239            *86) UNAME_PROCESSOR=i686 ;;
    1215             powerpc) UNAME_PROCESSOR=powerpc ;;
     1240            unknown) UNAME_PROCESSOR=powerpc ;;
    12161241        esac
    12171242        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1218         exit 0 ;;
     1243        exit ;;
    12191244    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    12201245        UNAME_PROCESSOR=`uname -p`
     
    12241249        fi
    12251250        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1226         exit 0 ;;
     1251        exit ;;
    12271252    *:QNX:*:4*)
    12281253        echo i386-pc-qnx
    1229         exit 0 ;;
     1254        exit ;;
     1255    NSE-?:NONSTOP_KERNEL:*:*)
     1256        echo nse-tandem-nsk${UNAME_RELEASE}
     1257        exit ;;
    12301258    NSR-?:NONSTOP_KERNEL:*:*)
    12311259        echo nsr-tandem-nsk${UNAME_RELEASE}
    1232         exit 0 ;;
     1260        exit ;;
    12331261    *:NonStop-UX:*:*)
    12341262        echo mips-compaq-nonstopux
    1235         exit 0 ;;
     1263        exit ;;
    12361264    BS2000:POSIX*:*:*)
    12371265        echo bs2000-siemens-sysv
    1238         exit 0 ;;
     1266        exit ;;
    12391267    DS/*:UNIX_System_V:*:*)
    12401268        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1241         exit 0 ;;
     1269        exit ;;
    12421270    *:Plan9:*:*)
    12431271        # "uname -m" is not consistent, so use $cputype instead. 386
     
    12501278        fi
    12511279        echo ${UNAME_MACHINE}-unknown-plan9
    1252         exit 0 ;;
     1280        exit ;;
    12531281    *:TOPS-10:*:*)
    12541282        echo pdp10-unknown-tops10
    1255         exit 0 ;;
     1283        exit ;;
    12561284    *:TENEX:*:*)
    12571285        echo pdp10-unknown-tenex
    1258         exit 0 ;;
     1286        exit ;;
    12591287    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12601288        echo pdp10-dec-tops20
    1261         exit 0 ;;
     1289        exit ;;
    12621290    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12631291        echo pdp10-xkl-tops20
    1264         exit 0 ;;
     1292        exit ;;
    12651293    *:TOPS-20:*:*)
    12661294        echo pdp10-unknown-tops20
    1267         exit 0 ;;
     1295        exit ;;
    12681296    *:ITS:*:*)
    12691297        echo pdp10-unknown-its
    1270         exit 0 ;;
     1298        exit ;;
    12711299    SEI:*:*:SEIUX)
    12721300        echo mips-sei-seiux${UNAME_RELEASE}
    1273         exit 0 ;;
     1301        exit ;;
    12741302    *:DragonFly:*:*)
    12751303        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1276         exit 0 ;;
     1304        exit ;;
     1305    *:*VMS:*:*)
     1306        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1307        case "${UNAME_MACHINE}" in
     1308            A*) echo alpha-dec-vms ; exit ;;
     1309            I*) echo ia64-dec-vms ; exit ;;
     1310            V*) echo vax-dec-vms ; exit ;;
     1311        esac ;;
     1312    *:XENIX:*:SysV)
     1313        echo i386-pc-xenix
     1314        exit ;;
     1315    i*86:skyos:*:*)
     1316        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1317        exit ;;
    12771318esac
    12781319
     
    13061347
    13071348#if defined (__arm) && defined (__acorn) && defined (__unix)
    1308   printf ("arm-acorn-riscix"); exit (0);
     1349  printf ("arm-acorn-riscix\n"); exit (0);
    13091350#endif
    13101351
     
    13951436EOF
    13961437
    1397 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1438$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1439        { echo "$SYSTEM_NAME"; exit; }
    13981440
    13991441# Apollos put the system type in the environment.
    14001442
    1401 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
     1443test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    14021444
    14031445# Convex versions that predate uname can use getsysinfo(1)
     
    14081450    c1*)
    14091451        echo c1-convex-bsd
    1410         exit 0 ;;
     1452        exit ;;
    14111453    c2*)
    14121454        if getsysinfo -f scalar_acc
     
    14141456        else echo c2-convex-bsd
    14151457        fi
    1416         exit 0 ;;
     1458        exit ;;
    14171459    c34*)
    14181460        echo c34-convex-bsd
    1419         exit 0 ;;
     1461        exit ;;
    14201462    c38*)
    14211463        echo c38-convex-bsd
    1422         exit 0 ;;
     1464        exit ;;
    14231465    c4*)
    14241466        echo c4-convex-bsd
    1425         exit 0 ;;
     1467        exit ;;
    14261468    esac
    14271469fi
     
    14341476download the most up to date version of the config scripts from
    14351477
    1436     ftp://ftp.gnu.org/pub/gnu/config/
     1478  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
     1479and
     1480  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
    14371481
    14381482If the version you run ($0) is already up to date, please
Note: See TracChangeset for help on using the changeset viewer.