source: patches/file-4.19-config_update-1.patch @ 78a04c8

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 78a04c8 was 78a04c8, checked in by Jim Gifford <clfs@…>, 17 years ago

Fixed typos in Cross-Tools File.xml

  • Property mode set to 100644
File size: 48.3 KB
  • config.guess

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2006-11-02
    Initial Package Version: 4.18
    Origin: Jim Gifford
    Upstream Status: Unknown
    Description: Updates config.sub and config.guess
     
    diff -Naur file-4.18.orig/config.guess file-4.18/config.guess
    old new  
    11#! /bin/sh
    2 #
    3 # $NetBSD: config.guess,v 1.8 2004/08/14 19:13:55 schmonz Exp $
    4 #
    52# Attempt to guess a canonical system name.
    63#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    7 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     4#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    85
    9 timestamp='2004-06-11'
     6timestamp='2006-01-02'
    107
    118# This file is free software; you can redistribute it and/or modify it
    129# under the terms of the GNU General Public License as published by
     
    2017#
    2118# You should have received a copy of the GNU General Public License
    2219# along with this program; if not, write to the Free Software
    23 # 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.
    2422#
    2523# As a special exception to the GNU General Public License, if you
    2624# distribute this file as part of a program that contains a
    2725# configuration script generated by Autoconf, you may include it under
    2826# the same distribution terms that you use for the rest of that program.
    2927
     28
    3029# Originally written by Per Bothner <per@bothner.com>.
    3130# Please send patches to <config-patches@gnu.org>.  Submit a context
    3231# diff and a properly formatted ChangeLog entry.
     
    5655GNU config.guess ($timestamp)
    5756
    5857Originally written by Per Bothner.
    59 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
    6059Free Software Foundation, Inc.
    6160
    6261This is free software; see the source for copying conditions.  There is NO
     
    6968while test $# -gt 0 ; do
    7069  case $1 in
    7170    --time-stamp | --time* | -t )
    72        echo "$timestamp" ; exit 0 ;;
     71       echo "$timestamp" ; exit ;;
    7372    --version | -v )
    74        echo "$version" ; exit 0 ;;
     73       echo "$version" ; exit ;;
    7574    --help | --h* | -h )
    76        echo "$usage"; exit 0 ;;
     75       echo "$usage"; exit ;;
    7776    -- )     # Stop option processing
    7877       shift; break ;;
    7978    - ) # Use stdin as input.
     
    126125        ;;
    127126 ,,*)   CC_FOR_BUILD=$CC ;;
    128127 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    129 esac ;'
     128esac ; set_cc_for_build= ;'
    130129
    131130# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    132131# (ghazi@noc.rutgers.edu 1994-08-24)
     
    161160            arm*) machine=arm-unknown ;;
    162161            sh3el) machine=shl-unknown ;;
    163162            sh3eb) machine=sh-unknown ;;
    164             sh5el) machine=sh5le-unknown ;;
    165163            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    166164        esac
    167165        # The Operating System including object format, if it has switched
     
    200198        # contains redundant information, the shorter form:
    201199        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    202200        echo "${machine}-${os}${release}"
    203         exit 0 ;;
    204     amd64:OpenBSD:*:*)
    205         echo x86_64-unknown-openbsd${UNAME_RELEASE}
    206         exit 0 ;;
    207     amiga:OpenBSD:*:*)
    208         echo m68k-unknown-openbsd${UNAME_RELEASE}
    209         exit 0 ;;
    210     arc:OpenBSD:*:*)
    211         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    212         exit 0 ;;
    213     cats:OpenBSD:*:*)
    214         echo arm-unknown-openbsd${UNAME_RELEASE}
    215         exit 0 ;;
    216     hp300:OpenBSD:*:*)
    217         echo m68k-unknown-openbsd${UNAME_RELEASE}
    218         exit 0 ;;
    219     luna88k:OpenBSD:*:*)
    220         echo m88k-unknown-openbsd${UNAME_RELEASE}
    221         exit 0 ;;
    222     mac68k:OpenBSD:*:*)
    223         echo m68k-unknown-openbsd${UNAME_RELEASE}
    224         exit 0 ;;
    225     macppc:OpenBSD:*:*)
    226         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    227         exit 0 ;;
    228     mvme68k:OpenBSD:*:*)
    229         echo m68k-unknown-openbsd${UNAME_RELEASE}
    230         exit 0 ;;
    231     mvme88k:OpenBSD:*:*)
    232         echo m88k-unknown-openbsd${UNAME_RELEASE}
    233         exit 0 ;;
    234     mvmeppc:OpenBSD:*:*)
    235         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    236         exit 0 ;;
    237     pmax:OpenBSD:*:*)
    238         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    239         exit 0 ;;
    240     sgi:OpenBSD:*:*)
    241         echo mipseb-unknown-openbsd${UNAME_RELEASE}
    242         exit 0 ;;
    243     sun3:OpenBSD:*:*)
    244         echo m68k-unknown-openbsd${UNAME_RELEASE}
    245         exit 0 ;;
    246     wgrisc:OpenBSD:*:*)
    247         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    248         exit 0 ;;
     201        exit ;;
    249202    *:OpenBSD:*:*)
    250         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    251         exit 0 ;;
     203        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     204        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     205        exit ;;
    252206    *:ekkoBSD:*:*)
    253207        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
    254         exit 0 ;;
     208        exit ;;
     209    *:SolidBSD:*:*)
     210        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     211        exit ;;
    255212    macppc:MirBSD:*:*)
    256213        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
    257         exit 0 ;;
     214        exit ;;
    258215    *:MirBSD:*:*)
    259216        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
    260         exit 0 ;;
     217        exit ;;
    261218    alpha:OSF1:*:*)
    262219        case $UNAME_RELEASE in
    263220        *4.0)
     
    310267        # A Xn.n version is an unreleased experimental baselevel.
    311268        # 1.2 uses "1.2" for uname -r.
    312269        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    313         exit 0 ;;
    314     Alpha*:OpenVMS:*:*)
    315         echo alpha-hp-vms
    316         exit 0 ;;
     270        exit ;;
    317271    Alpha\ *:Windows_NT*:*)
    318272        # How do we know it's Interix rather than the generic POSIX subsystem?
    319273        # Should we change UNAME_MACHINE based on the output of uname instead
    320274        # of the specific Alpha model?
    321275        echo alpha-pc-interix
    322         exit 0 ;;
     276        exit ;;
    323277    21064:Windows_NT:50:3)
    324278        echo alpha-dec-winnt3.5
    325         exit 0 ;;
     279        exit ;;
    326280    Amiga*:UNIX_System_V:4.0:*)
    327281        echo m68k-unknown-sysv4
    328         exit 0;;
     282        exit ;;
    329283    *:[Aa]miga[Oo][Ss]:*:*)
    330284        echo ${UNAME_MACHINE}-unknown-amigaos
    331         exit 0 ;;
     285        exit ;;
    332286    *:[Mm]orph[Oo][Ss]:*:*)
    333287        echo ${UNAME_MACHINE}-unknown-morphos
    334         exit 0 ;;
     288        exit ;;
    335289    *:OS/390:*:*)
    336290        echo i370-ibm-openedition
    337         exit 0 ;;
     291        exit ;;
     292    *:z/VM:*:*)
     293        echo s390-ibm-zvmoe
     294        exit ;;
    338295    *:OS400:*:*)
    339296        echo powerpc-ibm-os400
    340         exit 0 ;;
     297        exit ;;
    341298    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    342299        echo arm-acorn-riscix${UNAME_RELEASE}
    343         exit 0;;
     300        exit ;;
     301    arm:riscos:*:*|arm:RISCOS:*:*)
     302        echo arm-unknown-riscos
     303        exit ;;
    344304    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    345305        echo hppa1.1-hitachi-hiuxmpp
    346         exit 0;;
     306        exit ;;
    347307    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    348308        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
    349309        if test "`(/bin/universe) 2>/dev/null`" = att ; then
     
    351311        else
    352312                echo pyramid-pyramid-bsd
    353313        fi
    354         exit 0 ;;
     314        exit ;;
    355315    NILE*:*:*:dcosx)
    356316        echo pyramid-pyramid-svr4
    357         exit 0 ;;
     317        exit ;;
    358318    DRS?6000:unix:4.0:6*)
    359319        echo sparc-icl-nx6
    360         exit 0 ;;
    361     DRS?6000:UNIX_SV:4.2*:7*)
     320        exit ;;
     321    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    362322        case `/usr/bin/uname -p` in
    363             sparc) echo sparc-icl-nx7 && exit 0 ;;
     323            sparc) echo sparc-icl-nx7; exit ;;
    364324        esac ;;
    365325    sun4H:SunOS:5.*:*)
    366326        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    367         exit 0 ;;
     327        exit ;;
    368328    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    369329        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    370         exit 0 ;;
     330        exit ;;
    371331    i86pc:SunOS:5.*:*)
    372332        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    373         exit 0 ;;
     333        exit ;;
    374334    sun4*:SunOS:6*:*)
    375335        # According to config.sub, this is the proper way to canonicalize
    376336        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
    377337        # it's likely to be more like Solaris than SunOS4.
    378338        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    379         exit 0 ;;
     339        exit ;;
    380340    sun4*:SunOS:*:*)
    381341        case "`/usr/bin/arch -k`" in
    382342            Series*|S4*)
     
    385345        esac
    386346        # Japanese Language versions have a version number like `4.1.3-JL'.
    387347        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    388         exit 0 ;;
     348        exit ;;
    389349    sun3*:SunOS:*:*)
    390350        echo m68k-sun-sunos${UNAME_RELEASE}
    391         exit 0 ;;
     351        exit ;;
    392352    sun*:*:4.2BSD:*)
    393353        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    394354        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
     
    400360                echo sparc-sun-sunos${UNAME_RELEASE}
    401361                ;;
    402362        esac
    403         exit 0 ;;
     363        exit ;;
    404364    aushp:SunOS:*:*)
    405365        echo sparc-auspex-sunos${UNAME_RELEASE}
    406         exit 0 ;;
     366        exit ;;
    407367    # The situation for MiNT is a little confusing.  The machine name
    408368    # can be virtually everything (everything which is not
    409369    # "atarist" or "atariste" at least should have a processor
     
    414374    # be no problem.
    415375    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    416376        echo m68k-atari-mint${UNAME_RELEASE}
    417         exit 0 ;;
     377        exit ;;
    418378    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    419379        echo m68k-atari-mint${UNAME_RELEASE}
    420         exit 0 ;;
     380        exit ;;
    421381    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    422382        echo m68k-atari-mint${UNAME_RELEASE}
    423         exit 0 ;;
     383        exit ;;
    424384    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    425385        echo m68k-milan-mint${UNAME_RELEASE}
    426         exit 0 ;;
     386        exit ;;
    427387    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    428388        echo m68k-hades-mint${UNAME_RELEASE}
    429         exit 0 ;;
     389        exit ;;
    430390    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    431391        echo m68k-unknown-mint${UNAME_RELEASE}
    432         exit 0 ;;
     392        exit ;;
    433393    m68k:machten:*:*)
    434394        echo m68k-apple-machten${UNAME_RELEASE}
    435         exit 0 ;;
     395        exit ;;
    436396    powerpc:machten:*:*)
    437397        echo powerpc-apple-machten${UNAME_RELEASE}
    438         exit 0 ;;
     398        exit ;;
    439399    RISC*:Mach:*:*)
    440400        echo mips-dec-mach_bsd4.3
    441         exit 0 ;;
     401        exit ;;
    442402    RISC*:ULTRIX:*:*)
    443403        echo mips-dec-ultrix${UNAME_RELEASE}
    444         exit 0 ;;
     404        exit ;;
    445405    VAX*:ULTRIX*:*:*)
    446406        echo vax-dec-ultrix${UNAME_RELEASE}
    447         exit 0 ;;
     407        exit ;;
    448408    2020:CLIX:*:* | 2430:CLIX:*:*)
    449409        echo clipper-intergraph-clix${UNAME_RELEASE}
    450         exit 0 ;;
     410        exit ;;
    451411    mips:*:*:UMIPS | mips:*:*:RISCos)
    452412        eval $set_cc_for_build
    453413        sed 's/^        //' << EOF >$dummy.c
     
    471431          exit (-1);
    472432        }
    473433EOF
    474         $CC_FOR_BUILD -o $dummy $dummy.c \
    475           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    476           && exit 0
     434        $CC_FOR_BUILD -o $dummy $dummy.c &&
     435          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     436          SYSTEM_NAME=`$dummy $dummyarg` &&
     437            { echo "$SYSTEM_NAME"; exit; }
    477438        echo mips-mips-riscos${UNAME_RELEASE}
    478         exit 0 ;;
     439        exit ;;
    479440    Motorola:PowerMAX_OS:*:*)
    480441        echo powerpc-motorola-powermax
    481         exit 0 ;;
     442        exit ;;
    482443    Motorola:*:4.3:PL8-*)
    483444        echo powerpc-harris-powermax
    484         exit 0 ;;
     445        exit ;;
    485446    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    486447        echo powerpc-harris-powermax
    487         exit 0 ;;
     448        exit ;;
    488449    Night_Hawk:Power_UNIX:*:*)
    489450        echo powerpc-harris-powerunix
    490         exit 0 ;;
     451        exit ;;
    491452    m88k:CX/UX:7*:*)
    492453        echo m88k-harris-cxux7
    493         exit 0 ;;
     454        exit ;;
    494455    m88k:*:4*:R4*)
    495456        echo m88k-motorola-sysv4
    496         exit 0 ;;
     457        exit ;;
    497458    m88k:*:3*:R3*)
    498459        echo m88k-motorola-sysv3
    499         exit 0 ;;
     460        exit ;;
    500461    AViiON:dgux:*:*)
    501462        # DG/UX returns AViiON for all architectures
    502463        UNAME_PROCESSOR=`/usr/bin/uname -p`
     
    512473        else
    513474            echo i586-dg-dgux${UNAME_RELEASE}
    514475        fi
    515         exit 0 ;;
     476        exit ;;
    516477    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    517478        echo m88k-dolphin-sysv3
    518         exit 0 ;;
     479        exit ;;
    519480    M88*:*:R3*:*)
    520481        # Delta 88k system running SVR3
    521482        echo m88k-motorola-sysv3
    522         exit 0 ;;
     483        exit ;;
    523484    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    524485        echo m88k-tektronix-sysv3
    525         exit 0 ;;
     486        exit ;;
    526487    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    527488        echo m68k-tektronix-bsd
    528         exit 0 ;;
     489        exit ;;
    529490    *:IRIX*:*:*)
    530491        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    531         exit 0 ;;
     492        exit ;;
    532493    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    533         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    534         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     494        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     495        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    535496    i*86:AIX:*:*)
    536497        echo i386-ibm-aix
    537         exit 0 ;;
     498        exit ;;
    538499    ia64:AIX:*:*)
    539500        if [ -x /usr/bin/oslevel ] ; then
    540501                IBM_REV=`/usr/bin/oslevel`
     
    542503                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    543504        fi
    544505        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    545         exit 0 ;;
     506        exit ;;
    546507    *:AIX:2:3)
    547508        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    548509                eval $set_cc_for_build
     
    557518                        exit(0);
    558519                        }
    559520EOF
    560                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    561                 echo rs6000-ibm-aix3.2.5
     521                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     522                then
     523                        echo "$SYSTEM_NAME"
     524                else
     525                        echo rs6000-ibm-aix3.2.5
     526                fi
    562527        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    563528                echo rs6000-ibm-aix3.2.4
    564529        else
    565530                echo rs6000-ibm-aix3.2
    566531        fi
    567         exit 0 ;;
     532        exit ;;
    568533    *:AIX:*:[45])
    569534        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    570535        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     
    578543                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    579544        fi
    580545        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    581         exit 0 ;;
     546        exit ;;
    582547    *:AIX:*:*)
    583548        echo rs6000-ibm-aix
    584         exit 0 ;;
     549        exit ;;
    585550    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    586551        echo romp-ibm-bsd4.4
    587         exit 0 ;;
     552        exit ;;
    588553    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    589554        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    590         exit 0 ;;                           # report: romp-ibm BSD 4.3
     555        exit ;;                             # report: romp-ibm BSD 4.3
    591556    *:BOSX:*:*)
    592557        echo rs6000-bull-bosx
    593         exit 0 ;;
     558        exit ;;
    594559    DPX/2?00:B.O.S.:*:*)
    595560        echo m68k-bull-sysv3
    596         exit 0 ;;
     561        exit ;;
    597562    9000/[34]??:4.3bsd:1.*:*)
    598563        echo m68k-hp-bsd
    599         exit 0 ;;
     564        exit ;;
    600565    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    601566        echo m68k-hp-bsd4.4
    602         exit 0 ;;
     567        exit ;;
    603568    9000/[34678]??:HP-UX:*:*)
    604569        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    605570        case "${UNAME_MACHINE}" in
     
    661626        esac
    662627        if [ ${HP_ARCH} = "hppa2.0w" ]
    663628        then
    664             # avoid double evaluation of $set_cc_for_build
    665             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    666             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     629            eval $set_cc_for_build
     630
     631            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     632            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     633            # generating 64-bit code.  GNU and HP use different nomenclature:
     634            #
     635            # $ CC_FOR_BUILD=cc ./config.guess
     636            # => hppa2.0w-hp-hpux11.23
     637            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     638            # => hppa64-hp-hpux11.23
     639
     640            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     641                grep __LP64__ >/dev/null
    667642            then
    668643                HP_ARCH="hppa2.0w"
    669644            else
     
    671646            fi
    672647        fi
    673648        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    674         exit 0 ;;
     649        exit ;;
    675650    ia64:HP-UX:*:*)
    676651        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    677652        echo ia64-hp-hpux${HPUX_REV}
    678         exit 0 ;;
     653        exit ;;
    679654    3050*:HI-UX:*:*)
    680655        eval $set_cc_for_build
    681656        sed 's/^        //' << EOF >$dummy.c
     
    703678          exit (0);
    704679        }
    705680EOF
    706         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     681        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     682                { echo "$SYSTEM_NAME"; exit; }
    707683        echo unknown-hitachi-hiuxwe2
    708         exit 0 ;;
     684        exit ;;
    709685    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    710686        echo hppa1.1-hp-bsd
    711         exit 0 ;;
     687        exit ;;
    712688    9000/8??:4.3bsd:*:*)
    713689        echo hppa1.0-hp-bsd
    714         exit 0 ;;
     690        exit ;;
    715691    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    716692        echo hppa1.0-hp-mpeix
    717         exit 0 ;;
     693        exit ;;
    718694    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    719695        echo hppa1.1-hp-osf
    720         exit 0 ;;
     696        exit ;;
    721697    hp8??:OSF1:*:*)
    722698        echo hppa1.0-hp-osf
    723         exit 0 ;;
     699        exit ;;
    724700    i*86:OSF1:*:*)
    725701        if [ -x /usr/sbin/sysversion ] ; then
    726702            echo ${UNAME_MACHINE}-unknown-osf1mk
    727703        else
    728704            echo ${UNAME_MACHINE}-unknown-osf1
    729705        fi
    730         exit 0 ;;
     706        exit ;;
    731707    parisc*:Lites*:*:*)
    732708        echo hppa1.1-hp-lites
    733         exit 0 ;;
     709        exit ;;
    734710    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    735711        echo c1-convex-bsd
    736         exit 0 ;;
     712        exit ;;
    737713    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    738714        if getsysinfo -f scalar_acc
    739715        then echo c32-convex-bsd
    740716        else echo c2-convex-bsd
    741717        fi
    742         exit 0 ;;
     718        exit ;;
    743719    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    744720        echo c34-convex-bsd
    745         exit 0 ;;
     721        exit ;;
    746722    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    747723        echo c38-convex-bsd
    748         exit 0 ;;
     724        exit ;;
    749725    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    750726        echo c4-convex-bsd
    751         exit 0 ;;
     727        exit ;;
    752728    CRAY*Y-MP:*:*:*)
    753729        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    754         exit 0 ;;
     730        exit ;;
    755731    CRAY*[A-Z]90:*:*:*)
    756732        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
    757733        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    758734              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    759735              -e 's/\.[^.]*$/.X/'
    760         exit 0 ;;
     736        exit ;;
    761737    CRAY*TS:*:*:*)
    762738        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    763         exit 0 ;;
     739        exit ;;
    764740    CRAY*T3E:*:*:*)
    765741        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    766         exit 0 ;;
     742        exit ;;
    767743    CRAY*SV1:*:*:*)
    768744        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    769         exit 0 ;;
     745        exit ;;
    770746    *:UNICOS/mp:*:*)
    771         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    772         exit 0 ;;
     747        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     748        exit ;;
    773749    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    774750        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    775751        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    776752        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    777753        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    778         exit 0 ;;
     754        exit ;;
    779755    5000:UNIX_System_V:4.*:*)
    780756        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    781757        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
    782758        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    783         exit 0 ;;
     759        exit ;;
    784760    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    785761        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    786         exit 0 ;;
     762        exit ;;
    787763    sparc*:BSD/OS:*:*)
    788764        echo sparc-unknown-bsdi${UNAME_RELEASE}
    789         exit 0 ;;
     765        exit ;;
    790766    *:BSD/OS:*:*)
    791767        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    792         exit 0 ;;
     768        exit ;;
    793769    *:FreeBSD:*:*)
    794         # Determine whether the default compiler uses glibc.
    795         eval $set_cc_for_build
    796         sed 's/^        //' << EOF >$dummy.c
    797         #include <features.h>
    798         #if __GLIBC__ >= 2
    799         LIBC=gnu
    800         #else
    801         LIBC=
    802         #endif
    803 EOF
    804         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    805         # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
    806         # FreeBSD's kernel, but not the complete OS.
    807         case ${LIBC} in gnu) kernel_only='k' ;; esac
    808         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    809         exit 0 ;;
     770        case ${UNAME_MACHINE} in
     771            pc98)
     772                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     773            *)
     774                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     775        esac
     776        exit ;;
    810777    i*:CYGWIN*:*)
    811778        echo ${UNAME_MACHINE}-pc-cygwin
    812         exit 0 ;;
     779        exit ;;
    813780    i*:MINGW*:*)
    814781        echo ${UNAME_MACHINE}-pc-mingw32
    815         exit 0 ;;
     782        exit ;;
     783    i*:windows32*:*)
     784        # uname -m includes "-pc" on this system.
     785        echo ${UNAME_MACHINE}-mingw32
     786        exit ;;
    816787    i*:PW*:*)
    817788        echo ${UNAME_MACHINE}-pc-pw32
    818         exit 0 ;;
    819     x86:Interix*:[34]*)
     789        exit ;;
     790    x86:Interix*:[345]*)
    820791        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    821         exit 0 ;;
     792        exit ;;
    822793    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    823794        echo i${UNAME_MACHINE}-pc-mks
    824         exit 0 ;;
     795        exit ;;
    825796    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    826797        # How do we know it's Interix rather than the generic POSIX subsystem?
    827798        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    828799        # UNAME_MACHINE based on the output of uname instead of i386?
    829800        echo i586-pc-interix
    830         exit 0 ;;
     801        exit ;;
    831802    i*:UWIN*:*)
    832803        echo ${UNAME_MACHINE}-pc-uwin
    833         exit 0 ;;
     804        exit ;;
     805    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
     806        echo x86_64-unknown-cygwin
     807        exit ;;
    834808    p*:CYGWIN*:*)
    835809        echo powerpcle-unknown-cygwin
    836         exit 0 ;;
     810        exit ;;
    837811    prep*:SunOS:5.*:*)
    838812        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    839         exit 0 ;;
     813        exit ;;
    840814    *:GNU:*:*)
    841815        # the GNU system
    842816        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    843         exit 0 ;;
     817        exit ;;
    844818    *:GNU/*:*:*)
    845819        # other systems with GNU libc and userland
    846820        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    847         exit 0 ;;
     821        exit ;;
    848822    i*86:Minix:*:*)
    849823        echo ${UNAME_MACHINE}-pc-minix
    850         exit 0 ;;
     824        exit ;;
    851825    arm*:Linux:*:*)
    852826        echo ${UNAME_MACHINE}-unknown-linux-gnu
    853         exit 0 ;;
     827        exit ;;
    854828    cris:Linux:*:*)
    855829        echo cris-axis-linux-gnu
    856         exit 0 ;;
     830        exit ;;
     831    crisv32:Linux:*:*)
     832        echo crisv32-axis-linux-gnu
     833        exit ;;
     834    frv:Linux:*:*)
     835        echo frv-unknown-linux-gnu
     836        exit ;;
    857837    ia64:Linux:*:*)
    858838        echo ${UNAME_MACHINE}-unknown-linux-gnu
    859         exit 0 ;;
     839        exit ;;
    860840    m32r*:Linux:*:*)
    861841        echo ${UNAME_MACHINE}-unknown-linux-gnu
    862         exit 0 ;;
     842        exit ;;
    863843    m68*:Linux:*:*)
    864844        echo ${UNAME_MACHINE}-unknown-linux-gnu
    865         exit 0 ;;
     845        exit ;;
    866846    mips:Linux:*:*)
    867847        eval $set_cc_for_build
    868848        sed 's/^        //' << EOF >$dummy.c
     
    879859        #endif
    880860        #endif
    881861EOF
    882         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    883         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     862        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
     863        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    884864        ;;
    885865    mips64:Linux:*:*)
    886866        eval $set_cc_for_build
     
    898878        #endif
    899879        #endif
    900880EOF
    901         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    902         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     881        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^CPU/{s: ::g;p;}'`"
     882        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    903883        ;;
     884    or32:Linux:*:*)
     885        echo or32-unknown-linux-gnu
     886        exit ;;
    904887    ppc:Linux:*:*)
    905888        echo powerpc-unknown-linux-gnu
    906         exit 0 ;;
     889        exit ;;
    907890    ppc64:Linux:*:*)
    908891        echo powerpc64-unknown-linux-gnu
    909         exit 0 ;;
     892        exit ;;
    910893    alpha:Linux:*:*)
    911894        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    912895          EV5)   UNAME_MACHINE=alphaev5 ;;
     
    920903        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    921904        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    922905        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    923         exit 0 ;;
     906        exit ;;
    924907    parisc:Linux:*:* | hppa:Linux:*:*)
    925908        # Look for CPU level
    926909        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
     
    928911          PA8*) echo hppa2.0-unknown-linux-gnu ;;
    929912          *)    echo hppa-unknown-linux-gnu ;;
    930913        esac
    931         exit 0 ;;
     914        exit ;;
    932915    parisc64:Linux:*:* | hppa64:Linux:*:*)
    933916        echo hppa64-unknown-linux-gnu
    934         exit 0 ;;
     917        exit ;;
    935918    s390:Linux:*:* | s390x:Linux:*:*)
    936919        echo ${UNAME_MACHINE}-ibm-linux
    937         exit 0 ;;
     920        exit ;;
    938921    sh64*:Linux:*:*)
    939922        echo ${UNAME_MACHINE}-unknown-linux-gnu
    940         exit 0 ;;
     923        exit ;;
    941924    sh*:Linux:*:*)
    942925        echo ${UNAME_MACHINE}-unknown-linux-gnu
    943         exit 0 ;;
     926        exit ;;
    944927    sparc:Linux:*:* | sparc64:Linux:*:*)
    945928        echo ${UNAME_MACHINE}-unknown-linux-gnu
    946         exit 0 ;;
     929        exit ;;
     930    vax:Linux:*:*)
     931        echo ${UNAME_MACHINE}-dec-linux-gnu
     932        exit ;;
    947933    x86_64:Linux:*:*)
    948934        echo x86_64-unknown-linux-gnu
    949         exit 0 ;;
     935        exit ;;
    950936    i*86:Linux:*:*)
    951937        # The BFD linker knows what the default object file format is, so
    952938        # first see if it will tell us. cd to the root directory to prevent
     
    964950                ;;
    965951          a.out-i386-linux)
    966952                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    967                 exit 0 ;;
     953                exit ;;
    968954          coff-i386)
    969955                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    970                 exit 0 ;;
     956                exit ;;
    971957          "")
    972958                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    973959                # one that does not give us useful --help.
    974960                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    975                 exit 0 ;;
     961                exit ;;
    976962        esac
    977963        # Determine whether the default compiler is a.out or elf
    978964        eval $set_cc_for_build
     
    989975        LIBC=gnulibc1
    990976        # endif
    991977        #else
    992         #ifdef __INTEL_COMPILER
     978        #if defined(__INTEL_COMPILER) || defined(__PGI)
    993979        LIBC=gnu
    994980        #else
    995981        LIBC=gnuaout
     
    999985        LIBC=dietlibc
    1000986        #endif
    1001987EOF
    1002         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    1003         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    1004         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     988        eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '/^LIBC/{s: ::g;p;}'`"
     989        test x"${LIBC}" != x && {
     990                echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     991                exit
     992        }
     993        test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
    1005994        ;;
    1006995    i*86:DYNIX/ptx:4*:*)
    1007996        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
    1008997        # earlier versions are messed up and put the nodename in both
    1009998        # sysname and nodename.
    1010999        echo i386-sequent-sysv4
    1011         exit 0 ;;
     1000        exit ;;
    10121001    i*86:UNIX_SV:4.2MP:2.*)
    10131002        # Unixware is an offshoot of SVR4, but it has its own version
    10141003        # number series starting with 2...
     
    10161005        # I just have to hope.  -- rms.
    10171006        # Use sysv4.2uw... so that sysv4* matches it.
    10181007        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    1019         exit 0 ;;
     1008        exit ;;
    10201009    i*86:OS/2:*:*)
    10211010        # If we were able to find `uname', then EMX Unix compatibility
    10221011        # is probably installed.
    10231012        echo ${UNAME_MACHINE}-pc-os2-emx
    1024         exit 0 ;;
     1013        exit ;;
    10251014    i*86:XTS-300:*:STOP)
    10261015        echo ${UNAME_MACHINE}-unknown-stop
    1027         exit 0 ;;
     1016        exit ;;
    10281017    i*86:atheos:*:*)
    10291018        echo ${UNAME_MACHINE}-unknown-atheos
    1030         exit 0 ;;
    1031         i*86:syllable:*:*)
     1019        exit ;;
     1020    i*86:syllable:*:*)
    10321021        echo ${UNAME_MACHINE}-pc-syllable
    1033         exit 0 ;;
     1022        exit ;;
    10341023    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    10351024        echo i386-unknown-lynxos${UNAME_RELEASE}
    1036         exit 0 ;;
     1025        exit ;;
    10371026    i*86:*DOS:*:*)
    10381027        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1039         exit 0 ;;
     1028        exit ;;
    10401029    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    10411030        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    10421031        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    10441033        else
    10451034                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10461035        fi
    1047         exit 0 ;;
    1048     i*86:*:5:[78]*)
     1036        exit ;;
     1037    i*86:*:5:[678]*)
     1038        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10491039        case `/bin/uname -X | grep "^Machine"` in
    10501040            *486*)           UNAME_MACHINE=i486 ;;
    10511041            *Pentium)        UNAME_MACHINE=i586 ;;
    10521042            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    10531043        esac
    10541044        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1055         exit 0 ;;
     1045        exit ;;
    10561046    i*86:*:3.2:*)
    10571047        if test -f /usr/options/cb.name; then
    10581048                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
     
    10701060        else
    10711061                echo ${UNAME_MACHINE}-pc-sysv32
    10721062        fi
    1073         exit 0 ;;
     1063        exit ;;
    10741064    pc:*:*:*)
    10751065        # Left here for compatibility:
    10761066        # uname -m prints for DJGPP always 'pc', but it prints nothing about
    10771067        # the processor, so we play safe by assuming i386.
    10781068        echo i386-pc-msdosdjgpp
    1079         exit 0 ;;
     1069        exit ;;
    10801070    Intel:Mach:3*:*)
    10811071        echo i386-pc-mach3
    1082         exit 0 ;;
     1072        exit ;;
    10831073    paragon:*:*:*)
    10841074        echo i860-intel-osf1
    1085         exit 0 ;;
     1075        exit ;;
    10861076    i860:*:4.*:*) # i860-SVR4
    10871077        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
    10881078          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
    10891079        else # Add other i860-SVR4 vendors below as they are discovered.
    10901080          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    10911081        fi
    1092         exit 0 ;;
     1082        exit ;;
    10931083    mini*:CTIX:SYS*5:*)
    10941084        # "miniframe"
    10951085        echo m68010-convergent-sysv
    1096         exit 0 ;;
     1086        exit ;;
    10971087    mc68k:UNIX:SYSTEM5:3.51m)
    10981088        echo m68k-convergent-sysv
    1099         exit 0 ;;
     1089        exit ;;
    11001090    M680?0:D-NIX:5.3:*)
    11011091        echo m68k-diab-dnix
    1102         exit 0 ;;
     1092        exit ;;
    11031093    M68*:*:R3V[5678]*:*)
    1104         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1105     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)
     1094        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
     1095    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)
    11061096        OS_REL=''
    11071097        test -r /etc/.relid \
    11081098        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11091099        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1110           && echo i486-ncr-sysv4.3${OS_REL} && exit 0
     1100          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    11111101        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1112           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
     1102          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    11131103    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11141104        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1115           && echo i486-ncr-sysv4 && exit 0 ;;
     1105          && { echo i486-ncr-sysv4; exit; } ;;
    11161106    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    11171107        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1118         exit 0 ;;
     1108        exit ;;
    11191109    mc68030:UNIX_System_V:4.*:*)
    11201110        echo m68k-atari-sysv4
    1121         exit 0 ;;
     1111        exit ;;
    11221112    TSUNAMI:LynxOS:2.*:*)
    11231113        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1124         exit 0 ;;
     1114        exit ;;
    11251115    rs6000:LynxOS:2.*:*)
    11261116        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1127         exit 0 ;;
     1117        exit ;;
    11281118    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
    11291119        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1130         exit 0 ;;
     1120        exit ;;
    11311121    SM[BE]S:UNIX_SV:*:*)
    11321122        echo mips-dde-sysv${UNAME_RELEASE}
    1133         exit 0 ;;
     1123        exit ;;
    11341124    RM*:ReliantUNIX-*:*:*)
    11351125        echo mips-sni-sysv4
    1136         exit 0 ;;
     1126        exit ;;
    11371127    RM*:SINIX-*:*:*)
    11381128        echo mips-sni-sysv4
    1139         exit 0 ;;
     1129        exit ;;
    11401130    *:SINIX-*:*:*)
    11411131        if uname -p 2>/dev/null >/dev/null ; then
    11421132                UNAME_MACHINE=`(uname -p) 2>/dev/null`
     
    11441134        else
    11451135                echo ns32k-sni-sysv
    11461136        fi
    1147         exit 0 ;;
     1137        exit ;;
    11481138    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11491139                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11501140        echo i586-unisys-sysv4
    1151         exit 0 ;;
     1141        exit ;;
    11521142    *:UNIX_System_V:4*:FTX*)
    11531143        # From Gerald Hewes <hewes@openmarket.com>.
    11541144        # How about differentiating between stratus architectures? -djm
    11551145        echo hppa1.1-stratus-sysv4
    1156         exit 0 ;;
     1146        exit ;;
    11571147    *:*:*:FTX*)
    11581148        # From seanf@swdc.stratus.com.
    11591149        echo i860-stratus-sysv4
    1160         exit 0 ;;
     1150        exit ;;
     1151    i*86:VOS:*:*)
     1152        # From Paul.Green@stratus.com.
     1153        echo ${UNAME_MACHINE}-stratus-vos
     1154        exit ;;
    11611155    *:VOS:*:*)
    11621156        # From Paul.Green@stratus.com.
    11631157        echo hppa1.1-stratus-vos
    1164         exit 0 ;;
     1158        exit ;;
    11651159    mc68*:A/UX:*:*)
    11661160        echo m68k-apple-aux${UNAME_RELEASE}
    1167         exit 0 ;;
     1161        exit ;;
    11681162    news*:NEWS-OS:6*:*)
    11691163        echo mips-sony-newsos6
    1170         exit 0 ;;
     1164        exit ;;
    11711165    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11721166        if [ -d /usr/nec ]; then
    11731167                echo mips-nec-sysv${UNAME_RELEASE}
    11741168        else
    11751169                echo mips-unknown-sysv${UNAME_RELEASE}
    11761170        fi
    1177         exit 0 ;;
     1171        exit ;;
    11781172    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11791173        echo powerpc-be-beos
    1180         exit 0 ;;
     1174        exit ;;
    11811175    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    11821176        echo powerpc-apple-beos
    1183         exit 0 ;;
     1177        exit ;;
    11841178    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    11851179        echo i586-pc-beos
    1186         exit 0 ;;
     1180        exit ;;
    11871181    SX-4:SUPER-UX:*:*)
    11881182        echo sx4-nec-superux${UNAME_RELEASE}
    1189         exit 0 ;;
     1183        exit ;;
    11901184    SX-5:SUPER-UX:*:*)
    11911185        echo sx5-nec-superux${UNAME_RELEASE}
    1192         exit 0 ;;
     1186        exit ;;
    11931187    SX-6:SUPER-UX:*:*)
    11941188        echo sx6-nec-superux${UNAME_RELEASE}
    1195         exit 0 ;;
     1189        exit ;;
    11961190    Power*:Rhapsody:*:*)
    11971191        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1198         exit 0 ;;
     1192        exit ;;
    11991193    *:Rhapsody:*:*)
    12001194        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1201         exit 0 ;;
     1195        exit ;;
    12021196    *:Darwin:*:*)
    1203         case `uname -p` in
    1204             *86) UNAME_PROCESSOR=i686 ;;
    1205             powerpc) UNAME_PROCESSOR=powerpc ;;
     1197        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1198        case $UNAME_PROCESSOR in
     1199            unknown) UNAME_PROCESSOR=powerpc ;;
    12061200        esac
    12071201        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1208         exit 0 ;;
     1202        exit ;;
    12091203    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    12101204        UNAME_PROCESSOR=`uname -p`
    12111205        if test "$UNAME_PROCESSOR" = "x86"; then
     
    12131207                UNAME_MACHINE=pc
    12141208        fi
    12151209        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1216         exit 0 ;;
     1210        exit ;;
    12171211    *:QNX:*:4*)
    12181212        echo i386-pc-qnx
    1219         exit 0 ;;
     1213        exit ;;
     1214    NSE-?:NONSTOP_KERNEL:*:*)
     1215        echo nse-tandem-nsk${UNAME_RELEASE}
     1216        exit ;;
    12201217    NSR-?:NONSTOP_KERNEL:*:*)
    12211218        echo nsr-tandem-nsk${UNAME_RELEASE}
    1222         exit 0 ;;
     1219        exit ;;
    12231220    *:NonStop-UX:*:*)
    12241221        echo mips-compaq-nonstopux
    1225         exit 0 ;;
     1222        exit ;;
    12261223    BS2000:POSIX*:*:*)
    12271224        echo bs2000-siemens-sysv
    1228         exit 0 ;;
     1225        exit ;;
    12291226    DS/*:UNIX_System_V:*:*)
    12301227        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1231         exit 0 ;;
     1228        exit ;;
    12321229    *:Plan9:*:*)
    12331230        # "uname -m" is not consistent, so use $cputype instead. 386
    12341231        # is converted to i386 for consistency with other x86
     
    12391236            UNAME_MACHINE="$cputype"
    12401237        fi
    12411238        echo ${UNAME_MACHINE}-unknown-plan9
    1242         exit 0 ;;
     1239        exit ;;
    12431240    *:TOPS-10:*:*)
    12441241        echo pdp10-unknown-tops10
    1245         exit 0 ;;
     1242        exit ;;
    12461243    *:TENEX:*:*)
    12471244        echo pdp10-unknown-tenex
    1248         exit 0 ;;
     1245        exit ;;
    12491246    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12501247        echo pdp10-dec-tops20
    1251         exit 0 ;;
     1248        exit ;;
    12521249    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12531250        echo pdp10-xkl-tops20
    1254         exit 0 ;;
     1251        exit ;;
    12551252    *:TOPS-20:*:*)
    12561253        echo pdp10-unknown-tops20
    1257         exit 0 ;;
     1254        exit ;;
    12581255    *:ITS:*:*)
    12591256        echo pdp10-unknown-its
    1260         exit 0 ;;
     1257        exit ;;
    12611258    SEI:*:*:SEIUX)
    12621259        echo mips-sei-seiux${UNAME_RELEASE}
    1263         exit 0 ;;
     1260        exit ;;
    12641261    *:DragonFly:*:*)
    12651262        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    1266         exit 0 ;;
     1263        exit ;;
     1264    *:*VMS:*:*)
     1265        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1266        case "${UNAME_MACHINE}" in
     1267            A*) echo alpha-dec-vms ; exit ;;
     1268            I*) echo ia64-dec-vms ; exit ;;
     1269            V*) echo vax-dec-vms ; exit ;;
     1270        esac ;;
     1271    *:XENIX:*:SysV)
     1272        echo i386-pc-xenix
     1273        exit ;;
     1274    i*86:skyos:*:*)
     1275        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1276        exit ;;
     1277    i*86:rdos:*:*)
     1278        echo ${UNAME_MACHINE}-pc-rdos
     1279        exit ;;
    12671280esac
    12681281
    12691282#echo '(No uname command or uname output not recognized.)' 1>&2
     
    12951308#endif
    12961309
    12971310#if defined (__arm) && defined (__acorn) && defined (__unix)
    1298   printf ("arm-acorn-riscix"); exit (0);
     1311  printf ("arm-acorn-riscix\n"); exit (0);
    12991312#endif
    13001313
    13011314#if defined (hp300) && !defined (hpux)
     
    13841397}
    13851398EOF
    13861399
    1387 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1400$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1401        { echo "$SYSTEM_NAME"; exit; }
    13881402
    13891403# Apollos put the system type in the environment.
    13901404
    1391 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
     1405test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    13921406
    13931407# Convex versions that predate uname can use getsysinfo(1)
    13941408
     
    13971411    case `getsysinfo -f cpu_type` in
    13981412    c1*)
    13991413        echo c1-convex-bsd
    1400         exit 0 ;;
     1414        exit ;;
    14011415    c2*)
    14021416        if getsysinfo -f scalar_acc
    14031417        then echo c32-convex-bsd
    14041418        else echo c2-convex-bsd
    14051419        fi
    1406         exit 0 ;;
     1420        exit ;;
    14071421    c34*)
    14081422        echo c34-convex-bsd
    1409         exit 0 ;;
     1423        exit ;;
    14101424    c38*)
    14111425        echo c38-convex-bsd
    1412         exit 0 ;;
     1426        exit ;;
    14131427    c4*)
    14141428        echo c4-convex-bsd
    1415         exit 0 ;;
     1429        exit ;;
    14161430    esac
    14171431fi
    14181432
     
    14231437the operating system you are using. It is advised that you
    14241438download the most up to date version of the config scripts from
    14251439
    1426     ftp://ftp.gnu.org/pub/gnu/config/
     1440  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
     1441and
     1442  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
    14271443
    14281444If the version you run ($0) is already up to date, please
    14291445send the following data and any information you think might be
  • config.sub

    diff -Naur file-4.18.orig/config.sub file-4.18/config.sub
    old new  
    11#! /bin/sh
    2 #
    3 # $NetBSD: config.sub,v 1.7 2004/08/14 19:14:42 schmonz Exp $
    4 #
    52# Configuration validation subroutine script.
    63#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    7 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     4#   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
    85
    9 timestamp='2004-03-12'
     6timestamp='2006-01-02'
    107
    118# This file is (in principle) common to ALL GNU software.
    129# The presence of a machine in this file suggests that SOME GNU software
     
    2421#
    2522# You should have received a copy of the GNU General Public License
    2623# along with this program; if not, write to the Free Software
    27 # Foundation, Inc., 59 Temple Place - Suite 330,
    28 # Boston, MA 02111-1307, USA.
    29 
     24# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     25# 02110-1301, USA.
     26#
    3027# As a special exception to the GNU General Public License, if you
    3128# distribute this file as part of a program that contains a
    3229# configuration script generated by Autoconf, you may include it under
    3330# the same distribution terms that you use for the rest of that program.
    3431
     32
    3533# Please send patches to <config-patches@gnu.org>.  Submit a context
    3634# diff and a properly formatted ChangeLog entry.
    3735#
     
    7371version="\
    7472GNU config.sub ($timestamp)
    7573
    76 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     74Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
    7775Free Software Foundation, Inc.
    7876
    7977This is free software; see the source for copying conditions.  There is NO
     
    8684while test $# -gt 0 ; do
    8785  case $1 in
    8886    --time-stamp | --time* | -t )
    89        echo "$timestamp" ; exit 0 ;;
     87       echo "$timestamp" ; exit ;;
    9088    --version | -v )
    91        echo "$version" ; exit 0 ;;
     89       echo "$version" ; exit ;;
    9290    --help | --h* | -h )
    93        echo "$usage"; exit 0 ;;
     91       echo "$usage"; exit ;;
    9492    -- )     # Stop option processing
    9593       shift; break ;;
    9694    - ) # Use stdin as input.
     
    102100    *local*)
    103101       # First pass through any local machine types.
    104102       echo $1
    105        exit 0;;
     103       exit ;;
    106104
    107105    * )
    108106       break ;;
     
    121119# Here we must recognize all the valid KERNEL-OS combinations.
    122120maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    123121case $maybe_os in
    124   nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
    125   kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
     122  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
     123  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
     124  storm-chaos* | os2-emx* | rtmk-nova*)
    126125    os=-$maybe_os
    127126    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    128127    ;;
     
    148147        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    149148        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    150149        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    151         -apple | -axis)
     150        -apple | -axis | -knuth | -cray)
    152151                os=
    153152                basic_machine=$1
    154153                ;;
     
    173172        -hiux*)
    174173                os=-hiuxwe2
    175174                ;;
     175        -sco6)
     176                os=-sco5v6
     177                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     178                ;;
    176179        -sco5)
    177180                os=-sco3.2v5
    178181                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    189192                # Don't forget version if it is 3.2v4 or newer.
    190193                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    191194                ;;
     195        -sco5v6*)
     196                # Don't forget version if it is 3.2v4 or newer.
     197                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     198                ;;
    192199        -sco*)
    193200                os=-sco3.2v2
    194201                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    234241        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    235242        | am33_2.0 \
    236243        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
     244        | bfin \
    237245        | c4x | clipper \
    238246        | d10v | d30v | dlx | dsp16xx \
    239247        | fr30 | frv \
    240248        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    241249        | i370 | i860 | i960 | ia64 \
    242250        | ip2k | iq2000 \
    243         | m32r | m32rle | m68000 | m68k | m88k | mcore \
     251        | m32r | m32rle | m68000 | m68k | m88k | maxq | mb | microblaze | mcore \
    244252        | mips | mipsbe | mipseb | mipsel | mipsle \
    245253        | mips16 \
    246254        | mips64 | mips64el \
     
    249257        | mips64vr4100 | mips64vr4100el \
    250258        | mips64vr4300 | mips64vr4300el \
    251259        | mips64vr5000 | mips64vr5000el \
     260        | mips64vr5900 | mips64vr5900el \
    252261        | mipsisa32 | mipsisa32el \
    253262        | mipsisa32r2 | mipsisa32r2el \
    254263        | mipsisa64 | mipsisa64el \
     
    257266        | mipsisa64sr71k | mipsisa64sr71kel \
    258267        | mipstx39 | mipstx39el \
    259268        | mn10200 | mn10300 \
     269        | mt \
    260270        | msp430 \
    261271        | ns16k | ns32k \
    262         | openrisc | or32 \
     272        | or32 \
    263273        | pdp10 | pdp11 | pj | pjl \
    264274        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    265275        | pyramid \
    266         | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
     276        | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    267277        | sh64 | sh64le \
    268         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
     278        | sparc | sparc64 | sparc64b | sparc86x | sparclet | sparclite \
     279        | sparcv8 | sparcv9 | sparcv9b \
    269280        | strongarm \
    270281        | tahoe | thumb | tic4x | tic80 | tron \
    271282        | v850 | v850e \
    272283        | we32k \
    273         | x86 | xscale | xstormy16 | xtensa \
     284        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
    274285        | z8k)
    275286                basic_machine=$basic_machine-unknown
    276287                ;;
     288        m32c)
     289                basic_machine=$basic_machine-unknown
     290                ;;
    277291        m6811 | m68hc11 | m6812 | m68hc12)
    278292                # Motorola 68HC11/12.
    279293                basic_machine=$basic_machine-unknown
     
    281295                ;;
    282296        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
    283297                ;;
     298        ms1)
     299                basic_machine=mt-unknown
     300                ;;
    284301
    285302        # We use `pc' rather than `unknown'
    286303        # because (1) that's what they normally are, and
     
    301318        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
    302319        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    303320        | avr-* \
    304         | bs2000-* \
     321        | bfin-* | bs2000-* \
    305322        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    306         | clipper-* | cydra-* \
     323        | clipper-* | craynv-* | cydra-* \
    307324        | d10v-* | d30v-* | dlx-* \
    308325        | elxsi-* \
    309326        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
     
    313330        | ip2k-* | iq2000-* \
    314331        | m32r-* | m32rle-* \
    315332        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    316         | m88110-* | m88k-* | mcore-* \
     333        | m88110-* | m88k-* | maxq-* | mcore-* \
    317334        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    318335        | mips16-* \
    319336        | mips64-* | mips64el-* \
     
    322339        | mips64vr4100-* | mips64vr4100el-* \
    323340        | mips64vr4300-* | mips64vr4300el-* \
    324341        | mips64vr5000-* | mips64vr5000el-* \
     342        | mips64vr5900-* | mips64vr5900el-* \
    325343        | mipsisa32-* | mipsisa32el-* \
    326344        | mipsisa32r2-* | mipsisa32r2el-* \
    327345        | mipsisa64-* | mipsisa64el-* \
     
    329347        | mipsisa64sb1-* | mipsisa64sb1el-* \
    330348        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    331349        | mipstx39-* | mipstx39el-* \
     350        | mmix-* \
     351        | mt-* \
    332352        | msp430-* \
    333         | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
     353        | none-* | np1-* | ns16k-* | ns32k-* \
    334354        | orion-* \
    335355        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    336356        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    337357        | pyramid-* \
    338358        | romp-* | rs6000-* \
    339         | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
     359        | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | shbe-* \
    340360        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    341         | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
     361        | sparc-* | sparc64-* | sparc64b-* | sparc86x-* | sparclet-* \
     362        | sparclite-* \
    342363        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
    343364        | tahoe-* | thumb-* \
    344365        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
    345366        | tron-* \
    346367        | v850-* | v850e-* | vax-* \
    347368        | we32k-* \
    348         | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
    349         | xtensa-* \
     369        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
     370        | xstormy16-* | xtensa-* \
    350371        | ymp-* \
    351372        | z8k-*)
    352373                ;;
     374        m32c-*)
     375                ;;
    353376        # Recognize the various machine names and aliases which stand
    354377        # for a CPU type and a company and sometimes even an OS.
    355378        386bsd)
     
    448471                basic_machine=j90-cray
    449472                os=-unicos
    450473                ;;
     474        craynv)
     475                basic_machine=craynv-cray
     476                os=-unicosmp
     477                ;;
    451478        cr16c)
    452479                basic_machine=cr16c-unknown
    453480                os=-elf
     
    455482        crds | unos)
    456483                basic_machine=m68k-crds
    457484                ;;
     485        crisv32 | crisv32-* | etraxfs*)
     486                basic_machine=crisv32-axis
     487                ;;
    458488        cris | cris-* | etrax*)
    459489                basic_machine=cris-axis
    460490                ;;
     
    484514                basic_machine=m88k-motorola
    485515                os=-sysv3
    486516                ;;
     517        djgpp)
     518                basic_machine=i586-pc
     519                os=-msdosdjgpp
     520                ;;
    487521        dpx20 | dpx20-*)
    488522                basic_machine=rs6000-bull
    489523                os=-bosx
     
    662696        mips3*)
    663697                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    664698                ;;
    665         mmix*)
    666                 basic_machine=mmix-knuth
    667                 os=-mmixware
    668                 ;;
    669699        monitor)
    670700                basic_machine=m68k-rom68k
    671701                os=-coff
     
    678708                basic_machine=i386-pc
    679709                os=-msdos
    680710                ;;
     711        ms1-*)
     712                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
     713                ;;
    681714        mvs)
    682715                basic_machine=i370-ibm
    683716                os=-mvs
     
    746779        np1)
    747780                basic_machine=np1-gould
    748781                ;;
    749         nv1)
    750                 basic_machine=nv1-cray
    751                 os=-unicosmp
    752                 ;;
    753782        nsr-tandem)
    754783                basic_machine=nsr-tandem
    755784                ;;
     
    757786                basic_machine=hppa1.1-oki
    758787                os=-proelf
    759788                ;;
    760         or32 | or32-*)
     789        openrisc | openrisc-*)
    761790                basic_machine=or32-unknown
    762                 os=-coff
    763791                ;;
    764792        os400)
    765793                basic_machine=powerpc-ibm
     
    790818        pc532 | pc532-*)
    791819                basic_machine=ns32k-pc532
    792820                ;;
     821        pc98)
     822                basic_machine=i386-pc
     823                ;;
     824        pc98-*)
     825                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
     826                ;;
    793827        pentium | p5 | k5 | k6 | nexgen | viac3)
    794828                basic_machine=i586-pc
    795829                ;;
     
    846880                basic_machine=i586-unknown
    847881                os=-pw32
    848882                ;;
     883        rdos)
     884                basic_machine=i386-pc
     885                os=-rdos
     886                ;;
    849887        rom68k)
    850888                basic_machine=m68k-rom68k
    851889                os=-coff
     
    10321070                basic_machine=hppa1.1-winbond
    10331071                os=-proelf
    10341072                ;;
     1073        xbox)
     1074                basic_machine=i686-pc
     1075                os=-mingw32
     1076                ;;
    10351077        xps | xps100)
    10361078                basic_machine=xps100-honeywell
    10371079                ;;
     
    10621104        romp)
    10631105                basic_machine=romp-ibm
    10641106                ;;
     1107        mmix)
     1108                basic_machine=mmix-knuth
     1109                ;;
    10651110        rs6000)
    10661111                basic_machine=rs6000-ibm
    10671112                ;;
     
    10781123        we32k)
    10791124                basic_machine=we32k-att
    10801125                ;;
    1081         sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
     1126        sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
    10821127                basic_machine=sh-unknown
    10831128                ;;
    1084         sh5el)
    1085                 basic_machine=sh5le-unknown
    1086                 ;;
    1087         sh64)
    1088                 basic_machine=sh64-unknown
    1089                 ;;
    10901129        sparc | sparcv8 | sparcv9 | sparcv9b)
    10911130                basic_machine=sparc-sun
    10921131                ;;
     
    11601199              | -aos* \
    11611200              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    11621201              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1163               | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1202              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     1203              | -openbsd* | -solidbsd* \
    11641204              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
    11651205              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11661206              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11671207              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    11681208              | -chorusos* | -chorusrdb* \
    11691209              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1170               | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1210              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
     1211              | -uxpv* | -beos* | -mpeix* | -udk* \
    11711212              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    11721213              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    11731214              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    11741215              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    11751216              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    1176               | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
     1217              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
     1218              | -skyos* | -haiku* | -rdos*)
    11771219        # Remember, each alternative MUST END IN *, to match a version number.
    11781220                ;;
    11791221        -qnx*)
     
    11911233                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    11921234                ;;
    11931235        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    1194               | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     1236              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
    11951237              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    11961238                ;;
    11971239        -mac*)
     
    13001342        -kaos*)
    13011343                os=-kaos
    13021344                ;;
     1345        -zvmoe)
     1346                os=-zvmoe
     1347                ;;
    13031348        -none)
    13041349                ;;
    13051350        *)
     
    13771422        *-be)
    13781423                os=-beos
    13791424                ;;
     1425        *-haiku)
     1426                os=-haiku
     1427                ;;
    13801428        *-ibm)
    13811429                os=-aix
    13821430                ;;
     1431        *-knuth)
     1432                os=-mmixware
     1433                ;;
    13831434        *-wec)
    13841435                os=-proelf
    13851436                ;;
     
    15451596esac
    15461597
    15471598echo $basic_machine$os
    1548 exit 0
     1599exit
    15491600
    15501601# Local variables:
    15511602# eval: (add-hook 'write-file-hooks 'time-stamp)
Note: See TracBrowser for help on using the repository browser.