source: scripts/untested/blfs-patches/alsa-tools-1.0.8-update_ac3dec_config_foo-1.patch @ 617118d

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

r561@server (orig r559): root | 2005-06-05 02:38:49 -0700
Fixed Directory Structure

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

    diff -uNr alsa-tools-1.0.8/ac3dec/config.guess alsa-tools-1.0.8-mod/ac3dec/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,
    4 #   2000, 2001, 2002, 2003 Free Software Foundation, Inc.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4#   Free Software Foundation, Inc.
    55
    6 timestamp='2003-07-02'
     6timestamp='2001-09-04'
    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 # 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.
     27# Written by Per Bothner <bothner@cygnus.com>.
     28# Please send patches to <config-patches@gnu.org>.
    3029#
    3130# This script attempts to guess a canonical system name similar to
    3231# config.sub.  If it succeeds, it prints the system name on stdout, and
     
    8887  exit 1
    8988fi
    9089
    91 trap 'exit 1' 1 2 15
    9290
    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.
     91dummy=dummy-$$
     92trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
    9793
     94# CC_FOR_BUILD -- compiler used by this script.
    9895# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
    9996# use `HOST_CC' if defined, but it is deprecated.
    10097
    101 # Portable tmp directory creation inspired by the Autoconf team.
    102 
    103 set_cc_for_build='
    104 trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
    105 trap "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 ; } ;
    111 dummy=$tmp/dummy ;
    112 tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    113 case $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
     98set_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
    117103             CC_FOR_BUILD="$c"; break ;
    118104          fi ;
    119105        done ;
     106        rm -f $dummy.c $dummy.o $dummy.rel ;
    120107        if test x"$CC_FOR_BUILD" = x ; then
    121108          CC_FOR_BUILD=no_compiler_found ;
    122109        fi
    123110        ;;
    124111 ,,*)   CC_FOR_BUILD=$CC ;;
    125112 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    126 esac ;'
     113esac'
    127114
    128115# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    129116# (ghazi@noc.rutgers.edu 1994-08-24)
     
    136123UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    137124UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    138125
    139 case "${UNAME_MACHINE}" in
    140     i?86)
    141         test -z "$VENDOR" && VENDOR=pc
    142         ;;
    143     *)
    144         test -z "$VENDOR" && VENDOR=unknown
    145         ;;
    146 esac
    147 test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    148 
    149126# Note: order is significant - the case branches are not exclusive.
    150127
    151128case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
    152129    *:NetBSD:*:*)
    153         # NetBSD (nbsd) targets should (where applicable) match one or
     130        # Netbsd (nbsd) targets should (where applicable) match one or
    154131        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
    155132        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
    156133        # switched to ELF, *-*-netbsd* would select the old
    157134        # object file format.  This provides both forward
    158135        # compatibility and a consistent mechanism for selecting the
    159136        # object file format.
    160         #
    161         # Note: NetBSD doesn't particularly care about the vendor
    162         # portion of the name.  We always set it to "unknown".
    163         sysctl="sysctl -n hw.machine_arch"
    164         UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
    165             /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
    166         case "${UNAME_MACHINE_ARCH}" in
    167             armeb) machine=armeb-unknown ;;
    168             arm*) machine=arm-unknown ;;
    169             sh3el) machine=shl-unknown ;;
    170             sh3eb) machine=sh-unknown ;;
    171             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
     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 ;;
    172148        esac
    173149        # The Operating System including object format, if it has switched
    174150        # to ELF recently, or will in the future.
    175         case "${UNAME_MACHINE_ARCH}" in
    176             arm*|i386|m68k|ns32k|sh3*|sparc|vax)
     151        case "${UNAME_MACHINE}" in
     152            i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
    177153                eval $set_cc_for_build
    178154                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    179155                        | grep __ELF__ >/dev/null
     
    190166                ;;
    191167        esac
    192168        # The OS release
    193         # Debian GNU/NetBSD machines have a different userland, and
    194         # thus, need a distinct triplet. However, they do not need
    195         # kernel version information, so it can be replaced with a
    196         # suitable tag, in the style of linux-gnu.
    197         case "${UNAME_VERSION}" in
    198             Debian*)
    199                 release='-gnu'
    200                 ;;
    201             *)
    202                 release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    203                 ;;
    204         esac
     169        release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    205170        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    206171        # contains redundant information, the shorter form:
    207172        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    208173        echo "${machine}-${os}${release}"
    209174        exit 0 ;;
    210     amiga:OpenBSD:*:*)
    211         echo m68k-unknown-openbsd${UNAME_RELEASE}
    212         exit 0 ;;
    213     arc:OpenBSD:*:*)
    214         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    215         exit 0 ;;
    216     hp300:OpenBSD:*:*)
    217         echo m68k-unknown-openbsd${UNAME_RELEASE}
    218         exit 0 ;;
    219     mac68k:OpenBSD:*:*)
    220         echo m68k-unknown-openbsd${UNAME_RELEASE}
    221         exit 0 ;;
    222     macppc:OpenBSD:*:*)
    223         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    224         exit 0 ;;
    225     mvme68k:OpenBSD:*:*)
    226         echo m68k-unknown-openbsd${UNAME_RELEASE}
    227         exit 0 ;;
    228     mvme88k:OpenBSD:*:*)
    229         echo m88k-unknown-openbsd${UNAME_RELEASE}
    230         exit 0 ;;
    231     mvmeppc:OpenBSD:*:*)
    232         echo powerpc-unknown-openbsd${UNAME_RELEASE}
    233         exit 0 ;;
    234     pmax:OpenBSD:*:*)
    235         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    236         exit 0 ;;
    237     sgi:OpenBSD:*:*)
    238         echo mipseb-unknown-openbsd${UNAME_RELEASE}
    239         exit 0 ;;
    240     sun3:OpenBSD:*:*)
    241         echo m68k-unknown-openbsd${UNAME_RELEASE}
    242         exit 0 ;;
    243     wgrisc:OpenBSD:*:*)
    244         echo mipsel-unknown-openbsd${UNAME_RELEASE}
    245         exit 0 ;;
    246     *:OpenBSD:*:*)
    247         echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    248         exit 0 ;;
    249175    alpha:OSF1:*:*)
    250176        if test $UNAME_RELEASE = "V4.0"; then
    251177                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    252178        fi
    253         # According to Compaq, /usr/sbin/psrinfo has been available on
    254         # OSF/1 and Tru64 systems produced since 1995.  I hope that
    255         # covers most systems running today.  This code pipes the CPU
    256         # types through head -n 1, so we only detect the type of CPU 0.
    257         ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
    258         case "$ALPHA_CPU_TYPE" in
    259             "EV4 (21064)")
    260                 UNAME_MACHINE="alpha" ;;
    261             "EV4.5 (21064)")
    262                 UNAME_MACHINE="alpha" ;;
    263             "LCA4 (21066/21068)")
    264                 UNAME_MACHINE="alpha" ;;
    265             "EV5 (21164)")
    266                 UNAME_MACHINE="alphaev5" ;;
    267             "EV5.6 (21164A)")
    268                 UNAME_MACHINE="alphaev56" ;;
    269             "EV5.6 (21164PC)")
    270                 UNAME_MACHINE="alphapca56" ;;
    271             "EV5.7 (21164PC)")
    272                 UNAME_MACHINE="alphapca57" ;;
    273             "EV6 (21264)")
    274                 UNAME_MACHINE="alphaev6" ;;
    275             "EV6.7 (21264A)")
    276                 UNAME_MACHINE="alphaev67" ;;
    277             "EV6.8CB (21264C)")
    278                 UNAME_MACHINE="alphaev68" ;;
    279             "EV6.8AL (21264B)")
    280                 UNAME_MACHINE="alphaev68" ;;
    281             "EV6.8CX (21264D)")
    282                 UNAME_MACHINE="alphaev68" ;;
    283             "EV6.9A (21264/EV69A)")
    284                 UNAME_MACHINE="alphaev69" ;;
    285             "EV7 (21364)")
    286                 UNAME_MACHINE="alphaev7" ;;
    287             "EV7.9 (21364A)")
    288                 UNAME_MACHINE="alphaev79" ;;
    289         esac
    290179        # A Vn.n version is a released version.
    291180        # A Tn.n version is a released field test version.
    292181        # A Xn.n version is an unreleased experimental baselevel.
    293182        # 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
     192main:
     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
     207EOF
     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
    294236        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    295237        exit 0 ;;
    296     Alpha*:OpenVMS:*:*)
    297         echo alpha-hp-vms
    298         exit 0 ;;
    299238    Alpha\ *:Windows_NT*:*)
    300239        # How do we know it's Interix rather than the generic POSIX subsystem?
    301240        # Should we change UNAME_MACHINE based on the output of uname instead
     
    308247    Amiga*:UNIX_System_V:4.0:*)
    309248        echo m68k-unknown-sysv4
    310249        exit 0;;
     250    amiga:OpenBSD:*:*)
     251        echo m68k-unknown-openbsd${UNAME_RELEASE}
     252        exit 0 ;;
    311253    *:[Aa]miga[Oo][Ss]:*:*)
    312254        echo ${UNAME_MACHINE}-unknown-amigaos
    313255        exit 0 ;;
    314     *:[Mm]orph[Oo][Ss]:*:*)
    315         echo ${UNAME_MACHINE}-unknown-morphos
     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}
    316273        exit 0 ;;
    317274    *:OS/390:*:*)
    318275        echo i370-ibm-openedition
     
    334291    NILE*:*:*:dcosx)
    335292        echo pyramid-pyramid-svr4
    336293        exit 0 ;;
    337     DRS?6000:unix:4.0:6*)
    338         echo sparc-icl-nx6
    339         exit 0 ;;
    340     DRS?6000:UNIX_SV:4.2*:7*)
    341         case `/usr/bin/uname -p` in
    342             sparc) echo sparc-icl-nx7 && exit 0 ;;
    343         esac ;;
    344294    sun4H:SunOS:5.*:*)
    345295        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
    346296        exit 0 ;;
     
    369319        echo m68k-sun-sunos${UNAME_RELEASE}
    370320        exit 0 ;;
    371321    sun*:*:4.2BSD:*)
    372         UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
     322        UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    373323        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
    374324        case "`/bin/arch`" in
    375325            sun3)
     
    383333    aushp:SunOS:*:*)
    384334        echo sparc-auspex-sunos${UNAME_RELEASE}
    385335        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 ;;
    386342    # The situation for MiNT is a little confusing.  The machine name
    387343    # can be virtually everything (everything which is not
    388344    # "atarist" or "atariste" at least should have a processor
     
    409365    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    410366        echo m68k-unknown-mint${UNAME_RELEASE}
    411367        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}
     379        exit 0 ;;
    412380    powerpc:machten:*:*)
    413381        echo powerpc-apple-machten${UNAME_RELEASE}
    414382        exit 0 ;;
     
    447415          exit (-1);
    448416        }
    449417EOF
    450         $CC_FOR_BUILD -o $dummy $dummy.c \
    451           && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    452           && exit 0
     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
    453422        echo mips-mips-riscos${UNAME_RELEASE}
    454423        exit 0 ;;
    455424    Motorola:PowerMAX_OS:*:*)
    456425        echo powerpc-motorola-powermax
    457426        exit 0 ;;
    458     Motorola:*:4.3:PL8-*)
    459         echo powerpc-harris-powermax
    460         exit 0 ;;
    461     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    462         echo powerpc-harris-powermax
    463         exit 0 ;;
    464427    Night_Hawk:Power_UNIX:*:*)
    465428        echo powerpc-harris-powerunix
    466429        exit 0 ;;
     
    533496                        exit(0);
    534497                        }
    535498EOF
    536                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     499                $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
     500                rm -f $dummy.c $dummy
    537501                echo rs6000-ibm-aix3.2.5
    538502        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
    539503                echo rs6000-ibm-aix3.2.4
     
    542506        fi
    543507        exit 0 ;;
    544508    *:AIX:*:[45])
    545         IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
     509        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
    546510        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    547511                IBM_ARCH=rs6000
    548512        else
     
    582546            9000/31? )            HP_ARCH=m68000 ;;
    583547            9000/[34]?? )         HP_ARCH=m68k ;;
    584548            9000/[678][0-9][0-9])
    585                 if [ -x /usr/bin/getconf ]; then
    586                     sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     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`
    587553                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    588554                    case "${sc_cpu_version}" in
    589555                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     
    592558                        case "${sc_kernel_bits}" in
    593559                          32) HP_ARCH="hppa2.0n" ;;
    594560                          64) HP_ARCH="hppa2.0w" ;;
    595                           '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
    596561                        esac ;;
    597562                    esac
    598                 fi
    599                 if [ "${HP_ARCH}" = "" ]; then
    600                     eval $set_cc_for_build
    601                     sed 's/^              //' << EOF >$dummy.c
     563                  fi ;;
     564              esac
     565              if [ "${HP_ARCH}" = "" ]; then
     566              eval $set_cc_for_build
     567              sed 's/^              //' << EOF >$dummy.c
    602568
    603569              #define _HPUX_SOURCE
    604570              #include <stdlib.h>
     
    631597                  exit (0);
    632598              }
    633599EOF
    634                     (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
    635                     test -z "$HP_ARCH" && HP_ARCH=hppa
    636                 fi ;;
     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 ;;
    637604        esac
    638         if [ ${HP_ARCH} = "hppa2.0w" ]
    639         then
    640             # avoid double evaluation of $set_cc_for_build
    641             test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
    642             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
    643             then
    644                 HP_ARCH="hppa2.0w"
    645             else
    646                 HP_ARCH="hppa64"
    647             fi
    648         fi
    649605        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    650606        exit 0 ;;
    651607    ia64:HP-UX:*:*)
     
    679635          exit (0);
    680636        }
    681637EOF
    682         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
     638        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
     639        rm -f $dummy.c $dummy
    683640        echo unknown-hitachi-hiuxwe2
    684641        exit 0 ;;
    685642    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     
    707664    parisc*:Lites*:*:*)
    708665        echo hppa1.1-hp-lites
    709666        exit 0 ;;
     667    hppa*:OpenBSD:*:*)
     668        echo hppa-unknown-openbsd
     669        exit 0 ;;
    710670    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
    711671        echo c1-convex-bsd
    712672        exit 0 ;;
     
    725685    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
    726686        echo c4-convex-bsd
    727687        exit 0 ;;
     688    CRAY*X-MP:*:*:*)
     689        echo xmp-cray-unicos
     690        exit 0 ;;
    728691    CRAY*Y-MP:*:*:*)
    729692        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    730693        exit 0 ;;
     
    737700    CRAY*TS:*:*:*)
    738701        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    739702        exit 0 ;;
     703    CRAY*T3D:*:*:*)
     704        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     705        exit 0 ;;
    740706    CRAY*T3E:*:*:*)
    741707        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    742708        exit 0 ;;
    743709    CRAY*SV1:*:*:*)
    744710        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    745711        exit 0 ;;
    746     *:UNICOS/mp:*:*)
    747         echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    748         exit 0 ;;
     712    CRAY-2:*:*:*)
     713        echo cray2-cray-unicos
     714        exit 0 ;;
    749715    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    750716        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    751717        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    752718        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    753719        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    754720        exit 0 ;;
     721    hp300:OpenBSD:*:*)
     722        echo m68k-unknown-openbsd${UNAME_RELEASE}
     723        exit 0 ;;
    755724    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    756725        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    757726        exit 0 ;;
     
    761730    *:BSD/OS:*:*)
    762731        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
    763732        exit 0 ;;
    764     *:FreeBSD:*:*|*:GNU/FreeBSD:*:*)
    765         # Determine whether the default compiler uses glibc.
    766         eval $set_cc_for_build
    767         sed 's/^        //' << EOF >$dummy.c
    768         #include <features.h>
    769         #if __GLIBC__ >= 2
    770         LIBC=gnu
    771         #else
    772         LIBC=
    773         #endif
    774 EOF
    775         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    776         # GNU/FreeBSD systems have a "k" prefix to indicate we are using
    777         # FreeBSD's kernel, but not the complete OS.
    778         case ${LIBC} in gnu) kernel_only='k' ;; esac
    779         echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     733    *: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/[-_].*/\./'`
    780738        exit 0 ;;
    781739    i*:CYGWIN*:*)
    782740        echo ${UNAME_MACHINE}-pc-cygwin
     
    787745    i*:PW*:*)
    788746        echo ${UNAME_MACHINE}-pc-pw32
    789747        exit 0 ;;
    790     x86:Interix*:[34]*)
    791         echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
    792         exit 0 ;;
    793     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    794         echo i${UNAME_MACHINE}-pc-mks
    795         exit 0 ;;
    796748    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    797749        # How do we know it's Interix rather than the generic POSIX subsystem?
    798750        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    799751        # UNAME_MACHINE based on the output of uname instead of i386?
    800         echo i586-pc-interix
     752        echo i386-pc-interix
    801753        exit 0 ;;
    802754    i*:UWIN*:*)
    803755        echo ${UNAME_MACHINE}-pc-uwin
     
    815767        echo ${UNAME_MACHINE}-pc-minix
    816768        exit 0 ;;
    817769    arm*:Linux:*:*)
    818         echo ${UNAME_MACHINE}-${VENDOR}-linux
    819         exit 0 ;;
    820     cris:Linux:*:*)
    821         echo cris-axis-linux
     770        echo ${UNAME_MACHINE}-unknown-linux-gnu
    822771        exit 0 ;;
    823772    ia64:Linux:*:*)
    824         echo ${UNAME_MACHINE}-${VENDOR}-linux
     773        echo ${UNAME_MACHINE}-unknown-linux
    825774        exit 0 ;;
    826775    m68*:Linux:*:*)
    827         echo ${UNAME_MACHINE}-${VENDOR}-linux
     776        echo ${UNAME_MACHINE}-unknown-linux-gnu
    828777        exit 0 ;;
    829778    mips:Linux:*:*)
    830         eval $set_cc_for_build
    831         sed 's/^        //' << EOF >$dummy.c
    832         #undef CPU
    833         #undef mips
    834         #undef mipsel
    835         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    836         CPU=mipsel
    837         #else
    838         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    839         CPU=mips
    840         #else
    841         CPU=
    842         #endif
    843         #endif
    844 EOF
    845         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    846         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
    847         ;;
    848     mips64:Linux:*:*)
    849         eval $set_cc_for_build
    850         sed 's/^        //' << EOF >$dummy.c
    851         #undef CPU
    852         #undef mips64
    853         #undef mips64el
    854         #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
    855         CPU=mips64el
    856         #else
    857         #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
    858         CPU=mips64
    859         #else
    860         CPU=
    861         #endif
    862         #endif
    863 EOF
    864         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    865         test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     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
    866783        ;;
    867784    ppc:Linux:*:*)
    868         echo powerpc-${VENDOR}-linux
     785        echo powerpc-unknown-linux-gnu
    869786        exit 0 ;;
    870787    ppc64:Linux:*:*)
    871         echo powerpc64-${VENDOR}-linux
     788        echo powerpc64-unknown-linux-gnu
    872789        exit 0 ;;
    873790    alpha:Linux:*:*)
    874791        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     
    881798          EV68*) UNAME_MACHINE=alphaev68 ;;
    882799        esac
    883800        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    884         if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
    885         echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
     801        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     802        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
    886803        exit 0 ;;
    887804    parisc:Linux:*:* | hppa:Linux:*:*)
    888805        # Look for CPU level
    889806        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    890           PA7*) echo hppa1.1-${VENDOR}-linux ;;
    891           PA8*) echo hppa2.0-${VENDOR}-linux ;;
    892           *)    echo hppa-${VENDOR}-linux ;;
     807          PA7*) echo hppa1.1-unknown-linux-gnu ;;
     808          PA8*) echo hppa2.0-unknown-linux-gnu ;;
     809          *)    echo hppa-unknown-linux-gnu ;;
    893810        esac
    894811        exit 0 ;;
    895812    parisc64:Linux:*:* | hppa64:Linux:*:*)
    896         echo hppa64-${VENDOR}-linux
     813        echo hppa64-unknown-linux-gnu
    897814        exit 0 ;;
    898815    s390:Linux:*:* | s390x:Linux:*:*)
    899816        echo ${UNAME_MACHINE}-ibm-linux
    900817        exit 0 ;;
    901     sh64*:Linux:*:*)
    902         echo ${UNAME_MACHINE}-${VENDOR}-linux
    903         exit 0 ;;
    904818    sh*:Linux:*:*)
    905         echo ${UNAME_MACHINE}-${VENDOR}-linux
     819        echo ${UNAME_MACHINE}-unknown-linux-gnu
    906820        exit 0 ;;
    907821    sparc:Linux:*:* | sparc64:Linux:*:*)
    908         echo ${UNAME_MACHINE}-${VENDOR}-linux
     822        echo ${UNAME_MACHINE}-unknown-linux-gnu
    909823        exit 0 ;;
    910824    x86_64:Linux:*:*)
    911         echo x86_64-${VENDOR}-linux
     825        echo x86_64-unknown-linux-gnu
    912826        exit 0 ;;
    913827    i*86:Linux:*:*)
    914828        # The BFD linker knows what the default object file format is, so
    915829        # first see if it will tell us. cd to the root directory to prevent
    916830        # problems with other programs or directories called `ld' in the path.
    917         # Set LC_ALL=C to ensure ld outputs messages in English.
    918         ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
     831        ld_supported_targets=`cd /; ld --help 2>&1 \
    919832                         | sed -ne '/supported targets:/!d
    920833                                    s/[         ][      ]*/ /g
    921834                                    s/.*supported targets: *//
     
    923836                                    p'`
    924837        case "$ld_supported_targets" in
    925838          elf32-i386)
    926                 TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
     839                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
    927840                ;;
    928841          a.out-i386-linux)
    929                 echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
    930                 exit 0 ;;
     842                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
     843                exit 0 ;;               
    931844          coff-i386)
    932                 echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
     845                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
    933846                exit 0 ;;
    934847          "")
    935                 # Either a pre-BFD a.out linker (linuxoldld) or
     848                # Either a pre-BFD a.out linker (linux-gnuoldld) or
    936849                # one that does not give us useful --help.
    937                 echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
     850                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
    938851                exit 0 ;;
    939852        esac
    940853        # Determine whether the default compiler is a.out or elf
    941854        eval $set_cc_for_build
    942         sed 's/^        //' << EOF >$dummy.c
    943         #include <features.h>
    944         #ifdef __ELF__
    945         # ifdef __GLIBC__
    946         #  if __GLIBC__ >= 2
    947         LIBC=gnu
    948         #  else
    949         LIBC=gnulibc1
    950         #  endif
    951         # else
    952         LIBC=gnulibc1
    953         # endif
    954         #else
    955         #ifdef __INTEL_COMPILER
    956         LIBC=gnu
    957         #else
    958         LIBC=gnuaout
    959         #endif
    960         #endif
     855        cat >$dummy.c <<EOF
     856#include <features.h>
     857#ifdef __cplusplus
     858#include <stdio.h>  /* for printf() prototype */
     859        int main (int argc, char *argv[]) {
     860#else
     861        int main (argc, argv) int argc; char *argv[]; {
     862#endif
     863#ifdef __ELF__
     864# ifdef __GLIBC__
     865#  if __GLIBC__ >= 2
     866    printf ("%s-pc-linux-gnu\n", argv[1]);
     867#  else
     868    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     869#  endif
     870# else
     871   printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     872# endif
     873#else
     874  printf ("%s-pc-linux-gnuaout\n", argv[1]);
     875#endif
     876  return 0;
     877}
    961878EOF
    962         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    963         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
     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
    964881        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    965882        ;;
    966883    i*86:DYNIX/ptx:4*:*)
     
    977894        # Use sysv4.2uw... so that sysv4* matches it.
    978895        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    979896        exit 0 ;;
    980     i*86:OS/2:*:*)
    981         # If we were able to find `uname', then EMX Unix compatibility
    982         # is probably installed.
    983         echo ${UNAME_MACHINE}-pc-os2-emx
    984         exit 0 ;;
    985     i*86:XTS-300:*:STOP)
    986         echo ${UNAME_MACHINE}-unknown-stop
    987         exit 0 ;;
    988     i*86:atheos:*:*)
    989         echo ${UNAME_MACHINE}-unknown-atheos
    990         exit 0 ;;
    991     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    992         echo i386-unknown-lynxos${UNAME_RELEASE}
    993         exit 0 ;;
    994     i*86:*DOS:*:*)
    995         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    996         exit 0 ;;
    997897    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    998898        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    999899        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
     
    1015915                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
    1016916                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
    1017917        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    1018                 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
    1019                 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
    1020                 (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
     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) \
    1021921                        && UNAME_MACHINE=i586
    1022                 (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
     922                (/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
    1023923                        && UNAME_MACHINE=i686
    1024                 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
     924                (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
    1025925                        && UNAME_MACHINE=i686
    1026926                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
    1027927        else
    1028928                echo ${UNAME_MACHINE}-pc-sysv32
    1029929        fi
    1030930        exit 0 ;;
     931    i*86:*DOS:*:*)
     932        echo ${UNAME_MACHINE}-pc-msdosdjgpp
     933        exit 0 ;;
    1031934    pc:*:*:*)
    1032935        # Left here for compatibility:
    1033936        # uname -m prints for DJGPP always 'pc', but it prints nothing about
     
    1051954        # "miniframe"
    1052955        echo m68010-convergent-sysv
    1053956        exit 0 ;;
    1054     mc68k:UNIX:SYSTEM5:3.51m)
    1055         echo m68k-convergent-sysv
    1056         exit 0 ;;
    1057     M680?0:D-NIX:5.3:*)
    1058         echo m68k-diab-dnix
    1059         exit 0 ;;
    1060957    M68*:*:R3V[567]*:*)
    1061958        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1062     3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.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)
    1063960        OS_REL=''
    1064961        test -r /etc/.relid \
    1065962        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
     
    1076973    mc68030:UNIX_System_V:4.*:*)
    1077974        echo m68k-atari-sysv4
    1078975        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 ;;
    1079979    TSUNAMI:LynxOS:2.*:*)
    1080980        echo sparc-unknown-lynxos${UNAME_RELEASE}
    1081981        exit 0 ;;
     
    11471047    SX-5:SUPER-UX:*:*)
    11481048        echo sx5-nec-superux${UNAME_RELEASE}
    11491049        exit 0 ;;
    1150     SX-6:SUPER-UX:*:*)
    1151         echo sx6-nec-superux${UNAME_RELEASE}
    1152         exit 0 ;;
    11531050    Power*:Rhapsody:*:*)
    11541051        echo powerpc-apple-rhapsody${UNAME_RELEASE}
    11551052        exit 0 ;;
     
    11571054        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
    11581055        exit 0 ;;
    11591056    *:Darwin:*:*)
    1160         case `uname -p` in
    1161             *86) UNAME_PROCESSOR=i686 ;;
    1162             powerpc) UNAME_PROCESSOR=powerpc ;;
    1163         esac
    1164         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     1057        echo `uname -p`-apple-darwin${UNAME_RELEASE}
    11651058        exit 0 ;;
    11661059    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    1167         UNAME_PROCESSOR=`uname -p`
    1168         if test "$UNAME_PROCESSOR" = "x86"; then
    1169                 UNAME_PROCESSOR=i386
     1060        if test "${UNAME_MACHINE}" = "x86pc"; then
    11701061                UNAME_MACHINE=pc
    11711062        fi
    1172         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     1063        echo `uname -p`-${UNAME_MACHINE}-nto-qnx
    11731064        exit 0 ;;
    11741065    *:QNX:*:4*)
    11751066        echo i386-pc-qnx
    11761067        exit 0 ;;
    1177     NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
     1068    NSR-[KW]:NONSTOP_KERNEL:*:*)
    11781069        echo nsr-tandem-nsk${UNAME_RELEASE}
    11791070        exit 0 ;;
    11801071    *:NonStop-UX:*:*)
     
    11971088        fi
    11981089        echo ${UNAME_MACHINE}-unknown-plan9
    11991090        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 ;;
    12001096    *:TOPS-10:*:*)
    12011097        echo pdp10-unknown-tops10
    12021098        exit 0 ;;
     
    12151111    *:ITS:*:*)
    12161112        echo pdp10-unknown-its
    12171113        exit 0 ;;
    1218     SEI:*:*:SEIUX)
    1219         echo mips-sei-seiux${UNAME_RELEASE}
     1114    i*86:XTS-300:*:STOP)
     1115        echo ${UNAME_MACHINE}-unknown-stop
     1116        exit 0 ;;
     1117    i*86:atheos:*:*)
     1118        echo ${UNAME_MACHINE}-unknown-atheos
    12201119        exit 0 ;;
    12211120esac
    12221121
     
    13381237}
    13391238EOF
    13401239
    1341 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
     1240$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
     1241rm -f $dummy.c $dummy
    13421242
    13431243# Apollos put the system type in the environment.
    13441244
  • ac3dec/config.sub

    diff -uNr alsa-tools-1.0.8/ac3dec/config.sub alsa-tools-1.0.8-mod/ac3dec/config.sub
    old new  
    11#! /bin/sh
    2 # Configuration validation subroutine script, version 1.1.
    3 #   Copyright (C) 1991, 92-97, 1998, 1999 Free Software Foundation, Inc.
     2# Configuration validation subroutine script.
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     4#   Free Software Foundation, Inc.
     5
     6timestamp='2001-09-07'
     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>.
     33#
    2834# Configuration subroutine to validate and canonicalize a configuration type.
    2935# Supply the specified configuration type as an argument.
    3036# If it is invalid, we print an error message on stderr and exit with code 1.
     
    4551#       CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
    4652# It is wrong to echo any other type of specification.
    4753
    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
     54me=`echo "$0" | sed -e 's,.*/,,'`
    5655
    57 # First pass through any local machine types.
    58 case $1 in
    59         *local*)
    60                 echo $1
    61                 exit 0
    62                 ;;
    63         *)
    64         ;;
     56usage="\
     57Usage: $0 [OPTION] CPU-MFR-OPSYS
     58       $0 [OPTION] ALIAS
     59
     60Canonicalize a configuration name.
     61
     62Operation modes:
     63  -h, --help         print this help, then exit
     64  -t, --time-stamp   print date of last modification, then exit
     65  -v, --version      print version number, then exit
     66
     67Report bugs and patches to <config-patches@gnu.org>."
     68
     69version="\
     70GNU config.sub ($timestamp)
     71
     72Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     73Free Software Foundation, Inc.
     74
     75This is free software; see the source for copying conditions.  There is NO
     76warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     77
     78help="
     79Try \`$me --help' for more information."
     80
     81# Parse command line
     82while test $# -gt 0 ; do
     83  case $1 in
     84    --time-stamp | --time* | -t )
     85       echo "$timestamp" ; exit 0 ;;
     86    --version | -v )
     87       echo "$version" ; exit 0 ;;
     88    --help | --h* | -h )
     89       echo "$usage"; exit 0 ;;
     90    -- )     # Stop option processing
     91       shift; break ;;
     92    - ) # Use stdin as input.
     93       break ;;
     94    -* )
     95       echo "$me: invalid option $1$help"
     96       exit 1 ;;
     97
     98    *local*)
     99       # First pass through any local machine types.
     100       echo $1
     101       exit 0;;
     102
     103    * )
     104       break ;;
     105  esac
     106done
     107
     108case $# in
     109 0) echo "$me: missing argument$help" >&2
     110    exit 1;;
     111 1) ;;
     112 *) echo "$me: too many arguments$help" >&2
     113    exit 1;;
    65114esac
    66115
    67116# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    68117# Here we must recognize all the valid KERNEL-OS combinations.
    69118maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    70119case $maybe_os in
    71   linux-*)
     120  nto-qnx* | linux-gnu* | storm-chaos* | os2-emx* | windows32-*)
    72121    os=-$maybe_os
    73122    basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    74123    ;;
     
    94143        -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
    95144        -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
    96145        -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
    97         -apple)
     146        -apple | -axis)
    98147                os=
    99148                basic_machine=$1
    100149                ;;
     
    108157                os=-vxworks
    109158                basic_machine=$1
    110159                ;;
     160        -chorusos*)
     161                os=-chorusos
     162                basic_machine=$1
     163                ;;
     164        -chorusrdb)
     165                os=-chorusrdb
     166                basic_machine=$1
     167                ;;
    111168        -hiux*)
    112169                os=-hiuxwe2
    113170                ;;
     
    166223case $basic_machine in
    167224        # Recognize the basic CPU types without company name.
    168225        # Some are omitted here because they have special meanings below.
    169         tahoe | i860 | ia64 | m32r | m68k | m68000 | m88k | ns32k | arc | arm \
    170                 | arme[lb] | pyramid | mn10200 | mn10300 | tron | a29k \
    171                 | 580 | i960 | h8300 \
    172                 | hppa | hppa1.0 | hppa1.1 | hppa2.0 | hppa2.0w | hppa2.0n \
    173                 | alpha | alphaev[4-7] | alphaev56 | alphapca5[67] \
    174                 | we32k | ns16k | clipper | i370 | sh | powerpc | powerpcle \
    175                 | 1750a | dsp16xx | pdp11 | mips16 | mips64 | mipsel | mips64el \
    176                 | mips64orion | mips64orionel | mipstx39 | mipstx39el \
    177                 | mips64vr4300 | mips64vr4300el | mips64vr4100 | mips64vr4100el \
    178                 | mips64vr5000 | miprs64vr5000el | mcore \
    179                 | sparc | sparclet | sparclite | sparc64 | sparcv9 | v850 | c4x \
    180                 | thumb | d10v | fr30)
     226        1750a | 580 \
     227        | a29k \
     228        | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
     229        | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
     230        | c4x | clipper \
     231        | d10v | d30v | dsp16xx \
     232        | fr30 \
     233        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
     234        | 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 | mipseb | mipsel | mipsle | mipstx39 | mipstx39el \
     240        | mipsisa32 \
     241        | mn10200 | mn10300 \
     242        | ns16k | ns32k \
     243        | openrisc \
     244        | pdp10 | pdp11 | pj | pjl \
     245        | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
     246        | pyramid \
     247        | s390 | s390x \
     248        | sh | sh[34] | sh[34]eb | shbe | shle \
     249        | sparc | sparc64 | sparclet | sparclite | sparcv9 | sparcv9b \
     250        | stormy16 | strongarm \
     251        | tahoe | thumb | tic80 | tron \
     252        | v850 \
     253        | we32k \
     254        | x86 | xscale \
     255        | z8k)
    181256                basic_machine=$basic_machine-unknown
    182257                ;;
    183         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | z8k | v70 | h8500 | w65 | pj | pjl)
     258        m6811 | m68hc11 | m6812 | m68hc12)
     259                # Motorola 68HC11/12.
     260                basic_machine=$basic_machine-unknown
     261                os=-none
     262                ;;
     263        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
    184264                ;;
    185265
    186266        # We use `pc' rather than `unknown'
    187267        # because (1) that's what they normally are, and
    188268        # (2) the word "unknown" tends to confuse beginning users.
    189         i[34567]86)
    190           if test -e /etc/SuSE-release ; then
    191                 basic_machine=$basic_machine-suse
    192                 os=-linux
    193           else
    194                 basic_machine=$basic_machine-pc
    195           fi
    196           ;;
    197         s390 | s390-suse)
    198           basic_machine=s390-suse
    199           ;;
    200         s390-unknown)
    201           basic_machine=s390-unknown
    202           if test -e /etc/SuSE-release ; then
    203                 basic_machine=s390-suse
    204                 os=-linux
    205           fi
    206           ;;
    207         s390-ibm)
    208           basic_machine=s390-ibm
    209           ;;
    210         s390-redhat)
    211           basic_machine=s390-redhat
     269        i*86 | x86_64)
     270          basic_machine=$basic_machine-pc
    212271          ;;
    213272        # Object if more than one company name word.
    214273        *-*-*)
     
    216275                exit 1
    217276                ;;
    218277        # Recognize the basic CPU types with company name.
    219         # FIXME: clean up the formatting here.
    220         vax-* | tahoe-* | i[34567]86-* | i860-* | ia64-* | m32r-* | m68k-* | m68000-* \
    221               | m88k-* | sparc-* | ns32k-* | fx80-* | arc-* | arm-* | c[123]* \
    222               | mips-* | pyramid-* | tron-* | a29k-* | romp-* | rs6000-* \
    223               | power-* | none-* | 580-* | cray2-* | h8300-* | h8500-* | i960-* \
    224               | xmp-* | ymp-* \
    225               | hppa-* | hppa1.0-* | hppa1.1-* | hppa2.0-* | hppa2.0w-* | hppa2.0n-* \
    226               | alpha-* | alphaev[4-7]-* | alphaev56-* | alphapca5[67]-* \
    227               | we32k-* | cydra-* | ns16k-* | pn-* | np1-* | xps100-* \
    228               | clipper-* | orion-* \
    229               | sparclite-* | pdp11-* | sh-* | powerpc-* | powerpcle-* \
    230               | sparc64-* | sparcv9-* | sparc86x-* | mips16-* | mips64-* | mipsel-* \
    231               | mips64el-* | mips64orion-* | mips64orionel-* \
    232               | mips64vr4100-* | mips64vr4100el-* | mips64vr4300-* | mips64vr4300el-* \
    233               | mipstx39-* | mipstx39el-* | mcore-* \
    234               | f301-* | armv*-* | t3e-* \
    235               | m88110-* | m680[01234]0-* | m683?2-* | m68360-* | z8k-* | d10v-* \
    236               | thumb-* | v850-* | d30v-* | tic30-* | c30-* | fr30-* )
     278        580-* \
     279        | a29k-* \
     280        | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
     281        | alphapca5[67]-* | arc-* \
     282        | arm-*  | armbe-* | armle-* | armv*-* \
     283        | bs2000-* \
     284        | c[123]* | c30-* | [cjt]90-* | c54x-* \
     285        | clipper-* | cray2-* | cydra-* \
     286        | d10v-* | d30v-* \
     287        | elxsi-* \
     288        | f30[01]-* | f700-* | fr30-* | fx80-* \
     289        | h8300-* | h8500-* \
     290        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
     291        | i*86-* | i860-* | i960-* | ia64-* \
     292        | m32r-* \
     293        | m68000-* | m680[01234]0-* | m68360-* | m683?2-* | m68k-* \
     294        | m88110-* | m88k-* | mcore-* \
     295        | mips-* | mips16-* | mips64-* | mips64el-* | mips64orion-* \
     296        | mips64orionel-* | mips64vr4100-* | mips64vr4100el-* \
     297        | mips64vr4300-* | mips64vr4300el-* | mipsbe-* | mipseb-* \
     298        | mipsle-* | mipsel-* | mipstx39-* | mipstx39el-* \
     299        | none-* | np1-* | ns16k-* | ns32k-* \
     300        | orion-* \
     301        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
     302        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
     303        | pyramid-* \
     304        | romp-* | rs6000-* \
     305        | s390-* | s390x-* \
     306        | sh-* | sh[34]-* | sh[34]eb-* | shbe-* | shle-* \
     307        | sparc-* | sparc64-* | sparc86x-* | sparclite-* \
     308        | sparcv9-* | sparcv9b-* | stormy16-* | strongarm-* | sv1-* \
     309        | t3e-* | tahoe-* | thumb-* | tic30-* | tic54x-* | tic80-* | tron-* \
     310        | v850-* | vax-* \
     311        | we32k-* \
     312        | x86-* | x86_64-* | xmp-* | xps100-* | xscale-* \
     313        | ymp-* \
     314        | z8k-*)
    237315                ;;
    238316        # Recognize the various machine names and aliases which stand
    239317        # for a CPU type and a company and sometimes even an OS.
     
    270348                os=-sysv
    271349                ;;
    272350        amiga | amiga-*)
    273                 basic_machine=m68k-cbm
     351                basic_machine=m68k-unknown
    274352                ;;
    275353        amigaos | amigados)
    276                 basic_machine=m68k-cbm
     354                basic_machine=m68k-unknown
    277355                os=-amigaos
    278356                ;;
    279357        amigaunix | amix)
    280                 basic_machine=m68k-cbm
     358                basic_machine=m68k-unknown
    281359                os=-sysv4
    282360                ;;
    283361        apollo68)
     
    324402                basic_machine=cray2-cray
    325403                os=-unicos
    326404                ;;
    327         [ctj]90-cray)
    328                 basic_machine=c90-cray
     405        [cjt]90)
     406                basic_machine=${basic_machine}-cray
    329407                os=-unicos
    330408                ;;
    331409        crds | unos)
    332410                basic_machine=m68k-crds
    333411                ;;
     412        cris | cris-* | etrax*)
     413                basic_machine=cris-axis
     414                ;;
    334415        da30 | da30-*)
    335416                basic_machine=m68k-da30
    336417                ;;
     
    378459                basic_machine=tron-gmicro
    379460                os=-sysv
    380461                ;;
     462        go32)
     463                basic_machine=i386-pc
     464                os=-go32
     465                ;;
    381466        h3050r* | hiux*)
    382467                basic_machine=hppa1.1-hitachi
    383468                os=-hiuxwe2
     
    453538                basic_machine=i370-ibm
    454539                ;;
    455540# I'm not sure what "Sysv32" means.  Should this be sysv3.2?
    456         i[34567]86v32)
     541        i*86v32)
    457542                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    458543                os=-sysv32
    459544                ;;
    460         i[34567]86v4*)
     545        i*86v4*)
    461546                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    462547                os=-sysv4
    463548                ;;
    464         i[34567]86v)
     549        i*86v)
    465550                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    466551                os=-sysv
    467552                ;;
    468         i[34567]86sol2)
     553        i*86sol2)
    469554                basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
    470555                os=-solaris2
    471556                ;;
     
    477562                basic_machine=i386-unknown
    478563                os=-vsta
    479564                ;;
    480         i386-go32 | go32)
    481                 basic_machine=i386-unknown
    482                 os=-go32
    483                 ;;
    484         i386-mingw32 | mingw32)
    485                 basic_machine=i386-unknown
    486                 os=-mingw32
    487                 ;;
    488         i386-qnx | qnx)
    489                 basic_machine=i386-qnx
    490                 ;;
    491565        iris | iris4d)
    492566                basic_machine=mips-sgi
    493567                case $os in
     
    513587                basic_machine=ns32k-utek
    514588                os=-sysv
    515589                ;;
     590        mingw32)
     591                basic_machine=i386-pc
     592                os=-mingw32
     593                ;;
    516594        miniframe)
    517595                basic_machine=m68000-convergent
    518596                ;;
     
    522600                ;;
    523601        mipsel*-linux*)
    524602                basic_machine=mipsel-unknown
    525                 test -e /etc/SuSE-release && basic_machine=mipsel-suse
    526                 os=-linux
     603                os=-linux-gnu
    527604                ;;
    528605        mips*-linux*)
    529606                basic_machine=mips-unknown
    530                 test -e /etc/SuSE-release && basic_machine=mips-suse
    531                 os=-linux
     607                os=-linux-gnu
    532608                ;;
    533609        mips3*-*)
    534610                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     
    536612        mips3*)
    537613                basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
    538614                ;;
     615        mmix*)
     616                basic_machine=mmix-knuth
     617                os=-mmixware
     618                ;;
    539619        monitor)
    540620                basic_machine=m68k-rom68k
    541621                os=-coff
    542622                ;;
    543623        msdos)
    544                 basic_machine=i386-unknown
     624                basic_machine=i386-pc
    545625                os=-msdos
    546626                ;;
    547627        mvs)
     
    605685                basic_machine=i960-intel
    606686                os=-mon960
    607687                ;;
     688        nonstopux)
     689                basic_machine=mips-compaq
     690                os=-nonstopux
     691                ;;
    608692        np1)
    609693                basic_machine=np1-gould
    610694                ;;
     695        nsr-tandem)
     696                basic_machine=nsr-tandem
     697                ;;
    611698        op50n-* | op60c-*)
    612699                basic_machine=hppa1.1-oki
    613700                os=-proelf
     
    637724        pc532 | pc532-*)
    638725                basic_machine=ns32k-pc532
    639726                ;;
    640         pentium | p5 | k5 | k6 | nexen)
     727        pentium | p5 | k5 | k6 | nexgen)
    641728                basic_machine=i586-pc
    642729                ;;
    643         pentiumpro | p6 | 6x86)
     730        pentiumpro | p6 | 6x86 | athlon)
    644731                basic_machine=i686-pc
    645732                ;;
    646733        pentiumii | pentium2)
    647                 basic_machine=i786-pc
     734                basic_machine=i686-pc
    648735                ;;
    649         pentium-* | p5-* | k5-* | k6-* | nexen-*)
     736        pentium-* | p5-* | k5-* | k6-* | nexgen-*)
    650737                basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
    651738                ;;
    652         pentiumpro-* | p6-* | 6x86-*)
     739        pentiumpro-* | p6-* | 6x86-* | athlon-*)
    653740                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    654741                ;;
    655742        pentiumii-* | pentium2-*)
    656                 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     743                basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
    657744                ;;
    658745        pn)
    659746                basic_machine=pn-gould
    660747                ;;
    661         power)  basic_machine=rs6000-ibm
     748        power)  basic_machine=power-ibm
    662749                ;;
    663750        ppc)    basic_machine=powerpc-unknown
    664751                ;;
     
    670757        ppcle-* | powerpclittle-*)
    671758                basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
    672759                ;;
     760        ppc64)  basic_machine=powerpc64-unknown
     761                ;;
     762        ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
     763                ;;
     764        ppc64le | powerpc64little | ppc64-le | powerpc64-little)
     765                basic_machine=powerpc64le-unknown
     766                ;;
     767        ppc64le-* | powerpc64little-*)
     768                basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
     769                ;;
    673770        ps2)
    674771                basic_machine=i386-ibm
    675772                ;;
     773        pw32)
     774                basic_machine=i586-unknown
     775                os=-pw32
     776                ;;
    676777        rom68k)
    677778                basic_machine=m68k-rom68k
    678779                os=-coff
     
    752853        sun386 | sun386i | roadrunner)
    753854                basic_machine=i386-sun
    754855                ;;
     856        sv1)
     857                basic_machine=sv1-cray
     858                os=-unicos
     859                ;;
    755860        symmetry)
    756861                basic_machine=i386-sequent
    757862                os=-dynix
     
    760865                basic_machine=t3e-cray
    761866                os=-unicos
    762867                ;;
     868        tic54x | c54x*)
     869                basic_machine=tic54x-unknown
     870                os=-coff
     871                ;;
    763872        tx39)
    764873                basic_machine=mipstx39-unknown
    765874                ;;
     
    812921                basic_machine=hppa1.1-winbond
    813922                os=-proelf
    814923                ;;
     924        windows32)
     925                basic_machine=i386-pc
     926                os=-windows32-msvcrt
     927                ;;
    815928        xmp)
    816929                basic_machine=xmp-cray
    817930                os=-unicos
     
    840953                basic_machine=hppa1.1-oki
    841954                ;;
    842955        mips)
    843                 if [ x$os = x-linux -o x$os = x-linux-gnu ]; then
     956                if [ x$os = x-linux-gnu ]; then
    844957                        basic_machine=mips-unknown
    845                         test -e /etc/SuSE-release && basic_machine=mips-suse
    846                         os=-linux
    847958                else
    848959                        basic_machine=mips-mips
    849960                fi
     
    857968        vax)
    858969                basic_machine=vax-dec
    859970                ;;
     971        pdp10)
     972                # there are many clones, so DEC is not a safe bet
     973                basic_machine=pdp10-unknown
     974                ;;
    860975        pdp11)
    861976                basic_machine=pdp11-dec
    862977                ;;
    863978        we32k)
    864979                basic_machine=we32k-att
    865980                ;;
    866         sparc | sparcv9)
     981        sh3 | sh4 | sh3eb | sh4eb)
     982                basic_machine=sh-unknown
     983                ;;
     984        sparc | sparcv9 | sparcv9b)
    867985                basic_machine=sparc-sun
    868986                ;;
    869987        cydra)
     
    8851003                basic_machine=c4x-none
    8861004                os=-coff
    8871005                ;;
     1006        *-unknown)
     1007                # Make sure to match an already-canonicalized machine name.
     1008                ;;
    8881009        *)
    8891010                echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
    8901011                exit 1
     
    9241045                os=-sysv4.2uw
    9251046                ;;
    9261047        -gnu/linux*)
    927                 os=`echo $os | sed -e 's|gnu/linux|linux|'`
     1048                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
    9281049                ;;
    9291050        # First accept the basic system types.
    9301051        # The portable systems comes first.
     
    9411062              | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    9421063              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    9431064              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
     1065              | -chorusos* | -chorusrdb* \
    9441066              | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    945               | -mingw32* | -linux-* | -uxpv* | -beos* | -mpeix* | -udk* \
    946               | -interix* | -uwin* | -rhapsody* | -opened* | -openstep* | -oskit*)
     1067              | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \
     1068              | -interix* | -uwin* | -rhapsody* | -darwin* | -opened* \
     1069              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
     1070              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
     1071              | -os2* | -vos*)
    9471072        # Remember, each alternative MUST END IN *, to match a version number.
    9481073                ;;
     1074        -qnx*)
     1075                case $basic_machine in
     1076                    x86-* | i*86-*)
     1077                        ;;
     1078                    *)
     1079                        os=-nto$os
     1080                        ;;
     1081                esac
     1082                ;;
     1083        -nto*)
     1084                os=-nto-qnx
     1085                ;;
    9491086        -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    9501087              | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
    951               | -macos* | -mpw* | -magic* | -mon960* | -lnews*)
     1088              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    9521089                ;;
    9531090        -mac*)
    9541091                os=`echo $os | sed -e 's|mac|macos|'`
    9551092                ;;
    9561093        -linux*)
    957                 os=`echo $os | sed -e 's|linux-gnu|linux|'`
     1094                os=`echo $os | sed -e 's|linux|linux-gnu|'`
    9581095                ;;
    9591096        -sunos5*)
    9601097                os=`echo $os | sed -e 's|sunos5|solaris2|'`
     
    9651102        -opened*)
    9661103                os=-openedition
    9671104                ;;
     1105        -wince*)
     1106                os=-wince
     1107                ;;
    9681108        -osfrose*)
    9691109                os=-osfrose
    9701110                ;;
     
    9891129        -ns2 )
    9901130                os=-nextstep2
    9911131                ;;
     1132        -nsk*)
     1133                os=-nsk
     1134                ;;
    9921135        # Preserve the version number of sinix5.
    9931136        -sinix5.*)
    9941137                os=`echo $os | sed -e 's|sinix|sysv|'`
     
    10021145        -oss*)
    10031146                os=-sysv3
    10041147                ;;
    1005         -qnx)
    1006                 os=-qnx4
    1007                 ;;
    10081148        -svr4)
    10091149                os=-sysv4
    10101150                ;;
     
    10261166        -xenix)
    10271167                os=-xenix
    10281168                ;;
    1029         -*mint | -*MiNT)
     1169        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    10301170                os=-mint
    10311171                ;;
    10321172        -none)
     
    10601200        arm*-semi)
    10611201                os=-aout
    10621202                ;;
     1203        pdp10-*)
     1204                os=-tops20
     1205                ;;
    10631206        pdp11-*)
    10641207                os=-none
    10651208                ;;
     
    11681311        *-masscomp)
    11691312                os=-rtu
    11701313                ;;
    1171         f301-fujitsu)
     1314        f30[01]-fujitsu | f700-fujitsu)
    11721315                os=-uxpv
    11731316                ;;
    11741317        *-rom68k)
     
    12461389                        -mpw* | -macos*)
    12471390                                vendor=apple
    12481391                                ;;
    1249                         -*mint | -*MiNT)
     1392                        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    12501393                                vendor=atari
    12511394                                ;;
     1395                        -vos*)
     1396                                vendor=stratus
     1397                                ;;
    12521398                esac
    12531399                basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
    12541400                ;;
    12551401esac
    12561402
    12571403echo $basic_machine$os
     1404exit 0
     1405
     1406# Local variables:
     1407# eval: (add-hook 'write-file-hooks 'time-stamp)
     1408# time-stamp-start: "timestamp='"
     1409# time-stamp-format: "%:y-%02m-%02d"
     1410# time-stamp-end: "'"
     1411# End:
Note: See TracBrowser for help on using the repository browser.