Changeset 4050


Ignore:
Timestamp:
Jan 9, 2020 11:33:11 PM (3 months ago)
Author:
stefan
Message:

lou's update to glpk 4.65

New approach: use captureConfigFiles to download glpk,
patch glpk's native autotools sources, run run_autotools, and capture updated
glpk configuration files in a tar file. Get.Glpk will fetch glpk, then extract
the tar file to replace glpk's native configuration files.

Skip tar file in this commit

Closes #1

Location:
ThirdParty/Glpk/branches/autotools-update
Files:
2 added
1 deleted
12 edited

Legend:

Unmodified
Added
Removed
  • ThirdParty/Glpk/branches/autotools-update/Makefile.in

    r3951 r4050  
    232232EXEEXT = @EXEEXT@
    233233FGREP = @FGREP@
    234 GLPK_SVN_REV = @GLPK_SVN_REV@
    235234GREP = @GREP@
    236235INSTALL = @INSTALL@
     
    297296dvidir = @dvidir@
    298297exec_prefix = @exec_prefix@
    299 have_svnversion = @have_svnversion@
    300298host = @host@
    301299host_alias = @host_alias@
     
    745743        rmdir $(DESTDIR)$(pkgdocdir) || true
    746744
    747 install-doc: $(DocFiles)
     745install-doc:
    748746        $(mkdir_p) "$(DESTDIR)$(pkgdocdir)"
    749747        for file in $(DocFiles); do \
    750748          if test -f "$$file"; then dir=; else dir="$(srcdir)/"; fi; \
    751749          if test -f "$$dir$$file"; then \
    752             $(INSTALL_DATA) "$$dir$$file" \
    753                 "$(DESTDIR)$(pkgdocdir)/$$file"; \
     750            $(INSTALL_DATA) "$$dir$$file" "$(DESTDIR)$(pkgdocdir)/$$file"; \
    754751          fi; \
    755752        done
  • ThirdParty/Glpk/branches/autotools-update/compile

    r3951 r4050  
    1 #!/usr/bin/sh
     1#! /bin/sh
    22# Wrapper for compilers which do not understand '-c -o'.
    33
    4 scriptversion=2012-10-14.11; # UTC
    5 
    6 # Copyright (C) 1999-2015 Free Software Foundation, Inc.
     4scriptversion=2018-03-07.03; # UTC
     5
     6# Copyright (C) 1999-2018 Free Software Foundation, Inc.
    77# Written by Tom Tromey <tromey@cygnus.com>.
    88#
     
    1818#
    1919# You should have received a copy of the GNU General Public License
    20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     20# along with this program.  If not, see <https://www.gnu.org/licenses/>.
    2121
    2222# As a special exception to the GNU General Public License, if you
     
    134134  shared=:
    135135  linker_opts=
     136  outfile=
     137  implib=
     138  linking=1
    136139  for arg
    137140  do
     
    148151              set x "$@" -Fo"$file"
    149152              shift
     153              outfile="$file"
    150154              ;;
    151155            *)
     
    153157              set x "$@" -Fe"$file"
    154158              shift
     159              outfile="$file"
    155160              ;;
    156161          esac
     
    194199            IFS="$save_ifs"
    195200            linker_opts="$linker_opts $flag"
     201            case "$flag" in -IMPLIB:*) implib=${flag#-IMPLIB:} ;; esac
    196202          done
    197203          IFS="$save_ifs"
     
    213219          func_file_conv "$1" mingw
    214220          set x "$@" "$file"
     221          shift
     222          ;;
     223        -c)
     224          linking=0
     225          set x "$@" "$1"
    215226          shift
    216227          ;;
     
    226237    linker_opts="-link$linker_opts"
    227238  fi
    228   exec "$@" $linker_opts
    229   exit 1
     239  # remove old $implib, so we can distinguish between generated and not-generated implib below
     240  if test -n "$implib" && test -f "$implib" ; then rm "$implib" ; fi
     241
     242  # add path to MSVC link in front on PATH if we seem to link (check isn't so accurate, but some false-positives shouldn't matter)
     243  # compiler will call the link it finds in the PATH, and we don't want it to use MSYS' /bin/link
     244  # we assume that MSVC link is in same directory as cl and that cl is found in PATH
     245  if test "$linking" = 1 && comppath=`which cl 2>/dev/null` ; then
     246    comppath=`dirname "$comppath"`
     247    #echo "Adding $comppath to front of PATH"
     248    PATH="$comppath:$PATH"
     249  fi
     250
     251  #echo "compile: $@ $linker_opts"
     252  "$@" $linker_opts || exit $?
     253
     254  # if -implib got lost or ignored, then the lib should be named ${outfile/.dll/.lib} and we rename that file
     255  if test -n "$implib" && test ! -f "$implib" ; then
     256    echo "compile: mv ${outfile/.dll/.lib} $implib"
     257    mv "${outfile/.dll/.lib}" "$implib"
     258  fi
     259
     260  exit 0
    230261}
    231262
     
    256287    exit $?
    257288    ;;
    258   cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
     289  cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \
     290  icl | *[/\\]icl | icl.exe | *[/\\]icl.exe | \
     291  ifort | *[/\\]ifort | ifort.exe | *[/\\]ifort.exe )
    259292    func_cl_wrapper "$@"      # Doesn't return...
    260293    ;;
     
    340373# mode: shell-script
    341374# sh-indentation: 2
    342 # eval: (add-hook 'write-file-hooks 'time-stamp)
     375# eval: (add-hook 'before-save-hook 'time-stamp)
    343376# time-stamp-start: "scriptversion="
    344377# time-stamp-format: "%:y-%02m-%02d.%02H"
    345 # time-stamp-time-zone: "UTC"
     378# time-stamp-time-zone: "UTC0"
    346379# time-stamp-end: "; # UTC"
    347380# End:
  • ThirdParty/Glpk/branches/autotools-update/config.guess

    r3951 r4050  
    1 #!/usr/bin/sh
     1#! /bin/sh
    22# Attempt to guess a canonical system name.
    3 #   Copyright 1992-2016 Free Software Foundation, Inc.
    4 
    5 timestamp='2016-10-02'
     3#   Copyright 1992-2018 Free Software Foundation, Inc.
     4
     5timestamp='2018-03-08'
    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
     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-2016 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
     
    108108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
    109109case $CC_FOR_BUILD,$HOST_CC,$CC in
    110  ,,)    echo "int x;" > $dummy.c ;
     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
    189196        # to ELF recently (or will in the future) and ABI.
    190         case "${UNAME_MACHINE_ARCH}" in
     197        case "$UNAME_MACHINE_ARCH" in
    191198            earm*)
    192199                os=netbsdelf
    193200                ;;
    194201            arm*|i386|m68k|ns32k|sh3*|sparc|vax)
    195                 eval $set_cc_for_build
     202                eval "$set_cc_for_build"
    196203                if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
    197204                        | grep -q __ELF__
     
    209216        esac
    210217        # Determine ABI tags.
    211         case "${UNAME_MACHINE_ARCH}" in
     218        case "$UNAME_MACHINE_ARCH" in
    212219            earm*)
    213220                expr='s/^earmv[0-9]/-eabi/;s/eb$//'
    214                 abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"`
     221                abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
    215222                ;;
    216223        esac
     
    220227        # kernel version information, so it can be replaced with a
    221228        # suitable tag, in the style of linux-gnu.
    222         case "${UNAME_VERSION}" in
     229        case "$UNAME_VERSION" in
    223230            Debian*)
    224231                release='-gnu'
    225232                ;;
    226233            *)
    227                 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`
     234                release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
    228235                ;;
    229236        esac
     
    231238        # contains redundant information, the shorter form:
    232239        # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
    233         echo "${machine}-${os}${release}${abi}"
     240        echo "$machine-${os}${release}${abi}"
    234241        exit ;;
    235242    *:Bitrig:*:*)
    236243        UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
    237         echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
     244        echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
    238245        exit ;;
    239246    *:OpenBSD:*:*)
    240247        UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
    241         echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
     248        echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
    242249        exit ;;
    243250    *:LibertyBSD:*:*)
    244251        UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
    245         echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE}
     252        echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
     253        exit ;;
     254    *:MidnightBSD:*:*)
     255        echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
    246256        exit ;;
    247257    *:ekkoBSD:*:*)
    248         echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
     258        echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
    249259        exit ;;
    250260    *:SolidBSD:*:*)
    251         echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
     261        echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
    252262        exit ;;
    253263    macppc:MirBSD:*:*)
    254         echo powerpc-unknown-mirbsd${UNAME_RELEASE}
     264        echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
    255265        exit ;;
    256266    *:MirBSD:*:*)
    257         echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
     267        echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
    258268        exit ;;
    259269    *:Sortix:*:*)
    260         echo ${UNAME_MACHINE}-unknown-sortix
    261         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 ;;
    262278    alpha:OSF1:*:*)
    263279        case $UNAME_RELEASE in
     
    311327        # A Xn.n version is an unreleased experimental baselevel.
    312328        # 1.2 uses "1.2" for uname -r.
    313         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`"
    314330        # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
    315331        exitcode=$?
    316332        trap '' 0
    317333        exit $exitcode ;;
    318     Alpha\ *:Windows_NT*:*)
    319         # How do we know it's Interix rather than the generic POSIX subsystem?
    320         # Should we change UNAME_MACHINE based on the output of uname instead
    321         # of the specific Alpha model?
    322         echo alpha-pc-interix
    323         exit ;;
    324     21064:Windows_NT:50:3)
    325         echo alpha-dec-winnt3.5
    326         exit ;;
    327334    Amiga*:UNIX_System_V:4.0:*)
    328335        echo m68k-unknown-sysv4
    329336        exit ;;
    330337    *:[Aa]miga[Oo][Ss]:*:*)
    331         echo ${UNAME_MACHINE}-unknown-amigaos
     338        echo "$UNAME_MACHINE"-unknown-amigaos
    332339        exit ;;
    333340    *:[Mm]orph[Oo][Ss]:*:*)
    334         echo ${UNAME_MACHINE}-unknown-morphos
     341        echo "$UNAME_MACHINE"-unknown-morphos
    335342        exit ;;
    336343    *:OS/390:*:*)
     
    344351        exit ;;
    345352    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
    346         echo arm-acorn-riscix${UNAME_RELEASE}
     353        echo arm-acorn-riscix"$UNAME_RELEASE"
    347354        exit ;;
    348355    arm*:riscos:*:*|arm*:RISCOS:*:*)
     
    371378        esac ;;
    372379    s390x:SunOS:*:*)
    373         echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     380        echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
    374381        exit ;;
    375382    sun4H:SunOS:5.*:*)
    376         echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     383        echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    377384        exit ;;
    378385    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
    379         echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     386        echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
    380387        exit ;;
    381388    i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
    382         echo i386-pc-auroraux${UNAME_RELEASE}
     389        echo i386-pc-auroraux"$UNAME_RELEASE"
    383390        exit ;;
    384391    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
    385         eval $set_cc_for_build
     392        eval "$set_cc_for_build"
    386393        SUN_ARCH=i386
    387394        # If there is a compiler, see if it is configured for 64-bit objects.
     
    396403            fi
    397404        fi
    398         echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     405        echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    399406        exit ;;
    400407    sun4*:SunOS:6*:*)
     
    402409        # SunOS6.  Hard to guess exactly what SunOS6 will be like, but
    403410        # it's likely to be more like Solaris than SunOS4.
    404         echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     411        echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    405412        exit ;;
    406413    sun4*:SunOS:*:*)
     
    411418        esac
    412419        # Japanese Language versions have a version number like `4.1.3-JL'.
    413         echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
     420        echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
    414421        exit ;;
    415422    sun3*:SunOS:*:*)
    416         echo m68k-sun-sunos${UNAME_RELEASE}
     423        echo m68k-sun-sunos"$UNAME_RELEASE"
    417424        exit ;;
    418425    sun*:*:4.2BSD:*)
    419426        UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
    420         test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3
     427        test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
    421428        case "`/bin/arch`" in
    422429            sun3)
    423                 echo m68k-sun-sunos${UNAME_RELEASE}
     430                echo m68k-sun-sunos"$UNAME_RELEASE"
    424431                ;;
    425432            sun4)
    426                 echo sparc-sun-sunos${UNAME_RELEASE}
     433                echo sparc-sun-sunos"$UNAME_RELEASE"
    427434                ;;
    428435        esac
    429436        exit ;;
    430437    aushp:SunOS:*:*)
    431         echo sparc-auspex-sunos${UNAME_RELEASE}
     438        echo sparc-auspex-sunos"$UNAME_RELEASE"
    432439        exit ;;
    433440    # The situation for MiNT is a little confusing.  The machine name
     
    440447    # be no problem.
    441448    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
    442         echo m68k-atari-mint${UNAME_RELEASE}
     449        echo m68k-atari-mint"$UNAME_RELEASE"
    443450        exit ;;
    444451    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
    445         echo m68k-atari-mint${UNAME_RELEASE}
     452        echo m68k-atari-mint"$UNAME_RELEASE"
    446453        exit ;;
    447454    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
    448         echo m68k-atari-mint${UNAME_RELEASE}
     455        echo m68k-atari-mint"$UNAME_RELEASE"
    449456        exit ;;
    450457    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
    451         echo m68k-milan-mint${UNAME_RELEASE}
     458        echo m68k-milan-mint"$UNAME_RELEASE"
    452459        exit ;;
    453460    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
    454         echo m68k-hades-mint${UNAME_RELEASE}
     461        echo m68k-hades-mint"$UNAME_RELEASE"
    455462        exit ;;
    456463    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
    457         echo m68k-unknown-mint${UNAME_RELEASE}
     464        echo m68k-unknown-mint"$UNAME_RELEASE"
    458465        exit ;;
    459466    m68k:machten:*:*)
    460         echo m68k-apple-machten${UNAME_RELEASE}
     467        echo m68k-apple-machten"$UNAME_RELEASE"
    461468        exit ;;
    462469    powerpc:machten:*:*)
    463         echo powerpc-apple-machten${UNAME_RELEASE}
     470        echo powerpc-apple-machten"$UNAME_RELEASE"
    464471        exit ;;
    465472    RISC*:Mach:*:*)
     
    467474        exit ;;
    468475    RISC*:ULTRIX:*:*)
    469         echo mips-dec-ultrix${UNAME_RELEASE}
     476        echo mips-dec-ultrix"$UNAME_RELEASE"
    470477        exit ;;
    471478    VAX*:ULTRIX*:*:*)
    472         echo vax-dec-ultrix${UNAME_RELEASE}
     479        echo vax-dec-ultrix"$UNAME_RELEASE"
    473480        exit ;;
    474481    2020:CLIX:*:* | 2430:CLIX:*:*)
    475         echo clipper-intergraph-clix${UNAME_RELEASE}
     482        echo clipper-intergraph-clix"$UNAME_RELEASE"
    476483        exit ;;
    477484    mips:*:*:UMIPS | mips:*:*:RISCos)
    478         eval $set_cc_for_build
    479         sed 's/^        //' << EOF >$dummy.c
     485        eval "$set_cc_for_build"
     486        sed 's/^        //' << EOF > "$dummy.c"
    480487#ifdef __cplusplus
    481488#include <stdio.h>  /* for printf() prototype */
     
    486493        #if defined (host_mips) && defined (MIPSEB)
    487494        #if defined (SYSTYPE_SYSV)
    488           printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
     495          printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
    489496        #endif
    490497        #if defined (SYSTYPE_SVR4)
    491           printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
     498          printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
    492499        #endif
    493500        #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
    494           printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
     501          printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
    495502        #endif
    496503        #endif
     
    498505        }
    499506EOF
    500         $CC_FOR_BUILD -o $dummy $dummy.c &&
    501           dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
    502           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"` &&
    503510            { echo "$SYSTEM_NAME"; exit; }
    504         echo mips-mips-riscos${UNAME_RELEASE}
     511        echo mips-mips-riscos"$UNAME_RELEASE"
    505512        exit ;;
    506513    Motorola:PowerMAX_OS:*:*)
     
    528535        # DG/UX returns AViiON for all architectures
    529536        UNAME_PROCESSOR=`/usr/bin/uname -p`
    530         if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
     537        if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
    531538        then
    532             if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
    533                [ ${TARGET_BINARY_INTERFACE}x = x ]
     539            if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
     540               [ "$TARGET_BINARY_INTERFACE"x = x ]
    534541            then
    535                 echo m88k-dg-dgux${UNAME_RELEASE}
     542                echo m88k-dg-dgux"$UNAME_RELEASE"
    536543            else
    537                 echo m88k-dg-dguxbcs${UNAME_RELEASE}
     544                echo m88k-dg-dguxbcs"$UNAME_RELEASE"
    538545            fi
    539546        else
    540             echo i586-dg-dgux${UNAME_RELEASE}
     547            echo i586-dg-dgux"$UNAME_RELEASE"
    541548        fi
    542549        exit ;;
     
    555562        exit ;;
    556563    *:IRIX*:*:*)
    557         echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
     564        echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
    558565        exit ;;
    559566    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
     
    567574                IBM_REV=`/usr/bin/oslevel`
    568575        else
    569                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    570         fi
    571         echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
     576                IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
     577        fi
     578        echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
    572579        exit ;;
    573580    *:AIX:2:3)
    574581        if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
    575                 eval $set_cc_for_build
    576                 sed 's/^                //' << EOF >$dummy.c
     582                eval "$set_cc_for_build"
     583                sed 's/^                //' << EOF > "$dummy.c"
    577584                #include <sys/systemcfg.h>
    578585
     
    585592                        }
    586593EOF
    587                 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
     594                if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
    588595                then
    589596                        echo "$SYSTEM_NAME"
     
    599606    *:AIX:*:[4567])
    600607        IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
    601         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
    602609                IBM_ARCH=rs6000
    603610        else
     
    608615                           awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
    609616        else
    610                 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
    611         fi
    612         echo ${IBM_ARCH}-ibm-aix${IBM_REV}
     617                IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
     618        fi
     619        echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
    613620        exit ;;
    614621    *:AIX:*:*)
    615622        echo rs6000-ibm-aix
    616623        exit ;;
    617     ibmrt:4.4BSD:*|romp-ibm:BSD:*)
     624    ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
    618625        echo romp-ibm-bsd4.4
    619626        exit ;;
    620627    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
    621         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
    622629        exit ;;                             # report: romp-ibm BSD 4.3
    623630    *:BOSX:*:*)
     
    634641        exit ;;
    635642    9000/[34678]??:HP-UX:*:*)
    636         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    637         case "${UNAME_MACHINE}" in
    638             9000/31? )            HP_ARCH=m68000 ;;
    639             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 ;;
    640647            9000/[678][0-9][0-9])
    641648                if [ -x /usr/bin/getconf ]; then
    642649                    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
    643650                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
    644                     case "${sc_cpu_version}" in
     651                    case "$sc_cpu_version" in
    645652                      523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
    646653                      528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
    647654                      532)                      # CPU_PA_RISC2_0
    648                         case "${sc_kernel_bits}" in
     655                        case "$sc_kernel_bits" in
    649656                          32) HP_ARCH=hppa2.0n ;;
    650657                          64) HP_ARCH=hppa2.0w ;;
     
    653660                    esac
    654661                fi
    655                 if [ "${HP_ARCH}" = "" ]; then
    656                     eval $set_cc_for_build
    657                     sed 's/^            //' << EOF >$dummy.c
     662                if [ "$HP_ARCH" = "" ]; then
     663                    eval "$set_cc_for_build"
     664                    sed 's/^            //' << EOF > "$dummy.c"
    658665
    659666                #define _HPUX_SOURCE
     
    688695                }
    689696EOF
    690                     (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"`
    691698                    test -z "$HP_ARCH" && HP_ARCH=hppa
    692699                fi ;;
    693700        esac
    694         if [ ${HP_ARCH} = hppa2.0w ]
     701        if [ "$HP_ARCH" = hppa2.0w ]
    695702        then
    696             eval $set_cc_for_build
     703            eval "$set_cc_for_build"
    697704
    698705            # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
     
    713720            fi
    714721        fi
    715         echo ${HP_ARCH}-hp-hpux${HPUX_REV}
     722        echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
    716723        exit ;;
    717724    ia64:HP-UX:*:*)
    718         HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
    719         echo ia64-hp-hpux${HPUX_REV}
     725        HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
     726        echo ia64-hp-hpux"$HPUX_REV"
    720727        exit ;;
    721728    3050*:HI-UX:*:*)
    722         eval $set_cc_for_build
    723         sed 's/^        //' << EOF >$dummy.c
     729        eval "$set_cc_for_build"
     730        sed 's/^        //' << EOF > "$dummy.c"
    724731        #include <unistd.h>
    725732        int
     
    746753        }
    747754EOF
    748         $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
     755        $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
    749756                { echo "$SYSTEM_NAME"; exit; }
    750757        echo unknown-hitachi-hiuxwe2
    751758        exit ;;
    752     9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
     759    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
    753760        echo hppa1.1-hp-bsd
    754761        exit ;;
     
    759766        echo hppa1.0-hp-mpeix
    760767        exit ;;
    761     hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
     768    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
    762769        echo hppa1.1-hp-osf
    763770        exit ;;
     
    767774    i*86:OSF1:*:*)
    768775        if [ -x /usr/sbin/sysversion ] ; then
    769             echo ${UNAME_MACHINE}-unknown-osf1mk
     776            echo "$UNAME_MACHINE"-unknown-osf1mk
    770777        else
    771             echo ${UNAME_MACHINE}-unknown-osf1
     778            echo "$UNAME_MACHINE"-unknown-osf1
    772779        fi
    773780        exit ;;
     
    794801        exit ;;
    795802    CRAY*Y-MP:*:*:*)
    796         echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     803        echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    797804        exit ;;
    798805    CRAY*[A-Z]90:*:*:*)
    799         echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
     806        echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
    800807        | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
    801808              -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
     
    803810        exit ;;
    804811    CRAY*TS:*:*:*)
    805         echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     812        echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    806813        exit ;;
    807814    CRAY*T3E:*:*:*)
    808         echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     815        echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    809816        exit ;;
    810817    CRAY*SV1:*:*:*)
    811         echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     818        echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    812819        exit ;;
    813820    *:UNICOS/mp:*:*)
    814         echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
     821        echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
    815822        exit ;;
    816823    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
    817824        FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
    818825        FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
    819         FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
     826        FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
    820827        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    821828        exit ;;
    822829    5000:UNIX_System_V:4.*:*)
    823830        FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
    824         FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
     831        FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
    825832        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
    826833        exit ;;
    827834    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
    828         echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
     835        echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
    829836        exit ;;
    830837    sparc*:BSD/OS:*:*)
    831         echo sparc-unknown-bsdi${UNAME_RELEASE}
     838        echo sparc-unknown-bsdi"$UNAME_RELEASE"
    832839        exit ;;
    833840    *:BSD/OS:*:*)
    834         echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
     841        echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
    835842        exit ;;
    836843    *:FreeBSD:*:*)
    837844        UNAME_PROCESSOR=`/usr/bin/uname -p`
    838         case ${UNAME_PROCESSOR} in
     845        case "$UNAME_PROCESSOR" in
    839846            amd64)
    840                 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
    841             *)
    842                 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
     847                UNAME_PROCESSOR=x86_64 ;;
     848            i386)
     849                UNAME_PROCESSOR=i586 ;;
    843850        esac
     851        echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
    844852        exit ;;
    845853    i*:CYGWIN*:*)
    846         echo ${UNAME_MACHINE}-pc-cygwin
     854        echo "$UNAME_MACHINE"-pc-cygwin
    847855        exit ;;
    848856    *:MINGW64*:*)
    849         echo ${UNAME_MACHINE}-pc-mingw64
     857        echo "$UNAME_MACHINE"-pc-mingw64
    850858        exit ;;
    851859    *:MINGW*:*)
    852         echo ${UNAME_MACHINE}-pc-mingw32
     860        echo "$UNAME_MACHINE"-pc-mingw32
    853861        exit ;;
    854862    *:MSYS*:*)
    855         echo ${UNAME_MACHINE}-pc-msys
    856         exit ;;
    857     i*:windows32*:*)
    858         # uname -m includes "-pc" on this system.
    859         echo ${UNAME_MACHINE}-mingw32
     863        echo "$UNAME_MACHINE"-pc-msys
    860864        exit ;;
    861865    i*:PW*:*)
    862         echo ${UNAME_MACHINE}-pc-pw32
     866        echo "$UNAME_MACHINE"-pc-pw32
    863867        exit ;;
    864868    *:Interix*:*)
    865         case ${UNAME_MACHINE} in
     869        case "$UNAME_MACHINE" in
    866870            x86)
    867                 echo i586-pc-interix${UNAME_RELEASE}
     871                echo i586-pc-interix"$UNAME_RELEASE"
    868872                exit ;;
    869873            authenticamd | genuineintel | EM64T)
    870                 echo x86_64-unknown-interix${UNAME_RELEASE}
     874                echo x86_64-unknown-interix"$UNAME_RELEASE"
    871875                exit ;;
    872876            IA64)
    873                 echo ia64-unknown-interix${UNAME_RELEASE}
     877                echo ia64-unknown-interix"$UNAME_RELEASE"
    874878                exit ;;
    875879        esac ;;
    876     [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
    877         echo i${UNAME_MACHINE}-pc-mks
    878         exit ;;
    879     8664:Windows_NT:*)
    880         echo x86_64-pc-mks
    881         exit ;;
    882     i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
    883         # How do we know it's Interix rather than the generic POSIX subsystem?
    884         # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
    885         # UNAME_MACHINE based on the output of uname instead of i386?
    886         echo i586-pc-interix
    887         exit ;;
    888880    i*:UWIN*:*)
    889         echo ${UNAME_MACHINE}-pc-uwin
     881        echo "$UNAME_MACHINE"-pc-uwin
    890882        exit ;;
    891883    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
    892884        echo x86_64-unknown-cygwin
    893885        exit ;;
    894     p*:CYGWIN*:*)
    895         echo powerpcle-unknown-cygwin
    896         exit ;;
    897886    prep*:SunOS:5.*:*)
    898         echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
     887        echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
    899888        exit ;;
    900889    *:GNU:*:*)
    901890        # the GNU system
    902         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,/.*$,,'`"
    903892        exit ;;
    904893    *:GNU/*:*:*)
    905894        # other systems with GNU libc and userland
    906         echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
     895        echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"
    907896        exit ;;
    908897    i*86:Minix:*:*)
    909         echo ${UNAME_MACHINE}-pc-minix
     898        echo "$UNAME_MACHINE"-pc-minix
    910899        exit ;;
    911900    aarch64:Linux:*:*)
    912         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     901        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    913902        exit ;;
    914903    aarch64_be:Linux:*:*)
    915904        UNAME_MACHINE=aarch64_be
    916         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     905        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    917906        exit ;;
    918907    alpha:Linux:*:*)
     
    928917        objdump --private-headers /bin/sh | grep -q ld.so.1
    929918        if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
    930         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     919        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    931920        exit ;;
    932921    arc:Linux:*:* | arceb:Linux:*:*)
    933         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     922        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    934923        exit ;;
    935924    arm*:Linux:*:*)
    936         eval $set_cc_for_build
     925        eval "$set_cc_for_build"
    937926        if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
    938927            | grep -q __ARM_EABI__
    939928        then
    940             echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     929            echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    941930        else
    942931            if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
    943932                | grep -q __ARM_PCS_VFP
    944933            then
    945                 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
     934                echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
    946935            else
    947                 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
     936                echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
    948937            fi
    949938        fi
    950939        exit ;;
    951940    avr32*:Linux:*:*)
    952         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     941        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    953942        exit ;;
    954943    cris:Linux:*:*)
    955         echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     944        echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
    956945        exit ;;
    957946    crisv32:Linux:*:*)
    958         echo ${UNAME_MACHINE}-axis-linux-${LIBC}
     947        echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
    959948        exit ;;
    960949    e2k:Linux:*:*)
    961         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     950        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    962951        exit ;;
    963952    frv:Linux:*:*)
    964         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     953        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    965954        exit ;;
    966955    hexagon:Linux:*:*)
    967         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     956        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    968957        exit ;;
    969958    i*86:Linux:*:*)
    970         echo ${UNAME_MACHINE}-pc-linux-${LIBC}
     959        echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
    971960        exit ;;
    972961    ia64:Linux:*:*)
    973         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     962        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    974963        exit ;;
    975964    k1om:Linux:*:*)
    976         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     965        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    977966        exit ;;
    978967    m32r*:Linux:*:*)
    979         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     968        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    980969        exit ;;
    981970    m68*:Linux:*:*)
    982         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     971        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    983972        exit ;;
    984973    mips:Linux:*:* | mips64:Linux:*:*)
    985         eval $set_cc_for_build
    986         sed 's/^        //' << EOF >$dummy.c
     974        eval "$set_cc_for_build"
     975        sed 's/^        //' << EOF > "$dummy.c"
    987976        #undef CPU
    988977        #undef ${UNAME_MACHINE}
     
    998987        #endif
    999988EOF
    1000         eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
    1001         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; }
    1002991        ;;
    1003992    mips64el:Linux:*:*)
    1004         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     993        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    1005994        exit ;;
    1006995    openrisc*:Linux:*:*)
    1007         echo or1k-unknown-linux-${LIBC}
     996        echo or1k-unknown-linux-"$LIBC"
    1008997        exit ;;
    1009998    or32:Linux:*:* | or1k*:Linux:*:*)
    1010         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     999        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10111000        exit ;;
    10121001    padre:Linux:*:*)
    1013         echo sparc-unknown-linux-${LIBC}
     1002        echo sparc-unknown-linux-"$LIBC"
    10141003        exit ;;
    10151004    parisc64:Linux:*:* | hppa64:Linux:*:*)
    1016         echo hppa64-unknown-linux-${LIBC}
     1005        echo hppa64-unknown-linux-"$LIBC"
    10171006        exit ;;
    10181007    parisc:Linux:*:* | hppa:Linux:*:*)
    10191008        # Look for CPU level
    10201009        case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
    1021           PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
    1022           PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
    1023           *)    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" ;;
    10241013        esac
    10251014        exit ;;
    10261015    ppc64:Linux:*:*)
    1027         echo powerpc64-unknown-linux-${LIBC}
     1016        echo powerpc64-unknown-linux-"$LIBC"
    10281017        exit ;;
    10291018    ppc:Linux:*:*)
    1030         echo powerpc-unknown-linux-${LIBC}
     1019        echo powerpc-unknown-linux-"$LIBC"
    10311020        exit ;;
    10321021    ppc64le:Linux:*:*)
    1033         echo powerpc64le-unknown-linux-${LIBC}
     1022        echo powerpc64le-unknown-linux-"$LIBC"
    10341023        exit ;;
    10351024    ppcle:Linux:*:*)
    1036         echo powerpcle-unknown-linux-${LIBC}
     1025        echo powerpcle-unknown-linux-"$LIBC"
    10371026        exit ;;
    10381027    riscv32:Linux:*:* | riscv64:Linux:*:*)
    1039         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1028        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10401029        exit ;;
    10411030    s390:Linux:*:* | s390x:Linux:*:*)
    1042         echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
     1031        echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
    10431032        exit ;;
    10441033    sh64*:Linux:*:*)
    1045         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1034        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10461035        exit ;;
    10471036    sh*:Linux:*:*)
    1048         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1037        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10491038        exit ;;
    10501039    sparc:Linux:*:* | sparc64:Linux:*:*)
    1051         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1040        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10521041        exit ;;
    10531042    tile*:Linux:*:*)
    1054         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1043        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10551044        exit ;;
    10561045    vax:Linux:*:*)
    1057         echo ${UNAME_MACHINE}-dec-linux-${LIBC}
     1046        echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
    10581047        exit ;;
    10591048    x86_64:Linux:*:*)
    1060         echo ${UNAME_MACHINE}-pc-linux-${LIBC}
     1049        echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
    10611050        exit ;;
    10621051    xtensa*:Linux:*:*)
    1063         echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
     1052        echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
    10641053        exit ;;
    10651054    i*86:DYNIX/ptx:4*:*)
     
    10751064        # I just have to hope.  -- rms.
    10761065        # Use sysv4.2uw... so that sysv4* matches it.
    1077         echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
     1066        echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
    10781067        exit ;;
    10791068    i*86:OS/2:*:*)
    10801069        # If we were able to find `uname', then EMX Unix compatibility
    10811070        # is probably installed.
    1082         echo ${UNAME_MACHINE}-pc-os2-emx
     1071        echo "$UNAME_MACHINE"-pc-os2-emx
    10831072        exit ;;
    10841073    i*86:XTS-300:*:STOP)
    1085         echo ${UNAME_MACHINE}-unknown-stop
     1074        echo "$UNAME_MACHINE"-unknown-stop
    10861075        exit ;;
    10871076    i*86:atheos:*:*)
    1088         echo ${UNAME_MACHINE}-unknown-atheos
     1077        echo "$UNAME_MACHINE"-unknown-atheos
    10891078        exit ;;
    10901079    i*86:syllable:*:*)
    1091         echo ${UNAME_MACHINE}-pc-syllable
     1080        echo "$UNAME_MACHINE"-pc-syllable
    10921081        exit ;;
    10931082    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
    1094         echo i386-unknown-lynxos${UNAME_RELEASE}
     1083        echo i386-unknown-lynxos"$UNAME_RELEASE"
    10951084        exit ;;
    10961085    i*86:*DOS:*:*)
    1097         echo ${UNAME_MACHINE}-pc-msdosdjgpp
    1098         exit ;;
    1099     i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
    1100         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$//'`
    11011090        if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
    1102                 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
     1091                echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
    11031092        else
    1104                 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
     1093                echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
    11051094        fi
    11061095        exit ;;
     
    11121101            *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
    11131102        esac
    1114         echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
     1103        echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
    11151104        exit ;;
    11161105    i*86:*:3.2:*)
    11171106        if test -f /usr/options/cb.name; then
    11181107                UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
    1119                 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
     1108                echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
    11201109        elif /bin/uname -X 2>/dev/null >/dev/null ; then
    11211110                UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
     
    11271116                (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
    11281117                        && UNAME_MACHINE=i686
    1129                 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
     1118                echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
    11301119        else
    1131                 echo ${UNAME_MACHINE}-pc-sysv32
     1120                echo "$UNAME_MACHINE"-pc-sysv32
    11321121        fi
    11331122        exit ;;
     
    11491138    i860:*:4.*:*) # i860-SVR4
    11501139        if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
    1151           echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
     1140          echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
    11521141        else # Add other i860-SVR4 vendors below as they are discovered.
    1153           echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
     1142          echo i860-unknown-sysv"$UNAME_RELEASE"  # Unknown i860-SVR4
    11541143        fi
    11551144        exit ;;
     
    11711160        && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11721161        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1173           && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1162          && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
    11741163        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1175           && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1164          && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    11761165    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
    11771166        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
     
    11821171            && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
    11831172        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
    1184             && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
     1173            && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
    11851174        /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
    1186             && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
     1175            && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
    11871176        /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
    1188             && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
     1177            && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
    11891178    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
    1190         echo m68k-unknown-lynxos${UNAME_RELEASE}
     1179        echo m68k-unknown-lynxos"$UNAME_RELEASE"
    11911180        exit ;;
    11921181    mc68030:UNIX_System_V:4.*:*)
     
    11941183        exit ;;
    11951184    TSUNAMI:LynxOS:2.*:*)
    1196         echo sparc-unknown-lynxos${UNAME_RELEASE}
     1185        echo sparc-unknown-lynxos"$UNAME_RELEASE"
    11971186        exit ;;
    11981187    rs6000:LynxOS:2.*:*)
    1199         echo rs6000-unknown-lynxos${UNAME_RELEASE}
     1188        echo rs6000-unknown-lynxos"$UNAME_RELEASE"
    12001189        exit ;;
    12011190    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
    1202         echo powerpc-unknown-lynxos${UNAME_RELEASE}
     1191        echo powerpc-unknown-lynxos"$UNAME_RELEASE"
    12031192        exit ;;
    12041193    SM[BE]S:UNIX_SV:*:*)
    1205         echo mips-dde-sysv${UNAME_RELEASE}
     1194        echo mips-dde-sysv"$UNAME_RELEASE"
    12061195        exit ;;
    12071196    RM*:ReliantUNIX-*:*:*)
     
    12141203        if uname -p 2>/dev/null >/dev/null ; then
    12151204                UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1216                 echo ${UNAME_MACHINE}-sni-sysv4
     1205                echo "$UNAME_MACHINE"-sni-sysv4
    12171206        else
    12181207                echo ns32k-sni-sysv
     
    12341223    i*86:VOS:*:*)
    12351224        # From Paul.Green@stratus.com.
    1236         echo ${UNAME_MACHINE}-stratus-vos
     1225        echo "$UNAME_MACHINE"-stratus-vos
    12371226        exit ;;
    12381227    *:VOS:*:*)
     
    12411230        exit ;;
    12421231    mc68*:A/UX:*:*)
    1243         echo m68k-apple-aux${UNAME_RELEASE}
     1232        echo m68k-apple-aux"$UNAME_RELEASE"
    12441233        exit ;;
    12451234    news*:NEWS-OS:6*:*)
     
    12481237    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
    12491238        if [ -d /usr/nec ]; then
    1250                 echo mips-nec-sysv${UNAME_RELEASE}
     1239                echo mips-nec-sysv"$UNAME_RELEASE"
    12511240        else
    1252                 echo mips-unknown-sysv${UNAME_RELEASE}
     1241                echo mips-unknown-sysv"$UNAME_RELEASE"
    12531242        fi
    12541243        exit ;;
     
    12691258        exit ;;
    12701259    SX-4:SUPER-UX:*:*)
    1271         echo sx4-nec-superux${UNAME_RELEASE}
     1260        echo sx4-nec-superux"$UNAME_RELEASE"
    12721261        exit ;;
    12731262    SX-5:SUPER-UX:*:*)
    1274         echo sx5-nec-superux${UNAME_RELEASE}
     1263        echo sx5-nec-superux"$UNAME_RELEASE"
    12751264        exit ;;
    12761265    SX-6:SUPER-UX:*:*)
    1277         echo sx6-nec-superux${UNAME_RELEASE}
     1266        echo sx6-nec-superux"$UNAME_RELEASE"
    12781267        exit ;;
    12791268    SX-7:SUPER-UX:*:*)
    1280         echo sx7-nec-superux${UNAME_RELEASE}
     1269        echo sx7-nec-superux"$UNAME_RELEASE"
    12811270        exit ;;
    12821271    SX-8:SUPER-UX:*:*)
    1283         echo sx8-nec-superux${UNAME_RELEASE}
     1272        echo sx8-nec-superux"$UNAME_RELEASE"
    12841273        exit ;;
    12851274    SX-8R:SUPER-UX:*:*)
    1286         echo sx8r-nec-superux${UNAME_RELEASE}
     1275        echo sx8r-nec-superux"$UNAME_RELEASE"
    12871276        exit ;;
    12881277    SX-ACE:SUPER-UX:*:*)
    1289         echo sxace-nec-superux${UNAME_RELEASE}
     1278        echo sxace-nec-superux"$UNAME_RELEASE"
    12901279        exit ;;
    12911280    Power*:Rhapsody:*:*)
    1292         echo powerpc-apple-rhapsody${UNAME_RELEASE}
     1281        echo powerpc-apple-rhapsody"$UNAME_RELEASE"
    12931282        exit ;;
    12941283    *:Rhapsody:*:*)
    1295         echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
     1284        echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
    12961285        exit ;;
    12971286    *:Darwin:*:*)
    12981287        UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
    1299         eval $set_cc_for_build
     1288        eval "$set_cc_for_build"
    13001289        if test "$UNAME_PROCESSOR" = unknown ; then
    13011290            UNAME_PROCESSOR=powerpc
    13021291        fi
    1303         if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then
     1292        if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
    13041293            if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
    13051294                if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
    1306                     (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
    1307                     grep IS_64BIT_ARCH >/dev/null
     1295                       (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
     1296                       grep IS_64BIT_ARCH >/dev/null
    13081297                then
    13091298                    case $UNAME_PROCESSOR in
     
    13111300                        powerpc) UNAME_PROCESSOR=powerpc64 ;;
    13121301                    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
    13131309                fi
    13141310            fi
     
    13221318            UNAME_PROCESSOR=x86_64
    13231319        fi
    1324         echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
     1320        echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
    13251321        exit ;;
    13261322    *:procnto*:*:* | *:QNX:[0123456789]*:*)
     
    13301326                UNAME_MACHINE=pc
    13311327        fi
    1332         echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
     1328        echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
    13331329        exit ;;
    13341330    *:QNX:*:4*)
    13351331        echo i386-pc-qnx
    13361332        exit ;;
    1337     NEO-?:NONSTOP_KERNEL:*:*)
    1338         echo neo-tandem-nsk${UNAME_RELEASE}
     1333    NEO-*:NONSTOP_KERNEL:*:*)
     1334        echo neo-tandem-nsk"$UNAME_RELEASE"
    13391335        exit ;;
    13401336    NSE-*:NONSTOP_KERNEL:*:*)
    1341         echo nse-tandem-nsk${UNAME_RELEASE}
    1342         exit ;;
    1343     NSR-?:NONSTOP_KERNEL:*:*)
    1344         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"
    13451347        exit ;;
    13461348    *:NonStop-UX:*:*)
     
    13511353        exit ;;
    13521354    DS/*:UNIX_System_V:*:*)
    1353         echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
     1355        echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
    13541356        exit ;;
    13551357    *:Plan9:*:*)
     
    13621364            UNAME_MACHINE="$cputype"
    13631365        fi
    1364         echo ${UNAME_MACHINE}-unknown-plan9
     1366        echo "$UNAME_MACHINE"-unknown-plan9
    13651367        exit ;;
    13661368    *:TOPS-10:*:*)
     
    13831385        exit ;;
    13841386    SEI:*:*:SEIUX)
    1385         echo mips-sei-seiux${UNAME_RELEASE}
     1387        echo mips-sei-seiux"$UNAME_RELEASE"
    13861388        exit ;;
    13871389    *:DragonFly:*:*)
    1388         echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
     1390        echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
    13891391        exit ;;
    13901392    *:*VMS:*:*)
    13911393        UNAME_MACHINE=`(uname -p) 2>/dev/null`
    1392         case "${UNAME_MACHINE}" in
     1394        case "$UNAME_MACHINE" in
    13931395            A*) echo alpha-dec-vms ; exit ;;
    13941396            I*) echo ia64-dec-vms ; exit ;;
     
    13991401        exit ;;
    14001402    i*86:skyos:*:*)
    1401         echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`
     1403        echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
    14021404        exit ;;
    14031405    i*86:rdos:*:*)
    1404         echo ${UNAME_MACHINE}-pc-rdos
     1406        echo "$UNAME_MACHINE"-pc-rdos
    14051407        exit ;;
    14061408    i*86:AROS:*:*)
    1407         echo ${UNAME_MACHINE}-pc-aros
     1409        echo "$UNAME_MACHINE"-pc-aros
    14081410        exit ;;
    14091411    x86_64:VMkernel:*:*)
    1410         echo ${UNAME_MACHINE}-unknown-esx
     1412        echo "$UNAME_MACHINE"-unknown-esx
    14111413        exit ;;
    14121414    amd64:Isilon\ OneFS:*:*)
     
    14151417esac
    14161418
     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
    14171432cat >&2 <<EOF
    1418 $0: unable to guess system type
    14191433
    14201434This script (version $timestamp), has failed to recognize the
    1421 operating system you are using. If your script is old, overwrite
    1422 config.guess and config.sub with the latest versions from:
    1423 
    1424   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
     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
    14251439and
    1426   http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     1440  https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
    14271441
    14281442If $0 has already been updated, send the following data and any
     
    14471461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
    14481462
    1449 UNAME_MACHINE = ${UNAME_MACHINE}
    1450 UNAME_RELEASE = ${UNAME_RELEASE}
    1451 UNAME_SYSTEM  = ${UNAME_SYSTEM}
    1452 UNAME_VERSION = ${UNAME_VERSION}
     1463UNAME_MACHINE = "$UNAME_MACHINE"
     1464UNAME_RELEASE = "$UNAME_RELEASE"
     1465UNAME_SYSTEM  = "$UNAME_SYSTEM"
     1466UNAME_VERSION = "$UNAME_VERSION"
    14531467EOF
    14541468
     
    14561470
    14571471# Local variables:
    1458 # eval: (add-hook 'write-file-hooks 'time-stamp)
     1472# eval: (add-hook 'before-save-hook 'time-stamp)
    14591473# time-stamp-start: "timestamp='"
    14601474# time-stamp-format: "%:y-%02m-%02d"
  • ThirdParty/Glpk/branches/autotools-update/config.sub

    r3951 r4050  
    1 #!/usr/bin/sh
     1#! /bin/sh
    22# Configuration validation subroutine script.
    3 #   Copyright 1992-2016 Free Software Foundation, Inc.
    4 
    5 timestamp='2016-09-05'
     3#   Copyright 1992-2018 Free Software Foundation, Inc.
     4
     5timestamp='2018-03-08'
    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
     
    3434
    3535# You can get the latest version of this script from:
    36 # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
     36# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
    3737
    3838# This file is supposed to be the same for all GNU packages
     
    5858Canonicalize a configuration name.
    5959
    60 Operation modes:
     60Options:
    6161  -h, --help         print this help, then exit
    6262  -t, --time-stamp   print date of last modification, then exit
     
    6868GNU config.sub ($timestamp)
    6969
    70 Copyright 1992-2016 Free Software Foundation, Inc.
     70Copyright 1992-2018 Free Software Foundation, Inc.
    7171
    7272This is free software; see the source for copying conditions.  There is NO
     
    9595    *local*)
    9696       # First pass through any local machine types.
    97        echo $1
     97       echo "$1"
    9898       exit ;;
    9999
     
    113113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
    114114# Here we must recognize all the valid KERNEL-OS combinations.
    115 maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
     115maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
    116116case $maybe_os in
    117117  nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
     
    121121  storm-chaos* | os2-emx* | rtmk-nova*)
    122122    os=-$maybe_os
    123     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
     123    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
    124124    ;;
    125125  android-linux)
    126126    os=-linux-android
    127     basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
     127    basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
    128128    ;;
    129129  *)
    130     basic_machine=`echo $1 | sed 's/-[^-]*$//'`
    131     if [ $basic_machine != $1 ]
    132     then os=`echo $1 | sed 's/.*-/-/'`
     130    basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
     131    if [ "$basic_machine" != "$1" ]
     132    then os=`echo "$1" | sed 's/.*-/-/'`
    133133    else os=; fi
    134134    ;;
     
    179179        -sco6)
    180180                os=-sco5v6
    181                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     181                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    182182                ;;
    183183        -sco5)
    184184                os=-sco3.2v5
    185                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     185                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    186186                ;;
    187187        -sco4)
    188188                os=-sco3.2v4
    189                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     189                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    190190                ;;
    191191        -sco3.2.[4-9]*)
    192192                os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
    193                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     193                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    194194                ;;
    195195        -sco3.2v[4-9]*)
    196196                # Don't forget version if it is 3.2v4 or newer.
    197                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     197                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    198198                ;;
    199199        -sco5v6*)
    200200                # Don't forget version if it is 3.2v4 or newer.
    201                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     201                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    202202                ;;
    203203        -sco*)
    204204                os=-sco3.2v2
    205                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     205                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    206206                ;;
    207207        -udk*)
    208                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     208                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    209209                ;;
    210210        -isc)
    211211                os=-isc2.2
    212                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     212                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    213213                ;;
    214214        -clix*)
     
    216216                ;;
    217217        -isc*)
    218                 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
     218                basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
    219219                ;;
    220220        -lynx*178)
     
    228228                ;;
    229229        -ptx*)
    230                 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
    231                 ;;
    232         -windowsnt*)
    233                 os=`echo $os | sed -e 's/windowsnt/winnt/'`
     230                basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
    234231                ;;
    235232        -psos*)
     
    264261        | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
    265262        | hexagon \
    266         | i370 | i860 | i960 | ia64 \
     263        | i370 | i860 | i960 | ia16 | ia64 \
    267264        | ip2k | iq2000 \
    268265        | k1om \
     
    300297        | ns16k | ns32k \
    301298        | open8 | or1k | or1knd | or32 \
    302         | pdp10 | pdp11 | pj | pjl \
     299        | pdp10 | pj | pjl \
    303300        | powerpc | powerpc64 | powerpc64le | powerpcle \
     301        | pru \
    304302        | pyramid \
    305303        | riscv32 | riscv64 \
     
    315313        | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
    316314        | visium \
    317         | we32k \
     315        | wasm32 \
    318316        | x86 | xc16x | xstormy16 | xtensa \
    319317        | z8k | z80)
     
    336334                os=-none
    337335                ;;
    338         m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
     336        m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
    339337                ;;
    340338        ms1)
     
    365363        # Object if more than one company name word.
    366364        *-*-*)
    367                 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
     365                echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
    368366                exit 1
    369367                ;;
     
    388386        | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
    389387        | hexagon-* \
    390         | i*86-* | i860-* | i960-* | ia64-* \
     388        | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
    391389        | ip2k-* | iq2000-* \
    392390        | k1om-* \
     
    429427        | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
    430428        | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
     429        | pru-* \
    431430        | pyramid-* \
    432431        | riscv32-* | riscv64-* \
     
    445444        | vax-* \
    446445        | visium-* \
     446        | wasm32-* \
    447447        | we32k-* \
    448448        | x86-* | x86_64-* | xc16x-* | xps100-* \
     
    458458        # for a CPU type and a company and sometimes even an OS.
    459459        386bsd)
    460                 basic_machine=i386-unknown
     460                basic_machine=i386-pc
    461461                os=-bsd
    462462                ;;
     
    492492                ;;
    493493        amd64-*)
    494                 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
     494                basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    495495                ;;
    496496        amdahl)
     
    537537                ;;
    538538        blackfin-*)
    539                 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
     539                basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    540540                os=-linux
    541541                ;;
     
    545545                ;;
    546546        c54x-*)
    547                 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
     547                basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    548548                ;;
    549549        c55x-*)
    550                 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
     550                basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    551551                ;;
    552552        c6x-*)
    553                 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
     553                basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    554554                ;;
    555555        c90)
     
    640640                os=-bosx
    641641                ;;
    642         dpx2* | dpx2*-bull)
     642        dpx2*)
    643643                basic_machine=m68k-bull
    644644                os=-sysv3
     
    649649                ;;
    650650        e500v[12]-*)
    651                 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
     651                basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    652652                os=$os"spe"
    653653                ;;
     
    741741                basic_machine=hppa1.0-hp
    742742                ;;
    743         hppa-next)
    744                 os=-nextstep3
    745                 ;;
    746743        hppaosf)
    747744                basic_machine=hppa1.1-hp
     
    756753                ;;
    757754        i*86v32)
    758                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     755                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
    759756                os=-sysv32
    760757                ;;
    761758        i*86v4*)
    762                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     759                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
    763760                os=-sysv4
    764761                ;;
    765762        i*86v)
    766                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     763                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
    767764                os=-sysv
    768765                ;;
    769766        i*86sol2)
    770                 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
     767                basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
    771768                os=-solaris2
    772769                ;;
     
    775772                os=-mach
    776773                ;;
    777         i386-vsta | vsta)
     774        vsta)
    778775                basic_machine=i386-unknown
    779776                os=-vsta
     
    794791                ;;
    795792        leon-*|leon[3-9]-*)
    796                 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`
     793                basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
    797794                ;;
    798795        m68knommu)
     
    801798                ;;
    802799        m68knommu-*)
    803                 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
     800                basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    804801                os=-linux
    805                 ;;
    806         m88k-omron*)
    807                 basic_machine=m88k-omron
    808802                ;;
    809803        magnum | m3230)
     
    838832                ;;
    839833        mips3*-*)
    840                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
     834                basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
    841835                ;;
    842836        mips3*)
    843                 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
     837                basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
    844838                ;;
    845839        monitor)
     
    860854                ;;
    861855        ms1-*)
    862                 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
     856                basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
    863857                ;;
    864858        msys)
     
    902896                os=-sysv
    903897                ;;
    904         next | m*-next )
     898        next | m*-next)
    905899                basic_machine=m68k-next
    906900                case $os in
     
    947941                basic_machine=nsr-tandem
    948942                ;;
     943        nsv-tandem)
     944                basic_machine=nsv-tandem
     945                ;;
     946        nsx-tandem)
     947                basic_machine=nsx-tandem
     948                ;;
    949949        op50n-* | op60c-*)
    950950                basic_machine=hppa1.1-oki
     
    979979                ;;
    980980        parisc-*)
    981                 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
     981                basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    982982                os=-linux
    983983                ;;
     
    995995                ;;
    996996        pc98-*)
    997                 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
     997                basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    998998                ;;
    999999        pentium | p5 | k5 | k6 | nexgen | viac3)
     
    10101010                ;;
    10111011        pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
    1012                 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
     1012                basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10131013                ;;
    10141014        pentiumpro-* | p6-* | 6x86-* | athlon-*)
    1015                 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     1015                basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10161016                ;;
    10171017        pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
    1018                 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
     1018                basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10191019                ;;
    10201020        pentium4-*)
    1021                 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
     1021                basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10221022                ;;
    10231023        pn)
     
    10291029                ;;
    10301030        ppc-* | ppcbe-*)
    1031                 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
     1031                basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10321032                ;;
    10331033        ppcle | powerpclittle)
     
    10351035                ;;
    10361036        ppcle-* | powerpclittle-*)
    1037                 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
     1037                basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10381038                ;;
    10391039        ppc64)  basic_machine=powerpc64-unknown
    10401040                ;;
    1041         ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
     1041        ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10421042                ;;
    10431043        ppc64le | powerpc64little)
     
    10451045                ;;
    10461046        ppc64le-* | powerpc64little-*)
    1047                 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
     1047                basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    10481048                ;;
    10491049        ps2)
     
    10991099                basic_machine=i386-sequent
    11001100                ;;
    1101         sh)
    1102                 basic_machine=sh-hitachi
    1103                 os=-hms
    1104                 ;;
    11051101        sh5el)
    11061102                basic_machine=sh5le-unknown
    11071103                ;;
    1108         sh64)
    1109                 basic_machine=sh64-unknown
    1110                 ;;
    1111         sparclite-wrs | simso-wrs)
     1104        simso-wrs)
    11121105                basic_machine=sparclite-wrs
    11131106                os=-vxworks
     
    11281121                ;;
    11291122        strongarm-* | thumb-*)
    1130                 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
     1123                basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
    11311124                ;;
    11321125        sun2)
     
    12501243                os=-proelf
    12511244                ;;
     1245        x64)
     1246                basic_machine=x86_64-pc
     1247                ;;
    12521248        xbox)
    12531249                basic_machine=i686-pc
     
    12581254                ;;
    12591255        xscale-* | xscalee[bl]-*)
    1260                 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
     1256                basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
    12611257                ;;
    12621258        ymp)
    12631259                basic_machine=ymp-cray
    12641260                os=-unicos
    1265                 ;;
    1266         z8k-*-coff)
    1267                 basic_machine=z8k-unknown
    1268                 os=-sim
    1269                 ;;
    1270         z80-*-coff)
    1271                 basic_machine=z80-unknown
    1272                 os=-sim
    12731261                ;;
    12741262        none)
     
    13001288                basic_machine=vax-dec
    13011289                ;;
    1302         pdp10)
    1303                 # there are many clones, so DEC is not a safe bet
    1304                 basic_machine=pdp10-unknown
    1305                 ;;
    13061290        pdp11)
    13071291                basic_machine=pdp11-dec
     
    13131297                basic_machine=sh-unknown
    13141298                ;;
    1315         sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
    1316                 basic_machine=sparc-sun
    1317                 ;;
    13181299        cydra)
    13191300                basic_machine=cydra-cydrome
     
    13351316                ;;
    13361317        *)
    1337                 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
     1318                echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
    13381319                exit 1
    13391320                ;;
     
    13431324case $basic_machine in
    13441325        *-digital*)
    1345                 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
     1326                basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
    13461327                ;;
    13471328        *-commodore*)
    1348                 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
     1329                basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
    13491330                ;;
    13501331        *)
     
    13571338then
    13581339case $os in
    1359         # First match some system type aliases
    1360         # that might get confused with valid system types.
     1340        # First match some system type aliases that might get confused
     1341        # with valid system types.
    13611342        # -solaris* is a basic system type, with this one exception.
    13621343        -auroraux)
     
    13691350                os=-solaris2
    13701351                ;;
    1371         -svr4*)
    1372                 os=-sysv4
    1373                 ;;
    13741352        -unixware*)
    13751353                os=-sysv4.2uw
     
    13781356                os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
    13791357                ;;
    1380         # First accept the basic system types.
     1358        # es1800 is here to avoid being matched by es* (a different OS)
     1359        -es1800*)
     1360                os=-ose
     1361                ;;
     1362        # Now accept the basic system types.
    13811363        # The portable systems comes first.
    1382         # Each alternative MUST END IN A *, to match a version number.
     1364        # Each alternative MUST end in a * to match a version number.
    13831365        # -sysv* is not here because it comes later, after sysvr4.
    13841366        -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
     
    13901372              | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
    13911373              | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
    1392               | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
     1374              | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
    13931375              | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
    13941376              | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
    13951377              | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
    13961378              | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
    1397               | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
    1398               | -chorusos* | -chorusrdb* | -cegcc* \
     1379              | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
     1380              | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
    13991381              | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
    14001382              | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
    14011383              | -linux-newlib* | -linux-musl* | -linux-uclibc* \
    14021384              | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
    1403               | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
     1385              | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
    14041386              | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
    14051387              | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
    14061388              | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
    1407               | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
     1389              | -morphos* | -superux* | -rtmk* | -windiss* \
    14081390              | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
    14091391              | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
    1410               | -onefs* | -tirtos* | -phoenix*)
     1392              | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
     1393              | -midnightbsd*)
    14111394        # Remember, each alternative MUST END IN *, to match a version number.
    14121395                ;;
     
    14251408                os=`echo $os | sed -e 's|nto|nto-qnx|'`
    14261409                ;;
    1427         -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
    1428               | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
     1410        -sim | -xray | -os68k* | -v88r* \
     1411              | -windows* | -osx | -abug | -netware* | -os9* \
    14291412              | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
    14301413                ;;
    14311414        -mac*)
    1432                 os=`echo $os | sed -e 's|mac|macos|'`
     1415                os=`echo "$os" | sed -e 's|mac|macos|'`
    14331416                ;;
    14341417        -linux-dietlibc)
     
    14391422                ;;
    14401423        -sunos5*)
    1441                 os=`echo $os | sed -e 's|sunos5|solaris2|'`
     1424                os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
    14421425                ;;
    14431426        -sunos6*)
    1444                 os=`echo $os | sed -e 's|sunos6|solaris3|'`
     1427                os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
    14451428                ;;
    14461429        -opened*)
     
    14531436                os=-wince
    14541437                ;;
    1455         -osfrose*)
    1456                 os=-osfrose
    1457                 ;;
    1458         -osf*)
    1459                 os=-osf
    1460                 ;;
    14611438        -utek*)
    14621439                os=-bsd
     
    14831460                os=-rtmk-nova
    14841461                ;;
    1485         -ns2 )
     1462        -ns2)
    14861463                os=-nextstep2
    14871464                ;;
     
    15051482                os=-sysv3
    15061483                ;;
    1507         -svr4)
     1484        -svr4*)
    15081485                os=-sysv4
    15091486                ;;
     
    15201497                os=-ose
    15211498                ;;
    1522         -es1800*)
    1523                 os=-ose
    1524                 ;;
    1525         -xenix)
    1526                 os=-xenix
    1527                 ;;
    15281499        -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
    15291500                os=-mint
    15301501                ;;
    1531         -aros*)
    1532                 os=-aros
    1533                 ;;
    15341502        -zvmoe)
    15351503                os=-zvmoe
     
    15371505        -dicos*)
    15381506                os=-dicos
     1507                ;;
     1508        -pikeos*)
     1509                # Until real need of OS specific support for
     1510                # particular features comes up, bare metal
     1511                # configurations are quite functional.
     1512                case $basic_machine in
     1513                    arm*)
     1514                        os=-eabi
     1515                        ;;
     1516                    *)
     1517                        os=-elf
     1518                        ;;
     1519                esac
    15391520                ;;
    15401521        -nacl*)
     
    15471528                # Get rid of the `-' at the beginning of $os.
    15481529                os=`echo $os | sed 's/[^-]*-//'`
    1549                 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
     1530                echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
    15501531                exit 1
    15511532                ;;
     
    16371618                os=-sunos4.1.1
    16381619                ;;
     1620        pru-*)
     1621                os=-elf
     1622                ;;
    16391623        *-be)
    16401624                os=-beos
    16411625                ;;
    1642         *-haiku)
    1643                 os=-haiku
    1644                 ;;
    16451626        *-ibm)
    16461627                os=-aix
     
    16821663                os=-luna
    16831664                ;;
    1684         *-next )
     1665        *-next)
    16851666                os=-nextstep
    16861667                ;;
     
    16961677        i370-*)
    16971678                os=-mvs
    1698                 ;;
    1699         *-next)
    1700                 os=-nextstep3
    17011679                ;;
    17021680        *-gould)
     
    18091787                                ;;
    18101788                esac
    1811                 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
     1789                basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
    18121790                ;;
    18131791esac
    18141792
    1815 echo $basic_machine$os
     1793echo "$basic_machine$os"
    18161794exit
    18171795
    18181796# Local variables:
    1819 # eval: (add-hook 'write-file-hooks 'time-stamp)
     1797# eval: (add-hook 'before-save-hook 'time-stamp)
    18201798# time-stamp-start: "timestamp='"
    18211799# time-stamp-format: "%:y-%02m-%02d"
  • ThirdParty/Glpk/branches/autotools-update/config_glpk.h.in

    r3863 r4050  
    11/* config_glpk.h.in.  Generated from configure.ac by autoheader.  */
    2 
    3 /* SVN revision number of project */
    4 #undef GLPK_SVN_REV
    52
    63/* Version number of project */
  • ThirdParty/Glpk/branches/autotools-update/configure

    r3951 r4050  
    685685LDFLAGS
    686686CFLAGS
    687 CC
    688687MAINT
    689688MAINTAINER_MODE_FALSE
     
    720719host_cpu
    721720host
     721CC
    722722build_os
    723723build_vendor
     
    726726ALWAYS_FALSE_FALSE
    727727ALWAYS_FALSE_TRUE
    728 GLPK_SVN_REV
    729 have_svnversion
    730728target_alias
    731729host_alias
     
    771769enable_option_checking
    772770enable_msvc
     771enable_debug
    773772enable_silent_rules
    774773enable_maintainer_mode
     
    14111410  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
    14121411  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
    1413   --enable-msvc           Allow only Intel/Microsoft compilers on
    1414                           MinGW/MSys/Cygwin.
     1412  --enable-msvc           look for and allow only Intel/Microsoft compilers on
     1413                          MinGW/MSys/Cygwin
     1414  --enable-debug          build debugging symbols and turn off compiler
     1415                          optimization
    14151416  --enable-silent-rules   less verbose build output (undo: "make V=1")
    14161417  --disable-silent-rules  verbose build output (undo: "make V=0")
     
    21612162# Do some generic initialization work.
    21622163
    2163 
    2164   # Check whether --enable-msvc was given.
    2165 if test "${enable_msvc+set}" = set; then :
    2166   enableval=$enable_msvc; enable_msvc=$enableval
    2167 else
    2168   enable_msvc=no
    2169 fi
    2170 
    2171 
    2172 
    2173 # We want --enable-msvc setup and checked
    2174 
    2175 
    2176 
    2177 # This macro should run before the compiler checks (doesn't seem to be
    2178 # sufficient for CFLAGS)
    2179 
    2180 
    2181 
    2182 
    2183 
    2184 
    2185 # change default compiler flags (TODO bring back --enable-debug)
    2186 # - disable debugging (remove -g, set -DNDEBUG)
    2187 # - enable exceptions for (i)cl
    2188 
    2189   if test "$enable_msvc" = yes ; then
    2190     : ${FFLAGS:=""}
    2191     : ${FCFLAGS:=""}
    2192     : ${CFLAGS:="-DNDEBUG -nologo"}
    2193     : ${CXXFLAGS:="-DNDEBUG -EHsc -nologo"}
    2194     : ${AR:="lib"}
    2195     : ${AR_FLAGS:="-nologo -out:"}
    2196   else
    2197     : ${FFLAGS:=""}
    2198     : ${FCFLAGS:=""}
    2199     : ${CFLAGS:="-DNDEBUG"}
    2200     : ${CXXFLAGS:="-DNDEBUG"}
    2201   fi
    2202 
    22032164ac_aux_dir=
    22042165for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
     
    22672228case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
    22682229
     2230
     2231
     2232
     2233
     2234  # Check whether --enable-msvc was given.
     2235if test "${enable_msvc+set}" = set; then :
     2236  enableval=$enable_msvc; enable_msvc=$enableval
     2237else
     2238  enable_msvc=no
     2239     case $build in
     2240       *-mingw* | *-cygwin* | *-msys* )
     2241         for ac_prog in gcc clang icl cl
     2242do
     2243  # Extract the first word of "$ac_prog", so it can be a program name with args.
     2244set dummy $ac_prog; ac_word=$2
     2245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     2246$as_echo_n "checking for $ac_word... " >&6; }
     2247if ${ac_cv_prog_CC+:} false; then :
     2248  $as_echo_n "(cached) " >&6
     2249else
     2250  if test -n "$CC"; then
     2251  ac_cv_prog_CC="$CC" # Let the user override the test.
     2252else
     2253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     2254for as_dir in $PATH
     2255do
     2256  IFS=$as_save_IFS
     2257  test -z "$as_dir" && as_dir=.
     2258    for ac_exec_ext in '' $ac_executable_extensions; do
     2259  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     2260    ac_cv_prog_CC="$ac_prog"
     2261    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     2262    break 2
     2263  fi
     2264done
     2265  done
     2266IFS=$as_save_IFS
     2267
     2268fi
     2269fi
     2270CC=$ac_cv_prog_CC
     2271if test -n "$CC"; then
     2272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     2273$as_echo "$CC" >&6; }
     2274else
     2275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     2276$as_echo "no" >&6; }
     2277fi
     2278
     2279
     2280  test -n "$CC" && break
     2281done
     2282
     2283         case "$CC" in *cl ) enable_msvc=yes ;; esac
     2284       ;;
     2285     esac
     2286fi
     2287
     2288
     2289
     2290  # We want --enable-msvc setup and checked
     2291
     2292
     2293  # Check whether --enable-debug was given.
     2294if test "${enable_debug+set}" = set; then :
     2295  enableval=$enable_debug; enable_debug=$enableval
     2296else
     2297  enable_debug=no
     2298fi
     2299
     2300
     2301# This macro should run before the compiler checks (doesn't seem to be
     2302# sufficient for CFLAGS)
     2303
     2304
     2305
     2306
     2307
     2308
     2309# change default compiler flags
     2310# - debugging enabled: enable debug symbols (-g/-Z7)
     2311# - debugging disabled: disable debug code (-DNDEBUG); enable (more) optimization (-O2)
     2312# - enable exceptions for (i)cl
     2313
     2314  if test "$enable_debug" = yes ; then
     2315    if test "$enable_msvc" = yes ; then
     2316      : ${FFLAGS:="-nologo -fpp -Z7 -MDd"}
     2317      : ${FCFLAGS:="-nologo -fpp -Z7 -MDd"}
     2318      : ${CFLAGS:="-nologo -Z7 -MDd"}
     2319      : ${CXXFLAGS:="-nologo -EHs -Z7 -MDd"}
     2320      : ${AR:="lib"}
     2321      : ${AR_FLAGS:="-nologo -out:"}
     2322    else
     2323      : ${FFLAGS:="-g"}
     2324      : ${FCFLAGS:="-g"}
     2325      : ${CFLAGS:="-g"}
     2326      : ${CXXFLAGS:="-g"}
     2327    fi
     2328  else
     2329    if test "$enable_msvc" = yes ; then
     2330      : ${FFLAGS:="-nologo -fpp -O2 -MD"}
     2331      : ${FCFLAGS:="-nologo -fpp -O2 -MD"}
     2332      : ${CFLAGS:="-nologo -DNDEBUG -O2 -MD"}
     2333      : ${CXXFLAGS:="-nologo -EHs -DNDEBUG -O2 -MD"}
     2334      : ${AR:="lib"}
     2335      : ${AR_FLAGS:="-nologo -out:"}
     2336    else
     2337      : ${FFLAGS:="-O2"}
     2338      : ${FCFLAGS:="-O2"}
     2339      : ${CFLAGS:="-O2 -DNDEBUG"}
     2340      : ${CXXFLAGS:="-O2 -DNDEBUG"}
     2341    fi
     2342  fi
    22692343
    22702344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
     
    27342808
    27352809
     2810  # break up package version number in major.minor.release
     2811  # AC_PACKAGE_VERSION is defined by AC_INIT
     2812
     2813
     2814
     2815
     2816  # ac-define AC_PACKAGE_VERSION macros, use 9999 for missing values
    27362817
    27372818cat >>confdefs.h <<_ACEOF
    2738 #define GLPK_VERSION "$PACKAGE_VERSION"
     2819#define GLPK_VERSION "trunk"
    27392820_ACEOF
    27402821
    27412822
    2742 # Parse package version, assuming major.minor.release. PACKAGE_VERSION is set
    2743 # by AC_INIT. Force components to 9999 if they're empty; this deals with
    2744 # things like `trunk' and other nonstandard forms.
    2745 
    2746   coin_majorver=`echo $PACKAGE_VERSION | sed -n -e 's/^\([0-9]*\).*/\1/gp'`
    2747   coin_minorver=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.\([0-9]*\).*/\1/gp'`
    2748   coin_releasever=`echo $PACKAGE_VERSION | sed -n -e 's/^[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/gp'`
    2749   test -z "$coin_majorver"   && coin_majorver=9999
    2750   test -z "$coin_minorver"   && coin_minorver=9999
    2751   test -z "$coin_releasever" && coin_releasever=9999
    2752 
    27532823cat >>confdefs.h <<_ACEOF
    2754 #define GLPK_VERSION_MAJOR $coin_majorver
     2824#define GLPK_VERSION_MAJOR 9999
    27552825_ACEOF
    27562826
    27572827
    27582828cat >>confdefs.h <<_ACEOF
    2759 #define GLPK_VERSION_MINOR $coin_minorver
     2829#define GLPK_VERSION_MINOR 9999
    27602830_ACEOF
    27612831
    27622832
    27632833cat >>confdefs.h <<_ACEOF
    2764 #define GLPK_VERSION_RELEASE $coin_releasever
     2834#define GLPK_VERSION_RELEASE 9999
    27652835_ACEOF
    27662836
    27672837
    2768 # Create a variable set to the upper case version of the project name
    2769 
    2770   COIN_PRJCT=GLPK
    2771 
    2772 # Set the project's SVN revision number. The complicated sed expression
    2773 # (made worse by quadrigraphs) ensures that things like 4123:4168MS end up
    2774 # as a single number.
    2775 
    2776   # Extract the first word of "svnversion", so it can be a program name with args.
    2777 set dummy svnversion; ac_word=$2
    2778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
    2779 $as_echo_n "checking for $ac_word... " >&6; }
    2780 if ${ac_cv_prog_have_svnversion+:} false; then :
    2781   $as_echo_n "(cached) " >&6
    2782 else
    2783   if test -n "$have_svnversion"; then
    2784   ac_cv_prog_have_svnversion="$have_svnversion" # Let the user override the test.
    2785 else
    2786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
    2787 for as_dir in $PATH
    2788 do
    2789   IFS=$as_save_IFS
    2790   test -z "$as_dir" && as_dir=.
    2791     for ac_exec_ext in '' $ac_executable_extensions; do
    2792   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
    2793     ac_cv_prog_have_svnversion="yes"
    2794     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
    2795     break 2
    2796   fi
    2797 done
    2798   done
    2799 IFS=$as_save_IFS
    2800 
    2801   test -z "$ac_cv_prog_have_svnversion" && ac_cv_prog_have_svnversion="no"
    2802 fi
    2803 fi
    2804 have_svnversion=$ac_cv_prog_have_svnversion
    2805 if test -n "$have_svnversion"; then
    2806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_svnversion" >&5
    2807 $as_echo "$have_svnversion" >&6; }
    2808 else
    2809   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2810 $as_echo "no" >&6; }
    2811 fi
    2812 
    2813 
    2814   if test "x$have_svnversion" = xyes; then
    2815 
    2816     svn_rev_tmp=`LANG=en_EN svnversion $srcdir 2>/dev/null`
    2817     if test "x$svn_rev_tmp" != xexported -a "x$svn_rev_tmp" != x -a "x$svn_rev_tmp" != "xUnversioned directory"; then
    2818       GLPK_SVN_REV=`echo $svn_rev_tmp | sed -n -e 's/^[0-9]*://' -e 's/\([0-9]\)[^0-9]*$/\1/p'`
    2819 
    2820 cat >>confdefs.h <<_ACEOF
    2821 #define GLPK_SVN_REV $GLPK_SVN_REV
    2822 _ACEOF
    2823 
    2824     fi
    2825   fi
    2826 
    2827 
    2828 
    2829 # Capture the libtool library version, if given.
     2838
    28302839
    28312840
     
    30483057
    30493058
    3050 
    3051 # Make it appear as if --includedir was part of the command line, so that
    3052 # glpk's install will put glpk.h in the proper place.
    3053 
    3054 ac_configure_args="$ac_configure_args --includedir=\\\${prefix}/include/coin-or/ThirdParty"
     3059# Figure out the path where libraries are installed.
     3060# Unless the user specifies --prefix, prefix is set to NONE until the
     3061# end of configuration, at which point it will be set to $ac_default_prefix.
     3062# Unless the user specifies --exec-prefix, exec-prefix is set to NONE until
     3063# the end of configuration, at which point it's set to '${prefix}'.
     3064# Sheesh.  So do the expansion, then back it out.
     3065  save_prefix=$prefix
     3066  save_exec_prefix=$exec_prefix
     3067  if test "x$prefix" = xNONE ; then
     3068    prefix=$ac_default_prefix
     3069  fi
     3070  if test "x$exec_prefix" = xNONE ; then
     3071    exec_prefix=$prefix
     3072  fi
     3073  expanded_libdir=$libdir
     3074  while expr "$expanded_libdir" : '.*$.*' >/dev/null 2>&1 ; do
     3075    eval expanded_libdir=$expanded_libdir
     3076  done
     3077  prefix=$save_prefix
     3078  exec_prefix=$save_exec_prefix
     3079
    30553080
    30563081#############################################################################
     
    31263151
    31273152
    3128 # Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want
    3129 # to invoke it from this macro first so that we can supply a parameter.
    3130 
    3131 
    3132 
    3133 # If enable-msvc, then test only for MS and Intel (on Windows) C compiler
    3134 # otherwise, test a long list of C compilers that comes into our mind
     3153  # Setting up libtool with LT_INIT will AC_REQUIRE AC_PROG_CC, but we want
     3154  # to invoke it from this macro first so that we can supply a parameter.
     3155
     3156
     3157  # If enable-msvc, then test for Intel (on Windows) and MS C compiler
     3158  # explicitly and add the compile wrapper before AC_PROG_CC. The compile
     3159  # wrapper works around issues related to finding MS link.exe. (Unix link.exe
     3160  # occurs first in PATH, which causes compile and link checks to fail.) For
     3161  # the same reason, set LD to use the compile wrapper. If CC remains unset
     3162  # (neither icl or cl was found, and CC was not set by the user), stop with
     3163  # an error.
    31353164
    31363165  if test $enable_msvc = yes ; then
    3137     comps="icl cl"
    3138   else
    3139     # TODO old buildtools was doing some $build specific logic here, do we
    3140     # still need this?
    3141     comps="gcc clang cc icc icl cl cc xlc xlc_r pgcc"
     3166    for ac_prog in icl cl
     3167do
     3168  # Extract the first word of "$ac_prog", so it can be a program name with args.
     3169set dummy $ac_prog; ac_word=$2
     3170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
     3171$as_echo_n "checking for $ac_word... " >&6; }
     3172if ${ac_cv_prog_CC+:} false; then :
     3173  $as_echo_n "(cached) " >&6
     3174else
     3175  if test -n "$CC"; then
     3176  ac_cv_prog_CC="$CC" # Let the user override the test.
     3177else
     3178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
     3179for as_dir in $PATH
     3180do
     3181  IFS=$as_save_IFS
     3182  test -z "$as_dir" && as_dir=.
     3183    for ac_exec_ext in '' $ac_executable_extensions; do
     3184  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
     3185    ac_cv_prog_CC="$ac_prog"
     3186    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
     3187    break 2
    31423188  fi
     3189done
     3190  done
     3191IFS=$as_save_IFS
     3192
     3193fi
     3194fi
     3195CC=$ac_cv_prog_CC
     3196if test -n "$CC"; then
     3197  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
     3198$as_echo "$CC" >&6; }
     3199else
     3200  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
     3201$as_echo "no" >&6; }
     3202fi
     3203
     3204
     3205  test -n "$CC" && break
     3206done
     3207
     3208    if test -n "$CC" ; then
     3209      CC="$am_aux_dir/compile $CC"
     3210      ac_cv_prog_CC="$CC"
     3211      LD="$CC"
     3212    else
     3213      as_fn_error $? "Neither MS nor Intel C compiler found in PATH and CC is unset." "$LINENO" 5
     3214    fi
     3215  fi
     3216
     3217  # Look for some C compiler and check that it works. If the user has set CC
     3218  # or we found icl/cl above, this shouldn't overwrite CC. Unlike the macros
     3219  # that establish C++ or Fortran compilers, PROG_CC also takes care of adding
     3220  # the compile wrapper if needed.
     3221
    31433222  ac_ext=c
    31443223ac_cpp='$CPP $CPPFLAGS'
     
    31473226ac_compiler_gnu=$ac_cv_c_compiler_gnu
    31483227if test -n "$ac_tool_prefix"; then
    3149   for ac_prog in $comps
     3228  for ac_prog in gcc clang cc icc icl cl cc xlc xlc_r pgcc
    31503229  do
    31513230    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
     
    31913270if test -z "$CC"; then
    31923271  ac_ct_CC=$CC
    3193   for ac_prog in $comps
     3272  for ac_prog in gcc clang cc icc icl cl cc xlc xlc_r pgcc
    31943273do
    31953274  # Extract the first word of "$ac_prog", so it can be a program name with args.
     
    39274006
    39284007
    3929 # Initialise libtool
     4008# Set up libtool.
    39304009
    39314010case `pwd` in
     
    76217700done
    76227701
    7623 
    7624 # (lh, 180302) Sadly, we can't use the obvious libtool macros
    7625 # (AC_{ENABLE,DISABLE}_{SHARED,STATIC}, nor parameters to LT_INIT,
    7626 # precisely because these macros record the default behaviour by defining
    7627 # a macro, _LT_ENABLE_{SHARED,STATIC}_DEFAULT. No shell code involved, hence
    7628 # any shell conditional has no effect. Either we trust libtool or we need
    7629 # something more inventive. The relevant libtool macros are in ltoptions.m4,
    7630 # _LT_ENABLE_SHARED and _LT_ENABLE_STATIC.
    7631 # That is, something like the following will not work:
    7632 # case $host_os in
    7633 #   cygwin* | mingw* | msys* ) AC_DISABLE_SHARED  ;;
    7634 #   *) AC_DISABLE_STATIC ;;
    7635 # esac
    76367702
    76377703# Create libtool.
     
    98049870    cygwin* | mingw* | pw32* | cegcc*)
    98059871      # When not using gcc, we currently assume that we are using
    9806       # Microsoft Visual C++.
     9872      # Microsoft Visual C++ or Intel C++/Fortran Compiler.
    98079873      # hardcode_libdir_flag_spec is actually meaningless, as there is
    98089874      # no search path for DLLs.
    98099875      case $cc_basename in
    9810       cl*)
    9811         # Native MSVC
     9876      cl* | icl*| ifort*)
     9877        # Native MSVC or ICC or IFORT
    98129878        hardcode_libdir_flag_spec=' '
    98139879        allow_undefined_flag=unsupported
     
    98509916        ;;
    98519917      *)
    9852         # Assume MSVC wrapper
     9918        # Assume MSVC and ICC and IFORT wrapper
    98539919        hardcode_libdir_flag_spec=' '
    98549920        allow_undefined_flag=unsupported
     
    1088110947    ;;
    1088210948
    10883   *,cl*)
    10884     # Native MSVC
     10949  *,cl* | *,icl* | *,ifort*)
     10950    # Native MSVC or ICC or IFORT
    1088510951    libname_spec='$name'
    1088610952    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
     
    1120211268  hardcode_into_libs=yes
    1120311269
    11204   # Add ABI-specific directories to the system library path.
    11205   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
    11206 
    1120711270  # Ideally, we could use ldconfig to report *all* directores which are
    1120811271  # searched for libraries, however this is still not possible.  Aside from not
     
    1121311276  if test -f /etc/ld.so.conf; then
    1121411277    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
    11215     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
     11278    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
    1121611279  fi
    1121711280
     
    1223312296
    1223412297
    12235 # Patch libtool to eliminate a trailing space after AR_FLAGS. This needs to be
    12236 # run after config.status has created libtool. Apparently necessary on
    12237 # Windows when lib.exe is the archive tool.
     12298# Patch libtool to circumvent some issues when using MSVC and MS lib.
     12299# This needs to be run after config.status has created libtool.
     12300# 1. Eliminate a trailing space after AR_FLAGS. Apparently necessary on
     12301#    Windows when AR=lib.exe.
     12302# 2. Patch libtool's func_extract_an_archive in case of $AR=lib. The current
     12303#    libtool implementation assumes that it can do $AR x to extract an archive.
     12304#    We replace this two-liner in func_extract_an_archive by replacing the first
     12305#    line by something clunky that works with lib and making sure that the following
     12306#    line is ignored (by finishing with ": \"). We completely disregard running the
     12307#    command through func_show_eval and do not stop if it fails.
     12308# 3. Relax check which libraries can be used when linking a DLL.
     12309#    libtool's func_mode_link() would reject linking a .lib file when building a DLL,
     12310#    even though this .lib file may just be the one that eventually loads a depending DLL,
     12311#    e.g., mkl_core_dll.lib. Setting deplibs_check_method=pass_all will still print a
     12312#    warning, but the .lib is still passed to the linker.
     12313# 4. Ensure always_export_symbols=no if win32-dll. Even when we pass win32-dll,
     12314#    libtool forces always_export_symbols=yes for --tag=CXX if using MS compiler.
     12315#    This leads to a nm call that collects ALL C-functions from a library
     12316#    and explicitly dll-exporting them, leading to warnings about duplicates
     12317#    regarding those that are properly marked for dll-export in the source.
     12318#
     12319# Patch libtool also to circumvent some issues when using MinGW (Msys+GCC).
     12320# 1. Relax check which libraries can be used when linking a DLL.
     12321#    libtool's func_mode_link() would reject linking MinGW system libraries,
     12322#    e.g., -lmingw32, when building a DLL, because it does not find this
     12323#    library in the installation path, and then falls back to build only
     12324#    static libraries. Setting deplibs_check_method=pass_all will avoid
     12325#    this faulty check.
    1223812326
    1223912327  case "$AR" in
    1224012328    *lib* | *LIB* )
    12241       ac_config_commands="$ac_config_commands libtoolpatch"
    12242 
     12329      ac_config_commands="$ac_config_commands libtoolclpatch"
     12330
     12331      ;;
     12332    * )
     12333      case $build in
     12334        *-mingw* )
     12335          ac_config_commands="$ac_config_commands libtoolmingwpatch"
     12336
     12337        ;;
     12338      esac
    1224312339      ;;
    1224412340  esac
    1224512341
    12246 # Set up LT_LDFLAGS. Add the library version string to LT_LDFLAGS, if one
    12247 # is supplied.
    12248 
    12249 
    12250   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the library version is set" >&5
    12251 $as_echo_n "checking if the library version is set... " >&6; }
    12252   if test x"$coin_libversion" != x ; then
    12253     LT_LDFLAGS="$LT_LDFLAGS -version-info $coin_libversion"
    12254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coin_libversion" >&5
    12255 $as_echo "$coin_libversion" >&6; }
    12256   else
    12257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    12258 $as_echo "no" >&6; }
    12259   fi
     12342  # Set up LT_LDFLAGS.
     12343
     12344
     12345  # Use the libtool library info, if defined, otherwise use the project version info,
     12346  # if a full major.minor.release number was available
     12347
    1226012348
    1226112349  # shared libraries should have no undefined symbols
     
    1226312351  LT_LDFLAGS="$LT_LDFLAGS -no-undefined"
    1226412352
     12353
     12354# Make it appear as if --includedir was part of the command line, so that
     12355# glpk's install will put glpk.h in the proper place. Suppress reentrancy &
     12356# static library generation. Pass CFLAGS via a cache variable to avoid
     12357# complaints about changing the environment.
     12358
     12359ac_configure_args="$ac_configure_args --includedir=\\\${prefix}/include/coin-or/ThirdParty"
     12360ac_configure_args="$ac_configure_args --enable-reentrant=no"
     12361ac_configure_args="$ac_configure_args --enable-static=no"
     12362
     12363ctpglpk_cv_cflags="$CFLAGS"
    1226512364
    1226612365# Invoke glpk's native configuration
     
    1330013399    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
    1330113400    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
    13302     "libtoolpatch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtoolpatch" ;;
     13401    "libtoolclpatch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtoolclpatch" ;;
     13402    "libtoolmingwpatch") CONFIG_COMMANDS="$CONFIG_COMMANDS libtoolmingwpatch" ;;
    1330313403    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
    1330413404    "coinglpk.pc") CONFIG_FILES="$CONFIG_FILES coinglpk.pc" ;;
     
    1453914639
    1454014640 ;;
    14541     "libtoolpatch":C) sed -e 's|AR_FLAGS |AR_FLAGS|g' libtool > libtool.tmp
     14641    "libtoolclpatch":C) sed -e 's|AR_FLAGS |AR_FLAGS|g' \
     14642             -e '/$AR x/s/.*/( cd $f_ex_an_ar_dir ; for f in `$AR -nologo -list "$f_ex_an_ar_oldlib" | tr "\\r" " "` ; do lib -nologo -extract:$f "$f_ex_an_ar_oldlib"; done ); : \\/g' \
     14643             -e '/^deplibs_check_method/s/.*/deplibs_check_method="pass_all"/g' \
     14644             -e 's|always_export_symbols=yes|always_export_symbols=no|g' \
     14645         libtool > libtool.tmp
    1454214646         mv libtool.tmp libtool
    1454314647         chmod 755 libtool ;;
     14648    "libtoolmingwpatch":C) sed -e '/^deplibs_check_method/s/.*/deplibs_check_method="pass_all"/g' libtool > libtool.tmp
     14649             mv libtool.tmp libtool
     14650             chmod 755 libtool ;;
    1454414651
    1454514652  esac
     
    1472614833
    1472714834
    14728   { $as_echo "$as_me:${as_lineno-$LINENO}: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&5
    14729 $as_echo "$as_me: In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting" >&6;}
     14835  #AC_MSG_NOTICE([In case of trouble, first consult the troubleshooting page at https://projects.coin-or.org/BuildTools/wiki/user-troubleshooting])
    1473014836  { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration of $PACKAGE_NAME successful" >&5
    1473114837$as_echo "$as_me: Configuration of $PACKAGE_NAME successful" >&6;}
    1473214838
    1473314839
    14734 
  • ThirdParty/Glpk/branches/autotools-update/configure.ac

    r3887 r4050  
    2828AC_COIN_INITIALIZE(Glpk)
    2929
    30 # Make it appear as if --includedir was part of the command line, so that
    31 # glpk's install will put glpk.h in the proper place.
    32 
    33 ac_configure_args="$ac_configure_args --includedir=\\\${prefix}/include/coin-or/ThirdParty"
    34 
    3530#############################################################################
    3631#                         Standard build tool stuff                         #
     
    4136AC_COIN_PROG_CC
    4237
    43 # Initialise libtool
     38# Set up libtool.
    4439
    4540AC_COIN_PROG_LIBTOOL
     41
     42# Make it appear as if --includedir was part of the command line, so that
     43# glpk's install will put glpk.h in the proper place. Suppress reentrancy &
     44# static library generation. Pass CFLAGS via a cache variable to avoid
     45# complaints about changing the environment.
     46
     47ac_configure_args="$ac_configure_args --includedir=\\\${prefix}/include/coin-or/ThirdParty"
     48ac_configure_args="$ac_configure_args --enable-reentrant=no"
     49ac_configure_args="$ac_configure_args --enable-static=no"
     50
     51ctpglpk_cv_cflags="$CFLAGS"
    4652
    4753# Invoke glpk's native configuration
  • ThirdParty/Glpk/branches/autotools-update/depcomp

    r3951 r4050  
    1 #!/usr/bin/sh
     1#! /bin/sh
    22# depcomp - compile a program generating dependencies as side-effects
    33
    4 scriptversion=2013-05-30.07; # UTC
    5 
    6 # Copyright (C) 1999-2015 Free Software Foundation, Inc.
     4scriptversion=2018-03-07.03; # UTC
     5
     6# Copyright (C) 1999-2018 Free Software Foundation, Inc.
    77
    88# This program is free software; you can redistribute it and/or modify
     
    1717
    1818# You should have received a copy of the GNU General Public License
    19 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     19# along with this program.  If not, see <https://www.gnu.org/licenses/>.
    2020
    2121# As a special exception to the GNU General Public License, if you
     
    250250  # since it is checked for above.
    251251  exit 1
     252  ;;
     253
     254sgi)
     255  if test "$libtool" = yes; then
     256    "$@" "-Wp,-MDupdate,$tmpdepfile"
     257  else
     258    "$@" -MDupdate "$tmpdepfile"
     259  fi
     260  stat=$?
     261  if test $stat -ne 0; then
     262    rm -f "$tmpdepfile"
     263    exit $stat
     264  fi
     265  rm -f "$depfile"
     266
     267  if test -f "$tmpdepfile"; then  # yes, the sourcefile depend on other files
     268    echo "$object : \\" > "$depfile"
     269    # Clip off the initial element (the dependent).  Don't try to be
     270    # clever and replace this with sed code, as IRIX sed won't handle
     271    # lines with more than a fixed number of characters (4096 in
     272    # IRIX 6.2 sed, 8192 in IRIX 6.5).  We also remove comment lines;
     273    # the IRIX cc adds comments like '#:fec' to the end of the
     274    # dependency line.
     275    tr ' ' "$nl" < "$tmpdepfile" \
     276      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' \
     277      | tr "$nl" ' ' >> "$depfile"
     278    echo >> "$depfile"
     279    # The second pass generates a dummy entry for each header file.
     280    tr ' ' "$nl" < "$tmpdepfile" \
     281      | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
     282      >> "$depfile"
     283  else
     284    make_dummy_depfile
     285  fi
     286  rm -f "$tmpdepfile"
    252287  ;;
    253288
     
    749784# mode: shell-script
    750785# sh-indentation: 2
    751 # eval: (add-hook 'write-file-hooks 'time-stamp)
     786# eval: (add-hook 'before-save-hook 'time-stamp)
    752787# time-stamp-start: "scriptversion="
    753788# time-stamp-format: "%:y-%02m-%02d.%02H"
    754 # time-stamp-time-zone: "UTC"
     789# time-stamp-time-zone: "UTC0"
    755790# time-stamp-end: "; # UTC"
    756791# End:
  • ThirdParty/Glpk/branches/autotools-update/get.Glpk

    r3853 r4050  
    22
    33set -e
    4 glpk_ver=4.48
     4glpk_ver=4.65
     5glpk_config_tar=glpk-${glpk_ver}_config.tar
    56
    67wgetcmd=wget
     
    5152echo "Applying patch file."
    5253
    53 patch -p0 < glpk.patch
     54if test -r "$glpk_config_tar" ; then
     55  echo "Installing modified configuration files."
     56  tar -x -f ${glpk_config_tar} --directory=glpk
     57fi
    5458
    5559echo "Touch every source file to force rebuild of whole package."
    5660
    57 touch glpk/src/*.c glpk/src/*/*.c
     61if ls glpk/src/*.c &>/dev/null ; then
     62  touch glpk/src/*.c
     63fi
     64if ls glpk/src/*/*.c &>/dev/null ; then
     65  touch glpk/src/*/*.c
     66fi
    5867
    5968echo " "
  • ThirdParty/Glpk/branches/autotools-update/install-sh

    r3951 r4050  
    1 #!/usr/bin/sh
     1#!/bin/sh
    22# install - install a program, script, or datafile
    33
    4 scriptversion=2013-12-25.23; # UTC
     4scriptversion=2018-03-11.20; # UTC
    55
    66# This originates from X11R5 (mit/util/scripts/install.sh), which was
     
    272272    dst=$dst_arg
    273273
    274     # If destination is a directory, append the input filename; won't work
    275     # if double slashes aren't ignored.
     274    # If destination is a directory, append the input filename.
    276275    if test -d "$dst"; then
    277276      if test "$is_target_a_directory" = never; then
     
    280279      fi
    281280      dstdir=$dst
    282       dst=$dstdir/`basename "$src"`
     281      dstbase=`basename "$src"`
     282      case $dst in
     283        */) dst=$dst$dstbase;;
     284        *)  dst=$dst/$dstbase;;
     285      esac
    283286      dstdir_status=0
    284287    else
     
    288291    fi
    289292  fi
     293
     294  case $dstdir in
     295    */) dstdirslash=$dstdir;;
     296    *)  dstdirslash=$dstdir/;;
     297  esac
    290298
    291299  obsolete_mkdir_used=false
     
    325333            ;;
    326334          *)
     335            # Note that $RANDOM variable is not portable (e.g. dash);  Use it
     336            # here however when possible just to lower collision chance.
    327337            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
    328             trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
    329 
     338
     339            trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
     340
     341            # Because "mkdir -p" follows existing symlinks and we likely work
     342            # directly in world-writeable /tmp, make sure that the '$tmpdir'
     343            # directory is successfully created first before we actually test
     344            # 'mkdir -p' feature.
    330345            if (umask $mkdir_umask &&
    331                 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
     346                $mkdirprog $mkdir_mode "$tmpdir" &&
     347                exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
    332348            then
    333349              if test -z "$dir_arg" || {
     
    336352                   # other-writable bit of parent directory when it shouldn't.
    337353                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
    338                    ls_ld_tmpdir=`ls -ld "$tmpdir"`
     354                   test_tmpdir="$tmpdir/a"
     355                   ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
    339356                   case $ls_ld_tmpdir in
    340357                     d????-?r-*) different_mode=700;;
     
    342359                     *) false;;
    343360                   esac &&
    344                    $mkdirprog -m$different_mode -p -- "$tmpdir" && {
    345                      ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
     361                   $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
     362                     ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
    346363                     test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
    347364                   }
     
    349366              then posix_mkdir=:
    350367              fi
    351               rmdir "$tmpdir/d" "$tmpdir"
     368              rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
    352369            else
    353370              # Remove any dirs left behind by ancient mkdir implementations.
    354               rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
     371              rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
    355372            fi
    356373            trap '' 0;;
     
    428445
    429446    # Make a couple of temp file names in the proper directory.
    430     dsttmp=$dstdir/_inst.$$_
    431     rmtmp=$dstdir/_rm.$$_
     447    dsttmp=${dstdirslash}_inst.$$_
     448    rmtmp=${dstdirslash}_rm.$$_
    432449
    433450    # Trap to clean up those temp files at exit.
     
    494511
    495512# Local variables:
    496 # eval: (add-hook 'write-file-hooks 'time-stamp)
     513# eval: (add-hook 'before-save-hook 'time-stamp)
    497514# time-stamp-start: "scriptversion="
    498515# time-stamp-format: "%:y-%02m-%02d.%02H"
    499 # time-stamp-time-zone: "UTC"
     516# time-stamp-time-zone: "UTC0"
    500517# time-stamp-end: "; # UTC"
    501518# End:
  • ThirdParty/Glpk/branches/autotools-update/ltmain.sh

    r3951 r4050  
    21252125func_fatal_configuration ()
    21262126{
    2127     func_fatal_error ${1+"$@"} \
     2127    func__fatal_error ${1+"$@"} \
    21282128      "See the $PACKAGE documentation for more information." \
    21292129      "Fatal configuration error."
     
    72737273      # --sysroot=*          for sysroot support
    72747274      # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
    7275       # -specs=*             GCC specs files
    72767275      # -stdlib=*            select c++ std lib with clang
    72777276      -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
    72787277      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
    7279       -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
    7280       -specs=*)
     7278      -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*)
    72817279        func_quote_for_eval "$arg"
    72827280        arg=$func_quote_for_eval_result
  • ThirdParty/Glpk/branches/autotools-update/missing

    r3951 r4050  
    1 #!/usr/bin/sh
     1#! /bin/sh
    22# Common wrapper for a few potentially missing GNU programs.
    33
    4 scriptversion=2013-10-28.13; # UTC
    5 
    6 # Copyright (C) 1996-2014 Free Software Foundation, Inc.
     4scriptversion=2018-03-07.03; # UTC
     5
     6# Copyright (C) 1996-2018 Free Software Foundation, Inc.
    77# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
    88
     
    1818
    1919# You should have received a copy of the GNU General Public License
    20 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
     20# along with this program.  If not, see <https://www.gnu.org/licenses/>.
    2121
    2222# As a special exception to the GNU General Public License, if you
     
    102102fi
    103103
    104 perl_URL=http://www.perl.org/
    105 flex_URL=http://flex.sourceforge.net/
    106 gnu_software_URL=http://www.gnu.org/software
     104perl_URL=https://www.perl.org/
     105flex_URL=https://github.com/westes/flex
     106gnu_software_URL=https://www.gnu.org/software
    107107
    108108program_details ()
     
    208208
    209209# Local variables:
    210 # eval: (add-hook 'write-file-hooks 'time-stamp)
     210# eval: (add-hook 'before-save-hook 'time-stamp)
    211211# time-stamp-start: "scriptversion="
    212212# time-stamp-format: "%:y-%02m-%02d.%02H"
    213 # time-stamp-time-zone: "UTC"
     213# time-stamp-time-zone: "UTC0"
    214214# time-stamp-end: "; # UTC"
    215215# End:
Note: See TracChangeset for help on using the changeset viewer.