source: patches/expect-5.43.0-config_update-1.patch @ bb6d7f8

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since bb6d7f8 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: 50.4 KB
  • config.guess

    Submitted By: Jim Gifford (patches at jg555 dot com)
    Date: 2005-12-26
    Initial Package Version: 5.4.3
    Origin: Jim Gifford
    Upstream Status: Unknown
    Description: Updates config.sub and config.guess
     
    diff -Naur expect-5.43.orig/config.guess expect-5.43/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-03-04'
     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
     
    8888  exit 1
    8989fi
    9090
     91trap 'exit 1' 1 2 15
    9192
    92 dummy=dummy-$$
    93 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.
    9497
    95 # CC_FOR_BUILD -- compiler used by this script.
    9698# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9799# use `HOST_CC' if defined, but it is deprecated.
    98100
    99 set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
    100  ,,)    echo "int dummy(){}" > $dummy.c ;
    101         for c in cc gcc c89 ; do
    102           ($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
    103           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
    104117             CC_FOR_BUILD="$c"; break ;
    105118          fi ;
    106119        done ;
    107         rm -f $dummy.c $dummy.o $dummy.rel ;
    108120        if test x"$CC_FOR_BUILD" = x ; then
    109121          CC_FOR_BUILD=no_compiler_found ;
    110122        fi
    111123        ;;
    112124 ,,*)   CC_FOR_BUILD=$CC ;;
    113125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    114 esac'
     126esac ;'
    115127
    116128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    117129# (ghazi@noc.rutgers.edu 1994-08-24)
     
    142154        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
    143155            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
    144156        case "${UNAME_MACHINE_ARCH}" in
     157            armeb) machine=armeb-unknown ;;
    145158            arm*) machine=arm-unknown ;;
    146159            sh3el) machine=shl-unknown ;;
    147160            sh3eb) machine=sh-unknown ;;
     
    167180                ;;
    168181        esac
    169182        # The OS release
    170         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
    171195        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    172196        # contains redundant information, the shorter form:
    173197        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    174198        echo "${machine}-${os}${release}"
    175199        exit 0 ;;
     200    amd64:OpenBSD:*:*)
     201        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     202        exit 0 ;;
    176203    amiga:OpenBSD:*:*)
    177204        echo m68k-unknown-openbsd${UNAME_RELEASE}
    178205        exit 0 ;;
    179     arc:OpenBSD:*:*)
    180         echo mipsel-unknown-openbsd${UNAME_RELEASE}
     206    cats:OpenBSD:*:*)
     207        echo arm-unknown-openbsd${UNAME_RELEASE}
    181208        exit 0 ;;
    182209    hp300:OpenBSD:*:*)
    183210        echo m68k-unknown-openbsd${UNAME_RELEASE}
    184211        exit 0 ;;
     212    luna88k:OpenBSD:*:*)
     213        echo m88k-unknown-openbsd${UNAME_RELEASE}
     214        exit 0 ;;
    185215    mac68k:OpenBSD:*:*)
    186216        echo m68k-unknown-openbsd${UNAME_RELEASE}
    187217        exit 0 ;;
     
    197227    mvmeppc:OpenBSD:*:*)
    198228        echo powerpc-unknown-openbsd${UNAME_RELEASE}
    199229        exit 0 ;;
    200     pmax:OpenBSD:*:*)
    201         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    202         exit 0 ;;
    203230    sgi:OpenBSD:*:*)
    204         echo mipseb-unknown-openbsd${UNAME_RELEASE}
     231        echo mips64-unknown-openbsd${UNAME_RELEASE}
    205232        exit 0 ;;
    206233    sun3:OpenBSD:*:*)
    207234        echo m68k-unknown-openbsd${UNAME_RELEASE}
    208235        exit 0 ;;
    209     wgrisc:OpenBSD:*:*)
    210         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    211         exit 0 ;;
    212236    *:OpenBSD:*:*)
    213237        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    214238        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 ;;
    215248    alpha:OSF1:*:*)
    216         if test $UNAME_RELEASE = "V4.0"; then
     249        case $UNAME_RELEASE in
     250        *4.0)
    217251                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    218         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.
    219295        # A Vn.n version is a released version.
    220296        # A Tn.n version is a released field test version.
    221297        # A Xn.n version is an unreleased experimental baselevel.
    222298        # 1.2 uses "1.2" for uname -r.
    223         cat <<EOF >$dummy.s
    224         .data
    225 \$Lformat:
    226         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    227 
    228         .text
    229         .globl main
    230         .align 4
    231         .ent main
    232 main:
    233         .frame \$30,16,\$26,0
    234         ldgp \$29,0(\$27)
    235         .prologue 1
    236         .long 0x47e03d80 # implver \$0
    237         lda \$2,-1
    238         .long 0x47e20c21 # amask \$2,\$1
    239         lda \$16,\$Lformat
    240         mov \$0,\$17
    241         not \$1,\$18
    242         jsr \$26,printf
    243         ldgp \$29,0(\$26)
    244         mov 0,\$16
    245         jsr \$26,exit
    246         .end main
    247 EOF
    248         eval $set_cc_for_build
    249         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    250         if test "$?" = 0 ; then
    251                 case `./$dummy` in
    252                         0-0)
    253                                 UNAME_MACHINE="alpha"
    254                                 ;;
    255                         1-0)
    256                                 UNAME_MACHINE="alphaev5"
    257                                 ;;
    258                         1-1)
    259                                 UNAME_MACHINE="alphaev56"
    260                                 ;;
    261                         1-101)
    262                                 UNAME_MACHINE="alphapca56"
    263                                 ;;
    264                         2-303)
    265                                 UNAME_MACHINE="alphaev6"
    266                                 ;;
    267                         2-307)
    268                                 UNAME_MACHINE="alphaev67"
    269                                 ;;
    270                         2-1307)
    271                                 UNAME_MACHINE="alphaev68"
    272                                 ;;
    273                 esac
    274         fi
    275         rm -f $dummy.s $dummy
    276         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'`
    277300        exit 0 ;;
    278301    Alpha\ *:Windows_NT*:*)
    279302        # How do we know it's Interix rather than the generic POSIX subsystem?
     
    296319    *:OS/390:*:*)
    297320        echo i370-ibm-openedition
    298321        exit 0 ;;
     322    *:z/VM:*:*)
     323        echo s390-ibm-zvmoe
     324        exit 0 ;;
     325    *:OS400:*:*)
     326        echo powerpc-ibm-os400
     327        exit 0 ;;
    299328    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    300329        echo arm-acorn-riscix${UNAME_RELEASE}
    301330        exit 0;;
     
    313342    NILE*:*:*:dcosx)
    314343        echo pyramid-pyramid-svr4
    315344        exit 0 ;;
     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*)
     349        case `/usr/bin/uname -p` in
     350            sparc) echo sparc-icl-nx7 && exit 0 ;;
     351        esac ;;
    316352    sun4H:SunOS:5.*:*)
    317353        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    318354        exit 0 ;;
     
    381417    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    382418        echo m68k-unknown-mint${UNAME_RELEASE}
    383419        exit 0 ;;
     420    m68k:machten:*:*)
     421        echo m68k-apple-machten${UNAME_RELEASE}
     422        exit 0 ;;
    384423    powerpc:machten:*:*)
    385424        echo powerpc-apple-machten${UNAME_RELEASE}
    386425        exit 0 ;;
     
    419458          exit (-1);
    420459        }
    421460EOF
    422         $CC_FOR_BUILD $dummy.c -o $dummy \
    423           && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    424           && rm -f $dummy.c $dummy && exit 0
    425         rm -f $dummy.c $dummy
     461        $CC_FOR_BUILD -o $dummy $dummy.c \
     462          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
     463          && exit 0
    426464        echo mips-mips-riscos${UNAME_RELEASE}
    427465        exit 0 ;;
    428466    Motorola:PowerMAX_OS:*:*)
    429467        echo powerpc-motorola-powermax
    430468        exit 0 ;;
     469    Motorola:*:4.3:PL8-*)
     470        echo powerpc-harris-powermax
     471        exit 0 ;;
     472    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
     473        echo powerpc-harris-powermax
     474        exit 0 ;;
    431475    Night_Hawk:Power_UNIX:*:*)
    432476        echo powerpc-harris-powerunix
    433477        exit 0 ;;
     
    500544                        exit(0);
    501545                        }
    502546EOF
    503                 $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    504                 rm -f $dummy.c $dummy
     547                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    505548                echo rs6000-ibm-aix3.2.5
    506549        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    507550                echo rs6000-ibm-aix3.2.4
     
    599642                  exit (0);
    600643              }
    601644EOF
    602                     (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
    603                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    604                     rm -f $dummy.c $dummy
     645                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     646                    test -z "$HP_ARCH" && HP_ARCH=hppa
    605647                fi ;;
    606648        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
    607660        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    608661        exit 0 ;;
    609662    ia64:HP-UX:*:*)
     
    637690          exit (0);
    638691        }
    639692EOF
    640         $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    641         rm -f $dummy.c $dummy
     693        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    642694        echo unknown-hitachi-hiuxwe2
    643695        exit 0 ;;
    644696    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     
    696748    CRAY*TS:*:*:*)
    697749        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    698750        exit 0 ;;
    699     CRAY*T3D:*:*:*)
    700         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    701         exit 0 ;;
    702751    CRAY*T3E:*:*:*)
    703752        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    704753        exit 0 ;;
    705754    CRAY*SV1:*:*:*)
    706755        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    707756        exit 0 ;;
     757    *:UNICOS/mp:*:*)
     758        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     759        exit 0 ;;
    708760    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    709761        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    710762        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    711763        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    712764        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    713765        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 ;;
    714771    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    715772        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    716773        exit 0 ;;
     
    732789    i*:PW*:*)
    733790        echo ${UNAME_MACHINE}-pc-pw32
    734791        exit 0 ;;
    735     x86:Interix*:3*)
    736         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
    737797        exit 0 ;;
    738798    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    739799        # How do we know it's Interix rather than the generic POSIX subsystem?
    740800        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    741801        # UNAME_MACHINE based on the output of uname instead of i386?
    742         echo i386-pc-interix
     802        echo i586-pc-interix
    743803        exit 0 ;;
    744804    i*:UWIN*:*)
    745805        echo ${UNAME_MACHINE}-pc-uwin
     
    751811        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    752812        exit 0 ;;
    753813    *:GNU:*:*)
     814        # the GNU system
    754815        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    755816        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 ;;
    756821    i*86:Minix:*:*)
    757822        echo ${UNAME_MACHINE}-pc-minix
    758823        exit 0 ;;
    759824    arm*:Linux:*:*)
    760825        echo ${UNAME_MACHINE}-unknown-linux-gnu
    761826        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 ;;
    762836    ia64:Linux:*:*)
    763         echo ${UNAME_MACHINE}-unknown-linux
     837        echo ${UNAME_MACHINE}-unknown-linux-gnu
     838        exit 0 ;;
     839    m32r*:Linux:*:*)
     840        echo ${UNAME_MACHINE}-unknown-linux-gnu
    764841        exit 0 ;;
    765842    m68*:Linux:*:*)
    766843        echo ${UNAME_MACHINE}-unknown-linux-gnu
     
    771848        #undef CPU
    772849        #undef mips
    773850        #undef mipsel
    774         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 
    775         CPU=mipsel 
     851        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     852        CPU=mipsel
    776853        #else
    777         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 
     854        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    778855        CPU=mips
    779856        #else
    780857        CPU=
    781858        #endif
    782         #endif
     859        #endif
     860EOF
     861        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     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
    783879EOF
    784880        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    785         rm -f $dummy.c
    786         test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
     881        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
    787882        ;;
    788883    ppc:Linux:*:*)
    789884        echo powerpc-unknown-linux-gnu
     
    819914    s390:Linux:*:* | s390x:Linux:*:*)
    820915        echo ${UNAME_MACHINE}-ibm-linux
    821916        exit 0 ;;
     917    sh64*:Linux:*:*)
     918        echo ${UNAME_MACHINE}-unknown-linux-gnu
     919        exit 0 ;;
    822920    sh*:Linux:*:*)
    823921        echo ${UNAME_MACHINE}-unknown-linux-gnu
    824922        exit 0 ;;
     
    845943                ;;
    846944          a.out-i386-linux)
    847945                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
    848                 exit 0 ;;               
     946                exit 0 ;;
    849947          coff-i386)
    850948                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    851949                exit 0 ;;
     
    876974        LIBC=gnuaout
    877975        #endif
    878976        #endif
     977        #ifdef __dietlibc__
     978        LIBC=dietlibc
     979        #endif
    879980EOF
    880981        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    881         rm -f $dummy.c
    882982        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
    883983        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    884984        ;;
     
    896996        # Use sysv4.2uw... so that sysv4* matches it.
    897997        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    898998        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 ;;
    8991019    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    9001020        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    9011021        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    9171037                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
    9181038                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    9191039        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    920                 UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
    921                 (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
    922                 (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
     1040                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     1041                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
     1042                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
    9231043                        && UNAME_MACHINE=i586
    924                 (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
     1044                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
    9251045                        && UNAME_MACHINE=i686
    926                 (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
     1046                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    9271047                        && UNAME_MACHINE=i686
    9281048                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
    9291049        else
    9301050                echo ${UNAME_MACHINE}-pc-sysv32
    9311051        fi
    9321052        exit 0 ;;
    933     i*86:*DOS:*:*)
    934         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    935         exit 0 ;;
    9361053    pc:*:*:*)
    9371054        # Left here for compatibility:
    9381055        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     
    9561073        # "miniframe"
    9571074        echo m68010-convergent-sysv
    9581075        exit 0 ;;
    959     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]*:*)
    9601083        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    961     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 | 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)
    9621085        OS_REL=''
    9631086        test -r /etc/.relid \
    9641087        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     
    9751098    mc68030:UNIX_System_V:4.*:*)
    9761099        echo m68k-atari-sysv4
    9771100        exit 0 ;;
    978     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    979         echo i386-unknown-lynxos${UNAME_RELEASE}
    980         exit 0 ;;
    9811101    TSUNAMI:LynxOS:2.*:*)
    9821102        echo sparc-unknown-lynxos${UNAME_RELEASE}
    9831103        exit 0 ;;
     
    10491169    SX-5:SUPER-UX:*:*)
    10501170        echo sx5-nec-superux${UNAME_RELEASE}
    10511171        exit 0 ;;
     1172    SX-6:SUPER-UX:*:*)
     1173        echo sx6-nec-superux${UNAME_RELEASE}
     1174        exit 0 ;;
    10521175    Power*:Rhapsody:*:*)
    10531176        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    10541177        exit 0 ;;
     
    10561179        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    10571180        exit 0 ;;
    10581181    *:Darwin:*:*)
    1059         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}
    10601188        exit 0 ;;
    10611189    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    1062         if test "${UNAME_MACHINE}" = "x86pc"; then
     1190        UNAME_PROCESSOR=`uname -p`
     1191        if test "$UNAME_PROCESSOR" = "x86"; then
     1192                UNAME_PROCESSOR=i386
    10631193                UNAME_MACHINE=pc
    1064                 echo i386-${UNAME_MACHINE}-nto-qnx
    1065         else
    1066                 echo `uname -p`-${UNAME_MACHINE}-nto-qnx
    10671194        fi
     1195        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
    10681196        exit 0 ;;
    10691197    *:QNX:*:4*)
    10701198        echo i386-pc-qnx
    10711199        exit 0 ;;
    1072     NSR-[GKLNPTVW]:NONSTOP_KERNEL:*:*)
     1200    NSR-?:NONSTOP_KERNEL:*:*)
    10731201        echo nsr-tandem-nsk${UNAME_RELEASE}
    10741202        exit 0 ;;
    10751203    *:NonStop-UX:*:*)
     
    10921220        fi
    10931221        echo ${UNAME_MACHINE}-unknown-plan9
    10941222        exit 0 ;;
    1095     i*86:OS/2:*:*)
    1096         # If we were able to find `uname', then EMX Unix compatibility
    1097         # is probably installed.
    1098         echo ${UNAME_MACHINE}-pc-os2-emx
    1099         exit 0 ;;
    11001223    *:TOPS-10:*:*)
    11011224        echo pdp10-unknown-tops10
    11021225        exit 0 ;;
     
    11151238    *:ITS:*:*)
    11161239        echo pdp10-unknown-its
    11171240        exit 0 ;;
    1118     i*86:XTS-300:*:STOP)
    1119         echo ${UNAME_MACHINE}-unknown-stop
     1241    SEI:*:*:SEIUX)
     1242        echo mips-sei-seiux${UNAME_RELEASE}
    11201243        exit 0 ;;
    1121     i*86:atheos:*:*)
    1122         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
    11231256        exit 0 ;;
    11241257esac
    11251258
     
    12411374}
    12421375EOF
    12431376
    1244 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
    1245 rm -f $dummy.c $dummy
     1377$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12461378
    12471379# Apollos put the system type in the environment.
    12481380
  • config.sub

    diff -Naur expect-5.43.orig/config.sub expect-5.43/config.sub
    old new  
    11#! /bin/sh
    2 # Configuration validation subroutine script, version 1.1.
    3 #   Copyright (C) 1991, 92, 93, 94, 95, 1996 Free Software Foundation, Inc.
     2# Configuration validation subroutine script.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
     5
     6timestamp='2004-11-30'
     7
    48# This file is (in principle) common to ALL GNU software.
    59# The presence of a machine in this file suggests that SOME GNU software
    610# can handle that machine.  It does not imply ALL GNU software can.
     
    2529# configuration script generated by Autoconf, you may include it under
    2630# the same distribution terms that you use for the rest of that program.
    2731
     32# Please send patches to <config-patches@gnu.org>.  Submit a context
     33# diff and a properly formatted ChangeLog entry.
     34#
    2835# Configuration subroutine to validate and canonicalize a configuration type.
    2936# Supply the specified configuration type as an argument.
    3037# If it is invalid, we print an error message on stderr and exit with code 1.
     
    4552#       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    4653# It is wrong to echo any other type of specification.
    4754
    48 if [ x$1 = x ]
    49 then
    50         echo Configuration name missing. 1>&2
    51         echo "Usage: $0 CPU-MFR-OPSYS" 1>&2
    52         echo "or     $0 ALIAS" 1>&2
    53         echo where ALIAS is a recognized configuration type. 1>&2
    54         exit 1
    55 fi
     55me=`echo "$0" | sed -e 's,.*/,,'`
    5656
    57 # First pass through any local machine types.
    58 case $1 in
    59         *local*)
    60                 echo $1
    61                 exit 0
    62                 ;;
    63         *)
    64         ;;
     57usage="\
     58Usage: $0 [OPTION] CPU-MFR-OPSYS
     59       $0 [OPTION] ALIAS
     60
     61Canonicalize a configuration name.
     62
     63Operation modes:
     64  -h, --help         print this help, then exit
     65  -t, --time-stamp   print date of last modification, then exit
     66  -v, --version      print version number, then exit
     67
     68Report bugs and patches to <config-patches@gnu.org>."
     69
     70version="\
     71GNU config.sub ($timestamp)
     72
     73Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
     74Free Software Foundation, Inc.
     75
     76This is free software; see the source for copying conditions.  There is NO
     77warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     78
     79help="
     80Try \`$me --help' for more information."
     81
     82# Parse command line
     83while test $# -gt 0 ; do
     84  case $1 in
     85    --time-stamp | --time* | -t )
     86       echo "$timestamp" ; exit 0 ;;
     87    --version | -v )
     88       echo "$version" ; exit 0 ;;
     89    --help | --h* | -h )
     90       echo "$usage"; exit 0 ;;
     91    -- )     # Stop option processing
     92       shift; break ;;
     93    - ) # Use stdin as input.
     94       break ;;
     95    -* )
     96       echo "$me: invalid option $1$help"
     97       exit 1 ;;
     98
     99    *local*)
     100       # First pass through any local machine types.
     101       echo $1
     102       exit 0;;
     103
     104    * )
     105       break ;;
     106  esac
     107done
     108
     109case $# in
     110 0) echo "$me: missing argument$help" >&2
     111    exit 1;;
     112 1) ;;
     113 *) echo "$me: too many arguments$help" >&2
     114    exit 1;;
    65115esac
    66116
    67117# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    68118# Here we must recognize all the valid KERNEL-OS combinations.
    69119maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    70120case $maybe_os in
    71   linux-gnu*)
     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*)
    72123    os=-$maybe_os
    73124    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    74125    ;;
     
    94145        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    95146        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    96147        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    97         -apple)
     148        -apple | -axis | -knuth | -cray)
     149                os=
     150                basic_machine=$1
     151                ;;
     152        -sim | -cisco | -oki | -wec | -winbond)
    98153                os=
    99154                basic_machine=$1
    100155                ;;
     156        -scout)
     157                ;;
     158        -wrs)
     159                os=-vxworks
     160                basic_machine=$1
     161                ;;
     162        -chorusos*)
     163                os=-chorusos
     164                basic_machine=$1
     165                ;;
     166        -chorusrdb)
     167                os=-chorusrdb
     168                basic_machine=$1
     169                ;;
    101170        -hiux*)
    102171                os=-hiuxwe2
    103172                ;;
    104173        -sco5)
    105                 os=sco3.2v5
     174                os=-sco3.2v5
    106175                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    107176                ;;
    108177        -sco4)
     
    121190                os=-sco3.2v2
    122191                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
    123192                ;;
     193        -udk*)
     194                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     195                ;;
    124196        -isc)
    125197                os=-isc2.2
    126198                basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     
    143215        -psos*)
    144216                os=-psos
    145217                ;;
     218        -mint | -mint[0-9]*)
     219                basic_machine=m68k-atari
     220                os=-mint
     221                ;;
    146222esac
    147223
    148224# Decode aliases for certain CPU-COMPANY combinations.
    149225case $basic_machine in
    150226        # Recognize the basic CPU types without company name.
    151227        # Some are omitted here because they have special meanings below.
    152         tahoe | i860 | m68k | m68000 | m88k | ns32k | arm \
    153                 | arme[lb] | pyramid \
    154                 | tron | a29k | 580 | i960 | h8300 | hppa | hppa1.0 | hppa1.1 \
    155                 | alpha | we32k | ns16k | clipper | i370 | sh \
    156                 | powerpc | powerpcle | 1750a | dsp16xx | mips64 | mipsel \
    157                 | pdp11 | mips64el | mips64orion | mips64orionel \
    158                 | sparc | sparclet | sparclite | sparc64)
     228        1750a | 580 \
     229        | a29k \
     230        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     231        | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
     232        | am33_2.0 \
     233        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
     234        | c4x | clipper \
     235        | d10v | d30v | dlx | dsp16xx \
     236        | fr30 | frv \
     237        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
     238        | i370 | i860 | i960 | ia64 \
     239        | ip2k | iq2000 \
     240        | m32r | m32rle | m68000 | m68k | m88k | maxq | 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 \
     256        | mn10200 | mn10300 \
     257        | msp430 \
     258        | ns16k | ns32k \
     259        | openrisc | or32 \
     260        | pdp10 | pdp11 | pj | pjl \
     261        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
     262        | pyramid \
     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 \
     266        | strongarm \
     267        | tahoe | thumb | tic4x | tic80 | tron \
     268        | v850 | v850e \
     269        | we32k \
     270        | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \
     271        | z8k)
    159272                basic_machine=$basic_machine-unknown
    160273                ;;
     274        m6811 | m68hc11 | m6812 | m68hc12)
     275                # Motorola 68HC11/12.
     276                basic_machine=$basic_machine-unknown
     277                os=-none
     278                ;;
     279        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
     280                ;;
     281
    161282        # We use `pc' rather than `unknown'
    162283        # because (1) that's what they normally are, and
    163284        # (2) the word "unknown" tends to confuse beginning users.
    164         i[3456]86)
     285        i*86 | x86_64)
    165286          basic_machine=$basic_machine-pc
    166287          ;;
    167288        # Object if more than one company name word.
     
    170291                exit 1
    171292                ;;
    172293        # Recognize the basic CPU types with company name.
    173         vax-* | tahoe-* | i[3456]86-* | i860-* | m68k-* | m68000-* | m88k-* \
    174               | sparc-* | ns32k-* | fx80-* | arm-* | c[123]* \
    175               | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* | power-* \
    176               | none-* | 580-* | cray2-* | h8300-* | i960-* | xmp-* | ymp-* \
    177               | hppa-* | hppa1.0-* | hppa1.1-* | alpha-* | we32k-* | cydra-* | ns16k-* \
    178               | pn-* | np1-* | xps100-* | clipper-* | orion-* | sparclite-* \
    179               | pdp11-* | sh-* | powerpc-* | powerpcle-* | sparc64-* | mips64-* | mipsel-* \
    180               | mips64el-* | mips64orion-* | mips64orionel-*)
     294        580-* \
     295        | a29k-* \
     296        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
     297        | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
     298        | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
     299        | arm-*  | armbe-* | armle-* | armeb-* | armv*-* \
     300        | avr-* \
     301        | bs2000-* \
     302        | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
     303        | clipper-* | craynv-* | cydra-* \
     304        | d10v-* | d30v-* | dlx-* \
     305        | elxsi-* \
     306        | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
     307        | h8300-* | h8500-* \
     308        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
     309        | i*86-* | i860-* | i960-* | ia64-* \
     310        | ip2k-* | iq2000-* \
     311        | m32r-* | m32rle-* \
     312        | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
     313        | m88110-* | m88k-* | maxq-* | mcore-* \
     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        | mmix-* \
     330        | msp430-* \
     331        | none-* | np1-* | ns16k-* | ns32k-* \
     332        | orion-* \
     333        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     334        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
     335        | pyramid-* \
     336        | romp-* | rs6000-* \
     337        | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
     338        | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
     339        | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
     340        | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
     341        | tahoe-* | thumb-* \
     342        | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
     343        | tron-* \
     344        | v850-* | v850e-* | vax-* \
     345        | we32k-* \
     346        | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \
     347        | xstormy16-* | xtensa-* \
     348        | ymp-* \
     349        | z8k-*)
    181350                ;;
    182351        # Recognize the various machine names and aliases which stand
    183352        # for a CPU type and a company and sometimes even an OS.
     353        386bsd)
     354                basic_machine=i386-unknown
     355                os=-bsd
     356                ;;
    184357        3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
    185358                basic_machine=m68000-att
    186359                ;;
    187360        3b*)
    188361                basic_machine=we32k-att
    189362                ;;
     363        a29khif)
     364                basic_machine=a29k-amd
     365                os=-udi
     366                ;;
     367        abacus)
     368                basic_machine=abacus-unknown
     369                ;;
     370        adobe68k)
     371                basic_machine=m68010-adobe
     372                os=-scout
     373                ;;
    190374        alliant | fx80)
    191375                basic_machine=fx80-alliant
    192376                ;;
     
    197381                basic_machine=a29k-none
    198382                os=-bsd
    199383                ;;
     384        amd64)
     385                basic_machine=x86_64-pc
     386                ;;
     387        amd64-*)
     388                basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     389                ;;
    200390        amdahl)
    201391                basic_machine=580-amdahl
    202392                os=-sysv
    203393                ;;
    204394        amiga | amiga-*)
    205                 basic_machine=m68k-cbm
     395                basic_machine=m68k-unknown
    206396                ;;
    207         amigados)
    208                 basic_machine=m68k-cbm
    209                 os=-amigados
     397        amigaos | amigados)
     398                basic_machine=m68k-unknown
     399                os=-amigaos
    210400                ;;
    211401        amigaunix | amix)
    212                 basic_machine=m68k-cbm
     402                basic_machine=m68k-unknown
    213403                os=-sysv4
    214404                ;;
    215405        apollo68)
    216406                basic_machine=m68k-apollo
    217407                os=-sysv
    218408                ;;
     409        apollo68bsd)
     410                basic_machine=m68k-apollo
     411                os=-bsd
     412                ;;
    219413        aux)
    220414                basic_machine=m68k-apple
    221415                os=-aux
     
    224418                basic_machine=ns32k-sequent
    225419                os=-dynix
    226420                ;;
     421        c90)
     422                basic_machine=c90-cray
     423                os=-unicos
     424                ;;
    227425        convex-c1)
    228426                basic_machine=c1-convex
    229427                os=-bsd
     
    244442                basic_machine=c38-convex
    245443                os=-bsd
    246444                ;;
    247         cray | ymp)
    248                 basic_machine=ymp-cray
    249                 os=-unicos
    250                 ;;
    251         cray2)
    252                 basic_machine=cray2-cray
     445        cray | j90)
     446                basic_machine=j90-cray
    253447                os=-unicos
    254448                ;;
    255         [ctj]90-cray)
    256                 basic_machine=c90-cray
    257                 os=-unicos
     449        craynv)
     450                basic_machine=craynv-cray
     451                os=-unicosmp
     452                ;;
     453        cr16c)
     454                basic_machine=cr16c-unknown
     455                os=-elf
    258456                ;;
    259457        crds | unos)
    260458                basic_machine=m68k-crds
    261459                ;;
     460        crisv32 | crisv32-* | etraxfs*)
     461                basic_machine=crisv32-axis
     462                ;;
     463        cris | cris-* | etrax*)
     464                basic_machine=cris-axis
     465                ;;
     466        crx)
     467                basic_machine=crx-unknown
     468                os=-elf
     469                ;;
    262470        da30 | da30-*)
    263471                basic_machine=m68k-da30
    264472                ;;
    265473        decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
    266474                basic_machine=mips-dec
    267475                ;;
     476        decsystem10* | dec10*)
     477                basic_machine=pdp10-dec
     478                os=-tops10
     479                ;;
     480        decsystem20* | dec20*)
     481                basic_machine=pdp10-dec
     482                os=-tops20
     483                ;;
    268484        delta | 3300 | motorola-3300 | motorola-delta \
    269485              | 3300-motorola | delta-motorola)
    270486                basic_machine=m68k-motorola
     
    273489                basic_machine=m88k-motorola
    274490                os=-sysv3
    275491                ;;
     492        djgpp)
     493                basic_machine=i586-pc
     494                os=-msdosdjgpp
     495                ;;
    276496        dpx20 | dpx20-*)
    277497                basic_machine=rs6000-bull
    278498                os=-bosx
     
    292512        encore | umax | mmax)
    293513                basic_machine=ns32k-encore
    294514                ;;
     515        es1800 | OSE68k | ose68k | ose | OSE)
     516                basic_machine=m68k-ericsson
     517                os=-ose
     518                ;;
    295519        fx2800)
    296520                basic_machine=i860-alliant
    297521                ;;
     
    302526                basic_machine=tron-gmicro
    303527                os=-sysv
    304528                ;;
     529        go32)
     530                basic_machine=i386-pc
     531                os=-go32
     532                ;;
    305533        h3050r* | hiux*)
    306534                basic_machine=hppa1.1-hitachi
    307535                os=-hiuxwe2
     
    310538                basic_machine=h8300-hitachi
    311539                os=-hms
    312540                ;;
     541        h8300xray)
     542                basic_machine=h8300-hitachi
     543                os=-xray
     544                ;;
     545        h8500hms)
     546                basic_machine=h8500-hitachi
     547                os=-hms
     548                ;;
    313549        harris)
    314550                basic_machine=m88k-harris
    315551                os=-sysv3
     
    325561                basic_machine=m68k-hp
    326562                os=-hpux
    327563                ;;
     564        hp3k9[0-9][0-9] | hp9[0-9][0-9])
     565                basic_machine=hppa1.0-hp
     566                ;;
    328567        hp9k2[0-9][0-9] | hp9k31[0-9])
    329568                basic_machine=m68000-hp
    330569                ;;
    331570        hp9k3[2-9][0-9])
    332571                basic_machine=m68k-hp
    333572                ;;
    334         hp9k7[0-9][0-9] | hp7[0-9][0-9] | hp9k8[0-9]7 | hp8[0-9]7)
     573        hp9k6[0-9][0-9] | hp6[0-9][0-9])
     574                basic_machine=hppa1.0-hp
     575                ;;
     576        hp9k7[0-79][0-9] | hp7[0-79][0-9])
     577                basic_machine=hppa1.1-hp
     578                ;;
     579        hp9k78[0-9] | hp78[0-9])
     580                # FIXME: really hppa2.0-hp
     581                basic_machine=hppa1.1-hp
     582                ;;
     583        hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
     584                # FIXME: really hppa2.0-hp
     585                basic_machine=hppa1.1-hp
     586                ;;
     587        hp9k8[0-9][13679] | hp8[0-9][13679])
    335588                basic_machine=hppa1.1-hp
    336589                ;;
    337590        hp9k8[0-9][0-9] | hp8[0-9][0-9])
     
    340593        hppa-next)
    341594                os=-nextstep3
    342595                ;;
     596        hppaosf)
     597                basic_machine=hppa1.1-hp
     598                os=-osf
     599                ;;
     600        hppro)
     601                basic_machine=hppa1.1-hp
     602                os=-proelf
     603                ;;
    343604        i370-ibm* | ibm*)
    344605                basic_machine=i370-ibm
    345                 os=-mvs
    346606                ;;
    347607# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
    348         i[3456]86v32)
     608        i*86v32)
    349609                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    350610                os=-sysv32
    351611                ;;
    352         i[3456]86v4*)
     612        i*86v4*)
    353613                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    354614                os=-sysv4
    355615                ;;
    356         i[3456]86v)
     616        i*86v)
    357617                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    358618                os=-sysv
    359619                ;;
    360         i[3456]86sol2)
     620        i*86sol2)
    361621                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    362622                os=-solaris2
    363623                ;;
     624        i386mach)
     625                basic_machine=i386-mach
     626                os=-mach
     627                ;;
     628        i386-vsta | vsta)
     629                basic_machine=i386-unknown
     630                os=-vsta
     631                ;;
    364632        iris | iris4d)
    365633                basic_machine=mips-sgi
    366634                case $os in
     
    386654                basic_machine=ns32k-utek
    387655                os=-sysv
    388656                ;;
     657        mingw32)
     658                basic_machine=i386-pc
     659                os=-mingw32
     660                ;;
    389661        miniframe)
    390662                basic_machine=m68000-convergent
    391663                ;;
     664        *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
     665                basic_machine=m68k-atari
     666                os=-mint
     667                ;;
    392668        mips3*-*)
    393669                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
    394670                ;;
    395671        mips3*)
    396672                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    397673                ;;
     674        monitor)
     675                basic_machine=m68k-rom68k
     676                os=-coff
     677                ;;
     678        morphos)
     679                basic_machine=powerpc-unknown
     680                os=-morphos
     681                ;;
     682        msdos)
     683                basic_machine=i386-pc
     684                os=-msdos
     685                ;;
     686        mvs)
     687                basic_machine=i370-ibm
     688                os=-mvs
     689                ;;
    398690        ncr3000)
    399691                basic_machine=i486-ncr
    400692                os=-sysv4
    401693                ;;
     694        netbsd386)
     695                basic_machine=i386-unknown
     696                os=-netbsd
     697                ;;
     698        netwinder)
     699                basic_machine=armv4l-rebel
     700                os=-linux
     701                ;;
    402702        news | news700 | news800 | news900)
    403703                basic_machine=m68k-sony
    404704                os=-newsos
     
    411711                basic_machine=mips-sony
    412712                os=-newsos
    413713                ;;
     714        necv70)
     715                basic_machine=v70-nec
     716                os=-sysv
     717                ;;
    414718        next | m*-next )
    415719                basic_machine=m68k-next
    416720                case $os in
     
    436740                basic_machine=i960-intel
    437741                os=-nindy
    438742                ;;
     743        mon960)
     744                basic_machine=i960-intel
     745                os=-mon960
     746                ;;
     747        nonstopux)
     748                basic_machine=mips-compaq
     749                os=-nonstopux
     750                ;;
    439751        np1)
    440752                basic_machine=np1-gould
    441753                ;;
     754        nsr-tandem)
     755                basic_machine=nsr-tandem
     756                ;;
     757        op50n-* | op60c-*)
     758                basic_machine=hppa1.1-oki
     759                os=-proelf
     760                ;;
     761        or32 | or32-*)
     762                basic_machine=or32-unknown
     763                os=-coff
     764                ;;
     765        os400)
     766                basic_machine=powerpc-ibm
     767                os=-os400
     768                ;;
     769        OSE68000 | ose68000)
     770                basic_machine=m68000-ericsson
     771                os=-ose
     772                ;;
     773        os68k)
     774                basic_machine=m68k-none
     775                os=-os68k
     776                ;;
    442777        pa-hitachi)
    443778                basic_machine=hppa1.1-hitachi
    444779                os=-hiuxwe2
     
    453788        pbb)
    454789                basic_machine=m68k-tti
    455790                ;;
    456         pc532 | pc532-*)
     791        pc532 | pc532-*)
    457792                basic_machine=ns32k-pc532
    458793                ;;
    459         pentium | p5)
    460                 basic_machine=i586-intel
     794        pentium | p5 | k5 | k6 | nexgen | viac3)
     795                basic_machine=i586-pc
     796                ;;
     797        pentiumpro | p6 | 6x86 | athlon | athlon_*)
     798                basic_machine=i686-pc
     799                ;;
     800        pentiumii | pentium2 | pentiumiii | pentium3)
     801                basic_machine=i686-pc
    461802                ;;
    462         pentiumpro | p6)
    463                 basic_machine=i686-intel
     803        pentium4)
     804                basic_machine=i786-pc
    464805                ;;
    465         pentium-* | p5-*)
     806        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
    466807                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    467808                ;;
    468         pentiumpro-* | p6-*)
     809        pentiumpro-* | p6-* | 6x86-* | athlon-*)
    469810                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    470811                ;;
    471         k5)
    472                 # We don't have specific support for AMD's K5 yet, so just call it a Pentium
    473                 basic_machine=i586-amd
    474                 ;;
    475         nexen)
    476                 # We don't have specific support for Nexgen yet, so just call it a Pentium
    477                 basic_machine=i586-nexgen
     812        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
     813                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     814                ;;
     815        pentium4-*)
     816                basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
    478817                ;;
    479818        pn)
    480819                basic_machine=pn-gould
    481820                ;;
    482         power)  basic_machine=rs6000-ibm
     821        power)  basic_machine=power-ibm
    483822                ;;
    484823        ppc)    basic_machine=powerpc-unknown
    485                 ;;
     824                ;;
    486825        ppc-*)  basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
    487826                ;;
    488827        ppcle | powerpclittle | ppc-le | powerpc-little)
    489828                basic_machine=powerpcle-unknown
    490                 ;;
     829                ;;
    491830        ppcle-* | powerpclittle-*)
    492831                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    493832                ;;
     833        ppc64)  basic_machine=powerpc64-unknown
     834                ;;
     835        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
     836                ;;
     837        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
     838                basic_machine=powerpc64le-unknown
     839                ;;
     840        ppc64le-* | powerpc64little-*)
     841                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
     842                ;;
    494843        ps2)
    495844                basic_machine=i386-ibm
    496845                ;;
     846        pw32)
     847                basic_machine=i586-unknown
     848                os=-pw32
     849                ;;
     850        rom68k)
     851                basic_machine=m68k-rom68k
     852                os=-coff
     853                ;;
    497854        rm[46]00)
    498855                basic_machine=mips-siemens
    499856                ;;
    500857        rtpc | rtpc-*)
    501858                basic_machine=romp-ibm
    502859                ;;
     860        s390 | s390-*)
     861                basic_machine=s390-ibm
     862                ;;
     863        s390x | s390x-*)
     864                basic_machine=s390x-ibm
     865                ;;
     866        sa29200)
     867                basic_machine=a29k-amd
     868                os=-udi
     869                ;;
     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                ;;
    503880        sequent)
    504881                basic_machine=i386-sequent
    505882                ;;
     
    507884                basic_machine=sh-hitachi
    508885                os=-hms
    509886                ;;
     887        sh64)
     888                basic_machine=sh64-unknown
     889                ;;
     890        sparclite-wrs | simso-wrs)
     891                basic_machine=sparclite-wrs
     892                os=-vxworks
     893                ;;
    510894        sps7)
    511895                basic_machine=m68k-bull
    512896                os=-sysv2
     
    514898        spur)
    515899                basic_machine=spur-unknown
    516900                ;;
     901        st2000)
     902                basic_machine=m68k-tandem
     903                ;;
     904        stratus)
     905                basic_machine=i860-stratus
     906                os=-sysv4
     907                ;;
    517908        sun2)
    518909                basic_machine=m68000-sun
    519910                ;;
     
    554945        sun386 | sun386i | roadrunner)
    555946                basic_machine=i386-sun
    556947                ;;
     948        sv1)
     949                basic_machine=sv1-cray
     950                os=-unicos
     951                ;;
    557952        symmetry)
    558953                basic_machine=i386-sequent
    559954                os=-dynix
    560955                ;;
     956        t3e)
     957                basic_machine=alphaev5-cray
     958                os=-unicos
     959                ;;
     960        t90)
     961                basic_machine=t90-cray
     962                os=-unicos
     963                ;;
     964        tic54x | c54x*)
     965                basic_machine=tic54x-unknown
     966                os=-coff
     967                ;;
     968        tic55x | c55x*)
     969                basic_machine=tic55x-unknown
     970                os=-coff
     971                ;;
     972        tic6x | c6x*)
     973                basic_machine=tic6x-unknown
     974                os=-coff
     975                ;;
     976        tx39)
     977                basic_machine=mipstx39-unknown
     978                ;;
     979        tx39el)
     980                basic_machine=mipstx39el-unknown
     981                ;;
     982        toad1)
     983                basic_machine=pdp10-xkl
     984                os=-tops20
     985                ;;
    561986        tower | tower-32)
    562987                basic_machine=m68k-ncr
    563988                ;;
     989        tpf)
     990                basic_machine=s390x-ibm
     991                os=-tpf
     992                ;;
    564993        udi29k)
    565994                basic_machine=a29k-amd
    566995                os=-udi
     
    569998                basic_machine=a29k-nyu
    570999                os=-sym1
    5711000                ;;
     1001        v810 | necv810)
     1002                basic_machine=v810-nec
     1003                os=-none
     1004                ;;
    5721005        vaxv)
    5731006                basic_machine=vax-dec
    5741007                os=-sysv
     
    5771010                basic_machine=vax-dec
    5781011                os=-vms
    5791012                ;;
     1013        vpp*|vx|vx-*)
     1014                basic_machine=f301-fujitsu
     1015                ;;
    5801016        vxworks960)
    5811017                basic_machine=i960-wrs
    5821018                os=-vxworks
     
    5891025                basic_machine=a29k-wrs
    5901026                os=-vxworks
    5911027                ;;
    592         xmp)
    593                 basic_machine=xmp-cray
    594                 os=-unicos
     1028        w65*)
     1029                basic_machine=w65-wdc
     1030                os=-none
     1031                ;;
     1032        w89k-*)
     1033                basic_machine=hppa1.1-winbond
     1034                os=-proelf
     1035                ;;
     1036        xbox)
     1037                basic_machine=i686-pc
     1038                os=-mingw32
    5951039                ;;
    596         xps | xps100)
     1040        xps | xps100)
    5971041                basic_machine=xps100-honeywell
    5981042                ;;
     1043        ymp)
     1044                basic_machine=ymp-cray
     1045                os=-unicos
     1046                ;;
     1047        z8k-*-coff)
     1048                basic_machine=z8k-unknown
     1049                os=-sim
     1050                ;;
    5991051        none)
    6001052                basic_machine=none-none
    6011053                os=-none
     
    6031055
    6041056# Here we handle the default manufacturer of certain CPU types.  It is in
    6051057# some cases the only manufacturer, in others, it is the most popular.
    606         mips)
    607                 basic_machine=mips-mips
     1058        w89k)
     1059                basic_machine=hppa1.1-winbond
     1060                ;;
     1061        op50n)
     1062                basic_machine=hppa1.1-oki
     1063                ;;
     1064        op60c)
     1065                basic_machine=hppa1.1-oki
    6081066                ;;
    6091067        romp)
    6101068                basic_machine=romp-ibm
    6111069                ;;
     1070        mmix)
     1071                basic_machine=mmix-knuth
     1072                ;;
    6121073        rs6000)
    6131074                basic_machine=rs6000-ibm
    6141075                ;;
    6151076        vax)
    6161077                basic_machine=vax-dec
    6171078                ;;
     1079        pdp10)
     1080                # there are many clones, so DEC is not a safe bet
     1081                basic_machine=pdp10-unknown
     1082                ;;
    6181083        pdp11)
    6191084                basic_machine=pdp11-dec
    6201085                ;;
    6211086        we32k)
    6221087                basic_machine=we32k-att
    6231088                ;;
    624         sparc)
     1089        sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
     1090                basic_machine=sh-unknown
     1091                ;;
     1092        sh64)
     1093                basic_machine=sh64-unknown
     1094                ;;
     1095        sparc | sparcv8 | sparcv9 | sparcv9b)
    6251096                basic_machine=sparc-sun
    6261097                ;;
    627         cydra)
     1098        cydra)
    6281099                basic_machine=cydra-cydrome
    6291100                ;;
    6301101        orion)
     
    6331104        orion105)
    6341105                basic_machine=clipper-highlevel
    6351106                ;;
     1107        mac | mpw | mac-mpw)
     1108                basic_machine=m68k-apple
     1109                ;;
     1110        pmac | pmac-mpw)
     1111                basic_machine=powerpc-apple
     1112                ;;
     1113        *-unknown)
     1114                # Make sure to match an already-canonicalized machine name.
     1115                ;;
    6361116        *)
    6371117                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
    6381118                exit 1
     
    6651145        -solaris)
    6661146                os=-solaris2
    6671147                ;;
    668         -unixware* | svr4*)
     1148        -svr4*)
    6691149                os=-sysv4
    6701150                ;;
     1151        -unixware*)
     1152                os=-sysv4.2uw
     1153                ;;
    6711154        -gnu/linux*)
    6721155                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
    6731156                ;;
     
    6781161        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
    6791162              | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
    6801163              | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
    681               | -amigados* | -msdos* | -newsos* | -unicos* | -aof* | -aos* \
     1164              | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
     1165              | -aos* \
    6821166              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    6831167              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    684               | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \
    685               | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* \
     1168              | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
     1169              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
     1170              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    6861171              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    6871172              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    688               | -cygwin32* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    689               | -linux-gnu*)
     1173              | -chorusos* | -chorusrdb* \
     1174              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
     1175              | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
     1176              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
     1177              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     1178              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
     1179              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
     1180              | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1181              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
    6901182        # Remember, each alternative MUST END IN *, to match a version number.
    6911183                ;;
     1184        -qnx*)
     1185                case $basic_machine in
     1186                    x86-* | i*86-*)
     1187                        ;;
     1188                    *)
     1189                        os=-nto$os
     1190                        ;;
     1191                esac
     1192                ;;
     1193        -nto-qnx*)
     1194                ;;
     1195        -nto*)
     1196                os=`echo $os | sed -e 's|nto|nto-qnx|'`
     1197                ;;
     1198        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
     1199              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
     1200              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
     1201                ;;
     1202        -mac*)
     1203                os=`echo $os | sed -e 's|mac|macos|'`
     1204                ;;
     1205        -linux-dietlibc)
     1206                os=-linux-dietlibc
     1207                ;;
    6921208        -linux*)
    6931209                os=`echo $os | sed -e 's|linux|linux-gnu|'`
    6941210                ;;
     
    6981214        -sunos6*)
    6991215                os=`echo $os | sed -e 's|sunos6|solaris3|'`
    7001216                ;;
     1217        -opened*)
     1218                os=-openedition
     1219                ;;
     1220        -os400*)
     1221                os=-os400
     1222                ;;
     1223        -wince*)
     1224                os=-wince
     1225                ;;
    7011226        -osfrose*)
    7021227                os=-osfrose
    7031228                ;;
     
    7131238        -acis*)
    7141239                os=-aos
    7151240                ;;
     1241        -atheos*)
     1242                os=-atheos
     1243                ;;
     1244        -syllable*)
     1245                os=-syllable
     1246                ;;
     1247        -386bsd)
     1248                os=-bsd
     1249                ;;
    7161250        -ctix* | -uts*)
    7171251                os=-sysv
    7181252                ;;
     1253        -nova*)
     1254                os=-rtmk-nova
     1255                ;;
    7191256        -ns2 )
    720                 os=-nextstep2
     1257                os=-nextstep2
     1258                ;;
     1259        -nsk*)
     1260                os=-nsk
    7211261                ;;
    7221262        # Preserve the version number of sinix5.
    7231263        -sinix5.*)
     
    7261266        -sinix*)
    7271267                os=-sysv4
    7281268                ;;
     1269        -tpf*)
     1270                os=-tpf
     1271                ;;
    7291272        -triton*)
    7301273                os=-sysv3
    7311274                ;;
     
    7441287        # This must come after -sysvr4.
    7451288        -sysv*)
    7461289                ;;
     1290        -ose*)
     1291                os=-ose
     1292                ;;
     1293        -es1800*)
     1294                os=-ose
     1295                ;;
    7471296        -xenix)
    7481297                os=-xenix
    7491298                ;;
     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
     1310                ;;
    7501311        -none)
    7511312                ;;
    7521313        *)
     
    7721333        *-acorn)
    7731334                os=-riscix1.2
    7741335                ;;
     1336        arm*-rebel)
     1337                os=-linux
     1338                ;;
    7751339        arm*-semi)
    7761340                os=-aout
    7771341                ;;
    778         pdp11-*)
     1342    c4x-* | tic4x-*)
     1343        os=-coff
     1344        ;;
     1345        # This must come before the *-dec entry.
     1346        pdp10-*)
     1347                os=-tops20
     1348                ;;
     1349        pdp11-*)
    7791350                os=-none
    7801351                ;;
    7811352        *-dec | vax-*)
     
    7931364                # default.
    7941365                # os=-sunos4
    7951366                ;;
     1367        m68*-cisco)
     1368                os=-aout
     1369                ;;
     1370        mips*-cisco)
     1371                os=-elf
     1372                ;;
     1373        mips*-*)
     1374                os=-elf
     1375                ;;
     1376        or32-*)
     1377                os=-coff
     1378                ;;
    7961379        *-tti)  # must be before sparc entry or we get the wrong os.
    7971380                os=-sysv3
    7981381                ;;
    7991382        sparc-* | *-sun)
    8001383                os=-sunos4.1.1
    8011384                ;;
     1385        *-be)
     1386                os=-beos
     1387                ;;
    8021388        *-ibm)
    8031389                os=-aix
    8041390                ;;
     1391        *-knuth)
     1392                os=-mmixware
     1393                ;;
     1394        *-wec)
     1395                os=-proelf
     1396                ;;
     1397        *-winbond)
     1398                os=-proelf
     1399                ;;
     1400        *-oki)
     1401                os=-proelf
     1402                ;;
    8051403        *-hp)
    8061404                os=-hpux
    8071405                ;;
     
    8121410                os=-sysv
    8131411                ;;
    8141412        *-cbm)
    815                 os=-amigados
     1413                os=-amigaos
    8161414                ;;
    8171415        *-dg)
    8181416                os=-dgux
     
    8441442        *-next)
    8451443                os=-nextstep3
    8461444                ;;
    847         *-gould)
     1445        *-gould)
    8481446                os=-sysv
    8491447                ;;
    850         *-highlevel)
     1448        *-highlevel)
    8511449                os=-bsd
    8521450                ;;
    8531451        *-encore)
    8541452                os=-bsd
    8551453                ;;
    856         *-sgi)
     1454        *-sgi)
    8571455                os=-irix
    8581456                ;;
    859         *-siemens)
     1457        *-siemens)
    8601458                os=-sysv4
    8611459                ;;
    8621460        *-masscomp)
    8631461                os=-rtu
    8641462                ;;
     1463        f30[01]-fujitsu | f700-fujitsu)
     1464                os=-uxpv
     1465                ;;
     1466        *-rom68k)
     1467                os=-coff
     1468                ;;
     1469        *-*bug)
     1470                os=-coff
     1471                ;;
     1472        *-apple)
     1473                os=-macos
     1474                ;;
     1475        *-atari*)
     1476                os=-mint
     1477                ;;
    8651478        *)
    8661479                os=-none
    8671480                ;;
     
    8831496                        -aix*)
    8841497                                vendor=ibm
    8851498                                ;;
     1499                        -beos*)
     1500                                vendor=be
     1501                                ;;
    8861502                        -hpux*)
    8871503                                vendor=hp
    8881504                                ;;
     1505                        -mpeix*)
     1506                                vendor=hp
     1507                                ;;
    8891508                        -hiux*)
    8901509                                vendor=hitachi
    8911510                                ;;
     
    9011520                        -genix*)
    9021521                                vendor=ns
    9031522                                ;;
    904                         -mvs*)
     1523                        -mvs* | -opened*)
     1524                                vendor=ibm
     1525                                ;;
     1526                        -os400*)
    9051527                                vendor=ibm
    9061528                                ;;
    9071529                        -ptx*)
    9081530                                vendor=sequent
    9091531                                ;;
    910                         -vxsim* | -vxworks*)
     1532                        -tpf*)
     1533                                vendor=ibm
     1534                                ;;
     1535                        -vxsim* | -vxworks* | -windiss*)
    9111536                                vendor=wrs
    9121537                                ;;
    9131538                        -aux*)
    9141539                                vendor=apple
    9151540                                ;;
     1541                        -hms*)
     1542                                vendor=hitachi
     1543                                ;;
     1544                        -mpw* | -macos*)
     1545                                vendor=apple
     1546                                ;;
     1547                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
     1548                                vendor=atari
     1549                                ;;
     1550                        -vos*)
     1551                                vendor=stratus
     1552                                ;;
    9161553                esac
    9171554                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
    9181555                ;;
    9191556esac
    9201557
    9211558echo $basic_machine$os
     1559exit 0
     1560
     1561# Local variables:
     1562# eval: (add-hook 'write-file-hooks 'time-stamp)
     1563# time-stamp-start: "timestamp='"
     1564# time-stamp-format: "%:y-%02m-%02d"
     1565# time-stamp-end: "'"
     1566# End:
Note: See TracBrowser for help on using the repository browser.