source: patches/expect-5.44.1.15-config_update-1.patch @ 1070a2d

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 1070a2d was 1341743, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Updated Expect to 5.44.1.15.

  • Property mode set to 100644
File size: 63.1 KB
  • expect-5.44.1.15

    Submitted By: Joe Ciccone <jciccone@gmail.com>
    Date: 2010-07-29
    Initial Package Version: 5.4.3
    Origin: Jim Gifford
    Upstream Status: Unknown
    Description: Updates config.sub and config.guess
    
    diff -Naur expect-5.44.1.15.orig/config.guess expect-5.44.1.15/config.guess
    old new  
    11#! /bin/sh
    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.
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     5#   Free Software Foundation, Inc.
    56
    6 timestamp='2003-10-07'
     7timestamp='2009-12-30'
    78
    89# This file is free software; you can redistribute it and/or modify it
    910# under the terms of the GNU General Public License as published by
     
    1718#
    1819# You should have received a copy of the GNU General Public License
    1920# along with this program; if not, write to the Free Software
    20 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
     21# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     22# 02110-1301, USA.
    2123#
    2224# As a special exception to the GNU General Public License, if you
    2325# distribute this file as part of a program that contains a
    2426# configuration script generated by Autoconf, you may include it under
    2527# the same distribution terms that you use for the rest of that program.
    2628
    27 # Originally written by Per Bothner <per@bothner.com>.
    28 # Please send patches to <config-patches@gnu.org>.  Submit a context
    29 # diff and a properly formatted ChangeLog entry.
     29
     30# Originally written by Per Bothner.  Please send patches (context
     31# diff format) to <config-patches@gnu.org> and include a ChangeLog
     32# entry.
    3033#
    3134# This script attempts to guess a canonical system name similar to
    3235# config.sub.  If it succeeds, it prints the system name on stdout, and
    3336# exits with 0.  Otherwise, it exits with 1.
    3437#
    35 # The plan is that this can be called by configure scripts if you
    36 # don't specify an explicit build system type.
     38# You can get the latest version of this script from:
     39# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
    3740
    3841me=`echo "$0" | sed -e 's,.*/,,'`
    3942
     
    5356GNU config.guess ($timestamp)
    5457
    5558Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    57 Free Software Foundation, Inc.
     59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
     602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
     61Software Foundation, Inc.
    5862
    5963This is free software; see the source for copying conditions.  There is NO
    6064warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     
    6670while test $# -gt 0 ; do
    6771  case $1 in
    6872    --time-stamp | --time* | -t )
    69        echo "$timestamp" ; exit 0 ;;
     73       echo "$timestamp" ; exit ;;
    7074    --version | -v )
    71        echo "$version" ; exit 0 ;;
     75       echo "$version" ; exit ;;
    7276    --help | --h* | -h )
    73        echo "$usage"; exit 0 ;;
     77       echo "$usage"; exit ;;
    7478    -- )     # Stop option processing
    7579       shift; break ;;
    7680    - ) # Use stdin as input.
     
    104108trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    105109trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
    106110: ${TMPDIR=/tmp} ;
    107  { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     111 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
    108112 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
    109113 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
    110114 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
     
    123127        ;;
    124128 ,,*)   CC_FOR_BUILD=$CC ;;
    125129 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     130esac ; set_cc_for_build= ;'
    127131
    128132# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    129133# (ghazi@noc.rutgers.edu 1994-08-24)
     
    158162            arm*) machine=arm-unknown ;;
    159163            sh3el) machine=shl-unknown ;;
    160164            sh3eb) machine=sh-unknown ;;
     165            sh5el) machine=sh5le-unknown ;;
    161166            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    162167        esac
    163168        # The Operating System including object format, if it has switched
     
    166171            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
    167172                eval $set_cc_for_build
    168173                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    169                         | grep __ELF__ >/dev/null
     174                        | grep -q __ELF__
    170175                then
    171176                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
    172177                    # Return netbsd for either.  FIX?
     
    196201        # contains redundant information, the shorter form:
    197202        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    198203        echo "${machine}-${os}${release}"
    199         exit 0 ;;
    200     amiga:OpenBSD:*:*)
    201         echo m68k-unknown-openbsd${UNAME_RELEASE}
    202         exit 0 ;;
    203     arc:OpenBSD:*:*)
    204         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    205         exit 0 ;;
    206     hp300:OpenBSD:*:*)
    207         echo m68k-unknown-openbsd${UNAME_RELEASE}
    208         exit 0 ;;
    209     mac68k:OpenBSD:*:*)
    210         echo m68k-unknown-openbsd${UNAME_RELEASE}
    211         exit 0 ;;
    212     macppc:OpenBSD:*:*)
    213         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    214         exit 0 ;;
    215     mvme68k:OpenBSD:*:*)
    216         echo m68k-unknown-openbsd${UNAME_RELEASE}
    217         exit 0 ;;
    218     mvme88k:OpenBSD:*:*)
    219         echo m88k-unknown-openbsd${UNAME_RELEASE}
    220         exit 0 ;;
    221     mvmeppc:OpenBSD:*:*)
    222         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    223         exit 0 ;;
    224     pmax:OpenBSD:*:*)
    225         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    226         exit 0 ;;
    227     sgi:OpenBSD:*:*)
    228         echo mipseb-unknown-openbsd${UNAME_RELEASE}
    229         exit 0 ;;
    230     sun3:OpenBSD:*:*)
    231         echo m68k-unknown-openbsd${UNAME_RELEASE}
    232         exit 0 ;;
    233     wgrisc:OpenBSD:*:*)
    234         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    235         exit 0 ;;
     204        exit ;;
    236205    *:OpenBSD:*:*)
    237         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    238         exit 0 ;;
     206        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
     207        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     208        exit ;;
     209    *:ekkoBSD:*:*)
     210        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     211        exit ;;
     212    *:SolidBSD:*:*)
     213        echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     214        exit ;;
     215    macppc:MirBSD:*:*)
     216        echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     217        exit ;;
     218    *:MirBSD:*:*)
     219        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     220        exit ;;
    239221    alpha:OSF1:*:*)
    240         if test $UNAME_RELEASE = "V4.0"; then
     222        case $UNAME_RELEASE in
     223        *4.0)
    241224                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    242         fi
     225                ;;
     226        *5.*)
     227                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     228                ;;
     229        esac
    243230        # According to Compaq, /usr/sbin/psrinfo has been available on
    244231        # OSF/1 and Tru64 systems produced since 1995.  I hope that
    245232        # covers most systems running today.  This code pipes the CPU
     
    277264            "EV7.9 (21364A)")
    278265                UNAME_MACHINE="alphaev79" ;;
    279266        esac
     267        # A Pn.n version is a patched version.
    280268        # A Vn.n version is a released version.
    281269        # A Tn.n version is a released field test version.
    282270        # A Xn.n version is an unreleased experimental baselevel.
    283271        # 1.2 uses "1.2" for uname -r.
    284         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    285         exit 0 ;;
    286     Alpha*:OpenVMS:*:*)
    287         echo alpha-hp-vms
    288         exit 0 ;;
     272        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     273        exit ;;
    289274    Alpha\ *:Windows_NT*:*)
    290275        # How do we know it's Interix rather than the generic POSIX subsystem?
    291276        # Should we change UNAME_MACHINE based on the output of uname instead
    292277        # of the specific Alpha model?
    293278        echo alpha-pc-interix
    294         exit 0 ;;
     279        exit ;;
    295280    21064:Windows_NT:50:3)
    296281        echo alpha-dec-winnt3.5
    297         exit 0 ;;
     282        exit ;;
    298283    Amiga*:UNIX_System_V:4.0:*)
    299284        echo m68k-unknown-sysv4
    300         exit 0;;
     285        exit ;;
    301286    *:[Aa]miga[Oo][Ss]:*:*)
    302287        echo ${UNAME_MACHINE}-unknown-amigaos
    303         exit 0 ;;
     288        exit ;;
    304289    *:[Mm]orph[Oo][Ss]:*:*)
    305290        echo ${UNAME_MACHINE}-unknown-morphos
    306         exit 0 ;;
     291        exit ;;
    307292    *:OS/390:*:*)
    308293        echo i370-ibm-openedition
    309         exit 0 ;;
     294        exit ;;
     295    *:z/VM:*:*)
     296        echo s390-ibm-zvmoe
     297        exit ;;
     298    *:OS400:*:*)
     299        echo powerpc-ibm-os400
     300        exit ;;
    310301    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    311302        echo arm-acorn-riscix${UNAME_RELEASE}
    312         exit 0;;
     303        exit ;;
     304    arm:riscos:*:*|arm:RISCOS:*:*)
     305        echo arm-unknown-riscos
     306        exit ;;
    313307    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    314308        echo hppa1.1-hitachi-hiuxmpp
    315         exit 0;;
     309        exit ;;
    316310    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
    317311        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
    318312        if test "`(/bin/universe) 2>/dev/null`" = att ; then
     
    320314        else
    321315                echo pyramid-pyramid-bsd
    322316        fi
    323         exit 0 ;;
     317        exit ;;
    324318    NILE*:*:*:dcosx)
    325319        echo pyramid-pyramid-svr4
    326         exit 0 ;;
     320        exit ;;
    327321    DRS?6000:unix:4.0:6*)
    328322        echo sparc-icl-nx6
    329         exit 0 ;;
    330     DRS?6000:UNIX_SV:4.2*:7*)
     323        exit ;;
     324    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    331325        case `/usr/bin/uname -p` in
    332             sparc) echo sparc-icl-nx7 && exit 0 ;;
     326            sparc) echo sparc-icl-nx7; exit ;;
    333327        esac ;;
     328    s390x:SunOS:*:*)
     329        echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     330        exit ;;
    334331    sun4H:SunOS:5.*:*)
    335332        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    336         exit 0 ;;
     333        exit ;;
    337334    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    338335        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    339         exit 0 ;;
    340     i86pc:SunOS:5.*:*)
    341         echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    342         exit 0 ;;
     336        exit ;;
     337    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
     338        echo i386-pc-auroraux${UNAME_RELEASE}
     339        exit ;;
     340    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
     341        eval $set_cc_for_build
     342        SUN_ARCH="i386"
     343        # If there is a compiler, see if it is configured for 64-bit objects.
     344        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
     345        # This test works for both compilers.
     346        if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     347            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
     348                (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     349                grep IS_64BIT_ARCH >/dev/null
     350            then
     351                SUN_ARCH="x86_64"
     352            fi
     353        fi
     354        echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     355        exit ;;
    343356    sun4*:SunOS:6*:*)
    344357        # According to config.sub, this is the proper way to canonicalize
    345358        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
    346359        # it's likely to be more like Solaris than SunOS4.
    347360        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    348         exit 0 ;;
     361        exit ;;
    349362    sun4*:SunOS:*:*)
    350363        case "`/usr/bin/arch -k`" in
    351364            Series*|S4*)
     
    354367        esac
    355368        # Japanese Language versions have a version number like `4.1.3-JL'.
    356369        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
    357         exit 0 ;;
     370        exit ;;
    358371    sun3*:SunOS:*:*)
    359372        echo m68k-sun-sunos${UNAME_RELEASE}
    360         exit 0 ;;
     373        exit ;;
    361374    sun*:*:4.2BSD:*)
    362375        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    363376        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
     
    369382                echo sparc-sun-sunos${UNAME_RELEASE}
    370383                ;;
    371384        esac
    372         exit 0 ;;
     385        exit ;;
    373386    aushp:SunOS:*:*)
    374387        echo sparc-auspex-sunos${UNAME_RELEASE}
    375         exit 0 ;;
     388        exit ;;
    376389    # The situation for MiNT is a little confusing.  The machine name
    377390    # can be virtually everything (everything which is not
    378391    # "atarist" or "atariste" at least should have a processor
     
    383396    # be no problem.
    384397    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    385398        echo m68k-atari-mint${UNAME_RELEASE}
    386         exit 0 ;;
     399        exit ;;
    387400    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    388401        echo m68k-atari-mint${UNAME_RELEASE}
    389         exit 0 ;;
     402        exit ;;
    390403    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    391404        echo m68k-atari-mint${UNAME_RELEASE}
    392         exit 0 ;;
     405        exit ;;
    393406    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    394407        echo m68k-milan-mint${UNAME_RELEASE}
    395         exit 0 ;;
     408        exit ;;
    396409    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    397410        echo m68k-hades-mint${UNAME_RELEASE}
    398         exit 0 ;;
     411        exit ;;
    399412    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    400413        echo m68k-unknown-mint${UNAME_RELEASE}
    401         exit 0 ;;
     414        exit ;;
     415    m68k:machten:*:*)
     416        echo m68k-apple-machten${UNAME_RELEASE}
     417        exit ;;
    402418    powerpc:machten:*:*)
    403419        echo powerpc-apple-machten${UNAME_RELEASE}
    404         exit 0 ;;
     420        exit ;;
    405421    RISC*:Mach:*:*)
    406422        echo mips-dec-mach_bsd4.3
    407         exit 0 ;;
     423        exit ;;
    408424    RISC*:ULTRIX:*:*)
    409425        echo mips-dec-ultrix${UNAME_RELEASE}
    410         exit 0 ;;
     426        exit ;;
    411427    VAX*:ULTRIX*:*:*)
    412428        echo vax-dec-ultrix${UNAME_RELEASE}
    413         exit 0 ;;
     429        exit ;;
    414430    2020:CLIX:*:* | 2430:CLIX:*:*)
    415431        echo clipper-intergraph-clix${UNAME_RELEASE}
    416         exit 0 ;;
     432        exit ;;
    417433    mips:*:*:UMIPS | mips:*:*:RISCos)
    418434        eval $set_cc_for_build
    419435        sed 's/^        //' << EOF >$dummy.c
     
    437453          exit (-1);
    438454        }
    439455EOF
    440         $CC_FOR_BUILD -o $dummy $dummy.c \
    441           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    442           && exit 0
     456        $CC_FOR_BUILD -o $dummy $dummy.c &&
     457          dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     458          SYSTEM_NAME=`$dummy $dummyarg` &&
     459            { echo "$SYSTEM_NAME"; exit; }
    443460        echo mips-mips-riscos${UNAME_RELEASE}
    444         exit 0 ;;
     461        exit ;;
    445462    Motorola:PowerMAX_OS:*:*)
    446463        echo powerpc-motorola-powermax
    447         exit 0 ;;
     464        exit ;;
    448465    Motorola:*:4.3:PL8-*)
    449466        echo powerpc-harris-powermax
    450         exit 0 ;;
     467        exit ;;
    451468    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    452469        echo powerpc-harris-powermax
    453         exit 0 ;;
     470        exit ;;
    454471    Night_Hawk:Power_UNIX:*:*)
    455472        echo powerpc-harris-powerunix
    456         exit 0 ;;
     473        exit ;;
    457474    m88k:CX/UX:7*:*)
    458475        echo m88k-harris-cxux7
    459         exit 0 ;;
     476        exit ;;
    460477    m88k:*:4*:R4*)
    461478        echo m88k-motorola-sysv4
    462         exit 0 ;;
     479        exit ;;
    463480    m88k:*:3*:R3*)
    464481        echo m88k-motorola-sysv3
    465         exit 0 ;;
     482        exit ;;
    466483    AViiON:dgux:*:*)
    467484        # DG/UX returns AViiON for all architectures
    468485        UNAME_PROCESSOR=`/usr/bin/uname -p`
     
    478495        else
    479496            echo i586-dg-dgux${UNAME_RELEASE}
    480497        fi
    481         exit 0 ;;
     498        exit ;;
    482499    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
    483500        echo m88k-dolphin-sysv3
    484         exit 0 ;;
     501        exit ;;
    485502    M88*:*:R3*:*)
    486503        # Delta 88k system running SVR3
    487504        echo m88k-motorola-sysv3
    488         exit 0 ;;
     505        exit ;;
    489506    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
    490507        echo m88k-tektronix-sysv3
    491         exit 0 ;;
     508        exit ;;
    492509    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
    493510        echo m68k-tektronix-bsd
    494         exit 0 ;;
     511        exit ;;
    495512    *:IRIX*:*:*)
    496513        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
    497         exit 0 ;;
     514        exit ;;
    498515    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
    499         echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    500         exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
     516        echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
     517        exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
    501518    i*86:AIX:*:*)
    502519        echo i386-ibm-aix
    503         exit 0 ;;
     520        exit ;;
    504521    ia64:AIX:*:*)
    505522        if [ -x /usr/bin/oslevel ] ; then
    506523                IBM_REV=`/usr/bin/oslevel`
     
    508525                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    509526        fi
    510527        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    511         exit 0 ;;
     528        exit ;;
    512529    *:AIX:2:3)
    513530        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    514531                eval $set_cc_for_build
     
    523540                        exit(0);
    524541                        }
    525542EOF
    526                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    527                 echo rs6000-ibm-aix3.2.5
     543                if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     544                then
     545                        echo "$SYSTEM_NAME"
     546                else
     547                        echo rs6000-ibm-aix3.2.5
     548                fi
    528549        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    529550                echo rs6000-ibm-aix3.2.4
    530551        else
    531552                echo rs6000-ibm-aix3.2
    532553        fi
    533         exit 0 ;;
    534     *:AIX:*:[45])
     554        exit ;;
     555    *:AIX:*:[456])
    535556        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    536557        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    537558                IBM_ARCH=rs6000
     
    544565                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    545566        fi
    546567        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
    547         exit 0 ;;
     568        exit ;;
    548569    *:AIX:*:*)
    549570        echo rs6000-ibm-aix
    550         exit 0 ;;
     571        exit ;;
    551572    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
    552573        echo romp-ibm-bsd4.4
    553         exit 0 ;;
     574        exit ;;
    554575    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    555576        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    556         exit 0 ;;                           # report: romp-ibm BSD 4.3
     577        exit ;;                             # report: romp-ibm BSD 4.3
    557578    *:BOSX:*:*)
    558579        echo rs6000-bull-bosx
    559         exit 0 ;;
     580        exit ;;
    560581    DPX/2?00:B.O.S.:*:*)
    561582        echo m68k-bull-sysv3
    562         exit 0 ;;
     583        exit ;;
    563584    9000/[34]??:4.3bsd:1.*:*)
    564585        echo m68k-hp-bsd
    565         exit 0 ;;
     586        exit ;;
    566587    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
    567588        echo m68k-hp-bsd4.4
    568         exit 0 ;;
     589        exit ;;
    569590    9000/[34678]??:HP-UX:*:*)
    570591        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    571592        case "${UNAME_MACHINE}" in
     
    627648        esac
    628649        if [ ${HP_ARCH} = "hppa2.0w" ]
    629650        then
    630             # avoid double evaluation of $set_cc_for_build
    631             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    632             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     651            eval $set_cc_for_build
     652
     653            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     654            # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
     655            # generating 64-bit code.  GNU and HP use different nomenclature:
     656            #
     657            # $ CC_FOR_BUILD=cc ./config.guess
     658            # => hppa2.0w-hp-hpux11.23
     659            # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
     660            # => hppa64-hp-hpux11.23
     661
     662            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     663                grep -q __LP64__
    633664            then
    634665                HP_ARCH="hppa2.0w"
    635666            else
     
    637668            fi
    638669        fi
    639670        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    640         exit 0 ;;
     671        exit ;;
    641672    ia64:HP-UX:*:*)
    642673        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    643674        echo ia64-hp-hpux${HPUX_REV}
    644         exit 0 ;;
     675        exit ;;
    645676    3050*:HI-UX:*:*)
    646677        eval $set_cc_for_build
    647678        sed 's/^        //' << EOF >$dummy.c
     
    669700          exit (0);
    670701        }
    671702EOF
    672         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     703        $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     704                { echo "$SYSTEM_NAME"; exit; }
    673705        echo unknown-hitachi-hiuxwe2
    674         exit 0 ;;
     706        exit ;;
    675707    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
    676708        echo hppa1.1-hp-bsd
    677         exit 0 ;;
     709        exit ;;
    678710    9000/8??:4.3bsd:*:*)
    679711        echo hppa1.0-hp-bsd
    680         exit 0 ;;
     712        exit ;;
    681713    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    682714        echo hppa1.0-hp-mpeix
    683         exit 0 ;;
     715        exit ;;
    684716    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
    685717        echo hppa1.1-hp-osf
    686         exit 0 ;;
     718        exit ;;
    687719    hp8??:OSF1:*:*)
    688720        echo hppa1.0-hp-osf
    689         exit 0 ;;
     721        exit ;;
    690722    i*86:OSF1:*:*)
    691723        if [ -x /usr/sbin/sysversion ] ; then
    692724            echo ${UNAME_MACHINE}-unknown-osf1mk
    693725        else
    694726            echo ${UNAME_MACHINE}-unknown-osf1
    695727        fi
    696         exit 0 ;;
     728        exit ;;
    697729    parisc*:Lites*:*:*)
    698730        echo hppa1.1-hp-lites
    699         exit 0 ;;
     731        exit ;;
    700732    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    701733        echo c1-convex-bsd
    702         exit 0 ;;
     734        exit ;;
    703735    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
    704736        if getsysinfo -f scalar_acc
    705737        then echo c32-convex-bsd
    706738        else echo c2-convex-bsd
    707739        fi
    708         exit 0 ;;
     740        exit ;;
    709741    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
    710742        echo c34-convex-bsd
    711         exit 0 ;;
     743        exit ;;
    712744    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
    713745        echo c38-convex-bsd
    714         exit 0 ;;
     746        exit ;;
    715747    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    716748        echo c4-convex-bsd
    717         exit 0 ;;
     749        exit ;;
    718750    CRAY*Y-MP:*:*:*)
    719751        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    720         exit 0 ;;
     752        exit ;;
    721753    CRAY*[A-Z]90:*:*:*)
    722754        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
    723755        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    724756              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
    725757              -e 's/\.[^.]*$/.X/'
    726         exit 0 ;;
     758        exit ;;
    727759    CRAY*TS:*:*:*)
    728760        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    729         exit 0 ;;
     761        exit ;;
    730762    CRAY*T3E:*:*:*)
    731763        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    732         exit 0 ;;
     764        exit ;;
    733765    CRAY*SV1:*:*:*)
    734766        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    735         exit 0 ;;
     767        exit ;;
    736768    *:UNICOS/mp:*:*)
    737         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    738         exit 0 ;;
     769        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     770        exit ;;
    739771    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    740772        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    741773        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    742774        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    743775        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    744         exit 0 ;;
     776        exit ;;
     777    5000:UNIX_System_V:4.*:*)
     778        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     779        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     780        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     781        exit ;;
    745782    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    746783        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    747         exit 0 ;;
     784        exit ;;
    748785    sparc*:BSD/OS:*:*)
    749786        echo sparc-unknown-bsdi${UNAME_RELEASE}
    750         exit 0 ;;
     787        exit ;;
    751788    *:BSD/OS:*:*)
    752789        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    753         exit 0 ;;
     790        exit ;;
    754791    *:FreeBSD:*:*)
    755         # Determine whether the default compiler uses glibc.
    756         eval $set_cc_for_build
    757         sed 's/^        //' << EOF >$dummy.c
    758         #include <features.h>
    759         #if __GLIBC__ >= 2
    760         LIBC=gnu
    761         #else
    762         LIBC=
    763         #endif
    764 EOF
    765         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    766         # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
    767         # FreeBSD's kernel, but not the complete OS.
    768         case ${LIBC} in gnu) kernel_only='k' ;; esac
    769         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    770         exit 0 ;;
     792        case ${UNAME_MACHINE} in
     793            pc98)
     794                echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     795            amd64)
     796                echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     797            *)
     798                echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     799        esac
     800        exit ;;
    771801    i*:CYGWIN*:*)
    772802        echo ${UNAME_MACHINE}-pc-cygwin
    773         exit 0 ;;
    774     i*:MINGW*:*)
     803        exit ;;
     804    *:MINGW*:*)
    775805        echo ${UNAME_MACHINE}-pc-mingw32
    776         exit 0 ;;
     806        exit ;;
     807    i*:windows32*:*)
     808        # uname -m includes "-pc" on this system.
     809        echo ${UNAME_MACHINE}-mingw32
     810        exit ;;
    777811    i*:PW*:*)
    778812        echo ${UNAME_MACHINE}-pc-pw32
    779         exit 0 ;;
    780     x86:Interix*:[34]*)
    781         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    782         exit 0 ;;
     813        exit ;;
     814    *:Interix*:*)
     815        case ${UNAME_MACHINE} in
     816            x86)
     817                echo i586-pc-interix${UNAME_RELEASE}
     818                exit ;;
     819            authenticamd | genuineintel | EM64T)
     820                echo x86_64-unknown-interix${UNAME_RELEASE}
     821                exit ;;
     822            IA64)
     823                echo ia64-unknown-interix${UNAME_RELEASE}
     824                exit ;;
     825        esac ;;
    783826    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    784827        echo i${UNAME_MACHINE}-pc-mks
    785         exit 0 ;;
     828        exit ;;
     829    8664:Windows_NT:*)
     830        echo x86_64-pc-mks
     831        exit ;;
    786832    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    787833        # How do we know it's Interix rather than the generic POSIX subsystem?
    788834        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    789835        # UNAME_MACHINE based on the output of uname instead of i386?
    790836        echo i586-pc-interix
    791         exit 0 ;;
     837        exit ;;
    792838    i*:UWIN*:*)
    793839        echo ${UNAME_MACHINE}-pc-uwin
    794         exit 0 ;;
     840        exit ;;
     841    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
     842        echo x86_64-unknown-cygwin
     843        exit ;;
    795844    p*:CYGWIN*:*)
    796845        echo powerpcle-unknown-cygwin
    797         exit 0 ;;
     846        exit ;;
    798847    prep*:SunOS:5.*:*)
    799848        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    800         exit 0 ;;
     849        exit ;;
    801850    *:GNU:*:*)
    802851        # the GNU system
    803852        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    804         exit 0 ;;
     853        exit ;;
    805854    *:GNU/*:*:*)
    806855        # other systems with GNU libc and userland
    807856        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    808         exit 0 ;;
     857        exit ;;
    809858    i*86:Minix:*:*)
    810859        echo ${UNAME_MACHINE}-pc-minix
    811         exit 0 ;;
     860        exit ;;
     861    alpha:Linux:*:*)
     862        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     863          EV5)   UNAME_MACHINE=alphaev5 ;;
     864          EV56)  UNAME_MACHINE=alphaev56 ;;
     865          PCA56) UNAME_MACHINE=alphapca56 ;;
     866          PCA57) UNAME_MACHINE=alphapca56 ;;
     867          EV6)   UNAME_MACHINE=alphaev6 ;;
     868          EV67)  UNAME_MACHINE=alphaev67 ;;
     869          EV68*) UNAME_MACHINE=alphaev68 ;;
     870        esac
     871        objdump --private-headers /bin/sh | grep -q ld.so.1
     872        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     873        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     874        exit ;;
    812875    arm*:Linux:*:*)
     876        eval $set_cc_for_build
     877        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
     878            | grep -q __ARM_EABI__
     879        then
     880            echo ${UNAME_MACHINE}-unknown-linux-gnu
     881        else
     882            echo ${UNAME_MACHINE}-unknown-linux-gnueabi
     883        fi
     884        exit ;;
     885    avr32*:Linux:*:*)
    813886        echo ${UNAME_MACHINE}-unknown-linux-gnu
    814         exit 0 ;;
     887        exit ;;
    815888    cris:Linux:*:*)
    816889        echo cris-axis-linux-gnu
    817         exit 0 ;;
    818     ia64:Linux:*:*)
    819         echo ${UNAME_MACHINE}-unknown-linux-gnu
    820         exit 0 ;;
    821     m68*:Linux:*:*)
    822         echo ${UNAME_MACHINE}-unknown-linux-gnu
    823         exit 0 ;;
    824     mips:Linux:*:*)
     890        exit ;;
     891    crisv32:Linux:*:*)
     892        echo crisv32-axis-linux-gnu
     893        exit ;;
     894    frv:Linux:*:*)
     895        echo frv-unknown-linux-gnu
     896        exit ;;
     897    i*86:Linux:*:*)
     898        LIBC=gnu
    825899        eval $set_cc_for_build
    826900        sed 's/^        //' << EOF >$dummy.c
    827         #undef CPU
    828         #undef mips
    829         #undef mipsel
    830         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    831         CPU=mipsel
    832         #else
    833         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    834         CPU=mips
    835         #else
    836         CPU=
    837         #endif
     901        #ifdef __dietlibc__
     902        LIBC=dietlibc
    838903        #endif
    839904EOF
    840         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    841         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    842         ;;
    843     mips64:Linux:*:*)
     905        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
     906        echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
     907        exit ;;
     908    ia64:Linux:*:*)
     909        echo ${UNAME_MACHINE}-unknown-linux-gnu
     910        exit ;;
     911    m32r*:Linux:*:*)
     912        echo ${UNAME_MACHINE}-unknown-linux-gnu
     913        exit ;;
     914    m68*:Linux:*:*)
     915        echo ${UNAME_MACHINE}-unknown-linux-gnu
     916        exit ;;
     917    mips:Linux:*:* | mips64:Linux:*:*)
    844918        eval $set_cc_for_build
    845919        sed 's/^        //' << EOF >$dummy.c
    846920        #undef CPU
    847         #undef mips64
    848         #undef mips64el
     921        #undef ${UNAME_MACHINE}
     922        #undef ${UNAME_MACHINE}el
    849923        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    850         CPU=mips64el
     924        CPU=${UNAME_MACHINE}el
    851925        #else
    852926        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    853         CPU=mips64
     927        CPU=${UNAME_MACHINE}
    854928        #else
    855929        CPU=
    856930        #endif
    857931        #endif
    858932EOF
    859         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    860         test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     933        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
     934        test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
    861935        ;;
    862     ppc:Linux:*:*)
    863         echo powerpc-unknown-linux-gnu
    864         exit 0 ;;
    865     ppc64:Linux:*:*)
    866         echo powerpc64-unknown-linux-gnu
    867         exit 0 ;;
    868     alpha:Linux:*:*)
    869         case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
    870           EV5)   UNAME_MACHINE=alphaev5 ;;
    871           EV56)  UNAME_MACHINE=alphaev56 ;;
    872           PCA56) UNAME_MACHINE=alphapca56 ;;
    873           PCA57) UNAME_MACHINE=alphapca56 ;;
    874           EV6)   UNAME_MACHINE=alphaev6 ;;
    875           EV67)  UNAME_MACHINE=alphaev67 ;;
    876           EV68*) UNAME_MACHINE=alphaev68 ;;
    877         esac
    878         objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    879         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    880         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    881         exit 0 ;;
     936    or32:Linux:*:*)
     937        echo or32-unknown-linux-gnu
     938        exit ;;
     939    padre:Linux:*:*)
     940        echo sparc-unknown-linux-gnu
     941        exit ;;
     942    parisc64:Linux:*:* | hppa64:Linux:*:*)
     943        echo hppa64-unknown-linux-gnu
     944        exit ;;
    882945    parisc:Linux:*:* | hppa:Linux:*:*)
    883946        # Look for CPU level
    884947        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
     
    886949          PA8*) echo hppa2.0-unknown-linux-gnu ;;
    887950          *)    echo hppa-unknown-linux-gnu ;;
    888951        esac
    889         exit 0 ;;
    890     parisc64:Linux:*:* | hppa64:Linux:*:*)
    891         echo hppa64-unknown-linux-gnu
    892         exit 0 ;;
     952        exit ;;
     953    ppc64:Linux:*:*)
     954        echo powerpc64-unknown-linux-gnu
     955        exit ;;
     956    ppc:Linux:*:*)
     957        echo powerpc-unknown-linux-gnu
     958        exit ;;
    893959    s390:Linux:*:* | s390x:Linux:*:*)
    894960        echo ${UNAME_MACHINE}-ibm-linux
    895         exit 0 ;;
     961        exit ;;
    896962    sh64*:Linux:*:*)
    897963        echo ${UNAME_MACHINE}-unknown-linux-gnu
    898         exit 0 ;;
     964        exit ;;
    899965    sh*:Linux:*:*)
    900966        echo ${UNAME_MACHINE}-unknown-linux-gnu
    901         exit 0 ;;
     967        exit ;;
    902968    sparc:Linux:*:* | sparc64:Linux:*:*)
    903969        echo ${UNAME_MACHINE}-unknown-linux-gnu
    904         exit 0 ;;
     970        exit ;;
     971    vax:Linux:*:*)
     972        echo ${UNAME_MACHINE}-dec-linux-gnu
     973        exit ;;
    905974    x86_64:Linux:*:*)
    906975        echo x86_64-unknown-linux-gnu
    907         exit 0 ;;
    908     i*86:Linux:*:*)
    909         # The BFD linker knows what the default object file format is, so
    910         # first see if it will tell us. cd to the root directory to prevent
    911         # problems with other programs or directories called `ld' in the path.
    912         # Set LC_ALL=C to ensure ld outputs messages in English.
    913         ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
    914                          | sed -ne '/supported targets:/!d
    915                                     s/[         ][      ]*/ /g
    916                                     s/.*supported targets: *//
    917                                     s/ .*//
    918                                     p'`
    919         case "$ld_supported_targets" in
    920           elf32-i386)
    921                 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
    922                 ;;
    923           a.out-i386-linux)
    924                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    925                 exit 0 ;;
    926           coff-i386)
    927                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    928                 exit 0 ;;
    929           "")
    930                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
    931                 # one that does not give us useful --help.
    932                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    933                 exit 0 ;;
    934         esac
    935         # Determine whether the default compiler is a.out or elf
    936         eval $set_cc_for_build
    937         sed 's/^        //' << EOF >$dummy.c
    938         #include <features.h>
    939         #ifdef __ELF__
    940         # ifdef __GLIBC__
    941         #  if __GLIBC__ >= 2
    942         LIBC=gnu
    943         #  else
    944         LIBC=gnulibc1
    945         #  endif
    946         # else
    947         LIBC=gnulibc1
    948         # endif
    949         #else
    950         #ifdef __INTEL_COMPILER
    951         LIBC=gnu
    952         #else
    953         LIBC=gnuaout
    954         #endif
    955         #endif
    956         #ifdef __dietlibc__
    957         LIBC=dietlibc
    958         #endif
    959 EOF
    960         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    961         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    962         test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    963         ;;
     976        exit ;;
     977    xtensa*:Linux:*:*)
     978        echo ${UNAME_MACHINE}-unknown-linux-gnu
     979        exit ;;
    964980    i*86:DYNIX/ptx:4*:*)
    965981        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
    966982        # earlier versions are messed up and put the nodename in both
    967983        # sysname and nodename.
    968984        echo i386-sequent-sysv4
    969         exit 0 ;;
     985        exit ;;
    970986    i*86:UNIX_SV:4.2MP:2.*)
    971987        # Unixware is an offshoot of SVR4, but it has its own version
    972988        # number series starting with 2...
     
    974990        # I just have to hope.  -- rms.
    975991        # Use sysv4.2uw... so that sysv4* matches it.
    976992        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    977         exit 0 ;;
     993        exit ;;
    978994    i*86:OS/2:*:*)
    979995        # If we were able to find `uname', then EMX Unix compatibility
    980996        # is probably installed.
    981997        echo ${UNAME_MACHINE}-pc-os2-emx
    982         exit 0 ;;
     998        exit ;;
    983999    i*86:XTS-300:*:STOP)
    9841000        echo ${UNAME_MACHINE}-unknown-stop
    985         exit 0 ;;
     1001        exit ;;
    9861002    i*86:atheos:*:*)
    9871003        echo ${UNAME_MACHINE}-unknown-atheos
    988         exit 0 ;;
    989     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1004        exit ;;
     1005    i*86:syllable:*:*)
     1006        echo ${UNAME_MACHINE}-pc-syllable
     1007        exit ;;
     1008    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
    9901009        echo i386-unknown-lynxos${UNAME_RELEASE}
    991         exit 0 ;;
     1010        exit ;;
    9921011    i*86:*DOS:*:*)
    9931012        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    994         exit 0 ;;
     1013        exit ;;
    9951014    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    9961015        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    9971016        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    9991018        else
    10001019                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
    10011020        fi
    1002         exit 0 ;;
    1003     i*86:*:5:[78]*)
     1021        exit ;;
     1022    i*86:*:5:[678]*)
     1023        # UnixWare 7.x, OpenUNIX and OpenServer 6.
    10041024        case `/bin/uname -X | grep "^Machine"` in
    10051025            *486*)           UNAME_MACHINE=i486 ;;
    10061026            *Pentium)        UNAME_MACHINE=i586 ;;
    10071027            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    10081028        esac
    10091029        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
    1010         exit 0 ;;
     1030        exit ;;
    10111031    i*86:*:3.2:*)
    10121032        if test -f /usr/options/cb.name; then
    10131033                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
     
    10251045        else
    10261046                echo ${UNAME_MACHINE}-pc-sysv32
    10271047        fi
    1028         exit 0 ;;
     1048        exit ;;
    10291049    pc:*:*:*)
    10301050        # Left here for compatibility:
    10311051        # uname -m prints for DJGPP always 'pc', but it prints nothing about
    1032         # the processor, so we play safe by assuming i386.
    1033         echo i386-pc-msdosdjgpp
    1034         exit 0 ;;
     1052        # the processor, so we play safe by assuming i586.
     1053        # Note: whatever this is, it MUST be the same as what config.sub
     1054        # prints for the "djgpp" host, or else GDB configury will decide that
     1055        # this is a cross-build.
     1056        echo i586-pc-msdosdjgpp
     1057        exit ;;
    10351058    Intel:Mach:3*:*)
    10361059        echo i386-pc-mach3
    1037         exit 0 ;;
     1060        exit ;;
    10381061    paragon:*:*:*)
    10391062        echo i860-intel-osf1
    1040         exit 0 ;;
     1063        exit ;;
    10411064    i860:*:4.*:*) # i860-SVR4
    10421065        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
    10431066          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
    10441067        else # Add other i860-SVR4 vendors below as they are discovered.
    10451068          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
    10461069        fi
    1047         exit 0 ;;
     1070        exit ;;
    10481071    mini*:CTIX:SYS*5:*)
    10491072        # "miniframe"
    10501073        echo m68010-convergent-sysv
    1051         exit 0 ;;
     1074        exit ;;
    10521075    mc68k:UNIX:SYSTEM5:3.51m)
    10531076        echo m68k-convergent-sysv
    1054         exit 0 ;;
     1077        exit ;;
    10551078    M680?0:D-NIX:5.3:*)
    10561079        echo m68k-diab-dnix
    1057         exit 0 ;;
    1058     M68*:*:R3V[567]*:*)
    1059         test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1060     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)
     1080        exit ;;
     1081    M68*:*:R3V[5678]*:*)
     1082        test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
     1083    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)
    10611084        OS_REL=''
    10621085        test -r /etc/.relid \
    10631086        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    10641087        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1065           && echo i486-ncr-sysv4.3${OS_REL} && exit 0
     1088          && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
    10661089        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1067           && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
     1090          && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    10681091    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    10691092        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1070           && echo i486-ncr-sysv4 && exit 0 ;;
     1093          && { echo i486-ncr-sysv4; exit; } ;;
     1094    NCR*:*:4.2:* | MPRAS*:*:4.2:*)
     1095        OS_REL='.3'
     1096        test -r /etc/.relid \
     1097            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     1098        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     1099            && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1100        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
     1101            && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
     1102        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
     1103            && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
    10711104    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    10721105        echo m68k-unknown-lynxos${UNAME_RELEASE}
    1073         exit 0 ;;
     1106        exit ;;
    10741107    mc68030:UNIX_System_V:4.*:*)
    10751108        echo m68k-atari-sysv4
    1076         exit 0 ;;
     1109        exit ;;
    10771110    TSUNAMI:LynxOS:2.*:*)
    10781111        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1079         exit 0 ;;
     1112        exit ;;
    10801113    rs6000:LynxOS:2.*:*)
    10811114        echo rs6000-unknown-lynxos${UNAME_RELEASE}
    1082         exit 0 ;;
    1083     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
     1115        exit ;;
     1116    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
    10841117        echo powerpc-unknown-lynxos${UNAME_RELEASE}
    1085         exit 0 ;;
     1118        exit ;;
    10861119    SM[BE]S:UNIX_SV:*:*)
    10871120        echo mips-dde-sysv${UNAME_RELEASE}
    1088         exit 0 ;;
     1121        exit ;;
    10891122    RM*:ReliantUNIX-*:*:*)
    10901123        echo mips-sni-sysv4
    1091         exit 0 ;;
     1124        exit ;;
    10921125    RM*:SINIX-*:*:*)
    10931126        echo mips-sni-sysv4
    1094         exit 0 ;;
     1127        exit ;;
    10951128    *:SINIX-*:*:*)
    10961129        if uname -p 2>/dev/null >/dev/null ; then
    10971130                UNAME_MACHINE=`(uname -p) 2>/dev/null`
     
    10991132        else
    11001133                echo ns32k-sni-sysv
    11011134        fi
    1102         exit 0 ;;
     1135        exit ;;
    11031136    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
    11041137                      # says <Richard.M.Bartel@ccMail.Census.GOV>
    11051138        echo i586-unisys-sysv4
    1106         exit 0 ;;
     1139        exit ;;
    11071140    *:UNIX_System_V:4*:FTX*)
    11081141        # From Gerald Hewes <hewes@openmarket.com>.
    11091142        # How about differentiating between stratus architectures? -djm
    11101143        echo hppa1.1-stratus-sysv4
    1111         exit 0 ;;
     1144        exit ;;
    11121145    *:*:*:FTX*)
    11131146        # From seanf@swdc.stratus.com.
    11141147        echo i860-stratus-sysv4
    1115         exit 0 ;;
     1148        exit ;;
     1149    i*86:VOS:*:*)
     1150        # From Paul.Green@stratus.com.
     1151        echo ${UNAME_MACHINE}-stratus-vos
     1152        exit ;;
    11161153    *:VOS:*:*)
    11171154        # From Paul.Green@stratus.com.
    11181155        echo hppa1.1-stratus-vos
    1119         exit 0 ;;
     1156        exit ;;
    11201157    mc68*:A/UX:*:*)
    11211158        echo m68k-apple-aux${UNAME_RELEASE}
    1122         exit 0 ;;
     1159        exit ;;
    11231160    news*:NEWS-OS:6*:*)
    11241161        echo mips-sony-newsos6
    1125         exit 0 ;;
     1162        exit ;;
    11261163    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    11271164        if [ -d /usr/nec ]; then
    11281165                echo mips-nec-sysv${UNAME_RELEASE}
    11291166        else
    11301167                echo mips-unknown-sysv${UNAME_RELEASE}
    11311168        fi
    1132         exit 0 ;;
     1169        exit ;;
    11331170    BeBox:BeOS:*:*)     # BeOS running on hardware made by Be, PPC only.
    11341171        echo powerpc-be-beos
    1135         exit 0 ;;
     1172        exit ;;
    11361173    BeMac:BeOS:*:*)     # BeOS running on Mac or Mac clone, PPC only.
    11371174        echo powerpc-apple-beos
    1138         exit 0 ;;
     1175        exit ;;
    11391176    BePC:BeOS:*:*)      # BeOS running on Intel PC compatible.
    11401177        echo i586-pc-beos
    1141         exit 0 ;;
     1178        exit ;;
     1179    BePC:Haiku:*:*)     # Haiku running on Intel PC compatible.
     1180        echo i586-pc-haiku
     1181        exit ;;
    11421182    SX-4:SUPER-UX:*:*)
    11431183        echo sx4-nec-superux${UNAME_RELEASE}
    1144         exit 0 ;;
     1184        exit ;;
    11451185    SX-5:SUPER-UX:*:*)
    11461186        echo sx5-nec-superux${UNAME_RELEASE}
    1147         exit 0 ;;
     1187        exit ;;
    11481188    SX-6:SUPER-UX:*:*)
    11491189        echo sx6-nec-superux${UNAME_RELEASE}
    1150         exit 0 ;;
     1190        exit ;;
     1191    SX-7:SUPER-UX:*:*)
     1192        echo sx7-nec-superux${UNAME_RELEASE}
     1193        exit ;;
     1194    SX-8:SUPER-UX:*:*)
     1195        echo sx8-nec-superux${UNAME_RELEASE}
     1196        exit ;;
     1197    SX-8R:SUPER-UX:*:*)
     1198        echo sx8r-nec-superux${UNAME_RELEASE}
     1199        exit ;;
    11511200    Power*:Rhapsody:*:*)
    11521201        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    1153         exit 0 ;;
     1202        exit ;;
    11541203    *:Rhapsody:*:*)
    11551204        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    1156         exit 0 ;;
     1205        exit ;;
    11571206    *:Darwin:*:*)
    1158         case `uname -p` in
    1159             *86) UNAME_PROCESSOR=i686 ;;
    1160             powerpc) UNAME_PROCESSOR=powerpc ;;
     1207        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1208        case $UNAME_PROCESSOR in
     1209            i386)
     1210                eval $set_cc_for_build
     1211                if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     1212                  if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
     1213                      (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     1214                      grep IS_64BIT_ARCH >/dev/null
     1215                  then
     1216                      UNAME_PROCESSOR="x86_64"
     1217                  fi
     1218                fi ;;
     1219            unknown) UNAME_PROCESSOR=powerpc ;;
    11611220        esac
    11621221        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    1163         exit 0 ;;
     1222        exit ;;
    11641223    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    11651224        UNAME_PROCESSOR=`uname -p`
    11661225        if test "$UNAME_PROCESSOR" = "x86"; then
     
    11681227                UNAME_MACHINE=pc
    11691228        fi
    11701229        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    1171         exit 0 ;;
     1230        exit ;;
    11721231    *:QNX:*:4*)
    11731232        echo i386-pc-qnx
    1174         exit 0 ;;
    1175     NSR-[DGKLNPTVWY]:NONSTOP_KERNEL:*:*)
     1233        exit ;;
     1234    NSE-?:NONSTOP_KERNEL:*:*)
     1235        echo nse-tandem-nsk${UNAME_RELEASE}
     1236        exit ;;
     1237    NSR-?:NONSTOP_KERNEL:*:*)
    11761238        echo nsr-tandem-nsk${UNAME_RELEASE}
    1177         exit 0 ;;
     1239        exit ;;
    11781240    *:NonStop-UX:*:*)
    11791241        echo mips-compaq-nonstopux
    1180         exit 0 ;;
     1242        exit ;;
    11811243    BS2000:POSIX*:*:*)
    11821244        echo bs2000-siemens-sysv
    1183         exit 0 ;;
     1245        exit ;;
    11841246    DS/*:UNIX_System_V:*:*)
    11851247        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
    1186         exit 0 ;;
     1248        exit ;;
    11871249    *:Plan9:*:*)
    11881250        # "uname -m" is not consistent, so use $cputype instead. 386
    11891251        # is converted to i386 for consistency with other x86
     
    11941256            UNAME_MACHINE="$cputype"
    11951257        fi
    11961258        echo ${UNAME_MACHINE}-unknown-plan9
    1197         exit 0 ;;
     1259        exit ;;
    11981260    *:TOPS-10:*:*)
    11991261        echo pdp10-unknown-tops10
    1200         exit 0 ;;
     1262        exit ;;
    12011263    *:TENEX:*:*)
    12021264        echo pdp10-unknown-tenex
    1203         exit 0 ;;
     1265        exit ;;
    12041266    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
    12051267        echo pdp10-dec-tops20
    1206         exit 0 ;;
     1268        exit ;;
    12071269    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
    12081270        echo pdp10-xkl-tops20
    1209         exit 0 ;;
     1271        exit ;;
    12101272    *:TOPS-20:*:*)
    12111273        echo pdp10-unknown-tops20
    1212         exit 0 ;;
     1274        exit ;;
    12131275    *:ITS:*:*)
    12141276        echo pdp10-unknown-its
    1215         exit 0 ;;
     1277        exit ;;
    12161278    SEI:*:*:SEIUX)
    12171279        echo mips-sei-seiux${UNAME_RELEASE}
    1218         exit 0 ;;
     1280        exit ;;
     1281    *:DragonFly:*:*)
     1282        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1283        exit ;;
     1284    *:*VMS:*:*)
     1285        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1286        case "${UNAME_MACHINE}" in
     1287            A*) echo alpha-dec-vms ; exit ;;
     1288            I*) echo ia64-dec-vms ; exit ;;
     1289            V*) echo vax-dec-vms ; exit ;;
     1290        esac ;;
     1291    *:XENIX:*:SysV)
     1292        echo i386-pc-xenix
     1293        exit ;;
     1294    i*86:skyos:*:*)
     1295        echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1296        exit ;;
     1297    i*86:rdos:*:*)
     1298        echo ${UNAME_MACHINE}-pc-rdos
     1299        exit ;;
     1300    i*86:AROS:*:*)
     1301        echo ${UNAME_MACHINE}-pc-aros
     1302        exit ;;
    12191303esac
    12201304
    12211305#echo '(No uname command or uname output not recognized.)' 1>&2
     
    12471331#endif
    12481332
    12491333#if defined (__arm) && defined (__acorn) && defined (__unix)
    1250   printf ("arm-acorn-riscix"); exit (0);
     1334  printf ("arm-acorn-riscix\n"); exit (0);
    12511335#endif
    12521336
    12531337#if defined (hp300) && !defined (hpux)
     
    13361420}
    13371421EOF
    13381422
    1339 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1423$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
     1424        { echo "$SYSTEM_NAME"; exit; }
    13401425
    13411426# Apollos put the system type in the environment.
    13421427
    1343 test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
     1428test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
    13441429
    13451430# Convex versions that predate uname can use getsysinfo(1)
    13461431
     
    13491434    case `getsysinfo -f cpu_type` in
    13501435    c1*)
    13511436        echo c1-convex-bsd
    1352         exit 0 ;;
     1437        exit ;;
    13531438    c2*)
    13541439        if getsysinfo -f scalar_acc
    13551440        then echo c32-convex-bsd
    13561441        else echo c2-convex-bsd
    13571442        fi
    1358         exit 0 ;;
     1443        exit ;;
    13591444    c34*)
    13601445        echo c34-convex-bsd
    1361         exit 0 ;;
     1446        exit ;;
    13621447    c38*)
    13631448        echo c38-convex-bsd
    1364         exit 0 ;;
     1449        exit ;;
    13651450    c4*)
    13661451        echo c4-convex-bsd
    1367         exit 0 ;;
     1452        exit ;;
    13681453    esac
    13691454fi
    13701455
     
    13751460the operating system you are using. It is advised that you
    13761461download the most up to date version of the config scripts from
    13771462
    1378     ftp://ftp.gnu.org/pub/gnu/config/
     1463  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
     1464and
     1465  http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    13791466
    13801467If the version you run ($0) is already up to date, please
    13811468send the following data and any information you think might be
  • expect-5.44.1.15

    diff -Naur expect-5.44.1.15.orig/config.sub expect-5.44.1.15/config.sub
    old new  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    33#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     4#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
     5#   Free Software Foundation, Inc.
    56
    6 timestamp='2003-10-07'
     7timestamp='2010-01-22'
    78
    89# This file is (in principle) common to ALL GNU software.
    910# The presence of a machine in this file suggests that SOME GNU software
     
    2122#
    2223# You should have received a copy of the GNU General Public License
    2324# along with this program; if not, write to the Free Software
    24 # Foundation, Inc., 59 Temple Place - Suite 330,
    25 # Boston, MA 02111-1307, USA.
    26 
     25# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
     26# 02110-1301, USA.
     27#
    2728# As a special exception to the GNU General Public License, if you
    2829# distribute this file as part of a program that contains a
    2930# configuration script generated by Autoconf, you may include it under
    3031# the same distribution terms that you use for the rest of that program.
    3132
     33
    3234# Please send patches to <config-patches@gnu.org>.  Submit a context
    33 # diff and a properly formatted ChangeLog entry.
     35# diff and a properly formatted GNU ChangeLog entry.
    3436#
    3537# Configuration subroutine to validate and canonicalize a configuration type.
    3638# Supply the specified configuration type as an argument.
    3739# If it is invalid, we print an error message on stderr and exit with code 1.
    3840# Otherwise, we print the canonical config type on stdout and succeed.
    3941
     42# You can get the latest version of this script from:
     43# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
     44
    4045# This file is supposed to be the same for all GNU packages
    4146# and recognize all the CPU types, system types and aliases
    4247# that are meaningful with *any* GNU software.
     
    7075version="\
    7176GNU config.sub ($timestamp)
    7277
    73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    74 Free Software Foundation, Inc.
     78Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
     792001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
     80Software Foundation, Inc.
    7581
    7682This is free software; see the source for copying conditions.  There is NO
    7783warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     
    8389while test $# -gt 0 ; do
    8490  case $1 in
    8591    --time-stamp | --time* | -t )
    86        echo "$timestamp" ; exit 0 ;;
     92       echo "$timestamp" ; exit ;;
    8793    --version | -v )
    88        echo "$version" ; exit 0 ;;
     94       echo "$version" ; exit ;;
    8995    --help | --h* | -h )
    90        echo "$usage"; exit 0 ;;
     96       echo "$usage"; exit ;;
    9197    -- )     # Stop option processing
    9298       shift; break ;;
    9399    - ) # Use stdin as input.
     
    99105    *local*)
    100106       # First pass through any local machine types.
    101107       echo $1
    102        exit 0;;
     108       exit ;;
    103109
    104110    * )
    105111       break ;;
     
    118124# Here we must recognize all the valid KERNEL-OS combinations.
    119125maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120126case $maybe_os in
    121   nto-qnx* | linux-gnu* | linux-dietlibc | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
     127  nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
     128  uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
     129  kopensolaris*-gnu* | \
     130  storm-chaos* | os2-emx* | rtmk-nova*)
    122131    os=-$maybe_os
    123132    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    124133    ;;
     
    144153        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    145154        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    146155        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    147         -apple | -axis)
     156        -apple | -axis | -knuth | -cray | -microblaze)
    148157                os=
    149158                basic_machine=$1
    150159                ;;
     160        -bluegene*)
     161                os=-cnk
     162                ;;
    151163        -sim | -cisco | -oki | -wec | -winbond)
    152164                os=
    153165                basic_machine=$1
     
    169181        -hiux*)
    170182                os=-hiuxwe2
    171183                ;;
     184        -sco6)
     185                os=-sco5v6
     186                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     187                ;;
    172188        -sco5)
    173189                os=-sco3.2v5
    174190                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    185201                # Don't forget version if it is 3.2v4 or newer.
    186202                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    187203                ;;
     204        -sco5v6*)
     205                # Don't forget version if it is 3.2v4 or newer.
     206                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     207                ;;
    188208        -sco*)
    189209                os=-sco3.2v2
    190210                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    229249        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    230250        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
    231251        | am33_2.0 \
    232         | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
     252        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
     253        | bfin \
    233254        | c4x | clipper \
    234255        | d10v | d30v | dlx | dsp16xx \
    235         | fr30 | frv \
     256        | fido | fr30 | frv \
    236257        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    237258        | i370 | i860 | i960 | ia64 \
    238259        | ip2k | iq2000 \
    239         | m32r | m68000 | m68k | m88k | mcore \
     260        | lm32 \
     261        | m32c | m32r | m32rle | m68000 | m68k | m88k \
     262        | maxq | mb | microblaze | mcore | mep | metag \
    240263        | mips | mipsbe | mipseb | mipsel | mipsle \
    241264        | mips16 \
    242265        | mips64 | mips64el \
    243         | mips64vr | mips64vrel \
     266        | mips64octeon | mips64octeonel \
    244267        | mips64orion | mips64orionel \
     268        | mips64r5900 | mips64r5900el \
     269        | mips64vr | mips64vrel \
    245270        | mips64vr4100 | mips64vr4100el \
    246271        | mips64vr4300 | mips64vr4300el \
    247272        | mips64vr5000 | mips64vr5000el \
     273        | mips64vr5900 | mips64vr5900el \
    248274        | mipsisa32 | mipsisa32el \
    249275        | mipsisa32r2 | mipsisa32r2el \
    250276        | mipsisa64 | mipsisa64el \
     
    253279        | mipsisa64sr71k | mipsisa64sr71kel \
    254280        | mipstx39 | mipstx39el \
    255281        | mn10200 | mn10300 \
     282        | moxie \
     283        | mt \
    256284        | msp430 \
     285        | nios | nios2 \
    257286        | ns16k | ns32k \
    258         | openrisc | or32 \
     287        | or32 \
    259288        | pdp10 | pdp11 | pj | pjl \
    260289        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    261290        | pyramid \
    262         | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
     291        | rx \
     292        | score \
     293        | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
    263294        | sh64 | sh64le \
    264         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
    265         | strongarm \
     295        | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
     296        | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
     297        | spu | strongarm \
    266298        | tahoe | thumb | tic4x | tic80 | tron \
     299        | ubicom32 \
    267300        | v850 | v850e \
    268301        | we32k \
    269         | x86 | xscale | xstormy16 | xtensa \
    270         | z8k)
     302        | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
     303        | z8k | z80)
    271304                basic_machine=$basic_machine-unknown
    272305                ;;
    273         m6811 | m68hc11 | m6812 | m68hc12)
     306        m6811 | m68hc11 | m6812 | m68hc12 | picochip)
    274307                # Motorola 68HC11/12.
    275308                basic_machine=$basic_machine-unknown
    276309                os=-none
    277310                ;;
    278311        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
    279312                ;;
     313        ms1)
     314                basic_machine=mt-unknown
     315                ;;
    280316
    281317        # We use `pc' rather than `unknown'
    282318        # because (1) that's what they normally are, and
     
    296332        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
    297333        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
    298334        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    299         | avr-* \
    300         | bs2000-* \
     335        | avr-* | avr32-* \
     336        | bfin-* | bs2000-* \
    301337        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
    302         | clipper-* | cydra-* \
     338        | clipper-* | craynv-* | cydra-* \
    303339        | d10v-* | d30v-* | dlx-* \
    304340        | elxsi-* \
    305         | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
     341        | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
    306342        | h8300-* | h8500-* \
    307343        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    308344        | i*86-* | i860-* | i960-* | ia64-* \
    309345        | ip2k-* | iq2000-* \
    310         | m32r-* \
     346        | lm32-* \
     347        | m32c-* | m32r-* | m32rle-* \
    311348        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    312         | m88110-* | m88k-* | mcore-* \
     349        | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \
    313350        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    314351        | mips16-* \
    315352        | mips64-* | mips64el-* \
    316         | mips64vr-* | mips64vrel-* \
     353        | mips64octeon-* | mips64octeonel-* \
    317354        | mips64orion-* | mips64orionel-* \
     355        | mips64r5900-* | mips64r5900el-* \
     356        | mips64vr-* | mips64vrel-* \
    318357        | mips64vr4100-* | mips64vr4100el-* \
    319358        | mips64vr4300-* | mips64vr4300el-* \
    320359        | mips64vr5000-* | mips64vr5000el-* \
     360        | mips64vr5900-* | mips64vr5900el-* \
    321361        | mipsisa32-* | mipsisa32el-* \
    322362        | mipsisa32r2-* | mipsisa32r2el-* \
    323363        | mipsisa64-* | mipsisa64el-* \
     
    325365        | mipsisa64sb1-* | mipsisa64sb1el-* \
    326366        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
    327367        | mipstx39-* | mipstx39el-* \
     368        | mmix-* \
     369        | mt-* \
    328370        | msp430-* \
    329         | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
     371        | nios-* | nios2-* \
     372        | none-* | np1-* | ns16k-* | ns32k-* \
    330373        | orion-* \
    331374        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    332375        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    333376        | pyramid-* \
    334         | romp-* | rs6000-* \
    335         | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
     377        | romp-* | rs6000-* | rx-* \
     378        | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
    336379        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    337         | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
    338         | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     380        | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
     381        | sparclite-* \
     382        | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
    339383        | tahoe-* | thumb-* \
    340384        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     385        | tile-* | tilegx-* \
    341386        | tron-* \
     387        | ubicom32-* \
    342388        | v850-* | v850e-* | vax-* \
    343389        | we32k-* \
    344         | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
    345         | xtensa-* \
     390        | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
     391        | xstormy16-* | xtensa*-* \
    346392        | ymp-* \
    347         | z8k-*)
     393        | z8k-* | z80-*)
     394                ;;
     395        # Recognize the basic CPU types without company name, with glob match.
     396        xtensa*)
     397                basic_machine=$basic_machine-unknown
    348398                ;;
    349399        # Recognize the various machine names and aliases which stand
    350400        # for a CPU type and a company and sometimes even an OS.
     
    362412                basic_machine=a29k-amd
    363413                os=-udi
    364414                ;;
     415        abacus)
     416                basic_machine=abacus-unknown
     417                ;;
    365418        adobe68k)
    366419                basic_machine=m68010-adobe
    367420                os=-scout
     
    379432        amd64)
    380433                basic_machine=x86_64-pc
    381434                ;;
     435        amd64-*)
     436                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     437                ;;
    382438        amdahl)
    383439                basic_machine=580-amdahl
    384440                os=-sysv
     
    402458                basic_machine=m68k-apollo
    403459                os=-bsd
    404460                ;;
     461        aros)
     462                basic_machine=i386-pc
     463                os=-aros
     464                ;;
    405465        aux)
    406466                basic_machine=m68k-apple
    407467                os=-aux
     
    410470                basic_machine=ns32k-sequent
    411471                os=-dynix
    412472                ;;
     473        blackfin)
     474                basic_machine=bfin-unknown
     475                os=-linux
     476                ;;
     477        blackfin-*)
     478                basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     479                os=-linux
     480                ;;
     481        bluegene*)
     482                basic_machine=powerpc-ibm
     483                os=-cnk
     484                ;;
    413485        c90)
    414486                basic_machine=c90-cray
    415487                os=-unicos
    416488                ;;
     489        cegcc)
     490                basic_machine=arm-unknown
     491                os=-cegcc
     492                ;;
    417493        convex-c1)
    418494                basic_machine=c1-convex
    419495                os=-bsd
     
    438514                basic_machine=j90-cray
    439515                os=-unicos
    440516                ;;
     517        craynv)
     518                basic_machine=craynv-cray
     519                os=-unicosmp
     520                ;;
     521        cr16)
     522                basic_machine=cr16-unknown
     523                os=-elf
     524                ;;
    441525        crds | unos)
    442526                basic_machine=m68k-crds
    443527                ;;
     528        crisv32 | crisv32-* | etraxfs*)
     529                basic_machine=crisv32-axis
     530                ;;
    444531        cris | cris-* | etrax*)
    445532                basic_machine=cris-axis
    446533                ;;
     534        crx)
     535                basic_machine=crx-unknown
     536                os=-elf
     537                ;;
    447538        da30 | da30-*)
    448539                basic_machine=m68k-da30
    449540                ;;
     
    466557                basic_machine=m88k-motorola
    467558                os=-sysv3
    468559                ;;
     560        dicos)
     561                basic_machine=i686-pc
     562                os=-dicos
     563                ;;
     564        djgpp)
     565                basic_machine=i586-pc
     566                os=-msdosdjgpp
     567                ;;
    469568        dpx20 | dpx20-*)
    470569                basic_machine=rs6000-bull
    471570                os=-bosx
     
    616715                basic_machine=m68k-isi
    617716                os=-sysv
    618717                ;;
     718        m68knommu)
     719                basic_machine=m68k-unknown
     720                os=-linux
     721                ;;
     722        m68knommu-*)
     723                basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     724                os=-linux
     725                ;;
    619726        m88k-omron*)
    620727                basic_machine=m88k-omron
    621728                ;;
     
    627734                basic_machine=ns32k-utek
    628735                os=-sysv
    629736                ;;
     737        microblaze)
     738                basic_machine=microblaze-xilinx
     739                ;;
    630740        mingw32)
    631741                basic_machine=i386-pc
    632742                os=-mingw32
    633743                ;;
     744        mingw32ce)
     745                basic_machine=arm-unknown
     746                os=-mingw32ce
     747                ;;
    634748        miniframe)
    635749                basic_machine=m68000-convergent
    636750                ;;
     
    644758        mips3*)
    645759                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    646760                ;;
    647         mmix*)
    648                 basic_machine=mmix-knuth
    649                 os=-mmixware
    650                 ;;
    651761        monitor)
    652762                basic_machine=m68k-rom68k
    653763                os=-coff
     
    660770                basic_machine=i386-pc
    661771                os=-msdos
    662772                ;;
     773        ms1-*)
     774                basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
     775                ;;
    663776        mvs)
    664777                basic_machine=i370-ibm
    665778                os=-mvs
     
    728841        np1)
    729842                basic_machine=np1-gould
    730843                ;;
    731         nv1)
    732                 basic_machine=nv1-cray
    733                 os=-unicosmp
    734                 ;;
    735844        nsr-tandem)
    736845                basic_machine=nsr-tandem
    737846                ;;
     
    739848                basic_machine=hppa1.1-oki
    740849                os=-proelf
    741850                ;;
    742         or32 | or32-*)
     851        openrisc | openrisc-*)
    743852                basic_machine=or32-unknown
    744                 os=-coff
     853                ;;
     854        os400)
     855                basic_machine=powerpc-ibm
     856                os=-os400
    745857                ;;
    746858        OSE68000 | ose68000)
    747859                basic_machine=m68000-ericsson
     
    759871                basic_machine=i860-intel
    760872                os=-osf
    761873                ;;
     874        parisc)
     875                basic_machine=hppa-unknown
     876                os=-linux
     877                ;;
     878        parisc-*)
     879                basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     880                os=-linux
     881                ;;
    762882        pbd)
    763883                basic_machine=sparc-tti
    764884                ;;
     
    768888        pc532 | pc532-*)
    769889                basic_machine=ns32k-pc532
    770890                ;;
     891        pc98)
     892                basic_machine=i386-pc
     893                ;;
     894        pc98-*)
     895                basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
     896                ;;
    771897        pentium | p5 | k5 | k6 | nexgen | viac3)
    772898                basic_machine=i586-pc
    773899                ;;
     
    824950                basic_machine=i586-unknown
    825951                os=-pw32
    826952                ;;
     953        rdos)
     954                basic_machine=i386-pc
     955                os=-rdos
     956                ;;
    827957        rom68k)
    828958                basic_machine=m68k-rom68k
    829959                os=-coff
     
    850980        sb1el)
    851981                basic_machine=mipsisa64sb1el-unknown
    852982                ;;
     983        sde)
     984                basic_machine=mipsisa32-sde
     985                os=-elf
     986                ;;
    853987        sei)
    854988                basic_machine=mips-sei
    855989                os=-seiux
     
    861995                basic_machine=sh-hitachi
    862996                os=-hms
    863997                ;;
     998        sh5el)
     999                basic_machine=sh5le-unknown
     1000                ;;
    8641001        sh64)
    8651002                basic_machine=sh64-unknown
    8661003                ;;
     
    9501087                basic_machine=tic6x-unknown
    9511088                os=-coff
    9521089                ;;
     1090        # This must be matched before tile*.
     1091        tilegx*)
     1092                basic_machine=tilegx-unknown
     1093                os=-linux-gnu
     1094                ;;
     1095        tile*)
     1096                basic_machine=tile-unknown
     1097                os=-linux-gnu
     1098                ;;
    9531099        tx39)
    9541100                basic_machine=mipstx39-unknown
    9551101                ;;
     
    9631109        tower | tower-32)
    9641110                basic_machine=m68k-ncr
    9651111                ;;
     1112        tpf)
     1113                basic_machine=s390x-ibm
     1114                os=-tpf
     1115                ;;
    9661116        udi29k)
    9671117                basic_machine=a29k-amd
    9681118                os=-udi
     
    10061156                basic_machine=hppa1.1-winbond
    10071157                os=-proelf
    10081158                ;;
     1159        xbox)
     1160                basic_machine=i686-pc
     1161                os=-mingw32
     1162                ;;
    10091163        xps | xps100)
    10101164                basic_machine=xps100-honeywell
    10111165                ;;
     
    10171171                basic_machine=z8k-unknown
    10181172                os=-sim
    10191173                ;;
     1174        z80-*-coff)
     1175                basic_machine=z80-unknown
     1176                os=-sim
     1177                ;;
    10201178        none)
    10211179                basic_machine=none-none
    10221180                os=-none
     
    10361194        romp)
    10371195                basic_machine=romp-ibm
    10381196                ;;
     1197        mmix)
     1198                basic_machine=mmix-knuth
     1199                ;;
    10391200        rs6000)
    10401201                basic_machine=rs6000-ibm
    10411202                ;;
     
    10521213        we32k)
    10531214                basic_machine=we32k-att
    10541215                ;;
    1055         sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
     1216        sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
    10561217                basic_machine=sh-unknown
    10571218                ;;
    1058         sh64)
    1059                 basic_machine=sh64-unknown
    1060                 ;;
    1061         sparc | sparcv9 | sparcv9b)
     1219        sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
    10621220                basic_machine=sparc-sun
    10631221                ;;
    10641222        cydra)
     
    11051263        # First match some system type aliases
    11061264        # that might get confused with valid system types.
    11071265        # -solaris* is a basic system type, with this one exception.
     1266        -auroraux)
     1267                os=-auroraux
     1268                ;;
    11081269        -solaris1 | -solaris1.*)
    11091270                os=`echo $os | sed -e 's|solaris1|sunos4|'`
    11101271                ;;
     
    11251286        # Each alternative MUST END IN A *, to match a version number.
    11261287        # -sysv* is not here because it comes later, after sysvr4.
    11271288        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
    1128               | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
    1129               | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
     1289              | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
     1290              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
     1291              | -sym* | -kopensolaris* \
    11301292              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
    1131               | -aos* \
     1293              | -aos* | -aros* \
    11321294              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    11331295              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1134               | -hiux* | -386bsd* | -knetbsd* | -netbsd* | -openbsd* | -kfreebsd* | -freebsd* | -riscix* \
    1135               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1296              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     1297              | -openbsd* | -solidbsd* \
     1298              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1299              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11361300              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11371301              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    1138               | -chorusos* | -chorusrdb* \
     1302              | -chorusos* | -chorusrdb* | -cegcc* \
    11391303              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1140               | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
     1304              | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
     1305              | -uxpv* | -beos* | -mpeix* | -udk* \
    11411306              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    11421307              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    11431308              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    11441309              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    11451310              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
    1146               | -powermax* | -dnix* | -nx6 | -nx7 | -sei*)
     1311              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
     1312              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
    11471313        # Remember, each alternative MUST END IN *, to match a version number.
    11481314                ;;
    11491315        -qnx*)
     
    11611327                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    11621328                ;;
    11631329        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    1164               | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     1330              | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
    11651331              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    11661332                ;;
    11671333        -mac*)
     
    11821348        -opened*)
    11831349                os=-openedition
    11841350                ;;
     1351        -os400*)
     1352                os=-os400
     1353                ;;
    11851354        -wince*)
    11861355                os=-wince
    11871356                ;;
     
    12031372        -atheos*)
    12041373                os=-atheos
    12051374                ;;
     1375        -syllable*)
     1376                os=-syllable
     1377                ;;
    12061378        -386bsd)
    12071379                os=-bsd
    12081380                ;;
     
    12251397        -sinix*)
    12261398                os=-sysv4
    12271399                ;;
     1400        -tpf*)
     1401                os=-tpf
     1402                ;;
    12281403        -triton*)
    12291404                os=-sysv3
    12301405                ;;
     
    12611436        -kaos*)
    12621437                os=-kaos
    12631438                ;;
     1439        -zvmoe)
     1440                os=-zvmoe
     1441                ;;
     1442        -dicos*)
     1443                os=-dicos
     1444                ;;
     1445        -nacl*)
     1446                ;;
    12641447        -none)
    12651448                ;;
    12661449        *)
     
    12831466# system, and we'll never get to this point.
    12841467
    12851468case $basic_machine in
     1469        score-*)
     1470                os=-elf
     1471                ;;
     1472        spu-*)
     1473                os=-elf
     1474                ;;
    12861475        *-acorn)
    12871476                os=-riscix1.2
    12881477                ;;
     
    12921481        arm*-semi)
    12931482                os=-aout
    12941483                ;;
    1295     c4x-* | tic4x-*)
    1296         os=-coff
    1297         ;;
     1484        c4x-* | tic4x-*)
     1485                os=-coff
     1486                ;;
    12981487        # This must come before the *-dec entry.
    12991488        pdp10-*)
    13001489                os=-tops20
     
    13201509        m68*-cisco)
    13211510                os=-aout
    13221511                ;;
     1512        mep-*)
     1513                os=-elf
     1514                ;;
    13231515        mips*-cisco)
    13241516                os=-elf
    13251517                ;;
     
    13381530        *-be)
    13391531                os=-beos
    13401532                ;;
     1533        *-haiku)
     1534                os=-haiku
     1535                ;;
    13411536        *-ibm)
    13421537                os=-aix
    13431538                ;;
     1539        *-knuth)
     1540                os=-mmixware
     1541                ;;
    13441542        *-wec)
    13451543                os=-proelf
    13461544                ;;
     
    14431641                        -sunos*)
    14441642                                vendor=sun
    14451643                                ;;
    1446                         -aix*)
     1644                        -cnk*|-aix*)
    14471645                                vendor=ibm
    14481646                                ;;
    14491647                        -beos*)
     
    14731671                        -mvs* | -opened*)
    14741672                                vendor=ibm
    14751673                                ;;
     1674                        -os400*)
     1675                                vendor=ibm
     1676                                ;;
    14761677                        -ptx*)
    14771678                                vendor=sequent
    14781679                                ;;
     1680                        -tpf*)
     1681                                vendor=ibm
     1682                                ;;
    14791683                        -vxsim* | -vxworks* | -windiss*)
    14801684                                vendor=wrs
    14811685                                ;;
     
    15001704esac
    15011705
    15021706echo $basic_machine$os
    1503 exit 0
     1707exit
    15041708
    15051709# Local variables:
    15061710# eval: (add-hook 'write-file-hooks 'time-stamp)
Note: See TracBrowser for help on using the repository browser.