source: patches/grep-2.5.1a-config_update-1.patch @ cab0b17

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

Patches Updates - Rename mips_config_update to config_update. Make them more Generic

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

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2004-11-24
    Initial Package Version: 2.5.1
    Origin: Gentoo
    Upstream Status: Already Fixed
    Description: Updates config.sub and config.guess
     
    diff -Naur grep-2.5.1.orig/config.guess grep-2.5.1/config.guess
    old new  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    4 #   Free Software Foundation, Inc.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    55
    6 timestamp='2001-08-21'
     6timestamp='2004-06-11'
    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
     
    2424# configuration script generated by Autoconf, you may include it under
    2525# the same distribution terms that you use for the rest of that program.
    2626
    27 # Written by Per Bothner <bothner@cygnus.com>.
    28 # Please send patches to <config-patches@gnu.org>.
     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.
    2930#
    3031# This script attempts to guess a canonical system name similar to
    3132# config.sub.  If it succeeds, it prints the system name on stdout, and
     
    8788  exit 1
    8889fi
    8990
     91trap 'exit 1' 1 2 15
    9092
    91 dummy=dummy-$$
    92 trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
     93# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
     94# compiler to aid in system detection is discouraged as it requires
     95# temporary files to be created and, as you can see below, it is a
     96# headache to deal with in a portable fashion.
    9397
    94 # CC_FOR_BUILD -- compiler used by this script.
    9598# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9699# use `HOST_CC' if defined, but it is deprecated.
    97100
    98 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
    99  ,,)    echo "int dummy(){}" > $dummy.c ;
    100         for c in cc gcc c89 ; do
    101           ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
    102           if test $? = 0 ; then
     101# Portable tmp directory creation inspired by the Autoconf team.
     102
     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" ;
     113case $CC_FOR_BUILD,$HOST_CC,$CC in
     114 ,,)    echo "int x;" > $dummy.c ;
     115        for c in cc gcc c89 c99 ; do
     116          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
    103117             CC_FOR_BUILD="$c"; break ;
    104118          fi ;
    105119        done ;
    106         rm -f $dummy.c $dummy.o $dummy.rel ;
    107120        if test x"$CC_FOR_BUILD" = x ; then
    108121          CC_FOR_BUILD=no_compiler_found ;
    109122        fi
    110123        ;;
    111124 ,,*)   CC_FOR_BUILD=$CC ;;
    112125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    113 esac'
     126esac ;'
    114127
    115128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    116129# (ghazi@noc.rutgers.edu 1994-08-24)
     
    127140
    128141case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    129142    *:NetBSD:*:*)
    130         # Netbsd (nbsd) targets should (where applicable) match one or
     143        # NetBSD (nbsd) targets should (where applicable) match one or
    131144        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
    132145        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
    133146        # switched to ELF, *-*-netbsd* would select the old
    134147        # object file format.  This provides both forward
    135148        # compatibility and a consistent mechanism for selecting the
    136149        # object file format.
    137         # Determine the machine/vendor (is the vendor relevant).
    138         case "${UNAME_MACHINE}" in
    139             amiga) machine=m68k-unknown ;;
    140             arm32) machine=arm-unknown ;;
    141             atari*) machine=m68k-atari ;;
    142             sun3*) machine=m68k-sun ;;
    143             mac68k) machine=m68k-apple ;;
    144             macppc) machine=powerpc-apple ;;
    145             hp3[0-9][05]) machine=m68k-hp ;;
    146             ibmrt|romp-ibm) machine=romp-ibm ;;
    147             *) machine=${UNAME_MACHINE}-unknown ;;
     150        #
     151        # Note: NetBSD doesn't particularly care about the vendor
     152        # portion of the name.  We always set it to "unknown".
     153        sysctl="sysctl -n hw.machine_arch"
     154        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
     155            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
     156        case "${UNAME_MACHINE_ARCH}" in
     157            armeb) machine=armeb-unknown ;;
     158            arm*) machine=arm-unknown ;;
     159            sh3el) machine=shl-unknown ;;
     160            sh3eb) machine=sh-unknown ;;
     161            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
    148162        esac
    149163        # The Operating System including object format, if it has switched
    150164        # to ELF recently, or will in the future.
    151         case "${UNAME_MACHINE}" in
    152             i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
     165        case "${UNAME_MACHINE_ARCH}" in
     166            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
    153167                eval $set_cc_for_build
    154168                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    155169                        | grep __ELF__ >/dev/null
     
    166180                ;;
    167181        esac
    168182        # The OS release
    169         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
    170195        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    171196        # contains redundant information, the shorter form:
    172197        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    173198        echo "${machine}-${os}${release}"
    174199        exit 0 ;;
     200    amd64:OpenBSD:*:*)
     201        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     202        exit 0 ;;
     203    amiga:OpenBSD:*:*)
     204        echo m68k-unknown-openbsd${UNAME_RELEASE}
     205        exit 0 ;;
     206    arc:OpenBSD:*:*)
     207        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     208        exit 0 ;;
     209    cats:OpenBSD:*:*)
     210        echo arm-unknown-openbsd${UNAME_RELEASE}
     211        exit 0 ;;
     212    hp300:OpenBSD:*:*)
     213        echo m68k-unknown-openbsd${UNAME_RELEASE}
     214        exit 0 ;;
     215    luna88k:OpenBSD:*:*)
     216        echo m88k-unknown-openbsd${UNAME_RELEASE}
     217        exit 0 ;;
     218    mac68k:OpenBSD:*:*)
     219        echo m68k-unknown-openbsd${UNAME_RELEASE}
     220        exit 0 ;;
     221    macppc:OpenBSD:*:*)
     222        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     223        exit 0 ;;
     224    mvme68k:OpenBSD:*:*)
     225        echo m68k-unknown-openbsd${UNAME_RELEASE}
     226        exit 0 ;;
     227    mvme88k:OpenBSD:*:*)
     228        echo m88k-unknown-openbsd${UNAME_RELEASE}
     229        exit 0 ;;
     230    mvmeppc:OpenBSD:*:*)
     231        echo powerpc-unknown-openbsd${UNAME_RELEASE}
     232        exit 0 ;;
     233    pmax:OpenBSD:*:*)
     234        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     235        exit 0 ;;
     236    sgi:OpenBSD:*:*)
     237        echo mipseb-unknown-openbsd${UNAME_RELEASE}
     238        exit 0 ;;
     239    sun3:OpenBSD:*:*)
     240        echo m68k-unknown-openbsd${UNAME_RELEASE}
     241        exit 0 ;;
     242    wgrisc:OpenBSD:*:*)
     243        echo mipsel-unknown-openbsd${UNAME_RELEASE}
     244        exit 0 ;;
     245    *:OpenBSD:*:*)
     246        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
     247        exit 0 ;;
     248    *:ekkoBSD:*:*)
     249        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     250        exit 0 ;;
     251    macppc:MirBSD:*:*)
     252        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
     253        exit 0 ;;
     254    *:MirBSD:*:*)
     255        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     256        exit 0 ;;
    175257    alpha:OSF1:*:*)
    176         if test $UNAME_RELEASE = "V4.0"; then
     258        case $UNAME_RELEASE in
     259        *4.0)
    177260                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    178         fi
     261                ;;
     262        *5.*)
     263                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     264                ;;
     265        esac
     266        # According to Compaq, /usr/sbin/psrinfo has been available on
     267        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     268        # covers most systems running today.  This code pipes the CPU
     269        # types through head -n 1, so we only detect the type of CPU 0.
     270        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     271        case "$ALPHA_CPU_TYPE" in
     272            "EV4 (21064)")
     273                UNAME_MACHINE="alpha" ;;
     274            "EV4.5 (21064)")
     275                UNAME_MACHINE="alpha" ;;
     276            "LCA4 (21066/21068)")
     277                UNAME_MACHINE="alpha" ;;
     278            "EV5 (21164)")
     279                UNAME_MACHINE="alphaev5" ;;
     280            "EV5.6 (21164A)")
     281                UNAME_MACHINE="alphaev56" ;;
     282            "EV5.6 (21164PC)")
     283                UNAME_MACHINE="alphapca56" ;;
     284            "EV5.7 (21164PC)")
     285                UNAME_MACHINE="alphapca57" ;;
     286            "EV6 (21264)")
     287                UNAME_MACHINE="alphaev6" ;;
     288            "EV6.7 (21264A)")
     289                UNAME_MACHINE="alphaev67" ;;
     290            "EV6.8CB (21264C)")
     291                UNAME_MACHINE="alphaev68" ;;
     292            "EV6.8AL (21264B)")
     293                UNAME_MACHINE="alphaev68" ;;
     294            "EV6.8CX (21264D)")
     295                UNAME_MACHINE="alphaev68" ;;
     296            "EV6.9A (21264/EV69A)")
     297                UNAME_MACHINE="alphaev69" ;;
     298            "EV7 (21364)")
     299                UNAME_MACHINE="alphaev7" ;;
     300            "EV7.9 (21364A)")
     301                UNAME_MACHINE="alphaev79" ;;
     302        esac
     303        # A Pn.n version is a patched version.
    179304        # A Vn.n version is a released version.
    180305        # A Tn.n version is a released field test version.
    181306        # A Xn.n version is an unreleased experimental baselevel.
    182307        # 1.2 uses "1.2" for uname -r.
    183         cat <<EOF >$dummy.s
    184         .data
    185 \$Lformat:
    186         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    187 
    188         .text
    189         .globl main
    190         .align 4
    191         .ent main
    192 main:
    193         .frame \$30,16,\$26,0
    194         ldgp \$29,0(\$27)
    195         .prologue 1
    196         .long 0x47e03d80 # implver \$0
    197         lda \$2,-1
    198         .long 0x47e20c21 # amask \$2,\$1
    199         lda \$16,\$Lformat
    200         mov \$0,\$17
    201         not \$1,\$18
    202         jsr \$26,printf
    203         ldgp \$29,0(\$26)
    204         mov 0,\$16
    205         jsr \$26,exit
    206         .end main
    207 EOF
    208         eval $set_cc_for_build
    209         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    210         if test "$?" = 0 ; then
    211                 case `./$dummy` in
    212                         0-0)
    213                                 UNAME_MACHINE="alpha"
    214                                 ;;
    215                         1-0)
    216                                 UNAME_MACHINE="alphaev5"
    217                                 ;;
    218                         1-1)
    219                                 UNAME_MACHINE="alphaev56"
    220                                 ;;
    221                         1-101)
    222                                 UNAME_MACHINE="alphapca56"
    223                                 ;;
    224                         2-303)
    225                                 UNAME_MACHINE="alphaev6"
    226                                 ;;
    227                         2-307)
    228                                 UNAME_MACHINE="alphaev67"
    229                                 ;;
    230                         2-1307)
    231                                 UNAME_MACHINE="alphaev68"
    232                                 ;;
    233                 esac
    234         fi
    235         rm -f $dummy.s $dummy
    236         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     308        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     309        exit 0 ;;
     310    Alpha*:OpenVMS:*:*)
     311        echo alpha-hp-vms
    237312        exit 0 ;;
    238313    Alpha\ *:Windows_NT*:*)
    239314        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    247322    Amiga*:UNIX_System_V:4.0:*)
    248323        echo m68k-unknown-sysv4
    249324        exit 0;;
    250     amiga:OpenBSD:*:*)
    251         echo m68k-unknown-openbsd${UNAME_RELEASE}
    252         exit 0 ;;
    253325    *:[Aa]miga[Oo][Ss]:*:*)
    254326        echo ${UNAME_MACHINE}-unknown-amigaos
    255327        exit 0 ;;
    256     arc64:OpenBSD:*:*)
    257         echo mips64el-unknown-openbsd${UNAME_RELEASE}
    258         exit 0 ;;
    259     arc:OpenBSD:*:*)
    260         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    261         exit 0 ;;
    262     hkmips:OpenBSD:*:*)
    263         echo mips-unknown-openbsd${UNAME_RELEASE}
    264         exit 0 ;;
    265     pmax:OpenBSD:*:*)
    266         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    267         exit 0 ;;
    268     sgi:OpenBSD:*:*)
    269         echo mips-unknown-openbsd${UNAME_RELEASE}
    270         exit 0 ;;
    271     wgrisc:OpenBSD:*:*)
    272         echo mipsel-unknown-openbsd${UNAME_RELEASE}
     328    *:[Mm]orph[Oo][Ss]:*:*)
     329        echo ${UNAME_MACHINE}-unknown-morphos
    273330        exit 0 ;;
    274331    *:OS/390:*:*)
    275332        echo i370-ibm-openedition
    276333        exit 0 ;;
     334    *:OS400:*:*)
     335        echo powerpc-ibm-os400
     336        exit 0 ;;
    277337    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    278338        echo arm-acorn-riscix${UNAME_RELEASE}
    279339        exit 0;;
     
    291351    NILE*:*:*:dcosx)
    292352        echo pyramid-pyramid-svr4
    293353        exit 0 ;;
     354    DRS?6000:unix:4.0:6*)
     355        echo sparc-icl-nx6
     356        exit 0 ;;
     357    DRS?6000:UNIX_SV:4.2*:7*)
     358        case `/usr/bin/uname -p` in
     359            sparc) echo sparc-icl-nx7 && exit 0 ;;
     360        esac ;;
    294361    sun4H:SunOS:5.*:*)
    295362        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    296363        exit 0 ;;
     
    319386        echo m68k-sun-sunos${UNAME_RELEASE}
    320387        exit 0 ;;
    321388    sun*:*:4.2BSD:*)
    322         UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     389        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    323390        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
    324391        case "`/bin/arch`" in
    325392            sun3)
     
    333400    aushp:SunOS:*:*)
    334401        echo sparc-auspex-sunos${UNAME_RELEASE}
    335402        exit 0 ;;
    336     sparc*:NetBSD:*)
    337         echo `uname -p`-unknown-netbsd${UNAME_RELEASE}
    338         exit 0 ;;
    339     atari*:OpenBSD:*:*)
    340         echo m68k-unknown-openbsd${UNAME_RELEASE}
    341         exit 0 ;;
    342403    # The situation for MiNT is a little confusing.  The machine name
    343404    # can be virtually everything (everything which is not
    344405    # "atarist" or "atariste" at least should have a processor
     
    365426    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    366427        echo m68k-unknown-mint${UNAME_RELEASE}
    367428        exit 0 ;;
    368     sun3*:OpenBSD:*:*)
    369         echo m68k-unknown-openbsd${UNAME_RELEASE}
    370         exit 0 ;;
    371     mac68k:OpenBSD:*:*)
    372         echo m68k-unknown-openbsd${UNAME_RELEASE}
    373         exit 0 ;;
    374     mvme68k:OpenBSD:*:*)
    375         echo m68k-unknown-openbsd${UNAME_RELEASE}
    376         exit 0 ;;
    377     mvme88k:OpenBSD:*:*)
    378         echo m88k-unknown-openbsd${UNAME_RELEASE}
     429    m68k:machten:*:*)
     430        echo m68k-apple-machten${UNAME_RELEASE}
    379431        exit 0 ;;
    380432    powerpc:machten:*:*)
    381433        echo powerpc-apple-machten${UNAME_RELEASE}
     
    393445        echo clipper-intergraph-clix${UNAME_RELEASE}
    394446        exit 0 ;;
    395447    mips:*:*:UMIPS | mips:*:*:RISCos)
     448        eval $set_cc_for_build
    396449        sed 's/^        //' << EOF >$dummy.c
    397450#ifdef __cplusplus
    398451#include <stdio.h>  /* for printf() prototype */
     
    414467          exit (-1);
    415468        }
    416469EOF
    417         eval $set_cc_for_build
    418         $CC_FOR_BUILD $dummy.c -o $dummy \
    419           && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    420           && rm -f $dummy.c $dummy && exit 0
    421         rm -f $dummy.c $dummy
     470        $CC_FOR_BUILD -o $dummy $dummy.c \
     471          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     472          && exit 0
    422473        echo mips-mips-riscos${UNAME_RELEASE}
    423474        exit 0 ;;
    424475    Motorola:PowerMAX_OS:*:*)
    425476        echo powerpc-motorola-powermax
    426477        exit 0 ;;
     478    Motorola:*:4.3:PL8-*)
     479        echo powerpc-harris-powermax
     480        exit 0 ;;
     481    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
     482        echo powerpc-harris-powermax
     483        exit 0 ;;
    427484    Night_Hawk:Power_UNIX:*:*)
    428485        echo powerpc-harris-powerunix
    429486        exit 0 ;;
     
    484541        exit 0 ;;
    485542    *:AIX:2:3)
    486543        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
     544                eval $set_cc_for_build
    487545                sed 's/^                //' << EOF >$dummy.c
    488546                #include <sys/systemcfg.h>
    489547
     
    495553                        exit(0);
    496554                        }
    497555EOF
    498                 eval $set_cc_for_build
    499                 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    500                 rm -f $dummy.c $dummy
     556                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    501557                echo rs6000-ibm-aix3.2.5
    502558        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    503559                echo rs6000-ibm-aix3.2.4
     
    506562        fi
    507563        exit 0 ;;
    508564    *:AIX:*:[45])
    509         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
     565        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    510566        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    511567                IBM_ARCH=rs6000
    512568        else
     
    546602            9000/31? )            HP_ARCH=m68000 ;;
    547603            9000/[34]?? )         HP_ARCH=m68k ;;
    548604            9000/[678][0-9][0-9])
    549               case "${HPUX_REV}" in
    550                 11.[0-9][0-9])
    551                   if [ -x /usr/bin/getconf ]; then
    552                     sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     605                if [ -x /usr/bin/getconf ]; then
     606                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    553607                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    554608                    case "${sc_cpu_version}" in
    555609                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     
    558612                        case "${sc_kernel_bits}" in
    559613                          32) HP_ARCH="hppa2.0n" ;;
    560614                          64) HP_ARCH="hppa2.0w" ;;
     615                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
    561616                        esac ;;
    562617                    esac
    563                   fi ;;
    564               esac
    565               if [ "${HP_ARCH}" = "" ]; then
    566               sed 's/^              //' << EOF >$dummy.c
     618                fi
     619                if [ "${HP_ARCH}" = "" ]; then
     620                    eval $set_cc_for_build
     621                    sed 's/^              //' << EOF >$dummy.c
    567622
    568623              #define _HPUX_SOURCE
    569624              #include <stdlib.h>
     
    596651                  exit (0);
    597652              }
    598653EOF
    599         eval $set_cc_for_build
    600         (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
    601         if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    602         rm -f $dummy.c $dummy
    603         fi ;;
     654                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     655                    test -z "$HP_ARCH" && HP_ARCH=hppa
     656                fi ;;
    604657        esac
     658        if [ ${HP_ARCH} = "hppa2.0w" ]
     659        then
     660            # avoid double evaluation of $set_cc_for_build
     661            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     662            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     663            then
     664                HP_ARCH="hppa2.0w"
     665            else
     666                HP_ARCH="hppa64"
     667            fi
     668        fi
    605669        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    606670        exit 0 ;;
    607671    ia64:HP-UX:*:*)
     
    609673        echo ia64-hp-hpux${HPUX_REV}
    610674        exit 0 ;;
    611675    3050*:HI-UX:*:*)
     676        eval $set_cc_for_build
    612677        sed 's/^        //' << EOF >$dummy.c
    613678        #include <unistd.h>
    614679        int
     
    634699          exit (0);
    635700        }
    636701EOF
    637         eval $set_cc_for_build
    638         $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    639         rm -f $dummy.c $dummy
     702        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    640703        echo unknown-hitachi-hiuxwe2
    641704        exit 0 ;;
    642705    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     
    664727    parisc*:Lites*:*:*)
    665728        echo hppa1.1-hp-lites
    666729        exit 0 ;;
    667     hppa*:OpenBSD:*:*)
    668         echo hppa-unknown-openbsd
    669         exit 0 ;;
    670730    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    671731        echo c1-convex-bsd
    672732        exit 0 ;;
     
    685745    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    686746        echo c4-convex-bsd
    687747        exit 0 ;;
    688     CRAY*X-MP:*:*:*)
    689         echo xmp-cray-unicos
    690         exit 0 ;;
    691748    CRAY*Y-MP:*:*:*)
    692749        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    693750        exit 0 ;;
     
    700757    CRAY*TS:*:*:*)
    701758        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    702759        exit 0 ;;
    703     CRAY*T3D:*:*:*)
    704         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    705         exit 0 ;;
    706760    CRAY*T3E:*:*:*)
    707761        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    708762        exit 0 ;;
    709763    CRAY*SV1:*:*:*)
    710764        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    711765        exit 0 ;;
    712     CRAY-2:*:*:*)
    713         echo cray2-cray-unicos
    714         exit 0 ;;
     766    *:UNICOS/mp:*:*)
     767        echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     768        exit 0 ;;
    715769    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    716770        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    717771        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    718772        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    719773        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    720774        exit 0 ;;
    721     hp300:OpenBSD:*:*)
    722         echo m68k-unknown-openbsd${UNAME_RELEASE}
     775    5000:UNIX_System_V:4.*:*)
     776        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     777        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     778        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    723779        exit 0 ;;
    724780    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    725781        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    731787        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    732788        exit 0 ;;
    733789    *:FreeBSD:*:*)
    734         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    735         exit 0 ;;
    736     *:OpenBSD:*:*)
    737         echo ${UNAME_MACHINE}-unknown-openbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     790        # Determine whether the default compiler uses glibc.
     791        eval $set_cc_for_build
     792        sed 's/^        //' << EOF >$dummy.c
     793        #include <features.h>
     794        #if __GLIBC__ >= 2
     795        LIBC=gnu
     796        #else
     797        LIBC=
     798        #endif
     799EOF
     800        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     801        # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
     802        # FreeBSD's kernel, but not the complete OS.
     803        case ${LIBC} in gnu) kernel_only='k' ;; esac
     804        echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
    738805        exit 0 ;;
    739806    i*:CYGWIN*:*)
    740807        echo ${UNAME_MACHINE}-pc-cygwin
     
    745812    i*:PW*:*)
    746813        echo ${UNAME_MACHINE}-pc-pw32
    747814        exit 0 ;;
     815    x86:Interix*:[34]*)
     816        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     817        exit 0 ;;
     818    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     819        echo i${UNAME_MACHINE}-pc-mks
     820        exit 0 ;;
    748821    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    749822        # How do we know it's Interix rather than the generic POSIX subsystem?
    750823        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    751824        # UNAME_MACHINE based on the output of uname instead of i386?
    752         echo i386-pc-interix
     825        echo i586-pc-interix
    753826        exit 0 ;;
    754827    i*:UWIN*:*)
    755828        echo ${UNAME_MACHINE}-pc-uwin
     
    761834        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    762835        exit 0 ;;
    763836    *:GNU:*:*)
     837        # the GNU system
    764838        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    765839        exit 0 ;;
     840    *:GNU/*:*:*)
     841        # other systems with GNU libc and userland
     842        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
     843        exit 0 ;;
    766844    i*86:Minix:*:*)
    767845        echo ${UNAME_MACHINE}-pc-minix
    768846        exit 0 ;;
    769847    arm*:Linux:*:*)
    770848        echo ${UNAME_MACHINE}-unknown-linux-gnu
    771849        exit 0 ;;
     850    cris:Linux:*:*)
     851        echo cris-axis-linux-gnu
     852        exit 0 ;;
    772853    ia64:Linux:*:*)
    773         echo ${UNAME_MACHINE}-unknown-linux
     854        echo ${UNAME_MACHINE}-unknown-linux-gnu
     855        exit 0 ;;
     856    m32r*:Linux:*:*)
     857        echo ${UNAME_MACHINE}-unknown-linux-gnu
    774858        exit 0 ;;
    775859    m68*:Linux:*:*)
    776860        echo ${UNAME_MACHINE}-unknown-linux-gnu
    777861        exit 0 ;;
    778862    mips:Linux:*:*)
    779         case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
    780           big)    echo mips-unknown-linux-gnu && exit 0 ;;
    781           little) echo mipsel-unknown-linux-gnu && exit 0 ;;
    782         esac
     863        eval $set_cc_for_build
     864        sed 's/^        //' << EOF >$dummy.c
     865        #undef CPU
     866        #undef mips
     867        #undef mipsel
     868        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     869        CPU=mipsel
     870        #else
     871        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     872        CPU=mips
     873        #else
     874        CPU=
     875        #endif
     876        #endif
     877EOF
     878        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     879        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
     880        ;;
     881    mips64:Linux:*:*)
     882        eval $set_cc_for_build
     883        sed 's/^        //' << EOF >$dummy.c
     884        #undef CPU
     885        #undef mips64
     886        #undef mips64el
     887        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     888        CPU=mips64el
     889        #else
     890        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     891        CPU=mips64
     892        #else
     893        CPU=
     894        #endif
     895        #endif
     896EOF
     897        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     898        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    783899        ;;
    784900    ppc:Linux:*:*)
    785901        echo powerpc-unknown-linux-gnu
     
    815931    s390:Linux:*:* | s390x:Linux:*:*)
    816932        echo ${UNAME_MACHINE}-ibm-linux
    817933        exit 0 ;;
     934    sh64*:Linux:*:*)
     935        echo ${UNAME_MACHINE}-unknown-linux-gnu
     936        exit 0 ;;
    818937    sh*:Linux:*:*)
    819938        echo ${UNAME_MACHINE}-unknown-linux-gnu
    820939        exit 0 ;;
     
    828947        # The BFD linker knows what the default object file format is, so
    829948        # first see if it will tell us. cd to the root directory to prevent
    830949        # problems with other programs or directories called `ld' in the path.
    831         ld_supported_targets=`cd /; ld --help 2>&1 \
     950        # Set LC_ALL=C to ensure ld outputs messages in English.
     951        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
    832952                         | sed -ne '/supported targets:/!d
    833953                                    s/[         ][      ]*/ /g
    834954                                    s/.*supported targets: *//
     
    840960                ;;
    841961          a.out-i386-linux)
    842962                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    843                 exit 0 ;;               
     963                exit 0 ;;
    844964          coff-i386)
    845965                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    846966                exit 0 ;;
     
    851971                exit 0 ;;
    852972        esac
    853973        # Determine whether the default compiler is a.out or elf
    854         cat >$dummy.c <<EOF
    855 #include <features.h>
    856 #ifdef __cplusplus
    857 #include <stdio.h>  /* for printf() prototype */
    858         int main (int argc, char *argv[]) {
    859 #else
    860         int main (argc, argv) int argc; char *argv[]; {
    861 #endif
    862 #ifdef __ELF__
    863 # ifdef __GLIBC__
    864 #  if __GLIBC__ >= 2
    865     printf ("%s-pc-linux-gnu\n", argv[1]);
    866 #  else
    867     printf ("%s-pc-linux-gnulibc1\n", argv[1]);
    868 #  endif
    869 # else
    870    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
    871 # endif
    872 #else
    873   printf ("%s-pc-linux-gnuaout\n", argv[1]);
    874 #endif
    875   return 0;
    876 }
    877 EOF
    878974        eval $set_cc_for_build
    879         $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
    880         rm -f $dummy.c $dummy
     975        sed 's/^        //' << EOF >$dummy.c
     976        #include <features.h>
     977        #ifdef __ELF__
     978        # ifdef __GLIBC__
     979        #  if __GLIBC__ >= 2
     980        LIBC=gnu
     981        #  else
     982        LIBC=gnulibc1
     983        #  endif
     984        # else
     985        LIBC=gnulibc1
     986        # endif
     987        #else
     988        #ifdef __INTEL_COMPILER
     989        LIBC=gnu
     990        #else
     991        LIBC=gnuaout
     992        #endif
     993        #endif
     994        #ifdef __dietlibc__
     995        LIBC=dietlibc
     996        #endif
     997EOF
     998        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
     999        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    8811000        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    8821001        ;;
    8831002    i*86:DYNIX/ptx:4*:*)
     
    8941013        # Use sysv4.2uw... so that sysv4* matches it.
    8951014        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    8961015        exit 0 ;;
     1016    i*86:OS/2:*:*)
     1017        # If we were able to find `uname', then EMX Unix compatibility
     1018        # is probably installed.
     1019        echo ${UNAME_MACHINE}-pc-os2-emx
     1020        exit 0 ;;
     1021    i*86:XTS-300:*:STOP)
     1022        echo ${UNAME_MACHINE}-unknown-stop
     1023        exit 0 ;;
     1024    i*86:atheos:*:*)
     1025        echo ${UNAME_MACHINE}-unknown-atheos
     1026        exit 0 ;;
     1027        i*86:syllable:*:*)
     1028        echo ${UNAME_MACHINE}-pc-syllable
     1029        exit 0 ;;
     1030    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1031        echo i386-unknown-lynxos${UNAME_RELEASE}
     1032        exit 0 ;;
     1033    i*86:*DOS:*:*)
     1034        echo ${UNAME_MACHINE}-pc-msdosdjgpp
     1035        exit 0 ;;
    8971036    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    8981037        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    8991038        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    9151054                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
    9161055                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    9171056        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    918                 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
    919                 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
    920                 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
     1057                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     1058                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
     1059                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
    9211060                        && UNAME_MACHINE=i586
    922                 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
     1061                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
    9231062                        && UNAME_MACHINE=i686
    924                 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
     1063                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    9251064                        && UNAME_MACHINE=i686
    9261065                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
    9271066        else
    9281067                echo ${UNAME_MACHINE}-pc-sysv32
    9291068        fi
    9301069        exit 0 ;;
    931     i*86:*DOS:*:*)
    932         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    933         exit 0 ;;
    9341070    pc:*:*:*)
    9351071        # Left here for compatibility:
    9361072        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     
    9541090        # "miniframe"
    9551091        echo m68010-convergent-sysv
    9561092        exit 0 ;;
    957     M68*:*:R3V[567]*:*)
     1093    mc68k:UNIX:SYSTEM5:3.51m)
     1094        echo m68k-convergent-sysv
     1095        exit 0 ;;
     1096    M680?0:D-NIX:5.3:*)
     1097        echo m68k-diab-dnix
     1098        exit 0 ;;
     1099    M68*:*:R3V[5678]*:*)
    9581100        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    959     3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
     1101    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)
    9601102        OS_REL=''
    9611103        test -r /etc/.relid \
    9621104        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     
    9731115    mc68030:UNIX_System_V:4.*:*)
    9741116        echo m68k-atari-sysv4
    9751117        exit 0 ;;
    976     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    977         echo i386-unknown-lynxos${UNAME_RELEASE}
    978         exit 0 ;;
    9791118    TSUNAMI:LynxOS:2.*:*)
    9801119        echo sparc-unknown-lynxos${UNAME_RELEASE}
    9811120        exit 0 ;;
     
    10471186    SX-5:SUPER-UX:*:*)
    10481187        echo sx5-nec-superux${UNAME_RELEASE}
    10491188        exit 0 ;;
     1189    SX-6:SUPER-UX:*:*)
     1190        echo sx6-nec-superux${UNAME_RELEASE}
     1191        exit 0 ;;
    10501192    Power*:Rhapsody:*:*)
    10511193        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    10521194        exit 0 ;;
     
    10541196        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    10551197        exit 0 ;;
    10561198    *:Darwin:*:*)
    1057         echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1199        case `uname -p` in
     1200            *86) UNAME_PROCESSOR=i686 ;;
     1201            powerpc) UNAME_PROCESSOR=powerpc ;;
     1202        esac
     1203        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    10581204        exit 0 ;;
    10591205    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    1060         if test "${UNAME_MACHINE}" = "x86pc"; then
     1206        UNAME_PROCESSOR=`uname -p`
     1207        if test "$UNAME_PROCESSOR" = "x86"; then
     1208                UNAME_PROCESSOR=i386
    10611209                UNAME_MACHINE=pc
    10621210        fi
    1063         echo `uname -p`-${UNAME_MACHINE}-nto-qnx
     1211        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    10641212        exit 0 ;;
    10651213    *:QNX:*:4*)
    10661214        echo i386-pc-qnx
    10671215        exit 0 ;;
    1068     NSR-[KW]:NONSTOP_KERNEL:*:*)
     1216    NSR-?:NONSTOP_KERNEL:*:*)
    10691217        echo nsr-tandem-nsk${UNAME_RELEASE}
    10701218        exit 0 ;;
    10711219    *:NonStop-UX:*:*)
     
    10881236        fi
    10891237        echo ${UNAME_MACHINE}-unknown-plan9
    10901238        exit 0 ;;
    1091     i*86:OS/2:*:*)
    1092         # If we were able to find `uname', then EMX Unix compatibility
    1093         # is probably installed.
    1094         echo ${UNAME_MACHINE}-pc-os2-emx
    1095         exit 0 ;;
    10961239    *:TOPS-10:*:*)
    10971240        echo pdp10-unknown-tops10
    10981241        exit 0 ;;
     
    11111254    *:ITS:*:*)
    11121255        echo pdp10-unknown-its
    11131256        exit 0 ;;
    1114     i*86:XTS-300:*:STOP)
    1115         echo ${UNAME_MACHINE}-unknown-stop
     1257    SEI:*:*:SEIUX)
     1258        echo mips-sei-seiux${UNAME_RELEASE}
     1259        exit 0 ;;
     1260    *:DragonFly:*:*)
     1261        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    11161262        exit 0 ;;
    11171263esac
    11181264
    11191265#echo '(No uname command or uname output not recognized.)' 1>&2
    11201266#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
    11211267
     1268eval $set_cc_for_build
    11221269cat >$dummy.c <<EOF
    11231270#ifdef _SEQUENT_
    11241271# include <sys/types.h>
     
    12331380}
    12341381EOF
    12351382
    1236 eval $set_cc_for_build
    1237 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
    1238 rm -f $dummy.c $dummy
     1383$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12391384
    12401385# Apollos put the system type in the environment.
    12411386
  • config.sub

    diff -Naur grep-2.5.1.orig/config.sub grep-2.5.1/config.sub
    old new  
    11#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    4 #   Free Software Foundation, Inc.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
    55
    6 timestamp='2001-08-13'
     6timestamp='2004-03-12'
    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
     
    2929# configuration script generated by Autoconf, you may include it under
    3030# the same distribution terms that you use for the rest of that program.
    3131
    32 # Please send patches to <config-patches@gnu.org>.
     32# Please send patches to <config-patches@gnu.org>.  Submit a context
     33# diff and a properly formatted ChangeLog entry.
    3334#
    3435# Configuration subroutine to validate and canonicalize a configuration type.
    3536# Supply the specified configuration type as an argument.
     
    117118# Here we must recognize all the valid KERNEL-OS combinations.
    118119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    119120case $maybe_os in
    120   nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
     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*)
    121123    os=-$maybe_os
    122124    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    123125    ;;
     
    226228        1750a | 580 \
    227229        | a29k \
    228230        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     231        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     232        | am33_2.0 \
    229233        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
    230234        | c4x | clipper \
    231         | d10v | d30v | dsp16xx \
    232         | fr30 \
     235        | d10v | d30v | dlx | dsp16xx \
     236        | fr30 | frv \
    233237        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    234238        | i370 | i860 | i960 | ia64 \
    235         | m32r | m68000 | m68k | m88k | mcore \
    236         | mips16 | mips64 | mips64el | mips64orion | mips64orionel \
    237         | mips64vr4100 | mips64vr4100el | mips64vr4300 \
    238         | mips64vr4300el | mips64vr5000 | mips64vr5000el \
    239         | mipsbe | mipsel | mipsle | mipstx39 | mipstx39el \
     239        | ip2k | iq2000 \
     240        | m32r | m32rle | m68000 | m68k | m88k | mcore \
     241        | mips | mipsbe | mipseb | mipsel | mipsle \
     242        | mips16 \
     243        | mips64 | mips64el \
     244        | mips64vr | mips64vrel \
     245        | mips64orion | mips64orionel \
     246        | mips64vr4100 | mips64vr4100el \
     247        | mips64vr4300 | mips64vr4300el \
     248        | mips64vr5000 | mips64vr5000el \
     249        | mipsisa32 | mipsisa32el \
     250        | mipsisa32r2 | mipsisa32r2el \
     251        | mipsisa64 | mipsisa64el \
     252        | mipsisa64r2 | mipsisa64r2el \
     253        | mipsisa64sb1 | mipsisa64sb1el \
     254        | mipsisa64sr71k | mipsisa64sr71kel \
     255        | mipstx39 | mipstx39el \
    240256        | mn10200 | mn10300 \
     257        | msp430 \
    241258        | ns16k | ns32k \
    242         | openrisc \
     259        | openrisc | or32 \
    243260        | pdp10 | pdp11 | pj | pjl \
    244261        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
    245262        | pyramid \
    246         | s390 | s390x \
    247         | sh | sh[34] | sh[34]eb | shbe | shle \
    248         | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
     263        | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
     264        | sh64 | sh64le \
     265        | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
    249266        | strongarm \
    250         | tahoe | thumb | tic80 | tron \
    251         | v850 \
     267        | tahoe | thumb | tic4x | tic80 | tron \
     268        | v850 | v850e \
    252269        | we32k \
    253         | x86 | xscale \
     270        | x86 | xscale | xstormy16 | xtensa \
    254271        | z8k)
    255272                basic_machine=$basic_machine-unknown
    256273                ;;
     
    277294        580-* \
    278295        | a29k-* \
    279296        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
    280         | alphapca5[67]-* | arc-* \
    281         | arm-*  | armbe-* | armle-* | armv*-* \
     297        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
     298        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
     299        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
     300        | avr-* \
    282301        | bs2000-* \
    283         | c[123]* | c30-* | [cjt]90-* | c54x-* \
    284         | clipper-* | cray2-* | cydra-* \
    285         | d10v-* | d30v-* \
     302        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
     303        | clipper-* | cydra-* \
     304        | d10v-* | d30v-* | dlx-* \
    286305        | elxsi-* \
    287         | f30[01]-* | f700-* | fr30-* | fx80-* \
     306        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
    288307        | h8300-* | h8500-* \
    289308        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    290309        | i*86-* | i860-* | i960-* | ia64-* \
    291         | m32r-* \
    292         | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
     310        | ip2k-* | iq2000-* \
     311        | m32r-* | m32rle-* \
     312        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
    293313        | m88110-* | m88k-* | mcore-* \
    294         | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
    295         | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
    296         | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipsel-* \
    297         | mipsle-* | mipstx39-* | mipstx39el-* \
    298         | none-* | np1-* | ns16k-* | ns32k-* \
     314        | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
     315        | mips16-* \
     316        | mips64-* | mips64el-* \
     317        | mips64vr-* | mips64vrel-* \
     318        | mips64orion-* | mips64orionel-* \
     319        | mips64vr4100-* | mips64vr4100el-* \
     320        | mips64vr4300-* | mips64vr4300el-* \
     321        | mips64vr5000-* | mips64vr5000el-* \
     322        | mipsisa32-* | mipsisa32el-* \
     323        | mipsisa32r2-* | mipsisa32r2el-* \
     324        | mipsisa64-* | mipsisa64el-* \
     325        | mipsisa64r2-* | mipsisa64r2el-* \
     326        | mipsisa64sb1-* | mipsisa64sb1el-* \
     327        | mipsisa64sr71k-* | mipsisa64sr71kel-* \
     328        | mipstx39-* | mipstx39el-* \
     329        | msp430-* \
     330        | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
    299331        | orion-* \
    300332        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    301333        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
    302334        | pyramid-* \
    303335        | romp-* | rs6000-* \
    304         | s390-* | s390x-* \
    305         | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
    306         | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
    307         | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* \
    308         | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
    309         | v850-* | vax-* \
     336        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
     337        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     338        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
     339        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     340        | tahoe-* | thumb-* \
     341        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     342        | tron-* \
     343        | v850-* | v850e-* | vax-* \
    310344        | we32k-* \
    311         | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
     345        | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
     346        | xtensa-* \
    312347        | ymp-* \
    313348        | z8k-*)
    314349                ;;
     
    328363                basic_machine=a29k-amd
    329364                os=-udi
    330365                ;;
     366        abacus)
     367                basic_machine=abacus-unknown
     368                ;;
    331369        adobe68k)
    332370                basic_machine=m68010-adobe
    333371                os=-scout
     
    342380                basic_machine=a29k-none
    343381                os=-bsd
    344382                ;;
     383        amd64)
     384                basic_machine=x86_64-pc
     385                ;;
     386        amd64-*)
     387                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     388                ;;
    345389        amdahl)
    346390                basic_machine=580-amdahl
    347391                os=-sysv
     
    373417                basic_machine=ns32k-sequent
    374418                os=-dynix
    375419                ;;
     420        c90)
     421                basic_machine=c90-cray
     422                os=-unicos
     423                ;;
    376424        convex-c1)
    377425                basic_machine=c1-convex
    378426                os=-bsd
     
    393441                basic_machine=c38-convex
    394442                os=-bsd
    395443                ;;
    396         cray | ymp)
    397                 basic_machine=ymp-cray
    398                 os=-unicos
    399                 ;;
    400         cray2)
    401                 basic_machine=cray2-cray
     444        cray | j90)
     445                basic_machine=j90-cray
    402446                os=-unicos
    403447                ;;
    404         [cjt]90)
    405                 basic_machine=${basic_machine}-cray
    406                 os=-unicos
     448        cr16c)
     449                basic_machine=cr16c-unknown
     450                os=-elf
    407451                ;;
    408452        crds | unos)
    409453                basic_machine=m68k-crds
     
    411455        cris | cris-* | etrax*)
    412456                basic_machine=cris-axis
    413457                ;;
     458        crx)
     459                basic_machine=crx-unknown
     460                os=-elf
     461                ;;
    414462        da30 | da30-*)
    415463                basic_machine=m68k-da30
    416464                ;;
    417465        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    418466                basic_machine=mips-dec
    419467                ;;
     468        decsystem10* | dec10*)
     469                basic_machine=pdp10-dec
     470                os=-tops10
     471                ;;
     472        decsystem20* | dec20*)
     473                basic_machine=pdp10-dec
     474                os=-tops20
     475                ;;
    420476        delta | 3300 | motorola-3300 | motorola-delta \
    421477              | 3300-motorola | delta-motorola)
    422478                basic_machine=m68k-motorola
     
    597653                basic_machine=m68k-atari
    598654                os=-mint
    599655                ;;
    600         mipsel*-linux*)
    601                 basic_machine=mipsel-unknown
    602                 os=-linux-gnu
    603                 ;;
    604         mips*-linux*)
    605                 basic_machine=mips-unknown
    606                 os=-linux-gnu
    607                 ;;
    608656        mips3*-*)
    609657                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
    610658                ;;
     
    619667                basic_machine=m68k-rom68k
    620668                os=-coff
    621669                ;;
     670        morphos)
     671                basic_machine=powerpc-unknown
     672                os=-morphos
     673                ;;
    622674        msdos)
    623675                basic_machine=i386-pc
    624676                os=-msdos
     
    691743        np1)
    692744                basic_machine=np1-gould
    693745                ;;
     746        nv1)
     747                basic_machine=nv1-cray
     748                os=-unicosmp
     749                ;;
    694750        nsr-tandem)
    695751                basic_machine=nsr-tandem
    696752                ;;
     
    698754                basic_machine=hppa1.1-oki
    699755                os=-proelf
    700756                ;;
     757        or32 | or32-*)
     758                basic_machine=or32-unknown
     759                os=-coff
     760                ;;
     761        os400)
     762                basic_machine=powerpc-ibm
     763                os=-os400
     764                ;;
    701765        OSE68000 | ose68000)
    702766                basic_machine=m68000-ericsson
    703767                os=-ose
     
    720784        pbb)
    721785                basic_machine=m68k-tti
    722786                ;;
    723         pc532 | pc532-*)
     787        pc532 | pc532-*)
    724788                basic_machine=ns32k-pc532
    725789                ;;
    726         pentium | p5 | k5 | k6 | nexgen)
     790        pentium | p5 | k5 | k6 | nexgen | viac3)
    727791                basic_machine=i586-pc
    728792                ;;
    729         pentiumpro | p6 | 6x86 | athlon)
     793        pentiumpro | p6 | 6x86 | athlon | athlon_*)
    730794                basic_machine=i686-pc
    731795                ;;
    732         pentiumii | pentium2)
     796        pentiumii | pentium2 | pentiumiii | pentium3)
    733797                basic_machine=i686-pc
    734798                ;;
    735         pentium-* | p5-* | k5-* | k6-* | nexgen-*)
     799        pentium4)
     800                basic_machine=i786-pc
     801                ;;
     802        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
    736803                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    737804                ;;
    738805        pentiumpro-* | p6-* | 6x86-* | athlon-*)
    739806                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    740807                ;;
    741         pentiumii-* | pentium2-*)
     808        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
    742809                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    743810                ;;
     811        pentium4-*)
     812                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     813                ;;
    744814        pn)
    745815                basic_machine=pn-gould
    746816                ;;
    747817        power)  basic_machine=power-ibm
    748818                ;;
    749819        ppc)    basic_machine=powerpc-unknown
    750                 ;;
     820                ;;
    751821        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    752822                ;;
    753823        ppcle | powerpclittle | ppc-le | powerpc-little)
    754824                basic_machine=powerpcle-unknown
    755                 ;;
     825                ;;
    756826        ppcle-* | powerpclittle-*)
    757827                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    758828                ;;
    759829        ppc64)  basic_machine=powerpc64-unknown
    760                 ;;
     830                ;;
    761831        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
    762832                ;;
    763833        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
    764834                basic_machine=powerpc64le-unknown
    765                 ;;
     835                ;;
    766836        ppc64le-* | powerpc64little-*)
    767837                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
    768838                ;;
     
    783853        rtpc | rtpc-*)
    784854                basic_machine=romp-ibm
    785855                ;;
     856        s390 | s390-*)
     857                basic_machine=s390-ibm
     858                ;;
     859        s390x | s390x-*)
     860                basic_machine=s390x-ibm
     861                ;;
    786862        sa29200)
    787863                basic_machine=a29k-amd
    788864                os=-udi
    789865                ;;
     866        sb1)
     867                basic_machine=mipsisa64sb1-unknown
     868                ;;
     869        sb1el)
     870                basic_machine=mipsisa64sb1el-unknown
     871                ;;
     872        sei)
     873                basic_machine=mips-sei
     874                os=-seiux
     875                ;;
    790876        sequent)
    791877                basic_machine=i386-sequent
    792878                ;;
     
    794880                basic_machine=sh-hitachi
    795881                os=-hms
    796882                ;;
    797         sparclite-wrs)
     883        sh64)
     884                basic_machine=sh64-unknown
     885                ;;
     886        sparclite-wrs | simso-wrs)
    798887                basic_machine=sparclite-wrs
    799888                os=-vxworks
    800889                ;;
     
    861950                os=-dynix
    862951                ;;
    863952        t3e)
    864                 basic_machine=t3e-cray
     953                basic_machine=alphaev5-cray
     954                os=-unicos
     955                ;;
     956        t90)
     957                basic_machine=t90-cray
    865958                os=-unicos
    866959                ;;
    867960        tic54x | c54x*)
    868961                basic_machine=tic54x-unknown
    869962                os=-coff
    870963                ;;
     964        tic55x | c55x*)
     965                basic_machine=tic55x-unknown
     966                os=-coff
     967                ;;
     968        tic6x | c6x*)
     969                basic_machine=tic6x-unknown
     970                os=-coff
     971                ;;
    871972        tx39)
    872973                basic_machine=mipstx39-unknown
    873974                ;;
    874975        tx39el)
    875976                basic_machine=mipstx39el-unknown
    876977                ;;
     978        toad1)
     979                basic_machine=pdp10-xkl
     980                os=-tops20
     981                ;;
    877982        tower | tower-32)
    878983                basic_machine=m68k-ncr
    879984                ;;
     985        tpf)
     986                basic_machine=s390x-ibm
     987                os=-tpf
     988                ;;
    880989        udi29k)
    881990                basic_machine=a29k-amd
    882991                os=-udi
     
    8981007                os=-vms
    8991008                ;;
    9001009        vpp*|vx|vx-*)
    901                basic_machine=f301-fujitsu
    902                ;;
     1010                basic_machine=f301-fujitsu
     1011                ;;
    9031012        vxworks960)
    9041013                basic_machine=i960-wrs
    9051014                os=-vxworks
     
    9201029                basic_machine=hppa1.1-winbond
    9211030                os=-proelf
    9221031                ;;
    923         windows32)
    924                 basic_machine=i386-pc
    925                 os=-windows32-msvcrt
     1032        xps | xps100)
     1033                basic_machine=xps100-honeywell
    9261034                ;;
    927         xmp)
    928                 basic_machine=xmp-cray
     1035        ymp)
     1036                basic_machine=ymp-cray
    9291037                os=-unicos
    9301038                ;;
    931         xps | xps100)
    932                 basic_machine=xps100-honeywell
    933                 ;;
    9341039        z8k-*-coff)
    9351040                basic_machine=z8k-unknown
    9361041                os=-sim
     
    9511056        op60c)
    9521057                basic_machine=hppa1.1-oki
    9531058                ;;
    954         mips)
    955                 if [ x$os = x-linux-gnu ]; then
    956                         basic_machine=mips-unknown
    957                 else
    958                         basic_machine=mips-mips
    959                 fi
    960                 ;;
    9611059        romp)
    9621060                basic_machine=romp-ibm
    9631061                ;;
     
    9771075        we32k)
    9781076                basic_machine=we32k-att
    9791077                ;;
    980         sh3 | sh4 | sh3eb | sh4eb)
     1078        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
    9811079                basic_machine=sh-unknown
    9821080                ;;
    983         sparc | sparcv9 | sparcv9b)
     1081        sh64)
     1082                basic_machine=sh64-unknown
     1083                ;;
     1084        sparc | sparcv8 | sparcv9 | sparcv9b)
    9841085                basic_machine=sparc-sun
    9851086                ;;
    986         cydra)
     1087        cydra)
    9871088                basic_machine=cydra-cydrome
    9881089                ;;
    9891090        orion)
     
    9981099        pmac | pmac-mpw)
    9991100                basic_machine=powerpc-apple
    10001101                ;;
    1001         c4x*)
    1002                 basic_machine=c4x-none
    1003                 os=-coff
    1004                 ;;
    10051102        *-unknown)
    10061103                # Make sure to match an already-canonicalized machine name.
    10071104                ;;
     
    10571154              | -aos* \
    10581155              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    10591156              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1060               | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    1061               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
     1157              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1158              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1159              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    10621160              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    10631161              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    10641162              | -chorusos* | -chorusrdb* \
    10651163              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    1066               | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
    1067               | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1164              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1165              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
    10681166              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    10691167              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    1070               | -os2* | -vos*)
     1168              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
     1169              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1170              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
    10711171        # Remember, each alternative MUST END IN *, to match a version number.
    10721172                ;;
    10731173        -qnx*)
     
    10791179                        ;;
    10801180                esac
    10811181                ;;
     1182        -nto-qnx*)
     1183                ;;
    10821184        -nto*)
    1083                 os=-nto-qnx
     1185                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    10841186                ;;
    10851187        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    10861188              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     
    10891191        -mac*)
    10901192                os=`echo $os | sed -e 's|mac|macos|'`
    10911193                ;;
     1194        -linux-dietlibc)
     1195                os=-linux-dietlibc
     1196                ;;
    10921197        -linux*)
    10931198                os=`echo $os | sed -e 's|linux|linux-gnu|'`
    10941199                ;;
     
    11011206        -opened*)
    11021207                os=-openedition
    11031208                ;;
     1209        -os400*)
     1210                os=-os400
     1211                ;;
    11041212        -wince*)
    11051213                os=-wince
    11061214                ;;
     
    11191227        -acis*)
    11201228                os=-aos
    11211229                ;;
     1230        -atheos*)
     1231                os=-atheos
     1232                ;;
     1233        -syllable*)
     1234                os=-syllable
     1235                ;;
    11221236        -386bsd)
    11231237                os=-bsd
    11241238                ;;
    11251239        -ctix* | -uts*)
    11261240                os=-sysv
    11271241                ;;
     1242        -nova*)
     1243                os=-rtmk-nova
     1244                ;;
    11281245        -ns2 )
    1129                 os=-nextstep2
     1246                os=-nextstep2
    11301247                ;;
    11311248        -nsk*)
    11321249                os=-nsk
     
    11381255        -sinix*)
    11391256                os=-sysv4
    11401257                ;;
     1258        -tpf*)
     1259                os=-tpf
     1260                ;;
    11411261        -triton*)
    11421262                os=-sysv3
    11431263                ;;
     
    11651285        -xenix)
    11661286                os=-xenix
    11671287                ;;
    1168         -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    1169                 os=-mint
     1288        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1289                os=-mint
     1290                ;;
     1291        -aros*)
     1292                os=-aros
     1293                ;;
     1294        -kaos*)
     1295                os=-kaos
    11701296                ;;
    11711297        -none)
    11721298                ;;
     
    11991325        arm*-semi)
    12001326                os=-aout
    12011327                ;;
     1328    c4x-* | tic4x-*)
     1329        os=-coff
     1330        ;;
     1331        # This must come before the *-dec entry.
    12021332        pdp10-*)
    12031333                os=-tops20
    12041334                ;;
    1205         pdp11-*)
     1335        pdp11-*)
    12061336                os=-none
    12071337                ;;
    12081338        *-dec | vax-*)
     
    12291359        mips*-*)
    12301360                os=-elf
    12311361                ;;
     1362        or32-*)
     1363                os=-coff
     1364                ;;
    12321365        *-tti)  # must be before sparc entry or we get the wrong os.
    12331366                os=-sysv3
    12341367                ;;
     
    12921425        *-next)
    12931426                os=-nextstep3
    12941427                ;;
    1295         *-gould)
     1428        *-gould)
    12961429                os=-sysv
    12971430                ;;
    1298         *-highlevel)
     1431        *-highlevel)
    12991432                os=-bsd
    13001433                ;;
    13011434        *-encore)
    13021435                os=-bsd
    13031436                ;;
    1304         *-sgi)
     1437        *-sgi)
    13051438                os=-irix
    13061439                ;;
    1307         *-siemens)
     1440        *-siemens)
    13081441                os=-sysv4
    13091442                ;;
    13101443        *-masscomp)
     
    13731506                        -mvs* | -opened*)
    13741507                                vendor=ibm
    13751508                                ;;
     1509                        -os400*)
     1510                                vendor=ibm
     1511                                ;;
    13761512                        -ptx*)
    13771513                                vendor=sequent
    13781514                                ;;
    1379                         -vxsim* | -vxworks*)
     1515                        -tpf*)
     1516                                vendor=ibm
     1517                                ;;
     1518                        -vxsim* | -vxworks* | -windiss*)
    13801519                                vendor=wrs
    13811520                                ;;
    13821521                        -aux*)
Note: See TracBrowser for help on using the repository browser.