Merge ~3v1n0/ubuntu/+source/mutter:ubuntu/bionic into ~ubuntu-desktop/ubuntu/+source/mutter:ubuntu/bionic

Proposed by Marco Trevisan (Treviño)
Status: Superseded
Proposed branch: ~3v1n0/ubuntu/+source/mutter:ubuntu/bionic
Merge into: ~ubuntu-desktop/ubuntu/+source/mutter:ubuntu/bionic
Diff against target: 14231 lines (+3177/-2746)
114 files modified
Makefile.in (+2/-1)
build-aux/compile (+5/-6)
build-aux/config.guess (+282/-278)
build-aux/config.sub (+107/-142)
build-aux/depcomp (+1/-1)
build-aux/install-sh (+16/-9)
build-aux/ltmain.sh (+22/-15)
build-aux/missing (+4/-4)
clutter/Makefile.in (+1/-0)
clutter/aclocal.m4 (+217/-285)
clutter/build/Makefile.in (+1/-0)
clutter/build/autotools/Makefile.in (+1/-0)
clutter/build/autotools/libtool.m4 (+24/-9)
clutter/build/compile (+5/-6)
clutter/build/config.guess (+282/-278)
clutter/build/config.sub (+107/-142)
clutter/build/depcomp (+1/-1)
clutter/build/install-sh (+16/-9)
clutter/build/ltmain.sh (+22/-15)
clutter/build/missing (+4/-4)
clutter/build/test-driver (+4/-4)
clutter/clutter/Makefile.in (+1/-0)
clutter/clutter/cally/cally-util.c (+2/-0)
clutter/clutter/clutter-actor.c (+83/-11)
clutter/clutter/clutter-effect-private.h (+1/-0)
clutter/clutter/clutter-effect.c (+8/-0)
clutter/clutter/clutter-offscreen-effect.c (+6/-3)
clutter/clutter/clutter-text.c (+2/-8)
clutter/clutter/evdev/clutter-virtual-input-device-evdev.c (+29/-6)
clutter/clutter/x11/clutter-keymap-x11.c (+177/-1)
clutter/clutter/x11/clutter-keymap-x11.h (+8/-0)
clutter/clutter/x11/clutter-virtual-input-device-x11.c (+19/-3)
clutter/configure (+33/-9)
clutter/examples/Makefile.in (+1/-0)
clutter/tests/Makefile.in (+1/-0)
clutter/tests/accessibility/Makefile.in (+1/-0)
clutter/tests/conform/Makefile.in (+1/-0)
clutter/tests/interactive/Makefile.in (+1/-0)
clutter/tests/micro-bench/Makefile.in (+1/-0)
clutter/tests/performance/Makefile.in (+1/-0)
cogl/Makefile.in (+1/-0)
cogl/aclocal.m4 (+217/-285)
cogl/build/autotools/libtool.m4 (+24/-9)
cogl/build/compile (+5/-6)
cogl/build/config.guess (+282/-278)
cogl/build/config.sub (+107/-142)
cogl/build/depcomp (+1/-1)
cogl/build/install-sh (+16/-9)
cogl/build/ltmain.sh (+22/-15)
cogl/build/missing (+4/-4)
cogl/cogl-gles2/Makefile.in (+1/-0)
cogl/cogl-pango/Makefile.in (+1/-0)
cogl/cogl-path/Makefile.in (+1/-0)
cogl/cogl/Makefile.in (+1/-0)
cogl/cogl/deprecated/cogl-auto-texture.c (+1/-0)
cogl/configure (+50/-15)
cogl/test-fixtures/Makefile.in (+1/-0)
cogl/tests/Makefile.in (+1/-0)
cogl/tests/conform/Makefile.in (+1/-0)
cogl/tests/data/Makefile.in (+1/-0)
cogl/tests/micro-perf/Makefile.in (+1/-0)
cogl/tests/unit/Makefile.in (+1/-0)
configure (+33/-9)
data/Makefile.in (+1/-0)
debian/changelog (+18/-0)
debian/patches/bgo768531_workaround-startup-notifications.patch (+2/-2)
debian/patches/series (+0/-10)
dev/null (+0/-44)
doc/Makefile.in (+1/-0)
doc/man/Makefile.in (+1/-0)
m4/libtool.m4 (+24/-9)
m4/pkg.m4 (+3/-71)
po/mutter.pot (+46/-275)
src/Makefile-tests.am (+1/-0)
src/Makefile.in (+3/-0)
src/backends/meta-idle-monitor.c (+7/-3)
src/backends/meta-monitor-manager-private.h (+1/-0)
src/backends/meta-monitor-manager.c (+17/-3)
src/backends/meta-monitor.c (+33/-8)
src/backends/meta-monitor.h (+2/-0)
src/backends/native/meta-gpu-kms.c (+81/-19)
src/backends/native/meta-gpu-kms.h (+9/-0)
src/backends/native/meta-monitor-manager-kms.c (+20/-0)
src/backends/native/meta-renderer-native.c (+77/-25)
src/backends/x11/meta-backend-x11.c (+3/-2)
src/backends/x11/nested/meta-renderer-x11-nested.c (+6/-2)
src/compositor/compositor.c (+4/-0)
src/compositor/meta-shaped-texture.c (+83/-42)
src/compositor/meta-surface-actor.c (+8/-0)
src/compositor/plugins/Makefile.in (+1/-0)
src/core/delete.c (+3/-0)
src/core/frame.c (+12/-0)
src/core/screen.c (+3/-1)
src/core/window-private.h (+15/-4)
src/core/window.c (+49/-13)
src/tests/stacking/closed-transient.metatest (+19/-0)
src/wayland/meta-wayland-actor-surface.c (+8/-4)
src/wayland/meta-wayland-actor-surface.h (+3/-0)
src/wayland/meta-wayland-buffer.c (+16/-21)
src/wayland/meta-wayland-buffer.h (+2/-0)
src/wayland/meta-wayland-dma-buf.c (+1/-0)
src/wayland/meta-wayland-gtk-shell.c (+19/-10)
src/wayland/meta-wayland-keyboard.c (+56/-82)
src/wayland/meta-wayland-keyboard.h (+1/-2)
src/wayland/meta-wayland-legacy-xdg-shell.c (+87/-15)
src/wayland/meta-wayland-outputs.c (+34/-21)
src/wayland/meta-wayland-shell-surface.c (+1/-1)
src/wayland/meta-wayland-surface.c (+14/-7)
src/wayland/meta-wayland-surface.h (+3/-0)
src/wayland/meta-wayland-xdg-shell.c (+81/-14)
src/wayland/meta-window-wayland.c (+9/-3)
src/wayland/meta-xwayland-grab-keyboard.c (+7/-7)
src/x11/events.c (+6/-0)
src/x11/window-x11.c (+3/-3)
Reviewer Review Type Date Requested Status
Ubuntu Desktop Pending
Review via email: mp+361810@code.launchpad.net

This proposal has been superseded by a proposal from 2019-01-15.

To post a comment you must log in.

Unmerged commits

8af8618... by Marco Trevisan (Treviño)

debian/changelog: update as per upstream merge

94f59ad... by Marco Trevisan (Treviño)

debian/patches: refresh and delete already applied patches

292d231... by Marco Trevisan (Treviño)

Update upstream source from tag 'upstream/3.28.3+git20181011'

Update to upstream version '3.28.3+git20181011'
with Debian dir 79aebc90596e1ace3318e7019627b3619df2fd05

d651ed8... by Marco Trevisan (Treviño)

New upstream version 3.28.3+git20181011

1b78ca8... by Daniel van Vugt

clutter-offscreen-effect: Disable if no texture

If texture allocation fails (e.g. on an old GPU with size limit 2048)
then `update_fbo` would return `FALSE` but leaves `priv->offscreen`
as non-NULL. So the next paint will try to use the offscreen with a
`NULL` texture and crashes. The solution is simply to ensure that
`priv->offscreen` is NULL if there is no `priv->texture`, so the default
(non-offscreen) paint path gets used instead.

Bug reported and fix provided by Gert van de Kraats.

https://launchpad.net/bugs/1795774

(cherry picked from commit f31cf0c3ef99b27c0b2c0161fc9fc1eb82778b2e)

6a6d477... by Daniel van Vugt

cogl-auto-texture: Avoid a double-free crash

If texture allocation fails (e.g. on an old GPU with size limit 2048)
then `cogl_texture_new_with_size` was trying to use the same CoglError
twice. The second time was after it had already been freed.

Bug reported and fix provided by Gert van de Kraats.

https://launchpad.net/bugs/1790525

(cherry picked from commit d21478b0f0163b0688abe065a7009b33453d0d00)

721de28... by Olivier Fourdan <email address hidden>

window: Really force update monitor on hot plugs

Commit 8d3e05305 ("window: Force update monitor on hot plugs") added the
flag `META_WINDOW_UPDATE_MONITOR_FLAGS_FORCE` passed to
`update_monitor()` from `update_for_monitors_changed()`.

However, `update_for_monitors_changed()` may choose to call another code
path to `move_between_rects()` and `meta_window_move_resize_internal()`
eventually.

As `meta_window_move_resize_internal()` does not use the "force" flag,
we may still end up in case where the window->monitor is left unchanged.

To avoid that problem, add a new `MetaMoveResizeFlags` that
`update_for_monitors_changed()` can use to force the monitor update from
`meta_window_move_resize_internal()`.

Fixes: 8d3e05305 ("window: Force update monitor on hot plugs")
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/189

(cherry picked from commit fa495286a1037d610051ab49f0aa1e8b20e38066)

(cherry picked from commit 8eabfaaa8b9469c5bdb1d8ca44b465384e8eaa9d)

00cd99c... by Jonas Ådahl

renderer/native: Also wrap flip closures for EGLStreams

When using the EGLStream backend, the MetaRendererNative passed a
GClosure to KMS when using EGLStreams, but KMS flip callback event
handler in meta-gpu-kms.c expected a closure wrapped in a closure
container, meaning it'd instead crash when using EGLStreams. Make the
flip handler get what it expects also when using EGLStreams by wrapping
the flip closure in the container before handing it over to EGL.

https://bugzilla.gnome.org/show_bug.cgi?id=790316
(cherry picked from commit 8ee14a7cb7e8f072d2731d59c7dc735f83a9bb0b)

8ddbe9d... by Jonas Ådahl

wayland/gtk-shell: Handle requests after toplevel was unmanaged

As with xdg-toplevel, a gtk-surface can be unmanaged by the compositor
without the client knowing about it, meaning the client may still send
updates and make requests. Handle this gracefully by ignoring them. The
client needs to reset all the state anyway, if it wants to remap the
same surface.

https://gitlab.gnome.org/GNOME/mutter/issues/240
(cherry picked from commit ca5b27baf517f00354ff8811ba204fd90f1ddb38)

a22cb88... by Jonas Ådahl

wayland/legacy-xdg-shell: Handle requests after toplevel was unmanaged

As with xdg-toplevel proper, a legacy xdg-toplevel can be unmanaged by
the compositor without the client knowing about it, meaning the client
may still send updates and make requests. Handle this gracefully by
ignoring them. The client needs to reassign the surface the legacy
xdg-toplevel role again, if it wants to remap the same surface, meaning
all state would be reset anyway.

Closes: https://gitlab.gnome.org/GNOME/mutter/issues/240
(cherry picked from commit 64df6276881c5f42c6d2054d556d8cd391f7ee70)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/Makefile.in b/Makefile.in
index 8569c31..371e0d8 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -176,7 +176,7 @@ am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \
176 $(top_srcdir)/build-aux/missing \176 $(top_srcdir)/build-aux/missing \
177 $(top_srcdir)/src/meta/meta-version.h.in ABOUT-NLS COPYING \177 $(top_srcdir)/src/meta/meta-version.h.in ABOUT-NLS COPYING \
178 NEWS build-aux/compile build-aux/config.guess \178 NEWS build-aux/compile build-aux/config.guess \
179 build-aux/config.rpath build-aux/config.sub build-aux/depcomp \179 build-aux/config.rpath build-aux/config.sub \
180 build-aux/install-sh build-aux/ltmain.sh build-aux/missing180 build-aux/install-sh build-aux/ltmain.sh build-aux/missing
181DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)181DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
182distdir = $(PACKAGE)-$(VERSION)182distdir = $(PACKAGE)-$(VERSION)
@@ -398,6 +398,7 @@ pdfdir = @pdfdir@
398prefix = @prefix@398prefix = @prefix@
399program_transform_name = @program_transform_name@399program_transform_name = @program_transform_name@
400psdir = @psdir@400psdir = @psdir@
401runstatedir = @runstatedir@
401sbindir = @sbindir@402sbindir = @sbindir@
402sharedstatedir = @sharedstatedir@403sharedstatedir = @sharedstatedir@
403srcdir = @srcdir@404srcdir = @srcdir@
diff --git a/build-aux/compile b/build-aux/compile
index de0005d..a85b723 100755
--- a/build-aux/compile
+++ b/build-aux/compile
@@ -1,9 +1,9 @@
1#!/bin/sh1#! /bin/sh
2# Wrapper for compilers which do not understand '-c -o'.2# Wrapper for compilers which do not understand '-c -o'.
33
4scriptversion=2016-01-11.22; # UTC4scriptversion=2012-10-14.11; # UTC
55
6# Copyright (C) 1999-2017 Free Software Foundation, Inc.6# Copyright (C) 1999-2014 Free Software Foundation, Inc.
7# Written by Tom Tromey <tromey@cygnus.com>.7# Written by Tom Tromey <tromey@cygnus.com>.
8#8#
9# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
@@ -255,8 +255,7 @@ EOF
255 echo "compile $scriptversion"255 echo "compile $scriptversion"
256 exit $?256 exit $?
257 ;;257 ;;
258 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \258 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
259 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
260 func_cl_wrapper "$@" # Doesn't return...259 func_cl_wrapper "$@" # Doesn't return...
261 ;;260 ;;
262esac261esac
@@ -343,6 +342,6 @@ exit $ret
343# eval: (add-hook 'write-file-hooks 'time-stamp)342# eval: (add-hook 'write-file-hooks 'time-stamp)
344# time-stamp-start: "scriptversion="343# time-stamp-start: "scriptversion="
345# time-stamp-format: "%:y-%02m-%02d.%02H"344# time-stamp-format: "%:y-%02m-%02d.%02H"
346# time-stamp-time-zone: "UTC0"345# time-stamp-time-zone: "UTC"
347# time-stamp-end: "; # UTC"346# time-stamp-end: "; # UTC"
348# End:347# End:
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 717b228..f50dcdb 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -1,8 +1,8 @@
1#!/bin/sh1#! /bin/sh
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright 1992-2017 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5timestamp='2017-08-08'5timestamp='2018-02-24'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@ timestamp='2017-08-08'
15# General Public License for more details.15# General Public License for more details.
16#16#
17# You should have received a copy of the GNU General Public License17# 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/>.
19#19#
20# As a special exception to the GNU General Public License, if you20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a21# distribute this file as part of a program that contains a
@@ -27,7 +27,7 @@ timestamp='2017-08-08'
27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
28#28#
29# You can get the latest version of this script from:29# 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.guess30# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31#31#
32# Please send patches to <config-patches@gnu.org>.32# Please send patches to <config-patches@gnu.org>.
3333
@@ -39,7 +39,7 @@ Usage: $0 [OPTION]
3939
40Output the configuration name of the system \`$me' is run on.40Output the configuration name of the system \`$me' is run on.
4141
42Operation modes:42Options:
43 -h, --help print this help, then exit43 -h, --help print this help, then exit
44 -t, --time-stamp print date of last modification, then exit44 -t, --time-stamp print date of last modification, then exit
45 -v, --version print version number, then exit45 -v, --version print version number, then exit
@@ -50,7 +50,7 @@ version="\
50GNU config.guess ($timestamp)50GNU config.guess ($timestamp)
5151
52Originally written by Per Bothner.52Originally written by Per Bothner.
53Copyright 1992-2017 Free Software Foundation, Inc.53Copyright 1992-2018 Free Software Foundation, Inc.
5454
55This is free software; see the source for copying conditions. There is NO55This is free software; see the source for copying conditions. There is NO
56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
107dummy=$tmp/dummy ;107dummy=$tmp/dummy ;
108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in109case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ;110 ,,) echo "int x;" > "$dummy.c" ;
111 for c in cc gcc c89 c99 ; do111 for c in cc gcc c89 c99 ; do
112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$c"; break ;113 CC_FOR_BUILD="$c"; break ;
114 fi ;114 fi ;
115 done ;115 done ;
@@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134134
135case "${UNAME_SYSTEM}" in135case "$UNAME_SYSTEM" in
136Linux|GNU|GNU/*)136Linux|GNU|GNU/*)
137 # If the system lacks a compiler, then just pick glibc.137 # If the system lacks a compiler, then just pick glibc.
138 # We could probably try harder.138 # We could probably try harder.
139 LIBC=gnu139 LIBC=gnu
140140
141 eval $set_cc_for_build141 eval "$set_cc_for_build"
142 cat <<-EOF > $dummy.c142 cat <<-EOF > "$dummy.c"
143 #include <features.h>143 #include <features.h>
144 #if defined(__UCLIBC__)144 #if defined(__UCLIBC__)
145 LIBC=uclibc145 LIBC=uclibc
@@ -149,13 +149,20 @@ Linux|GNU|GNU/*)
149 LIBC=gnu149 LIBC=gnu
150 #endif150 #endif
151 EOF151 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
153 ;;160 ;;
154esac161esac
155162
156# Note: order is significant - the case branches are not exclusive.163# Note: order is significant - the case branches are not exclusive.
157164
158case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in165case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
159 *:NetBSD:*:*)166 *:NetBSD:*:*)
160 # NetBSD (nbsd) targets should (where applicable) match one or167 # NetBSD (nbsd) targets should (where applicable) match one or
161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,168 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
@@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
169 # portion of the name. We always set it to "unknown".176 # portion of the name. We always set it to "unknown".
170 sysctl="sysctl -n hw.machine_arch"177 sysctl="sysctl -n hw.machine_arch"
171 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \178 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
172 /sbin/$sysctl 2>/dev/null || \179 "/sbin/$sysctl" 2>/dev/null || \
173 /usr/sbin/$sysctl 2>/dev/null || \180 "/usr/sbin/$sysctl" 2>/dev/null || \
174 echo unknown)`181 echo unknown)`
175 case "${UNAME_MACHINE_ARCH}" in182 case "$UNAME_MACHINE_ARCH" in
176 armeb) machine=armeb-unknown ;;183 armeb) machine=armeb-unknown ;;
177 arm*) machine=arm-unknown ;;184 arm*) machine=arm-unknown ;;
178 sh3el) machine=shl-unknown ;;185 sh3el) machine=shl-unknown ;;
179 sh3eb) machine=sh-unknown ;;186 sh3eb) machine=sh-unknown ;;
180 sh5el) machine=sh5le-unknown ;;187 sh5el) machine=sh5le-unknown ;;
181 earmv*)188 earmv*)
182 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`189 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'`190 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
184 machine=${arch}${endian}-unknown191 machine="${arch}${endian}"-unknown
185 ;;192 ;;
186 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;193 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
187 esac194 esac
188 # The Operating System including object format, if it has switched195 # The Operating System including object format, if it has switched
189 # to ELF recently (or will in the future) and ABI.196 # to ELF recently (or will in the future) and ABI.
190 case "${UNAME_MACHINE_ARCH}" in197 case "$UNAME_MACHINE_ARCH" in
191 earm*)198 earm*)
192 os=netbsdelf199 os=netbsdelf
193 ;;200 ;;
194 arm*|i386|m68k|ns32k|sh3*|sparc|vax)201 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
195 eval $set_cc_for_build202 eval "$set_cc_for_build"
196 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
197 | grep -q __ELF__204 | grep -q __ELF__
198 then205 then
@@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
208 ;;215 ;;
209 esac216 esac
210 # Determine ABI tags.217 # Determine ABI tags.
211 case "${UNAME_MACHINE_ARCH}" in218 case "$UNAME_MACHINE_ARCH" in
212 earm*)219 earm*)
213 expr='s/^earmv[0-9]/-eabi/;s/eb$//'220 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"`
215 ;;222 ;;
216 esac223 esac
217 # The OS release224 # The OS release
@@ -219,49 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
219 # thus, need a distinct triplet. However, they do not need226 # thus, need a distinct triplet. However, they do not need
220 # kernel version information, so it can be replaced with a227 # kernel version information, so it can be replaced with a
221 # suitable tag, in the style of linux-gnu.228 # suitable tag, in the style of linux-gnu.
222 case "${UNAME_VERSION}" in229 case "$UNAME_VERSION" in
223 Debian*)230 Debian*)
224 release='-gnu'231 release='-gnu'
225 ;;232 ;;
226 *)233 *)
227 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`234 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
228 ;;235 ;;
229 esac236 esac
230 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:237 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
231 # contains redundant information, the shorter form:238 # contains redundant information, the shorter form:
232 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
233 echo "${machine}-${os}${release}${abi}"240 echo "$machine-${os}${release}${abi}"
234 exit ;;241 exit ;;
235 *:Bitrig:*:*)242 *:Bitrig:*:*)
236 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`243 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"
238 exit ;;245 exit ;;
239 *:OpenBSD:*:*)246 *:OpenBSD:*:*)
240 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`247 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"
242 exit ;;249 exit ;;
243 *:LibertyBSD:*:*)250 *:LibertyBSD:*:*)
244 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`251 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"
246 exit ;;256 exit ;;
247 *:ekkoBSD:*:*)257 *:ekkoBSD:*:*)
248 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
249 exit ;;259 exit ;;
250 *:SolidBSD:*:*)260 *:SolidBSD:*:*)
251 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
252 exit ;;262 exit ;;
253 macppc:MirBSD:*:*)263 macppc:MirBSD:*:*)
254 echo powerpc-unknown-mirbsd${UNAME_RELEASE}264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
255 exit ;;265 exit ;;
256 *:MirBSD:*:*)266 *:MirBSD:*:*)
257 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
258 exit ;;268 exit ;;
259 *:Sortix:*:*)269 *:Sortix:*:*)
260 echo ${UNAME_MACHINE}-unknown-sortix270 echo "$UNAME_MACHINE"-unknown-sortix
261 exit ;;271 exit ;;
262 *:Redox:*:*)272 *:Redox:*:*)
263 echo ${UNAME_MACHINE}-unknown-redox273 echo "$UNAME_MACHINE"-unknown-redox
264 exit ;;274 exit ;;
275 mips:OSF1:*.*)
276 echo mips-dec-osf1
277 exit ;;
265 alpha:OSF1:*:*)278 alpha:OSF1:*:*)
266 case $UNAME_RELEASE in279 case $UNAME_RELEASE in
267 *4.0)280 *4.0)
@@ -313,28 +326,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
313 # A Tn.n version is a released field test version.326 # A Tn.n version is a released field test version.
314 # A Xn.n version is an unreleased experimental baselevel.327 # A Xn.n version is an unreleased experimental baselevel.
315 # 1.2 uses "1.2" for uname -r.328 # 1.2 uses "1.2" for uname -r.
316 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`"
317 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
318 exitcode=$?331 exitcode=$?
319 trap '' 0332 trap '' 0
320 exit $exitcode ;;333 exit $exitcode ;;
321 Alpha\ *:Windows_NT*:*)
322 # How do we know it's Interix rather than the generic POSIX subsystem?
323 # Should we change UNAME_MACHINE based on the output of uname instead
324 # of the specific Alpha model?
325 echo alpha-pc-interix
326 exit ;;
327 21064:Windows_NT:50:3)
328 echo alpha-dec-winnt3.5
329 exit ;;
330 Amiga*:UNIX_System_V:4.0:*)334 Amiga*:UNIX_System_V:4.0:*)
331 echo m68k-unknown-sysv4335 echo m68k-unknown-sysv4
332 exit ;;336 exit ;;
333 *:[Aa]miga[Oo][Ss]:*:*)337 *:[Aa]miga[Oo][Ss]:*:*)
334 echo ${UNAME_MACHINE}-unknown-amigaos338 echo "$UNAME_MACHINE"-unknown-amigaos
335 exit ;;339 exit ;;
336 *:[Mm]orph[Oo][Ss]:*:*)340 *:[Mm]orph[Oo][Ss]:*:*)
337 echo ${UNAME_MACHINE}-unknown-morphos341 echo "$UNAME_MACHINE"-unknown-morphos
338 exit ;;342 exit ;;
339 *:OS/390:*:*)343 *:OS/390:*:*)
340 echo i370-ibm-openedition344 echo i370-ibm-openedition
@@ -346,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
346 echo powerpc-ibm-os400350 echo powerpc-ibm-os400
347 exit ;;351 exit ;;
348 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)352 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
349 echo arm-acorn-riscix${UNAME_RELEASE}353 echo arm-acorn-riscix"$UNAME_RELEASE"
350 exit ;;354 exit ;;
351 arm*:riscos:*:*|arm*:RISCOS:*:*)355 arm*:riscos:*:*|arm*:RISCOS:*:*)
352 echo arm-unknown-riscos356 echo arm-unknown-riscos
@@ -373,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
373 sparc) echo sparc-icl-nx7; exit ;;377 sparc) echo sparc-icl-nx7; exit ;;
374 esac ;;378 esac ;;
375 s390x:SunOS:*:*)379 s390x:SunOS:*:*)
376 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
377 exit ;;381 exit ;;
378 sun4H:SunOS:5.*:*)382 sun4H:SunOS:5.*:*)
379 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380 exit ;;384 exit ;;
381 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)385 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
382 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
383 exit ;;387 exit ;;
384 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)388 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
385 echo i386-pc-auroraux${UNAME_RELEASE}389 echo i386-pc-auroraux"$UNAME_RELEASE"
386 exit ;;390 exit ;;
387 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
388 eval $set_cc_for_build392 eval "$set_cc_for_build"
389 SUN_ARCH=i386393 SUN_ARCH=i386
390 # If there is a compiler, see if it is configured for 64-bit objects.394 # If there is a compiler, see if it is configured for 64-bit objects.
391 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
@@ -398,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
398 SUN_ARCH=x86_64402 SUN_ARCH=x86_64
399 fi403 fi
400 fi404 fi
401 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
402 exit ;;406 exit ;;
403 sun4*:SunOS:6*:*)407 sun4*:SunOS:6*:*)
404 # According to config.sub, this is the proper way to canonicalize408 # According to config.sub, this is the proper way to canonicalize
405 # SunOS6. Hard to guess exactly what SunOS6 will be like, but409 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
406 # it's likely to be more like Solaris than SunOS4.410 # it's likely to be more like Solaris than SunOS4.
407 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
408 exit ;;412 exit ;;
409 sun4*:SunOS:*:*)413 sun4*:SunOS:*:*)
410 case "`/usr/bin/arch -k`" in414 case "`/usr/bin/arch -k`" in
@@ -413,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
413 ;;417 ;;
414 esac418 esac
415 # Japanese Language versions have a version number like `4.1.3-JL'.419 # Japanese Language versions have a version number like `4.1.3-JL'.
416 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
417 exit ;;421 exit ;;
418 sun3*:SunOS:*:*)422 sun3*:SunOS:*:*)
419 echo m68k-sun-sunos${UNAME_RELEASE}423 echo m68k-sun-sunos"$UNAME_RELEASE"
420 exit ;;424 exit ;;
421 sun*:*:4.2BSD:*)425 sun*:*:4.2BSD:*)
422 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`426 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
423 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3427 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
424 case "`/bin/arch`" in428 case "`/bin/arch`" in
425 sun3)429 sun3)
426 echo m68k-sun-sunos${UNAME_RELEASE}430 echo m68k-sun-sunos"$UNAME_RELEASE"
427 ;;431 ;;
428 sun4)432 sun4)
429 echo sparc-sun-sunos${UNAME_RELEASE}433 echo sparc-sun-sunos"$UNAME_RELEASE"
430 ;;434 ;;
431 esac435 esac
432 exit ;;436 exit ;;
433 aushp:SunOS:*:*)437 aushp:SunOS:*:*)
434 echo sparc-auspex-sunos${UNAME_RELEASE}438 echo sparc-auspex-sunos"$UNAME_RELEASE"
435 exit ;;439 exit ;;
436 # The situation for MiNT is a little confusing. The machine name440 # The situation for MiNT is a little confusing. The machine name
437 # can be virtually everything (everything which is not441 # can be virtually everything (everything which is not
@@ -442,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
442 # MiNT. But MiNT is downward compatible to TOS, so this should446 # MiNT. But MiNT is downward compatible to TOS, so this should
443 # be no problem.447 # be no problem.
444 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)448 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
445 echo m68k-atari-mint${UNAME_RELEASE}449 echo m68k-atari-mint"$UNAME_RELEASE"
446 exit ;;450 exit ;;
447 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)451 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint${UNAME_RELEASE}452 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;453 exit ;;
450 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)454 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
451 echo m68k-atari-mint${UNAME_RELEASE}455 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;456 exit ;;
453 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)457 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
454 echo m68k-milan-mint${UNAME_RELEASE}458 echo m68k-milan-mint"$UNAME_RELEASE"
455 exit ;;459 exit ;;
456 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)460 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
457 echo m68k-hades-mint${UNAME_RELEASE}461 echo m68k-hades-mint"$UNAME_RELEASE"
458 exit ;;462 exit ;;
459 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)463 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
460 echo m68k-unknown-mint${UNAME_RELEASE}464 echo m68k-unknown-mint"$UNAME_RELEASE"
461 exit ;;465 exit ;;
462 m68k:machten:*:*)466 m68k:machten:*:*)
463 echo m68k-apple-machten${UNAME_RELEASE}467 echo m68k-apple-machten"$UNAME_RELEASE"
464 exit ;;468 exit ;;
465 powerpc:machten:*:*)469 powerpc:machten:*:*)
466 echo powerpc-apple-machten${UNAME_RELEASE}470 echo powerpc-apple-machten"$UNAME_RELEASE"
467 exit ;;471 exit ;;
468 RISC*:Mach:*:*)472 RISC*:Mach:*:*)
469 echo mips-dec-mach_bsd4.3473 echo mips-dec-mach_bsd4.3
470 exit ;;474 exit ;;
471 RISC*:ULTRIX:*:*)475 RISC*:ULTRIX:*:*)
472 echo mips-dec-ultrix${UNAME_RELEASE}476 echo mips-dec-ultrix"$UNAME_RELEASE"
473 exit ;;477 exit ;;
474 VAX*:ULTRIX*:*:*)478 VAX*:ULTRIX*:*:*)
475 echo vax-dec-ultrix${UNAME_RELEASE}479 echo vax-dec-ultrix"$UNAME_RELEASE"
476 exit ;;480 exit ;;
477 2020:CLIX:*:* | 2430:CLIX:*:*)481 2020:CLIX:*:* | 2430:CLIX:*:*)
478 echo clipper-intergraph-clix${UNAME_RELEASE}482 echo clipper-intergraph-clix"$UNAME_RELEASE"
479 exit ;;483 exit ;;
480 mips:*:*:UMIPS | mips:*:*:RISCos)484 mips:*:*:UMIPS | mips:*:*:RISCos)
481 eval $set_cc_for_build485 eval "$set_cc_for_build"
482 sed 's/^ //' << EOF >$dummy.c486 sed 's/^ //' << EOF > "$dummy.c"
483#ifdef __cplusplus487#ifdef __cplusplus
484#include <stdio.h> /* for printf() prototype */488#include <stdio.h> /* for printf() prototype */
485 int main (int argc, char *argv[]) {489 int main (int argc, char *argv[]) {
@@ -488,23 +492,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
488#endif492#endif
489 #if defined (host_mips) && defined (MIPSEB)493 #if defined (host_mips) && defined (MIPSEB)
490 #if defined (SYSTYPE_SYSV)494 #if defined (SYSTYPE_SYSV)
491 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);495 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
492 #endif496 #endif
493 #if defined (SYSTYPE_SVR4)497 #if defined (SYSTYPE_SVR4)
494 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);498 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
495 #endif499 #endif
496 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)500 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
497 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);501 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
498 #endif502 #endif
499 #endif503 #endif
500 exit (-1);504 exit (-1);
501 }505 }
502EOF506EOF
503 $CC_FOR_BUILD -o $dummy $dummy.c &&507 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
504 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&508 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
505 SYSTEM_NAME=`$dummy $dummyarg` &&509 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
506 { echo "$SYSTEM_NAME"; exit; }510 { echo "$SYSTEM_NAME"; exit; }
507 echo mips-mips-riscos${UNAME_RELEASE}511 echo mips-mips-riscos"$UNAME_RELEASE"
508 exit ;;512 exit ;;
509 Motorola:PowerMAX_OS:*:*)513 Motorola:PowerMAX_OS:*:*)
510 echo powerpc-motorola-powermax514 echo powerpc-motorola-powermax
@@ -530,17 +534,17 @@ EOF
530 AViiON:dgux:*:*)534 AViiON:dgux:*:*)
531 # DG/UX returns AViiON for all architectures535 # DG/UX returns AViiON for all architectures
532 UNAME_PROCESSOR=`/usr/bin/uname -p`536 UNAME_PROCESSOR=`/usr/bin/uname -p`
533 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]537 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
534 then538 then
535 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \539 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
536 [ ${TARGET_BINARY_INTERFACE}x = x ]540 [ "$TARGET_BINARY_INTERFACE"x = x ]
537 then541 then
538 echo m88k-dg-dgux${UNAME_RELEASE}542 echo m88k-dg-dgux"$UNAME_RELEASE"
539 else543 else
540 echo m88k-dg-dguxbcs${UNAME_RELEASE}544 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
541 fi545 fi
542 else546 else
543 echo i586-dg-dgux${UNAME_RELEASE}547 echo i586-dg-dgux"$UNAME_RELEASE"
544 fi548 fi
545 exit ;;549 exit ;;
546 M88*:DolphinOS:*:*) # DolphinOS (SVR3)550 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
@@ -557,7 +561,7 @@ EOF
557 echo m68k-tektronix-bsd561 echo m68k-tektronix-bsd
558 exit ;;562 exit ;;
559 *:IRIX*:*:*)563 *:IRIX*:*:*)
560 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
561 exit ;;565 exit ;;
562 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.566 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
563 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id567 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
@@ -569,14 +573,14 @@ EOF
569 if [ -x /usr/bin/oslevel ] ; then573 if [ -x /usr/bin/oslevel ] ; then
570 IBM_REV=`/usr/bin/oslevel`574 IBM_REV=`/usr/bin/oslevel`
571 else575 else
572 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}576 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
573 fi577 fi
574 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
575 exit ;;579 exit ;;
576 *:AIX:2:3)580 *:AIX:2:3)
577 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
578 eval $set_cc_for_build582 eval "$set_cc_for_build"
579 sed 's/^ //' << EOF >$dummy.c583 sed 's/^ //' << EOF > "$dummy.c"
580 #include <sys/systemcfg.h>584 #include <sys/systemcfg.h>
581585
582 main()586 main()
@@ -587,7 +591,7 @@ EOF
587 exit(0);591 exit(0);
588 }592 }
589EOF593EOF
590 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`594 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
591 then595 then
592 echo "$SYSTEM_NAME"596 echo "$SYSTEM_NAME"
593 else597 else
@@ -601,7 +605,7 @@ EOF
601 exit ;;605 exit ;;
602 *:AIX:*:[4567])606 *:AIX:*:[4567])
603 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`607 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
604 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then608 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
605 IBM_ARCH=rs6000609 IBM_ARCH=rs6000
606 else610 else
607 IBM_ARCH=powerpc611 IBM_ARCH=powerpc
@@ -610,18 +614,18 @@ EOF
610 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |614 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
611 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`615 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
612 else616 else
613 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}617 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
614 fi618 fi
615 echo ${IBM_ARCH}-ibm-aix${IBM_REV}619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
616 exit ;;620 exit ;;
617 *:AIX:*:*)621 *:AIX:*:*)
618 echo rs6000-ibm-aix622 echo rs6000-ibm-aix
619 exit ;;623 exit ;;
620 ibmrt:4.4BSD:*|romp-ibm:BSD:*)624 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
621 echo romp-ibm-bsd4.4625 echo romp-ibm-bsd4.4
622 exit ;;626 exit ;;
623 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and627 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
624 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to628 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
625 exit ;; # report: romp-ibm BSD 4.3629 exit ;; # report: romp-ibm BSD 4.3
626 *:BOSX:*:*)630 *:BOSX:*:*)
627 echo rs6000-bull-bosx631 echo rs6000-bull-bosx
@@ -636,28 +640,28 @@ EOF
636 echo m68k-hp-bsd4.4640 echo m68k-hp-bsd4.4
637 exit ;;641 exit ;;
638 9000/[34678]??:HP-UX:*:*)642 9000/[34678]??:HP-UX:*:*)
639 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`643 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
640 case "${UNAME_MACHINE}" in644 case "$UNAME_MACHINE" in
641 9000/31? ) HP_ARCH=m68000 ;;645 9000/31?) HP_ARCH=m68000 ;;
642 9000/[34]?? ) HP_ARCH=m68k ;;646 9000/[34]??) HP_ARCH=m68k ;;
643 9000/[678][0-9][0-9])647 9000/[678][0-9][0-9])
644 if [ -x /usr/bin/getconf ]; then648 if [ -x /usr/bin/getconf ]; then
645 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`649 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
646 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`650 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
647 case "${sc_cpu_version}" in651 case "$sc_cpu_version" in
648 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0652 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
649 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1653 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
650 532) # CPU_PA_RISC2_0654 532) # CPU_PA_RISC2_0
651 case "${sc_kernel_bits}" in655 case "$sc_kernel_bits" in
652 32) HP_ARCH=hppa2.0n ;;656 32) HP_ARCH=hppa2.0n ;;
653 64) HP_ARCH=hppa2.0w ;;657 64) HP_ARCH=hppa2.0w ;;
654 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20658 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
655 esac ;;659 esac ;;
656 esac660 esac
657 fi661 fi
658 if [ "${HP_ARCH}" = "" ]; then662 if [ "$HP_ARCH" = "" ]; then
659 eval $set_cc_for_build663 eval "$set_cc_for_build"
660 sed 's/^ //' << EOF >$dummy.c664 sed 's/^ //' << EOF > "$dummy.c"
661665
662 #define _HPUX_SOURCE666 #define _HPUX_SOURCE
663 #include <stdlib.h>667 #include <stdlib.h>
@@ -690,13 +694,13 @@ EOF
690 exit (0);694 exit (0);
691 }695 }
692EOF696EOF
693 (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"`
694 test -z "$HP_ARCH" && HP_ARCH=hppa698 test -z "$HP_ARCH" && HP_ARCH=hppa
695 fi ;;699 fi ;;
696 esac700 esac
697 if [ ${HP_ARCH} = hppa2.0w ]701 if [ "$HP_ARCH" = hppa2.0w ]
698 then702 then
699 eval $set_cc_for_build703 eval "$set_cc_for_build"
700704
701 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
702 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -715,15 +719,15 @@ EOF
715 HP_ARCH=hppa64719 HP_ARCH=hppa64
716 fi720 fi
717 fi721 fi
718 echo ${HP_ARCH}-hp-hpux${HPUX_REV}722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
719 exit ;;723 exit ;;
720 ia64:HP-UX:*:*)724 ia64:HP-UX:*:*)
721 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`725 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
722 echo ia64-hp-hpux${HPUX_REV}726 echo ia64-hp-hpux"$HPUX_REV"
723 exit ;;727 exit ;;
724 3050*:HI-UX:*:*)728 3050*:HI-UX:*:*)
725 eval $set_cc_for_build729 eval "$set_cc_for_build"
726 sed 's/^ //' << EOF >$dummy.c730 sed 's/^ //' << EOF > "$dummy.c"
727 #include <unistd.h>731 #include <unistd.h>
728 int732 int
729 main ()733 main ()
@@ -748,11 +752,11 @@ EOF
748 exit (0);752 exit (0);
749 }753 }
750EOF754EOF
751 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&755 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
752 { echo "$SYSTEM_NAME"; exit; }756 { echo "$SYSTEM_NAME"; exit; }
753 echo unknown-hitachi-hiuxwe2757 echo unknown-hitachi-hiuxwe2
754 exit ;;758 exit ;;
755 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )759 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
756 echo hppa1.1-hp-bsd760 echo hppa1.1-hp-bsd
757 exit ;;761 exit ;;
758 9000/8??:4.3bsd:*:*)762 9000/8??:4.3bsd:*:*)
@@ -761,7 +765,7 @@ EOF
761 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)765 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
762 echo hppa1.0-hp-mpeix766 echo hppa1.0-hp-mpeix
763 exit ;;767 exit ;;
764 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )768 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
765 echo hppa1.1-hp-osf769 echo hppa1.1-hp-osf
766 exit ;;770 exit ;;
767 hp8??:OSF1:*:*)771 hp8??:OSF1:*:*)
@@ -769,9 +773,9 @@ EOF
769 exit ;;773 exit ;;
770 i*86:OSF1:*:*)774 i*86:OSF1:*:*)
771 if [ -x /usr/sbin/sysversion ] ; then775 if [ -x /usr/sbin/sysversion ] ; then
772 echo ${UNAME_MACHINE}-unknown-osf1mk776 echo "$UNAME_MACHINE"-unknown-osf1mk
773 else777 else
774 echo ${UNAME_MACHINE}-unknown-osf1778 echo "$UNAME_MACHINE"-unknown-osf1
775 fi779 fi
776 exit ;;780 exit ;;
777 parisc*:Lites*:*:*)781 parisc*:Lites*:*:*)
@@ -796,128 +800,109 @@ EOF
796 echo c4-convex-bsd800 echo c4-convex-bsd
797 exit ;;801 exit ;;
798 CRAY*Y-MP:*:*:*)802 CRAY*Y-MP:*:*:*)
799 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
800 exit ;;804 exit ;;
801 CRAY*[A-Z]90:*:*:*)805 CRAY*[A-Z]90:*:*:*)
802 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \806 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
803 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \807 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
804 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \808 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
805 -e 's/\.[^.]*$/.X/'809 -e 's/\.[^.]*$/.X/'
806 exit ;;810 exit ;;
807 CRAY*TS:*:*:*)811 CRAY*TS:*:*:*)
808 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
809 exit ;;813 exit ;;
810 CRAY*T3E:*:*:*)814 CRAY*T3E:*:*:*)
811 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;816 exit ;;
813 CRAY*SV1:*:*:*)817 CRAY*SV1:*:*:*)
814 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;819 exit ;;
816 *:UNICOS/mp:*:*)820 *:UNICOS/mp:*:*)
817 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;822 exit ;;
819 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)823 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
820 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`824 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
821 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`825 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
822 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`826 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
823 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
824 exit ;;828 exit ;;
825 5000:UNIX_System_V:4.*:*)829 5000:UNIX_System_V:4.*:*)
826 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`830 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
827 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`831 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
828 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
829 exit ;;833 exit ;;
830 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)834 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
831 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
832 exit ;;836 exit ;;
833 sparc*:BSD/OS:*:*)837 sparc*:BSD/OS:*:*)
834 echo sparc-unknown-bsdi${UNAME_RELEASE}838 echo sparc-unknown-bsdi"$UNAME_RELEASE"
835 exit ;;839 exit ;;
836 *:BSD/OS:*:*)840 *:BSD/OS:*:*)
837 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;842 exit ;;
839 *:FreeBSD:*:*)843 *:FreeBSD:*:*)
840 UNAME_PROCESSOR=`/usr/bin/uname -p`844 UNAME_PROCESSOR=`/usr/bin/uname -p`
841 case ${UNAME_PROCESSOR} in845 case "$UNAME_PROCESSOR" in
842 amd64)846 amd64)
843 UNAME_PROCESSOR=x86_64 ;;847 UNAME_PROCESSOR=x86_64 ;;
844 i386)848 i386)
845 UNAME_PROCESSOR=i586 ;;849 UNAME_PROCESSOR=i586 ;;
846 esac850 esac
847 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
848 exit ;;852 exit ;;
849 i*:CYGWIN*:*)853 i*:CYGWIN*:*)
850 echo ${UNAME_MACHINE}-pc-cygwin854 echo "$UNAME_MACHINE"-pc-cygwin
851 exit ;;855 exit ;;
852 *:MINGW64*:*)856 *:MINGW64*:*)
853 echo ${UNAME_MACHINE}-pc-mingw64857 echo "$UNAME_MACHINE"-pc-mingw64
854 exit ;;858 exit ;;
855 *:MINGW*:*)859 *:MINGW*:*)
856 echo ${UNAME_MACHINE}-pc-mingw32860 echo "$UNAME_MACHINE"-pc-mingw32
857 exit ;;861 exit ;;
858 *:MSYS*:*)862 *:MSYS*:*)
859 echo ${UNAME_MACHINE}-pc-msys863 echo "$UNAME_MACHINE"-pc-msys
860 exit ;;
861 i*:windows32*:*)
862 # uname -m includes "-pc" on this system.
863 echo ${UNAME_MACHINE}-mingw32
864 exit ;;864 exit ;;
865 i*:PW*:*)865 i*:PW*:*)
866 echo ${UNAME_MACHINE}-pc-pw32866 echo "$UNAME_MACHINE"-pc-pw32
867 exit ;;867 exit ;;
868 *:Interix*:*)868 *:Interix*:*)
869 case ${UNAME_MACHINE} in869 case "$UNAME_MACHINE" in
870 x86)870 x86)
871 echo i586-pc-interix${UNAME_RELEASE}871 echo i586-pc-interix"$UNAME_RELEASE"
872 exit ;;872 exit ;;
873 authenticamd | genuineintel | EM64T)873 authenticamd | genuineintel | EM64T)
874 echo x86_64-unknown-interix${UNAME_RELEASE}874 echo x86_64-unknown-interix"$UNAME_RELEASE"
875 exit ;;875 exit ;;
876 IA64)876 IA64)
877 echo ia64-unknown-interix${UNAME_RELEASE}877 echo ia64-unknown-interix"$UNAME_RELEASE"
878 exit ;;878 exit ;;
879 esac ;;879 esac ;;
880 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
881 echo i${UNAME_MACHINE}-pc-mks
882 exit ;;
883 8664:Windows_NT:*)
884 echo x86_64-pc-mks
885 exit ;;
886 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
887 # How do we know it's Interix rather than the generic POSIX subsystem?
888 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
889 # UNAME_MACHINE based on the output of uname instead of i386?
890 echo i586-pc-interix
891 exit ;;
892 i*:UWIN*:*)880 i*:UWIN*:*)
893 echo ${UNAME_MACHINE}-pc-uwin881 echo "$UNAME_MACHINE"-pc-uwin
894 exit ;;882 exit ;;
895 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)883 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
896 echo x86_64-unknown-cygwin884 echo x86_64-unknown-cygwin
897 exit ;;885 exit ;;
898 p*:CYGWIN*:*)
899 echo powerpcle-unknown-cygwin
900 exit ;;
901 prep*:SunOS:5.*:*)886 prep*:SunOS:5.*:*)
902 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
903 exit ;;888 exit ;;
904 *:GNU:*:*)889 *:GNU:*:*)
905 # the GNU system890 # the GNU system
906 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,/.*$,,'`"
907 exit ;;892 exit ;;
908 *:GNU/*:*:*)893 *:GNU/*:*:*)
909 # other systems with GNU libc and userland894 # other systems with GNU libc and userland
910 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"
911 exit ;;896 exit ;;
912 i*86:Minix:*:*)897 i*86:Minix:*:*)
913 echo ${UNAME_MACHINE}-pc-minix898 echo "$UNAME_MACHINE"-pc-minix
914 exit ;;899 exit ;;
915 aarch64:Linux:*:*)900 aarch64:Linux:*:*)
916 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
917 exit ;;902 exit ;;
918 aarch64_be:Linux:*:*)903 aarch64_be:Linux:*:*)
919 UNAME_MACHINE=aarch64_be904 UNAME_MACHINE=aarch64_be
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921 exit ;;906 exit ;;
922 alpha:Linux:*:*)907 alpha:Linux:*:*)
923 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -931,63 +916,63 @@ EOF
931 esac916 esac
932 objdump --private-headers /bin/sh | grep -q ld.so.1917 objdump --private-headers /bin/sh | grep -q ld.so.1
933 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi918 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
934 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
935 exit ;;920 exit ;;
936 arc:Linux:*:* | arceb:Linux:*:*)921 arc:Linux:*:* | arceb:Linux:*:*)
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
938 exit ;;923 exit ;;
939 arm*:Linux:*:*)924 arm*:Linux:*:*)
940 eval $set_cc_for_build925 eval "$set_cc_for_build"
941 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
942 | grep -q __ARM_EABI__927 | grep -q __ARM_EABI__
943 then928 then
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945 else930 else
946 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \931 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
947 | grep -q __ARM_PCS_VFP932 | grep -q __ARM_PCS_VFP
948 then933 then
949 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
950 else935 else
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
952 fi937 fi
953 fi938 fi
954 exit ;;939 exit ;;
955 avr32*:Linux:*:*)940 avr32*:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957 exit ;;942 exit ;;
958 cris:Linux:*:*)943 cris:Linux:*:*)
959 echo ${UNAME_MACHINE}-axis-linux-${LIBC}944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
960 exit ;;945 exit ;;
961 crisv32:Linux:*:*)946 crisv32:Linux:*:*)
962 echo ${UNAME_MACHINE}-axis-linux-${LIBC}947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
963 exit ;;948 exit ;;
964 e2k:Linux:*:*)949 e2k:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966 exit ;;951 exit ;;
967 frv:Linux:*:*)952 frv:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969 exit ;;954 exit ;;
970 hexagon:Linux:*:*)955 hexagon:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972 exit ;;957 exit ;;
973 i*86:Linux:*:*)958 i*86:Linux:*:*)
974 echo ${UNAME_MACHINE}-pc-linux-${LIBC}959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
975 exit ;;960 exit ;;
976 ia64:Linux:*:*)961 ia64:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
978 exit ;;963 exit ;;
979 k1om:Linux:*:*)964 k1om:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
981 exit ;;966 exit ;;
982 m32r*:Linux:*:*)967 m32r*:Linux:*:*)
983 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
984 exit ;;969 exit ;;
985 m68*:Linux:*:*)970 m68*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
987 exit ;;972 exit ;;
988 mips:Linux:*:* | mips64:Linux:*:*)973 mips:Linux:*:* | mips64:Linux:*:*)
989 eval $set_cc_for_build974 eval "$set_cc_for_build"
990 sed 's/^ //' << EOF >$dummy.c975 sed 's/^ //' << EOF > "$dummy.c"
991 #undef CPU976 #undef CPU
992 #undef ${UNAME_MACHINE}977 #undef ${UNAME_MACHINE}
993 #undef ${UNAME_MACHINE}el978 #undef ${UNAME_MACHINE}el
@@ -1001,70 +986,74 @@ EOF
1001 #endif986 #endif
1002 #endif987 #endif
1003EOF988EOF
1004 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
1005 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1006 ;;991 ;;
1007 mips64el:Linux:*:*)992 mips64el:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1009 exit ;;994 exit ;;
1010 openrisc*:Linux:*:*)995 openrisc*:Linux:*:*)
1011 echo or1k-unknown-linux-${LIBC}996 echo or1k-unknown-linux-"$LIBC"
1012 exit ;;997 exit ;;
1013 or32:Linux:*:* | or1k*:Linux:*:*)998 or32:Linux:*:* | or1k*:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1015 exit ;;1000 exit ;;
1016 padre:Linux:*:*)1001 padre:Linux:*:*)
1017 echo sparc-unknown-linux-${LIBC}1002 echo sparc-unknown-linux-"$LIBC"
1018 exit ;;1003 exit ;;
1019 parisc64:Linux:*:* | hppa64:Linux:*:*)1004 parisc64:Linux:*:* | hppa64:Linux:*:*)
1020 echo hppa64-unknown-linux-${LIBC}1005 echo hppa64-unknown-linux-"$LIBC"
1021 exit ;;1006 exit ;;
1022 parisc:Linux:*:* | hppa:Linux:*:*)1007 parisc:Linux:*:* | hppa:Linux:*:*)
1023 # Look for CPU level1008 # Look for CPU level
1024 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in1009 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1025 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1026 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1027 *) echo hppa-unknown-linux-${LIBC} ;;1012 *) echo hppa-unknown-linux-"$LIBC" ;;
1028 esac1013 esac
1029 exit ;;1014 exit ;;
1030 ppc64:Linux:*:*)1015 ppc64:Linux:*:*)
1031 echo powerpc64-unknown-linux-${LIBC}1016 echo powerpc64-unknown-linux-"$LIBC"
1032 exit ;;1017 exit ;;
1033 ppc:Linux:*:*)1018 ppc:Linux:*:*)
1034 echo powerpc-unknown-linux-${LIBC}1019 echo powerpc-unknown-linux-"$LIBC"
1035 exit ;;1020 exit ;;
1036 ppc64le:Linux:*:*)1021 ppc64le:Linux:*:*)
1037 echo powerpc64le-unknown-linux-${LIBC}1022 echo powerpc64le-unknown-linux-"$LIBC"
1038 exit ;;1023 exit ;;
1039 ppcle:Linux:*:*)1024 ppcle:Linux:*:*)
1040 echo powerpcle-unknown-linux-${LIBC}1025 echo powerpcle-unknown-linux-"$LIBC"
1041 exit ;;1026 exit ;;
1042 riscv32:Linux:*:* | riscv64:Linux:*:*)1027 riscv32:Linux:*:* | riscv64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1044 exit ;;1029 exit ;;
1045 s390:Linux:*:* | s390x:Linux:*:*)1030 s390:Linux:*:* | s390x:Linux:*:*)
1046 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1047 exit ;;1032 exit ;;
1048 sh64*:Linux:*:*)1033 sh64*:Linux:*:*)
1049 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1050 exit ;;1035 exit ;;
1051 sh*:Linux:*:*)1036 sh*:Linux:*:*)
1052 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1053 exit ;;1038 exit ;;
1054 sparc:Linux:*:* | sparc64:Linux:*:*)1039 sparc:Linux:*:* | sparc64:Linux:*:*)
1055 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;1041 exit ;;
1057 tile*:Linux:*:*)1042 tile*:Linux:*:*)
1058 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1059 exit ;;1044 exit ;;
1060 vax:Linux:*:*)1045 vax:Linux:*:*)
1061 echo ${UNAME_MACHINE}-dec-linux-${LIBC}1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1062 exit ;;1047 exit ;;
1063 x86_64:Linux:*:*)1048 x86_64:Linux:*:*)
1064 echo ${UNAME_MACHINE}-pc-linux-${LIBC}1049 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1050 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1051 else
1052 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1053 fi
1065 exit ;;1054 exit ;;
1066 xtensa*:Linux:*:*)1055 xtensa*:Linux:*:*)
1067 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1056 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1068 exit ;;1057 exit ;;
1069 i*86:DYNIX/ptx:4*:*)1058 i*86:DYNIX/ptx:4*:*)
1070 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1059 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1078,34 +1067,34 @@ EOF
1078 # I am not positive that other SVR4 systems won't match this,1067 # I am not positive that other SVR4 systems won't match this,
1079 # I just have to hope. -- rms.1068 # I just have to hope. -- rms.
1080 # Use sysv4.2uw... so that sysv4* matches it.1069 # Use sysv4.2uw... so that sysv4* matches it.
1081 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}1070 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1082 exit ;;1071 exit ;;
1083 i*86:OS/2:*:*)1072 i*86:OS/2:*:*)
1084 # If we were able to find `uname', then EMX Unix compatibility1073 # If we were able to find `uname', then EMX Unix compatibility
1085 # is probably installed.1074 # is probably installed.
1086 echo ${UNAME_MACHINE}-pc-os2-emx1075 echo "$UNAME_MACHINE"-pc-os2-emx
1087 exit ;;1076 exit ;;
1088 i*86:XTS-300:*:STOP)1077 i*86:XTS-300:*:STOP)
1089 echo ${UNAME_MACHINE}-unknown-stop1078 echo "$UNAME_MACHINE"-unknown-stop
1090 exit ;;1079 exit ;;
1091 i*86:atheos:*:*)1080 i*86:atheos:*:*)
1092 echo ${UNAME_MACHINE}-unknown-atheos1081 echo "$UNAME_MACHINE"-unknown-atheos
1093 exit ;;1082 exit ;;
1094 i*86:syllable:*:*)1083 i*86:syllable:*:*)
1095 echo ${UNAME_MACHINE}-pc-syllable1084 echo "$UNAME_MACHINE"-pc-syllable
1096 exit ;;1085 exit ;;
1097 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)1086 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1098 echo i386-unknown-lynxos${UNAME_RELEASE}1087 echo i386-unknown-lynxos"$UNAME_RELEASE"
1099 exit ;;1088 exit ;;
1100 i*86:*DOS:*:*)1089 i*86:*DOS:*:*)
1101 echo ${UNAME_MACHINE}-pc-msdosdjgpp1090 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1102 exit ;;1091 exit ;;
1103 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)1092 i*86:*:4.*:*)
1104 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`1093 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1105 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then1094 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1106 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}1095 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1107 else1096 else
1108 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}1097 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1109 fi1098 fi
1110 exit ;;1099 exit ;;
1111 i*86:*:5:[678]*)1100 i*86:*:5:[678]*)
@@ -1115,12 +1104,12 @@ EOF
1115 *Pentium) UNAME_MACHINE=i586 ;;1104 *Pentium) UNAME_MACHINE=i586 ;;
1116 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;1105 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1117 esac1106 esac
1118 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}1107 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1119 exit ;;1108 exit ;;
1120 i*86:*:3.2:*)1109 i*86:*:3.2:*)
1121 if test -f /usr/options/cb.name; then1110 if test -f /usr/options/cb.name; then
1122 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`1111 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1123 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL1112 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1124 elif /bin/uname -X 2>/dev/null >/dev/null ; then1113 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1125 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`1114 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1126 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i4861115 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
@@ -1130,9 +1119,9 @@ EOF
1130 && UNAME_MACHINE=i6861119 && UNAME_MACHINE=i686
1131 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \1120 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1132 && UNAME_MACHINE=i6861121 && UNAME_MACHINE=i686
1133 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL1122 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1134 else1123 else
1135 echo ${UNAME_MACHINE}-pc-sysv321124 echo "$UNAME_MACHINE"-pc-sysv32
1136 fi1125 fi
1137 exit ;;1126 exit ;;
1138 pc:*:*:*)1127 pc:*:*:*)
@@ -1152,9 +1141,9 @@ EOF
1152 exit ;;1141 exit ;;
1153 i860:*:4.*:*) # i860-SVR41142 i860:*:4.*:*) # i860-SVR4
1154 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then1143 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1155 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR41144 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1156 else # Add other i860-SVR4 vendors below as they are discovered.1145 else # Add other i860-SVR4 vendors below as they are discovered.
1157 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR41146 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1158 fi1147 fi
1159 exit ;;1148 exit ;;
1160 mini*:CTIX:SYS*5:*)1149 mini*:CTIX:SYS*5:*)
@@ -1174,9 +1163,9 @@ EOF
1174 test -r /etc/.relid \1163 test -r /etc/.relid \
1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1164 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1165 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1177 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1166 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1167 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1179 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1168 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1180 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)1169 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1181 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1170 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1182 && { echo i486-ncr-sysv4; exit; } ;;1171 && { echo i486-ncr-sysv4; exit; } ;;
@@ -1185,28 +1174,28 @@ EOF
1185 test -r /etc/.relid \1174 test -r /etc/.relid \
1186 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1187 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1188 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1177 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1189 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1190 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }1179 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1191 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \1180 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1192 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1181 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1193 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1182 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1194 echo m68k-unknown-lynxos${UNAME_RELEASE}1183 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;1184 exit ;;
1196 mc68030:UNIX_System_V:4.*:*)1185 mc68030:UNIX_System_V:4.*:*)
1197 echo m68k-atari-sysv41186 echo m68k-atari-sysv4
1198 exit ;;1187 exit ;;
1199 TSUNAMI:LynxOS:2.*:*)1188 TSUNAMI:LynxOS:2.*:*)
1200 echo sparc-unknown-lynxos${UNAME_RELEASE}1189 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1201 exit ;;1190 exit ;;
1202 rs6000:LynxOS:2.*:*)1191 rs6000:LynxOS:2.*:*)
1203 echo rs6000-unknown-lynxos${UNAME_RELEASE}1192 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1204 exit ;;1193 exit ;;
1205 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)1194 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1206 echo powerpc-unknown-lynxos${UNAME_RELEASE}1195 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1207 exit ;;1196 exit ;;
1208 SM[BE]S:UNIX_SV:*:*)1197 SM[BE]S:UNIX_SV:*:*)
1209 echo mips-dde-sysv${UNAME_RELEASE}1198 echo mips-dde-sysv"$UNAME_RELEASE"
1210 exit ;;1199 exit ;;
1211 RM*:ReliantUNIX-*:*:*)1200 RM*:ReliantUNIX-*:*:*)
1212 echo mips-sni-sysv41201 echo mips-sni-sysv4
@@ -1217,7 +1206,7 @@ EOF
1217 *:SINIX-*:*:*)1206 *:SINIX-*:*:*)
1218 if uname -p 2>/dev/null >/dev/null ; then1207 if uname -p 2>/dev/null >/dev/null ; then
1219 UNAME_MACHINE=`(uname -p) 2>/dev/null`1208 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1220 echo ${UNAME_MACHINE}-sni-sysv41209 echo "$UNAME_MACHINE"-sni-sysv4
1221 else1210 else
1222 echo ns32k-sni-sysv1211 echo ns32k-sni-sysv
1223 fi1212 fi
@@ -1237,23 +1226,23 @@ EOF
1237 exit ;;1226 exit ;;
1238 i*86:VOS:*:*)1227 i*86:VOS:*:*)
1239 # From Paul.Green@stratus.com.1228 # From Paul.Green@stratus.com.
1240 echo ${UNAME_MACHINE}-stratus-vos1229 echo "$UNAME_MACHINE"-stratus-vos
1241 exit ;;1230 exit ;;
1242 *:VOS:*:*)1231 *:VOS:*:*)
1243 # From Paul.Green@stratus.com.1232 # From Paul.Green@stratus.com.
1244 echo hppa1.1-stratus-vos1233 echo hppa1.1-stratus-vos
1245 exit ;;1234 exit ;;
1246 mc68*:A/UX:*:*)1235 mc68*:A/UX:*:*)
1247 echo m68k-apple-aux${UNAME_RELEASE}1236 echo m68k-apple-aux"$UNAME_RELEASE"
1248 exit ;;1237 exit ;;
1249 news*:NEWS-OS:6*:*)1238 news*:NEWS-OS:6*:*)
1250 echo mips-sony-newsos61239 echo mips-sony-newsos6
1251 exit ;;1240 exit ;;
1252 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)1241 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1253 if [ -d /usr/nec ]; then1242 if [ -d /usr/nec ]; then
1254 echo mips-nec-sysv${UNAME_RELEASE}1243 echo mips-nec-sysv"$UNAME_RELEASE"
1255 else1244 else
1256 echo mips-unknown-sysv${UNAME_RELEASE}1245 echo mips-unknown-sysv"$UNAME_RELEASE"
1257 fi1246 fi
1258 exit ;;1247 exit ;;
1259 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1248 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
@@ -1272,39 +1261,39 @@ EOF
1272 echo x86_64-unknown-haiku1261 echo x86_64-unknown-haiku
1273 exit ;;1262 exit ;;
1274 SX-4:SUPER-UX:*:*)1263 SX-4:SUPER-UX:*:*)
1275 echo sx4-nec-superux${UNAME_RELEASE}1264 echo sx4-nec-superux"$UNAME_RELEASE"
1276 exit ;;1265 exit ;;
1277 SX-5:SUPER-UX:*:*)1266 SX-5:SUPER-UX:*:*)
1278 echo sx5-nec-superux${UNAME_RELEASE}1267 echo sx5-nec-superux"$UNAME_RELEASE"
1279 exit ;;1268 exit ;;
1280 SX-6:SUPER-UX:*:*)1269 SX-6:SUPER-UX:*:*)
1281 echo sx6-nec-superux${UNAME_RELEASE}1270 echo sx6-nec-superux"$UNAME_RELEASE"
1282 exit ;;1271 exit ;;
1283 SX-7:SUPER-UX:*:*)1272 SX-7:SUPER-UX:*:*)
1284 echo sx7-nec-superux${UNAME_RELEASE}1273 echo sx7-nec-superux"$UNAME_RELEASE"
1285 exit ;;1274 exit ;;
1286 SX-8:SUPER-UX:*:*)1275 SX-8:SUPER-UX:*:*)
1287 echo sx8-nec-superux${UNAME_RELEASE}1276 echo sx8-nec-superux"$UNAME_RELEASE"
1288 exit ;;1277 exit ;;
1289 SX-8R:SUPER-UX:*:*)1278 SX-8R:SUPER-UX:*:*)
1290 echo sx8r-nec-superux${UNAME_RELEASE}1279 echo sx8r-nec-superux"$UNAME_RELEASE"
1291 exit ;;1280 exit ;;
1292 SX-ACE:SUPER-UX:*:*)1281 SX-ACE:SUPER-UX:*:*)
1293 echo sxace-nec-superux${UNAME_RELEASE}1282 echo sxace-nec-superux"$UNAME_RELEASE"
1294 exit ;;1283 exit ;;
1295 Power*:Rhapsody:*:*)1284 Power*:Rhapsody:*:*)
1296 echo powerpc-apple-rhapsody${UNAME_RELEASE}1285 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1297 exit ;;1286 exit ;;
1298 *:Rhapsody:*:*)1287 *:Rhapsody:*:*)
1299 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}1288 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1300 exit ;;1289 exit ;;
1301 *:Darwin:*:*)1290 *:Darwin:*:*)
1302 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1291 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1303 eval $set_cc_for_build1292 eval "$set_cc_for_build"
1304 if test "$UNAME_PROCESSOR" = unknown ; then1293 if test "$UNAME_PROCESSOR" = unknown ; then
1305 UNAME_PROCESSOR=powerpc1294 UNAME_PROCESSOR=powerpc
1306 fi1295 fi
1307 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then1296 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1308 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then1297 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1309 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \1298 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1310 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \1299 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
@@ -1332,7 +1321,7 @@ EOF
1332 # that Apple uses in portable devices.1321 # that Apple uses in portable devices.
1333 UNAME_PROCESSOR=x86_641322 UNAME_PROCESSOR=x86_64
1334 fi1323 fi
1335 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1324 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1336 exit ;;1325 exit ;;
1337 *:procnto*:*:* | *:QNX:[0123456789]*:*)1326 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1338 UNAME_PROCESSOR=`uname -p`1327 UNAME_PROCESSOR=`uname -p`
@@ -1340,22 +1329,25 @@ EOF
1340 UNAME_PROCESSOR=i3861329 UNAME_PROCESSOR=i386
1341 UNAME_MACHINE=pc1330 UNAME_MACHINE=pc
1342 fi1331 fi
1343 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1332 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1344 exit ;;1333 exit ;;
1345 *:QNX:*:4*)1334 *:QNX:*:4*)
1346 echo i386-pc-qnx1335 echo i386-pc-qnx
1347 exit ;;1336 exit ;;
1348 NEO-*:NONSTOP_KERNEL:*:*)1337 NEO-*:NONSTOP_KERNEL:*:*)
1349 echo neo-tandem-nsk${UNAME_RELEASE}1338 echo neo-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;1339 exit ;;
1351 NSE-*:NONSTOP_KERNEL:*:*)1340 NSE-*:NONSTOP_KERNEL:*:*)
1352 echo nse-tandem-nsk${UNAME_RELEASE}1341 echo nse-tandem-nsk"$UNAME_RELEASE"
1353 exit ;;1342 exit ;;
1354 NSR-*:NONSTOP_KERNEL:*:*)1343 NSR-*:NONSTOP_KERNEL:*:*)
1355 echo nsr-tandem-nsk${UNAME_RELEASE}1344 echo nsr-tandem-nsk"$UNAME_RELEASE"
1345 exit ;;
1346 NSV-*:NONSTOP_KERNEL:*:*)
1347 echo nsv-tandem-nsk"$UNAME_RELEASE"
1356 exit ;;1348 exit ;;
1357 NSX-*:NONSTOP_KERNEL:*:*)1349 NSX-*:NONSTOP_KERNEL:*:*)
1358 echo nsx-tandem-nsk${UNAME_RELEASE}1350 echo nsx-tandem-nsk"$UNAME_RELEASE"
1359 exit ;;1351 exit ;;
1360 *:NonStop-UX:*:*)1352 *:NonStop-UX:*:*)
1361 echo mips-compaq-nonstopux1353 echo mips-compaq-nonstopux
@@ -1364,7 +1356,7 @@ EOF
1364 echo bs2000-siemens-sysv1356 echo bs2000-siemens-sysv
1365 exit ;;1357 exit ;;
1366 DS/*:UNIX_System_V:*:*)1358 DS/*:UNIX_System_V:*:*)
1367 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}1359 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1368 exit ;;1360 exit ;;
1369 *:Plan9:*:*)1361 *:Plan9:*:*)
1370 # "uname -m" is not consistent, so use $cputype instead. 3861362 # "uname -m" is not consistent, so use $cputype instead. 386
@@ -1375,7 +1367,7 @@ EOF
1375 else1367 else
1376 UNAME_MACHINE="$cputype"1368 UNAME_MACHINE="$cputype"
1377 fi1369 fi
1378 echo ${UNAME_MACHINE}-unknown-plan91370 echo "$UNAME_MACHINE"-unknown-plan9
1379 exit ;;1371 exit ;;
1380 *:TOPS-10:*:*)1372 *:TOPS-10:*:*)
1381 echo pdp10-unknown-tops101373 echo pdp10-unknown-tops10
@@ -1396,14 +1388,14 @@ EOF
1396 echo pdp10-unknown-its1388 echo pdp10-unknown-its
1397 exit ;;1389 exit ;;
1398 SEI:*:*:SEIUX)1390 SEI:*:*:SEIUX)
1399 echo mips-sei-seiux${UNAME_RELEASE}1391 echo mips-sei-seiux"$UNAME_RELEASE"
1400 exit ;;1392 exit ;;
1401 *:DragonFly:*:*)1393 *:DragonFly:*:*)
1402 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1394 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1403 exit ;;1395 exit ;;
1404 *:*VMS:*:*)1396 *:*VMS:*:*)
1405 UNAME_MACHINE=`(uname -p) 2>/dev/null`1397 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1406 case "${UNAME_MACHINE}" in1398 case "$UNAME_MACHINE" in
1407 A*) echo alpha-dec-vms ; exit ;;1399 A*) echo alpha-dec-vms ; exit ;;
1408 I*) echo ia64-dec-vms ; exit ;;1400 I*) echo ia64-dec-vms ; exit ;;
1409 V*) echo vax-dec-vms ; exit ;;1401 V*) echo vax-dec-vms ; exit ;;
@@ -1412,32 +1404,44 @@ EOF
1412 echo i386-pc-xenix1404 echo i386-pc-xenix
1413 exit ;;1405 exit ;;
1414 i*86:skyos:*:*)1406 i*86:skyos:*:*)
1415 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`1407 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1416 exit ;;1408 exit ;;
1417 i*86:rdos:*:*)1409 i*86:rdos:*:*)
1418 echo ${UNAME_MACHINE}-pc-rdos1410 echo "$UNAME_MACHINE"-pc-rdos
1419 exit ;;1411 exit ;;
1420 i*86:AROS:*:*)1412 i*86:AROS:*:*)
1421 echo ${UNAME_MACHINE}-pc-aros1413 echo "$UNAME_MACHINE"-pc-aros
1422 exit ;;1414 exit ;;
1423 x86_64:VMkernel:*:*)1415 x86_64:VMkernel:*:*)
1424 echo ${UNAME_MACHINE}-unknown-esx1416 echo "$UNAME_MACHINE"-unknown-esx
1425 exit ;;1417 exit ;;
1426 amd64:Isilon\ OneFS:*:*)1418 amd64:Isilon\ OneFS:*:*)
1427 echo x86_64-unknown-onefs1419 echo x86_64-unknown-onefs
1428 exit ;;1420 exit ;;
1429esac1421esac
14301422
1423echo "$0: unable to guess system type" >&2
1424
1425case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1426 mips:Linux | mips64:Linux)
1427 # If we got here on MIPS GNU/Linux, output extra information.
1428 cat >&2 <<EOF
1429
1430NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1431the system type. Please install a C compiler and try again.
1432EOF
1433 ;;
1434esac
1435
1431cat >&2 <<EOF1436cat >&2 <<EOF
1432$0: unable to guess system type
14331437
1434This script (version $timestamp), has failed to recognize the1438This script (version $timestamp), has failed to recognize the
1435operating system you are using. If your script is old, overwrite *all*1439operating system you are using. If your script is old, overwrite *all*
1436copies of config.guess and config.sub with the latest versions from:1440copies of config.guess and config.sub with the latest versions from:
14371441
1438 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess1442 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1439and1443and
1440 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub1444 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
14411445
1442If $0 has already been updated, send the following data and any1446If $0 has already been updated, send the following data and any
1443information you think might be pertinent to config-patches@gnu.org to1447information you think might be pertinent to config-patches@gnu.org to
@@ -1460,16 +1464,16 @@ hostinfo = `(hostinfo) 2>/dev/null`
1460/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`1464/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14621466
1463UNAME_MACHINE = ${UNAME_MACHINE}1467UNAME_MACHINE = "$UNAME_MACHINE"
1464UNAME_RELEASE = ${UNAME_RELEASE}1468UNAME_RELEASE = "$UNAME_RELEASE"
1465UNAME_SYSTEM = ${UNAME_SYSTEM}1469UNAME_SYSTEM = "$UNAME_SYSTEM"
1466UNAME_VERSION = ${UNAME_VERSION}1470UNAME_VERSION = "$UNAME_VERSION"
1467EOF1471EOF
14681472
1469exit 11473exit 1
14701474
1471# Local variables:1475# Local variables:
1472# eval: (add-hook 'write-file-hooks 'time-stamp)1476# eval: (add-hook 'write-file-functions 'time-stamp)
1473# time-stamp-start: "timestamp='"1477# time-stamp-start: "timestamp='"
1474# time-stamp-format: "%:y-%02m-%02d"1478# time-stamp-format: "%:y-%02m-%02d"
1475# time-stamp-end: "'"1479# time-stamp-end: "'"
diff --git a/build-aux/config.sub b/build-aux/config.sub
index f4bafc1..1d8e98b 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1,8 +1,8 @@
1#!/bin/sh1#! /bin/sh
2# Configuration validation subroutine script.2# Configuration validation subroutine script.
3# Copyright 1992-2017 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5timestamp='2017-04-02'5timestamp='2018-02-22'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@ timestamp='2017-04-02'
15# General Public License for more details.15# General Public License for more details.
16#16#
17# You should have received a copy of the GNU General Public License17# 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/>.
19#19#
20# As a special exception to the GNU General Public License, if you20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a21# distribute this file as part of a program that contains a
@@ -33,7 +33,7 @@ timestamp='2017-04-02'
33# Otherwise, we print the canonical config type on stdout and succeed.33# Otherwise, we print the canonical config type on stdout and succeed.
3434
35# You can get the latest version of this script from:35# 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.sub36# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3737
38# This file is supposed to be the same for all GNU packages38# This file is supposed to be the same for all GNU packages
39# and recognize all the CPU types, system types and aliases39# and recognize all the CPU types, system types and aliases
@@ -57,7 +57,7 @@ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5757
58Canonicalize a configuration name.58Canonicalize a configuration name.
5959
60Operation modes:60Options:
61 -h, --help print this help, then exit61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit63 -v, --version print version number, then exit
@@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
67version="\67version="\
68GNU config.sub ($timestamp)68GNU config.sub ($timestamp)
6969
70Copyright 1992-2017 Free Software Foundation, Inc.70Copyright 1992-2018 Free Software Foundation, Inc.
7171
72This is free software; see the source for copying conditions. There is NO72This is free software; see the source for copying conditions. There is NO
73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -94,7 +94,7 @@ while test $# -gt 0 ; do
9494
95 *local*)95 *local*)
96 # First pass through any local machine types.96 # First pass through any local machine types.
97 echo $197 echo "$1"
98 exit ;;98 exit ;;
9999
100 * )100 * )
@@ -112,7 +112,7 @@ esac
112112
113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114# Here we must recognize all the valid KERNEL-OS combinations.114# Here we must recognize all the valid KERNEL-OS combinations.
115maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`115maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116case $maybe_os in116case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
@@ -120,16 +120,16 @@ case $maybe_os in
120 kopensolaris*-gnu* | cloudabi*-eabi* | \120 kopensolaris*-gnu* | cloudabi*-eabi* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`123 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;124 ;;
125 android-linux)125 android-linux)
126 os=-linux-android126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown127 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;128 ;;
129 *)129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`130 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]131 if [ "$basic_machine" != "$1" ]
132 then os=`echo $1 | sed 's/.*-/-/'`132 then os=`echo "$1" | sed 's/.*-/-/'`
133 else os=; fi133 else os=; fi
134 ;;134 ;;
135esac135esac
@@ -178,44 +178,44 @@ case $os in
178 ;;178 ;;
179 -sco6)179 -sco6)
180 os=-sco5v6180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`181 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182 ;;182 ;;
183 -sco5)183 -sco5)
184 os=-sco3.2v5184 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/'`
186 ;;186 ;;
187 -sco4)187 -sco4)
188 os=-sco3.2v4188 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/'`
190 ;;190 ;;
191 -sco3.2.[4-9]*)191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`192 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/'`
194 ;;194 ;;
195 -sco3.2v[4-9]*)195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.196 # 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/'`
198 ;;198 ;;
199 -sco5v6*)199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.200 # 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/'`
202 ;;202 ;;
203 -sco*)203 -sco*)
204 os=-sco3.2v2204 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/'`
206 ;;206 ;;
207 -udk*)207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209 ;;209 ;;
210 -isc)210 -isc)
211 os=-isc2.2211 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/'`
213 ;;213 ;;
214 -clix*)214 -clix*)
215 basic_machine=clipper-intergraph215 basic_machine=clipper-intergraph
216 ;;216 ;;
217 -isc*)217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`218 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219 ;;219 ;;
220 -lynx*178)220 -lynx*178)
221 os=-lynxos178221 os=-lynxos178
@@ -227,10 +227,7 @@ case $os in
227 os=-lynxos227 os=-lynxos
228 ;;228 ;;
229 -ptx*)229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`230 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
234 ;;231 ;;
235 -psos*)232 -psos*)
236 os=-psos233 os=-psos
@@ -299,7 +296,7 @@ case $basic_machine in
299 | nios | nios2 | nios2eb | nios2el \296 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \297 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \298 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \299 | pdp10 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \300 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pru \301 | pru \
305 | pyramid \302 | pyramid \
@@ -316,7 +313,6 @@ case $basic_machine in
316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \313 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317 | visium \314 | visium \
318 | wasm32 \315 | wasm32 \
319 | we32k \
320 | x86 | xc16x | xstormy16 | xtensa \316 | x86 | xc16x | xstormy16 | xtensa \
321 | z8k | z80)317 | z8k | z80)
322 basic_machine=$basic_machine-unknown318 basic_machine=$basic_machine-unknown
@@ -337,7 +333,7 @@ case $basic_machine in
337 basic_machine=$basic_machine-unknown333 basic_machine=$basic_machine-unknown
338 os=-none334 os=-none
339 ;;335 ;;
340 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)336 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
341 ;;337 ;;
342 ms1)338 ms1)
343 basic_machine=mt-unknown339 basic_machine=mt-unknown
@@ -366,7 +362,7 @@ case $basic_machine in
366 ;;362 ;;
367 # Object if more than one company name word.363 # Object if more than one company name word.
368 *-*-*)364 *-*-*)
369 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2365 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
370 exit 1366 exit 1
371 ;;367 ;;
372 # Recognize the basic CPU types with company name.368 # Recognize the basic CPU types with company name.
@@ -461,7 +457,7 @@ case $basic_machine in
461 # Recognize the various machine names and aliases which stand457 # Recognize the various machine names and aliases which stand
462 # for a CPU type and a company and sometimes even an OS.458 # for a CPU type and a company and sometimes even an OS.
463 386bsd)459 386bsd)
464 basic_machine=i386-unknown460 basic_machine=i386-pc
465 os=-bsd461 os=-bsd
466 ;;462 ;;
467 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)463 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
@@ -495,7 +491,7 @@ case $basic_machine in
495 basic_machine=x86_64-pc491 basic_machine=x86_64-pc
496 ;;492 ;;
497 amd64-*)493 amd64-*)
498 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`494 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
499 ;;495 ;;
500 amdahl)496 amdahl)
501 basic_machine=580-amdahl497 basic_machine=580-amdahl
@@ -540,7 +536,7 @@ case $basic_machine in
540 os=-linux536 os=-linux
541 ;;537 ;;
542 blackfin-*)538 blackfin-*)
543 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`539 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
544 os=-linux540 os=-linux
545 ;;541 ;;
546 bluegene*)542 bluegene*)
@@ -548,13 +544,13 @@ case $basic_machine in
548 os=-cnk544 os=-cnk
549 ;;545 ;;
550 c54x-*)546 c54x-*)
551 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`547 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
552 ;;548 ;;
553 c55x-*)549 c55x-*)
554 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`550 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
555 ;;551 ;;
556 c6x-*)552 c6x-*)
557 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`553 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
558 ;;554 ;;
559 c90)555 c90)
560 basic_machine=c90-cray556 basic_machine=c90-cray
@@ -643,7 +639,7 @@ case $basic_machine in
643 basic_machine=rs6000-bull639 basic_machine=rs6000-bull
644 os=-bosx640 os=-bosx
645 ;;641 ;;
646 dpx2* | dpx2*-bull)642 dpx2*)
647 basic_machine=m68k-bull643 basic_machine=m68k-bull
648 os=-sysv3644 os=-sysv3
649 ;;645 ;;
@@ -652,7 +648,7 @@ case $basic_machine in
652 os=$os"spe"648 os=$os"spe"
653 ;;649 ;;
654 e500v[12]-*)650 e500v[12]-*)
655 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`651 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
656 os=$os"spe"652 os=$os"spe"
657 ;;653 ;;
658 ebmon29k)654 ebmon29k)
@@ -744,9 +740,6 @@ case $basic_machine in
744 hp9k8[0-9][0-9] | hp8[0-9][0-9])740 hp9k8[0-9][0-9] | hp8[0-9][0-9])
745 basic_machine=hppa1.0-hp741 basic_machine=hppa1.0-hp
746 ;;742 ;;
747 hppa-next)
748 os=-nextstep3
749 ;;
750 hppaosf)743 hppaosf)
751 basic_machine=hppa1.1-hp744 basic_machine=hppa1.1-hp
752 os=-osf745 os=-osf
@@ -759,26 +752,26 @@ case $basic_machine in
759 basic_machine=i370-ibm752 basic_machine=i370-ibm
760 ;;753 ;;
761 i*86v32)754 i*86v32)
762 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`755 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv32756 os=-sysv32
764 ;;757 ;;
765 i*86v4*)758 i*86v4*)
766 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`759 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-sysv4760 os=-sysv4
768 ;;761 ;;
769 i*86v)762 i*86v)
770 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`763 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
771 os=-sysv764 os=-sysv
772 ;;765 ;;
773 i*86sol2)766 i*86sol2)
774 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`767 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
775 os=-solaris2768 os=-solaris2
776 ;;769 ;;
777 i386mach)770 i386mach)
778 basic_machine=i386-mach771 basic_machine=i386-mach
779 os=-mach772 os=-mach
780 ;;773 ;;
781 i386-vsta | vsta)774 vsta)
782 basic_machine=i386-unknown775 basic_machine=i386-unknown
783 os=-vsta776 os=-vsta
784 ;;777 ;;
@@ -797,19 +790,16 @@ case $basic_machine in
797 os=-sysv790 os=-sysv
798 ;;791 ;;
799 leon-*|leon[3-9]-*)792 leon-*|leon[3-9]-*)
800 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`793 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
801 ;;794 ;;
802 m68knommu)795 m68knommu)
803 basic_machine=m68k-unknown796 basic_machine=m68k-unknown
804 os=-linux797 os=-linux
805 ;;798 ;;
806 m68knommu-*)799 m68knommu-*)
807 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`800 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
808 os=-linux801 os=-linux
809 ;;802 ;;
810 m88k-omron*)
811 basic_machine=m88k-omron
812 ;;
813 magnum | m3230)803 magnum | m3230)
814 basic_machine=mips-mips804 basic_machine=mips-mips
815 os=-sysv805 os=-sysv
@@ -841,10 +831,10 @@ case $basic_machine in
841 os=-mint831 os=-mint
842 ;;832 ;;
843 mips3*-*)833 mips3*-*)
844 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`834 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
845 ;;835 ;;
846 mips3*)836 mips3*)
847 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown837 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
848 ;;838 ;;
849 monitor)839 monitor)
850 basic_machine=m68k-rom68k840 basic_machine=m68k-rom68k
@@ -863,7 +853,7 @@ case $basic_machine in
863 os=-msdos853 os=-msdos
864 ;;854 ;;
865 ms1-*)855 ms1-*)
866 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`856 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
867 ;;857 ;;
868 msys)858 msys)
869 basic_machine=i686-pc859 basic_machine=i686-pc
@@ -905,7 +895,7 @@ case $basic_machine in
905 basic_machine=v70-nec895 basic_machine=v70-nec
906 os=-sysv896 os=-sysv
907 ;;897 ;;
908 next | m*-next )898 next | m*-next)
909 basic_machine=m68k-next899 basic_machine=m68k-next
910 case $os in900 case $os in
911 -nextstep* )901 -nextstep* )
@@ -950,6 +940,9 @@ case $basic_machine in
950 nsr-tandem)940 nsr-tandem)
951 basic_machine=nsr-tandem941 basic_machine=nsr-tandem
952 ;;942 ;;
943 nsv-tandem)
944 basic_machine=nsv-tandem
945 ;;
953 nsx-tandem)946 nsx-tandem)
954 basic_machine=nsx-tandem947 basic_machine=nsx-tandem
955 ;;948 ;;
@@ -985,7 +978,7 @@ case $basic_machine in
985 os=-linux978 os=-linux
986 ;;979 ;;
987 parisc-*)980 parisc-*)
988 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`981 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
989 os=-linux982 os=-linux
990 ;;983 ;;
991 pbd)984 pbd)
@@ -1001,7 +994,7 @@ case $basic_machine in
1001 basic_machine=i386-pc994 basic_machine=i386-pc
1002 ;;995 ;;
1003 pc98-*)996 pc98-*)
1004 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`997 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1005 ;;998 ;;
1006 pentium | p5 | k5 | k6 | nexgen | viac3)999 pentium | p5 | k5 | k6 | nexgen | viac3)
1007 basic_machine=i586-pc1000 basic_machine=i586-pc
@@ -1016,16 +1009,16 @@ case $basic_machine in
1016 basic_machine=i786-pc1009 basic_machine=i786-pc
1017 ;;1010 ;;
1018 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)1011 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1019 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`1012 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1020 ;;1013 ;;
1021 pentiumpro-* | p6-* | 6x86-* | athlon-*)1014 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1022 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`1015 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1023 ;;1016 ;;
1024 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)1017 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1025 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`1018 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1026 ;;1019 ;;
1027 pentium4-*)1020 pentium4-*)
1028 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`1021 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1029 ;;1022 ;;
1030 pn)1023 pn)
1031 basic_machine=pn-gould1024 basic_machine=pn-gould
@@ -1035,23 +1028,23 @@ case $basic_machine in
1035 ppc | ppcbe) basic_machine=powerpc-unknown1028 ppc | ppcbe) basic_machine=powerpc-unknown
1036 ;;1029 ;;
1037 ppc-* | ppcbe-*)1030 ppc-* | ppcbe-*)
1038 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`1031 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1039 ;;1032 ;;
1040 ppcle | powerpclittle)1033 ppcle | powerpclittle)
1041 basic_machine=powerpcle-unknown1034 basic_machine=powerpcle-unknown
1042 ;;1035 ;;
1043 ppcle-* | powerpclittle-*)1036 ppcle-* | powerpclittle-*)
1044 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`1037 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1045 ;;1038 ;;
1046 ppc64) basic_machine=powerpc64-unknown1039 ppc64) basic_machine=powerpc64-unknown
1047 ;;1040 ;;
1048 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`1041 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1049 ;;1042 ;;
1050 ppc64le | powerpc64little)1043 ppc64le | powerpc64little)
1051 basic_machine=powerpc64le-unknown1044 basic_machine=powerpc64le-unknown
1052 ;;1045 ;;
1053 ppc64le-* | powerpc64little-*)1046 ppc64le-* | powerpc64little-*)
1054 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`1047 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1055 ;;1048 ;;
1056 ps2)1049 ps2)
1057 basic_machine=i386-ibm1050 basic_machine=i386-ibm
@@ -1105,17 +1098,10 @@ case $basic_machine in
1105 sequent)1098 sequent)
1106 basic_machine=i386-sequent1099 basic_machine=i386-sequent
1107 ;;1100 ;;
1108 sh)
1109 basic_machine=sh-hitachi
1110 os=-hms
1111 ;;
1112 sh5el)1101 sh5el)
1113 basic_machine=sh5le-unknown1102 basic_machine=sh5le-unknown
1114 ;;1103 ;;
1115 sh64)1104 simso-wrs)
1116 basic_machine=sh64-unknown
1117 ;;
1118 sparclite-wrs | simso-wrs)
1119 basic_machine=sparclite-wrs1105 basic_machine=sparclite-wrs
1120 os=-vxworks1106 os=-vxworks
1121 ;;1107 ;;
@@ -1134,7 +1120,7 @@ case $basic_machine in
1134 os=-sysv41120 os=-sysv4
1135 ;;1121 ;;
1136 strongarm-* | thumb-*)1122 strongarm-* | thumb-*)
1137 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`1123 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1138 ;;1124 ;;
1139 sun2)1125 sun2)
1140 basic_machine=m68000-sun1126 basic_machine=m68000-sun
@@ -1248,9 +1234,6 @@ case $basic_machine in
1248 basic_machine=a29k-wrs1234 basic_machine=a29k-wrs
1249 os=-vxworks1235 os=-vxworks
1250 ;;1236 ;;
1251 wasm32)
1252 basic_machine=wasm32-unknown
1253 ;;
1254 w65*)1237 w65*)
1255 basic_machine=w65-wdc1238 basic_machine=w65-wdc
1256 os=-none1239 os=-none
@@ -1259,6 +1242,9 @@ case $basic_machine in
1259 basic_machine=hppa1.1-winbond1242 basic_machine=hppa1.1-winbond
1260 os=-proelf1243 os=-proelf
1261 ;;1244 ;;
1245 x64)
1246 basic_machine=x86_64-pc
1247 ;;
1262 xbox)1248 xbox)
1263 basic_machine=i686-pc1249 basic_machine=i686-pc
1264 os=-mingw321250 os=-mingw32
@@ -1267,20 +1253,12 @@ case $basic_machine in
1267 basic_machine=xps100-honeywell1253 basic_machine=xps100-honeywell
1268 ;;1254 ;;
1269 xscale-* | xscalee[bl]-*)1255 xscale-* | xscalee[bl]-*)
1270 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`1256 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1271 ;;1257 ;;
1272 ymp)1258 ymp)
1273 basic_machine=ymp-cray1259 basic_machine=ymp-cray
1274 os=-unicos1260 os=-unicos
1275 ;;1261 ;;
1276 z8k-*-coff)
1277 basic_machine=z8k-unknown
1278 os=-sim
1279 ;;
1280 z80-*-coff)
1281 basic_machine=z80-unknown
1282 os=-sim
1283 ;;
1284 none)1262 none)
1285 basic_machine=none-none1263 basic_machine=none-none
1286 os=-none1264 os=-none
@@ -1309,10 +1287,6 @@ case $basic_machine in
1309 vax)1287 vax)
1310 basic_machine=vax-dec1288 basic_machine=vax-dec
1311 ;;1289 ;;
1312 pdp10)
1313 # there are many clones, so DEC is not a safe bet
1314 basic_machine=pdp10-unknown
1315 ;;
1316 pdp11)1290 pdp11)
1317 basic_machine=pdp11-dec1291 basic_machine=pdp11-dec
1318 ;;1292 ;;
@@ -1322,9 +1296,6 @@ case $basic_machine in
1322 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)1296 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1323 basic_machine=sh-unknown1297 basic_machine=sh-unknown
1324 ;;1298 ;;
1325 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1326 basic_machine=sparc-sun
1327 ;;
1328 cydra)1299 cydra)
1329 basic_machine=cydra-cydrome1300 basic_machine=cydra-cydrome
1330 ;;1301 ;;
@@ -1344,7 +1315,7 @@ case $basic_machine in
1344 # Make sure to match an already-canonicalized machine name.1315 # Make sure to match an already-canonicalized machine name.
1345 ;;1316 ;;
1346 *)1317 *)
1347 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&21318 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1348 exit 11319 exit 1
1349 ;;1320 ;;
1350esac1321esac
@@ -1352,10 +1323,10 @@ esac
1352# Here we canonicalize certain aliases for manufacturers.1323# Here we canonicalize certain aliases for manufacturers.
1353case $basic_machine in1324case $basic_machine in
1354 *-digital*)1325 *-digital*)
1355 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`1326 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1356 ;;1327 ;;
1357 *-commodore*)1328 *-commodore*)
1358 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`1329 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1359 ;;1330 ;;
1360 *)1331 *)
1361 ;;1332 ;;
@@ -1366,8 +1337,8 @@ esac
1366if [ x"$os" != x"" ]1337if [ x"$os" != x"" ]
1367then1338then
1368case $os in1339case $os in
1369 # First match some system type aliases1340 # First match some system type aliases that might get confused
1370 # that might get confused with valid system types.1341 # with valid system types.
1371 # -solaris* is a basic system type, with this one exception.1342 # -solaris* is a basic system type, with this one exception.
1372 -auroraux)1343 -auroraux)
1373 os=-auroraux1344 os=-auroraux
@@ -1378,18 +1349,19 @@ case $os in
1378 -solaris)1349 -solaris)
1379 os=-solaris21350 os=-solaris2
1380 ;;1351 ;;
1381 -svr4*)
1382 os=-sysv4
1383 ;;
1384 -unixware*)1352 -unixware*)
1385 os=-sysv4.2uw1353 os=-sysv4.2uw
1386 ;;1354 ;;
1387 -gnu/linux*)1355 -gnu/linux*)
1388 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`1356 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1389 ;;1357 ;;
1390 # 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.
1391 # The portable systems comes first.1363 # The portable systems comes first.
1392 # Each alternative MUST END IN A *, to match a version number.1364 # Each alternative MUST end in a * to match a version number.
1393 # -sysv* is not here because it comes later, after sysvr4.1365 # -sysv* is not here because it comes later, after sysvr4.
1394 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \1366 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1395 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\1367 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
@@ -1399,7 +1371,7 @@ case $os in
1399 | -aos* | -aros* | -cloudabi* | -sortix* \1371 | -aos* | -aros* | -cloudabi* | -sortix* \
1400 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \1372 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1401 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \1373 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1402 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \1374 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1403 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \1375 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1404 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \1376 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1405 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \1377 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
@@ -1410,14 +1382,15 @@ case $os in
1410 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \1382 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1411 | -linux-newlib* | -linux-musl* | -linux-uclibc* \1383 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1412 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \1384 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1413 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \1385 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
1414 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \1386 | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
1415 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \1387 | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
1416 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \1388 | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
1417 | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \1389 | -morphos* | -superux* | -rtmk* | -windiss* \
1418 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \1390 | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
1419 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \1391 | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es* \
1420 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox*)1392 | -onefs* | -tirtos* | -phoenix* | -fuchsia* | -redox* | -bme* \
1393 | -midnightbsd*)
1421 # Remember, each alternative MUST END IN *, to match a version number.1394 # Remember, each alternative MUST END IN *, to match a version number.
1422 ;;1395 ;;
1423 -qnx*)1396 -qnx*)
@@ -1434,12 +1407,12 @@ case $os in
1434 -nto*)1407 -nto*)
1435 os=`echo $os | sed -e 's|nto|nto-qnx|'`1408 os=`echo $os | sed -e 's|nto|nto-qnx|'`
1436 ;;1409 ;;
1437 -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \1410 -sim | -xray | -os68k* | -v88r* \
1438 | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \1411 | -windows* | -osx | -abug | -netware* | -os9* \
1439 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)1412 | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
1440 ;;1413 ;;
1441 -mac*)1414 -mac*)
1442 os=`echo $os | sed -e 's|mac|macos|'`1415 os=`echo "$os" | sed -e 's|mac|macos|'`
1443 ;;1416 ;;
1444 -linux-dietlibc)1417 -linux-dietlibc)
1445 os=-linux-dietlibc1418 os=-linux-dietlibc
@@ -1448,10 +1421,10 @@ case $os in
1448 os=`echo $os | sed -e 's|linux|linux-gnu|'`1421 os=`echo $os | sed -e 's|linux|linux-gnu|'`
1449 ;;1422 ;;
1450 -sunos5*)1423 -sunos5*)
1451 os=`echo $os | sed -e 's|sunos5|solaris2|'`1424 os=`echo "$os" | sed -e 's|sunos5|solaris2|'`
1452 ;;1425 ;;
1453 -sunos6*)1426 -sunos6*)
1454 os=`echo $os | sed -e 's|sunos6|solaris3|'`1427 os=`echo "$os" | sed -e 's|sunos6|solaris3|'`
1455 ;;1428 ;;
1456 -opened*)1429 -opened*)
1457 os=-openedition1430 os=-openedition
@@ -1462,12 +1435,6 @@ case $os in
1462 -wince*)1435 -wince*)
1463 os=-wince1436 os=-wince
1464 ;;1437 ;;
1465 -osfrose*)
1466 os=-osfrose
1467 ;;
1468 -osf*)
1469 os=-osf
1470 ;;
1471 -utek*)1438 -utek*)
1472 os=-bsd1439 os=-bsd
1473 ;;1440 ;;
@@ -1492,7 +1459,7 @@ case $os in
1492 -nova*)1459 -nova*)
1493 os=-rtmk-nova1460 os=-rtmk-nova
1494 ;;1461 ;;
1495 -ns2 )1462 -ns2)
1496 os=-nextstep21463 os=-nextstep2
1497 ;;1464 ;;
1498 -nsk*)1465 -nsk*)
@@ -1514,7 +1481,7 @@ case $os in
1514 -oss*)1481 -oss*)
1515 os=-sysv31482 os=-sysv3
1516 ;;1483 ;;
1517 -svr4)1484 -svr4*)
1518 os=-sysv41485 os=-sysv4
1519 ;;1486 ;;
1520 -svr3)1487 -svr3)
@@ -1529,24 +1496,28 @@ case $os in
1529 -ose*)1496 -ose*)
1530 os=-ose1497 os=-ose
1531 ;;1498 ;;
1532 -es1800*)
1533 os=-ose
1534 ;;
1535 -xenix)
1536 os=-xenix
1537 ;;
1538 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)1499 -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
1539 os=-mint1500 os=-mint
1540 ;;1501 ;;
1541 -aros*)
1542 os=-aros
1543 ;;
1544 -zvmoe)1502 -zvmoe)
1545 os=-zvmoe1503 os=-zvmoe
1546 ;;1504 ;;
1547 -dicos*)1505 -dicos*)
1548 os=-dicos1506 os=-dicos
1549 ;;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
1520 ;;
1550 -nacl*)1521 -nacl*)
1551 ;;1522 ;;
1552 -ios)1523 -ios)
@@ -1556,7 +1527,7 @@ case $os in
1556 *)1527 *)
1557 # Get rid of the `-' at the beginning of $os.1528 # Get rid of the `-' at the beginning of $os.
1558 os=`echo $os | sed 's/[^-]*-//'`1529 os=`echo $os | sed 's/[^-]*-//'`
1559 echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&21530 echo Invalid configuration \`"$1"\': system \`"$os"\' not recognized 1>&2
1560 exit 11531 exit 1
1561 ;;1532 ;;
1562esac1533esac
@@ -1652,9 +1623,6 @@ case $basic_machine in
1652 *-be)1623 *-be)
1653 os=-beos1624 os=-beos
1654 ;;1625 ;;
1655 *-haiku)
1656 os=-haiku
1657 ;;
1658 *-ibm)1626 *-ibm)
1659 os=-aix1627 os=-aix
1660 ;;1628 ;;
@@ -1694,7 +1662,7 @@ case $basic_machine in
1694 m88k-omron*)1662 m88k-omron*)
1695 os=-luna1663 os=-luna
1696 ;;1664 ;;
1697 *-next )1665 *-next)
1698 os=-nextstep1666 os=-nextstep
1699 ;;1667 ;;
1700 *-sequent)1668 *-sequent)
@@ -1709,9 +1677,6 @@ case $basic_machine in
1709 i370-*)1677 i370-*)
1710 os=-mvs1678 os=-mvs
1711 ;;1679 ;;
1712 *-next)
1713 os=-nextstep3
1714 ;;
1715 *-gould)1680 *-gould)
1716 os=-sysv1681 os=-sysv
1717 ;;1682 ;;
@@ -1821,15 +1786,15 @@ case $basic_machine in
1821 vendor=stratus1786 vendor=stratus
1822 ;;1787 ;;
1823 esac1788 esac
1824 basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`1789 basic_machine=`echo "$basic_machine" | sed "s/unknown/$vendor/"`
1825 ;;1790 ;;
1826esac1791esac
18271792
1828echo $basic_machine$os1793echo "$basic_machine$os"
1829exit1794exit
18301795
1831# Local variables:1796# Local variables:
1832# eval: (add-hook 'write-file-hooks 'time-stamp)1797# eval: (add-hook 'write-file-functions 'time-stamp)
1833# time-stamp-start: "timestamp='"1798# time-stamp-start: "timestamp='"
1834# time-stamp-format: "%:y-%02m-%02d"1799# time-stamp-format: "%:y-%02m-%02d"
1835# time-stamp-end: "'"1800# time-stamp-end: "'"
diff --git a/build-aux/depcomp b/build-aux/depcomp
index 30379e2..b39f98f 100755
--- a/build-aux/depcomp
+++ b/build-aux/depcomp
@@ -1,4 +1,4 @@
1#!/bin/sh1#! /bin/sh
2# depcomp - compile a program generating dependencies as side-effects2# depcomp - compile a program generating dependencies as side-effects
33
4scriptversion=2016-01-11.22; # UTC4scriptversion=2016-01-11.22; # UTC
diff --git a/build-aux/install-sh b/build-aux/install-sh
index 0360b79..59990a1 100755
--- a/build-aux/install-sh
+++ b/build-aux/install-sh
@@ -1,7 +1,7 @@
1#!/bin/sh1#!/bin/sh
2# install - install a program, script, or datafile2# install - install a program, script, or datafile
33
4scriptversion=2016-01-11.22; # UTC4scriptversion=2014-09-12.12; # UTC
55
6# This originates from X11R5 (mit/util/scripts/install.sh), which was6# This originates from X11R5 (mit/util/scripts/install.sh), which was
7# later released in X11R6 (xc/config/util/install.sh) with the7# later released in X11R6 (xc/config/util/install.sh) with the
@@ -324,34 +324,41 @@ do
324 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.324 # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
325 ;;325 ;;
326 *)326 *)
327 # $RANDOM is not portable (e.g. dash); use it when possible to
328 # lower collision chance
327 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$329 tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
328 trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0330 trap 'ret=$?; rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir" 2>/dev/null; exit $ret' 0
329331
332 # As "mkdir -p" follows symlinks and we work in /tmp possibly; so
333 # create the $tmpdir first (and fail if unsuccessful) to make sure
334 # that nobody tries to guess the $tmpdir name.
330 if (umask $mkdir_umask &&335 if (umask $mkdir_umask &&
331 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1336 $mkdirprog $mkdir_mode "$tmpdir" &&
337 exec $mkdirprog $mkdir_mode -p -- "$tmpdir/a/b") >/dev/null 2>&1
332 then338 then
333 if test -z "$dir_arg" || {339 if test -z "$dir_arg" || {
334 # Check for POSIX incompatibilities with -m.340 # Check for POSIX incompatibilities with -m.
335 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or341 # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
336 # other-writable bit of parent directory when it shouldn't.342 # other-writable bit of parent directory when it shouldn't.
337 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.343 # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
338 ls_ld_tmpdir=`ls -ld "$tmpdir"`344 test_tmpdir="$tmpdir/a"
345 ls_ld_tmpdir=`ls -ld "$test_tmpdir"`
339 case $ls_ld_tmpdir in346 case $ls_ld_tmpdir in
340 d????-?r-*) different_mode=700;;347 d????-?r-*) different_mode=700;;
341 d????-?--*) different_mode=755;;348 d????-?--*) different_mode=755;;
342 *) false;;349 *) false;;
343 esac &&350 esac &&
344 $mkdirprog -m$different_mode -p -- "$tmpdir" && {351 $mkdirprog -m$different_mode -p -- "$test_tmpdir" && {
345 ls_ld_tmpdir_1=`ls -ld "$tmpdir"`352 ls_ld_tmpdir_1=`ls -ld "$test_tmpdir"`
346 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"353 test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
347 }354 }
348 }355 }
349 then posix_mkdir=:356 then posix_mkdir=:
350 fi357 fi
351 rmdir "$tmpdir/d" "$tmpdir"358 rmdir "$tmpdir/a/b" "$tmpdir/a" "$tmpdir"
352 else359 else
353 # Remove any dirs left behind by ancient mkdir implementations.360 # Remove any dirs left behind by ancient mkdir implementations.
354 rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null361 rmdir ./$mkdir_mode ./-p ./-- "$tmpdir" 2>/dev/null
355 fi362 fi
356 trap '' 0;;363 trap '' 0;;
357 esac;;364 esac;;
@@ -496,6 +503,6 @@ done
496# eval: (add-hook 'write-file-hooks 'time-stamp)503# eval: (add-hook 'write-file-hooks 'time-stamp)
497# time-stamp-start: "scriptversion="504# time-stamp-start: "scriptversion="
498# time-stamp-format: "%:y-%02m-%02d.%02H"505# time-stamp-format: "%:y-%02m-%02d.%02H"
499# time-stamp-time-zone: "UTC0"506# time-stamp-time-zone: "UTC"
500# time-stamp-end: "; # UTC"507# time-stamp-end: "; # UTC"
501# End:508# End:
diff --git a/build-aux/ltmain.sh b/build-aux/ltmain.sh
index 30be9c8..a736cf9 100644
--- a/build-aux/ltmain.sh
+++ b/build-aux/ltmain.sh
@@ -31,7 +31,7 @@
3131
32PROGRAM=libtool32PROGRAM=libtool
33PACKAGE=libtool33PACKAGE=libtool
34VERSION=2.4.634VERSION="2.4.6 Debian-2.4.6-2"
35package_revision=2.4.635package_revision=2.4.6
3636
3737
@@ -2068,12 +2068,12 @@ include the following information:
2068 compiler: $LTCC2068 compiler: $LTCC
2069 compiler flags: $LTCFLAGS2069 compiler flags: $LTCFLAGS
2070 linker: $LD (gnu? $with_gnu_ld)2070 linker: $LD (gnu? $with_gnu_ld)
2071 version: $progname (GNU libtool) 2.4.62071 version: $progname $scriptversion Debian-2.4.6-2
2072 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`2072 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q`
2073 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`2073 autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q`
20742074
2075Report bugs to <bug-libtool@gnu.org>.2075Report bugs to <bug-libtool@gnu.org>.
2076GNU libtool home page: <http://www.gnu.org/software/libtool/>.2076GNU libtool home page: <http://www.gnu.org/s/libtool/>.
2077General help using GNU software: <http://www.gnu.org/gethelp/>."2077General help using GNU software: <http://www.gnu.org/gethelp/>."
2078 exit 02078 exit 0
2079}2079}
@@ -7274,10 +7274,11 @@ func_mode_link ()
7274 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization7274 # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization
7275 # -specs=* GCC specs files7275 # -specs=* GCC specs files
7276 # -stdlib=* select c++ std lib with clang7276 # -stdlib=* select c++ std lib with clang
7277 # -fsanitize=* Clang/GCC memory and address sanitizer
7277 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \7278 -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
7278 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \7279 -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \
7279 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \7280 -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \
7280 -specs=*)7281 -specs=*|-fsanitize=*)
7281 func_quote_for_eval "$arg"7282 func_quote_for_eval "$arg"
7282 arg=$func_quote_for_eval_result7283 arg=$func_quote_for_eval_result
7283 func_append compile_command " $arg"7284 func_append compile_command " $arg"
@@ -7570,7 +7571,10 @@ func_mode_link ()
7570 case $pass in7571 case $pass in
7571 dlopen) libs=$dlfiles ;;7572 dlopen) libs=$dlfiles ;;
7572 dlpreopen) libs=$dlprefiles ;;7573 dlpreopen) libs=$dlprefiles ;;
7573 link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;7574 link)
7575 libs="$deplibs %DEPLIBS%"
7576 test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
7577 ;;
7574 esac7578 esac
7575 fi7579 fi
7576 if test lib,dlpreopen = "$linkmode,$pass"; then7580 if test lib,dlpreopen = "$linkmode,$pass"; then
@@ -7889,19 +7893,19 @@ func_mode_link ()
7889 # It is a libtool convenience library, so add in its objects.7893 # It is a libtool convenience library, so add in its objects.
7890 func_append convenience " $ladir/$objdir/$old_library"7894 func_append convenience " $ladir/$objdir/$old_library"
7891 func_append old_convenience " $ladir/$objdir/$old_library"7895 func_append old_convenience " $ladir/$objdir/$old_library"
7896 tmp_libs=
7897 for deplib in $dependency_libs; do
7898 deplibs="$deplib $deplibs"
7899 if $opt_preserve_dup_deps; then
7900 case "$tmp_libs " in
7901 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7902 esac
7903 fi
7904 func_append tmp_libs " $deplib"
7905 done
7892 elif test prog != "$linkmode" && test lib != "$linkmode"; then7906 elif test prog != "$linkmode" && test lib != "$linkmode"; then
7893 func_fatal_error "'$lib' is not a convenience library"7907 func_fatal_error "'$lib' is not a convenience library"
7894 fi7908 fi
7895 tmp_libs=
7896 for deplib in $dependency_libs; do
7897 deplibs="$deplib $deplibs"
7898 if $opt_preserve_dup_deps; then
7899 case "$tmp_libs " in
7900 *" $deplib "*) func_append specialdeplibs " $deplib" ;;
7901 esac
7902 fi
7903 func_append tmp_libs " $deplib"
7904 done
7905 continue7909 continue
7906 fi # $pass = conv7910 fi # $pass = conv
79077911
@@ -8825,6 +8829,9 @@ func_mode_link ()
8825 revision=$number_minor8829 revision=$number_minor
8826 lt_irix_increment=no8830 lt_irix_increment=no
8827 ;;8831 ;;
8832 *)
8833 func_fatal_configuration "$modename: unknown library version type '$version_type'"
8834 ;;
8828 esac8835 esac
8829 ;;8836 ;;
8830 no)8837 no)
diff --git a/build-aux/missing b/build-aux/missing
index b7e571e..f62bbae 100755
--- a/build-aux/missing
+++ b/build-aux/missing
@@ -1,9 +1,9 @@
1#!/bin/sh1#! /bin/sh
2# Common wrapper for a few potentially missing GNU programs.2# Common wrapper for a few potentially missing GNU programs.
33
4scriptversion=2016-01-11.22; # UTC4scriptversion=2013-10-28.13; # UTC
55
6# Copyright (C) 1996-2017 Free Software Foundation, Inc.6# Copyright (C) 1996-2014 Free Software Foundation, Inc.
7# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.7# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
88
9# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
@@ -210,6 +210,6 @@ exit $st
210# eval: (add-hook 'write-file-hooks 'time-stamp)210# eval: (add-hook 'write-file-hooks 'time-stamp)
211# time-stamp-start: "scriptversion="211# time-stamp-start: "scriptversion="
212# time-stamp-format: "%:y-%02m-%02d.%02H"212# time-stamp-format: "%:y-%02m-%02d.%02H"
213# time-stamp-time-zone: "UTC0"213# time-stamp-time-zone: "UTC"
214# time-stamp-end: "; # UTC"214# time-stamp-end: "; # UTC"
215# End:215# End:
diff --git a/clutter/Makefile.in b/clutter/Makefile.in
index 0827a9c..828e1ca 100644
--- a/clutter/Makefile.in
+++ b/clutter/Makefile.in
@@ -394,6 +394,7 @@ pdfdir = @pdfdir@
394prefix = @prefix@394prefix = @prefix@
395program_transform_name = @program_transform_name@395program_transform_name = @program_transform_name@
396psdir = @psdir@396psdir = @psdir@
397runstatedir = @runstatedir@
397sbindir = @sbindir@398sbindir = @sbindir@
398sharedstatedir = @sharedstatedir@399sharedstatedir = @sharedstatedir@
399srcdir = @srcdir@400srcdir = @srcdir@
diff --git a/clutter/aclocal.m4 b/clutter/aclocal.m4
index 56e90b0..3d31422 100644
--- a/clutter/aclocal.m4
+++ b/clutter/aclocal.m4
@@ -20,9 +20,224 @@ You have another version of autoconf. It may work, but is not guaranteed to.
20If you have problems, you may need to regenerate the build system entirely.20If you have problems, you may need to regenerate the build system entirely.
21To do so, use the procedure documented by the package, typically 'autoreconf'.])])21To do so, use the procedure documented by the package, typically 'autoreconf'.])])
2222
23# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-23# Configure paths for GLIB
24# serial 11 (pkg-config-0.29.1)24# Owen Taylor 1997-2001
25
26# Increment this whenever this file is changed.
27#serial 1
28
29dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
30dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
31dnl gthread, or gio is specified in MODULES, pass to pkg-config
32dnl
33AC_DEFUN([AM_PATH_GLIB_2_0],
34[dnl
35dnl Get the cflags and libraries from pkg-config
36dnl
37AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
38 , enable_glibtest=yes)
39
40 pkg_config_args=glib-2.0
41 for module in . $4
42 do
43 case "$module" in
44 gmodule)
45 pkg_config_args="$pkg_config_args gmodule-2.0"
46 ;;
47 gmodule-no-export)
48 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
49 ;;
50 gobject)
51 pkg_config_args="$pkg_config_args gobject-2.0"
52 ;;
53 gthread)
54 pkg_config_args="$pkg_config_args gthread-2.0"
55 ;;
56 gio*)
57 pkg_config_args="$pkg_config_args $module-2.0"
58 ;;
59 esac
60 done
61
62 PKG_PROG_PKG_CONFIG([0.16])
63
64 no_glib=""
65
66 if test "x$PKG_CONFIG" = x ; then
67 no_glib=yes
68 PKG_CONFIG=no
69 fi
70
71 min_glib_version=ifelse([$1], ,2.0.0,$1)
72 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
73
74 if test x$PKG_CONFIG != xno ; then
75 ## don't try to run the test against uninstalled libtool libs
76 if $PKG_CONFIG --uninstalled $pkg_config_args; then
77 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
78 enable_glibtest=no
79 fi
80
81 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
82 :
83 else
84 no_glib=yes
85 fi
86 fi
87
88 if test x"$no_glib" = x ; then
89 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
90 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
91 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
92 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
93
94 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
95 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
96 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
97 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
98 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
99 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
100 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
101 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
102 if test "x$enable_glibtest" = "xyes" ; then
103 ac_save_CFLAGS="$CFLAGS"
104 ac_save_LIBS="$LIBS"
105 CFLAGS="$CFLAGS $GLIB_CFLAGS"
106 LIBS="$GLIB_LIBS $LIBS"
107dnl
108dnl Now check if the installed GLIB is sufficiently new. (Also sanity
109dnl checks the results of pkg-config to some extent)
110dnl
111 rm -f conf.glibtest
112 AC_TRY_RUN([
113#include <glib.h>
114#include <stdio.h>
115#include <stdlib.h>
116
117int
118main (void)
119{
120 unsigned int major, minor, micro;
121
122 fclose (fopen ("conf.glibtest", "w"));
123
124 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
125 printf("%s, bad version string\n", "$min_glib_version");
126 exit(1);
127 }
128
129 if ((glib_major_version != $glib_config_major_version) ||
130 (glib_minor_version != $glib_config_minor_version) ||
131 (glib_micro_version != $glib_config_micro_version))
132 {
133 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
134 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
135 glib_major_version, glib_minor_version, glib_micro_version);
136 printf ("*** was found! If pkg-config was correct, then it is best\n");
137 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
138 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
139 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
140 printf("*** required on your system.\n");
141 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
142 printf("*** to point to the correct configuration files\n");
143 }
144 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
145 (glib_minor_version != GLIB_MINOR_VERSION) ||
146 (glib_micro_version != GLIB_MICRO_VERSION))
147 {
148 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
149 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
150 printf("*** library (version %d.%d.%d)\n",
151 glib_major_version, glib_minor_version, glib_micro_version);
152 }
153 else
154 {
155 if ((glib_major_version > major) ||
156 ((glib_major_version == major) && (glib_minor_version > minor)) ||
157 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
158 {
159 return 0;
160 }
161 else
162 {
163 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
164 glib_major_version, glib_minor_version, glib_micro_version);
165 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
166 major, minor, micro);
167 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
168 printf("***\n");
169 printf("*** If you have already installed a sufficiently new version, this error\n");
170 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
171 printf("*** being found. The easiest way to fix this is to remove the old version\n");
172 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
173 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
174 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
175 printf("*** so that the correct libraries are found at run-time))\n");
176 }
177 }
178 return 1;
179}
180],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
181 CFLAGS="$ac_save_CFLAGS"
182 LIBS="$ac_save_LIBS"
183 fi
184 fi
185 if test "x$no_glib" = x ; then
186 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
187 ifelse([$2], , :, [$2])
188 else
189 AC_MSG_RESULT(no)
190 if test "$PKG_CONFIG" = "no" ; then
191 echo "*** A new enough version of pkg-config was not found."
192 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
193 else
194 if test -f conf.glibtest ; then
195 :
196 else
197 echo "*** Could not run GLIB test program, checking why..."
198 ac_save_CFLAGS="$CFLAGS"
199 ac_save_LIBS="$LIBS"
200 CFLAGS="$CFLAGS $GLIB_CFLAGS"
201 LIBS="$LIBS $GLIB_LIBS"
202 AC_TRY_LINK([
203#include <glib.h>
204#include <stdio.h>
205], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
206 [ echo "*** The test program compiled, but did not run. This usually means"
207 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
208 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
209 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
210 echo "*** to the installed location Also, make sure you have run ldconfig if that"
211 echo "*** is required on your system"
212 echo "***"
213 echo "*** If you have an old version installed, it is best to remove it, although"
214 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
215 [ echo "*** The test program failed to compile or link. See the file config.log for the"
216 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
217 CFLAGS="$ac_save_CFLAGS"
218 LIBS="$ac_save_LIBS"
219 fi
220 fi
221 GLIB_CFLAGS=""
222 GLIB_LIBS=""
223 GLIB_GENMARSHAL=""
224 GOBJECT_QUERY=""
225 GLIB_MKENUMS=""
226 GLIB_COMPILE_RESOURCES=""
227 ifelse([$3], , :, [$3])
228 fi
229 AC_SUBST(GLIB_CFLAGS)
230 AC_SUBST(GLIB_LIBS)
231 AC_SUBST(GLIB_GENMARSHAL)
232 AC_SUBST(GOBJECT_QUERY)
233 AC_SUBST(GLIB_MKENUMS)
234 AC_SUBST(GLIB_COMPILE_RESOURCES)
235 rm -f conf.glibtest
236])
25237
238dnl pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
239dnl serial 11 (pkg-config-0.29.1)
240dnl
26dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.241dnl Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
27dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>242dnl Copyright © 2012-2015 Dan Nicholson <dbn.lists@gmail.com>
28dnl243dnl
@@ -296,289 +511,6 @@ AS_VAR_COPY([$1], [pkg_cv_][$1])
296AS_VAR_IF([$1], [""], [$5], [$4])dnl511AS_VAR_IF([$1], [""], [$5], [$4])dnl
297])dnl PKG_CHECK_VAR512])dnl PKG_CHECK_VAR
298513
299dnl PKG_WITH_MODULES(VARIABLE-PREFIX, MODULES,
300dnl [ACTION-IF-FOUND],[ACTION-IF-NOT-FOUND],
301dnl [DESCRIPTION], [DEFAULT])
302dnl ------------------------------------------
303dnl
304dnl Prepare a "--with-" configure option using the lowercase
305dnl [VARIABLE-PREFIX] name, merging the behaviour of AC_ARG_WITH and
306dnl PKG_CHECK_MODULES in a single macro.
307AC_DEFUN([PKG_WITH_MODULES],
308[
309m4_pushdef([with_arg], m4_tolower([$1]))
310
311m4_pushdef([description],
312 [m4_default([$5], [build with ]with_arg[ support])])
313
314m4_pushdef([def_arg], [m4_default([$6], [auto])])
315m4_pushdef([def_action_if_found], [AS_TR_SH([with_]with_arg)=yes])
316m4_pushdef([def_action_if_not_found], [AS_TR_SH([with_]with_arg)=no])
317
318m4_case(def_arg,
319 [yes],[m4_pushdef([with_without], [--without-]with_arg)],
320 [m4_pushdef([with_without],[--with-]with_arg)])
321
322AC_ARG_WITH(with_arg,
323 AS_HELP_STRING(with_without, description[ @<:@default=]def_arg[@:>@]),,
324 [AS_TR_SH([with_]with_arg)=def_arg])
325
326AS_CASE([$AS_TR_SH([with_]with_arg)],
327 [yes],[PKG_CHECK_MODULES([$1],[$2],$3,$4)],
328 [auto],[PKG_CHECK_MODULES([$1],[$2],
329 [m4_n([def_action_if_found]) $3],
330 [m4_n([def_action_if_not_found]) $4])])
331
332m4_popdef([with_arg])
333m4_popdef([description])
334m4_popdef([def_arg])
335
336])dnl PKG_WITH_MODULES
337
338dnl PKG_HAVE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
339dnl [DESCRIPTION], [DEFAULT])
340dnl -----------------------------------------------
341dnl
342dnl Convenience macro to trigger AM_CONDITIONAL after PKG_WITH_MODULES
343dnl check._[VARIABLE-PREFIX] is exported as make variable.
344AC_DEFUN([PKG_HAVE_WITH_MODULES],
345[
346PKG_WITH_MODULES([$1],[$2],,,[$3],[$4])
347
348AM_CONDITIONAL([HAVE_][$1],
349 [test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"])
350])dnl PKG_HAVE_WITH_MODULES
351
352dnl PKG_HAVE_DEFINE_WITH_MODULES(VARIABLE-PREFIX, MODULES,
353dnl [DESCRIPTION], [DEFAULT])
354dnl ------------------------------------------------------
355dnl
356dnl Convenience macro to run AM_CONDITIONAL and AC_DEFINE after
357dnl PKG_WITH_MODULES check. HAVE_[VARIABLE-PREFIX] is exported as make
358dnl and preprocessor variable.
359AC_DEFUN([PKG_HAVE_DEFINE_WITH_MODULES],
360[
361PKG_HAVE_WITH_MODULES([$1],[$2],[$3],[$4])
362
363AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"],
364 [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])])
365])dnl PKG_HAVE_DEFINE_WITH_MODULES
366
367# Configure paths for GLIB
368# Owen Taylor 1997-2001
369
370# Increment this whenever this file is changed.
371#serial 1
372
373dnl AM_PATH_GLIB_2_0([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
374dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if gmodule, gobject,
375dnl gthread, or gio is specified in MODULES, pass to pkg-config
376dnl
377AC_DEFUN([AM_PATH_GLIB_2_0],
378[dnl
379dnl Get the cflags and libraries from pkg-config
380dnl
381AC_ARG_ENABLE(glibtest, [ --disable-glibtest do not try to compile and run a test GLIB program],
382 , enable_glibtest=yes)
383
384 pkg_config_args=glib-2.0
385 for module in . $4
386 do
387 case "$module" in
388 gmodule)
389 pkg_config_args="$pkg_config_args gmodule-2.0"
390 ;;
391 gmodule-no-export)
392 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
393 ;;
394 gobject)
395 pkg_config_args="$pkg_config_args gobject-2.0"
396 ;;
397 gthread)
398 pkg_config_args="$pkg_config_args gthread-2.0"
399 ;;
400 gio*)
401 pkg_config_args="$pkg_config_args $module-2.0"
402 ;;
403 esac
404 done
405
406 PKG_PROG_PKG_CONFIG([0.16])
407
408 no_glib=""
409
410 if test "x$PKG_CONFIG" = x ; then
411 no_glib=yes
412 PKG_CONFIG=no
413 fi
414
415 min_glib_version=ifelse([$1], ,2.0.0,$1)
416 AC_MSG_CHECKING(for GLIB - version >= $min_glib_version)
417
418 if test x$PKG_CONFIG != xno ; then
419 ## don't try to run the test against uninstalled libtool libs
420 if $PKG_CONFIG --uninstalled $pkg_config_args; then
421 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
422 enable_glibtest=no
423 fi
424
425 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
426 :
427 else
428 no_glib=yes
429 fi
430 fi
431
432 if test x"$no_glib" = x ; then
433 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
434 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
435 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
436 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
437
438 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
439 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
440 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
441 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
442 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
443 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
444 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
445 sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
446 if test "x$enable_glibtest" = "xyes" ; then
447 ac_save_CFLAGS="$CFLAGS"
448 ac_save_LIBS="$LIBS"
449 CFLAGS="$CFLAGS $GLIB_CFLAGS"
450 LIBS="$GLIB_LIBS $LIBS"
451dnl
452dnl Now check if the installed GLIB is sufficiently new. (Also sanity
453dnl checks the results of pkg-config to some extent)
454dnl
455 rm -f conf.glibtest
456 AC_TRY_RUN([
457#include <glib.h>
458#include <stdio.h>
459#include <stdlib.h>
460
461int
462main (void)
463{
464 unsigned int major, minor, micro;
465
466 fclose (fopen ("conf.glibtest", "w"));
467
468 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, &micro) != 3) {
469 printf("%s, bad version string\n", "$min_glib_version");
470 exit(1);
471 }
472
473 if ((glib_major_version != $glib_config_major_version) ||
474 (glib_minor_version != $glib_config_minor_version) ||
475 (glib_micro_version != $glib_config_micro_version))
476 {
477 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
478 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
479 glib_major_version, glib_minor_version, glib_micro_version);
480 printf ("*** was found! If pkg-config was correct, then it is best\n");
481 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
482 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
483 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
484 printf("*** required on your system.\n");
485 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
486 printf("*** to point to the correct configuration files\n");
487 }
488 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
489 (glib_minor_version != GLIB_MINOR_VERSION) ||
490 (glib_micro_version != GLIB_MICRO_VERSION))
491 {
492 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
493 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
494 printf("*** library (version %d.%d.%d)\n",
495 glib_major_version, glib_minor_version, glib_micro_version);
496 }
497 else
498 {
499 if ((glib_major_version > major) ||
500 ((glib_major_version == major) && (glib_minor_version > minor)) ||
501 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
502 {
503 return 0;
504 }
505 else
506 {
507 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
508 glib_major_version, glib_minor_version, glib_micro_version);
509 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
510 major, minor, micro);
511 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
512 printf("***\n");
513 printf("*** If you have already installed a sufficiently new version, this error\n");
514 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
515 printf("*** being found. The easiest way to fix this is to remove the old version\n");
516 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
517 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
518 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
519 printf("*** so that the correct libraries are found at run-time))\n");
520 }
521 }
522 return 1;
523}
524],, no_glib=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
525 CFLAGS="$ac_save_CFLAGS"
526 LIBS="$ac_save_LIBS"
527 fi
528 fi
529 if test "x$no_glib" = x ; then
530 AC_MSG_RESULT(yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version))
531 ifelse([$2], , :, [$2])
532 else
533 AC_MSG_RESULT(no)
534 if test "$PKG_CONFIG" = "no" ; then
535 echo "*** A new enough version of pkg-config was not found."
536 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
537 else
538 if test -f conf.glibtest ; then
539 :
540 else
541 echo "*** Could not run GLIB test program, checking why..."
542 ac_save_CFLAGS="$CFLAGS"
543 ac_save_LIBS="$LIBS"
544 CFLAGS="$CFLAGS $GLIB_CFLAGS"
545 LIBS="$LIBS $GLIB_LIBS"
546 AC_TRY_LINK([
547#include <glib.h>
548#include <stdio.h>
549], [ return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); ],
550 [ echo "*** The test program compiled, but did not run. This usually means"
551 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
552 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
553 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
554 echo "*** to the installed location Also, make sure you have run ldconfig if that"
555 echo "*** is required on your system"
556 echo "***"
557 echo "*** If you have an old version installed, it is best to remove it, although"
558 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" ],
559 [ echo "*** The test program failed to compile or link. See the file config.log for the"
560 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."])
561 CFLAGS="$ac_save_CFLAGS"
562 LIBS="$ac_save_LIBS"
563 fi
564 fi
565 GLIB_CFLAGS=""
566 GLIB_LIBS=""
567 GLIB_GENMARSHAL=""
568 GOBJECT_QUERY=""
569 GLIB_MKENUMS=""
570 GLIB_COMPILE_RESOURCES=""
571 ifelse([$3], , :, [$3])
572 fi
573 AC_SUBST(GLIB_CFLAGS)
574 AC_SUBST(GLIB_LIBS)
575 AC_SUBST(GLIB_GENMARSHAL)
576 AC_SUBST(GOBJECT_QUERY)
577 AC_SUBST(GLIB_MKENUMS)
578 AC_SUBST(GLIB_COMPILE_RESOURCES)
579 rm -f conf.glibtest
580])
581
582# Copyright (C) 2002-2017 Free Software Foundation, Inc.514# Copyright (C) 2002-2017 Free Software Foundation, Inc.
583#515#
584# This file is free software; the Free Software Foundation516# This file is free software; the Free Software Foundation
diff --git a/clutter/build/Makefile.in b/clutter/build/Makefile.in
index d7be1ec..2539c63 100644
--- a/clutter/build/Makefile.in
+++ b/clutter/build/Makefile.in
@@ -372,6 +372,7 @@ pdfdir = @pdfdir@
372prefix = @prefix@372prefix = @prefix@
373program_transform_name = @program_transform_name@373program_transform_name = @program_transform_name@
374psdir = @psdir@374psdir = @psdir@
375runstatedir = @runstatedir@
375sbindir = @sbindir@376sbindir = @sbindir@
376sharedstatedir = @sharedstatedir@377sharedstatedir = @sharedstatedir@
377srcdir = @srcdir@378srcdir = @srcdir@
diff --git a/clutter/build/autotools/Makefile.in b/clutter/build/autotools/Makefile.in
index 098b030..dd6aaba 100644
--- a/clutter/build/autotools/Makefile.in
+++ b/clutter/build/autotools/Makefile.in
@@ -311,6 +311,7 @@ pdfdir = @pdfdir@
311prefix = @prefix@311prefix = @prefix@
312program_transform_name = @program_transform_name@312program_transform_name = @program_transform_name@
313psdir = @psdir@313psdir = @psdir@
314runstatedir = @runstatedir@
314sbindir = @sbindir@315sbindir = @sbindir@
315sharedstatedir = @sharedstatedir@316sharedstatedir = @sharedstatedir@
316srcdir = @srcdir@317srcdir = @srcdir@
diff --git a/clutter/build/autotools/libtool.m4 b/clutter/build/autotools/libtool.m4
index a644432..ee80844 100644
--- a/clutter/build/autotools/libtool.m4
+++ b/clutter/build/autotools/libtool.m4
@@ -728,7 +728,6 @@ _LT_CONFIG_SAVE_COMMANDS([
728 cat <<_LT_EOF >> "$cfgfile"728 cat <<_LT_EOF >> "$cfgfile"
729#! $SHELL729#! $SHELL
730# Generated automatically by $as_me ($PACKAGE) $VERSION730# Generated automatically by $as_me ($PACKAGE) $VERSION
731# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
732# NOTE: Changes made to this file will be lost: look at ltmain.sh.731# NOTE: Changes made to this file will be lost: look at ltmain.sh.
733732
734# Provide generalized library-building support services.733# Provide generalized library-building support services.
@@ -2867,9 +2866,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2867 # before this can be enabled.2866 # before this can be enabled.
2868 hardcode_into_libs=yes2867 hardcode_into_libs=yes
28692868
2870 # Add ABI-specific directories to the system library path.
2871 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
2872
2873 # Ideally, we could use ldconfig to report *all* directores which are2869 # Ideally, we could use ldconfig to report *all* directores which are
2874 # searched for libraries, however this is still not possible. Aside from not2870 # searched for libraries, however this is still not possible. Aside from not
2875 # being certain /sbin/ldconfig is available, command2871 # being certain /sbin/ldconfig is available, command
@@ -2878,7 +2874,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2878 # appending ld.so.conf contents (and includes) to the search path.2874 # appending ld.so.conf contents (and includes) to the search path.
2879 if test -f /etc/ld.so.conf; then2875 if test -f /etc/ld.so.conf; then
2880 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' ' '`2876 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' ' '`
2881 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"2877 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
2882 fi2878 fi
28832879
2884 # We used to test for /lib/ld.so.1 and disable shared libraries on2880 # We used to test for /lib/ld.so.1 and disable shared libraries on
@@ -2890,6 +2886,18 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
2890 dynamic_linker='GNU/Linux ld.so'2886 dynamic_linker='GNU/Linux ld.so'
2891 ;;2887 ;;
28922888
2889netbsdelf*-gnu)
2890 version_type=linux
2891 need_lib_prefix=no
2892 need_version=no
2893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
2894 soname_spec='${libname}${release}${shared_ext}$major'
2895 shlibpath_var=LD_LIBRARY_PATH
2896 shlibpath_overrides_runpath=no
2897 hardcode_into_libs=yes
2898 dynamic_linker='NetBSD ld.elf_so'
2899 ;;
2900
2893netbsd*)2901netbsd*)
2894 version_type=sunos2902 version_type=sunos
2895 need_lib_prefix=no2903 need_lib_prefix=no
@@ -3549,7 +3557,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
3549 lt_cv_deplibs_check_method=pass_all3557 lt_cv_deplibs_check_method=pass_all
3550 ;;3558 ;;
35513559
3552netbsd*)3560netbsd* | netbsdelf*-gnu)
3553 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then3561 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
3554 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'3562 lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
3555 else3563 else
@@ -4427,7 +4435,7 @@ m4_if([$1], [CXX], [
4427 ;;4435 ;;
4428 esac4436 esac
4429 ;;4437 ;;
4430 netbsd*)4438 netbsd* | netbsdelf*-gnu)
4431 ;;4439 ;;
4432 *qnx* | *nto*)4440 *qnx* | *nto*)
4433 # QNX uses GNU C++, but need to define -shared option too, otherwise4441 # QNX uses GNU C++, but need to define -shared option too, otherwise
@@ -4939,6 +4947,9 @@ m4_if([$1], [CXX], [
4939 ;;4947 ;;
4940 esac4948 esac
4941 ;;4949 ;;
4950 linux* | k*bsd*-gnu | gnu*)
4951 _LT_TAGVAR(link_all_deplibs, $1)=no
4952 ;;
4942 *)4953 *)
4943 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'4954 _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
4944 ;;4955 ;;
@@ -5001,6 +5012,9 @@ dnl Note also adjust exclude_expsyms for C++ above.
5001 openbsd* | bitrig*)5012 openbsd* | bitrig*)
5002 with_gnu_ld=no5013 with_gnu_ld=no
5003 ;;5014 ;;
5015 linux* | k*bsd*-gnu | gnu*)
5016 _LT_TAGVAR(link_all_deplibs, $1)=no
5017 ;;
5004 esac5018 esac
50055019
5006 _LT_TAGVAR(ld_shlibs, $1)=yes5020 _LT_TAGVAR(ld_shlibs, $1)=yes
@@ -5255,7 +5269,7 @@ _LT_EOF
5255 fi5269 fi
5256 ;;5270 ;;
52575271
5258 netbsd*)5272 netbsd* | netbsdelf*-gnu)
5259 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then5273 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5260 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'5274 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
5261 wlarc=5275 wlarc=
@@ -5776,6 +5790,7 @@ _LT_EOF
5776 if test yes = "$lt_cv_irix_exported_symbol"; then5790 if test yes = "$lt_cv_irix_exported_symbol"; then
5777 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'5791 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib'
5778 fi5792 fi
5793 _LT_TAGVAR(link_all_deplibs, $1)=no
5779 else5794 else
5780 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'5795 _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib'
5781 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'5796 _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -exports_file $export_symbols -o $lib'
@@ -5797,7 +5812,7 @@ _LT_EOF
5797 esac5812 esac
5798 ;;5813 ;;
57995814
5800 netbsd*)5815 netbsd* | netbsdelf*-gnu)
5801 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then5816 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
5802 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out5817 _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
5803 else5818 else
diff --git a/clutter/build/compile b/clutter/build/compile
index de0005d..a85b723 100755
--- a/clutter/build/compile
+++ b/clutter/build/compile
@@ -1,9 +1,9 @@
1#!/bin/sh1#! /bin/sh
2# Wrapper for compilers which do not understand '-c -o'.2# Wrapper for compilers which do not understand '-c -o'.
33
4scriptversion=2016-01-11.22; # UTC4scriptversion=2012-10-14.11; # UTC
55
6# Copyright (C) 1999-2017 Free Software Foundation, Inc.6# Copyright (C) 1999-2014 Free Software Foundation, Inc.
7# Written by Tom Tromey <tromey@cygnus.com>.7# Written by Tom Tromey <tromey@cygnus.com>.
8#8#
9# This program is free software; you can redistribute it and/or modify9# This program is free software; you can redistribute it and/or modify
@@ -255,8 +255,7 @@ EOF
255 echo "compile $scriptversion"255 echo "compile $scriptversion"
256 exit $?256 exit $?
257 ;;257 ;;
258 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe | \258 cl | *[/\\]cl | cl.exe | *[/\\]cl.exe )
259 icl | *[/\\]icl | icl.exe | *[/\\]icl.exe )
260 func_cl_wrapper "$@" # Doesn't return...259 func_cl_wrapper "$@" # Doesn't return...
261 ;;260 ;;
262esac261esac
@@ -343,6 +342,6 @@ exit $ret
343# eval: (add-hook 'write-file-hooks 'time-stamp)342# eval: (add-hook 'write-file-hooks 'time-stamp)
344# time-stamp-start: "scriptversion="343# time-stamp-start: "scriptversion="
345# time-stamp-format: "%:y-%02m-%02d.%02H"344# time-stamp-format: "%:y-%02m-%02d.%02H"
346# time-stamp-time-zone: "UTC0"345# time-stamp-time-zone: "UTC"
347# time-stamp-end: "; # UTC"346# time-stamp-end: "; # UTC"
348# End:347# End:
diff --git a/clutter/build/config.guess b/clutter/build/config.guess
index 717b228..f50dcdb 100755
--- a/clutter/build/config.guess
+++ b/clutter/build/config.guess
@@ -1,8 +1,8 @@
1#!/bin/sh1#! /bin/sh
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright 1992-2017 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5timestamp='2017-08-08'5timestamp='2018-02-24'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@ timestamp='2017-08-08'
15# General Public License for more details.15# General Public License for more details.
16#16#
17# You should have received a copy of the GNU General Public License17# 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/>.
19#19#
20# As a special exception to the GNU General Public License, if you20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a21# distribute this file as part of a program that contains a
@@ -27,7 +27,7 @@ timestamp='2017-08-08'
27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
28#28#
29# You can get the latest version of this script from:29# 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.guess30# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
31#31#
32# Please send patches to <config-patches@gnu.org>.32# Please send patches to <config-patches@gnu.org>.
3333
@@ -39,7 +39,7 @@ Usage: $0 [OPTION]
3939
40Output the configuration name of the system \`$me' is run on.40Output the configuration name of the system \`$me' is run on.
4141
42Operation modes:42Options:
43 -h, --help print this help, then exit43 -h, --help print this help, then exit
44 -t, --time-stamp print date of last modification, then exit44 -t, --time-stamp print date of last modification, then exit
45 -v, --version print version number, then exit45 -v, --version print version number, then exit
@@ -50,7 +50,7 @@ version="\
50GNU config.guess ($timestamp)50GNU config.guess ($timestamp)
5151
52Originally written by Per Bothner.52Originally written by Per Bothner.
53Copyright 1992-2017 Free Software Foundation, Inc.53Copyright 1992-2018 Free Software Foundation, Inc.
5454
55This is free software; see the source for copying conditions. There is NO55This is free software; see the source for copying conditions. There is NO
56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -107,9 +107,9 @@ trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
107dummy=$tmp/dummy ;107dummy=$tmp/dummy ;
108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
109case $CC_FOR_BUILD,$HOST_CC,$CC in109case $CC_FOR_BUILD,$HOST_CC,$CC in
110 ,,) echo "int x;" > $dummy.c ;110 ,,) echo "int x;" > "$dummy.c" ;
111 for c in cc gcc c89 c99 ; do111 for c in cc gcc c89 c99 ; do
112 if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
113 CC_FOR_BUILD="$c"; break ;113 CC_FOR_BUILD="$c"; break ;
114 fi ;114 fi ;
115 done ;115 done ;
@@ -132,14 +132,14 @@ UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134134
135case "${UNAME_SYSTEM}" in135case "$UNAME_SYSTEM" in
136Linux|GNU|GNU/*)136Linux|GNU|GNU/*)
137 # If the system lacks a compiler, then just pick glibc.137 # If the system lacks a compiler, then just pick glibc.
138 # We could probably try harder.138 # We could probably try harder.
139 LIBC=gnu139 LIBC=gnu
140140
141 eval $set_cc_for_build141 eval "$set_cc_for_build"
142 cat <<-EOF > $dummy.c142 cat <<-EOF > "$dummy.c"
143 #include <features.h>143 #include <features.h>
144 #if defined(__UCLIBC__)144 #if defined(__UCLIBC__)
145 LIBC=uclibc145 LIBC=uclibc
@@ -149,13 +149,20 @@ Linux|GNU|GNU/*)
149 LIBC=gnu149 LIBC=gnu
150 #endif150 #endif
151 EOF151 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
153 ;;160 ;;
154esac161esac
155162
156# Note: order is significant - the case branches are not exclusive.163# Note: order is significant - the case branches are not exclusive.
157164
158case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in165case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
159 *:NetBSD:*:*)166 *:NetBSD:*:*)
160 # NetBSD (nbsd) targets should (where applicable) match one or167 # NetBSD (nbsd) targets should (where applicable) match one or
161 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,168 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
@@ -169,30 +176,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
169 # portion of the name. We always set it to "unknown".176 # portion of the name. We always set it to "unknown".
170 sysctl="sysctl -n hw.machine_arch"177 sysctl="sysctl -n hw.machine_arch"
171 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \178 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
172 /sbin/$sysctl 2>/dev/null || \179 "/sbin/$sysctl" 2>/dev/null || \
173 /usr/sbin/$sysctl 2>/dev/null || \180 "/usr/sbin/$sysctl" 2>/dev/null || \
174 echo unknown)`181 echo unknown)`
175 case "${UNAME_MACHINE_ARCH}" in182 case "$UNAME_MACHINE_ARCH" in
176 armeb) machine=armeb-unknown ;;183 armeb) machine=armeb-unknown ;;
177 arm*) machine=arm-unknown ;;184 arm*) machine=arm-unknown ;;
178 sh3el) machine=shl-unknown ;;185 sh3el) machine=shl-unknown ;;
179 sh3eb) machine=sh-unknown ;;186 sh3eb) machine=sh-unknown ;;
180 sh5el) machine=sh5le-unknown ;;187 sh5el) machine=sh5le-unknown ;;
181 earmv*)188 earmv*)
182 arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'`189 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'`190 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
184 machine=${arch}${endian}-unknown191 machine="${arch}${endian}"-unknown
185 ;;192 ;;
186 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;193 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;
187 esac194 esac
188 # The Operating System including object format, if it has switched195 # The Operating System including object format, if it has switched
189 # to ELF recently (or will in the future) and ABI.196 # to ELF recently (or will in the future) and ABI.
190 case "${UNAME_MACHINE_ARCH}" in197 case "$UNAME_MACHINE_ARCH" in
191 earm*)198 earm*)
192 os=netbsdelf199 os=netbsdelf
193 ;;200 ;;
194 arm*|i386|m68k|ns32k|sh3*|sparc|vax)201 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
195 eval $set_cc_for_build202 eval "$set_cc_for_build"
196 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
197 | grep -q __ELF__204 | grep -q __ELF__
198 then205 then
@@ -208,10 +215,10 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
208 ;;215 ;;
209 esac216 esac
210 # Determine ABI tags.217 # Determine ABI tags.
211 case "${UNAME_MACHINE_ARCH}" in218 case "$UNAME_MACHINE_ARCH" in
212 earm*)219 earm*)
213 expr='s/^earmv[0-9]/-eabi/;s/eb$//'220 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"`
215 ;;222 ;;
216 esac223 esac
217 # The OS release224 # The OS release
@@ -219,49 +226,55 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
219 # thus, need a distinct triplet. However, they do not need226 # thus, need a distinct triplet. However, they do not need
220 # kernel version information, so it can be replaced with a227 # kernel version information, so it can be replaced with a
221 # suitable tag, in the style of linux-gnu.228 # suitable tag, in the style of linux-gnu.
222 case "${UNAME_VERSION}" in229 case "$UNAME_VERSION" in
223 Debian*)230 Debian*)
224 release='-gnu'231 release='-gnu'
225 ;;232 ;;
226 *)233 *)
227 release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2`234 release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2`
228 ;;235 ;;
229 esac236 esac
230 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:237 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
231 # contains redundant information, the shorter form:238 # contains redundant information, the shorter form:
232 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
233 echo "${machine}-${os}${release}${abi}"240 echo "$machine-${os}${release}${abi}"
234 exit ;;241 exit ;;
235 *:Bitrig:*:*)242 *:Bitrig:*:*)
236 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`243 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"
238 exit ;;245 exit ;;
239 *:OpenBSD:*:*)246 *:OpenBSD:*:*)
240 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`247 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"
242 exit ;;249 exit ;;
243 *:LibertyBSD:*:*)250 *:LibertyBSD:*:*)
244 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`251 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"
246 exit ;;256 exit ;;
247 *:ekkoBSD:*:*)257 *:ekkoBSD:*:*)
248 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
249 exit ;;259 exit ;;
250 *:SolidBSD:*:*)260 *:SolidBSD:*:*)
251 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
252 exit ;;262 exit ;;
253 macppc:MirBSD:*:*)263 macppc:MirBSD:*:*)
254 echo powerpc-unknown-mirbsd${UNAME_RELEASE}264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
255 exit ;;265 exit ;;
256 *:MirBSD:*:*)266 *:MirBSD:*:*)
257 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
258 exit ;;268 exit ;;
259 *:Sortix:*:*)269 *:Sortix:*:*)
260 echo ${UNAME_MACHINE}-unknown-sortix270 echo "$UNAME_MACHINE"-unknown-sortix
261 exit ;;271 exit ;;
262 *:Redox:*:*)272 *:Redox:*:*)
263 echo ${UNAME_MACHINE}-unknown-redox273 echo "$UNAME_MACHINE"-unknown-redox
264 exit ;;274 exit ;;
275 mips:OSF1:*.*)
276 echo mips-dec-osf1
277 exit ;;
265 alpha:OSF1:*:*)278 alpha:OSF1:*:*)
266 case $UNAME_RELEASE in279 case $UNAME_RELEASE in
267 *4.0)280 *4.0)
@@ -313,28 +326,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
313 # A Tn.n version is a released field test version.326 # A Tn.n version is a released field test version.
314 # A Xn.n version is an unreleased experimental baselevel.327 # A Xn.n version is an unreleased experimental baselevel.
315 # 1.2 uses "1.2" for uname -r.328 # 1.2 uses "1.2" for uname -r.
316 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`"
317 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
318 exitcode=$?331 exitcode=$?
319 trap '' 0332 trap '' 0
320 exit $exitcode ;;333 exit $exitcode ;;
321 Alpha\ *:Windows_NT*:*)
322 # How do we know it's Interix rather than the generic POSIX subsystem?
323 # Should we change UNAME_MACHINE based on the output of uname instead
324 # of the specific Alpha model?
325 echo alpha-pc-interix
326 exit ;;
327 21064:Windows_NT:50:3)
328 echo alpha-dec-winnt3.5
329 exit ;;
330 Amiga*:UNIX_System_V:4.0:*)334 Amiga*:UNIX_System_V:4.0:*)
331 echo m68k-unknown-sysv4335 echo m68k-unknown-sysv4
332 exit ;;336 exit ;;
333 *:[Aa]miga[Oo][Ss]:*:*)337 *:[Aa]miga[Oo][Ss]:*:*)
334 echo ${UNAME_MACHINE}-unknown-amigaos338 echo "$UNAME_MACHINE"-unknown-amigaos
335 exit ;;339 exit ;;
336 *:[Mm]orph[Oo][Ss]:*:*)340 *:[Mm]orph[Oo][Ss]:*:*)
337 echo ${UNAME_MACHINE}-unknown-morphos341 echo "$UNAME_MACHINE"-unknown-morphos
338 exit ;;342 exit ;;
339 *:OS/390:*:*)343 *:OS/390:*:*)
340 echo i370-ibm-openedition344 echo i370-ibm-openedition
@@ -346,7 +350,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
346 echo powerpc-ibm-os400350 echo powerpc-ibm-os400
347 exit ;;351 exit ;;
348 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)352 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
349 echo arm-acorn-riscix${UNAME_RELEASE}353 echo arm-acorn-riscix"$UNAME_RELEASE"
350 exit ;;354 exit ;;
351 arm*:riscos:*:*|arm*:RISCOS:*:*)355 arm*:riscos:*:*|arm*:RISCOS:*:*)
352 echo arm-unknown-riscos356 echo arm-unknown-riscos
@@ -373,19 +377,19 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
373 sparc) echo sparc-icl-nx7; exit ;;377 sparc) echo sparc-icl-nx7; exit ;;
374 esac ;;378 esac ;;
375 s390x:SunOS:*:*)379 s390x:SunOS:*:*)
376 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
377 exit ;;381 exit ;;
378 sun4H:SunOS:5.*:*)382 sun4H:SunOS:5.*:*)
379 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
380 exit ;;384 exit ;;
381 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)385 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
382 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"
383 exit ;;387 exit ;;
384 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)388 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
385 echo i386-pc-auroraux${UNAME_RELEASE}389 echo i386-pc-auroraux"$UNAME_RELEASE"
386 exit ;;390 exit ;;
387 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
388 eval $set_cc_for_build392 eval "$set_cc_for_build"
389 SUN_ARCH=i386393 SUN_ARCH=i386
390 # If there is a compiler, see if it is configured for 64-bit objects.394 # If there is a compiler, see if it is configured for 64-bit objects.
391 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
@@ -398,13 +402,13 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
398 SUN_ARCH=x86_64402 SUN_ARCH=x86_64
399 fi403 fi
400 fi404 fi
401 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
402 exit ;;406 exit ;;
403 sun4*:SunOS:6*:*)407 sun4*:SunOS:6*:*)
404 # According to config.sub, this is the proper way to canonicalize408 # According to config.sub, this is the proper way to canonicalize
405 # SunOS6. Hard to guess exactly what SunOS6 will be like, but409 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
406 # it's likely to be more like Solaris than SunOS4.410 # it's likely to be more like Solaris than SunOS4.
407 echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
408 exit ;;412 exit ;;
409 sun4*:SunOS:*:*)413 sun4*:SunOS:*:*)
410 case "`/usr/bin/arch -k`" in414 case "`/usr/bin/arch -k`" in
@@ -413,25 +417,25 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
413 ;;417 ;;
414 esac418 esac
415 # Japanese Language versions have a version number like `4.1.3-JL'.419 # Japanese Language versions have a version number like `4.1.3-JL'.
416 echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"
417 exit ;;421 exit ;;
418 sun3*:SunOS:*:*)422 sun3*:SunOS:*:*)
419 echo m68k-sun-sunos${UNAME_RELEASE}423 echo m68k-sun-sunos"$UNAME_RELEASE"
420 exit ;;424 exit ;;
421 sun*:*:4.2BSD:*)425 sun*:*:4.2BSD:*)
422 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`426 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
423 test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3427 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
424 case "`/bin/arch`" in428 case "`/bin/arch`" in
425 sun3)429 sun3)
426 echo m68k-sun-sunos${UNAME_RELEASE}430 echo m68k-sun-sunos"$UNAME_RELEASE"
427 ;;431 ;;
428 sun4)432 sun4)
429 echo sparc-sun-sunos${UNAME_RELEASE}433 echo sparc-sun-sunos"$UNAME_RELEASE"
430 ;;434 ;;
431 esac435 esac
432 exit ;;436 exit ;;
433 aushp:SunOS:*:*)437 aushp:SunOS:*:*)
434 echo sparc-auspex-sunos${UNAME_RELEASE}438 echo sparc-auspex-sunos"$UNAME_RELEASE"
435 exit ;;439 exit ;;
436 # The situation for MiNT is a little confusing. The machine name440 # The situation for MiNT is a little confusing. The machine name
437 # can be virtually everything (everything which is not441 # can be virtually everything (everything which is not
@@ -442,44 +446,44 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
442 # MiNT. But MiNT is downward compatible to TOS, so this should446 # MiNT. But MiNT is downward compatible to TOS, so this should
443 # be no problem.447 # be no problem.
444 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)448 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
445 echo m68k-atari-mint${UNAME_RELEASE}449 echo m68k-atari-mint"$UNAME_RELEASE"
446 exit ;;450 exit ;;
447 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)451 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
448 echo m68k-atari-mint${UNAME_RELEASE}452 echo m68k-atari-mint"$UNAME_RELEASE"
449 exit ;;453 exit ;;
450 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)454 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
451 echo m68k-atari-mint${UNAME_RELEASE}455 echo m68k-atari-mint"$UNAME_RELEASE"
452 exit ;;456 exit ;;
453 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)457 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
454 echo m68k-milan-mint${UNAME_RELEASE}458 echo m68k-milan-mint"$UNAME_RELEASE"
455 exit ;;459 exit ;;
456 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)460 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
457 echo m68k-hades-mint${UNAME_RELEASE}461 echo m68k-hades-mint"$UNAME_RELEASE"
458 exit ;;462 exit ;;
459 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)463 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
460 echo m68k-unknown-mint${UNAME_RELEASE}464 echo m68k-unknown-mint"$UNAME_RELEASE"
461 exit ;;465 exit ;;
462 m68k:machten:*:*)466 m68k:machten:*:*)
463 echo m68k-apple-machten${UNAME_RELEASE}467 echo m68k-apple-machten"$UNAME_RELEASE"
464 exit ;;468 exit ;;
465 powerpc:machten:*:*)469 powerpc:machten:*:*)
466 echo powerpc-apple-machten${UNAME_RELEASE}470 echo powerpc-apple-machten"$UNAME_RELEASE"
467 exit ;;471 exit ;;
468 RISC*:Mach:*:*)472 RISC*:Mach:*:*)
469 echo mips-dec-mach_bsd4.3473 echo mips-dec-mach_bsd4.3
470 exit ;;474 exit ;;
471 RISC*:ULTRIX:*:*)475 RISC*:ULTRIX:*:*)
472 echo mips-dec-ultrix${UNAME_RELEASE}476 echo mips-dec-ultrix"$UNAME_RELEASE"
473 exit ;;477 exit ;;
474 VAX*:ULTRIX*:*:*)478 VAX*:ULTRIX*:*:*)
475 echo vax-dec-ultrix${UNAME_RELEASE}479 echo vax-dec-ultrix"$UNAME_RELEASE"
476 exit ;;480 exit ;;
477 2020:CLIX:*:* | 2430:CLIX:*:*)481 2020:CLIX:*:* | 2430:CLIX:*:*)
478 echo clipper-intergraph-clix${UNAME_RELEASE}482 echo clipper-intergraph-clix"$UNAME_RELEASE"
479 exit ;;483 exit ;;
480 mips:*:*:UMIPS | mips:*:*:RISCos)484 mips:*:*:UMIPS | mips:*:*:RISCos)
481 eval $set_cc_for_build485 eval "$set_cc_for_build"
482 sed 's/^ //' << EOF >$dummy.c486 sed 's/^ //' << EOF > "$dummy.c"
483#ifdef __cplusplus487#ifdef __cplusplus
484#include <stdio.h> /* for printf() prototype */488#include <stdio.h> /* for printf() prototype */
485 int main (int argc, char *argv[]) {489 int main (int argc, char *argv[]) {
@@ -488,23 +492,23 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
488#endif492#endif
489 #if defined (host_mips) && defined (MIPSEB)493 #if defined (host_mips) && defined (MIPSEB)
490 #if defined (SYSTYPE_SYSV)494 #if defined (SYSTYPE_SYSV)
491 printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);495 printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
492 #endif496 #endif
493 #if defined (SYSTYPE_SVR4)497 #if defined (SYSTYPE_SVR4)
494 printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);498 printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
495 #endif499 #endif
496 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)500 #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
497 printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);501 printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
498 #endif502 #endif
499 #endif503 #endif
500 exit (-1);504 exit (-1);
501 }505 }
502EOF506EOF
503 $CC_FOR_BUILD -o $dummy $dummy.c &&507 $CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
504 dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&508 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
505 SYSTEM_NAME=`$dummy $dummyarg` &&509 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
506 { echo "$SYSTEM_NAME"; exit; }510 { echo "$SYSTEM_NAME"; exit; }
507 echo mips-mips-riscos${UNAME_RELEASE}511 echo mips-mips-riscos"$UNAME_RELEASE"
508 exit ;;512 exit ;;
509 Motorola:PowerMAX_OS:*:*)513 Motorola:PowerMAX_OS:*:*)
510 echo powerpc-motorola-powermax514 echo powerpc-motorola-powermax
@@ -530,17 +534,17 @@ EOF
530 AViiON:dgux:*:*)534 AViiON:dgux:*:*)
531 # DG/UX returns AViiON for all architectures535 # DG/UX returns AViiON for all architectures
532 UNAME_PROCESSOR=`/usr/bin/uname -p`536 UNAME_PROCESSOR=`/usr/bin/uname -p`
533 if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]537 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
534 then538 then
535 if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \539 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \
536 [ ${TARGET_BINARY_INTERFACE}x = x ]540 [ "$TARGET_BINARY_INTERFACE"x = x ]
537 then541 then
538 echo m88k-dg-dgux${UNAME_RELEASE}542 echo m88k-dg-dgux"$UNAME_RELEASE"
539 else543 else
540 echo m88k-dg-dguxbcs${UNAME_RELEASE}544 echo m88k-dg-dguxbcs"$UNAME_RELEASE"
541 fi545 fi
542 else546 else
543 echo i586-dg-dgux${UNAME_RELEASE}547 echo i586-dg-dgux"$UNAME_RELEASE"
544 fi548 fi
545 exit ;;549 exit ;;
546 M88*:DolphinOS:*:*) # DolphinOS (SVR3)550 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
@@ -557,7 +561,7 @@ EOF
557 echo m68k-tektronix-bsd561 echo m68k-tektronix-bsd
558 exit ;;562 exit ;;
559 *:IRIX*:*:*)563 *:IRIX*:*:*)
560 echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"
561 exit ;;565 exit ;;
562 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.566 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
563 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id567 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
@@ -569,14 +573,14 @@ EOF
569 if [ -x /usr/bin/oslevel ] ; then573 if [ -x /usr/bin/oslevel ] ; then
570 IBM_REV=`/usr/bin/oslevel`574 IBM_REV=`/usr/bin/oslevel`
571 else575 else
572 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}576 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
573 fi577 fi
574 echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
575 exit ;;579 exit ;;
576 *:AIX:2:3)580 *:AIX:2:3)
577 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
578 eval $set_cc_for_build582 eval "$set_cc_for_build"
579 sed 's/^ //' << EOF >$dummy.c583 sed 's/^ //' << EOF > "$dummy.c"
580 #include <sys/systemcfg.h>584 #include <sys/systemcfg.h>
581585
582 main()586 main()
@@ -587,7 +591,7 @@ EOF
587 exit(0);591 exit(0);
588 }592 }
589EOF593EOF
590 if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`594 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
591 then595 then
592 echo "$SYSTEM_NAME"596 echo "$SYSTEM_NAME"
593 else597 else
@@ -601,7 +605,7 @@ EOF
601 exit ;;605 exit ;;
602 *:AIX:*:[4567])606 *:AIX:*:[4567])
603 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`607 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
604 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then608 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
605 IBM_ARCH=rs6000609 IBM_ARCH=rs6000
606 else610 else
607 IBM_ARCH=powerpc611 IBM_ARCH=powerpc
@@ -610,18 +614,18 @@ EOF
610 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |614 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |
611 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`615 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
612 else616 else
613 IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}617 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
614 fi618 fi
615 echo ${IBM_ARCH}-ibm-aix${IBM_REV}619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
616 exit ;;620 exit ;;
617 *:AIX:*:*)621 *:AIX:*:*)
618 echo rs6000-ibm-aix622 echo rs6000-ibm-aix
619 exit ;;623 exit ;;
620 ibmrt:4.4BSD:*|romp-ibm:BSD:*)624 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
621 echo romp-ibm-bsd4.4625 echo romp-ibm-bsd4.4
622 exit ;;626 exit ;;
623 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and627 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
624 echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to628 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
625 exit ;; # report: romp-ibm BSD 4.3629 exit ;; # report: romp-ibm BSD 4.3
626 *:BOSX:*:*)630 *:BOSX:*:*)
627 echo rs6000-bull-bosx631 echo rs6000-bull-bosx
@@ -636,28 +640,28 @@ EOF
636 echo m68k-hp-bsd4.4640 echo m68k-hp-bsd4.4
637 exit ;;641 exit ;;
638 9000/[34678]??:HP-UX:*:*)642 9000/[34678]??:HP-UX:*:*)
639 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`643 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
640 case "${UNAME_MACHINE}" in644 case "$UNAME_MACHINE" in
641 9000/31? ) HP_ARCH=m68000 ;;645 9000/31?) HP_ARCH=m68000 ;;
642 9000/[34]?? ) HP_ARCH=m68k ;;646 9000/[34]??) HP_ARCH=m68k ;;
643 9000/[678][0-9][0-9])647 9000/[678][0-9][0-9])
644 if [ -x /usr/bin/getconf ]; then648 if [ -x /usr/bin/getconf ]; then
645 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`649 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
646 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`650 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
647 case "${sc_cpu_version}" in651 case "$sc_cpu_version" in
648 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0652 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
649 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1653 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
650 532) # CPU_PA_RISC2_0654 532) # CPU_PA_RISC2_0
651 case "${sc_kernel_bits}" in655 case "$sc_kernel_bits" in
652 32) HP_ARCH=hppa2.0n ;;656 32) HP_ARCH=hppa2.0n ;;
653 64) HP_ARCH=hppa2.0w ;;657 64) HP_ARCH=hppa2.0w ;;
654 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20658 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
655 esac ;;659 esac ;;
656 esac660 esac
657 fi661 fi
658 if [ "${HP_ARCH}" = "" ]; then662 if [ "$HP_ARCH" = "" ]; then
659 eval $set_cc_for_build663 eval "$set_cc_for_build"
660 sed 's/^ //' << EOF >$dummy.c664 sed 's/^ //' << EOF > "$dummy.c"
661665
662 #define _HPUX_SOURCE666 #define _HPUX_SOURCE
663 #include <stdlib.h>667 #include <stdlib.h>
@@ -690,13 +694,13 @@ EOF
690 exit (0);694 exit (0);
691 }695 }
692EOF696EOF
693 (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"`
694 test -z "$HP_ARCH" && HP_ARCH=hppa698 test -z "$HP_ARCH" && HP_ARCH=hppa
695 fi ;;699 fi ;;
696 esac700 esac
697 if [ ${HP_ARCH} = hppa2.0w ]701 if [ "$HP_ARCH" = hppa2.0w ]
698 then702 then
699 eval $set_cc_for_build703 eval "$set_cc_for_build"
700704
701 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
702 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -715,15 +719,15 @@ EOF
715 HP_ARCH=hppa64719 HP_ARCH=hppa64
716 fi720 fi
717 fi721 fi
718 echo ${HP_ARCH}-hp-hpux${HPUX_REV}722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
719 exit ;;723 exit ;;
720 ia64:HP-UX:*:*)724 ia64:HP-UX:*:*)
721 HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`725 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`
722 echo ia64-hp-hpux${HPUX_REV}726 echo ia64-hp-hpux"$HPUX_REV"
723 exit ;;727 exit ;;
724 3050*:HI-UX:*:*)728 3050*:HI-UX:*:*)
725 eval $set_cc_for_build729 eval "$set_cc_for_build"
726 sed 's/^ //' << EOF >$dummy.c730 sed 's/^ //' << EOF > "$dummy.c"
727 #include <unistd.h>731 #include <unistd.h>
728 int732 int
729 main ()733 main ()
@@ -748,11 +752,11 @@ EOF
748 exit (0);752 exit (0);
749 }753 }
750EOF754EOF
751 $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&755 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
752 { echo "$SYSTEM_NAME"; exit; }756 { echo "$SYSTEM_NAME"; exit; }
753 echo unknown-hitachi-hiuxwe2757 echo unknown-hitachi-hiuxwe2
754 exit ;;758 exit ;;
755 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )759 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
756 echo hppa1.1-hp-bsd760 echo hppa1.1-hp-bsd
757 exit ;;761 exit ;;
758 9000/8??:4.3bsd:*:*)762 9000/8??:4.3bsd:*:*)
@@ -761,7 +765,7 @@ EOF
761 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)765 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
762 echo hppa1.0-hp-mpeix766 echo hppa1.0-hp-mpeix
763 exit ;;767 exit ;;
764 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )768 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
765 echo hppa1.1-hp-osf769 echo hppa1.1-hp-osf
766 exit ;;770 exit ;;
767 hp8??:OSF1:*:*)771 hp8??:OSF1:*:*)
@@ -769,9 +773,9 @@ EOF
769 exit ;;773 exit ;;
770 i*86:OSF1:*:*)774 i*86:OSF1:*:*)
771 if [ -x /usr/sbin/sysversion ] ; then775 if [ -x /usr/sbin/sysversion ] ; then
772 echo ${UNAME_MACHINE}-unknown-osf1mk776 echo "$UNAME_MACHINE"-unknown-osf1mk
773 else777 else
774 echo ${UNAME_MACHINE}-unknown-osf1778 echo "$UNAME_MACHINE"-unknown-osf1
775 fi779 fi
776 exit ;;780 exit ;;
777 parisc*:Lites*:*:*)781 parisc*:Lites*:*:*)
@@ -796,128 +800,109 @@ EOF
796 echo c4-convex-bsd800 echo c4-convex-bsd
797 exit ;;801 exit ;;
798 CRAY*Y-MP:*:*:*)802 CRAY*Y-MP:*:*:*)
799 echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
800 exit ;;804 exit ;;
801 CRAY*[A-Z]90:*:*:*)805 CRAY*[A-Z]90:*:*:*)
802 echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \806 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
803 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \807 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
804 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \808 -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
805 -e 's/\.[^.]*$/.X/'809 -e 's/\.[^.]*$/.X/'
806 exit ;;810 exit ;;
807 CRAY*TS:*:*:*)811 CRAY*TS:*:*:*)
808 echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
809 exit ;;813 exit ;;
810 CRAY*T3E:*:*:*)814 CRAY*T3E:*:*:*)
811 echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
812 exit ;;816 exit ;;
813 CRAY*SV1:*:*:*)817 CRAY*SV1:*:*:*)
814 echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
815 exit ;;819 exit ;;
816 *:UNICOS/mp:*:*)820 *:UNICOS/mp:*:*)
817 echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
818 exit ;;822 exit ;;
819 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)823 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
820 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`824 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
821 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`825 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
822 FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`826 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
823 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
824 exit ;;828 exit ;;
825 5000:UNIX_System_V:4.*:*)829 5000:UNIX_System_V:4.*:*)
826 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`830 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
827 FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`831 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
828 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
829 exit ;;833 exit ;;
830 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)834 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
831 echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
832 exit ;;836 exit ;;
833 sparc*:BSD/OS:*:*)837 sparc*:BSD/OS:*:*)
834 echo sparc-unknown-bsdi${UNAME_RELEASE}838 echo sparc-unknown-bsdi"$UNAME_RELEASE"
835 exit ;;839 exit ;;
836 *:BSD/OS:*:*)840 *:BSD/OS:*:*)
837 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
838 exit ;;842 exit ;;
839 *:FreeBSD:*:*)843 *:FreeBSD:*:*)
840 UNAME_PROCESSOR=`/usr/bin/uname -p`844 UNAME_PROCESSOR=`/usr/bin/uname -p`
841 case ${UNAME_PROCESSOR} in845 case "$UNAME_PROCESSOR" in
842 amd64)846 amd64)
843 UNAME_PROCESSOR=x86_64 ;;847 UNAME_PROCESSOR=x86_64 ;;
844 i386)848 i386)
845 UNAME_PROCESSOR=i586 ;;849 UNAME_PROCESSOR=i586 ;;
846 esac850 esac
847 echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
848 exit ;;852 exit ;;
849 i*:CYGWIN*:*)853 i*:CYGWIN*:*)
850 echo ${UNAME_MACHINE}-pc-cygwin854 echo "$UNAME_MACHINE"-pc-cygwin
851 exit ;;855 exit ;;
852 *:MINGW64*:*)856 *:MINGW64*:*)
853 echo ${UNAME_MACHINE}-pc-mingw64857 echo "$UNAME_MACHINE"-pc-mingw64
854 exit ;;858 exit ;;
855 *:MINGW*:*)859 *:MINGW*:*)
856 echo ${UNAME_MACHINE}-pc-mingw32860 echo "$UNAME_MACHINE"-pc-mingw32
857 exit ;;861 exit ;;
858 *:MSYS*:*)862 *:MSYS*:*)
859 echo ${UNAME_MACHINE}-pc-msys863 echo "$UNAME_MACHINE"-pc-msys
860 exit ;;
861 i*:windows32*:*)
862 # uname -m includes "-pc" on this system.
863 echo ${UNAME_MACHINE}-mingw32
864 exit ;;864 exit ;;
865 i*:PW*:*)865 i*:PW*:*)
866 echo ${UNAME_MACHINE}-pc-pw32866 echo "$UNAME_MACHINE"-pc-pw32
867 exit ;;867 exit ;;
868 *:Interix*:*)868 *:Interix*:*)
869 case ${UNAME_MACHINE} in869 case "$UNAME_MACHINE" in
870 x86)870 x86)
871 echo i586-pc-interix${UNAME_RELEASE}871 echo i586-pc-interix"$UNAME_RELEASE"
872 exit ;;872 exit ;;
873 authenticamd | genuineintel | EM64T)873 authenticamd | genuineintel | EM64T)
874 echo x86_64-unknown-interix${UNAME_RELEASE}874 echo x86_64-unknown-interix"$UNAME_RELEASE"
875 exit ;;875 exit ;;
876 IA64)876 IA64)
877 echo ia64-unknown-interix${UNAME_RELEASE}877 echo ia64-unknown-interix"$UNAME_RELEASE"
878 exit ;;878 exit ;;
879 esac ;;879 esac ;;
880 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
881 echo i${UNAME_MACHINE}-pc-mks
882 exit ;;
883 8664:Windows_NT:*)
884 echo x86_64-pc-mks
885 exit ;;
886 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
887 # How do we know it's Interix rather than the generic POSIX subsystem?
888 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
889 # UNAME_MACHINE based on the output of uname instead of i386?
890 echo i586-pc-interix
891 exit ;;
892 i*:UWIN*:*)880 i*:UWIN*:*)
893 echo ${UNAME_MACHINE}-pc-uwin881 echo "$UNAME_MACHINE"-pc-uwin
894 exit ;;882 exit ;;
895 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)883 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
896 echo x86_64-unknown-cygwin884 echo x86_64-unknown-cygwin
897 exit ;;885 exit ;;
898 p*:CYGWIN*:*)
899 echo powerpcle-unknown-cygwin
900 exit ;;
901 prep*:SunOS:5.*:*)886 prep*:SunOS:5.*:*)
902 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"
903 exit ;;888 exit ;;
904 *:GNU:*:*)889 *:GNU:*:*)
905 # the GNU system890 # the GNU system
906 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,/.*$,,'`"
907 exit ;;892 exit ;;
908 *:GNU/*:*:*)893 *:GNU/*:*:*)
909 # other systems with GNU libc and userland894 # other systems with GNU libc and userland
910 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"
911 exit ;;896 exit ;;
912 i*86:Minix:*:*)897 i*86:Minix:*:*)
913 echo ${UNAME_MACHINE}-pc-minix898 echo "$UNAME_MACHINE"-pc-minix
914 exit ;;899 exit ;;
915 aarch64:Linux:*:*)900 aarch64:Linux:*:*)
916 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
917 exit ;;902 exit ;;
918 aarch64_be:Linux:*:*)903 aarch64_be:Linux:*:*)
919 UNAME_MACHINE=aarch64_be904 UNAME_MACHINE=aarch64_be
920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
921 exit ;;906 exit ;;
922 alpha:Linux:*:*)907 alpha:Linux:*:*)
923 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -931,63 +916,63 @@ EOF
931 esac916 esac
932 objdump --private-headers /bin/sh | grep -q ld.so.1917 objdump --private-headers /bin/sh | grep -q ld.so.1
933 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi918 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
934 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
935 exit ;;920 exit ;;
936 arc:Linux:*:* | arceb:Linux:*:*)921 arc:Linux:*:* | arceb:Linux:*:*)
937 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
938 exit ;;923 exit ;;
939 arm*:Linux:*:*)924 arm*:Linux:*:*)
940 eval $set_cc_for_build925 eval "$set_cc_for_build"
941 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
942 | grep -q __ARM_EABI__927 | grep -q __ARM_EABI__
943 then928 then
944 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
945 else930 else
946 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \931 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
947 | grep -q __ARM_PCS_VFP932 | grep -q __ARM_PCS_VFP
948 then933 then
949 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
950 else935 else
951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
952 fi937 fi
953 fi938 fi
954 exit ;;939 exit ;;
955 avr32*:Linux:*:*)940 avr32*:Linux:*:*)
956 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
957 exit ;;942 exit ;;
958 cris:Linux:*:*)943 cris:Linux:*:*)
959 echo ${UNAME_MACHINE}-axis-linux-${LIBC}944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
960 exit ;;945 exit ;;
961 crisv32:Linux:*:*)946 crisv32:Linux:*:*)
962 echo ${UNAME_MACHINE}-axis-linux-${LIBC}947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
963 exit ;;948 exit ;;
964 e2k:Linux:*:*)949 e2k:Linux:*:*)
965 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
966 exit ;;951 exit ;;
967 frv:Linux:*:*)952 frv:Linux:*:*)
968 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
969 exit ;;954 exit ;;
970 hexagon:Linux:*:*)955 hexagon:Linux:*:*)
971 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
972 exit ;;957 exit ;;
973 i*86:Linux:*:*)958 i*86:Linux:*:*)
974 echo ${UNAME_MACHINE}-pc-linux-${LIBC}959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
975 exit ;;960 exit ;;
976 ia64:Linux:*:*)961 ia64:Linux:*:*)
977 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
978 exit ;;963 exit ;;
979 k1om:Linux:*:*)964 k1om:Linux:*:*)
980 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
981 exit ;;966 exit ;;
982 m32r*:Linux:*:*)967 m32r*:Linux:*:*)
983 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
984 exit ;;969 exit ;;
985 m68*:Linux:*:*)970 m68*:Linux:*:*)
986 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
987 exit ;;972 exit ;;
988 mips:Linux:*:* | mips64:Linux:*:*)973 mips:Linux:*:* | mips64:Linux:*:*)
989 eval $set_cc_for_build974 eval "$set_cc_for_build"
990 sed 's/^ //' << EOF >$dummy.c975 sed 's/^ //' << EOF > "$dummy.c"
991 #undef CPU976 #undef CPU
992 #undef ${UNAME_MACHINE}977 #undef ${UNAME_MACHINE}
993 #undef ${UNAME_MACHINE}el978 #undef ${UNAME_MACHINE}el
@@ -1001,70 +986,74 @@ EOF
1001 #endif986 #endif
1002 #endif987 #endif
1003EOF988EOF
1004 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"
1005 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
1006 ;;991 ;;
1007 mips64el:Linux:*:*)992 mips64el:Linux:*:*)
1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1009 exit ;;994 exit ;;
1010 openrisc*:Linux:*:*)995 openrisc*:Linux:*:*)
1011 echo or1k-unknown-linux-${LIBC}996 echo or1k-unknown-linux-"$LIBC"
1012 exit ;;997 exit ;;
1013 or32:Linux:*:* | or1k*:Linux:*:*)998 or32:Linux:*:* | or1k*:Linux:*:*)
1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1015 exit ;;1000 exit ;;
1016 padre:Linux:*:*)1001 padre:Linux:*:*)
1017 echo sparc-unknown-linux-${LIBC}1002 echo sparc-unknown-linux-"$LIBC"
1018 exit ;;1003 exit ;;
1019 parisc64:Linux:*:* | hppa64:Linux:*:*)1004 parisc64:Linux:*:* | hppa64:Linux:*:*)
1020 echo hppa64-unknown-linux-${LIBC}1005 echo hppa64-unknown-linux-"$LIBC"
1021 exit ;;1006 exit ;;
1022 parisc:Linux:*:* | hppa:Linux:*:*)1007 parisc:Linux:*:* | hppa:Linux:*:*)
1023 # Look for CPU level1008 # Look for CPU level
1024 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in1009 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1025 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1026 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1027 *) echo hppa-unknown-linux-${LIBC} ;;1012 *) echo hppa-unknown-linux-"$LIBC" ;;
1028 esac1013 esac
1029 exit ;;1014 exit ;;
1030 ppc64:Linux:*:*)1015 ppc64:Linux:*:*)
1031 echo powerpc64-unknown-linux-${LIBC}1016 echo powerpc64-unknown-linux-"$LIBC"
1032 exit ;;1017 exit ;;
1033 ppc:Linux:*:*)1018 ppc:Linux:*:*)
1034 echo powerpc-unknown-linux-${LIBC}1019 echo powerpc-unknown-linux-"$LIBC"
1035 exit ;;1020 exit ;;
1036 ppc64le:Linux:*:*)1021 ppc64le:Linux:*:*)
1037 echo powerpc64le-unknown-linux-${LIBC}1022 echo powerpc64le-unknown-linux-"$LIBC"
1038 exit ;;1023 exit ;;
1039 ppcle:Linux:*:*)1024 ppcle:Linux:*:*)
1040 echo powerpcle-unknown-linux-${LIBC}1025 echo powerpcle-unknown-linux-"$LIBC"
1041 exit ;;1026 exit ;;
1042 riscv32:Linux:*:* | riscv64:Linux:*:*)1027 riscv32:Linux:*:* | riscv64:Linux:*:*)
1043 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1044 exit ;;1029 exit ;;
1045 s390:Linux:*:* | s390x:Linux:*:*)1030 s390:Linux:*:* | s390x:Linux:*:*)
1046 echo ${UNAME_MACHINE}-ibm-linux-${LIBC}1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1047 exit ;;1032 exit ;;
1048 sh64*:Linux:*:*)1033 sh64*:Linux:*:*)
1049 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1050 exit ;;1035 exit ;;
1051 sh*:Linux:*:*)1036 sh*:Linux:*:*)
1052 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1053 exit ;;1038 exit ;;
1054 sparc:Linux:*:* | sparc64:Linux:*:*)1039 sparc:Linux:*:* | sparc64:Linux:*:*)
1055 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1056 exit ;;1041 exit ;;
1057 tile*:Linux:*:*)1042 tile*:Linux:*:*)
1058 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1059 exit ;;1044 exit ;;
1060 vax:Linux:*:*)1045 vax:Linux:*:*)
1061 echo ${UNAME_MACHINE}-dec-linux-${LIBC}1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1062 exit ;;1047 exit ;;
1063 x86_64:Linux:*:*)1048 x86_64:Linux:*:*)
1064 echo ${UNAME_MACHINE}-pc-linux-${LIBC}1049 if objdump -f /bin/sh | grep -q elf32-x86-64; then
1050 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"x32
1051 else
1052 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
1053 fi
1065 exit ;;1054 exit ;;
1066 xtensa*:Linux:*:*)1055 xtensa*:Linux:*:*)
1067 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}1056 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1068 exit ;;1057 exit ;;
1069 i*86:DYNIX/ptx:4*:*)1058 i*86:DYNIX/ptx:4*:*)
1070 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1059 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1078,34 +1067,34 @@ EOF
1078 # I am not positive that other SVR4 systems won't match this,1067 # I am not positive that other SVR4 systems won't match this,
1079 # I just have to hope. -- rms.1068 # I just have to hope. -- rms.
1080 # Use sysv4.2uw... so that sysv4* matches it.1069 # Use sysv4.2uw... so that sysv4* matches it.
1081 echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}1070 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1082 exit ;;1071 exit ;;
1083 i*86:OS/2:*:*)1072 i*86:OS/2:*:*)
1084 # If we were able to find `uname', then EMX Unix compatibility1073 # If we were able to find `uname', then EMX Unix compatibility
1085 # is probably installed.1074 # is probably installed.
1086 echo ${UNAME_MACHINE}-pc-os2-emx1075 echo "$UNAME_MACHINE"-pc-os2-emx
1087 exit ;;1076 exit ;;
1088 i*86:XTS-300:*:STOP)1077 i*86:XTS-300:*:STOP)
1089 echo ${UNAME_MACHINE}-unknown-stop1078 echo "$UNAME_MACHINE"-unknown-stop
1090 exit ;;1079 exit ;;
1091 i*86:atheos:*:*)1080 i*86:atheos:*:*)
1092 echo ${UNAME_MACHINE}-unknown-atheos1081 echo "$UNAME_MACHINE"-unknown-atheos
1093 exit ;;1082 exit ;;
1094 i*86:syllable:*:*)1083 i*86:syllable:*:*)
1095 echo ${UNAME_MACHINE}-pc-syllable1084 echo "$UNAME_MACHINE"-pc-syllable
1096 exit ;;1085 exit ;;
1097 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)1086 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1098 echo i386-unknown-lynxos${UNAME_RELEASE}1087 echo i386-unknown-lynxos"$UNAME_RELEASE"
1099 exit ;;1088 exit ;;
1100 i*86:*DOS:*:*)1089 i*86:*DOS:*:*)
1101 echo ${UNAME_MACHINE}-pc-msdosdjgpp1090 echo "$UNAME_MACHINE"-pc-msdosdjgpp
1102 exit ;;1091 exit ;;
1103 i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)1092 i*86:*:4.*:*)
1104 UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`1093 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1105 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then1094 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1106 echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}1095 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1107 else1096 else
1108 echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}1097 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1109 fi1098 fi
1110 exit ;;1099 exit ;;
1111 i*86:*:5:[678]*)1100 i*86:*:5:[678]*)
@@ -1115,12 +1104,12 @@ EOF
1115 *Pentium) UNAME_MACHINE=i586 ;;1104 *Pentium) UNAME_MACHINE=i586 ;;
1116 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;1105 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1117 esac1106 esac
1118 echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}1107 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"
1119 exit ;;1108 exit ;;
1120 i*86:*:3.2:*)1109 i*86:*:3.2:*)
1121 if test -f /usr/options/cb.name; then1110 if test -f /usr/options/cb.name; then
1122 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`1111 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1123 echo ${UNAME_MACHINE}-pc-isc$UNAME_REL1112 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1124 elif /bin/uname -X 2>/dev/null >/dev/null ; then1113 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1125 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`1114 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1126 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i4861115 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
@@ -1130,9 +1119,9 @@ EOF
1130 && UNAME_MACHINE=i6861119 && UNAME_MACHINE=i686
1131 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \1120 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1132 && UNAME_MACHINE=i6861121 && UNAME_MACHINE=i686
1133 echo ${UNAME_MACHINE}-pc-sco$UNAME_REL1122 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1134 else1123 else
1135 echo ${UNAME_MACHINE}-pc-sysv321124 echo "$UNAME_MACHINE"-pc-sysv32
1136 fi1125 fi
1137 exit ;;1126 exit ;;
1138 pc:*:*:*)1127 pc:*:*:*)
@@ -1152,9 +1141,9 @@ EOF
1152 exit ;;1141 exit ;;
1153 i860:*:4.*:*) # i860-SVR41142 i860:*:4.*:*) # i860-SVR4
1154 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then1143 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1155 echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR41144 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1156 else # Add other i860-SVR4 vendors below as they are discovered.1145 else # Add other i860-SVR4 vendors below as they are discovered.
1157 echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR41146 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1158 fi1147 fi
1159 exit ;;1148 exit ;;
1160 mini*:CTIX:SYS*5:*)1149 mini*:CTIX:SYS*5:*)
@@ -1174,9 +1163,9 @@ EOF
1174 test -r /etc/.relid \1163 test -r /etc/.relid \
1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1164 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1165 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1177 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1166 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1167 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1179 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1168 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1180 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)1169 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1181 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1170 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1182 && { echo i486-ncr-sysv4; exit; } ;;1171 && { echo i486-ncr-sysv4; exit; } ;;
@@ -1185,28 +1174,28 @@ EOF
1185 test -r /etc/.relid \1174 test -r /etc/.relid \
1186 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1175 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1187 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1176 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1188 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1177 && { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1189 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1178 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1190 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }1179 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1191 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \1180 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1192 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1181 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1193 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1182 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1194 echo m68k-unknown-lynxos${UNAME_RELEASE}1183 echo m68k-unknown-lynxos"$UNAME_RELEASE"
1195 exit ;;1184 exit ;;
1196 mc68030:UNIX_System_V:4.*:*)1185 mc68030:UNIX_System_V:4.*:*)
1197 echo m68k-atari-sysv41186 echo m68k-atari-sysv4
1198 exit ;;1187 exit ;;
1199 TSUNAMI:LynxOS:2.*:*)1188 TSUNAMI:LynxOS:2.*:*)
1200 echo sparc-unknown-lynxos${UNAME_RELEASE}1189 echo sparc-unknown-lynxos"$UNAME_RELEASE"
1201 exit ;;1190 exit ;;
1202 rs6000:LynxOS:2.*:*)1191 rs6000:LynxOS:2.*:*)
1203 echo rs6000-unknown-lynxos${UNAME_RELEASE}1192 echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1204 exit ;;1193 exit ;;
1205 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)1194 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1206 echo powerpc-unknown-lynxos${UNAME_RELEASE}1195 echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1207 exit ;;1196 exit ;;
1208 SM[BE]S:UNIX_SV:*:*)1197 SM[BE]S:UNIX_SV:*:*)
1209 echo mips-dde-sysv${UNAME_RELEASE}1198 echo mips-dde-sysv"$UNAME_RELEASE"
1210 exit ;;1199 exit ;;
1211 RM*:ReliantUNIX-*:*:*)1200 RM*:ReliantUNIX-*:*:*)
1212 echo mips-sni-sysv41201 echo mips-sni-sysv4
@@ -1217,7 +1206,7 @@ EOF
1217 *:SINIX-*:*:*)1206 *:SINIX-*:*:*)
1218 if uname -p 2>/dev/null >/dev/null ; then1207 if uname -p 2>/dev/null >/dev/null ; then
1219 UNAME_MACHINE=`(uname -p) 2>/dev/null`1208 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1220 echo ${UNAME_MACHINE}-sni-sysv41209 echo "$UNAME_MACHINE"-sni-sysv4
1221 else1210 else
1222 echo ns32k-sni-sysv1211 echo ns32k-sni-sysv
1223 fi1212 fi
@@ -1237,23 +1226,23 @@ EOF
1237 exit ;;1226 exit ;;
1238 i*86:VOS:*:*)1227 i*86:VOS:*:*)
1239 # From Paul.Green@stratus.com.1228 # From Paul.Green@stratus.com.
1240 echo ${UNAME_MACHINE}-stratus-vos1229 echo "$UNAME_MACHINE"-stratus-vos
1241 exit ;;1230 exit ;;
1242 *:VOS:*:*)1231 *:VOS:*:*)
1243 # From Paul.Green@stratus.com.1232 # From Paul.Green@stratus.com.
1244 echo hppa1.1-stratus-vos1233 echo hppa1.1-stratus-vos
1245 exit ;;1234 exit ;;
1246 mc68*:A/UX:*:*)1235 mc68*:A/UX:*:*)
1247 echo m68k-apple-aux${UNAME_RELEASE}1236 echo m68k-apple-aux"$UNAME_RELEASE"
1248 exit ;;1237 exit ;;
1249 news*:NEWS-OS:6*:*)1238 news*:NEWS-OS:6*:*)
1250 echo mips-sony-newsos61239 echo mips-sony-newsos6
1251 exit ;;1240 exit ;;
1252 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)1241 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1253 if [ -d /usr/nec ]; then1242 if [ -d /usr/nec ]; then
1254 echo mips-nec-sysv${UNAME_RELEASE}1243 echo mips-nec-sysv"$UNAME_RELEASE"
1255 else1244 else
1256 echo mips-unknown-sysv${UNAME_RELEASE}1245 echo mips-unknown-sysv"$UNAME_RELEASE"
1257 fi1246 fi
1258 exit ;;1247 exit ;;
1259 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1248 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
@@ -1272,39 +1261,39 @@ EOF
1272 echo x86_64-unknown-haiku1261 echo x86_64-unknown-haiku
1273 exit ;;1262 exit ;;
1274 SX-4:SUPER-UX:*:*)1263 SX-4:SUPER-UX:*:*)
1275 echo sx4-nec-superux${UNAME_RELEASE}1264 echo sx4-nec-superux"$UNAME_RELEASE"
1276 exit ;;1265 exit ;;
1277 SX-5:SUPER-UX:*:*)1266 SX-5:SUPER-UX:*:*)
1278 echo sx5-nec-superux${UNAME_RELEASE}1267 echo sx5-nec-superux"$UNAME_RELEASE"
1279 exit ;;1268 exit ;;
1280 SX-6:SUPER-UX:*:*)1269 SX-6:SUPER-UX:*:*)
1281 echo sx6-nec-superux${UNAME_RELEASE}1270 echo sx6-nec-superux"$UNAME_RELEASE"
1282 exit ;;1271 exit ;;
1283 SX-7:SUPER-UX:*:*)1272 SX-7:SUPER-UX:*:*)
1284 echo sx7-nec-superux${UNAME_RELEASE}1273 echo sx7-nec-superux"$UNAME_RELEASE"
1285 exit ;;1274 exit ;;
1286 SX-8:SUPER-UX:*:*)1275 SX-8:SUPER-UX:*:*)
1287 echo sx8-nec-superux${UNAME_RELEASE}1276 echo sx8-nec-superux"$UNAME_RELEASE"
1288 exit ;;1277 exit ;;
1289 SX-8R:SUPER-UX:*:*)1278 SX-8R:SUPER-UX:*:*)
1290 echo sx8r-nec-superux${UNAME_RELEASE}1279 echo sx8r-nec-superux"$UNAME_RELEASE"
1291 exit ;;1280 exit ;;
1292 SX-ACE:SUPER-UX:*:*)1281 SX-ACE:SUPER-UX:*:*)
1293 echo sxace-nec-superux${UNAME_RELEASE}1282 echo sxace-nec-superux"$UNAME_RELEASE"
1294 exit ;;1283 exit ;;
1295 Power*:Rhapsody:*:*)1284 Power*:Rhapsody:*:*)
1296 echo powerpc-apple-rhapsody${UNAME_RELEASE}1285 echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1297 exit ;;1286 exit ;;
1298 *:Rhapsody:*:*)1287 *:Rhapsody:*:*)
1299 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}1288 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1300 exit ;;1289 exit ;;
1301 *:Darwin:*:*)1290 *:Darwin:*:*)
1302 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1291 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1303 eval $set_cc_for_build1292 eval "$set_cc_for_build"
1304 if test "$UNAME_PROCESSOR" = unknown ; then1293 if test "$UNAME_PROCESSOR" = unknown ; then
1305 UNAME_PROCESSOR=powerpc1294 UNAME_PROCESSOR=powerpc
1306 fi1295 fi
1307 if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then1296 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then
1308 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then1297 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then
1309 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \1298 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1310 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \1299 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
@@ -1332,7 +1321,7 @@ EOF
1332 # that Apple uses in portable devices.1321 # that Apple uses in portable devices.
1333 UNAME_PROCESSOR=x86_641322 UNAME_PROCESSOR=x86_64
1334 fi1323 fi
1335 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1324 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1336 exit ;;1325 exit ;;
1337 *:procnto*:*:* | *:QNX:[0123456789]*:*)1326 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1338 UNAME_PROCESSOR=`uname -p`1327 UNAME_PROCESSOR=`uname -p`
@@ -1340,22 +1329,25 @@ EOF
1340 UNAME_PROCESSOR=i3861329 UNAME_PROCESSOR=i386
1341 UNAME_MACHINE=pc1330 UNAME_MACHINE=pc
1342 fi1331 fi
1343 echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1332 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1344 exit ;;1333 exit ;;
1345 *:QNX:*:4*)1334 *:QNX:*:4*)
1346 echo i386-pc-qnx1335 echo i386-pc-qnx
1347 exit ;;1336 exit ;;
1348 NEO-*:NONSTOP_KERNEL:*:*)1337 NEO-*:NONSTOP_KERNEL:*:*)
1349 echo neo-tandem-nsk${UNAME_RELEASE}1338 echo neo-tandem-nsk"$UNAME_RELEASE"
1350 exit ;;1339 exit ;;
1351 NSE-*:NONSTOP_KERNEL:*:*)1340 NSE-*:NONSTOP_KERNEL:*:*)
1352 echo nse-tandem-nsk${UNAME_RELEASE}1341 echo nse-tandem-nsk"$UNAME_RELEASE"
1353 exit ;;1342 exit ;;
1354 NSR-*:NONSTOP_KERNEL:*:*)1343 NSR-*:NONSTOP_KERNEL:*:*)
1355 echo nsr-tandem-nsk${UNAME_RELEASE}1344 echo nsr-tandem-nsk"$UNAME_RELEASE"
1345 exit ;;
1346 NSV-*:NONSTOP_KERNEL:*:*)
1347 echo nsv-tandem-nsk"$UNAME_RELEASE"
1356 exit ;;1348 exit ;;
1357 NSX-*:NONSTOP_KERNEL:*:*)1349 NSX-*:NONSTOP_KERNEL:*:*)
1358 echo nsx-tandem-nsk${UNAME_RELEASE}1350 echo nsx-tandem-nsk"$UNAME_RELEASE"
1359 exit ;;1351 exit ;;
1360 *:NonStop-UX:*:*)1352 *:NonStop-UX:*:*)
1361 echo mips-compaq-nonstopux1353 echo mips-compaq-nonstopux
@@ -1364,7 +1356,7 @@ EOF
1364 echo bs2000-siemens-sysv1356 echo bs2000-siemens-sysv
1365 exit ;;1357 exit ;;
1366 DS/*:UNIX_System_V:*:*)1358 DS/*:UNIX_System_V:*:*)
1367 echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}1359 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1368 exit ;;1360 exit ;;
1369 *:Plan9:*:*)1361 *:Plan9:*:*)
1370 # "uname -m" is not consistent, so use $cputype instead. 3861362 # "uname -m" is not consistent, so use $cputype instead. 386
@@ -1375,7 +1367,7 @@ EOF
1375 else1367 else
1376 UNAME_MACHINE="$cputype"1368 UNAME_MACHINE="$cputype"
1377 fi1369 fi
1378 echo ${UNAME_MACHINE}-unknown-plan91370 echo "$UNAME_MACHINE"-unknown-plan9
1379 exit ;;1371 exit ;;
1380 *:TOPS-10:*:*)1372 *:TOPS-10:*:*)
1381 echo pdp10-unknown-tops101373 echo pdp10-unknown-tops10
@@ -1396,14 +1388,14 @@ EOF
1396 echo pdp10-unknown-its1388 echo pdp10-unknown-its
1397 exit ;;1389 exit ;;
1398 SEI:*:*:SEIUX)1390 SEI:*:*:SEIUX)
1399 echo mips-sei-seiux${UNAME_RELEASE}1391 echo mips-sei-seiux"$UNAME_RELEASE"
1400 exit ;;1392 exit ;;
1401 *:DragonFly:*:*)1393 *:DragonFly:*:*)
1402 echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1394 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
1403 exit ;;1395 exit ;;
1404 *:*VMS:*:*)1396 *:*VMS:*:*)
1405 UNAME_MACHINE=`(uname -p) 2>/dev/null`1397 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1406 case "${UNAME_MACHINE}" in1398 case "$UNAME_MACHINE" in
1407 A*) echo alpha-dec-vms ; exit ;;1399 A*) echo alpha-dec-vms ; exit ;;
1408 I*) echo ia64-dec-vms ; exit ;;1400 I*) echo ia64-dec-vms ; exit ;;
1409 V*) echo vax-dec-vms ; exit ;;1401 V*) echo vax-dec-vms ; exit ;;
@@ -1412,32 +1404,44 @@ EOF
1412 echo i386-pc-xenix1404 echo i386-pc-xenix
1413 exit ;;1405 exit ;;
1414 i*86:skyos:*:*)1406 i*86:skyos:*:*)
1415 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'`1407 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"
1416 exit ;;1408 exit ;;
1417 i*86:rdos:*:*)1409 i*86:rdos:*:*)
1418 echo ${UNAME_MACHINE}-pc-rdos1410 echo "$UNAME_MACHINE"-pc-rdos
1419 exit ;;1411 exit ;;
1420 i*86:AROS:*:*)1412 i*86:AROS:*:*)
1421 echo ${UNAME_MACHINE}-pc-aros1413 echo "$UNAME_MACHINE"-pc-aros
1422 exit ;;1414 exit ;;
1423 x86_64:VMkernel:*:*)1415 x86_64:VMkernel:*:*)
1424 echo ${UNAME_MACHINE}-unknown-esx1416 echo "$UNAME_MACHINE"-unknown-esx
1425 exit ;;1417 exit ;;
1426 amd64:Isilon\ OneFS:*:*)1418 amd64:Isilon\ OneFS:*:*)
1427 echo x86_64-unknown-onefs1419 echo x86_64-unknown-onefs
1428 exit ;;1420 exit ;;
1429esac1421esac
14301422
1423echo "$0: unable to guess system type" >&2
1424
1425case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1426 mips:Linux | mips64:Linux)
1427 # If we got here on MIPS GNU/Linux, output extra information.
1428 cat >&2 <<EOF
1429
1430NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1431the system type. Please install a C compiler and try again.
1432EOF
1433 ;;
1434esac
1435
1431cat >&2 <<EOF1436cat >&2 <<EOF
1432$0: unable to guess system type
14331437
1434This script (version $timestamp), has failed to recognize the1438This script (version $timestamp), has failed to recognize the
1435operating system you are using. If your script is old, overwrite *all*1439operating system you are using. If your script is old, overwrite *all*
1436copies of config.guess and config.sub with the latest versions from:1440copies of config.guess and config.sub with the latest versions from:
14371441
1438 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess1442 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess
1439and1443and
1440 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub1444 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
14411445
1442If $0 has already been updated, send the following data and any1446If $0 has already been updated, send the following data and any
1443information you think might be pertinent to config-patches@gnu.org to1447information you think might be pertinent to config-patches@gnu.org to
@@ -1460,16 +1464,16 @@ hostinfo = `(hostinfo) 2>/dev/null`
1460/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`1464/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
1461/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`1465/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
14621466
1463UNAME_MACHINE = ${UNAME_MACHINE}1467UNAME_MACHINE = "$UNAME_MACHINE"
1464UNAME_RELEASE = ${UNAME_RELEASE}1468UNAME_RELEASE = "$UNAME_RELEASE"
1465UNAME_SYSTEM = ${UNAME_SYSTEM}1469UNAME_SYSTEM = "$UNAME_SYSTEM"
1466UNAME_VERSION = ${UNAME_VERSION}1470UNAME_VERSION = "$UNAME_VERSION"
1467EOF1471EOF
14681472
1469exit 11473exit 1
14701474
1471# Local variables:1475# Local variables:
1472# eval: (add-hook 'write-file-hooks 'time-stamp)1476# eval: (add-hook 'write-file-functions 'time-stamp)
1473# time-stamp-start: "timestamp='"1477# time-stamp-start: "timestamp='"
1474# time-stamp-format: "%:y-%02m-%02d"1478# time-stamp-format: "%:y-%02m-%02d"
1475# time-stamp-end: "'"1479# time-stamp-end: "'"
diff --git a/clutter/build/config.sub b/clutter/build/config.sub
index f4bafc1..1d8e98b 100755
--- a/clutter/build/config.sub
+++ b/clutter/build/config.sub
@@ -1,8 +1,8 @@
1#!/bin/sh1#! /bin/sh
2# Configuration validation subroutine script.2# Configuration validation subroutine script.
3# Copyright 1992-2017 Free Software Foundation, Inc.3# Copyright 1992-2018 Free Software Foundation, Inc.
44
5timestamp='2017-04-02'5timestamp='2018-02-22'
66
7# This file is free software; you can redistribute it and/or modify it7# This file is free software; you can redistribute it and/or modify it
8# under the terms of the GNU General Public License as published by8# under the terms of the GNU General Public License as published by
@@ -15,7 +15,7 @@ timestamp='2017-04-02'
15# General Public License for more details.15# General Public License for more details.
16#16#
17# You should have received a copy of the GNU General Public License17# 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/>.
19#19#
20# As a special exception to the GNU General Public License, if you20# As a special exception to the GNU General Public License, if you
21# distribute this file as part of a program that contains a21# distribute this file as part of a program that contains a
@@ -33,7 +33,7 @@ timestamp='2017-04-02'
33# Otherwise, we print the canonical config type on stdout and succeed.33# Otherwise, we print the canonical config type on stdout and succeed.
3434
35# You can get the latest version of this script from:35# 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.sub36# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub
3737
38# This file is supposed to be the same for all GNU packages38# This file is supposed to be the same for all GNU packages
39# and recognize all the CPU types, system types and aliases39# and recognize all the CPU types, system types and aliases
@@ -57,7 +57,7 @@ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS
5757
58Canonicalize a configuration name.58Canonicalize a configuration name.
5959
60Operation modes:60Options:
61 -h, --help print this help, then exit61 -h, --help print this help, then exit
62 -t, --time-stamp print date of last modification, then exit62 -t, --time-stamp print date of last modification, then exit
63 -v, --version print version number, then exit63 -v, --version print version number, then exit
@@ -67,7 +67,7 @@ Report bugs and patches to <config-patches@gnu.org>."
67version="\67version="\
68GNU config.sub ($timestamp)68GNU config.sub ($timestamp)
6969
70Copyright 1992-2017 Free Software Foundation, Inc.70Copyright 1992-2018 Free Software Foundation, Inc.
7171
72This is free software; see the source for copying conditions. There is NO72This is free software; see the source for copying conditions. There is NO
73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -94,7 +94,7 @@ while test $# -gt 0 ; do
9494
95 *local*)95 *local*)
96 # First pass through any local machine types.96 # First pass through any local machine types.
97 echo $197 echo "$1"
98 exit ;;98 exit ;;
9999
100 * )100 * )
@@ -112,7 +112,7 @@ esac
112112
113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).113# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
114# Here we must recognize all the valid KERNEL-OS combinations.114# Here we must recognize all the valid KERNEL-OS combinations.
115maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`115maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
116case $maybe_os in116case $maybe_os in
117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \117 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \118 linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
@@ -120,16 +120,16 @@ case $maybe_os in
120 kopensolaris*-gnu* | cloudabi*-eabi* | \120 kopensolaris*-gnu* | cloudabi*-eabi* | \
121 storm-chaos* | os2-emx* | rtmk-nova*)121 storm-chaos* | os2-emx* | rtmk-nova*)
122 os=-$maybe_os122 os=-$maybe_os
123 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`123 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
124 ;;124 ;;
125 android-linux)125 android-linux)
126 os=-linux-android126 os=-linux-android
127 basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown127 basic_machine=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
128 ;;128 ;;
129 *)129 *)
130 basic_machine=`echo $1 | sed 's/-[^-]*$//'`130 basic_machine=`echo "$1" | sed 's/-[^-]*$//'`
131 if [ $basic_machine != $1 ]131 if [ "$basic_machine" != "$1" ]
132 then os=`echo $1 | sed 's/.*-/-/'`132 then os=`echo "$1" | sed 's/.*-/-/'`
133 else os=; fi133 else os=; fi
134 ;;134 ;;
135esac135esac
@@ -178,44 +178,44 @@ case $os in
178 ;;178 ;;
179 -sco6)179 -sco6)
180 os=-sco5v6180 os=-sco5v6
181 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`181 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
182 ;;182 ;;
183 -sco5)183 -sco5)
184 os=-sco3.2v5184 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/'`
186 ;;186 ;;
187 -sco4)187 -sco4)
188 os=-sco3.2v4188 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/'`
190 ;;190 ;;
191 -sco3.2.[4-9]*)191 -sco3.2.[4-9]*)
192 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`192 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/'`
194 ;;194 ;;
195 -sco3.2v[4-9]*)195 -sco3.2v[4-9]*)
196 # Don't forget version if it is 3.2v4 or newer.196 # 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/'`
198 ;;198 ;;
199 -sco5v6*)199 -sco5v6*)
200 # Don't forget version if it is 3.2v4 or newer.200 # 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/'`
202 ;;202 ;;
203 -sco*)203 -sco*)
204 os=-sco3.2v2204 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/'`
206 ;;206 ;;
207 -udk*)207 -udk*)
208 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`208 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
209 ;;209 ;;
210 -isc)210 -isc)
211 os=-isc2.2211 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/'`
213 ;;213 ;;
214 -clix*)214 -clix*)
215 basic_machine=clipper-intergraph215 basic_machine=clipper-intergraph
216 ;;216 ;;
217 -isc*)217 -isc*)
218 basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`218 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`
219 ;;219 ;;
220 -lynx*178)220 -lynx*178)
221 os=-lynxos178221 os=-lynxos178
@@ -227,10 +227,7 @@ case $os in
227 os=-lynxos227 os=-lynxos
228 ;;228 ;;
229 -ptx*)229 -ptx*)
230 basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`230 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`
231 ;;
232 -windowsnt*)
233 os=`echo $os | sed -e 's/windowsnt/winnt/'`
234 ;;231 ;;
235 -psos*)232 -psos*)
236 os=-psos233 os=-psos
@@ -299,7 +296,7 @@ case $basic_machine in
299 | nios | nios2 | nios2eb | nios2el \296 | nios | nios2 | nios2eb | nios2el \
300 | ns16k | ns32k \297 | ns16k | ns32k \
301 | open8 | or1k | or1knd | or32 \298 | open8 | or1k | or1knd | or32 \
302 | pdp10 | pdp11 | pj | pjl \299 | pdp10 | pj | pjl \
303 | powerpc | powerpc64 | powerpc64le | powerpcle \300 | powerpc | powerpc64 | powerpc64le | powerpcle \
304 | pru \301 | pru \
305 | pyramid \302 | pyramid \
@@ -316,7 +313,6 @@ case $basic_machine in
316 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \313 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
317 | visium \314 | visium \
318 | wasm32 \315 | wasm32 \
319 | we32k \
320 | x86 | xc16x | xstormy16 | xtensa \316 | x86 | xc16x | xstormy16 | xtensa \
321 | z8k | z80)317 | z8k | z80)
322 basic_machine=$basic_machine-unknown318 basic_machine=$basic_machine-unknown
@@ -337,7 +333,7 @@ case $basic_machine in
337 basic_machine=$basic_machine-unknown333 basic_machine=$basic_machine-unknown
338 os=-none334 os=-none
339 ;;335 ;;
340 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)336 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
341 ;;337 ;;
342 ms1)338 ms1)
343 basic_machine=mt-unknown339 basic_machine=mt-unknown
@@ -366,7 +362,7 @@ case $basic_machine in
366 ;;362 ;;
367 # Object if more than one company name word.363 # Object if more than one company name word.
368 *-*-*)364 *-*-*)
369 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2365 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
370 exit 1366 exit 1
371 ;;367 ;;
372 # Recognize the basic CPU types with company name.368 # Recognize the basic CPU types with company name.
@@ -461,7 +457,7 @@ case $basic_machine in
461 # Recognize the various machine names and aliases which stand457 # Recognize the various machine names and aliases which stand
462 # for a CPU type and a company and sometimes even an OS.458 # for a CPU type and a company and sometimes even an OS.
463 386bsd)459 386bsd)
464 basic_machine=i386-unknown460 basic_machine=i386-pc
465 os=-bsd461 os=-bsd
466 ;;462 ;;
467 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)463 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
@@ -495,7 +491,7 @@ case $basic_machine in
495 basic_machine=x86_64-pc491 basic_machine=x86_64-pc
496 ;;492 ;;
497 amd64-*)493 amd64-*)
498 basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`494 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
499 ;;495 ;;
500 amdahl)496 amdahl)
501 basic_machine=580-amdahl497 basic_machine=580-amdahl
@@ -540,7 +536,7 @@ case $basic_machine in
540 os=-linux536 os=-linux
541 ;;537 ;;
542 blackfin-*)538 blackfin-*)
543 basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`539 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
544 os=-linux540 os=-linux
545 ;;541 ;;
546 bluegene*)542 bluegene*)
@@ -548,13 +544,13 @@ case $basic_machine in
548 os=-cnk544 os=-cnk
549 ;;545 ;;
550 c54x-*)546 c54x-*)
551 basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`547 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
552 ;;548 ;;
553 c55x-*)549 c55x-*)
554 basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`550 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
555 ;;551 ;;
556 c6x-*)552 c6x-*)
557 basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`553 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
558 ;;554 ;;
559 c90)555 c90)
560 basic_machine=c90-cray556 basic_machine=c90-cray
@@ -643,7 +639,7 @@ case $basic_machine in
643 basic_machine=rs6000-bull639 basic_machine=rs6000-bull
644 os=-bosx640 os=-bosx
645 ;;641 ;;
646 dpx2* | dpx2*-bull)642 dpx2*)
647 basic_machine=m68k-bull643 basic_machine=m68k-bull
648 os=-sysv3644 os=-sysv3
649 ;;645 ;;
@@ -652,7 +648,7 @@ case $basic_machine in
652 os=$os"spe"648 os=$os"spe"
653 ;;649 ;;
654 e500v[12]-*)650 e500v[12]-*)
655 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`651 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
656 os=$os"spe"652 os=$os"spe"
657 ;;653 ;;
658 ebmon29k)654 ebmon29k)
@@ -744,9 +740,6 @@ case $basic_machine in
744 hp9k8[0-9][0-9] | hp8[0-9][0-9])740 hp9k8[0-9][0-9] | hp8[0-9][0-9])
745 basic_machine=hppa1.0-hp741 basic_machine=hppa1.0-hp
746 ;;742 ;;
747 hppa-next)
748 os=-nextstep3
749 ;;
750 hppaosf)743 hppaosf)
751 basic_machine=hppa1.1-hp744 basic_machine=hppa1.1-hp
752 os=-osf745 os=-osf
@@ -759,26 +752,26 @@ case $basic_machine in
759 basic_machine=i370-ibm752 basic_machine=i370-ibm
760 ;;753 ;;
761 i*86v32)754 i*86v32)
762 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`755 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
763 os=-sysv32756 os=-sysv32
764 ;;757 ;;
765 i*86v4*)758 i*86v4*)
766 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`759 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
767 os=-sysv4760 os=-sysv4
768 ;;761 ;;
769 i*86v)762 i*86v)
770 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`763 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
771 os=-sysv764 os=-sysv
772 ;;765 ;;
773 i*86sol2)766 i*86sol2)
774 basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`767 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
775 os=-solaris2768 os=-solaris2
776 ;;769 ;;
777 i386mach)770 i386mach)
778 basic_machine=i386-mach771 basic_machine=i386-mach
779 os=-mach772 os=-mach
780 ;;773 ;;
781 i386-vsta | vsta)774 vsta)
782 basic_machine=i386-unknown775 basic_machine=i386-unknown
783 os=-vsta776 os=-vsta
784 ;;777 ;;
@@ -797,19 +790,16 @@ case $basic_machine in
797 os=-sysv790 os=-sysv
798 ;;791 ;;
799 leon-*|leon[3-9]-*)792 leon-*|leon[3-9]-*)
800 basic_machine=sparc-`echo $basic_machine | sed 's/-.*//'`793 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
801 ;;794 ;;
802 m68knommu)795 m68knommu)
803 basic_machine=m68k-unknown796 basic_machine=m68k-unknown
804 os=-linux797 os=-linux
805 ;;798 ;;
806 m68knommu-*)799 m68knommu-*)
807 basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`800 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
808 os=-linux801 os=-linux
809 ;;802 ;;
810 m88k-omron*)
811 basic_machine=m88k-omron
812 ;;
813 magnum | m3230)803 magnum | m3230)
814 basic_machine=mips-mips804 basic_machine=mips-mips
815 os=-sysv805 os=-sysv
@@ -841,10 +831,10 @@ case $basic_machine in
841 os=-mint831 os=-mint
842 ;;832 ;;
843 mips3*-*)833 mips3*-*)
844 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`834 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
845 ;;835 ;;
846 mips3*)836 mips3*)
847 basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown837 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
848 ;;838 ;;
849 monitor)839 monitor)
850 basic_machine=m68k-rom68k840 basic_machine=m68k-rom68k
@@ -863,7 +853,7 @@ case $basic_machine in
863 os=-msdos853 os=-msdos
864 ;;854 ;;
865 ms1-*)855 ms1-*)
866 basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`856 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
867 ;;857 ;;
868 msys)858 msys)
869 basic_machine=i686-pc859 basic_machine=i686-pc
@@ -905,7 +895,7 @@ case $basic_machine in
905 basic_machine=v70-nec895 basic_machine=v70-nec
906 os=-sysv896 os=-sysv
907 ;;897 ;;
908 next | m*-next )898 next | m*-next)
909 basic_machine=m68k-next899 basic_machine=m68k-next
910 case $os in900 case $os in
911 -nextstep* )901 -nextstep* )
@@ -950,6 +940,9 @@ case $basic_machine in
950 nsr-tandem)940 nsr-tandem)
951 basic_machine=nsr-tandem941 basic_machine=nsr-tandem
952 ;;942 ;;
943 nsv-tandem)
944 basic_machine=nsv-tandem
945 ;;
953 nsx-tandem)946 nsx-tandem)
954 basic_machine=nsx-tandem947 basic_machine=nsx-tandem
955 ;;948 ;;
@@ -985,7 +978,7 @@ case $basic_machine in
985 os=-linux978 os=-linux
986 ;;979 ;;
987 parisc-*)980 parisc-*)
988 basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`981 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
989 os=-linux982 os=-linux
990 ;;983 ;;
991 pbd)984 pbd)
@@ -1001,7 +994,7 @@ case $basic_machine in
1001 basic_machine=i386-pc994 basic_machine=i386-pc
1002 ;;995 ;;
1003 pc98-*)996 pc98-*)
1004 basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`997 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1005 ;;998 ;;
1006 pentium | p5 | k5 | k6 | nexgen | viac3)999 pentium | p5 | k5 | k6 | nexgen | viac3)
1007 basic_machine=i586-pc1000 basic_machine=i586-pc
@@ -1016,16 +1009,16 @@ case $basic_machine in
1016 basic_machine=i786-pc1009 basic_machine=i786-pc
1017 ;;1010 ;;
1018 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)1011 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1019 basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`1012 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1020 ;;1013 ;;
1021 pentiumpro-* | p6-* | 6x86-* | athlon-*)1014 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1022 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`1015 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1023 ;;1016 ;;
1024 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)1017 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1025 basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`1018 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1026 ;;1019 ;;
1027 pentium4-*)1020 pentium4-*)
1028 basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`1021 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1029 ;;1022 ;;
1030 pn)1023 pn)
1031 basic_machine=pn-gould1024 basic_machine=pn-gould
@@ -1035,23 +1028,23 @@ case $basic_machine in
1035 ppc | ppcbe) basic_machine=powerpc-unknown1028 ppc | ppcbe) basic_machine=powerpc-unknown
1036 ;;1029 ;;
1037 ppc-* | ppcbe-*)1030 ppc-* | ppcbe-*)
1038 basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`1031 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1039 ;;1032 ;;
1040 ppcle | powerpclittle)1033 ppcle | powerpclittle)
1041 basic_machine=powerpcle-unknown1034 basic_machine=powerpcle-unknown
1042 ;;1035 ;;
1043 ppcle-* | powerpclittle-*)1036 ppcle-* | powerpclittle-*)
1044 basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`1037 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1045 ;;1038 ;;
1046 ppc64) basic_machine=powerpc64-unknown1039 ppc64) basic_machine=powerpc64-unknown
1047 ;;1040 ;;
1048 ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`1041 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1049 ;;1042 ;;
1050 ppc64le | powerpc64little)1043 ppc64le | powerpc64little)
1051 basic_machine=powerpc64le-unknown1044 basic_machine=powerpc64le-unknown
1052 ;;1045 ;;
1053 ppc64le-* | powerpc64little-*)1046 ppc64le-* | powerpc64little-*)
1054 basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`1047 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1055 ;;1048 ;;
1056 ps2)1049 ps2)
1057 basic_machine=i386-ibm1050 basic_machine=i386-ibm
@@ -1105,17 +1098,10 @@ case $basic_machine in
1105 sequent)1098 sequent)
1106 basic_machine=i386-sequent1099 basic_machine=i386-sequent
1107 ;;1100 ;;
1108 sh)
1109 basic_machine=sh-hitachi
1110 os=-hms
1111 ;;
1112 sh5el)1101 sh5el)
1113 basic_machine=sh5le-unknown1102 basic_machine=sh5le-unknown
1114 ;;1103 ;;
1115 sh64)1104 simso-wrs)
1116 basic_machine=sh64-unknown
1117 ;;
1118 sparclite-wrs | simso-wrs)
1119 basic_machine=sparclite-wrs1105 basic_machine=sparclite-wrs
1120 os=-vxworks1106 os=-vxworks
1121 ;;1107 ;;
@@ -1134,7 +1120,7 @@ case $basic_machine in
1134 os=-sysv41120 os=-sysv4
1135 ;;1121 ;;
1136 strongarm-* | thumb-*)1122 strongarm-* | thumb-*)
1137 basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`1123 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1138 ;;1124 ;;
1139 sun2)1125 sun2)
1140 basic_machine=m68000-sun1126 basic_machine=m68000-sun
@@ -1248,9 +1234,6 @@ case $basic_machine in
1248 basic_machine=a29k-wrs1234 basic_machine=a29k-wrs
1249 os=-vxworks1235 os=-vxworks
1250 ;;1236 ;;
1251 wasm32)
1252 basic_machine=wasm32-unknown
1253 ;;
1254 w65*)1237 w65*)
1255 basic_machine=w65-wdc1238 basic_machine=w65-wdc
1256 os=-none1239 os=-none
@@ -1259,6 +1242,9 @@ case $basic_machine in
1259 basic_machine=hppa1.1-winbond1242 basic_machine=hppa1.1-winbond
1260 os=-proelf1243 os=-proelf
1261 ;;1244 ;;
1245 x64)
1246 basic_machine=x86_64-pc
1247 ;;
1262 xbox)1248 xbox)
1263 basic_machine=i686-pc1249 basic_machine=i686-pc
1264 os=-mingw321250 os=-mingw32
@@ -1267,20 +1253,12 @@ case $basic_machine in
1267 basic_machine=xps100-honeywell1253 basic_machine=xps100-honeywell
1268 ;;1254 ;;
1269 xscale-* | xscalee[bl]-*)1255 xscale-* | xscalee[bl]-*)
1270 basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`1256 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
1271 ;;1257 ;;
1272 ymp)1258 ymp)
1273 basic_machine=ymp-cray1259 basic_machine=ymp-cray
1274 os=-unicos1260 os=-unicos
1275 ;;1261 ;;
1276 z8k-*-coff)
1277 basic_machine=z8k-unknown
1278 os=-sim
1279 ;;
1280 z80-*-coff)
1281 basic_machine=z80-unknown
1282 os=-sim
1283 ;;
1284 none)1262 none)
1285 basic_machine=none-none1263 basic_machine=none-none
1286 os=-none1264 os=-none
@@ -1309,10 +1287,6 @@ case $basic_machine in
1309 vax)1287 vax)
1310 basic_machine=vax-dec1288 basic_machine=vax-dec
1311 ;;1289 ;;
1312 pdp10)
1313 # there are many clones, so DEC is not a safe bet
1314 basic_machine=pdp10-unknown
1315 ;;
1316 pdp11)1290 pdp11)
1317 basic_machine=pdp11-dec1291 basic_machine=pdp11-dec
1318 ;;1292 ;;
@@ -1322,9 +1296,6 @@ case $basic_machine in
1322 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)1296 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1323 basic_machine=sh-unknown1297 basic_machine=sh-unknown
1324 ;;1298 ;;
1325 sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
1326 basic_machine=sparc-sun
1327 ;;
1328 cydra)1299 cydra)
1329 basic_machine=cydra-cydrome1300 basic_machine=cydra-cydrome
1330 ;;1301 ;;
@@ -1344,7 +1315,7 @@ case $basic_machine in
1344 # Make sure to match an already-canonicalized machine name.1315 # Make sure to match an already-canonicalized machine name.
1345 ;;1316 ;;
1346 *)1317 *)
1347 echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&21318 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
1348 exit 11319 exit 1
1349 ;;1320 ;;
1350esac1321esac
@@ -1352,10 +1323,10 @@ esac
1352# Here we canonicalize certain aliases for manufacturers.1323# Here we canonicalize certain aliases for manufacturers.
1353case $basic_machine in1324case $basic_machine in
1354 *-digital*)1325 *-digital*)
1355 basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`1326 basic_machine=`echo "$basic_machine" | sed 's/digital.*/dec/'`
1356 ;;1327 ;;
1357 *-commodore*)1328 *-commodore*)
1358 basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`1329 basic_machine=`echo "$basic_machine" | sed 's/commodore.*/cbm/'`
1359 ;;1330 ;;
1360 *)1331 *)
1361 ;;1332 ;;
@@ -1366,8 +1337,8 @@ esac
1366if [ x"$os" != x"" ]1337if [ x"$os" != x"" ]
1367then1338then
1368case $os in1339case $os in
1369 # First match some system type aliases1340 # First match some system type aliases that might get confused
1370 # that might get confused with valid system types.1341 # with valid system types.
1371 # -solaris* is a basic system type, with this one exception.1342 # -solaris* is a basic system type, with this one exception.
1372 -auroraux)1343 -auroraux)
1373 os=-auroraux1344 os=-auroraux
@@ -1378,18 +1349,19 @@ case $os in
1378 -solaris)1349 -solaris)
1379 os=-solaris21350 os=-solaris2
1380 ;;1351 ;;
1381 -svr4*)
1382 os=-sysv4
1383 ;;
1384 -unixware*)1352 -unixware*)
1385 os=-sysv4.2uw1353 os=-sysv4.2uw
1386 ;;1354 ;;
1387 -gnu/linux*)1355 -gnu/linux*)
1388 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`1356 os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
1389 ;;1357 ;;
1390 # 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.
1391 # The portable systems comes first.1363 # The portable systems comes first.
1392 # Each alternative MUST END IN A *, to match a version number.1364 # Each alternative MUST end in a * to match a version number.
1393 # -sysv* is not here because it comes later, after sysvr4.1365 # -sysv* is not here because it comes later, after sysvr4.
1394 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \1366 -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
1395 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\1367 | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
@@ -1399,7 +1371,7 @@ case $os in
1399 | -aos* | -aros* | -cloudabi* | -sortix* \1371 | -aos* | -aros* | -cloudabi* | -sortix* \
1400 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \1372 | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
1401 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \1373 | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
1402 | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \1374 | -hiux* | -knetbsd* | -mirbsd* | -netbsd* \
1403 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \1375 | -bitrig* | -openbsd* | -solidbsd* | -libertybsd* \
1404 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \1376 | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
1405 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \1377 | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
@@ -1410,14 +1382,15 @@ case $os in
1410 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \1382 | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
1411 | -linux-newlib* | -linux-musl* | -linux-uclibc* \1383 | -linux-newlib* | -linux-musl* | -linux-uclibc* \
1412 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \1384 | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
1413 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \1385 | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* \
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches