IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 3, 2005, 1:23:42 PM (21 years ago)
Author:
desonia
Message:

initial tweak to get things to nominally work.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/config.guess

    r3118 r3123  
    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.
    5 
    6 timestamp='2002-10-21'
     4#   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
     5
     6timestamp='2004-08-11'
    77
    88# This file is free software; you can redistribute it and/or modify it
     
    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
     
    9999# use `HOST_CC' if defined, but it is deprecated.
    100100
    101 # This shell variable is my proudest work .. or something. --bje
    102 
    103 set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
    104 (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
    105    || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
    106 dummy=$tmpdir/dummy ;
    107 files="$dummy.c $dummy.o $dummy.rel $dummy" ;
    108 trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
     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" ;
    109113case $CC_FOR_BUILD,$HOST_CC,$CC in
    110114 ,,)    echo "int x;" > $dummy.c ;
     
    114118          fi ;
    115119        done ;
    116         rm -f $files ;
    117120        if test x"$CC_FOR_BUILD" = x ; then
    118121          CC_FOR_BUILD=no_compiler_found ;
     
    121124 ,,*)   CC_FOR_BUILD=$CC ;;
    122125 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
    123 esac ;
    124 unset files'
     126esac ;'
    125127
    126128# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
     
    134136UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    135137UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
     138
     139case "${UNAME_MACHINE}" in
     140    i?86)
     141        test -z "$VENDOR" && VENDOR=pc
     142        ;;
     143    *)
     144        test -z "$VENDOR" && VENDOR=unknown
     145        ;;
     146esac
     147test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
    136148
    137149# Note: order is significant - the case branches are not exclusive.
     
    179191        esac
    180192        # The OS release
    181         release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     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
    182205        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
    183206        # contains redundant information, the shorter form:
     
    185208        echo "${machine}-${os}${release}"
    186209        exit 0 ;;
     210    amd64:OpenBSD:*:*)
     211        echo x86_64-unknown-openbsd${UNAME_RELEASE}
     212        exit 0 ;;
    187213    amiga:OpenBSD:*:*)
    188214        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    191217        echo mipsel-unknown-openbsd${UNAME_RELEASE}
    192218        exit 0 ;;
     219    cats:OpenBSD:*:*)
     220        echo arm-unknown-openbsd${UNAME_RELEASE}
     221        exit 0 ;;
    193222    hp300:OpenBSD:*:*)
    194223        echo m68k-unknown-openbsd${UNAME_RELEASE}
    195224        exit 0 ;;
     225    luna88k:OpenBSD:*:*)
     226        echo m88k-unknown-openbsd${UNAME_RELEASE}
     227        exit 0 ;;
    196228    mac68k:OpenBSD:*:*)
    197229        echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    224256        echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
    225257        exit 0 ;;
     258    *:ekkoBSD:*:*)
     259        echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     260        exit 0 ;;
     261    macppc:MirBSD:*:*)
     262        echo powerppc-unknown-mirbsd${UNAME_RELEASE}
     263        exit 0 ;;
     264    *:MirBSD:*:*)
     265        echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     266        exit 0 ;;
    226267    alpha:OSF1:*:*)
    227         if test $UNAME_RELEASE = "V4.0"; then
     268        case $UNAME_RELEASE in
     269        *4.0)
    228270                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
    229         fi
     271                ;;
     272        *5.*)
     273                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
     274                ;;
     275        esac
     276        # According to Compaq, /usr/sbin/psrinfo has been available on
     277        # OSF/1 and Tru64 systems produced since 1995.  I hope that
     278        # covers most systems running today.  This code pipes the CPU
     279        # types through head -n 1, so we only detect the type of CPU 0.
     280        ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
     281        case "$ALPHA_CPU_TYPE" in
     282            "EV4 (21064)")
     283                UNAME_MACHINE="alpha" ;;
     284            "EV4.5 (21064)")
     285                UNAME_MACHINE="alpha" ;;
     286            "LCA4 (21066/21068)")
     287                UNAME_MACHINE="alpha" ;;
     288            "EV5 (21164)")
     289                UNAME_MACHINE="alphaev5" ;;
     290            "EV5.6 (21164A)")
     291                UNAME_MACHINE="alphaev56" ;;
     292            "EV5.6 (21164PC)")
     293                UNAME_MACHINE="alphapca56" ;;
     294            "EV5.7 (21164PC)")
     295                UNAME_MACHINE="alphapca57" ;;
     296            "EV6 (21264)")
     297                UNAME_MACHINE="alphaev6" ;;
     298            "EV6.7 (21264A)")
     299                UNAME_MACHINE="alphaev67" ;;
     300            "EV6.8CB (21264C)")
     301                UNAME_MACHINE="alphaev68" ;;
     302            "EV6.8AL (21264B)")
     303                UNAME_MACHINE="alphaev68" ;;
     304            "EV6.8CX (21264D)")
     305                UNAME_MACHINE="alphaev68" ;;
     306            "EV6.9A (21264/EV69A)")
     307                UNAME_MACHINE="alphaev69" ;;
     308            "EV7 (21364)")
     309                UNAME_MACHINE="alphaev7" ;;
     310            "EV7.9 (21364A)")
     311                UNAME_MACHINE="alphaev79" ;;
     312        esac
     313        # A Pn.n version is a patched version.
    230314        # A Vn.n version is a released version.
    231315        # A Tn.n version is a released field test version.
    232316        # A Xn.n version is an unreleased experimental baselevel.
    233317        # 1.2 uses "1.2" for uname -r.
    234         eval $set_cc_for_build
    235         cat <<EOF >$dummy.s
    236         .data
    237 \$Lformat:
    238         .byte 37,100,45,37,120,10,0     # "%d-%x\n"
    239 
    240         .text
    241         .globl main
    242         .align 4
    243         .ent main
    244 main:
    245         .frame \$30,16,\$26,0
    246         ldgp \$29,0(\$27)
    247         .prologue 1
    248         .long 0x47e03d80 # implver \$0
    249         lda \$2,-1
    250         .long 0x47e20c21 # amask \$2,\$1
    251         lda \$16,\$Lformat
    252         mov \$0,\$17
    253         not \$1,\$18
    254         jsr \$26,printf
    255         ldgp \$29,0(\$26)
    256         mov 0,\$16
    257         jsr \$26,exit
    258         .end main
    259 EOF
    260         $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
    261         if test "$?" = 0 ; then
    262                 case `$dummy` in
    263                         0-0)
    264                                 UNAME_MACHINE="alpha"
    265                                 ;;
    266                         1-0)
    267                                 UNAME_MACHINE="alphaev5"
    268                                 ;;
    269                         1-1)
    270                                 UNAME_MACHINE="alphaev56"
    271                                 ;;
    272                         1-101)
    273                                 UNAME_MACHINE="alphapca56"
    274                                 ;;
    275                         2-303)
    276                                 UNAME_MACHINE="alphaev6"
    277                                 ;;
    278                         2-307)
    279                                 UNAME_MACHINE="alphaev67"
    280                                 ;;
    281                         2-1307)
    282                                 UNAME_MACHINE="alphaev68"
    283                                 ;;
    284                         3-1307)
    285                                 UNAME_MACHINE="alphaev7"
    286                                 ;;
    287                 esac
    288         fi
    289         rm -f $dummy.s $dummy && rmdir $tmpdir
    290         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     318        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    291319        exit 0 ;;
    292320    Alpha\ *:Windows_NT*:*)
     
    310338    *:OS/390:*:*)
    311339        echo i370-ibm-openedition
     340        exit 0 ;;
     341    *:OS400:*:*)
     342        echo powerpc-ibm-os400
    312343        exit 0 ;;
    313344    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
     
    328359        echo pyramid-pyramid-svr4
    329360        exit 0 ;;
     361    DRS?6000:unix:4.0:6*)
     362        echo sparc-icl-nx6
     363        exit 0 ;;
    330364    DRS?6000:UNIX_SV:4.2*:7*)
    331365        case `/usr/bin/uname -p` in
     
    400434        echo m68k-unknown-mint${UNAME_RELEASE}
    401435        exit 0 ;;
     436    m68k:machten:*:*)
     437        echo m68k-apple-machten${UNAME_RELEASE}
     438        exit 0 ;;
    402439    powerpc:machten:*:*)
    403440        echo powerpc-apple-machten${UNAME_RELEASE}
     
    440477        $CC_FOR_BUILD -o $dummy $dummy.c \
    441478          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    442           && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    443         rm -f $dummy.c $dummy && rmdir $tmpdir
     479          && exit 0
    444480        echo mips-mips-riscos${UNAME_RELEASE}
    445481        exit 0 ;;
     
    450486        echo powerpc-harris-powermax
    451487        exit 0 ;;
    452     Night_Hawk:*:*:PowerMAX_OS)
     488    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
    453489        echo powerpc-harris-powermax
    454490        exit 0 ;;
     
    525561                        }
    526562EOF
    527                 $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    528                 rm -f $dummy.c $dummy && rmdir $tmpdir
     563                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    529564                echo rs6000-ibm-aix3.2.5
    530565        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
     
    625660EOF
    626661                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
    627                     if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    628                     rm -f $dummy.c $dummy && rmdir $tmpdir
     662                    test -z "$HP_ARCH" && HP_ARCH=hppa
    629663                fi ;;
    630664        esac
     665        if [ ${HP_ARCH} = "hppa2.0w" ]
     666        then
     667            # avoid double evaluation of $set_cc_for_build
     668            test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
     669            if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
     670            then
     671                HP_ARCH="hppa2.0w"
     672            else
     673                HP_ARCH="hppa64"
     674            fi
     675        fi
    631676        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
    632677        exit 0 ;;
     
    662707        }
    663708EOF
    664         $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    665         rm -f $dummy.c $dummy && rmdir $tmpdir
     709        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
    666710        echo unknown-hitachi-hiuxwe2
    667711        exit 0 ;;
     
    721765        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    722766        exit 0 ;;
    723     CRAY*T3D:*:*:*)
    724         echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    725         exit 0 ;;
    726767    CRAY*T3E:*:*:*)
    727768        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     
    729770    CRAY*SV1:*:*:*)
    730771        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     772        exit 0 ;;
     773    *:UNICOS/mp:*:*)
     774        echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    731775        exit 0 ;;
    732776    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     
    736780        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    737781        exit 0 ;;
     782    5000:UNIX_System_V:4.*:*)
     783        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
     784        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     785        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     786        exit 0 ;;
    738787    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    739788        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     
    746795        exit 0 ;;
    747796    *:FreeBSD:*:*)
    748         # Determine whether the default compiler uses glibc.
    749         eval $set_cc_for_build
    750         sed 's/^        //' << EOF >$dummy.c
    751         #include <features.h>
    752         #if __GLIBC__ >= 2
    753         LIBC=gnu
    754         #else
    755         LIBC=
    756         #endif
    757 EOF
    758         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    759         rm -f $dummy.c && rmdir $tmpdir
    760         echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
     797        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    761798        exit 0 ;;
    762799    i*:CYGWIN*:*)
     
    769806        echo ${UNAME_MACHINE}-pc-pw32
    770807        exit 0 ;;
    771     x86:Interix*:3*)
    772         echo i386-pc-interix3
     808    x86:Interix*:[34]*)
     809        echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
     810        exit 0 ;;
     811    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
     812        echo i${UNAME_MACHINE}-pc-mks
    773813        exit 0 ;;
    774814    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     
    776816        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    777817        # UNAME_MACHINE based on the output of uname instead of i386?
    778         echo i386-pc-interix
     818        echo i586-pc-interix
    779819        exit 0 ;;
    780820    i*:UWIN*:*)
     
    788828        exit 0 ;;
    789829    *:GNU:*:*)
     830        # the GNU system
    790831        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     832        exit 0 ;;
     833    *:GNU/*:*:*)
     834        # other systems with GNU libc and userland
     835        echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
    791836        exit 0 ;;
    792837    i*86:Minix:*:*)
     
    794839        exit 0 ;;
    795840    arm*:Linux:*:*)
    796         echo ${UNAME_MACHINE}-unknown-linux-gnu
     841        echo ${UNAME_MACHINE}-${VENDOR}-linux
     842        exit 0 ;;
     843    cris:Linux:*:*)
     844        echo cris-axis-linux
    797845        exit 0 ;;
    798846    ia64:Linux:*:*)
    799         echo ${UNAME_MACHINE}-unknown-linux-gnu
     847        echo ${UNAME_MACHINE}-${VENDOR}-linux
     848        exit 0 ;;
     849    m32r*:Linux:*:*)
     850        echo ${UNAME_MACHINE}-${VENDOR}-linux
    800851        exit 0 ;;
    801852    m68*:Linux:*:*)
    802         echo ${UNAME_MACHINE}-unknown-linux-gnu
     853        echo ${UNAME_MACHINE}-${VENDOR}-linux
    803854        exit 0 ;;
    804855    mips:Linux:*:*)
     
    819870EOF
    820871        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
    821         rm -f $dummy.c && rmdir $tmpdir
    822         test x"${CPU}" != x && echo "${CPU}-pc-linux-gnu" && exit 0
     872        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
     873        ;;
     874    mips64:Linux:*:*)
     875        eval $set_cc_for_build
     876        sed 's/^        //' << EOF >$dummy.c
     877        #undef CPU
     878        #undef mips64
     879        #undef mips64el
     880        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
     881        CPU=mips64el
     882        #else
     883        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
     884        CPU=mips64
     885        #else
     886        CPU=
     887        #endif
     888        #endif
     889EOF
     890        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
     891        test x"${CPU}" != x && echo "${CPU}-${VENDOR}-linux" && exit 0
    823892        ;;
    824893    ppc:Linux:*:*)
    825         echo powerpc-unknown-linux-gnu
     894        echo powerpc-${VENDOR}-linux
    826895        exit 0 ;;
    827896    ppc64:Linux:*:*)
    828         echo powerpc64-unknown-linux-gnu
     897        echo powerpc64-${VENDOR}-linux
    829898        exit 0 ;;
    830899    alpha:Linux:*:*)
     
    839908        esac
    840909        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
    841         if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
    842         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     910        if test "$?" = 0 ; then LIBC="-libc1" ; else LIBC="" ; fi
     911        echo ${UNAME_MACHINE}-${VENDOR}-linux${LIBC}
    843912        exit 0 ;;
    844913    parisc:Linux:*:* | hppa:Linux:*:*)
    845914        # Look for CPU level
    846915        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    847           PA7*) echo hppa1.1-unknown-linux-gnu ;;
    848           PA8*) echo hppa2.0-unknown-linux-gnu ;;
    849           *)    echo hppa-unknown-linux-gnu ;;
     916          PA7*) echo hppa1.1-${VENDOR}-linux ;;
     917          PA8*) echo hppa2.0-${VENDOR}-linux ;;
     918          *)    echo hppa-${VENDOR}-linux ;;
    850919        esac
    851920        exit 0 ;;
    852921    parisc64:Linux:*:* | hppa64:Linux:*:*)
    853         echo hppa64-unknown-linux-gnu
     922        echo hppa64-${VENDOR}-linux
    854923        exit 0 ;;
    855924    s390:Linux:*:* | s390x:Linux:*:*)
    856925        echo ${UNAME_MACHINE}-ibm-linux
    857926        exit 0 ;;
     927    sh64*:Linux:*:*)
     928        echo ${UNAME_MACHINE}-${VENDOR}-linux
     929        exit 0 ;;
    858930    sh*:Linux:*:*)
    859         echo ${UNAME_MACHINE}-unknown-linux-gnu
     931        echo ${UNAME_MACHINE}-${VENDOR}-linux
    860932        exit 0 ;;
    861933    sparc:Linux:*:* | sparc64:Linux:*:*)
    862         echo ${UNAME_MACHINE}-unknown-linux-gnu
     934        echo ${UNAME_MACHINE}-${VENDOR}-linux
    863935        exit 0 ;;
    864936    x86_64:Linux:*:*)
    865         echo x86_64-unknown-linux-gnu
     937        echo x86_64-${VENDOR}-linux
    866938        exit 0 ;;
    867939    i*86:Linux:*:*)
     
    878950        case "$ld_supported_targets" in
    879951          elf32-i386)
    880                 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
     952                TENTATIVE="${UNAME_MACHINE}-${VENDOR}-linux"
    881953                ;;
    882954          a.out-i386-linux)
    883                 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
     955                echo "${UNAME_MACHINE}-${VENDOR}-linuxaout"
    884956                exit 0 ;;
    885957          coff-i386)
    886                 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     958                echo "${UNAME_MACHINE}-${VENDOR}-linuxcoff"
    887959                exit 0 ;;
    888960          "")
    889                 # Either a pre-BFD a.out linker (linux-gnuoldld) or
     961                # Either a pre-BFD a.out linker (linuxoldld) or
    890962                # one that does not give us useful --help.
    891                 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
     963                echo "${UNAME_MACHINE}-${VENDOR}-linuxoldld"
    892964                exit 0 ;;
    893965        esac
     
    913985        #endif
    914986        #endif
     987        #ifdef __dietlibc__
     988        LIBC=dietlibc
     989        #endif
    915990EOF
    916991        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
    917         rm -f $dummy.c && rmdir $tmpdir
    918         test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
     992        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}" | sed 's/linux-gnu/linux/' && exit 0
    919993        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
    920994        ;;
     
    9321006        # Use sysv4.2uw... so that sysv4* matches it.
    9331007        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
     1008        exit 0 ;;
     1009    i*86:OS/2:*:*)
     1010        # If we were able to find `uname', then EMX Unix compatibility
     1011        # is probably installed.
     1012        echo ${UNAME_MACHINE}-pc-os2-emx
     1013        exit 0 ;;
     1014    i*86:XTS-300:*:STOP)
     1015        echo ${UNAME_MACHINE}-unknown-stop
     1016        exit 0 ;;
     1017    i*86:atheos:*:*)
     1018        echo ${UNAME_MACHINE}-unknown-atheos
     1019        exit 0 ;;
     1020        i*86:syllable:*:*)
     1021        echo ${UNAME_MACHINE}-pc-syllable
     1022        exit 0 ;;
     1023    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
     1024        echo i386-unknown-lynxos${UNAME_RELEASE}
     1025        exit 0 ;;
     1026    i*86:*DOS:*:*)
     1027        echo ${UNAME_MACHINE}-pc-msdosdjgpp
    9341028        exit 0 ;;
    9351029    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
     
    9671061        fi
    9681062        exit 0 ;;
    969     i*86:*DOS:*:*)
    970         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    971         exit 0 ;;
    9721063    pc:*:*:*)
    9731064        # Left here for compatibility:
     
    9961087        echo m68k-convergent-sysv
    9971088        exit 0 ;;
    998     M68*:*:R3V[567]*:*)
     1089    M680?0:D-NIX:5.3:*)
     1090        echo m68k-diab-dnix
     1091        exit 0 ;;
     1092    M68*:*:R3V[5678]*:*)
    9991093        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    1000     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)
     1094    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)
    10011095        OS_REL=''
    10021096        test -r /etc/.relid \
     
    10151109        echo m68k-atari-sysv4
    10161110        exit 0 ;;
    1017     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    1018         echo i386-unknown-lynxos${UNAME_RELEASE}
    1019         exit 0 ;;
    10201111    TSUNAMI:LynxOS:2.*:*)
    10211112        echo sparc-unknown-lynxos${UNAME_RELEASE}
     
    10991190        exit 0 ;;
    11001191    *:Darwin:*:*)
    1101         echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1192        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
     1193        case $UNAME_PROCESSOR in
     1194            *86) UNAME_PROCESSOR=i686 ;;
     1195            unknown) UNAME_PROCESSOR=powerpc ;;
     1196        esac
     1197        echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
    11021198        exit 0 ;;
    11031199    *:procnto*:*:* | *:QNX:[0123456789]*:*)
     
    11121208        echo i386-pc-qnx
    11131209        exit 0 ;;
    1114     NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
     1210    NSR-?:NONSTOP_KERNEL:*:*)
    11151211        echo nsr-tandem-nsk${UNAME_RELEASE}
    11161212        exit 0 ;;
     
    11351231        echo ${UNAME_MACHINE}-unknown-plan9
    11361232        exit 0 ;;
    1137     i*86:OS/2:*:*)
    1138         # If we were able to find `uname', then EMX Unix compatibility
    1139         # is probably installed.
    1140         echo ${UNAME_MACHINE}-pc-os2-emx
    1141         exit 0 ;;
    11421233    *:TOPS-10:*:*)
    11431234        echo pdp10-unknown-tops10
     
    11581249        echo pdp10-unknown-its
    11591250        exit 0 ;;
    1160     i*86:XTS-300:*:STOP)
    1161         echo ${UNAME_MACHINE}-unknown-stop
    1162         exit 0 ;;
    1163     i*86:atheos:*:*)
    1164         echo ${UNAME_MACHINE}-unknown-atheos
    1165         exit 0 ;;
     1251    SEI:*:*:SEIUX)
     1252        echo mips-sei-seiux${UNAME_RELEASE}
     1253        exit 0 ;;
     1254    *:DragonFly:*:*)
     1255        echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1256        exit 0 ;;
     1257    *:*VMS:*:*)
     1258        UNAME_MACHINE=`(uname -p) 2>/dev/null`
     1259        case "${UNAME_MACHINE}" in
     1260            A*) echo alpha-dec-vms && exit 0 ;;
     1261            I*) echo ia64-dec-vms && exit 0 ;;
     1262            V*) echo vax-dec-vms && exit 0 ;;
     1263        esac
    11661264esac
    11671265
     
    12841382EOF
    12851383
    1286 $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
    1287 rm -f $dummy.c $dummy && rmdir $tmpdir
     1384$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
    12881385
    12891386# Apollos put the system type in the environment.
Note: See TracChangeset for help on using the changeset viewer.