Changeset 6418c91d in rtems for config.guess


Ignore:
Timestamp:
Jul 6, 2018, 7:25:57 AM (10 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
dd32e2b2
Parents:
fc5cc9a
git-author:
Sebastian Huber <sebastian.huber@…> (07/06/18 07:25:57)
git-committer:
Sebastian Huber <sebastian.huber@…> (07/06/18 08:06:02)
Message:

Update config.guess and config.sub

Update via:

wget -O config.guess 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD'
wget -O config.sub 'https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD'

Update #3433.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • config.guess

    rfc5cc9a r6418c91d  
    11#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright 1992-2015 Free Software Foundation, Inc.
    4 
    5 timestamp='2015-10-21'
     3#   Copyright 1992-2018 Free Software Foundation, Inc.
     4
     5timestamp='2018-06-26'
    66
    77# This file is free software; you can redistribute it and/or modify it
     
    1616#
    1717# You should have received a copy of the GNU General Public License
    18 # along with this program; if not, see <http://www.gnu.org/licenses/>.
     18# along with this program; if not, see <https://www.gnu.org/licenses/>.
    1919#
    2020# As a special exception to the GNU General Public License, if you
     
    2828#
    2929# You can get the latest version of this script from:
    30 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
     30# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
    3131#
    3232# Please send patches to <config-patches@gnu.org>.
     
    4040Output the configuration name of the system \`$me' is run on.
    4141
    42 Operation modes:
     42Options:
    4343  -h, --help         print this help, then exit
    4444  -t, --time-stamp   print date of last modification, then exit
     
    5151
    5252Originally written by Per Bothner.
    53 Copyright 1992-2015 Free Software Foundation, Inc.
     53Copyright 1992-2018 Free Software Foundation, Inc.
    5454
    5555This is free software; see the source for copying conditions.  There is NO
     
    107107dummy=$tmp/dummy ;
    108108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    109 case $CC_FOR_BUILD,$HOST_CC,$CC in
    110  ,,)    echo "int x;" > $dummy.c ;
     109case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
     110 ,,)    echo "int x;" > "$dummy.c" ;
    111111        for c in cc gcc c89 c99 ; do
    112           if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
     112          if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
    113113             CC_FOR_BUILD="$c"; break ;
    114114          fi ;
     
    133133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
    134134
    135 case "${UNAME_SYSTEM}" in
     135case "$UNAME_SYSTEM" in
    136136Linux|GNU|GNU/*)
    137137        # If the system lacks a compiler, then just pick glibc.
     
    139139        LIBC=gnu
    140140
    141         eval $set_cc_for_build
    142         cat <<-EOF > $dummy.c
     141        eval "$set_cc_for_build"
     142        cat <<-EOF > "$dummy.c"
    143143        #include <features.h>
    144144        #if defined(__UCLIBC__)
     
    150150        #endif
    151151        EOF
    152         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
     152        eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"
     153
     154        # If ldd exists, use it to detect musl libc.
     155        if command -v ldd >/dev/null && \
     156                ldd --version 2>&1 | grep -q ^musl
     157        then
     158            LIBC=musl
     159        fi
    153160        ;;
    154161esac
     
    156163# Note: order is significant - the case branches are not exclusive.
    157164
    158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     165case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
    159166    *:NetBSD:*:*)
    160167        # NetBSD (nbsd) targets should (where applicable) match one or
     
    170177        sysctl="sysctl -n hw.machine_arch"
    171178        UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
    172             /sbin/$sysctl 2>/dev/null || \
    173             /usr/sbin/$sysctl 2>/dev/null || \
     179            "/sbin/$sysctl" 2>/dev/null || \
     180            "/usr/sbin/$sysctl" 2>/dev/null || \
    174181            echo unknown)`
    175         case "${UNAME_MACHINE_ARCH}" in
     182        case "$UNAME_MACHINE_ARCH" in
    176183            armeb) machine=armeb-unknown ;;
    177184            arm*) machine=arm-unknown ;;
     
    180187            sh5el) machine=sh5le-unknown ;;
    181188            earmv*)
    182                 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
    183                 endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'`
    184                 machine=${arch}${endian}-unknown
     189                arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
     190                endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
     191                machine="${arch}${endian}"-unknown
    185192                ;;
    186             *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
     193            *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
    187194        esac
    188195        # The Operating System including object format, if it has switched
    189         # to ELF recently, or will in the future.
    190         case "${UNAME_MACHINE_ARCH}" in
    191             arm*|earm*|i386|m68k|ns32k|sh3*|sparc|vax)
    192                 eval $set_cc_for_build
     196        # to ELF recently (or will in the future) and ABI.
     197        case "$UNAME_MACHINE_ARCH" in
     198            earm*)
     199                os=netbsdelf
     200                ;;
     201            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
     202                eval "$set_cc_for_build"
    193203                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    194204                        | grep -q __ELF__
     
    206216        esac
    207217        # Determine ABI tags.
    208         case "${UNAME_MACHINE_ARCH}" in
     218        case "$UNAME_MACHINE_ARCH" in
    209219            earm*)
    210220                expr='s/^earmv[0-9]/-eabi/;s/eb$//'
    211                 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
     221                abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
    212222                ;;
    213223        esac
     
    217227        # kernel version information, so it can be replaced with a
    218228        # suitable tag, in the style of linux-gnu.
    219         case "${UNAME_VERSION}" in
     229        case "$UNAME_VERSION" in
    220230            Debian*)
    221231                release='-gnu'
    222232                ;;
    223233            *)
    224                 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
     234                release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
    225235                ;;
    226236        esac
     
    228238        # contains redundant information, the shorter form:
    229239        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    230         echo "${machine}-${os}${release}${abi}"
     240        echo "$machine-${os}${release}${abi-}"
    231241        exit ;;
    232242    *:Bitrig:*:*)
    233243        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
    234         echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
     244        echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
    235245        exit ;;
    236246    *:OpenBSD:*:*)
    237247        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    238         echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     248        echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
     249        exit ;;
     250    *:LibertyBSD:*:*)
     251        UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
     252        echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
     253        exit ;;
     254    *:MidnightBSD:*:*)
     255        echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
    239256        exit ;;
    240257    *:ekkoBSD:*:*)
    241         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     258        echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
    242259        exit ;;
    243260    *:SolidBSD:*:*)
    244         echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     261        echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
    245262        exit ;;
    246263    macppc:MirBSD:*:*)
    247         echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     264        echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
    248265        exit ;;
    249266    *:MirBSD:*:*)
    250         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     267        echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
    251268        exit ;;
    252269    *:Sortix:*:*)
    253         echo ${UNAME_MACHINE}-unknown-sortix
    254         exit ;;
     270        echo "$UNAME_MACHINE"-unknown-sortix
     271        exit ;;
     272    *:Redox:*:*)
     273        echo "$UNAME_MACHINE"-unknown-redox
     274        exit ;;
     275    mips:OSF1:*.*)
     276        echo mips-dec-osf1
     277        exit ;;
    255278    alpha:OSF1:*:*)
    256279        case $UNAME_RELEASE in
     
    269292        case "$ALPHA_CPU_TYPE" in
    270293            "EV4 (21064)")
    271                 UNAME_MACHINE="alpha" ;;
     294                UNAME_MACHINE=alpha ;;
    272295            "EV4.5 (21064)")
    273                 UNAME_MACHINE="alpha" ;;
     296                UNAME_MACHINE=alpha ;;
    274297            "LCA4 (21066/21068)")
    275                 UNAME_MACHINE="alpha" ;;
     298                UNAME_MACHINE=alpha ;;
    276299            "EV5 (21164)")
    277                 UNAME_MACHINE="alphaev5" ;;
     300                UNAME_MACHINE=alphaev5 ;;
    278301            "EV5.6 (21164A)")
    279                 UNAME_MACHINE="alphaev56" ;;
     302                UNAME_MACHINE=alphaev56 ;;
    280303            "EV5.6 (21164PC)")
    281                 UNAME_MACHINE="alphapca56" ;;
     304                UNAME_MACHINE=alphapca56 ;;
    282305            "EV5.7 (21164PC)")
    283                 UNAME_MACHINE="alphapca57" ;;
     306                UNAME_MACHINE=alphapca57 ;;
    284307            "EV6 (21264)")
    285                 UNAME_MACHINE="alphaev6" ;;
     308                UNAME_MACHINE=alphaev6 ;;
    286309            "EV6.7 (21264A)")
    287                 UNAME_MACHINE="alphaev67" ;;
     310                UNAME_MACHINE=alphaev67 ;;
    288311            "EV6.8CB (21264C)")
    289                 UNAME_MACHINE="alphaev68" ;;
     312                UNAME_MACHINE=alphaev68 ;;
    290313            "EV6.8AL (21264B)")
    291                 UNAME_MACHINE="alphaev68" ;;
     314                UNAME_MACHINE=alphaev68 ;;
    292315            "EV6.8CX (21264D)")
    293                 UNAME_MACHINE="alphaev68" ;;
     316                UNAME_MACHINE=alphaev68 ;;
    294317            "EV6.9A (21264/EV69A)")
    295                 UNAME_MACHINE="alphaev69" ;;
     318                UNAME_MACHINE=alphaev69 ;;
    296319            "EV7 (21364)")
    297                 UNAME_MACHINE="alphaev7" ;;
     320                UNAME_MACHINE=alphaev7 ;;
    298321            "EV7.9 (21364A)")
    299                 UNAME_MACHINE="alphaev79" ;;
     322                UNAME_MACHINE=alphaev79 ;;
    300323        esac
    301324        # A Pn.n version is a patched version.
     
    304327        # A Xn.n version is an unreleased experimental baselevel.
    305328        # 1.2 uses "1.2" for uname -r.
    306         echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
     329        echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
    307330        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
    308331        exitcode=$?
    309332        trap '' 0
    310333        exit $exitcode ;;
    311     Alpha\ *:Windows_NT*:*)
    312         # How do we know it's Interix rather than the generic POSIX subsystem?
    313         # Should we change UNAME_MACHINE based on the output of uname instead
    314         # of the specific Alpha model?
    315         echo alpha-pc-interix
    316         exit ;;
    317     21064:Windows_NT:50:3)
    318         echo alpha-dec-winnt3.5
    319         exit ;;
    320334    Amiga*:UNIX_System_V:4.0:*)
    321335        echo m68k-unknown-sysv4
    322336        exit ;;
    323337    *:[Aa]miga[Oo][Ss]:*:*)
    324         echo ${UNAME_MACHINE}-unknown-amigaos
     338        echo "$UNAME_MACHINE"-unknown-amigaos
    325339        exit ;;
    326340    *:[Mm]orph[Oo][Ss]:*:*)
    327         echo ${UNAME_MACHINE}-unknown-morphos
     341        echo "$UNAME_MACHINE"-unknown-morphos
    328342        exit ;;
    329343    *:OS/390:*:*)
     
    337351        exit ;;
    338352    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    339         echo arm-acorn-riscix${UNAME_RELEASE}
     353        echo arm-acorn-riscix"$UNAME_RELEASE"
    340354        exit ;;
    341355    arm*:riscos:*:*|arm*:RISCOS:*:*)
     
    364378        esac ;;
    365379    s390x:SunOS:*:*)
    366         echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     380        echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
    367381        exit ;;
    368382    sun4H:SunOS:5.*:*)
    369         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     383        echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    370384        exit ;;
    371385    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    372         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     386        echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
    373387        exit ;;
    374388    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
    375         echo i386-pc-auroraux${UNAME_RELEASE}
     389        echo i386-pc-auroraux"$UNAME_RELEASE"
    376390        exit ;;
    377391    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    378         eval $set_cc_for_build
    379         SUN_ARCH="i386"
     392        eval "$set_cc_for_build"
     393        SUN_ARCH=i386
    380394        # If there is a compiler, see if it is configured for 64-bit objects.
    381395        # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
    382396        # This test works for both compilers.
    383         if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     397        if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
    384398            if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
    385                 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
     399                (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
    386400                grep IS_64BIT_ARCH >/dev/null
    387401            then
    388                 SUN_ARCH="x86_64"
     402                SUN_ARCH=x86_64
    389403            fi
    390404        fi
    391         echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     405        echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    392406        exit ;;
    393407    sun4*:SunOS:6*:*)
     
    395409        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
    396410        # it's likely to be more like Solaris than SunOS4.
    397         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     411        echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    398412        exit ;;
    399413    sun4*:SunOS:*:*)
     
    404418        esac
    405419        # Japanese Language versions have a version number like `4.1.3-JL'.
    406         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
     420        echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
    407421        exit ;;
    408422    sun3*:SunOS:*:*)
    409         echo m68k-sun-sunos${UNAME_RELEASE}
     423        echo m68k-sun-sunos"$UNAME_RELEASE"
    410424        exit ;;
    411425    sun*:*:4.2BSD:*)
    412426        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    413         test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
     427        test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
    414428        case "`/bin/arch`" in
    415429            sun3)
    416                 echo m68k-sun-sunos${UNAME_RELEASE}
     430                echo m68k-sun-sunos"$UNAME_RELEASE"
    417431                ;;
    418432            sun4)
    419                 echo sparc-sun-sunos${UNAME_RELEASE}
     433                echo sparc-sun-sunos"$UNAME_RELEASE"
    420434                ;;
    421435        esac
    422436        exit ;;
    423437    aushp:SunOS:*:*)
    424         echo sparc-auspex-sunos${UNAME_RELEASE}
     438        echo sparc-auspex-sunos"$UNAME_RELEASE"
    425439        exit ;;
    426440    # The situation for MiNT is a little confusing.  The machine name
     
    433447    # be no problem.
    434448    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    435         echo m68k-atari-mint${UNAME_RELEASE}
     449        echo m68k-atari-mint"$UNAME_RELEASE"
    436450        exit ;;
    437451    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    438         echo m68k-atari-mint${UNAME_RELEASE}
     452        echo m68k-atari-mint"$UNAME_RELEASE"
    439453        exit ;;
    440454    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    441         echo m68k-atari-mint${UNAME_RELEASE}
     455        echo m68k-atari-mint"$UNAME_RELEASE"
    442456        exit ;;
    443457    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    444         echo m68k-milan-mint${UNAME_RELEASE}
     458        echo m68k-milan-mint"$UNAME_RELEASE"
    445459        exit ;;
    446460    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    447         echo m68k-hades-mint${UNAME_RELEASE}
     461        echo m68k-hades-mint"$UNAME_RELEASE"
    448462        exit ;;
    449463    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    450         echo m68k-unknown-mint${UNAME_RELEASE}
     464        echo m68k-unknown-mint"$UNAME_RELEASE"
    451465        exit ;;
    452466    m68k:machten:*:*)
    453         echo m68k-apple-machten${UNAME_RELEASE}
     467        echo m68k-apple-machten"$UNAME_RELEASE"
    454468        exit ;;
    455469    powerpc:machten:*:*)
    456         echo powerpc-apple-machten${UNAME_RELEASE}
     470        echo powerpc-apple-machten"$UNAME_RELEASE"
    457471        exit ;;
    458472    RISC*:Mach:*:*)
     
    460474        exit ;;
    461475    RISC*:ULTRIX:*:*)
    462         echo mips-dec-ultrix${UNAME_RELEASE}
     476        echo mips-dec-ultrix"$UNAME_RELEASE"
    463477        exit ;;
    464478    VAX*:ULTRIX*:*:*)
    465         echo vax-dec-ultrix${UNAME_RELEASE}
     479        echo vax-dec-ultrix"$UNAME_RELEASE"
    466480        exit ;;
    467481    2020:CLIX:*:* | 2430:CLIX:*:*)
    468         echo clipper-intergraph-clix${UNAME_RELEASE}
     482        echo clipper-intergraph-clix"$UNAME_RELEASE"
    469483        exit ;;
    470484    mips:*:*:UMIPS | mips:*:*:RISCos)
    471         eval $set_cc_for_build
    472         sed 's/^        //' << EOF >$dummy.c
     485        eval "$set_cc_for_build"
     486        sed 's/^        //' << EOF > "$dummy.c"
    473487#ifdef __cplusplus
    474488#include <stdio.h>  /* for printf() prototype */
     
    479493        #if defined (host_mips) && defined (MIPSEB)
    480494        #if defined (SYSTYPE_SYSV)
    481           printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
     495          printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
    482496        #endif
    483497        #if defined (SYSTYPE_SVR4)
    484           printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
     498          printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
    485499        #endif
    486500        #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
    487           printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
     501          printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
    488502        #endif
    489503        #endif
     
    491505        }
    492506EOF
    493         $CC_FOR_BUILD -o $dummy $dummy.c &&
    494           dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
    495           SYSTEM_NAME=`$dummy $dummyarg` &&
     507        $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
     508          dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
     509          SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
    496510            { echo "$SYSTEM_NAME"; exit; }
    497         echo mips-mips-riscos${UNAME_RELEASE}
     511        echo mips-mips-riscos"$UNAME_RELEASE"
    498512        exit ;;
    499513    Motorola:PowerMAX_OS:*:*)
     
    521535        # DG/UX returns AViiON for all architectures
    522536        UNAME_PROCESSOR=`/usr/bin/uname -p`
    523         if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
     537        if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
    524538        then
    525             if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
    526                [ ${TARGET_BINARY_INTERFACE}x = x ]
     539            if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
     540               [ "$TARGET_BINARY_INTERFACE"x = x ]
    527541            then
    528                 echo m88k-dg-dgux${UNAME_RELEASE}
     542                echo m88k-dg-dgux"$UNAME_RELEASE"
    529543            else
    530                 echo m88k-dg-dguxbcs${UNAME_RELEASE}
     544                echo m88k-dg-dguxbcs"$UNAME_RELEASE"
    531545            fi
    532546        else
    533             echo i586-dg-dgux${UNAME_RELEASE}
     547            echo i586-dg-dgux"$UNAME_RELEASE"
    534548        fi
    535549        exit ;;
     
    548562        exit ;;
    549563    *:IRIX*:*:*)
    550         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
     564        echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
    551565        exit ;;
    552566    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
     
    560574                IBM_REV=`/usr/bin/oslevel`
    561575        else
    562                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    563         fi
    564         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
     576                IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
     577        fi
     578        echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
    565579        exit ;;
    566580    *:AIX:2:3)
    567581        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    568                 eval $set_cc_for_build
    569                 sed 's/^                //' << EOF >$dummy.c
     582                eval "$set_cc_for_build"
     583                sed 's/^                //' << EOF > "$dummy.c"
    570584                #include <sys/systemcfg.h>
    571585
     
    578592                        }
    579593EOF
    580                 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     594                if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
    581595                then
    582596                        echo "$SYSTEM_NAME"
     
    592606    *:AIX:*:[4567])
    593607        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    594         if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
     608        if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
    595609                IBM_ARCH=rs6000
    596610        else
     
    601615                           awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
    602616        else
    603                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    604         fi
    605         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
     617                IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
     618        fi
     619        echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
    606620        exit ;;
    607621    *:AIX:*:*)
    608622        echo rs6000-ibm-aix
    609623        exit ;;
    610     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
     624    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
    611625        echo romp-ibm-bsd4.4
    612626        exit ;;
    613627    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    614         echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
     628        echo romp-ibm-bsd"$UNAME_RELEASE"   # 4.3 with uname added to
    615629        exit ;;                             # report: romp-ibm BSD 4.3
    616630    *:BOSX:*:*)
     
    627641        exit ;;
    628642    9000/[34678]??:HP-UX:*:*)
    629         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    630         case "${UNAME_MACHINE}" in
    631             9000/31? )            HP_ARCH=m68000 ;;
    632             9000/[34]?? )         HP_ARCH=m68k ;;
     643        HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
     644        case "$UNAME_MACHINE" in
     645            9000/31?)            HP_ARCH=m68000 ;;
     646            9000/[34]??)         HP_ARCH=m68k ;;
    633647            9000/[678][0-9][0-9])
    634648                if [ -x /usr/bin/getconf ]; then
    635649                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    636650                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    637                     case "${sc_cpu_version}" in
    638                       523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
    639                       528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
     651                    case "$sc_cpu_version" in
     652                      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
     653                      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
    640654                      532)                      # CPU_PA_RISC2_0
    641                         case "${sc_kernel_bits}" in
    642                           32) HP_ARCH="hppa2.0n" ;;
    643                           64) HP_ARCH="hppa2.0w" ;;
    644                           '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
     655                        case "$sc_kernel_bits" in
     656                          32) HP_ARCH=hppa2.0n ;;
     657                          64) HP_ARCH=hppa2.0w ;;
     658                          '') HP_ARCH=hppa2.0 ;;   # HP-UX 10.20
    645659                        esac ;;
    646660                    esac
    647661                fi
    648                 if [ "${HP_ARCH}" = "" ]; then
    649                     eval $set_cc_for_build
    650                     sed 's/^            //' << EOF >$dummy.c
     662                if [ "$HP_ARCH" = "" ]; then
     663                    eval "$set_cc_for_build"
     664                    sed 's/^            //' << EOF > "$dummy.c"
    651665
    652666                #define _HPUX_SOURCE
     
    681695                }
    682696EOF
    683                     (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
     697                    (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
    684698                    test -z "$HP_ARCH" && HP_ARCH=hppa
    685699                fi ;;
    686700        esac
    687         if [ ${HP_ARCH} = "hppa2.0w" ]
     701        if [ "$HP_ARCH" = hppa2.0w ]
    688702        then
    689             eval $set_cc_for_build
     703            eval "$set_cc_for_build"
    690704
    691705            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     
    698712            # => hppa64-hp-hpux11.23
    699713
    700             if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
     714            if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
    701715                grep -q __LP64__
    702716            then
    703                 HP_ARCH="hppa2.0w"
     717                HP_ARCH=hppa2.0w
    704718            else
    705                 HP_ARCH="hppa64"
     719                HP_ARCH=hppa64
    706720            fi
    707721        fi
    708         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
     722        echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
    709723        exit ;;
    710724    ia64:HP-UX:*:*)
    711         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    712         echo ia64-hp-hpux${HPUX_REV}
     725        HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
     726        echo ia64-hp-hpux"$HPUX_REV"
    713727        exit ;;
    714728    3050*:HI-UX:*:*)
    715         eval $set_cc_for_build
    716         sed 's/^        //' << EOF >$dummy.c
     729        eval "$set_cc_for_build"
     730        sed 's/^        //' << EOF > "$dummy.c"
    717731        #include <unistd.h>
    718732        int
     
    739753        }
    740754EOF
    741         $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     755        $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
    742756                { echo "$SYSTEM_NAME"; exit; }
    743757        echo unknown-hitachi-hiuxwe2
    744758        exit ;;
    745     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     759    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
    746760        echo hppa1.1-hp-bsd
    747761        exit ;;
     
    752766        echo hppa1.0-hp-mpeix
    753767        exit ;;
    754     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
     768    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
    755769        echo hppa1.1-hp-osf
    756770        exit ;;
     
    760774    i*86:OSF1:*:*)
    761775        if [ -x /usr/sbin/sysversion ] ; then
    762             echo ${UNAME_MACHINE}-unknown-osf1mk
     776            echo "$UNAME_MACHINE"-unknown-osf1mk
    763777        else
    764             echo ${UNAME_MACHINE}-unknown-osf1
     778            echo "$UNAME_MACHINE"-unknown-osf1
    765779        fi
    766780        exit ;;
     
    787801        exit ;;
    788802    CRAY*Y-MP:*:*:*)
    789         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     803        echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    790804        exit ;;
    791805    CRAY*[A-Z]90:*:*:*)
    792         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     806        echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
    793807        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    794808              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
     
    796810        exit ;;
    797811    CRAY*TS:*:*:*)
    798         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     812        echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    799813        exit ;;
    800814    CRAY*T3E:*:*:*)
    801         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     815        echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    802816        exit ;;
    803817    CRAY*SV1:*:*:*)
    804         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     818        echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    805819        exit ;;
    806820    *:UNICOS/mp:*:*)
    807         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     821        echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    808822        exit ;;
    809823    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    810         FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
    811         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    812         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     824        FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
     825        FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
     826        FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
    813827        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    814828        exit ;;
    815829    5000:UNIX_System_V:4.*:*)
    816         FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
    817         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
     830        FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
     831        FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
    818832        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    819833        exit ;;
    820834    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    821         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     835        echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
    822836        exit ;;
    823837    sparc*:BSD/OS:*:*)
    824         echo sparc-unknown-bsdi${UNAME_RELEASE}
     838        echo sparc-unknown-bsdi"$UNAME_RELEASE"
    825839        exit ;;
    826840    *:BSD/OS:*:*)
    827         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
     841        echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
    828842        exit ;;
    829843    *:FreeBSD:*:*)
    830844        UNAME_PROCESSOR=`/usr/bin/uname -p`
    831         case ${UNAME_PROCESSOR} in
     845        case "$UNAME_PROCESSOR" in
    832846            amd64)
    833                 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    834             *)
    835                 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     847                UNAME_PROCESSOR=x86_64 ;;
     848            i386)
     849                UNAME_PROCESSOR=i586 ;;
    836850        esac
     851        echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
    837852        exit ;;
    838853    i*:CYGWIN*:*)
    839         echo ${UNAME_MACHINE}-pc-cygwin
     854        echo "$UNAME_MACHINE"-pc-cygwin
    840855        exit ;;
    841856    *:MINGW64*:*)
    842         echo ${UNAME_MACHINE}-pc-mingw64
     857        echo "$UNAME_MACHINE"-pc-mingw64
    843858        exit ;;
    844859    *:MINGW*:*)
    845         echo ${UNAME_MACHINE}-pc-mingw32
     860        echo "$UNAME_MACHINE"-pc-mingw32
    846861        exit ;;
    847862    *:MSYS*:*)
    848         echo ${UNAME_MACHINE}-pc-msys
    849         exit ;;
    850     i*:windows32*:*)
    851         # uname -m includes "-pc" on this system.
    852         echo ${UNAME_MACHINE}-mingw32
     863        echo "$UNAME_MACHINE"-pc-msys
    853864        exit ;;
    854865    i*:PW*:*)
    855         echo ${UNAME_MACHINE}-pc-pw32
     866        echo "$UNAME_MACHINE"-pc-pw32
    856867        exit ;;
    857868    *:Interix*:*)
    858         case ${UNAME_MACHINE} in
     869        case "$UNAME_MACHINE" in
    859870            x86)
    860                 echo i586-pc-interix${UNAME_RELEASE}
     871                echo i586-pc-interix"$UNAME_RELEASE"
    861872                exit ;;
    862873            authenticamd | genuineintel | EM64T)
    863                 echo x86_64-unknown-interix${UNAME_RELEASE}
     874                echo x86_64-unknown-interix"$UNAME_RELEASE"
    864875                exit ;;
    865876            IA64)
    866                 echo ia64-unknown-interix${UNAME_RELEASE}
     877                echo ia64-unknown-interix"$UNAME_RELEASE"
    867878                exit ;;
    868879        esac ;;
    869     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    870         echo i${UNAME_MACHINE}-pc-mks
    871         exit ;;
    872     8664:Windows_NT:*)
    873         echo x86_64-pc-mks
    874         exit ;;
    875     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    876         # How do we know it's Interix rather than the generic POSIX subsystem?
    877         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    878         # UNAME_MACHINE based on the output of uname instead of i386?
    879         echo i586-pc-interix
    880         exit ;;
    881880    i*:UWIN*:*)
    882         echo ${UNAME_MACHINE}-pc-uwin
     881        echo "$UNAME_MACHINE"-pc-uwin
    883882        exit ;;
    884883    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    885884        echo x86_64-unknown-cygwin
    886885        exit ;;
    887     p*:CYGWIN*:*)
    888         echo powerpcle-unknown-cygwin
    889         exit ;;
    890886    prep*:SunOS:5.*:*)
    891         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     887        echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    892888        exit ;;
    893889    *:GNU:*:*)
    894890        # the GNU system
    895         echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
     891        echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"
    896892        exit ;;
    897893    *:GNU/*:*:*)
    898894        # other systems with GNU libc and userland
    899         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
    900         exit ;;
    901     i*86:Minix:*:*)
    902         echo ${UNAME_MACHINE}-pc-minix
     895        echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
     896        exit ;;
     897    *:Minix:*:*)
     898        echo "$UNAME_MACHINE"-unknown-minix
    903899        exit ;;
    904900    aarch64:Linux:*:*)
    905         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     901        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    906902        exit ;;
    907903    aarch64_be:Linux:*:*)
    908904        UNAME_MACHINE=aarch64_be
    909         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     905        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    910906        exit ;;
    911907    alpha:Linux:*:*)
     
    920916        esac
    921917        objdump --private-headers /bin/sh | grep -q ld.so.1
    922         if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
    923         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     918        if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
     919        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    924920        exit ;;
    925921    arc:Linux:*:* | arceb:Linux:*:*)
    926         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     922        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    927923        exit ;;
    928924    arm*:Linux:*:*)
    929         eval $set_cc_for_build
     925        eval "$set_cc_for_build"
    930926        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    931927            | grep -q __ARM_EABI__
    932928        then
    933             echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     929            echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    934930        else
    935931            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
    936932                | grep -q __ARM_PCS_VFP
    937933            then
    938                 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
     934                echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
    939935            else
    940                 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
     936                echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
    941937            fi
    942938        fi
    943939        exit ;;
    944940    avr32*:Linux:*:*)
    945         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     941        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    946942        exit ;;
    947943    cris:Linux:*:*)
    948         echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     944        echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
    949945        exit ;;
    950946    crisv32:Linux:*:*)
    951         echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     947        echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
    952948        exit ;;
    953949    e2k:Linux:*:*)
    954         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     950        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    955951        exit ;;
    956952    frv:Linux:*:*)
    957         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     953        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    958954        exit ;;
    959955    hexagon:Linux:*:*)
    960         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     956        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    961957        exit ;;
    962958    i*86:Linux:*:*)
    963         echo ${UNAME_MACHINE}-pc-linux-${LIBC}
     959        echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
    964960        exit ;;
    965961    ia64:Linux:*:*)
    966         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     962        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    967963        exit ;;
    968964    k1om:Linux:*:*)
    969         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     965        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    970966        exit ;;
    971967    m32r*:Linux:*:*)
    972         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     968        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    973969        exit ;;
    974970    m68*:Linux:*:*)
    975         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     971        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    976972        exit ;;
    977973    mips:Linux:*:* | mips64:Linux:*:*)
    978         eval $set_cc_for_build
    979         sed 's/^        //' << EOF >$dummy.c
     974        eval "$set_cc_for_build"
     975        sed 's/^        //' << EOF > "$dummy.c"
    980976        #undef CPU
    981977        #undef ${UNAME_MACHINE}
     
    991987        #endif
    992988EOF
    993         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
    994         test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
     989        eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
     990        test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
    995991        ;;
     992    mips64el:Linux:*:*)
     993        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
     994        exit ;;
    996995    openrisc*:Linux:*:*)
    997         echo or1k-unknown-linux-${LIBC}
     996        echo or1k-unknown-linux-"$LIBC"
    998997        exit ;;
    999998    or32:Linux:*:* | or1k*:Linux:*:*)
    1000         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     999        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10011000        exit ;;
    10021001    padre:Linux:*:*)
    1003         echo sparc-unknown-linux-${LIBC}
     1002        echo sparc-unknown-linux-"$LIBC"
    10041003        exit ;;
    10051004    parisc64:Linux:*:* | hppa64:Linux:*:*)
    1006         echo hppa64-unknown-linux-${LIBC}
     1005        echo hppa64-unknown-linux-"$LIBC"
    10071006        exit ;;
    10081007    parisc:Linux:*:* | hppa:Linux:*:*)
    10091008        # Look for CPU level
    10101009        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    1011           PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
    1012           PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
    1013           *)    echo hppa-unknown-linux-${LIBC} ;;
     1010          PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
     1011          PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
     1012          *)    echo hppa-unknown-linux-"$LIBC" ;;
    10141013        esac
    10151014        exit ;;
    10161015    ppc64:Linux:*:*)
    1017         echo powerpc64-unknown-linux-${LIBC}
     1016        echo powerpc64-unknown-linux-"$LIBC"
    10181017        exit ;;
    10191018    ppc:Linux:*:*)
    1020         echo powerpc-unknown-linux-${LIBC}
     1019        echo powerpc-unknown-linux-"$LIBC"
    10211020        exit ;;
    10221021    ppc64le:Linux:*:*)
    1023         echo powerpc64le-unknown-linux-${LIBC}
     1022        echo powerpc64le-unknown-linux-"$LIBC"
    10241023        exit ;;
    10251024    ppcle:Linux:*:*)
    1026         echo powerpcle-unknown-linux-${LIBC}
     1025        echo powerpcle-unknown-linux-"$LIBC"
     1026        exit ;;
     1027    riscv32:Linux:*:* | riscv64:Linux:*:*)
     1028        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10271029        exit ;;
    10281030    s390:Linux:*:* | s390x:Linux:*:*)
    1029         echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
     1031        echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
    10301032        exit ;;
    10311033    sh64*:Linux:*:*)
    1032         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1034        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10331035        exit ;;
    10341036    sh*:Linux:*:*)
    1035         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1037        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10361038        exit ;;
    10371039    sparc:Linux:*:* | sparc64:Linux:*:*)
    1038         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1040        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10391041        exit ;;
    10401042    tile*:Linux:*:*)
    1041         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1043        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10421044        exit ;;
    10431045    vax:Linux:*:*)
    1044         echo ${UNAME_MACHINE}-dec-linux-${LIBC}
     1046        echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
    10451047        exit ;;
    10461048    x86_64:Linux:*:*)
    1047         echo ${UNAME_MACHINE}-pc-linux-${LIBC}
     1049        echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
    10481050        exit ;;
    10491051    xtensa*:Linux:*:*)
    1050         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1052        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10511053        exit ;;
    10521054    i*86:DYNIX/ptx:4*:*)
     
    10621064        # I just have to hope.  -- rms.
    10631065        # Use sysv4.2uw... so that sysv4* matches it.
    1064         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
     1066        echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
    10651067        exit ;;
    10661068    i*86:OS/2:*:*)
    10671069        # If we were able to find `uname', then EMX Unix compatibility
    10681070        # is probably installed.
    1069         echo ${UNAME_MACHINE}-pc-os2-emx
     1071        echo "$UNAME_MACHINE"-pc-os2-emx
    10701072        exit ;;
    10711073    i*86:XTS-300:*:STOP)
    1072         echo ${UNAME_MACHINE}-unknown-stop
     1074        echo "$UNAME_MACHINE"-unknown-stop
    10731075        exit ;;
    10741076    i*86:atheos:*:*)
    1075         echo ${UNAME_MACHINE}-unknown-atheos
     1077        echo "$UNAME_MACHINE"-unknown-atheos
    10761078        exit ;;
    10771079    i*86:syllable:*:*)
    1078         echo ${UNAME_MACHINE}-pc-syllable
     1080        echo "$UNAME_MACHINE"-pc-syllable
    10791081        exit ;;
    10801082    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
    1081         echo i386-unknown-lynxos${UNAME_RELEASE}
     1083        echo i386-unknown-lynxos"$UNAME_RELEASE"
    10821084        exit ;;
    10831085    i*86:*DOS:*:*)
    1084         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1085         exit ;;
    1086     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    1087         UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
     1086        echo "$UNAME_MACHINE"-pc-msdosdjgpp
     1087        exit ;;
     1088    i*86:*:4.*:*)
     1089        UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
    10881090        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
    1089                 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
     1091                echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
    10901092        else
    1091                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
     1093                echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
    10921094        fi
    10931095        exit ;;
     
    10991101            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    11001102        esac
    1101         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     1103        echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
    11021104        exit ;;
    11031105    i*86:*:3.2:*)
    11041106        if test -f /usr/options/cb.name; then
    11051107                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
    1106                 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
     1108                echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
    11071109        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    11081110                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     
    11141116                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    11151117                        && UNAME_MACHINE=i686
    1116                 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     1118                echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
    11171119        else
    1118                 echo ${UNAME_MACHINE}-pc-sysv32
     1120                echo "$UNAME_MACHINE"-pc-sysv32
    11191121        fi
    11201122        exit ;;
     
    11361138    i860:*:4.*:*) # i860-SVR4
    11371139        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
    1138           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
     1140          echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
    11391141        else # Add other i860-SVR4 vendors below as they are discovered.
    1140           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
     1142          echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
    11411143        fi
    11421144        exit ;;
     
    11581160        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11591161        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1160           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1162          && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
    11611163        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1162           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1164          && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    11631165    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11641166        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     
    11691171            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11701172        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1171             && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1173            && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
    11721174        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1173             && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
     1175            && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
    11741176        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
    1175             && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1177            && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    11761178    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    1177         echo m68k-unknown-lynxos${UNAME_RELEASE}
     1179        echo m68k-unknown-lynxos"$UNAME_RELEASE"
    11781180        exit ;;
    11791181    mc68030:UNIX_System_V:4.*:*)
     
    11811183        exit ;;
    11821184    TSUNAMI:LynxOS:2.*:*)
    1183         echo sparc-unknown-lynxos${UNAME_RELEASE}
     1185        echo sparc-unknown-lynxos"$UNAME_RELEASE"
    11841186        exit ;;
    11851187    rs6000:LynxOS:2.*:*)
    1186         echo rs6000-unknown-lynxos${UNAME_RELEASE}
     1188        echo rs6000-unknown-lynxos"$UNAME_RELEASE"
    11871189        exit ;;
    11881190    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
    1189         echo powerpc-unknown-lynxos${UNAME_RELEASE}
     1191        echo powerpc-unknown-lynxos"$UNAME_RELEASE"
    11901192        exit ;;
    11911193    SM[BE]S:UNIX_SV:*:*)
    1192         echo mips-dde-sysv${UNAME_RELEASE}
     1194        echo mips-dde-sysv"$UNAME_RELEASE"
    11931195        exit ;;
    11941196    RM*:ReliantUNIX-*:*:*)
     
    12011203        if uname -p 2>/dev/null >/dev/null ; then
    12021204                UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1203                 echo ${UNAME_MACHINE}-sni-sysv4
     1205                echo "$UNAME_MACHINE"-sni-sysv4
    12041206        else
    12051207                echo ns32k-sni-sysv
     
    12211223    i*86:VOS:*:*)
    12221224        # From Paul.Green@stratus.com.
    1223         echo ${UNAME_MACHINE}-stratus-vos
     1225        echo "$UNAME_MACHINE"-stratus-vos
    12241226        exit ;;
    12251227    *:VOS:*:*)
     
    12281230        exit ;;
    12291231    mc68*:A/UX:*:*)
    1230         echo m68k-apple-aux${UNAME_RELEASE}
     1232        echo m68k-apple-aux"$UNAME_RELEASE"
    12311233        exit ;;
    12321234    news*:NEWS-OS:6*:*)
     
    12351237    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    12361238        if [ -d /usr/nec ]; then
    1237                 echo mips-nec-sysv${UNAME_RELEASE}
     1239                echo mips-nec-sysv"$UNAME_RELEASE"
    12381240        else
    1239                 echo mips-unknown-sysv${UNAME_RELEASE}
     1241                echo mips-unknown-sysv"$UNAME_RELEASE"
    12401242        fi
    12411243        exit ;;
     
    12561258        exit ;;
    12571259    SX-4:SUPER-UX:*:*)
    1258         echo sx4-nec-superux${UNAME_RELEASE}
     1260        echo sx4-nec-superux"$UNAME_RELEASE"
    12591261        exit ;;
    12601262    SX-5:SUPER-UX:*:*)
    1261         echo sx5-nec-superux${UNAME_RELEASE}
     1263        echo sx5-nec-superux"$UNAME_RELEASE"
    12621264        exit ;;
    12631265    SX-6:SUPER-UX:*:*)
    1264         echo sx6-nec-superux${UNAME_RELEASE}
     1266        echo sx6-nec-superux"$UNAME_RELEASE"
    12651267        exit ;;
    12661268    SX-7:SUPER-UX:*:*)
    1267         echo sx7-nec-superux${UNAME_RELEASE}
     1269        echo sx7-nec-superux"$UNAME_RELEASE"
    12681270        exit ;;
    12691271    SX-8:SUPER-UX:*:*)
    1270         echo sx8-nec-superux${UNAME_RELEASE}
     1272        echo sx8-nec-superux"$UNAME_RELEASE"
    12711273        exit ;;
    12721274    SX-8R:SUPER-UX:*:*)
    1273         echo sx8r-nec-superux${UNAME_RELEASE}
     1275        echo sx8r-nec-superux"$UNAME_RELEASE"
     1276        exit ;;
     1277    SX-ACE:SUPER-UX:*:*)
     1278        echo sxace-nec-superux"$UNAME_RELEASE"
    12741279        exit ;;
    12751280    Power*:Rhapsody:*:*)
    1276         echo powerpc-apple-rhapsody${UNAME_RELEASE}
     1281        echo powerpc-apple-rhapsody"$UNAME_RELEASE"
    12771282        exit ;;
    12781283    *:Rhapsody:*:*)
    1279         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
     1284        echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
    12801285        exit ;;
    12811286    *:Darwin:*:*)
    12821287        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1283         eval $set_cc_for_build
     1288        eval "$set_cc_for_build"
    12841289        if test "$UNAME_PROCESSOR" = unknown ; then
    12851290            UNAME_PROCESSOR=powerpc
    12861291        fi
    1287         if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
    1288             if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
     1292        if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
     1293            if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
    12891294                if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
    1290                     (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
    1291                     grep IS_64BIT_ARCH >/dev/null
     1295                       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
     1296                       grep IS_64BIT_ARCH >/dev/null
    12921297                then
    12931298                    case $UNAME_PROCESSOR in
     
    12951300                        powerpc) UNAME_PROCESSOR=powerpc64 ;;
    12961301                    esac
     1302                fi
     1303                # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
     1304                if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
     1305                       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
     1306                       grep IS_PPC >/dev/null
     1307                then
     1308                    UNAME_PROCESSOR=powerpc
    12971309                fi
    12981310            fi
     
    13061318            UNAME_PROCESSOR=x86_64
    13071319        fi
    1308         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     1320        echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
    13091321        exit ;;
    13101322    *:procnto*:*:* | *:QNX:[0123456789]*:*)
    13111323        UNAME_PROCESSOR=`uname -p`
    1312         if test "$UNAME_PROCESSOR" = "x86"; then
     1324        if test "$UNAME_PROCESSOR" = x86; then
    13131325                UNAME_PROCESSOR=i386
    13141326                UNAME_MACHINE=pc
    13151327        fi
    1316         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     1328        echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
    13171329        exit ;;
    13181330    *:QNX:*:4*)
    13191331        echo i386-pc-qnx
    13201332        exit ;;
    1321     NEO-?:NONSTOP_KERNEL:*:*)
    1322         echo neo-tandem-nsk${UNAME_RELEASE}
     1333    NEO-*:NONSTOP_KERNEL:*:*)
     1334        echo neo-tandem-nsk"$UNAME_RELEASE"
    13231335        exit ;;
    13241336    NSE-*:NONSTOP_KERNEL:*:*)
    1325         echo nse-tandem-nsk${UNAME_RELEASE}
    1326         exit ;;
    1327     NSR-?:NONSTOP_KERNEL:*:*)
    1328         echo nsr-tandem-nsk${UNAME_RELEASE}
     1337        echo nse-tandem-nsk"$UNAME_RELEASE"
     1338        exit ;;
     1339    NSR-*:NONSTOP_KERNEL:*:*)
     1340        echo nsr-tandem-nsk"$UNAME_RELEASE"
     1341        exit ;;
     1342    NSV-*:NONSTOP_KERNEL:*:*)
     1343        echo nsv-tandem-nsk"$UNAME_RELEASE"
     1344        exit ;;
     1345    NSX-*:NONSTOP_KERNEL:*:*)
     1346        echo nsx-tandem-nsk"$UNAME_RELEASE"
    13291347        exit ;;
    13301348    *:NonStop-UX:*:*)
     
    13351353        exit ;;
    13361354    DS/*:UNIX_System_V:*:*)
    1337         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
     1355        echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
    13381356        exit ;;
    13391357    *:Plan9:*:*)
     
    13411359        # is converted to i386 for consistency with other x86
    13421360        # operating systems.
    1343         if test "$cputype" = "386"; then
     1361        if test "$cputype" = 386; then
    13441362            UNAME_MACHINE=i386
    13451363        else
    13461364            UNAME_MACHINE="$cputype"
    13471365        fi
    1348         echo ${UNAME_MACHINE}-unknown-plan9
     1366        echo "$UNAME_MACHINE"-unknown-plan9
    13491367        exit ;;
    13501368    *:TOPS-10:*:*)
     
    13671385        exit ;;
    13681386    SEI:*:*:SEIUX)
    1369         echo mips-sei-seiux${UNAME_RELEASE}
     1387        echo mips-sei-seiux"$UNAME_RELEASE"
    13701388        exit ;;
    13711389    *:DragonFly:*:*)
    1372         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1390        echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
    13731391        exit ;;
    13741392    *:*VMS:*:*)
    13751393        UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1376         case "${UNAME_MACHINE}" in
     1394        case "$UNAME_MACHINE" in
    13771395            A*) echo alpha-dec-vms ; exit ;;
    13781396            I*) echo ia64-dec-vms ; exit ;;
     
    13831401        exit ;;
    13841402    i*86:skyos:*:*)
    1385         echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
     1403        echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
    13861404        exit ;;
    13871405    i*86:rdos:*:*)
    1388         echo ${UNAME_MACHINE}-pc-rdos
     1406        echo "$UNAME_MACHINE"-pc-rdos
    13891407        exit ;;
    13901408    i*86:AROS:*:*)
    1391         echo ${UNAME_MACHINE}-pc-aros
     1409        echo "$UNAME_MACHINE"-pc-aros
    13921410        exit ;;
    13931411    x86_64:VMkernel:*:*)
    1394         echo ${UNAME_MACHINE}-unknown-esx
     1412        echo "$UNAME_MACHINE"-unknown-esx
     1413        exit ;;
     1414    amd64:Isilon\ OneFS:*:*)
     1415        echo x86_64-unknown-onefs
    13951416        exit ;;
    13961417esac
    13971418
     1419echo "$0: unable to guess system type" >&2
     1420
     1421case "$UNAME_MACHINE:$UNAME_SYSTEM" in
     1422    mips:Linux | mips64:Linux)
     1423        # If we got here on MIPS GNU/Linux, output extra information.
     1424        cat >&2 <<EOF
     1425
     1426NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
     1427the system type. Please install a C compiler and try again.
     1428EOF
     1429        ;;
     1430esac
     1431
    13981432cat >&2 <<EOF
    1399 $0: unable to guess system type
    1400 
    1401 This script, last modified $timestamp, has failed to recognize
    1402 the operating system you are using. It is advised that you
    1403 download the most up to date version of the config scripts from
    1404 
    1405   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
     1433
     1434This script (version $timestamp), has failed to recognize the
     1435operating system you are using. If your script is old, overwrite *all*
     1436copies of config.guess and config.sub with the latest versions from:
     1437
     1438  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
    14061439and
    1407   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
    1408 
    1409 If the version you run ($0) is already up to date, please
    1410 send the following data and any information you think might be
    1411 pertinent to <config-patches@gnu.org> in order to provide the needed
    1412 information to handle your system.
     1440  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     1441
     1442If $0 has already been updated, send the following data and any
     1443information you think might be pertinent to config-patches@gnu.org to
     1444provide the necessary information to handle your system.
    14131445
    14141446config.guess timestamp = $timestamp
     
    14291461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
    14301462
    1431 UNAME_MACHINE = ${UNAME_MACHINE}
    1432 UNAME_RELEASE = ${UNAME_RELEASE}
    1433 UNAME_SYSTEM  = ${UNAME_SYSTEM}
    1434 UNAME_VERSION = ${UNAME_VERSION}
     1463UNAME_MACHINE = "$UNAME_MACHINE"
     1464UNAME_RELEASE = "$UNAME_RELEASE"
     1465UNAME_SYSTEM  = "$UNAME_SYSTEM"
     1466UNAME_VERSION = "$UNAME_VERSION"
    14351467EOF
    14361468
     
    14381470
    14391471# Local variables:
    1440 # eval: (add-hook 'write-file-hooks 'time-stamp)
     1472# eval: (add-hook 'before-save-hook 'time-stamp)
    14411473# time-stamp-start: "timestamp='"
    14421474# time-stamp-format: "%:y-%02m-%02d"
Note: See TracChangeset for help on using the changeset viewer.