Ignore:
Timestamp:
02/12/02 14:10:34 (19 years ago)
Author:
jrm21
Message:

Updated with new versions from autoconf version 2.52 (from ftp.gnu.org), so
hopefully we now understand most machines currently out there. Previous
"upgrade" for the alphas actually stopped us from recognising darwin (OS X),
so this new `official' version should be canonical....

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/config.guess

    r2721 r2962  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999
     3#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
    44#   Free Software Foundation, Inc.
    5 #
     5
     6timestamp='2001-07-12'
     7
    68# This file is free software; you can redistribute it and/or modify it
    79# under the terms of the GNU General Public License as published by
     
    2426
    2527# Written by Per Bothner <bothner@cygnus.com>.
    26 # The master version of this file is at the FSF in /home/gd/gnu/lib.
    27 # Please send patches to the Autoconf mailing list <autoconf@gnu.org>.
     28# Please send patches to <config-patches@gnu.org>.
    2829#
    2930# This script attempts to guess a canonical system name similar to
     
    3233#
    3334# The plan is that this can be called by configure scripts if you
    34 # don't specify an explicit system type (host/target name).
    35 #
    36 # Only a few systems have been added to this list; please add others
    37 # (but try to keep the structure clean).
    38 #
    39 
    40 # Use $HOST_CC if defined. $CC may point to a cross-compiler
    41 if test x"$CC_FOR_BUILD" = x; then
    42   if test x"$HOST_CC" != x; then
    43     CC_FOR_BUILD="$HOST_CC"
    44   else
    45     if test x"$CC" != x; then
    46       CC_FOR_BUILD="$CC"
    47     else
    48       CC_FOR_BUILD=cc
    49     fi
    50   fi
     35# don't specify an explicit build system type.
     36
     37me=`echo "$0" | sed -e 's,.*/,,'`
     38
     39usage="\
     40Usage: $0 [OPTION]
     41
     42Output the configuration name of the system \`$me' is run on.
     43
     44Operation modes:
     45  -h, --help         print this help, then exit
     46  -t, --time-stamp   print date of last modification, then exit
     47  -v, --version      print version number, then exit
     48
     49Report bugs and patches to <config-patches@gnu.org>."
     50
     51version="\
     52GNU config.guess ($timestamp)
     53
     54Originally written by Per Bothner.
     55Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
     56Free Software Foundation, Inc.
     57
     58This is free software; see the source for copying conditions.  There is NO
     59warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
     60
     61help="
     62Try \`$me --help' for more information."
     63
     64# Parse command line
     65while test $# -gt 0 ; do
     66  case $1 in
     67    --time-stamp | --time* | -t )
     68       echo "$timestamp" ; exit 0 ;;
     69    --version | -v )
     70       echo "$version" ; exit 0 ;;
     71    --help | --h* | -h )
     72       echo "$usage"; exit 0 ;;
     73    -- )     # Stop option processing
     74       shift; break ;;
     75    - ) # Use stdin as input.
     76       break ;;
     77    -* )
     78       echo "$me: invalid option $1$help" >&2
     79       exit 1 ;;
     80    * )
     81       break ;;
     82  esac
     83done
     84
     85if test $# != 0; then
     86  echo "$me: too many arguments$help" >&2
     87  exit 1
    5188fi
    5289
    5390
     91dummy=dummy-$$
     92trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
     93
     94# CC_FOR_BUILD -- compiler used by this script.
     95# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
     96# use `HOST_CC' if defined, but it is deprecated.
     97
     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
     103         CC_FOR_BUILD="$c"; break ;
     104      fi ;
     105    done ;
     106    rm -f $dummy.c $dummy.o $dummy.rel ;
     107    if test x"$CC_FOR_BUILD" = x ; then
     108      CC_FOR_BUILD=no_compiler_found ;
     109    fi
     110    ;;
     111 ,,*)   CC_FOR_BUILD=$CC ;;
     112 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
     113esac'
     114
    54115# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
    55 # (ghazi@noc.rutgers.edu 8/24/94.)
     116# (ghazi@noc.rutgers.edu 1994-08-24)
    56117if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
    57118    PATH=$PATH:/.attbin ; export PATH
     
    60121UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
    61122UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
    62 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
     123UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
    63124UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    64125
    65 dummy=dummy-$$
    66 trap 'rm -f $dummy.c $dummy.o $dummy; exit 1' 1 2 15
    67 
    68126# Note: order is significant - the case branches are not exclusive.
    69127
    70128case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     129    *:NetBSD:*:*)
     130    # Netbsd (nbsd) targets should (where applicable) match one or
     131    # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
     132    # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
     133    # switched to ELF, *-*-netbsd* would select the old
     134    # object file format.  This provides both forward
     135    # compatibility and a consistent mechanism for selecting the
     136    # object file format.
     137    # Determine the machine/vendor (is the vendor relevant).
     138    case "${UNAME_MACHINE}" in
     139        amiga) machine=m68k-unknown ;;
     140        arm32) machine=arm-unknown ;;
     141        atari*) machine=m68k-atari ;;
     142        sun3*) machine=m68k-sun ;;
     143        mac68k) machine=m68k-apple ;;
     144        macppc) machine=powerpc-apple ;;
     145        hp3[0-9][05]) machine=m68k-hp ;;
     146        ibmrt|romp-ibm) machine=romp-ibm ;;
     147        *) machine=${UNAME_MACHINE}-unknown ;;
     148    esac
     149    # The Operating System including object format, if it has switched
     150    # to ELF recently, or will in the future.
     151    case "${UNAME_MACHINE}" in
     152        i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
     153        eval $set_cc_for_build
     154        if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
     155            | grep __ELF__ >/dev/null
     156        then
     157            # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
     158            # Return netbsd for either.  FIX?
     159            os=netbsd
     160        else
     161            os=netbsdelf
     162        fi
     163        ;;
     164        *)
     165            os=netbsd
     166        ;;
     167    esac
     168    # The OS release
     169    release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
     170    # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
     171    # contains redundant information, the shorter form:
     172    # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
     173    echo "${machine}-${os}${release}"
     174    exit 0 ;;
    71175    alpha:OSF1:*:*)
    72176    if test $UNAME_RELEASE = "V4.0"; then
     
    78182    # 1.2 uses "1.2" for uname -r.
    79183    cat <<EOF >$dummy.s
     184    .data
     185\$Lformat:
     186    .byte 37,100,45,37,120,10,0 # "%d-%x\n"
     187
     188    .text
    80189    .globl main
     190    .align 4
    81191    .ent main
    82192main:
    83     .frame \$30,0,\$26,0
    84     .prologue 0
    85     .long 0x47e03d80 # implver $0
    86     lda \$2,259
    87     .long 0x47e20c21 # amask $2,$1
    88     srl \$1,8,\$2
    89     sll \$2,2,\$2
    90     sll \$0,3,\$0
    91     addl \$1,\$0,\$0
    92     addl \$2,\$0,\$0
    93     ret \$31,(\$26),1
     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
    94206    .end main
    95207EOF
     208    eval $set_cc_for_build
    96209    $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    97210    if test "$?" = 0 ; then
    98         ./$dummy
    99         case "$?" in
    100             7)
     211        case `./$dummy` in
     212            0-0)
    101213                UNAME_MACHINE="alpha"
    102214                ;;
    103             15)
     215            1-0)
    104216                UNAME_MACHINE="alphaev5"
    105217                ;;
    106             14)
     218            1-1)
    107219                UNAME_MACHINE="alphaev56"
    108220                ;;
    109             10)
     221            1-101)
    110222                UNAME_MACHINE="alphapca56"
    111223                ;;
    112             16)
     224            2-303)
    113225                UNAME_MACHINE="alphaev6"
     226                ;;
     227            2-307)
     228                UNAME_MACHINE="alphaev67"
    114229                ;;
    115230        esac
     
    128243    exit 0 ;;
    129244    Amiga*:UNIX_System_V:4.0:*)
    130     echo m68k-cbm-sysv4
     245    echo m68k-unknown-sysv4
    131246    exit 0;;
    132     amiga:NetBSD:*:*)
    133       echo m68k-cbm-netbsd${UNAME_RELEASE}
    134       exit 0 ;;
    135247    amiga:OpenBSD:*:*)
    136248    echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    156268    wgrisc:OpenBSD:*:*)
    157269    echo mipsel-unknown-openbsd${UNAME_RELEASE}
     270    exit 0 ;;
     271    *:OS/390:*:*)
     272    echo i370-ibm-openedition
    158273    exit 0 ;;
    159274    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    160275    echo arm-acorn-riscix${UNAME_RELEASE}
    161276    exit 0;;
    162     arm32:NetBSD:*:*)
    163     echo arm-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    164     exit 0 ;;
    165     SR2?01:HI-UX/MPP:*:*)
     277    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
    166278    echo hppa1.1-hitachi-hiuxmpp
    167279    exit 0;;
     
    219331    echo sparc-auspex-sunos${UNAME_RELEASE}
    220332    exit 0 ;;
    221     atari*:NetBSD:*:*)
    222     echo m68k-atari-netbsd${UNAME_RELEASE}
    223     exit 0 ;;
    224333    atari*:OpenBSD:*:*)
    225334    echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    227336    # The situation for MiNT is a little confusing.  The machine name
    228337    # can be virtually everything (everything which is not
    229     # "atarist" or "atariste" at least should have a processor 
     338    # "atarist" or "atariste" at least should have a processor
    230339    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
    231340    # to the lowercase version "mint" (or "freemint").  Finally
     
    251360        echo m68k-unknown-mint${UNAME_RELEASE}
    252361        exit 0 ;;
    253     sun3*:NetBSD:*:*)
    254     echo m68k-sun-netbsd${UNAME_RELEASE}
    255     exit 0 ;;
    256362    sun3*:OpenBSD:*:*)
    257363    echo m68k-unknown-openbsd${UNAME_RELEASE}
    258364    exit 0 ;;
    259     mac68k:NetBSD:*:*)
    260     echo m68k-apple-netbsd${UNAME_RELEASE}
    261     exit 0 ;;
    262365    mac68k:OpenBSD:*:*)
    263366    echo m68k-unknown-openbsd${UNAME_RELEASE}
     
    272375    echo powerpc-apple-machten${UNAME_RELEASE}
    273376    exit 0 ;;
    274     macppc:NetBSD:*:*)
    275         echo powerpc-apple-netbsd${UNAME_RELEASE}
    276         exit 0 ;;
    277377    RISC*:Mach:*:*)
    278378    echo mips-dec-mach_bsd4.3
     
    290390    sed 's/^    //' << EOF >$dummy.c
    291391#ifdef __cplusplus
     392#include <stdio.h>  /* for printf() prototype */
    292393    int main (int argc, char *argv[]) {
    293394#else
     
    308409    }
    309410EOF
     411    eval $set_cc_for_build
    310412    $CC_FOR_BUILD $dummy.c -o $dummy \
    311413      && ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
    312       && rm $dummy.c $dummy && exit 0
     414      && rm -f $dummy.c $dummy && exit 0
    313415    rm -f $dummy.c $dummy
    314416    echo mips-mips-riscos${UNAME_RELEASE}
     417    exit 0 ;;
     418    Motorola:PowerMAX_OS:*:*)
     419    echo powerpc-motorola-powermax
    315420    exit 0 ;;
    316421    Night_Hawk:Power_UNIX:*:*)
     
    329434        # DG/UX returns AViiON for all architectures
    330435        UNAME_PROCESSOR=`/usr/bin/uname -p`
    331         if [ $UNAME_PROCESSOR = mc88100 -o $UNAME_PROCESSOR = mc88110 ] ; then
    332     if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx \
    333          -o ${TARGET_BINARY_INTERFACE}x = x ] ; then
     436    if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
     437    then
     438        if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
     439           [ ${TARGET_BINARY_INTERFACE}x = x ]
     440        then
    334441        echo m88k-dg-dgux${UNAME_RELEASE}
     442        else
     443        echo m88k-dg-dguxbcs${UNAME_RELEASE}
     444        fi
    335445    else
    336         echo m88k-dg-dguxbcs${UNAME_RELEASE}
    337     fi
    338         else echo i586-dg-dgux${UNAME_RELEASE}
    339         fi
     446        echo i586-dg-dgux${UNAME_RELEASE}
     447    fi
    340448    exit 0 ;;
    341449    M88*:DolphinOS:*:*) # DolphinOS (SVR3)
     
    358466    echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
    359467    exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
    360     i?86:AIX:*:*)
     468    i*86:AIX:*:*)
    361469    echo i386-ibm-aix
     470    exit 0 ;;
     471    ia64:AIX:*:*)
     472    if [ -x /usr/bin/oslevel ] ; then
     473        IBM_REV=`/usr/bin/oslevel`
     474    else
     475        IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
     476    fi
     477    echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
    362478    exit 0 ;;
    363479    *:AIX:2:3)
     
    374490            }
    375491EOF
    376         $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
     492        eval $set_cc_for_build
     493        $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    377494        rm -f $dummy.c $dummy
    378495        echo rs6000-ibm-aix3.2.5
     
    383500    fi
    384501    exit 0 ;;
    385     *:AIX:*:4)
     502    *:AIX:*:[45])
    386503    IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | head -1 | awk '{ print $1 }'`
    387     if /usr/sbin/lsattr -EHl ${IBM_CPU_ID} | grep POWER >/dev/null 2>&1; then
     504    if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
    388505        IBM_ARCH=rs6000
    389506    else
     
    393510        IBM_REV=`/usr/bin/oslevel`
    394511    else
    395         IBM_REV=4.${UNAME_RELEASE}
     512        IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    396513    fi
    397514    echo ${IBM_ARCH}-ibm-aix${IBM_REV}
     
    403520    echo romp-ibm-bsd4.4
    404521    exit 0 ;;
    405     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC NetBSD and
     522    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    406523    echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
    407524    exit 0 ;;                           # report: romp-ibm BSD 4.3
     
    419536    exit 0 ;;
    420537    9000/[34678]??:HP-UX:*:*)
     538    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    421539    case "${UNAME_MACHINE}" in
    422540        9000/31? )            HP_ARCH=m68000 ;;
    423541        9000/[34]?? )         HP_ARCH=m68k ;;
    424542        9000/[678][0-9][0-9])
     543              case "${HPUX_REV}" in
     544                11.[0-9][0-9])
     545                  if [ -x /usr/bin/getconf ]; then
     546                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
     547                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
     548                    case "${sc_cpu_version}" in
     549                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
     550                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
     551                      532)                      # CPU_PA_RISC2_0
     552                        case "${sc_kernel_bits}" in
     553                          32) HP_ARCH="hppa2.0n" ;;
     554                          64) HP_ARCH="hppa2.0w" ;;
     555                        esac ;;
     556                    esac
     557                  fi ;;
     558              esac
     559              if [ "${HP_ARCH}" = "" ]; then
    425560              sed 's/^              //' << EOF >$dummy.c
     561
     562              #define _HPUX_SOURCE
    426563              #include <stdlib.h>
    427564              #include <unistd.h>
     
    454591              }
    455592EOF
    456     ($CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
     593    eval $set_cc_for_build
     594    (CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null ) && HP_ARCH=`./$dummy`
     595    if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
    457596    rm -f $dummy.c $dummy
     597    fi ;;
    458598    esac
     599    echo ${HP_ARCH}-hp-hpux${HPUX_REV}
     600    exit 0 ;;
     601    ia64:HP-UX:*:*)
    459602    HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    460     echo ${HP_ARCH}-hp-hpux${HPUX_REV}
     603    echo ia64-hp-hpux${HPUX_REV}
    461604    exit 0 ;;
    462605    3050*:HI-UX:*:*)
     
    486629    }
    487630EOF
    488     $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm $dummy.c $dummy && exit 0
     631    eval $set_cc_for_build
     632    $CC_FOR_BUILD $dummy.c -o $dummy && ./$dummy && rm -f $dummy.c $dummy && exit 0
    489633    rm -f $dummy.c $dummy
    490634    echo unknown-hitachi-hiuxwe2
     
    496640    echo hppa1.0-hp-bsd
    497641    exit 0 ;;
    498     *9??*:MPE/iX:*:*)
     642    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
    499643    echo hppa1.0-hp-mpeix
    500644    exit 0 ;;
     
    505649    echo hppa1.0-hp-osf
    506650    exit 0 ;;
    507     i?86:OSF1:*:*)
     651    i*86:OSF1:*:*)
    508652    if [ -x /usr/sbin/sysversion ] ; then
    509653        echo ${UNAME_MACHINE}-unknown-osf1mk
     
    540684        exit 0 ;;
    541685    CRAY*Y-MP:*:*:*)
    542     echo ymp-cray-unicos${UNAME_RELEASE}
     686    echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    543687    exit 0 ;;
    544688    CRAY*[A-Z]90:*:*:*)
    545689    echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
    546690    | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    547           -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
     691          -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
     692          -e 's/\.[^.]*$/.X/'
    548693    exit 0 ;;
    549694    CRAY*TS:*:*:*)
    550     echo t90-cray-unicos${UNAME_RELEASE}
     695    echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     696    exit 0 ;;
     697    CRAY*T3D:*:*:*)
     698    echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    551699    exit 0 ;;
    552700    CRAY*T3E:*:*:*)
    553     echo alpha-cray-unicosmk${UNAME_RELEASE}
     701    echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     702    exit 0 ;;
     703    CRAY*SV1:*:*:*)
     704    echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
    554705    exit 0 ;;
    555706    CRAY-2:*:*:*)
    556707    echo cray2-cray-unicos
    557708        exit 0 ;;
    558     F300:UNIX_System_V:*:*)
     709    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
     710    FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    559711        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    560712        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
    561         echo "f300-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    562         exit 0 ;;
    563     F301:UNIX_System_V:*:*)
    564        echo f301-fujitsu-uxpv`echo $UNAME_RELEASE | sed 's/ .*//'`
    565        exit 0 ;;
    566     hp3[0-9][05]:NetBSD:*:*)
    567     echo m68k-hp-netbsd${UNAME_RELEASE}
    568     exit 0 ;;
     713        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
     714        exit 0 ;;
    569715    hp300:OpenBSD:*:*)
    570716    echo m68k-unknown-openbsd${UNAME_RELEASE}
    571717    exit 0 ;;
    572     i?86:BSD/386:*:* | i?86:BSD/OS:*:*)
     718    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    573719    echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
    574720    exit 0 ;;
     
    580726    exit 0 ;;
    581727    *:FreeBSD:*:*)
    582     if test -x /usr/bin/objformat; then
    583         if test "elf" = "`/usr/bin/objformat`"; then
    584         echo ${UNAME_MACHINE}-unknown-freebsdelf`echo ${UNAME_RELEASE}|sed -e 's/[-_].*//'`
    585         exit 0
    586         fi
    587     fi
    588728    echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
    589     exit 0 ;;
    590     *:NetBSD:*:*)
    591     echo ${UNAME_MACHINE}-unknown-netbsd`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
    592729    exit 0 ;;
    593730    *:OpenBSD:*:*)
     
    599736    i*:MINGW*:*)
    600737    echo ${UNAME_MACHINE}-pc-mingw32
     738    exit 0 ;;
     739    i*:PW*:*)
     740    echo ${UNAME_MACHINE}-pc-pw32
    601741    exit 0 ;;
    602742    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
     
    618758    echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
    619759    exit 0 ;;
    620     *:Linux:*:*)
    621     # uname on the ARM produces all sorts of strangeness, and we need to
    622     # filter it out.
    623     case "$UNAME_MACHINE" in
    624       armv*)              UNAME_MACHINE=$UNAME_MACHINE ;;
    625       arm* | sa110*)          UNAME_MACHINE="arm" ;;
     760    i*86:Minix:*:*)
     761    echo ${UNAME_MACHINE}-pc-minix
     762    exit 0 ;;
     763    arm*:Linux:*:*)
     764    echo ${UNAME_MACHINE}-unknown-linux-gnu
     765    exit 0 ;;
     766    ia64:Linux:*:*)
     767    echo ${UNAME_MACHINE}-unknown-linux
     768    exit 0 ;;
     769    m68*:Linux:*:*)
     770    echo ${UNAME_MACHINE}-unknown-linux-gnu
     771    exit 0 ;;
     772    mips:Linux:*:*)
     773    case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
     774      big)    echo mips-unknown-linux-gnu && exit 0 ;;
     775      little) echo mipsel-unknown-linux-gnu && exit 0 ;;
    626776    esac
    627 
     777    ;;
     778    ppc:Linux:*:*)
     779    echo powerpc-unknown-linux-gnu
     780    exit 0 ;;
     781    alpha:Linux:*:*)
     782    case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
     783      EV5)   UNAME_MACHINE=alphaev5 ;;
     784      EV56)  UNAME_MACHINE=alphaev56 ;;
     785      PCA56) UNAME_MACHINE=alphapca56 ;;
     786      PCA57) UNAME_MACHINE=alphapca56 ;;
     787      EV6)   UNAME_MACHINE=alphaev6 ;;
     788      EV67)  UNAME_MACHINE=alphaev67 ;;
     789      EV68*) UNAME_MACHINE=alphaev67 ;;
     790        esac
     791    objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
     792    if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
     793    echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
     794    exit 0 ;;
     795    parisc:Linux:*:* | hppa:Linux:*:*)
     796    # Look for CPU level
     797    case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
     798      PA7*) echo hppa1.1-unknown-linux-gnu ;;
     799      PA8*) echo hppa2.0-unknown-linux-gnu ;;
     800      *)    echo hppa-unknown-linux-gnu ;;
     801    esac
     802    exit 0 ;;
     803    parisc64:Linux:*:* | hppa64:Linux:*:*)
     804    echo hppa64-unknown-linux-gnu
     805    exit 0 ;;
     806    s390:Linux:*:* | s390x:Linux:*:*)
     807    echo ${UNAME_MACHINE}-ibm-linux
     808    exit 0 ;;
     809    sh*:Linux:*:*)
     810    echo ${UNAME_MACHINE}-unknown-linux-gnu
     811    exit 0 ;;
     812    sparc:Linux:*:* | sparc64:Linux:*:*)
     813    echo ${UNAME_MACHINE}-unknown-linux-gnu
     814    exit 0 ;;
     815    x86_64:Linux:*:*)
     816    echo x86_64-unknown-linux-gnu
     817    exit 0 ;;
     818    i*86:Linux:*:*)
    628819    # The BFD linker knows what the default object file format is, so
    629820    # first see if it will tell us. cd to the root directory to prevent
    630821    # problems with other programs or directories called `ld' in the path.
    631     ld_help_string=`cd /; ld --help 2>&1`
    632     ld_supported_emulations=`echo $ld_help_string \
    633              | sed -ne '/supported emulations:/!d
     822    ld_supported_targets=`cd /; ld --help 2>&1 \
     823             | sed -ne '/supported targets:/!d
    634824                    s/[     ][  ]*/ /g
    635                     s/.*supported emulations: *//
     825                    s/.*supported targets: *//
    636826                    s/ .*//
    637827                    p'`
    638         case "$ld_supported_emulations" in
    639       *ia64)      echo "${UNAME_MACHINE}-unknown-linux"         ; exit 0 ;;
    640       i?86linux)  echo "${UNAME_MACHINE}-pc-linux-gnuaout"      ; exit 0 ;;
    641       i?86coff)   echo "${UNAME_MACHINE}-pc-linux-gnucoff"      ; exit 0 ;;
    642       sparclinux) echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
    643       armlinux)   echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
    644       m68klinux)  echo "${UNAME_MACHINE}-unknown-linux-gnuaout" ; exit 0 ;;
    645       elf32ppc | elf32ppclinux)
    646         # Determine Lib Version
    647         cat >$dummy.c <<EOF
     828        case "$ld_supported_targets" in
     829      elf32-i386)
     830        TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
     831        ;;
     832      a.out-i386-linux)
     833        echo "${UNAME_MACHINE}-pc-linux-gnuaout"
     834        exit 0 ;;       
     835      coff-i386)
     836        echo "${UNAME_MACHINE}-pc-linux-gnucoff"
     837        exit 0 ;;
     838      "")
     839        # Either a pre-BFD a.out linker (linux-gnuoldld) or
     840        # one that does not give us useful --help.
     841        echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
     842        exit 0 ;;
     843    esac
     844    # Determine whether the default compiler is a.out or elf
     845    cat >$dummy.c <<EOF
    648846#include <features.h>
    649 #if defined(__GLIBC__)
    650 extern char __libc_version[];
    651 extern char __libc_release[];
    652 #endif
    653 main(argc, argv)
    654      int argc;
    655      char *argv[];
    656 {
    657 #if defined(__GLIBC__)
    658   printf("%s %s\n", __libc_version, __libc_release);
     847#ifdef __cplusplus
     848#include <stdio.h>  /* for printf() prototype */
     849    int main (int argc, char *argv[]) {
    659850#else
    660   printf("unkown\n");
     851    int main (argc, argv) int argc; char *argv[]; {
     852#endif
     853#ifdef __ELF__
     854# ifdef __GLIBC__
     855#  if __GLIBC__ >= 2
     856    printf ("%s-pc-linux-gnu\n", argv[1]);
     857#  else
     858    printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     859#  endif
     860# else
     861   printf ("%s-pc-linux-gnulibc1\n", argv[1]);
     862# endif
     863#else
     864  printf ("%s-pc-linux-gnuaout\n", argv[1]);
    661865#endif
    662866  return 0;
    663867}
    664868EOF
    665         LIBC=""
    666         $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null
    667         if test "$?" = 0 ; then
    668             ./$dummy | grep 1\.99 > /dev/null
    669             if test "$?" = 0 ; then
    670                 LIBC="libc1"
    671             fi
    672         fi 
    673         rm -f $dummy.c $dummy
    674         echo powerpc-unknown-linux-gnu${LIBC} ; exit 0 ;;
    675     esac
    676 
    677     if test "${UNAME_MACHINE}" = "alpha" ; then
    678         sed 's/^    //'  <<EOF >$dummy.s
    679         .globl main
    680         .ent main
    681     main:
    682         .frame \$30,0,\$26,0
    683         .prologue 0
    684         .long 0x47e03d80 # implver $0
    685         lda \$2,259
    686         .long 0x47e20c21 # amask $2,$1
    687         srl \$1,8,\$2
    688         sll \$2,2,\$2
    689         sll \$0,3,\$0
    690         addl \$1,\$0,\$0
    691         addl \$2,\$0,\$0
    692         ret \$31,(\$26),1
    693         .end main
    694 EOF
    695         LIBC=""
    696         $CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
    697         if test "$?" = 0 ; then
    698             ./$dummy
    699             case "$?" in
    700             7)
    701                 UNAME_MACHINE="alpha"
    702                 ;;
    703             15)
    704                 UNAME_MACHINE="alphaev5"
    705                 ;;
    706             14)
    707                 UNAME_MACHINE="alphaev56"
    708                 ;;
    709             10)
    710                 UNAME_MACHINE="alphapca56"
    711                 ;;
    712             16)
    713                 UNAME_MACHINE="alphaev6"
    714                 ;;
    715             esac
    716 
    717             objdump --private-headers $dummy | \
    718               grep ld.so.1 > /dev/null
    719             if test "$?" = 0 ; then
    720                 LIBC="libc1"
    721             fi
    722         fi
    723         rm -f $dummy.s $dummy
    724         echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ; exit 0
    725     elif test "${UNAME_MACHINE}" = "mips" ; then
    726       cat >$dummy.c <<EOF
    727 #ifdef __cplusplus
    728     int main (int argc, char *argv[]) {
    729 #else
    730     int main (argc, argv) int argc; char *argv[]; {
    731 #endif
    732 #ifdef __MIPSEB__
    733   printf ("%s-unknown-linux-gnu\n", argv[1]);
    734 #endif
    735 #ifdef __MIPSEL__
    736   printf ("%sel-unknown-linux-gnu\n", argv[1]);
    737 #endif
    738   return 0;
    739 }
    740 EOF
    741       $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
    742       rm -f $dummy.c $dummy
    743     else
    744       # Either a pre-BFD a.out linker (linux-gnuoldld)
    745       # or one that does not give us useful --help.
    746       # GCC wants to distinguish between linux-gnuoldld and linux-gnuaout.
    747       # If ld does not provide *any* "supported emulations:"
    748       # that means it is gnuoldld.
    749       echo "$ld_help_string" | grep >/dev/null 2>&1 "supported emulations:"
    750       test $? != 0 && echo "${UNAME_MACHINE}-pc-linux-gnuoldld" && exit 0
    751 
    752       case "${UNAME_MACHINE}" in
    753       i?86)
    754         VENDOR=pc;
    755         ;;
    756       *)
    757         VENDOR=unknown;
    758         ;;
    759       esac
    760       # Determine whether the default compiler is a.out or elf
    761       cat >$dummy.c <<EOF
    762 #include <features.h>
    763 #ifdef __cplusplus
    764     int main (int argc, char *argv[]) {
    765 #else
    766     int main (argc, argv) int argc; char *argv[]; {
    767 #endif
    768 #ifdef __ELF__
    769 # ifdef __GLIBC__
    770 #  if __GLIBC__ >= 2
    771     printf ("%s-${VENDOR}-linux-gnu\n", argv[1]);
    772 #  else
    773     printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
    774 #  endif
    775 # else
    776    printf ("%s-${VENDOR}-linux-gnulibc1\n", argv[1]);
    777 # endif
    778 #else
    779   printf ("%s-${VENDOR}-linux-gnuaout\n", argv[1]);
    780 #endif
    781   return 0;
    782 }
    783 EOF
    784       $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm $dummy.c $dummy && exit 0
    785       rm -f $dummy.c $dummy
    786     fi ;;
    787 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.  earlier versions
    788 # are messed up and put the nodename in both sysname and nodename.
    789     i?86:DYNIX/ptx:4*:*)
     869    eval $set_cc_for_build
     870    $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
     871    rm -f $dummy.c $dummy
     872    test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
     873    ;;
     874    i*86:DYNIX/ptx:4*:*)
     875    # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
     876    # earlier versions are messed up and put the nodename in both
     877    # sysname and nodename.
    790878    echo i386-sequent-sysv4
    791879    exit 0 ;;
    792     i?86:UNIX_SV:4.2MP:2.*)
     880    i*86:UNIX_SV:4.2MP:2.*)
    793881        # Unixware is an offshoot of SVR4, but it has its own version
    794882        # number series starting with 2...
     
    798886    echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
    799887    exit 0 ;;
    800     i?86:*:4.*:* | i?86:SYSTEM_V:4.*:*)
     888    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
     889    UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
    801890    if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
    802         echo ${UNAME_MACHINE}-univel-sysv${UNAME_RELEASE}
     891        echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
    803892    else
    804         echo ${UNAME_MACHINE}-pc-sysv${UNAME_RELEASE}
    805     fi
    806     exit 0 ;;
    807     i?86:*:5:7*)
    808     UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
    809     (/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
    810     (/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) && UNAME_MACHINE=i586
    811     (/bin/uname -X|egrep '^Machine.*Pent.*II' >/dev/null) && UNAME_MACHINE=i686
    812     (/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) && UNAME_MACHINE=i585
    813     echo ${UNAME_MACHINE}-${UNAME_SYSTEM}${UNAME_VERSION}-sysv${UNAME_RELEASE}
    814     exit 0 ;;
    815     i?86:*:3.2:*)
     893        echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
     894    fi
     895    exit 0 ;;
     896    i*86:*:5:[78]*)
     897    case `/bin/uname -X | grep "^Machine"` in
     898        *486*)       UNAME_MACHINE=i486 ;;
     899        *Pentium)        UNAME_MACHINE=i586 ;;
     900        *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
     901    esac
     902    echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     903    exit 0 ;;
     904    i*86:*:3.2:*)
    816905    if test -f /usr/options/cb.name; then
    817906        UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
     
    831920    fi
    832921    exit 0 ;;
     922    i*86:*DOS:*:*)
     923    echo ${UNAME_MACHINE}-pc-msdosdjgpp
     924    exit 0 ;;
    833925    pc:*:*:*)
     926    # Left here for compatibility:
    834927        # uname -m prints for DJGPP always 'pc', but it prints nothing about
    835928        # the processor, so we play safe by assuming i386.
     
    855948    M68*:*:R3V[567]*:*)
    856949    test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
    857     3[34]??:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
     950    3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0)
    858951    OS_REL=''
    859952    test -r /etc/.relid \
     
    866959        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    867960          && echo i486-ncr-sysv4 && exit 0 ;;
    868     m68*:LynxOS:2.*:*)
     961    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    869962    echo m68k-unknown-lynxos${UNAME_RELEASE}
    870963    exit 0 ;;
     
    872965    echo m68k-atari-sysv4
    873966    exit 0 ;;
    874     i?86:LynxOS:2.*:* | i?86:LynxOS:3.[01]*:*)
     967    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
    875968    echo i386-unknown-lynxos${UNAME_RELEASE}
    876969    exit 0 ;;
     
    878971    echo sparc-unknown-lynxos${UNAME_RELEASE}
    879972    exit 0 ;;
    880     rs6000:LynxOS:2.*:* | PowerPC:LynxOS:2.*:*)
     973    rs6000:LynxOS:2.*:*)
    881974    echo rs6000-unknown-lynxos${UNAME_RELEASE}
     975    exit 0 ;;
     976    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
     977    echo powerpc-unknown-lynxos${UNAME_RELEASE}
    882978    exit 0 ;;
    883979    SM[BE]S:UNIX_SV:*:*)
     
    9141010    echo m68k-apple-aux${UNAME_RELEASE}
    9151011    exit 0 ;;
    916     news*:NEWS-OS:*:6*)
     1012    news*:NEWS-OS:6*:*)
    9171013    echo mips-sony-newsos6
    9181014    exit 0 ;;
     
    9441040    *:Rhapsody:*:*)
    9451041    echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
     1042    exit 0 ;;
     1043    *:Darwin:*:*)
     1044    echo `uname -p`-apple-darwin${UNAME_RELEASE}
     1045    exit 0 ;;
     1046    *:procnto*:*:* | *:QNX:[0123456789]*:*)
     1047    if test "${UNAME_MACHINE}" = "x86pc"; then
     1048        UNAME_MACHINE=pc
     1049    fi
     1050    echo `uname -p`-${UNAME_MACHINE}-nto-qnx
     1051    exit 0 ;;
     1052    *:QNX:*:4*)
     1053    echo i386-pc-qnx
     1054    exit 0 ;;
     1055    NSR-[KW]:NONSTOP_KERNEL:*:*)
     1056    echo nsr-tandem-nsk${UNAME_RELEASE}
     1057    exit 0 ;;
     1058    *:NonStop-UX:*:*)
     1059    echo mips-compaq-nonstopux
     1060    exit 0 ;;
     1061    BS2000:POSIX*:*:*)
     1062    echo bs2000-siemens-sysv
     1063    exit 0 ;;
     1064    DS/*:UNIX_System_V:*:*)
     1065    echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
     1066    exit 0 ;;
     1067    *:Plan9:*:*)
     1068    # "uname -m" is not consistent, so use $cputype instead. 386
     1069    # is converted to i386 for consistency with other x86
     1070    # operating systems.
     1071    if test "$cputype" = "386"; then
     1072        UNAME_MACHINE=i386
     1073    else
     1074        UNAME_MACHINE="$cputype"
     1075    fi
     1076    echo ${UNAME_MACHINE}-unknown-plan9
     1077    exit 0 ;;
     1078    i*86:OS/2:*:*)
     1079    # If we were able to find `uname', then EMX Unix compatibility
     1080    # is probably installed.
     1081    echo ${UNAME_MACHINE}-pc-os2-emx
     1082    exit 0 ;;
     1083    *:TOPS-10:*:*)
     1084    echo pdp10-unknown-tops10
     1085    exit 0 ;;
     1086    *:TENEX:*:*)
     1087    echo pdp10-unknown-tenex
     1088    exit 0 ;;
     1089    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
     1090    echo pdp10-dec-tops20
     1091    exit 0 ;;
     1092    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
     1093    echo pdp10-xkl-tops20
     1094    exit 0 ;;
     1095    *:TOPS-20:*:*)
     1096    echo pdp10-unknown-tops20
     1097    exit 0 ;;
     1098    *:ITS:*:*)
     1099    echo pdp10-unknown-its
    9461100    exit 0 ;;
    9471101esac
     
    10361190
    10371191#if defined (vax)
    1038 #if !defined (ultrix)
    1039   printf ("vax-dec-bsd\n"); exit (0);
    1040 #else
    1041   printf ("vax-dec-ultrix\n"); exit (0);
    1042 #endif
     1192# if !defined (ultrix)
     1193#  include <sys/param.h>
     1194#  if defined (BSD)
     1195#   if BSD == 43
     1196      printf ("vax-dec-bsd4.3\n"); exit (0);
     1197#   else
     1198#    if BSD == 199006
     1199      printf ("vax-dec-bsd4.3reno\n"); exit (0);
     1200#    else
     1201      printf ("vax-dec-bsd\n"); exit (0);
     1202#    endif
     1203#   endif
     1204#  else
     1205    printf ("vax-dec-bsd\n"); exit (0);
     1206#  endif
     1207# else
     1208    printf ("vax-dec-ultrix\n"); exit (0);
     1209# endif
    10431210#endif
    10441211
     
    10511218EOF
    10521219
    1053 $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm $dummy.c $dummy && exit 0
     1220eval $set_cc_for_build
     1221$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy && rm -f $dummy.c $dummy && exit 0
    10541222rm -f $dummy.c $dummy
    10551223
     
    10841252fi
    10851253
    1086 #echo '(Unable to guess system type)' 1>&2
     1254cat >&2 <<EOF
     1255$0: unable to guess system type
     1256
     1257This script, last modified $timestamp, has failed to recognize
     1258the operating system you are using. It is advised that you
     1259download the most up to date version of the config scripts from
     1260
     1261    ftp://ftp.gnu.org/pub/gnu/config/
     1262
     1263If the version you run ($0) is already up to date, please
     1264send the following data and any information you think might be
     1265pertinent to <config-patches@gnu.org> in order to provide the needed
     1266information to handle your system.
     1267
     1268config.guess timestamp = $timestamp
     1269
     1270uname -m = `(uname -m) 2>/dev/null || echo unknown`
     1271uname -r = `(uname -r) 2>/dev/null || echo unknown`
     1272uname -s = `(uname -s) 2>/dev/null || echo unknown`
     1273uname -v = `(uname -v) 2>/dev/null || echo unknown`
     1274
     1275/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
     1276/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
     1277
     1278hostinfo               = `(hostinfo) 2>/dev/null`
     1279/bin/universe          = `(/bin/universe) 2>/dev/null`
     1280/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
     1281/bin/arch              = `(/bin/arch) 2>/dev/null`
     1282/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
     1283/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
     1284
     1285UNAME_MACHINE = ${UNAME_MACHINE}
     1286UNAME_RELEASE = ${UNAME_RELEASE}
     1287UNAME_SYSTEM  = ${UNAME_SYSTEM}
     1288UNAME_VERSION = ${UNAME_VERSION}
     1289EOF
    10871290
    10881291exit 1
     1292
     1293# Local variables:
     1294# eval: (add-hook 'write-file-hooks 'time-stamp)
     1295# time-stamp-start: "timestamp='"
     1296# time-stamp-format: "%:y-%02m-%02d"
     1297# time-stamp-end: "'"
     1298# End:
Note: See TracChangeset for help on using the changeset viewer.