[BACK]Return to config.guess CVS log [TXT][DIR] Up to [local] / src / usr.bin / sudo

Annotation of src/usr.bin/sudo/config.guess, Revision 1.9

1.1       millert     1: #! /bin/sh
                      2: # Attempt to guess a canonical system name.
1.3       millert     3: #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
                      4: #   2000, 2001, 2002 Free Software Foundation, Inc.
                      5: #
1.6       millert     6: # $Sudo: config.guess,v 1.10 2004/08/09 23:04:35 millert Exp $
1.2       millert     7:
1.3       millert     8: timestamp='2002-11-30'
1.2       millert     9:
1.1       millert    10: # This file is free software; you can redistribute it and/or modify it
                     11: # under the terms of the GNU General Public License as published by
                     12: # the Free Software Foundation; either version 2 of the License, or
                     13: # (at your option) any later version.
                     14: #
                     15: # This program is distributed in the hope that it will be useful, but
                     16: # WITHOUT ANY WARRANTY; without even the implied warranty of
                     17: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
                     18: # General Public License for more details.
                     19: #
                     20: # You should have received a copy of the GNU General Public License
                     21: # along with this program; if not, write to the Free Software
                     22: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
                     23: #
                     24: # As a special exception to the GNU General Public License, if you
                     25: # distribute this file as part of a program that contains a
                     26: # configuration script generated by Autoconf, you may include it under
                     27: # the same distribution terms that you use for the rest of that program.
                     28:
1.3       millert    29: # Originally written by Per Bothner <per@bothner.com>.
                     30: # Please send patches to <config-patches@gnu.org>.  Submit a context
                     31: # diff and a properly formatted ChangeLog entry.
1.1       millert    32: #
                     33: # This script attempts to guess a canonical system name similar to
                     34: # config.sub.  If it succeeds, it prints the system name on stdout, and
                     35: # exits with 0.  Otherwise, it exits with 1.
                     36: #
                     37: # The plan is that this can be called by configure scripts if you
1.2       millert    38: # don't specify an explicit build system type.
                     39:
                     40: me=`echo "$0" | sed -e 's,.*/,,'`
                     41:
                     42: usage="\
                     43: Usage: $0 [OPTION]
                     44:
                     45: Output the configuration name of the system \`$me' is run on.
                     46:
                     47: Operation modes:
                     48:   -h, --help         print this help, then exit
                     49:   -t, --time-stamp   print date of last modification, then exit
                     50:   -v, --version      print version number, then exit
                     51:
                     52: Report bugs and patches to <config-patches@gnu.org>."
                     53:
                     54: version="\
                     55: GNU config.guess ($timestamp)
                     56:
                     57: Originally written by Per Bothner.
                     58: Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
                     59: Free Software Foundation, Inc.
                     60:
                     61: This is free software; see the source for copying conditions.  There is NO
                     62: warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
                     63:
                     64: help="
                     65: Try \`$me --help' for more information."
                     66:
                     67: # Parse command line
                     68: while test $# -gt 0 ; do
                     69:   case $1 in
                     70:     --time-stamp | --time* | -t )
                     71:        echo "$timestamp" ; exit 0 ;;
                     72:     --version | -v )
                     73:        echo "$version" ; exit 0 ;;
                     74:     --help | --h* | -h )
                     75:        echo "$usage"; exit 0 ;;
                     76:     -- )     # Stop option processing
                     77:        shift; break ;;
                     78:     - )        # Use stdin as input.
                     79:        break ;;
                     80:     -* )
                     81:        echo "$me: invalid option $1$help" >&2
                     82:        exit 1 ;;
                     83:     * )
                     84:        break ;;
                     85:   esac
                     86: done
                     87:
                     88: if test $# != 0; then
                     89:   echo "$me: too many arguments$help" >&2
                     90:   exit 1
                     91: fi
                     92:
1.3       millert    93: trap 'exit 1' 1 2 15
1.2       millert    94:
1.3       millert    95: # CC_FOR_BUILD -- compiler used by this script. Note that the use of a
                     96: # compiler to aid in system detection is discouraged as it requires
                     97: # temporary files to be created and, as you can see below, it is a
                     98: # headache to deal with in a portable fashion.
1.2       millert    99:
                    100: # Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
                    101: # use `HOST_CC' if defined, but it is deprecated.
                    102:
1.3       millert   103: # This shell variable is my proudest work .. or something. --bje
                    104:
                    105: set_cc_for_build='tmpdir=${TMPDIR-/tmp}/config-guess-$$ ;
                    106: (old=`umask` && umask 077 && mkdir $tmpdir && umask $old && unset old)
                    107:    || (echo "$me: cannot create $tmpdir" >&2 && exit 1) ;
                    108: dummy=$tmpdir/dummy ;
                    109: files="$dummy.c $dummy.o $dummy.rel $dummy" ;
                    110: trap '"'"'rm -f $files; rmdir $tmpdir; exit 1'"'"' 1 2 15 ;
                    111: case $CC_FOR_BUILD,$HOST_CC,$CC in
                    112:  ,,)    echo "int x;" > $dummy.c ;
                    113:        for c in cc gcc c89 c99 ; do
                    114:          if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
1.2       millert   115:             CC_FOR_BUILD="$c"; break ;
                    116:          fi ;
                    117:        done ;
1.3       millert   118:        rm -f $files ;
1.2       millert   119:        if test x"$CC_FOR_BUILD" = x ; then
                    120:          CC_FOR_BUILD=no_compiler_found ;
                    121:        fi
                    122:        ;;
                    123:  ,,*)   CC_FOR_BUILD=$CC ;;
                    124:  ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
1.3       millert   125: esac ;
                    126: unset files'
1.1       millert   127:
                    128: # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
1.2       millert   129: # (ghazi@noc.rutgers.edu 1994-08-24)
1.1       millert   130: if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
                    131:        PATH=$PATH:/.attbin ; export PATH
                    132: fi
                    133:
                    134: UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
                    135: UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
1.2       millert   136: UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
1.1       millert   137: UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
                    138:
                    139: # Note: order is significant - the case branches are not exclusive.
                    140:
                    141: case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
1.2       millert   142:     *:NetBSD:*:*)
1.3       millert   143:        # NetBSD (nbsd) targets should (where applicable) match one or
1.2       millert   144:        # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
                    145:        # *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
                    146:        # switched to ELF, *-*-netbsd* would select the old
                    147:        # object file format.  This provides both forward
                    148:        # compatibility and a consistent mechanism for selecting the
                    149:        # object file format.
1.3       millert   150:        #
                    151:        # Note: NetBSD doesn't particularly care about the vendor
                    152:        # portion of the name.  We always set it to "unknown".
                    153:        sysctl="sysctl -n hw.machine_arch"
                    154:        UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
                    155:            /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
                    156:        case "${UNAME_MACHINE_ARCH}" in
                    157:            armeb) machine=armeb-unknown ;;
                    158:            arm*) machine=arm-unknown ;;
                    159:            sh3el) machine=shl-unknown ;;
                    160:            sh3eb) machine=sh-unknown ;;
                    161:            *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
1.2       millert   162:        esac
                    163:        # The Operating System including object format, if it has switched
                    164:        # to ELF recently, or will in the future.
1.3       millert   165:        case "${UNAME_MACHINE_ARCH}" in
                    166:            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
1.2       millert   167:                eval $set_cc_for_build
                    168:                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
                    169:                        | grep __ELF__ >/dev/null
                    170:                then
                    171:                    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
                    172:                    # Return netbsd for either.  FIX?
                    173:                    os=netbsd
                    174:                else
                    175:                    os=netbsdelf
                    176:                fi
                    177:                ;;
                    178:            *)
                    179:                os=netbsd
                    180:                ;;
                    181:        esac
                    182:        # The OS release
1.3       millert   183:        # Debian GNU/NetBSD machines have a different userland, and
                    184:        # thus, need a distinct triplet. However, they do not need
                    185:        # kernel version information, so it can be replaced with a
                    186:        # suitable tag, in the style of linux-gnu.
                    187:        case "${UNAME_VERSION}" in
                    188:            Debian*)
                    189:                release='-gnu'
                    190:                ;;
                    191:            *)
                    192:                release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
                    193:                ;;
                    194:        esac
1.2       millert   195:        # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
                    196:        # contains redundant information, the shorter form:
                    197:        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
                    198:        echo "${machine}-${os}${release}"
                    199:        exit 0 ;;
1.9     ! pvalchev  200:     amd64:OpenBSD:*:*)
        !           201:        echo x86_64-unknown-openbsd${UNAME_RELEASE}
        !           202:        exit 0 ;;
1.3       millert   203:     *:OpenBSD:*:*)
1.8       brad      204:        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
                    205:        echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
1.3       millert   206:        exit 0 ;;
1.1       millert   207:     alpha:OSF1:*:*)
1.2       millert   208:        if test $UNAME_RELEASE = "V4.0"; then
                    209:                UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
                    210:        fi
1.1       millert   211:        # A Vn.n version is a released version.
                    212:        # A Tn.n version is a released field test version.
                    213:        # A Xn.n version is an unreleased experimental baselevel.
                    214:        # 1.2 uses "1.2" for uname -r.
1.3       millert   215:        eval $set_cc_for_build
1.2       millert   216:        cat <<EOF >$dummy.s
                    217:        .data
                    218: \$Lformat:
                    219:        .byte 37,100,45,37,120,10,0     # "%d-%x\n"
                    220:
                    221:        .text
                    222:        .globl main
                    223:        .align 4
                    224:        .ent main
                    225: main:
                    226:        .frame \$30,16,\$26,0
                    227:        ldgp \$29,0(\$27)
                    228:        .prologue 1
                    229:        .long 0x47e03d80 # implver \$0
                    230:        lda \$2,-1
                    231:        .long 0x47e20c21 # amask \$2,\$1
                    232:        lda \$16,\$Lformat
                    233:        mov \$0,\$17
                    234:        not \$1,\$18
                    235:        jsr \$26,printf
                    236:        ldgp \$29,0(\$26)
                    237:        mov 0,\$16
                    238:        jsr \$26,exit
                    239:        .end main
                    240: EOF
1.3       millert   241:        $CC_FOR_BUILD -o $dummy $dummy.s 2>/dev/null
1.2       millert   242:        if test "$?" = 0 ; then
1.3       millert   243:                case `$dummy` in
1.2       millert   244:                        0-0)
                    245:                                UNAME_MACHINE="alpha"
                    246:                                ;;
                    247:                        1-0)
                    248:                                UNAME_MACHINE="alphaev5"
                    249:                                ;;
                    250:                        1-1)
                    251:                                UNAME_MACHINE="alphaev56"
                    252:                                ;;
                    253:                        1-101)
                    254:                                UNAME_MACHINE="alphapca56"
                    255:                                ;;
                    256:                        2-303)
                    257:                                UNAME_MACHINE="alphaev6"
                    258:                                ;;
                    259:                        2-307)
                    260:                                UNAME_MACHINE="alphaev67"
                    261:                                ;;
1.3       millert   262:                        2-1307)
                    263:                                UNAME_MACHINE="alphaev68"
                    264:                                ;;
                    265:                        3-1307)
                    266:                                UNAME_MACHINE="alphaev7"
                    267:                                ;;
1.2       millert   268:                esac
                    269:        fi
1.3       millert   270:        rm -f $dummy.s $dummy && rmdir $tmpdir
1.2       millert   271:        echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
                    272:        exit 0 ;;
                    273:     Alpha\ *:Windows_NT*:*)
                    274:        # How do we know it's Interix rather than the generic POSIX subsystem?
                    275:        # Should we change UNAME_MACHINE based on the output of uname instead
                    276:        # of the specific Alpha model?
                    277:        echo alpha-pc-interix
1.1       millert   278:        exit 0 ;;
                    279:     21064:Windows_NT:50:3)
                    280:        echo alpha-dec-winnt3.5
                    281:        exit 0 ;;
                    282:     Amiga*:UNIX_System_V:4.0:*)
1.2       millert   283:        echo m68k-unknown-sysv4
1.1       millert   284:        exit 0;;
1.2       millert   285:     *:[Aa]miga[Oo][Ss]:*:*)
                    286:        echo ${UNAME_MACHINE}-unknown-amigaos
                    287:        exit 0 ;;
1.3       millert   288:     *:[Mm]orph[Oo][Ss]:*:*)
                    289:        echo ${UNAME_MACHINE}-unknown-morphos
1.2       millert   290:        exit 0 ;;
                    291:     *:OS/390:*:*)
                    292:        echo i370-ibm-openedition
                    293:        exit 0 ;;
1.1       millert   294:     arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
                    295:        echo arm-acorn-riscix${UNAME_RELEASE}
                    296:        exit 0;;
1.2       millert   297:     SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
                    298:        echo hppa1.1-hitachi-hiuxmpp
                    299:        exit 0;;
                    300:     Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
1.1       millert   301:        # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
                    302:        if test "`(/bin/universe) 2>/dev/null`" = att ; then
                    303:                echo pyramid-pyramid-sysv3
                    304:        else
                    305:                echo pyramid-pyramid-bsd
                    306:        fi
                    307:        exit 0 ;;
1.2       millert   308:     NILE*:*:*:dcosx)
1.1       millert   309:        echo pyramid-pyramid-svr4
                    310:        exit 0 ;;
1.3       millert   311:     DRS?6000:UNIX_SV:4.2*:7*)
                    312:        case `/usr/bin/uname -p` in
                    313:            sparc) echo sparc-icl-nx7 && exit 0 ;;
                    314:        esac ;;
1.2       millert   315:     sun4H:SunOS:5.*:*)
                    316:        echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
                    317:        exit 0 ;;
1.1       millert   318:     sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
                    319:        echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
                    320:        exit 0 ;;
                    321:     i86pc:SunOS:5.*:*)
                    322:        echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
                    323:        exit 0 ;;
                    324:     sun4*:SunOS:6*:*)
                    325:        # According to config.sub, this is the proper way to canonicalize
                    326:        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
                    327:        # it's likely to be more like Solaris than SunOS4.
                    328:        echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
                    329:        exit 0 ;;
                    330:     sun4*:SunOS:*:*)
                    331:        case "`/usr/bin/arch -k`" in
                    332:            Series*|S4*)
                    333:                UNAME_RELEASE=`uname -v`
                    334:                ;;
                    335:        esac
                    336:        # Japanese Language versions have a version number like `4.1.3-JL'.
                    337:        echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
                    338:        exit 0 ;;
                    339:     sun3*:SunOS:*:*)
                    340:        echo m68k-sun-sunos${UNAME_RELEASE}
                    341:        exit 0 ;;
1.2       millert   342:     sun*:*:4.2BSD:*)
1.3       millert   343:        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
1.2       millert   344:        test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
                    345:        case "`/bin/arch`" in
                    346:            sun3)
                    347:                echo m68k-sun-sunos${UNAME_RELEASE}
                    348:                ;;
                    349:            sun4)
                    350:                echo sparc-sun-sunos${UNAME_RELEASE}
                    351:                ;;
                    352:        esac
                    353:        exit 0 ;;
1.1       millert   354:     aushp:SunOS:*:*)
                    355:        echo sparc-auspex-sunos${UNAME_RELEASE}
                    356:        exit 0 ;;
1.2       millert   357:     # The situation for MiNT is a little confusing.  The machine name
                    358:     # can be virtually everything (everything which is not
                    359:     # "atarist" or "atariste" at least should have a processor
                    360:     # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
                    361:     # to the lowercase version "mint" (or "freemint").  Finally
                    362:     # the system name "TOS" denotes a system which is actually not
                    363:     # MiNT.  But MiNT is downward compatible to TOS, so this should
                    364:     # be no problem.
                    365:     atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
                    366:         echo m68k-atari-mint${UNAME_RELEASE}
1.1       millert   367:        exit 0 ;;
1.2       millert   368:     atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
                    369:        echo m68k-atari-mint${UNAME_RELEASE}
                    370:         exit 0 ;;
                    371:     *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
                    372:         echo m68k-atari-mint${UNAME_RELEASE}
1.1       millert   373:        exit 0 ;;
1.2       millert   374:     milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
                    375:         echo m68k-milan-mint${UNAME_RELEASE}
                    376:         exit 0 ;;
                    377:     hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
                    378:         echo m68k-hades-mint${UNAME_RELEASE}
                    379:         exit 0 ;;
                    380:     *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
                    381:         echo m68k-unknown-mint${UNAME_RELEASE}
                    382:         exit 0 ;;
1.1       millert   383:     powerpc:machten:*:*)
                    384:        echo powerpc-apple-machten${UNAME_RELEASE}
                    385:        exit 0 ;;
                    386:     RISC*:Mach:*:*)
                    387:        echo mips-dec-mach_bsd4.3
                    388:        exit 0 ;;
                    389:     RISC*:ULTRIX:*:*)
                    390:        echo mips-dec-ultrix${UNAME_RELEASE}
                    391:        exit 0 ;;
                    392:     VAX*:ULTRIX*:*:*)
                    393:        echo vax-dec-ultrix${UNAME_RELEASE}
                    394:        exit 0 ;;
1.2       millert   395:     2020:CLIX:*:* | 2430:CLIX:*:*)
                    396:        echo clipper-intergraph-clix${UNAME_RELEASE}
                    397:        exit 0 ;;
1.1       millert   398:     mips:*:*:UMIPS | mips:*:*:RISCos)
1.3       millert   399:        eval $set_cc_for_build
1.2       millert   400:        sed 's/^        //' << EOF >$dummy.c
                    401: #ifdef __cplusplus
                    402: #include <stdio.h>  /* for printf() prototype */
                    403:        int main (int argc, char *argv[]) {
                    404: #else
                    405:        int main (argc, argv) int argc; char *argv[]; {
                    406: #endif
1.1       millert   407:        #if defined (host_mips) && defined (MIPSEB)
                    408:        #if defined (SYSTYPE_SYSV)
                    409:          printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
                    410:        #endif
                    411:        #if defined (SYSTYPE_SVR4)
                    412:          printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
                    413:        #endif
                    414:        #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
                    415:          printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
                    416:        #endif
                    417:        #endif
                    418:          exit (-1);
                    419:        }
                    420: EOF
1.3       millert   421:        $CC_FOR_BUILD -o $dummy $dummy.c \
                    422:          && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
                    423:          && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
                    424:        rm -f $dummy.c $dummy && rmdir $tmpdir
1.1       millert   425:        echo mips-mips-riscos${UNAME_RELEASE}
                    426:        exit 0 ;;
1.2       millert   427:     Motorola:PowerMAX_OS:*:*)
                    428:        echo powerpc-motorola-powermax
                    429:        exit 0 ;;
1.3       millert   430:     Motorola:*:4.3:PL8-*)
                    431:        echo powerpc-harris-powermax
                    432:        exit 0 ;;
                    433:     Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
                    434:        echo powerpc-harris-powermax
                    435:        exit 0 ;;
1.1       millert   436:     Night_Hawk:Power_UNIX:*:*)
                    437:        echo powerpc-harris-powerunix
                    438:        exit 0 ;;
                    439:     m88k:CX/UX:7*:*)
                    440:        echo m88k-harris-cxux7
                    441:        exit 0 ;;
                    442:     m88k:*:4*:R4*)
                    443:        echo m88k-motorola-sysv4
                    444:        exit 0 ;;
                    445:     m88k:*:3*:R3*)
                    446:        echo m88k-motorola-sysv3
                    447:        exit 0 ;;
                    448:     AViiON:dgux:*:*)
                    449:         # DG/UX returns AViiON for all architectures
                    450:         UNAME_PROCESSOR=`/usr/bin/uname -p`
1.2       millert   451:        if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
                    452:        then
                    453:            if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
                    454:               [ ${TARGET_BINARY_INTERFACE}x = x ]
                    455:            then
1.1       millert   456:                echo m88k-dg-dgux${UNAME_RELEASE}
1.2       millert   457:            else
                    458:                echo m88k-dg-dguxbcs${UNAME_RELEASE}
                    459:            fi
1.1       millert   460:        else
1.2       millert   461:            echo i586-dg-dgux${UNAME_RELEASE}
1.1       millert   462:        fi
                    463:        exit 0 ;;
                    464:     M88*:DolphinOS:*:*)        # DolphinOS (SVR3)
                    465:        echo m88k-dolphin-sysv3
                    466:        exit 0 ;;
                    467:     M88*:*:R3*:*)
                    468:        # Delta 88k system running SVR3
                    469:        echo m88k-motorola-sysv3
                    470:        exit 0 ;;
                    471:     XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
                    472:        echo m88k-tektronix-sysv3
                    473:        exit 0 ;;
                    474:     Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
                    475:        echo m68k-tektronix-bsd
                    476:        exit 0 ;;
                    477:     *:IRIX*:*:*)
                    478:        echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
                    479:        exit 0 ;;
                    480:     ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
                    481:        echo romp-ibm-aix      # uname -m gives an 8 hex-code CPU id
                    482:        exit 0 ;;              # Note that: echo "'`uname -s`'" gives 'AIX '
1.2       millert   483:     i*86:AIX:*:*)
1.1       millert   484:        echo i386-ibm-aix
                    485:        exit 0 ;;
1.2       millert   486:     ia64:AIX:*:*)
                    487:        if [ -x /usr/bin/oslevel ] ; then
                    488:                IBM_REV=`/usr/bin/oslevel`
                    489:        else
                    490:                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
                    491:        fi
                    492:        echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
                    493:        exit 0 ;;
1.1       millert   494:     *:AIX:2:3)
                    495:        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
1.3       millert   496:                eval $set_cc_for_build
1.2       millert   497:                sed 's/^                //' << EOF >$dummy.c
1.1       millert   498:                #include <sys/systemcfg.h>
                    499:
                    500:                main()
                    501:                        {
                    502:                        if (!__power_pc())
                    503:                                exit(1);
                    504:                        puts("powerpc-ibm-aix3.2.5");
                    505:                        exit(0);
                    506:                        }
                    507: EOF
1.3       millert   508:                $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
                    509:                rm -f $dummy.c $dummy && rmdir $tmpdir
1.1       millert   510:                echo rs6000-ibm-aix3.2.5
                    511:        elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
                    512:                echo rs6000-ibm-aix3.2.4
                    513:        else
                    514:                echo rs6000-ibm-aix3.2
                    515:        fi
                    516:        exit 0 ;;
1.2       millert   517:     *:AIX:*:[45])
1.3       millert   518:        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
1.2       millert   519:        if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
1.1       millert   520:                IBM_ARCH=rs6000
                    521:        else
                    522:                IBM_ARCH=powerpc
                    523:        fi
                    524:        if [ -x /usr/bin/oslevel ] ; then
                    525:                IBM_REV=`/usr/bin/oslevel`
                    526:        else
1.2       millert   527:                IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
1.1       millert   528:        fi
                    529:        echo ${IBM_ARCH}-ibm-aix${IBM_REV}
                    530:        exit 0 ;;
                    531:     *:AIX:*:*)
                    532:        echo rs6000-ibm-aix
                    533:        exit 0 ;;
                    534:     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
                    535:        echo romp-ibm-bsd4.4
                    536:        exit 0 ;;
1.2       millert   537:     ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
1.1       millert   538:        echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
                    539:        exit 0 ;;                           # report: romp-ibm BSD 4.3
                    540:     *:BOSX:*:*)
                    541:        echo rs6000-bull-bosx
                    542:        exit 0 ;;
                    543:     DPX/2?00:B.O.S.:*:*)
                    544:        echo m68k-bull-sysv3
                    545:        exit 0 ;;
                    546:     9000/[34]??:4.3bsd:1.*:*)
                    547:        echo m68k-hp-bsd
                    548:        exit 0 ;;
                    549:     hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
                    550:        echo m68k-hp-bsd4.4
                    551:        exit 0 ;;
1.2       millert   552:     9000/[34678]??:HP-UX:*:*)
                    553:        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1.1       millert   554:        case "${UNAME_MACHINE}" in
                    555:            9000/31? )            HP_ARCH=m68000 ;;
                    556:            9000/[34]?? )         HP_ARCH=m68k ;;
1.2       millert   557:            9000/[678][0-9][0-9])
1.3       millert   558:                if [ -x /usr/bin/getconf ]; then
                    559:                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
1.2       millert   560:                     sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
                    561:                     case "${sc_cpu_version}" in
                    562:                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
                    563:                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
                    564:                       532)                      # CPU_PA_RISC2_0
                    565:                         case "${sc_kernel_bits}" in
                    566:                           32) HP_ARCH="hppa2.0n" ;;
                    567:                           64) HP_ARCH="hppa2.0w" ;;
1.3       millert   568:                          '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
1.2       millert   569:                         esac ;;
                    570:                     esac
1.3       millert   571:                fi
                    572:                if [ "${HP_ARCH}" = "" ]; then
                    573:                    eval $set_cc_for_build
                    574:                    sed 's/^              //' << EOF >$dummy.c
1.2       millert   575:
                    576:               #define _HPUX_SOURCE
                    577:               #include <stdlib.h>
                    578:               #include <unistd.h>
                    579:
                    580:               int main ()
                    581:               {
                    582:               #if defined(_SC_KERNEL_BITS)
                    583:                   long bits = sysconf(_SC_KERNEL_BITS);
                    584:               #endif
                    585:                   long cpu  = sysconf (_SC_CPU_VERSION);
                    586:
                    587:                   switch (cpu)
                    588:                {
                    589:                case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
                    590:                case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
                    591:                case CPU_PA_RISC2_0:
                    592:               #if defined(_SC_KERNEL_BITS)
                    593:                    switch (bits)
                    594:                        {
                    595:                        case 64: puts ("hppa2.0w"); break;
                    596:                        case 32: puts ("hppa2.0n"); break;
                    597:                        default: puts ("hppa2.0"); break;
                    598:                        } break;
                    599:               #else  /* !defined(_SC_KERNEL_BITS) */
                    600:                    puts ("hppa2.0"); break;
                    601:               #endif
                    602:                default: puts ("hppa1.0"); break;
                    603:                }
                    604:                   exit (0);
                    605:               }
                    606: EOF
1.3       millert   607:                    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
                    608:                    if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
                    609:                    rm -f $dummy.c $dummy && rmdir $tmpdir
                    610:                fi ;;
1.1       millert   611:        esac
1.2       millert   612:        echo ${HP_ARCH}-hp-hpux${HPUX_REV}
                    613:        exit 0 ;;
                    614:     ia64:HP-UX:*:*)
1.1       millert   615:        HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
1.2       millert   616:        echo ia64-hp-hpux${HPUX_REV}
1.1       millert   617:        exit 0 ;;
                    618:     3050*:HI-UX:*:*)
1.3       millert   619:        eval $set_cc_for_build
1.2       millert   620:        sed 's/^        //' << EOF >$dummy.c
1.1       millert   621:        #include <unistd.h>
                    622:        int
                    623:        main ()
                    624:        {
                    625:          long cpu = sysconf (_SC_CPU_VERSION);
                    626:          /* The order matters, because CPU_IS_HP_MC68K erroneously returns
                    627:             true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
                    628:             results, however.  */
                    629:          if (CPU_IS_PA_RISC (cpu))
                    630:            {
                    631:              switch (cpu)
                    632:                {
                    633:                  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
                    634:                  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
                    635:                  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
                    636:                  default: puts ("hppa-hitachi-hiuxwe2"); break;
                    637:                }
                    638:            }
                    639:          else if (CPU_IS_HP_MC68K (cpu))
                    640:            puts ("m68k-hitachi-hiuxwe2");
                    641:          else puts ("unknown-hitachi-hiuxwe2");
                    642:          exit (0);
                    643:        }
                    644: EOF
1.3       millert   645:        $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
                    646:        rm -f $dummy.c $dummy && rmdir $tmpdir
1.1       millert   647:        echo unknown-hitachi-hiuxwe2
                    648:        exit 0 ;;
                    649:     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
                    650:        echo hppa1.1-hp-bsd
                    651:        exit 0 ;;
                    652:     9000/8??:4.3bsd:*:*)
                    653:        echo hppa1.0-hp-bsd
                    654:        exit 0 ;;
1.2       millert   655:     *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
                    656:        echo hppa1.0-hp-mpeix
                    657:        exit 0 ;;
1.1       millert   658:     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
                    659:        echo hppa1.1-hp-osf
                    660:        exit 0 ;;
                    661:     hp8??:OSF1:*:*)
                    662:        echo hppa1.0-hp-osf
                    663:        exit 0 ;;
1.2       millert   664:     i*86:OSF1:*:*)
1.1       millert   665:        if [ -x /usr/sbin/sysversion ] ; then
                    666:            echo ${UNAME_MACHINE}-unknown-osf1mk
                    667:        else
                    668:            echo ${UNAME_MACHINE}-unknown-osf1
                    669:        fi
                    670:        exit 0 ;;
                    671:     parisc*:Lites*:*:*)
                    672:        echo hppa1.1-hp-lites
                    673:        exit 0 ;;
                    674:     C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
                    675:        echo c1-convex-bsd
                    676:         exit 0 ;;
                    677:     C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
                    678:        if getsysinfo -f scalar_acc
                    679:        then echo c32-convex-bsd
                    680:        else echo c2-convex-bsd
                    681:        fi
                    682:         exit 0 ;;
                    683:     C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
                    684:        echo c34-convex-bsd
                    685:         exit 0 ;;
                    686:     C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
                    687:        echo c38-convex-bsd
                    688:         exit 0 ;;
                    689:     C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
                    690:        echo c4-convex-bsd
                    691:         exit 0 ;;
                    692:     CRAY*Y-MP:*:*:*)
1.2       millert   693:        echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.1       millert   694:        exit 0 ;;
                    695:     CRAY*[A-Z]90:*:*:*)
                    696:        echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
                    697:        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
1.2       millert   698:              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
                    699:              -e 's/\.[^.]*$/.X/'
1.1       millert   700:        exit 0 ;;
                    701:     CRAY*TS:*:*:*)
1.2       millert   702:        echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
                    703:        exit 0 ;;
                    704:     CRAY*T3D:*:*:*)
                    705:        echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
                    706:        exit 0 ;;
                    707:     CRAY*T3E:*:*:*)
                    708:        echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
                    709:        exit 0 ;;
                    710:     CRAY*SV1:*:*:*)
                    711:        echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
1.1       millert   712:        exit 0 ;;
1.2       millert   713:     F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
                    714:        FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
                    715:         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
1.1       millert   716:         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
1.2       millert   717:         echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
1.1       millert   718:         exit 0 ;;
1.2       millert   719:     i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
                    720:        echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
1.1       millert   721:        exit 0 ;;
1.2       millert   722:     sparc*:BSD/OS:*:*)
                    723:        echo sparc-unknown-bsdi${UNAME_RELEASE}
                    724:        exit 0 ;;
                    725:     *:BSD/OS:*:*)
                    726:        echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
1.1       millert   727:        exit 0 ;;
                    728:     *:FreeBSD:*:*)
1.3       millert   729:        # Determine whether the default compiler uses glibc.
                    730:        eval $set_cc_for_build
                    731:        sed 's/^        //' << EOF >$dummy.c
                    732:        #include <features.h>
                    733:        #if __GLIBC__ >= 2
                    734:        LIBC=gnu
                    735:        #else
                    736:        LIBC=
                    737:        #endif
                    738: EOF
                    739:        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
                    740:        rm -f $dummy.c && rmdir $tmpdir
                    741:        echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
1.1       millert   742:        exit 0 ;;
                    743:     i*:CYGWIN*:*)
1.2       millert   744:        echo ${UNAME_MACHINE}-pc-cygwin
                    745:        exit 0 ;;
                    746:     i*:MINGW*:*)
                    747:        echo ${UNAME_MACHINE}-pc-mingw32
                    748:        exit 0 ;;
                    749:     i*:PW*:*)
                    750:        echo ${UNAME_MACHINE}-pc-pw32
                    751:        exit 0 ;;
1.3       millert   752:     x86:Interix*:3*)
                    753:        echo i586-pc-interix3
                    754:        exit 0 ;;
                    755:     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
                    756:        echo i${UNAME_MACHINE}-pc-mks
                    757:        exit 0 ;;
1.2       millert   758:     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
                    759:        # How do we know it's Interix rather than the generic POSIX subsystem?
                    760:        # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
                    761:        # UNAME_MACHINE based on the output of uname instead of i386?
1.3       millert   762:        echo i586-pc-interix
1.2       millert   763:        exit 0 ;;
                    764:     i*:UWIN*:*)
                    765:        echo ${UNAME_MACHINE}-pc-uwin
1.1       millert   766:        exit 0 ;;
                    767:     p*:CYGWIN*:*)
1.2       millert   768:        echo powerpcle-unknown-cygwin
1.1       millert   769:        exit 0 ;;
                    770:     prep*:SunOS:5.*:*)
                    771:        echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
                    772:        exit 0 ;;
                    773:     *:GNU:*:*)
1.2       millert   774:        echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
                    775:        exit 0 ;;
                    776:     i*86:Minix:*:*)
                    777:        echo ${UNAME_MACHINE}-pc-minix
                    778:        exit 0 ;;
                    779:     arm*:Linux:*:*)
                    780:        echo ${UNAME_MACHINE}-unknown-linux-gnu
                    781:        exit 0 ;;
                    782:     ia64:Linux:*:*)
1.3       millert   783:        echo ${UNAME_MACHINE}-unknown-linux-gnu
1.2       millert   784:        exit 0 ;;
                    785:     m68*:Linux:*:*)
                    786:        echo ${UNAME_MACHINE}-unknown-linux-gnu
                    787:        exit 0 ;;
                    788:     mips:Linux:*:*)
1.3       millert   789:        eval $set_cc_for_build
                    790:        sed 's/^        //' << EOF >$dummy.c
                    791:        #undef CPU
                    792:        #undef mips
                    793:        #undef mipsel
                    794:        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
                    795:        CPU=mipsel
                    796:        #else
                    797:        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
                    798:        CPU=mips
                    799:        #else
                    800:        CPU=
                    801:        #endif
                    802:        #endif
                    803: EOF
                    804:        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
                    805:        rm -f $dummy.c && rmdir $tmpdir
                    806:        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
                    807:        ;;
                    808:     mips64:Linux:*:*)
                    809:        eval $set_cc_for_build
                    810:        sed 's/^        //' << EOF >$dummy.c
                    811:        #undef CPU
                    812:        #undef mips64
                    813:        #undef mips64el
                    814:        #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
                    815:        CPU=mips64el
                    816:        #else
                    817:        #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
                    818:        CPU=mips64
                    819:        #else
                    820:        CPU=
                    821:        #endif
                    822:        #endif
                    823: EOF
                    824:        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
                    825:        rm -f $dummy.c && rmdir $tmpdir
                    826:        test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
1.2       millert   827:        ;;
                    828:     ppc:Linux:*:*)
                    829:        echo powerpc-unknown-linux-gnu
                    830:        exit 0 ;;
1.3       millert   831:     ppc64:Linux:*:*)
                    832:        echo powerpc64-unknown-linux-gnu
                    833:        exit 0 ;;
1.2       millert   834:     alpha:Linux:*:*)
                    835:        case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
                    836:          EV5)   UNAME_MACHINE=alphaev5 ;;
                    837:          EV56)  UNAME_MACHINE=alphaev56 ;;
                    838:          PCA56) UNAME_MACHINE=alphapca56 ;;
                    839:          PCA57) UNAME_MACHINE=alphapca56 ;;
                    840:          EV6)   UNAME_MACHINE=alphaev6 ;;
                    841:          EV67)  UNAME_MACHINE=alphaev67 ;;
1.3       millert   842:          EV68*) UNAME_MACHINE=alphaev68 ;;
1.2       millert   843:         esac
                    844:        objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
                    845:        if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
                    846:        echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
                    847:        exit 0 ;;
                    848:     parisc:Linux:*:* | hppa:Linux:*:*)
                    849:        # Look for CPU level
                    850:        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
                    851:          PA7*) echo hppa1.1-unknown-linux-gnu ;;
                    852:          PA8*) echo hppa2.0-unknown-linux-gnu ;;
                    853:          *)    echo hppa-unknown-linux-gnu ;;
                    854:        esac
                    855:        exit 0 ;;
                    856:     parisc64:Linux:*:* | hppa64:Linux:*:*)
                    857:        echo hppa64-unknown-linux-gnu
                    858:        exit 0 ;;
                    859:     s390:Linux:*:* | s390x:Linux:*:*)
                    860:        echo ${UNAME_MACHINE}-ibm-linux
                    861:        exit 0 ;;
                    862:     sh*:Linux:*:*)
                    863:        echo ${UNAME_MACHINE}-unknown-linux-gnu
                    864:        exit 0 ;;
                    865:     sparc:Linux:*:* | sparc64:Linux:*:*)
                    866:        echo ${UNAME_MACHINE}-unknown-linux-gnu
1.1       millert   867:        exit 0 ;;
1.2       millert   868:     x86_64:Linux:*:*)
                    869:        echo x86_64-unknown-linux-gnu
                    870:        exit 0 ;;
                    871:     i*86:Linux:*:*)
1.1       millert   872:        # The BFD linker knows what the default object file format is, so
1.2       millert   873:        # first see if it will tell us. cd to the root directory to prevent
                    874:        # problems with other programs or directories called `ld' in the path.
1.3       millert   875:        # Set LC_ALL=C to ensure ld outputs messages in English.
                    876:        ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
1.2       millert   877:                         | sed -ne '/supported targets:/!d
                    878:                                    s/[         ][      ]*/ /g
                    879:                                    s/.*supported targets: *//
                    880:                                    s/ .*//
                    881:                                    p'`
                    882:         case "$ld_supported_targets" in
                    883:          elf32-i386)
                    884:                TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
                    885:                ;;
                    886:          a.out-i386-linux)
                    887:                echo "${UNAME_MACHINE}-pc-linux-gnuaout"
1.3       millert   888:                exit 0 ;;
1.2       millert   889:          coff-i386)
                    890:                echo "${UNAME_MACHINE}-pc-linux-gnucoff"
                    891:                exit 0 ;;
                    892:          "")
                    893:                # Either a pre-BFD a.out linker (linux-gnuoldld) or
                    894:                # one that does not give us useful --help.
                    895:                echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
                    896:                exit 0 ;;
                    897:        esac
                    898:        # Determine whether the default compiler is a.out or elf
1.3       millert   899:        eval $set_cc_for_build
                    900:        sed 's/^        //' << EOF >$dummy.c
                    901:        #include <features.h>
                    902:        #ifdef __ELF__
                    903:        # ifdef __GLIBC__
                    904:        #  if __GLIBC__ >= 2
                    905:        LIBC=gnu
                    906:        #  else
                    907:        LIBC=gnulibc1
                    908:        #  endif
                    909:        # else
                    910:        LIBC=gnulibc1
                    911:        # endif
                    912:        #else
                    913:        #ifdef __INTEL_COMPILER
                    914:        LIBC=gnu
                    915:        #else
                    916:        LIBC=gnuaout
                    917:        #endif
                    918:        #endif
1.1       millert   919: EOF
1.3       millert   920:        eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
                    921:        rm -f $dummy.c && rmdir $tmpdir
                    922:        test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
1.2       millert   923:        test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
                    924:        ;;
                    925:     i*86:DYNIX/ptx:4*:*)
                    926:        # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
                    927:        # earlier versions are messed up and put the nodename in both
                    928:        # sysname and nodename.
1.1       millert   929:        echo i386-sequent-sysv4
                    930:        exit 0 ;;
1.2       millert   931:     i*86:UNIX_SV:4.2MP:2.*)
                    932:         # Unixware is an offshoot of SVR4, but it has its own version
                    933:         # number series starting with 2...
                    934:         # I am not positive that other SVR4 systems won't match this,
                    935:        # I just have to hope.  -- rms.
                    936:         # Use sysv4.2uw... so that sysv4* matches it.
                    937:        echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
                    938:        exit 0 ;;
1.3       millert   939:     i*86:OS/2:*:*)
                    940:        # If we were able to find `uname', then EMX Unix compatibility
                    941:        # is probably installed.
                    942:        echo ${UNAME_MACHINE}-pc-os2-emx
                    943:        exit 0 ;;
                    944:     i*86:XTS-300:*:STOP)
                    945:        echo ${UNAME_MACHINE}-unknown-stop
                    946:        exit 0 ;;
                    947:     i*86:atheos:*:*)
                    948:        echo ${UNAME_MACHINE}-unknown-atheos
                    949:        exit 0 ;;
                    950:     i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
                    951:        echo i386-unknown-lynxos${UNAME_RELEASE}
                    952:        exit 0 ;;
                    953:     i*86:*DOS:*:*)
                    954:        echo ${UNAME_MACHINE}-pc-msdosdjgpp
                    955:        exit 0 ;;
1.2       millert   956:     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
                    957:        UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1.1       millert   958:        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1.2       millert   959:                echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
1.1       millert   960:        else
1.2       millert   961:                echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
1.1       millert   962:        fi
                    963:        exit 0 ;;
1.2       millert   964:     i*86:*:5:[78]*)
                    965:        case `/bin/uname -X | grep "^Machine"` in
                    966:            *486*)           UNAME_MACHINE=i486 ;;
                    967:            *Pentium)        UNAME_MACHINE=i586 ;;
                    968:            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
                    969:        esac
                    970:        echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
                    971:        exit 0 ;;
                    972:     i*86:*:3.2:*)
1.1       millert   973:        if test -f /usr/options/cb.name; then
                    974:                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
                    975:                echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
                    976:        elif /bin/uname -X 2>/dev/null >/dev/null ; then
1.3       millert   977:                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
                    978:                (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
                    979:                (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1.1       millert   980:                        && UNAME_MACHINE=i586
1.3       millert   981:                (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1.2       millert   982:                        && UNAME_MACHINE=i686
1.3       millert   983:                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1.2       millert   984:                        && UNAME_MACHINE=i686
1.1       millert   985:                echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
                    986:        else
                    987:                echo ${UNAME_MACHINE}-pc-sysv32
                    988:        fi
                    989:        exit 0 ;;
1.2       millert   990:     pc:*:*:*)
                    991:        # Left here for compatibility:
                    992:         # uname -m prints for DJGPP always 'pc', but it prints nothing about
                    993:         # the processor, so we play safe by assuming i386.
                    994:        echo i386-pc-msdosdjgpp
                    995:         exit 0 ;;
1.1       millert   996:     Intel:Mach:3*:*)
                    997:        echo i386-pc-mach3
                    998:        exit 0 ;;
                    999:     paragon:*:*:*)
                   1000:        echo i860-intel-osf1
                   1001:        exit 0 ;;
                   1002:     i860:*:4.*:*) # i860-SVR4
                   1003:        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
                   1004:          echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
                   1005:        else # Add other i860-SVR4 vendors below as they are discovered.
                   1006:          echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
                   1007:        fi
                   1008:        exit 0 ;;
                   1009:     mini*:CTIX:SYS*5:*)
                   1010:        # "miniframe"
                   1011:        echo m68010-convergent-sysv
                   1012:        exit 0 ;;
1.3       millert  1013:     mc68k:UNIX:SYSTEM5:3.51m)
                   1014:        echo m68k-convergent-sysv
                   1015:        exit 0 ;;
                   1016:     M680?0:D-NIX:5.3:*)
                   1017:        echo m68k-diab-dnix
                   1018:        exit 0 ;;
1.1       millert  1019:     M68*:*:R3V[567]*:*)
                   1020:        test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1.3       millert  1021:     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)
1.1       millert  1022:        OS_REL=''
                   1023:        test -r /etc/.relid \
                   1024:        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
                   1025:        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
                   1026:          && echo i486-ncr-sysv4.3${OS_REL} && exit 0
                   1027:        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
                   1028:          && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
                   1029:     3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
                   1030:         /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
                   1031:           && echo i486-ncr-sysv4 && exit 0 ;;
1.2       millert  1032:     m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1.1       millert  1033:        echo m68k-unknown-lynxos${UNAME_RELEASE}
                   1034:        exit 0 ;;
                   1035:     mc68030:UNIX_System_V:4.*:*)
                   1036:        echo m68k-atari-sysv4
                   1037:        exit 0 ;;
                   1038:     TSUNAMI:LynxOS:2.*:*)
                   1039:        echo sparc-unknown-lynxos${UNAME_RELEASE}
                   1040:        exit 0 ;;
1.2       millert  1041:     rs6000:LynxOS:2.*:*)
1.1       millert  1042:        echo rs6000-unknown-lynxos${UNAME_RELEASE}
                   1043:        exit 0 ;;
1.2       millert  1044:     PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
                   1045:        echo powerpc-unknown-lynxos${UNAME_RELEASE}
                   1046:        exit 0 ;;
1.1       millert  1047:     SM[BE]S:UNIX_SV:*:*)
                   1048:        echo mips-dde-sysv${UNAME_RELEASE}
                   1049:        exit 0 ;;
1.2       millert  1050:     RM*:ReliantUNIX-*:*:*)
                   1051:        echo mips-sni-sysv4
                   1052:        exit 0 ;;
                   1053:     RM*:SINIX-*:*:*)
1.1       millert  1054:        echo mips-sni-sysv4
                   1055:        exit 0 ;;
                   1056:     *:SINIX-*:*:*)
                   1057:        if uname -p 2>/dev/null >/dev/null ; then
                   1058:                UNAME_MACHINE=`(uname -p) 2>/dev/null`
                   1059:                echo ${UNAME_MACHINE}-sni-sysv4
                   1060:        else
                   1061:                echo ns32k-sni-sysv
                   1062:        fi
                   1063:        exit 0 ;;
1.3       millert  1064:     PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
                   1065:                       # says <Richard.M.Bartel@ccMail.Census.GOV>
1.2       millert  1066:         echo i586-unisys-sysv4
                   1067:         exit 0 ;;
1.1       millert  1068:     *:UNIX_System_V:4*:FTX*)
                   1069:        # From Gerald Hewes <hewes@openmarket.com>.
                   1070:        # How about differentiating between stratus architectures? -djm
                   1071:        echo hppa1.1-stratus-sysv4
                   1072:        exit 0 ;;
                   1073:     *:*:*:FTX*)
                   1074:        # From seanf@swdc.stratus.com.
                   1075:        echo i860-stratus-sysv4
                   1076:        exit 0 ;;
1.3       millert  1077:     *:VOS:*:*)
                   1078:        # From Paul.Green@stratus.com.
                   1079:        echo hppa1.1-stratus-vos
                   1080:        exit 0 ;;
1.1       millert  1081:     mc68*:A/UX:*:*)
                   1082:        echo m68k-apple-aux${UNAME_RELEASE}
                   1083:        exit 0 ;;
1.2       millert  1084:     news*:NEWS-OS:6*:*)
                   1085:        echo mips-sony-newsos6
                   1086:        exit 0 ;;
                   1087:     R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1.1       millert  1088:        if [ -d /usr/nec ]; then
                   1089:                echo mips-nec-sysv${UNAME_RELEASE}
                   1090:        else
                   1091:                echo mips-unknown-sysv${UNAME_RELEASE}
                   1092:        fi
                   1093:         exit 0 ;;
1.2       millert  1094:     BeBox:BeOS:*:*)    # BeOS running on hardware made by Be, PPC only.
                   1095:        echo powerpc-be-beos
                   1096:        exit 0 ;;
                   1097:     BeMac:BeOS:*:*)    # BeOS running on Mac or Mac clone, PPC only.
                   1098:        echo powerpc-apple-beos
                   1099:        exit 0 ;;
                   1100:     BePC:BeOS:*:*)     # BeOS running on Intel PC compatible.
                   1101:        echo i586-pc-beos
                   1102:        exit 0 ;;
                   1103:     SX-4:SUPER-UX:*:*)
                   1104:        echo sx4-nec-superux${UNAME_RELEASE}
                   1105:        exit 0 ;;
                   1106:     SX-5:SUPER-UX:*:*)
                   1107:        echo sx5-nec-superux${UNAME_RELEASE}
                   1108:        exit 0 ;;
1.3       millert  1109:     SX-6:SUPER-UX:*:*)
                   1110:        echo sx6-nec-superux${UNAME_RELEASE}
                   1111:        exit 0 ;;
1.2       millert  1112:     Power*:Rhapsody:*:*)
                   1113:        echo powerpc-apple-rhapsody${UNAME_RELEASE}
                   1114:        exit 0 ;;
                   1115:     *:Rhapsody:*:*)
                   1116:        echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
                   1117:        exit 0 ;;
                   1118:     *:Darwin:*:*)
                   1119:        echo `uname -p`-apple-darwin${UNAME_RELEASE}
                   1120:        exit 0 ;;
                   1121:     *:procnto*:*:* | *:QNX:[0123456789]*:*)
1.3       millert  1122:        UNAME_PROCESSOR=`uname -p`
                   1123:        if test "$UNAME_PROCESSOR" = "x86"; then
                   1124:                UNAME_PROCESSOR=i386
1.2       millert  1125:                UNAME_MACHINE=pc
                   1126:        fi
1.3       millert  1127:        echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1.2       millert  1128:        exit 0 ;;
                   1129:     *:QNX:*:4*)
                   1130:        echo i386-pc-qnx
                   1131:        exit 0 ;;
1.3       millert  1132:     NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*)
1.2       millert  1133:        echo nsr-tandem-nsk${UNAME_RELEASE}
                   1134:        exit 0 ;;
                   1135:     *:NonStop-UX:*:*)
                   1136:        echo mips-compaq-nonstopux
                   1137:        exit 0 ;;
                   1138:     BS2000:POSIX*:*:*)
                   1139:        echo bs2000-siemens-sysv
                   1140:        exit 0 ;;
                   1141:     DS/*:UNIX_System_V:*:*)
                   1142:        echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
                   1143:        exit 0 ;;
                   1144:     *:Plan9:*:*)
                   1145:        # "uname -m" is not consistent, so use $cputype instead. 386
                   1146:        # is converted to i386 for consistency with other x86
                   1147:        # operating systems.
                   1148:        if test "$cputype" = "386"; then
                   1149:            UNAME_MACHINE=i386
                   1150:        else
                   1151:            UNAME_MACHINE="$cputype"
                   1152:        fi
                   1153:        echo ${UNAME_MACHINE}-unknown-plan9
                   1154:        exit 0 ;;
                   1155:     *:TOPS-10:*:*)
                   1156:        echo pdp10-unknown-tops10
                   1157:        exit 0 ;;
                   1158:     *:TENEX:*:*)
                   1159:        echo pdp10-unknown-tenex
                   1160:        exit 0 ;;
                   1161:     KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
                   1162:        echo pdp10-dec-tops20
                   1163:        exit 0 ;;
                   1164:     XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
                   1165:        echo pdp10-xkl-tops20
                   1166:        exit 0 ;;
                   1167:     *:TOPS-20:*:*)
                   1168:        echo pdp10-unknown-tops20
                   1169:        exit 0 ;;
                   1170:     *:ITS:*:*)
                   1171:        echo pdp10-unknown-its
                   1172:        exit 0 ;;
1.1       millert  1173: esac
                   1174:
                   1175: #echo '(No uname command or uname output not recognized.)' 1>&2
                   1176: #echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
                   1177:
1.3       millert  1178: eval $set_cc_for_build
1.2       millert  1179: cat >$dummy.c <<EOF
1.1       millert  1180: #ifdef _SEQUENT_
                   1181: # include <sys/types.h>
                   1182: # include <sys/utsname.h>
                   1183: #endif
                   1184: main ()
                   1185: {
                   1186: #if defined (sony)
                   1187: #if defined (MIPSEB)
                   1188:   /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
                   1189:      I don't know....  */
                   1190:   printf ("mips-sony-bsd\n"); exit (0);
                   1191: #else
                   1192: #include <sys/param.h>
                   1193:   printf ("m68k-sony-newsos%s\n",
                   1194: #ifdef NEWSOS4
                   1195:           "4"
                   1196: #else
                   1197:          ""
                   1198: #endif
                   1199:          ); exit (0);
                   1200: #endif
                   1201: #endif
                   1202:
                   1203: #if defined (__arm) && defined (__acorn) && defined (__unix)
                   1204:   printf ("arm-acorn-riscix"); exit (0);
                   1205: #endif
                   1206:
                   1207: #if defined (hp300) && !defined (hpux)
                   1208:   printf ("m68k-hp-bsd\n"); exit (0);
                   1209: #endif
                   1210:
                   1211: #if defined (NeXT)
                   1212: #if !defined (__ARCHITECTURE__)
                   1213: #define __ARCHITECTURE__ "m68k"
                   1214: #endif
                   1215:   int version;
                   1216:   version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1.2       millert  1217:   if (version < 4)
                   1218:     printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
                   1219:   else
                   1220:     printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1.1       millert  1221:   exit (0);
                   1222: #endif
                   1223:
                   1224: #if defined (MULTIMAX) || defined (n16)
                   1225: #if defined (UMAXV)
                   1226:   printf ("ns32k-encore-sysv\n"); exit (0);
                   1227: #else
                   1228: #if defined (CMU)
                   1229:   printf ("ns32k-encore-mach\n"); exit (0);
                   1230: #else
                   1231:   printf ("ns32k-encore-bsd\n"); exit (0);
                   1232: #endif
                   1233: #endif
                   1234: #endif
                   1235:
                   1236: #if defined (__386BSD__)
                   1237:   printf ("i386-pc-bsd\n"); exit (0);
                   1238: #endif
                   1239:
                   1240: #if defined (sequent)
                   1241: #if defined (i386)
                   1242:   printf ("i386-sequent-dynix\n"); exit (0);
                   1243: #endif
                   1244: #if defined (ns32000)
                   1245:   printf ("ns32k-sequent-dynix\n"); exit (0);
                   1246: #endif
                   1247: #endif
                   1248:
                   1249: #if defined (_SEQUENT_)
                   1250:     struct utsname un;
                   1251:
                   1252:     uname(&un);
                   1253:
                   1254:     if (strncmp(un.version, "V2", 2) == 0) {
                   1255:        printf ("i386-sequent-ptx2\n"); exit (0);
                   1256:     }
                   1257:     if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
                   1258:        printf ("i386-sequent-ptx1\n"); exit (0);
                   1259:     }
                   1260:     printf ("i386-sequent-ptx\n"); exit (0);
                   1261:
                   1262: #endif
                   1263:
                   1264: #if defined (vax)
1.2       millert  1265: # if !defined (ultrix)
                   1266: #  include <sys/param.h>
                   1267: #  if defined (BSD)
                   1268: #   if BSD == 43
                   1269:       printf ("vax-dec-bsd4.3\n"); exit (0);
                   1270: #   else
                   1271: #    if BSD == 199006
                   1272:       printf ("vax-dec-bsd4.3reno\n"); exit (0);
                   1273: #    else
                   1274:       printf ("vax-dec-bsd\n"); exit (0);
                   1275: #    endif
                   1276: #   endif
                   1277: #  else
                   1278:     printf ("vax-dec-bsd\n"); exit (0);
                   1279: #  endif
                   1280: # else
                   1281:     printf ("vax-dec-ultrix\n"); exit (0);
                   1282: # endif
1.1       millert  1283: #endif
                   1284:
                   1285: #if defined (alliant) && defined (i860)
                   1286:   printf ("i860-alliant-bsd\n"); exit (0);
                   1287: #endif
                   1288:
                   1289:   exit (1);
                   1290: }
                   1291: EOF
                   1292:
1.3       millert  1293: $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && rm -f $dummy.c $dummy && rmdir $tmpdir && exit 0
                   1294: rm -f $dummy.c $dummy && rmdir $tmpdir
1.1       millert  1295:
                   1296: # Apollos put the system type in the environment.
                   1297:
                   1298: test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
                   1299:
                   1300: # Convex versions that predate uname can use getsysinfo(1)
                   1301:
                   1302: if [ -x /usr/convex/getsysinfo ]
                   1303: then
                   1304:     case `getsysinfo -f cpu_type` in
                   1305:     c1*)
                   1306:        echo c1-convex-bsd
                   1307:        exit 0 ;;
                   1308:     c2*)
                   1309:        if getsysinfo -f scalar_acc
                   1310:        then echo c32-convex-bsd
                   1311:        else echo c2-convex-bsd
                   1312:        fi
                   1313:        exit 0 ;;
                   1314:     c34*)
                   1315:        echo c34-convex-bsd
                   1316:        exit 0 ;;
                   1317:     c38*)
                   1318:        echo c38-convex-bsd
                   1319:        exit 0 ;;
                   1320:     c4*)
                   1321:        echo c4-convex-bsd
                   1322:        exit 0 ;;
                   1323:     esac
                   1324: fi
                   1325:
1.2       millert  1326: cat >&2 <<EOF
                   1327: $0: unable to guess system type
                   1328:
                   1329: This script, last modified $timestamp, has failed to recognize
                   1330: the operating system you are using. It is advised that you
                   1331: download the most up to date version of the config scripts from
                   1332:
                   1333:     ftp://ftp.gnu.org/pub/gnu/config/
                   1334:
                   1335: If the version you run ($0) is already up to date, please
                   1336: send the following data and any information you think might be
                   1337: pertinent to <config-patches@gnu.org> in order to provide the needed
                   1338: information to handle your system.
                   1339:
                   1340: config.guess timestamp = $timestamp
                   1341:
                   1342: uname -m = `(uname -m) 2>/dev/null || echo unknown`
                   1343: uname -r = `(uname -r) 2>/dev/null || echo unknown`
                   1344: uname -s = `(uname -s) 2>/dev/null || echo unknown`
                   1345: uname -v = `(uname -v) 2>/dev/null || echo unknown`
                   1346:
                   1347: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
                   1348: /bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
                   1349:
                   1350: hostinfo               = `(hostinfo) 2>/dev/null`
                   1351: /bin/universe          = `(/bin/universe) 2>/dev/null`
                   1352: /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
                   1353: /bin/arch              = `(/bin/arch) 2>/dev/null`
                   1354: /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
                   1355: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
                   1356:
                   1357: UNAME_MACHINE = ${UNAME_MACHINE}
                   1358: UNAME_RELEASE = ${UNAME_RELEASE}
                   1359: UNAME_SYSTEM  = ${UNAME_SYSTEM}
                   1360: UNAME_VERSION = ${UNAME_VERSION}
                   1361: EOF
1.1       millert  1362:
                   1363: exit 1
1.2       millert  1364:
                   1365: # Local variables:
                   1366: # eval: (add-hook 'write-file-hooks 'time-stamp)
                   1367: # time-stamp-start: "timestamp='"
                   1368: # time-stamp-format: "%:y-%02m-%02d"
                   1369: # time-stamp-end: "'"
                   1370: # End: