source: patches/file-4.17-mips_config_update-1.patch @ 69cde8d

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

Added: All patches needed for the book.

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

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-10-01
    Initial Package Version: 4.15
    Origin: Jim Gifford
    Upstream Status: Unknown
    Description: Updates config.sub and config.guess
     
    diff -Naur file-4.15.orig/config.guess file-4.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 Free Software Foundation, Inc.
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    55
    6 timestamp='2002-07-23'
     6timestamp='2004-11-12'
    77
    88# This file is free software; you can redistribute it and/or modify it
    99# under the terms of the GNU General Public License as published by
     
    5353GNU config.guess ($timestamp)
    5454
    5555Originally written by Per Bothner.
    56 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     56Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    5757Free Software Foundation, Inc.
    5858
    5959This is free software; see the source for copying conditions.  There is NO
     
    9898# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9999# use `HOST_CC' if defined, but it is deprecated.
    100100
    101 # This shell variable is my proudest work .. or something. --bje
     101# Portable tmp directory creation inspired by the Autoconf team.
    102102
    103 set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
    104 (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
    105    || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
    106 dummy=$tmpdir/dummy ;
    107 files="$dummy.c $dummy.o $dummy.rel $dummy" ;
    108 trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
     103set_cc_for_build='
     104trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
     105trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
     106: ${TMPDIR=/tmp} ;
     107 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
     108 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
     109 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
     110 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
     111dummy=$tmp/dummy ;
     112tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    109113case $CC_FOR_BUILD,$HOST_CC,$CC in
    110114 ,,)    echo "int x;" > $dummy.c ;
    111115        for c in cc gcc c89 c99 ; do
    112           if ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ; then
     116          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
    113117             CC_FOR_BUILD="$c"; break ;
    114118          fi ;
    115119        done ;
    116         rm -f $files ;
    117120        if test x"$CC_FOR_BUILD" = x ; then
    118121          CC_FOR_BUILD=no_compiler_found ;
    119122        fi
    120123        ;;
    121124 ,,*)   CC_FOR_BUILD=$CC ;;
    122125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    123 esac ;
    124 unset files'
     126esac ;'
    125127
    126128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    127129# (ghazi@noc.rutgers.edu 1994-08-24)
     
    178180                ;;
    179181        esac
    180182        # The OS release
    181         release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     183        # Debian GNU/NetBSD machines have a different userland, and
     184        # thus, need a distinct triplet. However, they do not need
     185        # kernel version information, so it can be replaced with a
     186        # suitable tag, in the style of linux-gnu.
     187        case "${UNAME_VERSION}" in
     188            Debian*)
     189                release='-gnu'
     190                ;;
     191            *)
     192                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     193                ;;
     194        esac
    182195        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    183196        # contains redundant information, the shorter form:
    184197        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    185198        echo "${machine}-${os}${release}"
    186199        exit 0 ;;
     200    amd64:OpenBSD:*:*)
     201        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     202        exit 0 ;;
    187203    amiga:OpenBSD:*:*)
    188204        echo m68k-unknown-openbsd${UNAME_RELEASE}
    189205        exit 0 ;;
    190     arc:OpenBSD:*:*)
    191         echo mipsel-unknown-openbsd${UNAME_RELEASE}
     206    cats:OpenBSD:*:*)
     207        echo arm-unknown-openbsd${UNAME_RELEASE}
    192208        exit 0 ;;
    193209    hp300:OpenBSD:*:*)
    194210        echo m68k-unknown-openbsd${UNAME_RELEASE}
    195211        exit 0 ;;
     212    luna88k:OpenBSD:*:*)
     213        echo m88k-unknown-openbsd${UNAME_RELEASE}
     214        exit 0 ;;
    196215    mac68k:OpenBSD:*:*)
    197216        echo m68k-unknown-openbsd${UNAME_RELEASE}
    198217        exit 0 ;;
     
    208227    mvmeppc:OpenBSD:*:*)
    209228        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    210229        exit 0 ;;
    211     pmax:OpenBSD:*:*)
    212         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    213         exit 0 ;;
    214230    sgi:OpenBSD:*:*)
    215         echo mipseb-unknown-openbsd${UNAME_RELEASE}
     231        echo mips64-unknown-openbsd${UNAME_RELEASE}
    216232        exit 0 ;;
    217233    sun3:OpenBSD:*:*)
    218234        echo m68k-unknown-openbsd${UNAME_RELEASE}
    219235        exit 0 ;;
    220     wgrisc:OpenBSD:*:*)
    221         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    222         exit 0 ;;
    223236    *:OpenBSD:*:*)
    224237        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    225238        exit 0 ;;
     239    *:ekkoBSD:*:*)
     240        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     241        exit 0 ;;
     242    macppc:MirBSD:*:*)
     243        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
     244        exit 0 ;;
     245    *:MirBSD:*:*)
     246        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     247        exit 0 ;;
    226248    alpha:OSF1:*:*)
    227         if test $UNAME_RELEASE = "V4.0"; then
     249        case $UNAME_RELEASE in
     250        *4.0)
    228251                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    229         fi
     252                ;;
     253        *5.*)
     254                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     255                ;;
     256        esac
     257        # According to Compaq, /usr/sbin/psrinfo has been available on
     258        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     259        # covers most systems running today.  This code pipes the CPU
     260        # types through head -n 1, so we only detect the type of CPU 0.
     261        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     262        case "$ALPHA_CPU_TYPE" in
     263            "EV4 (21064)")
     264                UNAME_MACHINE="alpha" ;;
     265            "EV4.5 (21064)")
     266                UNAME_MACHINE="alpha" ;;
     267            "LCA4 (21066/21068)")
     268                UNAME_MACHINE="alpha" ;;
     269            "EV5 (21164)")
     270                UNAME_MACHINE="alphaev5" ;;
     271            "EV5.6 (21164A)")
     272                UNAME_MACHINE="alphaev56" ;;
     273            "EV5.6 (21164PC)")
     274                UNAME_MACHINE="alphapca56" ;;
     275            "EV5.7 (21164PC)")
     276                UNAME_MACHINE="alphapca57" ;;
     277            "EV6 (21264)")
     278                UNAME_MACHINE="alphaev6" ;;
     279            "EV6.7 (21264A)")
     280                UNAME_MACHINE="alphaev67" ;;
     281            "EV6.8CB (21264C)")
     282                UNAME_MACHINE="alphaev68" ;;
     283            "EV6.8AL (21264B)")
     284                UNAME_MACHINE="alphaev68" ;;
     285            "EV6.8CX (21264D)")
     286                UNAME_MACHINE="alphaev68" ;;
     287            "EV6.9A (21264/EV69A)")
     288                UNAME_MACHINE="alphaev69" ;;
     289            "EV7 (21364)")
     290                UNAME_MACHINE="alphaev7" ;;
     291            "EV7.9 (21364A)")
     292                UNAME_MACHINE="alphaev79" ;;
     293        esac
     294        # A Pn.n version is a patched version.
    230295        # A Vn.n version is a released version.
    231296        # A Tn.n version is a released field test version.
    232297        # A Xn.n version is an unreleased experimental baselevel.
    233298        # 1.2 uses "1.2" for uname -r.
    234         eval $set_cc_for_build
    235         cat <<EOF >$dummy.s
    236         .data
    237 \$Lformat:
    238         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    239 
    240         .text
    241         .globl main
    242         .align 4
    243         .ent main
    244 main:
    245         .frame \$30,16,\$26,0
    246         ldgp \$29,0(\$27)
    247         .prologue 1
    248         .long 0x47e03d80 # implver \$0
    249         lda \$2,-1
    250         .long 0x47e20c21 # amask \$2,\$1
    251         lda \$16,\$Lformat
    252         mov \$0,\$17
    253         not \$1,\$18
    254         jsr \$26,printf
    255         ldgp \$29,0(\$26)
    256         mov 0,\$16
    257         jsr \$26,exit
    258         .end main
    259 EOF
    260         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    261         if test "$?" = 0 ; then
    262                 case `$dummy` in
    263                         0-0)
    264                                 UNAME_MACHINE="alpha"
    265                                 ;;
    266                         1-0)
    267                                 UNAME_MACHINE="alphaev5"
    268                                 ;;
    269                         1-1)
    270                                 UNAME_MACHINE="alphaev56"
    271                                 ;;
    272                         1-101)
    273                                 UNAME_MACHINE="alphapca56"
    274                                 ;;
    275                         2-303)
    276                                 UNAME_MACHINE="alphaev6"
    277                                 ;;
    278                         2-307)
    279                                 UNAME_MACHINE="alphaev67"
    280                                 ;;
    281                         2-1307)
    282                                 UNAME_MACHINE="alphaev68"
    283                                 ;;
    284                         3-1307)
    285                                 UNAME_MACHINE="alphaev7"
    286                                 ;;
    287                 esac
    288         fi
    289         rm -f $dummy.s $dummy && rmdir $tmpdir
    290         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     299        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    291300        exit 0 ;;
    292301    Alpha\ *:Windows_NT*:*)
    293302        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    310319    *:OS/390:*:*)
    311320        echo i370-ibm-openedition
    312321        exit 0 ;;
     322    *:z/VM:*:*)
     323        echo s390-ibm-zvmoe
     324        exit 0 ;;
     325    *:OS400:*:*)
     326        echo powerpc-ibm-os400
     327        exit 0 ;;
    313328    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    314329        echo arm-acorn-riscix${UNAME_RELEASE}
    315330        exit 0;;
     
    327342    NILE*:*:*:dcosx)
    328343        echo pyramid-pyramid-svr4
    329344        exit 0 ;;
    330     DRS?6000:UNIX_SV:4.2*:7*)
     345    DRS?6000:unix:4.0:6*)
     346        echo sparc-icl-nx6
     347        exit 0 ;;
     348    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
    331349        case `/usr/bin/uname -p` in
    332350            sparc) echo sparc-icl-nx7 && exit 0 ;;
    333351        esac ;;
     
    399417    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    400418        echo m68k-unknown-mint${UNAME_RELEASE}
    401419        exit 0 ;;
     420    m68k:machten:*:*)
     421        echo m68k-apple-machten${UNAME_RELEASE}
     422        exit 0 ;;
    402423    powerpc:machten:*:*)
    403424        echo powerpc-apple-machten${UNAME_RELEASE}
    404425        exit 0 ;;
     
    437458          exit (-1);
    438459        }
    439460EOF
    440         $CC_FOR_BUILD $dummy.c -o $dummy \
     461        $CC_FOR_BUILD -o $dummy $dummy.c \
    441462          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    442           && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    443         rm -f $dummy.c $dummy && rmdir $tmpdir
     463          && exit 0
    444464        echo mips-mips-riscos${UNAME_RELEASE}
    445465        exit 0 ;;
    446466    Motorola:PowerMAX_OS:*:*)
    447467        echo powerpc-motorola-powermax
    448468        exit 0 ;;
    449     Night_Hawk:*:*:PowerMAX_OS)
     469    Motorola:*:4.3:PL8-*)
     470        echo powerpc-harris-powermax
     471        exit 0 ;;
     472    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    450473        echo powerpc-harris-powermax
    451474        exit 0 ;;
    452475    Night_Hawk:Power_UNIX:*:*)
     
    521544                        exit(0);
    522545                        }
    523546EOF
    524                 $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    525                 rm -f $dummy.c $dummy && rmdir $tmpdir
     547                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    526548                echo rs6000-ibm-aix3.2.5
    527549        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    528550                echo rs6000-ibm-aix3.2.4
     
    620642                  exit (0);
    621643              }
    622644EOF
    623                     (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`$dummy`
    624                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    625                     rm -f $dummy.c $dummy && rmdir $tmpdir
     645                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     646                    test -z "$HP_ARCH" && HP_ARCH=hppa
    626647                fi ;;
    627648        esac
     649        if [ ${HP_ARCH} = "hppa2.0w" ]
     650        then
     651            # avoid double evaluation of $set_cc_for_build
     652            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     653            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     654            then
     655                HP_ARCH="hppa2.0w"
     656            else
     657                HP_ARCH="hppa64"
     658            fi
     659        fi
    628660        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    629661        exit 0 ;;
    630662    ia64:HP-UX:*:*)
     
    658690          exit (0);
    659691        }
    660692EOF
    661         $CC_FOR_BUILD $dummy.c -o $dummy && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    662         rm -f $dummy.c $dummy && rmdir $tmpdir
     693        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    663694        echo unknown-hitachi-hiuxwe2
    664695        exit 0 ;;
    665696    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     
    717748    CRAY*TS:*:*:*)
    718749        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    719750        exit 0 ;;
    720     CRAY*T3D:*:*:*)
    721         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    722         exit 0 ;;
    723751    CRAY*T3E:*:*:*)
    724752        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    725753        exit 0 ;;
    726754    CRAY*SV1:*:*:*)
    727755        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    728756        exit 0 ;;
     757    *:UNICOS/mp:*:*)
     758        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     759        exit 0 ;;
    729760    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    730761        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    731762        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    732763        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    733764        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    734765        exit 0 ;;
     766    5000:UNIX_System_V:4.*:*)
     767        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     768        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     769        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     770        exit 0 ;;
    735771    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    736772        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    737773        exit 0 ;;
     
    742778        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    743779        exit 0 ;;
    744780    *:FreeBSD:*:*)
    745         # Determine whether the default compiler uses glibc.
    746         eval $set_cc_for_build
    747         sed 's/^        //' << EOF >$dummy.c
    748         #include <features.h>
    749         #if __GLIBC__ >= 2
    750         LIBC=gnu
    751         #else
    752         LIBC=
    753         #endif
    754 EOF
    755         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    756         rm -f $dummy.c && rmdir $tmpdir
    757         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     781        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    758782        exit 0 ;;
    759783    i*:CYGWIN*:*)
    760784        echo ${UNAME_MACHINE}-pc-cygwin
     
    765789    i*:PW*:*)
    766790        echo ${UNAME_MACHINE}-pc-pw32
    767791        exit 0 ;;
    768     x86:Interix*:3*)
    769         echo i386-pc-interix3
     792    x86:Interix*:[34]*)
     793        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     794        exit 0 ;;
     795    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     796        echo i${UNAME_MACHINE}-pc-mks
    770797        exit 0 ;;
    771798    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    772799        # How do we know it's Interix rather than the generic POSIX subsystem?
    773800        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    774801        # UNAME_MACHINE based on the output of uname instead of i386?
    775         echo i386-pc-interix
     802        echo i586-pc-interix
    776803        exit 0 ;;
    777804    i*:UWIN*:*)
    778805        echo ${UNAME_MACHINE}-pc-uwin
     
    784811        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    785812        exit 0 ;;
    786813    *:GNU:*:*)
     814        # the GNU system
    787815        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    788816        exit 0 ;;
     817    *:GNU/*:*:*)
     818        # other systems with GNU libc and userland
     819        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
     820        exit 0 ;;
    789821    i*86:Minix:*:*)
    790822        echo ${UNAME_MACHINE}-pc-minix
    791823        exit 0 ;;
    792824    arm*:Linux:*:*)
    793825        echo ${UNAME_MACHINE}-unknown-linux-gnu
    794826        exit 0 ;;
     827    cris:Linux:*:*)
     828        echo cris-axis-linux-gnu
     829        exit 0 ;;
     830    crisv32:Linux:*:*)
     831        echo crisv32-axis-linux-gnu
     832        exit 0 ;;
     833    frv:Linux:*:*)
     834        echo frv-unknown-linux-gnu
     835        exit 0 ;;
    795836    ia64:Linux:*:*)
    796837        echo ${UNAME_MACHINE}-unknown-linux-gnu
    797838        exit 0 ;;
     839    m32r*:Linux:*:*)
     840        echo ${UNAME_MACHINE}-unknown-linux-gnu
     841        exit 0 ;;
    798842    m68*:Linux:*:*)
    799843        echo ${UNAME_MACHINE}-unknown-linux-gnu
    800844        exit 0 ;;
     
    815859        #endif
    816860EOF
    817861        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    818         rm -f $dummy.c && rmdir $tmpdir
    819         test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
     862        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     863        ;;
     864    mips64:Linux:*:*)
     865        eval $set_cc_for_build
     866        sed 's/^        //' << EOF >$dummy.c
     867        #undef CPU
     868        #undef mips64
     869        #undef mips64el
     870        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     871        CPU=mips64el
     872        #else
     873        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     874        CPU=mips64
     875        #else
     876        CPU=
     877        #endif
     878        #endif
     879EOF
     880        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     881        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    820882        ;;
    821883    ppc:Linux:*:*)
    822884        echo powerpc-unknown-linux-gnu
     
    852914    s390:Linux:*:* | s390x:Linux:*:*)
    853915        echo ${UNAME_MACHINE}-ibm-linux
    854916        exit 0 ;;
     917    sh64*:Linux:*:*)
     918        echo ${UNAME_MACHINE}-unknown-linux-gnu
     919        exit 0 ;;
    855920    sh*:Linux:*:*)
    856921        echo ${UNAME_MACHINE}-unknown-linux-gnu
    857922        exit 0 ;;
     
    909974        LIBC=gnuaout
    910975        #endif
    911976        #endif
     977        #ifdef __dietlibc__
     978        LIBC=dietlibc
     979        #endif
    912980EOF
    913981        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    914         rm -f $dummy.c && rmdir $tmpdir
    915982        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    916983        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    917984        ;;
     
    929996        # Use sysv4.2uw... so that sysv4* matches it.
    930997        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    931998        exit 0 ;;
     999    i*86:OS/2:*:*)
     1000        # If we were able to find `uname', then EMX Unix compatibility
     1001        # is probably installed.
     1002        echo ${UNAME_MACHINE}-pc-os2-emx
     1003        exit 0 ;;
     1004    i*86:XTS-300:*:STOP)
     1005        echo ${UNAME_MACHINE}-unknown-stop
     1006        exit 0 ;;
     1007    i*86:atheos:*:*)
     1008        echo ${UNAME_MACHINE}-unknown-atheos
     1009        exit 0 ;;
     1010        i*86:syllable:*:*)
     1011        echo ${UNAME_MACHINE}-pc-syllable
     1012        exit 0 ;;
     1013    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1014        echo i386-unknown-lynxos${UNAME_RELEASE}
     1015        exit 0 ;;
     1016    i*86:*DOS:*:*)
     1017        echo ${UNAME_MACHINE}-pc-msdosdjgpp
     1018        exit 0 ;;
    9321019    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    9331020        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    9341021        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    9631050                echo ${UNAME_MACHINE}-pc-sysv32
    9641051        fi
    9651052        exit 0 ;;
    966     i*86:*DOS:*:*)
    967         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    968         exit 0 ;;
    9691053    pc:*:*:*)
    9701054        # Left here for compatibility:
    9711055        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     
    9891073        # "miniframe"
    9901074        echo m68010-convergent-sysv
    9911075        exit 0 ;;
    992     M68*:*:R3V[567]*:*)
     1076    mc68k:UNIX:SYSTEM5:3.51m)
     1077        echo m68k-convergent-sysv
     1078        exit 0 ;;
     1079    M680?0:D-NIX:5.3:*)
     1080        echo m68k-diab-dnix
     1081        exit 0 ;;
     1082    M68*:*:R3V[5678]*:*)
    9931083        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    994     3[34]??:*: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)
     1084    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)
    9951085        OS_REL=''
    9961086        test -r /etc/.relid \
    9971087        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     
    10081098    mc68030:UNIX_System_V:4.*:*)
    10091099        echo m68k-atari-sysv4
    10101100        exit 0 ;;
    1011     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    1012         echo i386-unknown-lynxos${UNAME_RELEASE}
    1013         exit 0 ;;
    10141101    TSUNAMI:LynxOS:2.*:*)
    10151102        echo sparc-unknown-lynxos${UNAME_RELEASE}
    10161103        exit 0 ;;
     
    10821169    SX-5:SUPER-UX:*:*)
    10831170        echo sx5-nec-superux${UNAME_RELEASE}
    10841171        exit 0 ;;
     1172    SX-6:SUPER-UX:*:*)
     1173        echo sx6-nec-superux${UNAME_RELEASE}
     1174        exit 0 ;;
    10851175    Power*:Rhapsody:*:*)
    10861176        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    10871177        exit 0 ;;
     
    10891179        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    10901180        exit 0 ;;
    10911181    *:Darwin:*:*)
    1092         echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1182        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1183        case $UNAME_PROCESSOR in
     1184            *86) UNAME_PROCESSOR=i686 ;;
     1185            unknown) UNAME_PROCESSOR=powerpc ;;
     1186        esac
     1187        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    10931188        exit 0 ;;
    10941189    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    10951190        UNAME_PROCESSOR=`uname -p`
     
    11021197    *:QNX:*:4*)
    11031198        echo i386-pc-qnx
    11041199        exit 0 ;;
    1105     NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
     1200    NSR-?:NONSTOP_KERNEL:*:*)
    11061201        echo nsr-tandem-nsk${UNAME_RELEASE}
    11071202        exit 0 ;;
    11081203    *:NonStop-UX:*:*)
     
    11251220        fi
    11261221        echo ${UNAME_MACHINE}-unknown-plan9
    11271222        exit 0 ;;
    1128     i*86:OS/2:*:*)
    1129         # If we were able to find `uname', then EMX Unix compatibility
    1130         # is probably installed.
    1131         echo ${UNAME_MACHINE}-pc-os2-emx
    1132         exit 0 ;;
    11331223    *:TOPS-10:*:*)
    11341224        echo pdp10-unknown-tops10
    11351225        exit 0 ;;
     
    11481238    *:ITS:*:*)
    11491239        echo pdp10-unknown-its
    11501240        exit 0 ;;
    1151     i*86:XTS-300:*:STOP)
    1152         echo ${UNAME_MACHINE}-unknown-stop
     1241    SEI:*:*:SEIUX)
     1242        echo mips-sei-seiux${UNAME_RELEASE}
    11531243        exit 0 ;;
    1154     i*86:atheos:*:*)
    1155         echo ${UNAME_MACHINE}-unknown-atheos
     1244    *:DragonFly:*:*)
     1245        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1246        exit 0 ;;
     1247    *:*VMS:*:*)
     1248        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1249        case "${UNAME_MACHINE}" in
     1250            A*) echo alpha-dec-vms && exit 0 ;;
     1251            I*) echo ia64-dec-vms && exit 0 ;;
     1252            V*) echo vax-dec-vms && exit 0 ;;
     1253        esac ;;
     1254    *:XENIX:*:SysV)
     1255        echo i386-pc-xenix
    11561256        exit 0 ;;
    11571257esac
    11581258
     
    12741374}
    12751375EOF
    12761376
    1277 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    1278 rm -f $dummy.c $dummy && rmdir $tmpdir
     1377$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12791378
    12801379# Apollos put the system type in the environment.
    12811380
  • config.sub

    diff -Naur file-4.15.orig/config.sub file-4.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 Free Software Foundation, Inc.
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
    55
    6 timestamp='2002-07-03'
     6timestamp='2004-11-30'
    77
    88# This file is (in principle) common to ALL GNU software.
    99# The presence of a machine in this file suggests that SOME GNU software
     
    7070version="\
    7171GNU config.sub ($timestamp)
    7272
    73 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
    7474Free Software Foundation, Inc.
    7575
    7676This is free software; see the source for copying conditions.  There is NO
     
    118118# Here we must recognize all the valid KERNEL-OS combinations.
    119119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    120120case $maybe_os in
    121   nto-qnx* | linux-gnu* | freebsd*-gnu* | storm-chaos* | os2-emx* | windows32-* | rtmk-nova*)
     121  nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
     122  kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
    122123    os=-$maybe_os
    123124    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    124125    ;;
     
    144145        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    145146        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    146147        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    147         -apple | -axis)
     148        -apple | -axis | -knuth | -cray)
    148149                os=
    149150                basic_machine=$1
    150151                ;;
     
    228229        | a29k \
    229230        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
    230231        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     232        | am33_2.0 \
    231233        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    232234        | c4x | clipper \
    233235        | d10v | d30v | dlx | dsp16xx \
    234236        | fr30 | frv \
    235237        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    236238        | i370 | i860 | i960 | ia64 \
    237         | ip2k \
    238         | m32r | m68000 | m68k | m88k | mcore \
     239        | ip2k | iq2000 \
     240        | m32r | m32rle | m68000 | m68k | m88k | maxq | mcore \
    239241        | mips | mipsbe | mipseb | mipsel | mipsle \
    240242        | mips16 \
    241243        | mips64 | mips64el \
     244        | mips64vr | mips64vrel \
    242245        | mips64orion | mips64orionel \
    243246        | mips64vr4100 | mips64vr4100el \
    244247        | mips64vr4300 | mips64vr4300el \
    245248        | mips64vr5000 | mips64vr5000el \
    246249        | mipsisa32 | mipsisa32el \
     250        | mipsisa32r2 | mipsisa32r2el \
    247251        | mipsisa64 | mipsisa64el \
     252        | mipsisa64r2 | mipsisa64r2el \
    248253        | mipsisa64sb1 | mipsisa64sb1el \
     254        | mipsisa64sr71k | mipsisa64sr71kel \
    249255        | mipstx39 | mipstx39el \
    250256        | mn10200 | mn10300 \
     257        | msp430 \
    251258        | ns16k | ns32k \
    252259        | openrisc | or32 \
    253260        | pdp10 | pdp11 | pj | pjl \
    254261        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    255262        | pyramid \
    256         | sh | sh[1234] | sh3e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
     263        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
    257264        | sh64 | sh64le \
    258         | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \
     265        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
    259266        | strongarm \
    260         | tahoe | thumb | tic80 | tron \
     267        | tahoe | thumb | tic4x | tic80 | tron \
    261268        | v850 | v850e \
    262269        | we32k \
    263         | x86 | xscale | xstormy16 | xtensa \
     270        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
    264271        | z8k)
    265272                basic_machine=$basic_machine-unknown
    266273                ;;
     
    292299        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
    293300        | avr-* \
    294301        | bs2000-* \
    295         | c[123]* | c30-* | [cjt]90-* | c54x-* \
    296         | clipper-* | cydra-* \
     302        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
     303        | clipper-* | craynv-* | cydra-* \
    297304        | d10v-* | d30v-* | dlx-* \
    298305        | elxsi-* \
    299306        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    300307        | h8300-* | h8500-* \
    301308        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    302309        | i*86-* | i860-* | i960-* | ia64-* \
    303         | ip2k-* \
    304         | m32r-* \
     310        | ip2k-* | iq2000-* \
     311        | m32r-* | m32rle-* \
    305312        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    306         | m88110-* | m88k-* | mcore-* \
     313        | m88110-* | m88k-* | maxq-* | mcore-* \
    307314        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
    308315        | mips16-* \
    309316        | mips64-* | mips64el-* \
     317        | mips64vr-* | mips64vrel-* \
    310318        | mips64orion-* | mips64orionel-* \
    311319        | mips64vr4100-* | mips64vr4100el-* \
    312320        | mips64vr4300-* | mips64vr4300el-* \
    313321        | mips64vr5000-* | mips64vr5000el-* \
    314322        | mipsisa32-* | mipsisa32el-* \
     323        | mipsisa32r2-* | mipsisa32r2el-* \
    315324        | mipsisa64-* | mipsisa64el-* \
     325        | mipsisa64r2-* | mipsisa64r2el-* \
    316326        | mipsisa64sb1-* | mipsisa64sb1el-* \
    317         | mipstx39 | mipstx39el \
     327        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     328        | mipstx39-* | mipstx39el-* \
     329        | mmix-* \
     330        | msp430-* \
    318331        | none-* | np1-* | ns16k-* | ns32k-* \
    319332        | orion-* \
    320333        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    321334        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    322335        | pyramid-* \
    323336        | romp-* | rs6000-* \
    324         | sh-* | sh[1234]-* | sh3e-* | sh[34]eb-* | shbe-* \
     337        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
    325338        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
    326339        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
    327         | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
    328         | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
     340        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     341        | tahoe-* | thumb-* \
     342        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     343        | tron-* \
    329344        | v850-* | v850e-* | vax-* \
    330345        | we32k-* \
    331         | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
    332         | xtensa-* \
     346        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
     347        | xstormy16-* | xtensa-* \
    333348        | ymp-* \
    334349        | z8k-*)
    335350                ;;
     
    349364                basic_machine=a29k-amd
    350365                os=-udi
    351366                ;;
     367        abacus)
     368                basic_machine=abacus-unknown
     369                ;;
    352370        adobe68k)
    353371                basic_machine=m68010-adobe
    354372                os=-scout
     
    363381                basic_machine=a29k-none
    364382                os=-bsd
    365383                ;;
     384        amd64)
     385                basic_machine=x86_64-pc
     386                ;;
     387        amd64-*)
     388                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     389                ;;
    366390        amdahl)
    367391                basic_machine=580-amdahl
    368392                os=-sysv
     
    422446                basic_machine=j90-cray
    423447                os=-unicos
    424448                ;;
     449        craynv)
     450                basic_machine=craynv-cray
     451                os=-unicosmp
     452                ;;
     453        cr16c)
     454                basic_machine=cr16c-unknown
     455                os=-elf
     456                ;;
    425457        crds | unos)
    426458                basic_machine=m68k-crds
    427459                ;;
     460        crisv32 | crisv32-* | etraxfs*)
     461                basic_machine=crisv32-axis
     462                ;;
    428463        cris | cris-* | etrax*)
    429464                basic_machine=cris-axis
    430465                ;;
     466        crx)
     467                basic_machine=crx-unknown
     468                os=-elf
     469                ;;
    431470        da30 | da30-*)
    432471                basic_machine=m68k-da30
    433472                ;;
     
    450489                basic_machine=m88k-motorola
    451490                os=-sysv3
    452491                ;;
     492        djgpp)
     493                basic_machine=i586-pc
     494                os=-msdosdjgpp
     495                ;;
    453496        dpx20 | dpx20-*)
    454497                basic_machine=rs6000-bull
    455498                os=-bosx
     
    628671        mips3*)
    629672                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    630673                ;;
    631         mmix*)
    632                 basic_machine=mmix-knuth
    633                 os=-mmixware
    634                 ;;
    635674        monitor)
    636675                basic_machine=m68k-rom68k
    637676                os=-coff
     
    723762                basic_machine=or32-unknown
    724763                os=-coff
    725764                ;;
     765        os400)
     766                basic_machine=powerpc-ibm
     767                os=-os400
     768                ;;
    726769        OSE68000 | ose68000)
    727770                basic_machine=m68000-ericsson
    728771                os=-ose
     
    745788        pbb)
    746789                basic_machine=m68k-tti
    747790                ;;
    748         pc532 | pc532-*)
     791        pc532 | pc532-*)
    749792                basic_machine=ns32k-pc532
    750793                ;;
    751794        pentium | p5 | k5 | k6 | nexgen | viac3)
    752795                basic_machine=i586-pc
    753796                ;;
    754         pentiumpro | p6 | 6x86 | athlon)
     797        pentiumpro | p6 | 6x86 | athlon | athlon_*)
    755798                basic_machine=i686-pc
    756799                ;;
    757         pentiumii | pentium2)
     800        pentiumii | pentium2 | pentiumiii | pentium3)
    758801                basic_machine=i686-pc
    759802                ;;
     803        pentium4)
     804                basic_machine=i786-pc
     805                ;;
    760806        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
    761807                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    762808                ;;
    763809        pentiumpro-* | p6-* | 6x86-* | athlon-*)
    764810                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    765811                ;;
    766         pentiumii-* | pentium2-*)
     812        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
    767813                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    768814                ;;
     815        pentium4-*)
     816                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     817                ;;
    769818        pn)
    770819                basic_machine=pn-gould
    771820                ;;
    772821        power)  basic_machine=power-ibm
    773822                ;;
    774823        ppc)    basic_machine=powerpc-unknown
    775                 ;;
     824                ;;
    776825        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    777826                ;;
    778827        ppcle | powerpclittle | ppc-le | powerpc-little)
    779828                basic_machine=powerpcle-unknown
    780                 ;;
     829                ;;
    781830        ppcle-* | powerpclittle-*)
    782831                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    783832                ;;
    784833        ppc64)  basic_machine=powerpc64-unknown
    785                 ;;
     834                ;;
    786835        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
    787836                ;;
    788837        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
    789838                basic_machine=powerpc64le-unknown
    790                 ;;
     839                ;;
    791840        ppc64le-* | powerpc64little-*)
    792841                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
    793842                ;;
     
    818867                basic_machine=a29k-amd
    819868                os=-udi
    820869                ;;
     870        sb1)
     871                basic_machine=mipsisa64sb1-unknown
     872                ;;
     873        sb1el)
     874                basic_machine=mipsisa64sb1el-unknown
     875                ;;
     876        sei)
     877                basic_machine=mips-sei
     878                os=-seiux
     879                ;;
    821880        sequent)
    822881                basic_machine=i386-sequent
    823882                ;;
     
    825884                basic_machine=sh-hitachi
    826885                os=-hms
    827886                ;;
     887        sh64)
     888                basic_machine=sh64-unknown
     889                ;;
    828890        sparclite-wrs | simso-wrs)
    829891                basic_machine=sparclite-wrs
    830892                os=-vxworks
     
    883945        sun386 | sun386i | roadrunner)
    884946                basic_machine=i386-sun
    885947                ;;
    886         sv1)
     948        sv1)
    887949                basic_machine=sv1-cray
    888950                os=-unicos
    889951                ;;
     
    891953                basic_machine=i386-sequent
    892954                os=-dynix
    893955                ;;
    894         t3d)
    895                 basic_machine=alpha-cray
    896                 os=-unicos
    897                 ;;
    898956        t3e)
    899957                basic_machine=alphaev5-cray
    900958                os=-unicos
     
    907965                basic_machine=tic54x-unknown
    908966                os=-coff
    909967                ;;
     968        tic55x | c55x*)
     969                basic_machine=tic55x-unknown
     970                os=-coff
     971                ;;
     972        tic6x | c6x*)
     973                basic_machine=tic6x-unknown
     974                os=-coff
     975                ;;
    910976        tx39)
    911977                basic_machine=mipstx39-unknown
    912978                ;;
     
    920986        tower | tower-32)
    921987                basic_machine=m68k-ncr
    922988                ;;
     989        tpf)
     990                basic_machine=s390x-ibm
     991                os=-tpf
     992                ;;
    923993        udi29k)
    924994                basic_machine=a29k-amd
    925995                os=-udi
     
    9411011                os=-vms
    9421012                ;;
    9431013        vpp*|vx|vx-*)
    944                basic_machine=f301-fujitsu
    945                ;;
     1014                basic_machine=f301-fujitsu
     1015                ;;
    9461016        vxworks960)
    9471017                basic_machine=i960-wrs
    9481018                os=-vxworks
     
    9631033                basic_machine=hppa1.1-winbond
    9641034                os=-proelf
    9651035                ;;
    966         windows32)
    967                 basic_machine=i386-pc
    968                 os=-windows32-msvcrt
     1036        xbox)
     1037                basic_machine=i686-pc
     1038                os=-mingw32
    9691039                ;;
    970         xps | xps100)
     1040        xps | xps100)
    9711041                basic_machine=xps100-honeywell
    9721042                ;;
    9731043        ymp)
     
    9971067        romp)
    9981068                basic_machine=romp-ibm
    9991069                ;;
     1070        mmix)
     1071                basic_machine=mmix-knuth
     1072                ;;
    10001073        rs6000)
    10011074                basic_machine=rs6000-ibm
    10021075                ;;
     
    10131086        we32k)
    10141087                basic_machine=we32k-att
    10151088                ;;
    1016         sh3 | sh4 | sh3eb | sh4eb | sh[1234]le | sh3ele)
     1089        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
    10171090                basic_machine=sh-unknown
    10181091                ;;
    10191092        sh64)
    10201093                basic_machine=sh64-unknown
    10211094                ;;
    1022         sparc | sparcv9 | sparcv9b)
     1095        sparc | sparcv8 | sparcv9 | sparcv9b)
    10231096                basic_machine=sparc-sun
    10241097                ;;
    1025         cydra)
     1098        cydra)
    10261099                basic_machine=cydra-cydrome
    10271100                ;;
    10281101        orion)
     
    10371110        pmac | pmac-mpw)
    10381111                basic_machine=powerpc-apple
    10391112                ;;
    1040         c4x*)
    1041                 basic_machine=c4x-none
    1042                 os=-coff
    1043                 ;;
    10441113        *-unknown)
    10451114                # Make sure to match an already-canonicalized machine name.
    10461115                ;;
     
    10961165              | -aos* \
    10971166              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    10981167              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1099               | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    1100               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1168              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1169              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1170              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    11011171              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    11021172              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    11031173              | -chorusos* | -chorusrdb* \
    11041174              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1105               | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    1106               | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1175              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1176              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    11071177              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    11081178              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    11091179              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    1110               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* | -powermax*)
     1180              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1181              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
    11111182        # Remember, each alternative MUST END IN *, to match a version number.
    11121183                ;;
    11131184        -qnx*)
     
    11191190                        ;;
    11201191                esac
    11211192                ;;
     1193        -nto-qnx*)
     1194                ;;
    11221195        -nto*)
    1123                 os=-nto-qnx
     1196                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    11241197                ;;
    11251198        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    11261199              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     
    11291202        -mac*)
    11301203                os=`echo $os | sed -e 's|mac|macos|'`
    11311204                ;;
     1205        -linux-dietlibc)
     1206                os=-linux-dietlibc
     1207                ;;
    11321208        -linux*)
    11331209                os=`echo $os | sed -e 's|linux|linux-gnu|'`
    11341210                ;;
     
    11411217        -opened*)
    11421218                os=-openedition
    11431219                ;;
     1220        -os400*)
     1221                os=-os400
     1222                ;;
    11441223        -wince*)
    11451224                os=-wince
    11461225                ;;
     
    11621241        -atheos*)
    11631242                os=-atheos
    11641243                ;;
     1244        -syllable*)
     1245                os=-syllable
     1246                ;;
    11651247        -386bsd)
    11661248                os=-bsd
    11671249                ;;
     
    11721254                os=-rtmk-nova
    11731255                ;;
    11741256        -ns2 )
    1175                 os=-nextstep2
     1257                os=-nextstep2
    11761258                ;;
    11771259        -nsk*)
    11781260                os=-nsk
     
    11841266        -sinix*)
    11851267                os=-sysv4
    11861268                ;;
     1269        -tpf*)
     1270                os=-tpf
     1271                ;;
    11871272        -triton*)
    11881273                os=-sysv3
    11891274                ;;
     
    12111296        -xenix)
    12121297                os=-xenix
    12131298                ;;
    1214         -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    1215                 os=-mint
     1299        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1300                os=-mint
     1301                ;;
     1302        -aros*)
     1303                os=-aros
     1304                ;;
     1305        -kaos*)
     1306                os=-kaos
     1307                ;;
     1308        -zvmoe)
     1309                os=-zvmoe
    12161310                ;;
    12171311        -none)
    12181312                ;;
     
    12451339        arm*-semi)
    12461340                os=-aout
    12471341                ;;
     1342    c4x-* | tic4x-*)
     1343        os=-coff
     1344        ;;
    12481345        # This must come before the *-dec entry.
    12491346        pdp10-*)
    12501347                os=-tops20
    12511348                ;;
    1252         pdp11-*)
     1349        pdp11-*)
    12531350                os=-none
    12541351                ;;
    12551352        *-dec | vax-*)
     
    12911388        *-ibm)
    12921389                os=-aix
    12931390                ;;
     1391        *-knuth)
     1392                os=-mmixware
     1393                ;;
    12941394        *-wec)
    12951395                os=-proelf
    12961396                ;;
     
    13421442        *-next)
    13431443                os=-nextstep3
    13441444                ;;
    1345         *-gould)
     1445        *-gould)
    13461446                os=-sysv
    13471447                ;;
    1348         *-highlevel)
     1448        *-highlevel)
    13491449                os=-bsd
    13501450                ;;
    13511451        *-encore)
    13521452                os=-bsd
    13531453                ;;
    1354         *-sgi)
     1454        *-sgi)
    13551455                os=-irix
    13561456                ;;
    1357         *-siemens)
     1457        *-siemens)
    13581458                os=-sysv4
    13591459                ;;
    13601460        *-masscomp)
     
    14231523                        -mvs* | -opened*)
    14241524                                vendor=ibm
    14251525                                ;;
     1526                        -os400*)
     1527                                vendor=ibm
     1528                                ;;
    14261529                        -ptx*)
    14271530                                vendor=sequent
    14281531                                ;;
     1532                        -tpf*)
     1533                                vendor=ibm
     1534                                ;;
    14291535                        -vxsim* | -vxworks* | -windiss*)
    14301536                                vendor=wrs
    14311537                                ;;
Note: See TracBrowser for help on using the repository browser.