Merge ~fnordahl/ubuntu/+source/openvswitch:ubuntu/jammy into ~ubuntu-server-dev/ubuntu/+source/openvswitch:ubuntu/jammy

Proposed by Frode Nordahl
Status: Merged
Merged at revision: 16c83213ec0674bb7789244aecc3478b934cf600
Proposed branch: ~fnordahl/ubuntu/+source/openvswitch:ubuntu/jammy
Merge into: ~ubuntu-server-dev/ubuntu/+source/openvswitch:ubuntu/jammy
Diff against target: 1036447 lines (+205848/-182837)
122 files modified
.ci/linux-build.sh (+1/-1)
.cirrus.yml (+1/-1)
Documentation/internals/maintainers.rst (+5/-0)
Documentation/ref/ovs-actions.7.rst (+1/-1)
Documentation/topics/dpdk/phy.rst (+7/-7)
MAINTAINERS.rst (+15/-6)
Makefile.in (+28/-13)
NEWS (+10/-0)
aclocal.m4 (+47/-32)
build-aux/compile (+3/-3)
build-aux/config.guess (+903/-611)
build-aux/config.sub (+1325/-1268)
build-aux/depcomp (+1/-1)
build-aux/install-sh (+92/-69)
build-aux/ltmain.sh (+574/-294)
build-aux/missing (+1/-1)
config.h.in (+79/-23)
configure (+7898/-6581)
configure.ac (+1/-1)
datapath/Makefile.in (+7/-5)
debian/changelog (+6/-0)
include/openvswitch/meta-flow.h (+4/-0)
include/openvswitch/version.h (+2/-2)
include/sparse/numa.h (+17/-6)
include/sparse/rte_memcpy.h (+1/-4)
lib/classifier.c (+20/-5)
lib/conntrack-tp.h (+7/-0)
lib/conntrack.c (+89/-163)
lib/cpu.c (+3/-1)
lib/dpctl.c (+10/-12)
lib/dpif-netdev.c (+1/-0)
lib/dpif-netlink.c (+3/-2)
lib/dpif-provider.h (+8/-0)
lib/dpif.c (+7/-1)
lib/dpif.h (+1/-0)
lib/fatal-signal.c (+42/-8)
lib/learning-switch.c (+1/-0)
lib/meta-flow.c (+25/-0)
lib/meta-flow.xml (+2/-2)
lib/netdev-dpdk.c (+1/-1)
lib/netdev-linux.c (+20/-6)
lib/netdev-native-tnl.c (+22/-58)
lib/netdev-offload-dpdk.c (+1/-1)
lib/netdev-offload-tc.c (+131/-42)
lib/netdev-offload.c (+38/-32)
lib/netdev-vport-private.h (+6/-1)
lib/netdev-vport.c (+108/-83)
lib/netdev-windows.c (+11/-0)
lib/netdev.h (+3/-1)
lib/ofp-parse.c (+2/-5)
lib/smap.c (+1/-1)
lib/smap.h (+1/-1)
lib/socket-util.c (+10/-3)
lib/socket-util.h (+2/-1)
lib/stream-ssl.c (+7/-1)
lib/tc.c (+135/-62)
lib/tc.h (+2/-2)
m4/libtool.m4 (+129/-98)
m4/ltoptions.m4 (+2/-2)
m4/ltsugar.m4 (+1/-1)
m4/ltversion.m4 (+7/-6)
m4/lt~obsolete.m4 (+2/-2)
ofproto/ofproto-dpif-ipfix.c (+105/-24)
ofproto/ofproto-dpif-upcall.c (+67/-13)
ofproto/ofproto-dpif-xlate.c (+14/-1)
ofproto/ofproto-dpif.c (+9/-19)
ofproto/ofproto-provider.h (+5/-0)
ofproto/ofproto.c (+10/-0)
ofproto/ofproto.h (+2/-0)
ovsdb/jsonrpc-server.c (+27/-16)
ovsdb/log.c (+17/-0)
ovsdb/log.h (+3/-0)
ovsdb/ovsdb-server.c (+44/-21)
ovsdb/ovsdb-tool.c (+39/-4)
ovsdb/ovsdb.c (+3/-0)
ovsdb/relay.c (+18/-4)
ovsdb/relay.h (+5/-2)
ovsdb/storage.c (+16/-7)
ovsdb/storage.h (+1/-1)
ovsdb/transaction.c (+1/-1)
ovsdb/transaction.h (+2/-1)
ovsdb/trigger.c (+3/-2)
package.m4 (+2/-2)
python/ovs/stream.py (+2/-1)
python/ovs/version.py (+1/-1)
rhel/kmod-openvswitch-rhel6.spec (+1/-1)
rhel/openvswitch-dkms.spec (+1/-1)
rhel/openvswitch-fedora.spec (+1/-1)
rhel/openvswitch-kmod-fedora.spec (+1/-1)
rhel/openvswitch.spec (+1/-1)
tests/automake.mk (+2/-1)
tests/classifier.at (+88/-0)
tests/dpctl.at (+16/-0)
tests/learning-switch.at (+23/-0)
tests/ofproto-dpif.at (+9/-9)
tests/ofproto.at (+182/-0)
tests/ovsdb-cluster-testsuite (+862/-816)
tests/ovsdb-cluster.at (+7/-7)
tests/ovsdb-server.at (+19/-1)
tests/ovsdb-tool.at (+69/-0)
tests/packet-type-aware.at (+1/-1)
tests/system-afxdp-testsuite (+38804/-35849)
tests/system-dpdk-testsuite (+584/-538)
tests/system-interface.at (+59/-0)
tests/system-kmod-macros.at (+10/-0)
tests/system-kmod-testsuite (+26968/-23584)
tests/system-layer3-tunnels.at (+2/-2)
tests/system-offloads-testsuite (+3500/-472)
tests/system-offloads-traffic.at (+183/-0)
tests/system-traffic.at (+218/-0)
tests/system-tso-testsuite (+40293/-37297)
tests/system-userspace-macros.at (+8/-0)
tests/system-userspace-testsuite (+28626/-25161)
tests/testsuite (+52978/-49436)
tests/testsuite.at (+1/-0)
utilities/ovs-appctl-bashcomp.bash (+7/-0)
utilities/ovs-sim.in (+3/-3)
utilities/ovs-tcpdump.in (+11/-0)
utilities/ovs-vsctl-bashcomp.bash (+7/-0)
vswitchd/bridge.c (+3/-0)
vswitchd/vswitch.xml (+13/-0)
xenserver/openvswitch-xen.spec (+1/-1)
Reviewer Review Type Date Requested Status
James Page Pending
Review via email: mp+445670@code.launchpad.net
To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/.ci/linux-build.sh b/.ci/linux-build.sh
index 392c7ee..7487275 100755
--- a/.ci/linux-build.sh
+++ b/.ci/linux-build.sh
@@ -233,7 +233,7 @@ elif [ "$M32" ]; then
233 # difference on 'configure' and 'make' stages.233 # difference on 'configure' and 'make' stages.
234 export CC="$CC -m32"234 export CC="$CC -m32"
235elif [ "$TRAVIS_ARCH" != "aarch64" ]; then235elif [ "$TRAVIS_ARCH" != "aarch64" ]; then
236 OPTS="--enable-sparse"236 EXTRA_OPTS="$EXTRA_OPTS --enable-sparse"
237 if [ "$AFXDP" ]; then237 if [ "$AFXDP" ]; then
238 # netdev-afxdp uses memset for 64M for umem initialization.238 # netdev-afxdp uses memset for 64M for umem initialization.
239 SPARSE_FLAGS="${SPARSE_FLAGS} -Wno-memcpy-max-count"239 SPARSE_FLAGS="${SPARSE_FLAGS} -Wno-memcpy-max-count"
diff --git a/.cirrus.yml b/.cirrus.yml
index 29be500..2fadab6 100644
--- a/.cirrus.yml
+++ b/.cirrus.yml
@@ -2,7 +2,7 @@ freebsd_build_task:
22
3 freebsd_instance:3 freebsd_instance:
4 matrix:4 matrix:
5 image_family: freebsd-12-3-snap5 image_family: freebsd-12-4-snap
6 image_family: freebsd-13-1-snap6 image_family: freebsd-13-1-snap
7 cpu: 47 cpu: 4
8 memory: 4G8 memory: 4G
diff --git a/Documentation/internals/maintainers.rst b/Documentation/internals/maintainers.rst
index 172d684..0203bbe 100644
--- a/Documentation/internals/maintainers.rst
+++ b/Documentation/internals/maintainers.rst
@@ -22,3 +22,8 @@
22 Avoid deeper levels because they do not render well.22 Avoid deeper levels because they do not render well.
2323
24.. include:: ../../MAINTAINERS.rst24.. include:: ../../MAINTAINERS.rst
25 :end-before: Cut here for the Documentation/internals/maintainers.rst
26
27.. |responsibilities| replace:: :doc:`committer-responsibilities`
28.. |grant-revocation| replace:: :doc:`committer-grant-revocation`
29.. |emeritus-status| replace:: :doc:`committer-emeritus-status`
diff --git a/Documentation/ref/ovs-actions.7.rst b/Documentation/ref/ovs-actions.7.rst
index b59b763..d138956 100644
--- a/Documentation/ref/ovs-actions.7.rst
+++ b/Documentation/ref/ovs-actions.7.rst
@@ -1380,7 +1380,7 @@ The ``delete_field`` action
1380 | ``delete_field:``\ *field*1380 | ``delete_field:``\ *field*
13811381
1382The ``delete_field`` action deletes a *field* in the syntax described under1382The ``delete_field`` action deletes a *field* in the syntax described under
1383`Field Specifications`_ above. Currently, only the ``tun_metadta`` fields are1383`Field Specifications`_ above. Currently, only the ``tun_metadata`` fields are
1384supported.1384supported.
13851385
1386This action was added in Open vSwitch 2.14.1386This action was added in Open vSwitch 2.14.
diff --git a/Documentation/topics/dpdk/phy.rst b/Documentation/topics/dpdk/phy.rst
index 937f4c4..90c8691 100644
--- a/Documentation/topics/dpdk/phy.rst
+++ b/Documentation/topics/dpdk/phy.rst
@@ -76,8 +76,8 @@ persist across reboots. In addition, there are two options available for this
76kernel space driver - VFIO (Virtual Function I/O) and UIO (Userspace I/O) -76kernel space driver - VFIO (Virtual Function I/O) and UIO (Userspace I/O) -
77along with a number of drivers for each option. We will demonstrate examples of77along with a number of drivers for each option. We will demonstrate examples of
78both tools and will use the ``vfio-pci`` driver, which is the more secure,78both tools and will use the ``vfio-pci`` driver, which is the more secure,
79robust driver of those available. More information can be found in the `DPDK79robust driver of those available. More information can be found in the
80documentation <dpdk-drivers>`__.80`DPDK drivers documentation`_.
8181
82To list devices using :command:`driverctl`, run::82To list devices using :command:`driverctl`, run::
8383
@@ -115,9 +115,9 @@ tool::
115 Open vSwitch 2.6.0 added support for DPDK 16.07, which in turn renamed the115 Open vSwitch 2.6.0 added support for DPDK 16.07, which in turn renamed the
116 former ``dpdk_nic_bind`` tool to ``dpdk-devbind``.116 former ``dpdk_nic_bind`` tool to ``dpdk-devbind``.
117117
118For more information, refer to the `DPDK documentation <dpdk-drivers>`__.118For more information, refer to the `DPDK drivers documentation`_.
119119
120.. _dpdk-drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html120.. _DPDK drivers documentation: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html
121121
122.. _dpdk-phy-multiqueue:122.. _dpdk-phy-multiqueue:
123123
@@ -394,14 +394,14 @@ in the ``options`` column of the ``Interface`` table.
394394
395.. important::395.. important::
396396
397 Some DPDK port use `bifurcated drivers <bifurcated-drivers>`__,397 Some DPDK port use `bifurcated drivers`_, which means that a kernel
398 which means that a kernel netdevice remains when Open vSwitch is stopped.398 netdevice remains when Open vSwitch is stopped.
399399
400 In such case, any configuration applied to a VF would remain set on the400 In such case, any configuration applied to a VF would remain set on the
401 kernel netdevice, and be inherited from it when Open vSwitch is restarted,401 kernel netdevice, and be inherited from it when Open vSwitch is restarted,
402 even if the options described in this section are unset from Open vSwitch.402 even if the options described in this section are unset from Open vSwitch.
403403
404.. _bifurcated-drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html#bifurcated-driver404.. _bifurcated drivers: https://doc.dpdk.org/guides-21.11/linux_gsg/linux_drivers.html#bifurcated-driver
405405
406- Configure the VF MAC address::406- Configure the VF MAC address::
407407
diff --git a/MAINTAINERS.rst b/MAINTAINERS.rst
index 27be4aa..1dc4061 100644
--- a/MAINTAINERS.rst
+++ b/MAINTAINERS.rst
@@ -28,11 +28,11 @@ Committers
28Open vSwitch committers are the people who have been granted access to push28Open vSwitch committers are the people who have been granted access to push
29changes to the Open vSwitch git repository.29changes to the Open vSwitch git repository.
3030
31The responsibilities of an Open vSwitch committer are documented31The responsibilities of an Open vSwitch committer are documented here:
32`here <Documentation/internals/committer-responsibilities.rst>`__.32|responsibilities|.
3333
34The process for adding or removing committers is documented34The process for adding or removing committers is documented here:
35`here <Documentation/internals/committer-grant-revocation.rst>`__.35|grant-revocation|.
3636
37This is the current list of active Open vSwitch committers:37This is the current list of active Open vSwitch committers:
3838
@@ -77,8 +77,8 @@ This is the current list of active Open vSwitch committers:
77 - yamamoto@midokura.com77 - yamamoto@midokura.com
7878
79The project also maintains a list of Emeritus Committers (or Maintainers).79The project also maintains a list of Emeritus Committers (or Maintainers).
80More information about Emeritus Committers can be found80More information about Emeritus Committers can be found here:
81`here <Documentation/internals/committer-emeritus-status.rst>`__.81|emeritus-status|.
8282
83.. list-table:: OVS Emeritus Maintainers83.. list-table:: OVS Emeritus Maintainers
84 :header-rows: 184 :header-rows: 1
@@ -91,3 +91,12 @@ More information about Emeritus Committers can be found
91 - ejj@eecs.berkeley.edu91 - ejj@eecs.berkeley.edu
92 * - Joe Stringer92 * - Joe Stringer
93 - joe@ovn.org93 - joe@ovn.org
94
95.. Cut here for the Documentation/internals/maintainers.rst
96
97.. |responsibilities| replace:: `Expectations for Developers with Open vSwitch
98 Repo Access <Documentation/internals/committer-responsibilities.rst>`__
99.. |grant-revocation| replace:: `OVS Committer Grant/Revocation Policy
100 <Documentation/internals/committer-grant-revocation.rst>`__
101.. |emeritus-status| replace:: `Emeritus Status for OVS Committers
102 <Documentation/internals/committer-emeritus-status.rst>`__
diff --git a/Makefile.in b/Makefile.in
index 16011c4..93c6e98 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,7 +1,7 @@
1# Makefile.in generated by automake 1.16.1 from Makefile.am.1# Makefile.in generated by automake 1.16.5 from Makefile.am.
2# @configure_input@2# @configure_input@
33
4# Copyright (C) 1994-2018 Free Software Foundation, Inc.4# Copyright (C) 1994-2021 Free Software Foundation, Inc.
55
6# This Makefile.in is free software; the Free Software Foundation6# This Makefile.in is free software; the Free Software Foundation
7# gives unlimited permission to copy and/or distribute it,7# gives unlimited permission to copy and/or distribute it,
@@ -1242,8 +1242,8 @@ am__recursive_targets = \
1242 $(am__extra_recursive_targets)1242 $(am__extra_recursive_targets)
1243AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \1243AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \
1244 cscope distdir distdir-am dist dist-all distcheck1244 cscope distdir distdir-am dist dist-all distcheck
1245am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \1245am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) \
1246 $(LISP)config.h.in1246 config.h.in
1247# Read a list of newline-separated strings from the standard input,1247# Read a list of newline-separated strings from the standard input,
1248# and print each of them once, without duplicates. Input order is1248# and print each of them once, without duplicates. Input order is
1249# *not* preserved.1249# *not* preserved.
@@ -1260,9 +1260,6 @@ am__define_uniq_tagged_files = \
1260 unique=`for i in $$list; do \1260 unique=`for i in $$list; do \
1261 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \1261 if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
1262 done | $(am__uniquify_input)`1262 done | $(am__uniquify_input)`
1263ETAGS = etags
1264CTAGS = ctags
1265CSCOPE = cscope
1266DIST_SUBDIRS = $(SUBDIRS)1263DIST_SUBDIRS = $(SUBDIRS)
1267am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Documentation/automake.mk \1264am__DIST_COMMON = $(dist_man_MANS) $(srcdir)/Documentation/automake.mk \
1268 $(srcdir)/Makefile.in $(srcdir)/build-aux/automake.mk \1265 $(srcdir)/Makefile.in $(srcdir)/build-aux/automake.mk \
@@ -1347,6 +1344,8 @@ am__relativize = \
1347DIST_ARCHIVES = $(distdir).tar.gz1344DIST_ARCHIVES = $(distdir).tar.gz
1348GZIP_ENV = --best1345GZIP_ENV = --best
1349DIST_TARGETS = dist-gzip1346DIST_TARGETS = dist-gzip
1347# Exists only to be overridden by the user if desired.
1348AM_DISTCHECK_DVI_TARGET = dvi
1350distuninstallcheck_listfiles = find . -type f -print1349distuninstallcheck_listfiles = find . -type f -print
1351am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \1350am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \
1352 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'1351 | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$'
@@ -1367,6 +1366,8 @@ CFLAGS = @CFLAGS@
1367CGCCFLAGS = @CGCCFLAGS@1366CGCCFLAGS = @CGCCFLAGS@
1368CPP = @CPP@1367CPP = @CPP@
1369CPPFLAGS = @CPPFLAGS@1368CPPFLAGS = @CPPFLAGS@
1369CSCOPE = @CSCOPE@
1370CTAGS = @CTAGS@
1370CXX = @CXX@1371CXX = @CXX@
1371CXXCPP = @CXXCPP@1372CXXCPP = @CXXCPP@
1372CXXDEPMODE = @CXXDEPMODE@1373CXXDEPMODE = @CXXDEPMODE@
@@ -1385,8 +1386,10 @@ ECHO_C = @ECHO_C@
1385ECHO_N = @ECHO_N@1386ECHO_N = @ECHO_N@
1386ECHO_T = @ECHO_T@1387ECHO_T = @ECHO_T@
1387EGREP = @EGREP@1388EGREP = @EGREP@
1389ETAGS = @ETAGS@
1388EXEEXT = @EXEEXT@1390EXEEXT = @EXEEXT@
1389FGREP = @FGREP@1391FGREP = @FGREP@
1392FILECMD = @FILECMD@
1390FLAKE8_WERROR = @FLAKE8_WERROR@1393FLAKE8_WERROR = @FLAKE8_WERROR@
1391GREP = @GREP@1394GREP = @GREP@
1392HAVE_CXX11 = @HAVE_CXX11@1395HAVE_CXX11 = @HAVE_CXX11@
@@ -1521,6 +1524,7 @@ pdfdir = @pdfdir@
1521prefix = @prefix@1524prefix = @prefix@
1522program_transform_name = @program_transform_name@1525program_transform_name = @program_transform_name@
1523psdir = @psdir@1526psdir = @psdir@
1527runstatedir = @runstatedir@
1524sbindir = @sbindir@1528sbindir = @sbindir@
1525sharedstatedir = @sharedstatedir@1529sharedstatedir = @sharedstatedir@
1526srcdir = @srcdir@1530srcdir = @srcdir@
@@ -2625,7 +2629,8 @@ TESTSUITE_AT = \
2625 tests/mcast-snooping.at \2629 tests/mcast-snooping.at \
2626 tests/packet-type-aware.at \2630 tests/packet-type-aware.at \
2627 tests/nsh.at \2631 tests/nsh.at \
2628 tests/drop-stats.at2632 tests/drop-stats.at \
2633 tests/learning-switch.at
26292634
2630FUZZ_REGRESSION_TESTS = \2635FUZZ_REGRESSION_TESTS = \
2631 tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 \2636 tests/fuzz-regression/flow_extract_fuzzer-5112775280951296 \
@@ -5500,7 +5505,6 @@ cscopelist-am: $(am__tagged_files)
5500distclean-tags:5505distclean-tags:
5501 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags5506 -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
5502 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files5507 -rm -f cscope.out cscope.in.out cscope.po.out cscope.files
5503
5504distdir: $(BUILT_SOURCES)5508distdir: $(BUILT_SOURCES)
5505 $(MAKE) $(AM_MAKEFLAGS) distdir-am5509 $(MAKE) $(AM_MAKEFLAGS) distdir-am
55065510
@@ -5587,6 +5591,10 @@ dist-xz: distdir
5587 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz5591 tardir=$(distdir) && $(am__tar) | XZ_OPT=$${XZ_OPT--e} xz -c >$(distdir).tar.xz
5588 $(am__post_remove_distdir)5592 $(am__post_remove_distdir)
55895593
5594dist-zstd: distdir
5595 tardir=$(distdir) && $(am__tar) | zstd -c $${ZSTD_CLEVEL-$${ZSTD_OPT--19}} >$(distdir).tar.zst
5596 $(am__post_remove_distdir)
5597
5590dist-tarZ: distdir5598dist-tarZ: distdir
5591 @echo WARNING: "Support for distribution archives compressed with" \5599 @echo WARNING: "Support for distribution archives compressed with" \
5592 "legacy program 'compress' is deprecated." >&25600 "legacy program 'compress' is deprecated." >&2
@@ -5629,6 +5637,8 @@ distcheck: dist
5629 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\5637 eval GZIP= gzip $(GZIP_ENV) -dc $(distdir).shar.gz | unshar ;;\
5630 *.zip*) \5638 *.zip*) \
5631 unzip $(distdir).zip ;;\5639 unzip $(distdir).zip ;;\
5640 *.tar.zst*) \
5641 zstd -dc $(distdir).tar.zst | $(am__untar) ;;\
5632 esac5642 esac
5633 chmod -R a-w $(distdir)5643 chmod -R a-w $(distdir)
5634 chmod u+w $(distdir)5644 chmod u+w $(distdir)
@@ -5644,7 +5654,7 @@ distcheck: dist
5644 $(DISTCHECK_CONFIGURE_FLAGS) \5654 $(DISTCHECK_CONFIGURE_FLAGS) \
5645 --srcdir=../.. --prefix="$$dc_install_base" \5655 --srcdir=../.. --prefix="$$dc_install_base" \
5646 && $(MAKE) $(AM_MAKEFLAGS) \5656 && $(MAKE) $(AM_MAKEFLAGS) \
5647 && $(MAKE) $(AM_MAKEFLAGS) dvi \5657 && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \
5648 && $(MAKE) $(AM_MAKEFLAGS) check \5658 && $(MAKE) $(AM_MAKEFLAGS) check \
5649 && $(MAKE) $(AM_MAKEFLAGS) install \5659 && $(MAKE) $(AM_MAKEFLAGS) install \
5650 && $(MAKE) $(AM_MAKEFLAGS) installcheck \5660 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
@@ -5702,8 +5712,12 @@ check: $(BUILT_SOURCES)
5702 $(MAKE) $(AM_MAKEFLAGS) check-recursive5712 $(MAKE) $(AM_MAKEFLAGS) check-recursive
5703all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \5713all-am: Makefile $(PROGRAMS) $(LTLIBRARIES) $(SCRIPTS) $(MANS) $(DATA) \
5704 $(HEADERS) config.h all-local5714 $(HEADERS) config.h all-local
5715install-EXTRAPROGRAMS: install-libLTLIBRARIES
5716
5705install-binPROGRAMS: install-libLTLIBRARIES5717install-binPROGRAMS: install-libLTLIBRARIES
57065718
5719install-sbinPROGRAMS: install-libLTLIBRARIES
5720
5707installdirs: installdirs-recursive5721installdirs: installdirs-recursive
5708installdirs-am:5722installdirs-am:
5709 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(completiondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(openflowincludedir)" "$(DESTDIR)$(openvswitchincludedir)"; do \5723 for dir in "$(DESTDIR)$(bindir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(libdir)" "$(DESTDIR)$(bindir)" "$(DESTDIR)$(completiondir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(sbindir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(man1dir)" "$(DESTDIR)$(man5dir)" "$(DESTDIR)$(man7dir)" "$(DESTDIR)$(man8dir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(pkgconfigdir)" "$(DESTDIR)$(pkgdatadir)" "$(DESTDIR)$(scriptsdir)" "$(DESTDIR)$(openflowincludedir)" "$(DESTDIR)$(openvswitchincludedir)"; do \
@@ -5711,7 +5725,8 @@ installdirs-am:
5711 done5725 done
5712install: $(BUILT_SOURCES)5726install: $(BUILT_SOURCES)
5713 $(MAKE) $(AM_MAKEFLAGS) install-recursive5727 $(MAKE) $(AM_MAKEFLAGS) install-recursive
5714install-exec: install-exec-recursive5728install-exec: $(BUILT_SOURCES)
5729 $(MAKE) $(AM_MAKEFLAGS) install-exec-recursive
5715install-data: install-data-recursive5730install-data: install-data-recursive
5716uninstall: uninstall-recursive5731uninstall: uninstall-recursive
57175732
@@ -6539,7 +6554,7 @@ uninstall-man: uninstall-man1 uninstall-man5 uninstall-man7 \
6539 uninstall-man86554 uninstall-man8
65406555
6541.MAKE: $(am__recursive_targets) all check check-am install install-am \6556.MAKE: $(am__recursive_targets) all check check-am install install-am \
6542 install-strip6557 install-exec install-strip
65436558
6544.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \6559.PHONY: $(am__recursive_targets) CTAGS GTAGS TAGS all all-am all-local \
6545 am--depfiles am--refresh check check-am check-local clean \6560 am--depfiles am--refresh check check-am check-local clean \
@@ -6548,7 +6563,7 @@ uninstall-man: uninstall-man1 uninstall-man5 uninstall-man7 \
6548 clean-noinstLTLIBRARIES clean-noinstPROGRAMS \6563 clean-noinstLTLIBRARIES clean-noinstPROGRAMS \
6549 clean-sbinPROGRAMS cscope cscopelist-am ctags ctags-am dist \6564 clean-sbinPROGRAMS cscope cscopelist-am ctags ctags-am dist \
6550 dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \6565 dist-all dist-bzip2 dist-gzip dist-hook dist-lzip dist-shar \
6551 dist-tarZ dist-xz dist-zip distcheck distclean \6566 dist-tarZ dist-xz dist-zip dist-zstd distcheck distclean \
6552 distclean-compile distclean-generic distclean-hdr \6567 distclean-compile distclean-generic distclean-hdr \
6553 distclean-libtool distclean-tags distcleancheck distdir \6568 distclean-libtool distclean-tags distcleancheck distdir \
6554 distuninstallcheck dvi dvi-am html html-am info info-am \6569 distuninstallcheck dvi dvi-am html html-am info info-am \
diff --git a/NEWS b/NEWS
index 2ea9ac0..9c0f9c1 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,13 @@
1v2.17.7 - 27 Jun 2023
2---------------------
3 - Bug fixes
4
5v2.17.6 - 06 Apr 2023
6---------------------
7 - Bug fixes
8 - Security:
9 * Fixed vulnerability CVE-2023-1668.
10
1v2.17.5 - 20 Dec 202211v2.17.5 - 20 Dec 2022
2---------------------12---------------------
3 - Bug fixes13 - Bug fixes
diff --git a/aclocal.m4 b/aclocal.m4
index 682f539..d11d4c3 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -1,6 +1,6 @@
1# generated automatically by aclocal 1.16.1 -*- Autoconf -*-1# generated automatically by aclocal 1.16.5 -*- Autoconf -*-
22
3# Copyright (C) 1996-2018 Free Software Foundation, Inc.3# Copyright (C) 1996-2021 Free Software Foundation, Inc.
44
5# This file is free software; the Free Software Foundation5# This file is free software; the Free Software Foundation
6# gives unlimited permission to copy and/or distribute it,6# gives unlimited permission to copy and/or distribute it,
@@ -14,13 +14,13 @@
14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])14m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15m4_ifndef([AC_AUTOCONF_VERSION],15m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],,17m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],,
18[m4_warning([this file was generated for autoconf 2.69.18[m4_warning([this file was generated for autoconf 2.71.
19You have another version of autoconf. It may work, but is not guaranteed to.19You 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# Copyright (C) 2002-2018 Free Software Foundation, Inc.23# Copyright (C) 2002-2021 Free Software Foundation, Inc.
24#24#
25# This file is free software; the Free Software Foundation25# This file is free software; the Free Software Foundation
26# gives unlimited permission to copy and/or distribute it,26# gives unlimited permission to copy and/or distribute it,
@@ -35,7 +35,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION],
35[am__api_version='1.16'35[am__api_version='1.16'
36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to36dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37dnl require some minimum version. Point them to the right macro.37dnl require some minimum version. Point them to the right macro.
38m4_if([$1], [1.16.1], [],38m4_if([$1], [1.16.5], [],
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40])40])
4141
@@ -51,14 +51,14 @@ m4_define([_AM_AUTOCONF_VERSION], [])
51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.51# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.52# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],53AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54[AM_AUTOMAKE_VERSION([1.16.1])dnl54[AM_AUTOMAKE_VERSION([1.16.5])dnl
55m4_ifndef([AC_AUTOCONF_VERSION],55m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])57_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
5858
59# AM_AUX_DIR_EXPAND -*- Autoconf -*-59# AM_AUX_DIR_EXPAND -*- Autoconf -*-
6060
61# Copyright (C) 2001-2018 Free Software Foundation, Inc.61# Copyright (C) 2001-2021 Free Software Foundation, Inc.
62#62#
63# This file is free software; the Free Software Foundation63# This file is free software; the Free Software Foundation
64# gives unlimited permission to copy and/or distribute it,64# gives unlimited permission to copy and/or distribute it,
@@ -110,7 +110,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd`
110110
111# AM_CONDITIONAL -*- Autoconf -*-111# AM_CONDITIONAL -*- Autoconf -*-
112112
113# Copyright (C) 1997-2018 Free Software Foundation, Inc.113# Copyright (C) 1997-2021 Free Software Foundation, Inc.
114#114#
115# This file is free software; the Free Software Foundation115# This file is free software; the Free Software Foundation
116# gives unlimited permission to copy and/or distribute it,116# gives unlimited permission to copy and/or distribute it,
@@ -141,7 +141,7 @@ AC_CONFIG_COMMANDS_PRE(
141Usually this means the macro was only invoked conditionally.]])141Usually this means the macro was only invoked conditionally.]])
142fi])])142fi])])
143143
144# Copyright (C) 1999-2018 Free Software Foundation, Inc.144# Copyright (C) 1999-2021 Free Software Foundation, Inc.
145#145#
146# This file is free software; the Free Software Foundation146# This file is free software; the Free Software Foundation
147# gives unlimited permission to copy and/or distribute it,147# gives unlimited permission to copy and/or distribute it,
@@ -332,7 +332,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl
332332
333# Generate code to set up dependency tracking. -*- Autoconf -*-333# Generate code to set up dependency tracking. -*- Autoconf -*-
334334
335# Copyright (C) 1999-2018 Free Software Foundation, Inc.335# Copyright (C) 1999-2021 Free Software Foundation, Inc.
336#336#
337# This file is free software; the Free Software Foundation337# This file is free software; the Free Software Foundation
338# gives unlimited permission to copy and/or distribute it,338# gives unlimited permission to copy and/or distribute it,
@@ -371,7 +371,9 @@ AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
371 done371 done
372 if test $am_rc -ne 0; then372 if test $am_rc -ne 0; then
373 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments373 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
374 for automatic dependency tracking. Try re-running configure with the374 for automatic dependency tracking. If GNU make was not used, consider
375 re-running the configure script with MAKE="gmake" (or whatever is
376 necessary). You can also try re-running configure with the
375 '--disable-dependency-tracking' option to at least be able to build377 '--disable-dependency-tracking' option to at least be able to build
376 the package (albeit without support for automatic dependency tracking).])378 the package (albeit without support for automatic dependency tracking).])
377 fi379 fi
@@ -398,7 +400,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
398400
399# Do all the work for Automake. -*- Autoconf -*-401# Do all the work for Automake. -*- Autoconf -*-
400402
401# Copyright (C) 1996-2018 Free Software Foundation, Inc.403# Copyright (C) 1996-2021 Free Software Foundation, Inc.
402#404#
403# This file is free software; the Free Software Foundation405# This file is free software; the Free Software Foundation
404# gives unlimited permission to copy and/or distribute it,406# gives unlimited permission to copy and/or distribute it,
@@ -426,6 +428,10 @@ m4_defn([AC_PROG_CC])
426# release and drop the old call support.428# release and drop the old call support.
427AC_DEFUN([AM_INIT_AUTOMAKE],429AC_DEFUN([AM_INIT_AUTOMAKE],
428[AC_PREREQ([2.65])dnl430[AC_PREREQ([2.65])dnl
431m4_ifdef([_$0_ALREADY_INIT],
432 [m4_fatal([$0 expanded multiple times
433]m4_defn([_$0_ALREADY_INIT]))],
434 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
429dnl Autoconf wants to disallow AM_ names. We explicitly allow435dnl Autoconf wants to disallow AM_ names. We explicitly allow
430dnl the ones we care about.436dnl the ones we care about.
431m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl437m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
@@ -462,7 +468,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
462[_AM_SET_OPTIONS([$1])dnl468[_AM_SET_OPTIONS([$1])dnl
463dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.469dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
464m4_if(470m4_if(
465 m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]),471 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
466 [ok:ok],,472 [ok:ok],,
467 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl473 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
468 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl474 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
@@ -514,6 +520,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
514 [m4_define([AC_PROG_OBJCXX],520 [m4_define([AC_PROG_OBJCXX],
515 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl521 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
516])522])
523# Variables for tags utilities; see am/tags.am
524if test -z "$CTAGS"; then
525 CTAGS=ctags
526fi
527AC_SUBST([CTAGS])
528if test -z "$ETAGS"; then
529 ETAGS=etags
530fi
531AC_SUBST([ETAGS])
532if test -z "$CSCOPE"; then
533 CSCOPE=cscope
534fi
535AC_SUBST([CSCOPE])
536
517AC_REQUIRE([AM_SILENT_RULES])dnl537AC_REQUIRE([AM_SILENT_RULES])dnl
518dnl The testsuite driver may need to know about EXEEXT, so add the538dnl The testsuite driver may need to know about EXEEXT, so add the
519dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This539dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
@@ -595,7 +615,7 @@ for _am_header in $config_headers :; do
595done615done
596echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])616echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
597617
598# Copyright (C) 2001-2018 Free Software Foundation, Inc.618# Copyright (C) 2001-2021 Free Software Foundation, Inc.
599#619#
600# This file is free software; the Free Software Foundation620# This file is free software; the Free Software Foundation
601# gives unlimited permission to copy and/or distribute it,621# gives unlimited permission to copy and/or distribute it,
@@ -616,7 +636,7 @@ if test x"${install_sh+set}" != xset; then
616fi636fi
617AC_SUBST([install_sh])])637AC_SUBST([install_sh])])
618638
619# Copyright (C) 2003-2018 Free Software Foundation, Inc.639# Copyright (C) 2003-2021 Free Software Foundation, Inc.
620#640#
621# This file is free software; the Free Software Foundation641# This file is free software; the Free Software Foundation
622# gives unlimited permission to copy and/or distribute it,642# gives unlimited permission to copy and/or distribute it,
@@ -637,7 +657,7 @@ AC_SUBST([am__leading_dot])])
637657
638# Check to see how 'make' treats includes. -*- Autoconf -*-658# Check to see how 'make' treats includes. -*- Autoconf -*-
639659
640# Copyright (C) 2001-2018 Free Software Foundation, Inc.660# Copyright (C) 2001-2021 Free Software Foundation, Inc.
641#661#
642# This file is free software; the Free Software Foundation662# This file is free software; the Free Software Foundation
643# gives unlimited permission to copy and/or distribute it,663# gives unlimited permission to copy and/or distribute it,
@@ -680,7 +700,7 @@ AC_SUBST([am__quote])])
680700
681# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-701# Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
682702
683# Copyright (C) 1997-2018 Free Software Foundation, Inc.703# Copyright (C) 1997-2021 Free Software Foundation, Inc.
684#704#
685# This file is free software; the Free Software Foundation705# This file is free software; the Free Software Foundation
686# gives unlimited permission to copy and/or distribute it,706# gives unlimited permission to copy and/or distribute it,
@@ -701,12 +721,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN],
701[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl721[AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
702AC_REQUIRE_AUX_FILE([missing])dnl722AC_REQUIRE_AUX_FILE([missing])dnl
703if test x"${MISSING+set}" != xset; then723if test x"${MISSING+set}" != xset; then
704 case $am_aux_dir in724 MISSING="\${SHELL} '$am_aux_dir/missing'"
705 *\ * | *\ *)
706 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
707 *)
708 MISSING="\${SHELL} $am_aux_dir/missing" ;;
709 esac
710fi725fi
711# Use eval to expand $SHELL726# Use eval to expand $SHELL
712if eval "$MISSING --is-lightweight"; then727if eval "$MISSING --is-lightweight"; then
@@ -719,7 +734,7 @@ fi
719734
720# Helper functions for option handling. -*- Autoconf -*-735# Helper functions for option handling. -*- Autoconf -*-
721736
722# Copyright (C) 2001-2018 Free Software Foundation, Inc.737# Copyright (C) 2001-2021 Free Software Foundation, Inc.
723#738#
724# This file is free software; the Free Software Foundation739# This file is free software; the Free Software Foundation
725# gives unlimited permission to copy and/or distribute it,740# gives unlimited permission to copy and/or distribute it,
@@ -748,7 +763,7 @@ AC_DEFUN([_AM_SET_OPTIONS],
748AC_DEFUN([_AM_IF_OPTION],763AC_DEFUN([_AM_IF_OPTION],
749[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])764[m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
750765
751# Copyright (C) 1999-2018 Free Software Foundation, Inc.766# Copyright (C) 1999-2021 Free Software Foundation, Inc.
752#767#
753# This file is free software; the Free Software Foundation768# This file is free software; the Free Software Foundation
754# gives unlimited permission to copy and/or distribute it,769# gives unlimited permission to copy and/or distribute it,
@@ -795,7 +810,7 @@ AC_LANG_POP([C])])
795# For backward compatibility.810# For backward compatibility.
796AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])811AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
797812
798# Copyright (C) 2001-2018 Free Software Foundation, Inc.813# Copyright (C) 2001-2021 Free Software Foundation, Inc.
799#814#
800# This file is free software; the Free Software Foundation815# This file is free software; the Free Software Foundation
801# gives unlimited permission to copy and/or distribute it,816# gives unlimited permission to copy and/or distribute it,
@@ -814,7 +829,7 @@ AC_DEFUN([AM_RUN_LOG],
814829
815# Check to make sure that the build environment is sane. -*- Autoconf -*-830# Check to make sure that the build environment is sane. -*- Autoconf -*-
816831
817# Copyright (C) 1996-2018 Free Software Foundation, Inc.832# Copyright (C) 1996-2021 Free Software Foundation, Inc.
818#833#
819# This file is free software; the Free Software Foundation834# This file is free software; the Free Software Foundation
820# gives unlimited permission to copy and/or distribute it,835# gives unlimited permission to copy and/or distribute it,
@@ -895,7 +910,7 @@ AC_CONFIG_COMMANDS_PRE(
895rm -f conftest.file910rm -f conftest.file
896])911])
897912
898# Copyright (C) 2009-2018 Free Software Foundation, Inc.913# Copyright (C) 2009-2021 Free Software Foundation, Inc.
899#914#
900# This file is free software; the Free Software Foundation915# This file is free software; the Free Software Foundation
901# gives unlimited permission to copy and/or distribute it,916# gives unlimited permission to copy and/or distribute it,
@@ -955,7 +970,7 @@ AC_SUBST([AM_BACKSLASH])dnl
955_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl970_AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
956])971])
957972
958# Copyright (C) 2001-2018 Free Software Foundation, Inc.973# Copyright (C) 2001-2021 Free Software Foundation, Inc.
959#974#
960# This file is free software; the Free Software Foundation975# This file is free software; the Free Software Foundation
961# gives unlimited permission to copy and/or distribute it,976# gives unlimited permission to copy and/or distribute it,
@@ -983,7 +998,7 @@ fi
983INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"998INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
984AC_SUBST([INSTALL_STRIP_PROGRAM])])999AC_SUBST([INSTALL_STRIP_PROGRAM])])
9851000
986# Copyright (C) 2006-2018 Free Software Foundation, Inc.1001# Copyright (C) 2006-2021 Free Software Foundation, Inc.
987#1002#
988# This file is free software; the Free Software Foundation1003# This file is free software; the Free Software Foundation
989# gives unlimited permission to copy and/or distribute it,1004# gives unlimited permission to copy and/or distribute it,
@@ -1002,7 +1017,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
10021017
1003# Check how to create a tarball. -*- Autoconf -*-1018# Check how to create a tarball. -*- Autoconf -*-
10041019
1005# Copyright (C) 2004-2018 Free Software Foundation, Inc.1020# Copyright (C) 2004-2021 Free Software Foundation, Inc.
1006#1021#
1007# This file is free software; the Free Software Foundation1022# This file is free software; the Free Software Foundation
1008# gives unlimited permission to copy and/or distribute it,1023# gives unlimited permission to copy and/or distribute it,
diff --git a/build-aux/compile b/build-aux/compile
index 99e5052..df363c8 100755
--- a/build-aux/compile
+++ b/build-aux/compile
@@ -3,7 +3,7 @@
33
4scriptversion=2018-03-07.03; # UTC4scriptversion=2018-03-07.03; # UTC
55
6# Copyright (C) 1999-2018 Free Software Foundation, Inc.6# Copyright (C) 1999-2021 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
@@ -53,7 +53,7 @@ func_file_conv ()
53 MINGW*)53 MINGW*)
54 file_conv=mingw54 file_conv=mingw
55 ;;55 ;;
56 CYGWIN*)56 CYGWIN* | MSYS*)
57 file_conv=cygwin57 file_conv=cygwin
58 ;;58 ;;
59 *)59 *)
@@ -67,7 +67,7 @@ func_file_conv ()
67 mingw/*)67 mingw/*)
68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`68 file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'`
69 ;;69 ;;
70 cygwin/*)70 cygwin/* | msys/*)
71 file=`cygpath -m "$file" || echo "$file"`71 file=`cygpath -m "$file" || echo "$file"`
72 ;;72 ;;
73 wine/*)73 wine/*)
diff --git a/build-aux/config.guess b/build-aux/config.guess
index 256083a..c7f17e8 100755
--- a/build-aux/config.guess
+++ b/build-aux/config.guess
@@ -1,12 +1,14 @@
1#! /bin/sh1#!/usr/bin/sh
2# Attempt to guess a canonical system name.2# Attempt to guess a canonical system name.
3# Copyright 1992-2018 Free Software Foundation, Inc.3# Copyright 1992-2022 Free Software Foundation, Inc.
44
5timestamp='2018-03-08'5# shellcheck disable=SC2006,SC2268 # see below for rationale
6
7timestamp='2022-05-25'
68
7# This file is free software; you can redistribute it and/or modify it9# 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 by10# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or11# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.12# (at your option) any later version.
11#13#
12# This program is distributed in the hope that it will be useful, but14# This program is distributed in the hope that it will be useful, but
@@ -27,11 +29,19 @@ timestamp='2018-03-08'
27# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.29# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
28#30#
29# You can get the latest version of this script from:31# You can get the latest version of this script from:
30# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess32# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
31#33#
32# Please send patches to <config-patches@gnu.org>.34# Please send patches to <config-patches@gnu.org>.
3335
3436
37# The "shellcheck disable" line above the timestamp inhibits complaints
38# about features and limitations of the classic Bourne shell that were
39# superseded or lifted in POSIX. However, this script identifies a wide
40# variety of pre-POSIX systems that do not have POSIX shells at all, and
41# even some reasonably current systems (Solaris 10 as case-in-point) still
42# have a pre-POSIX /bin/sh.
43
44
35me=`echo "$0" | sed -e 's,.*/,,'`45me=`echo "$0" | sed -e 's,.*/,,'`
3646
37usage="\47usage="\
@@ -50,7 +60,7 @@ version="\
50GNU config.guess ($timestamp)60GNU config.guess ($timestamp)
5161
52Originally written by Per Bothner.62Originally written by Per Bothner.
53Copyright 1992-2018 Free Software Foundation, Inc.63Copyright 1992-2022 Free Software Foundation, Inc.
5464
55This is free software; see the source for copying conditions. There is NO65This is free software; see the source for copying conditions. There is NO
56warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."66warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -84,7 +94,8 @@ if test $# != 0; then
84 exit 194 exit 1
85fi95fi
8696
87trap 'exit 1' 1 2 1597# Just in case it came from the environment.
98GUESS=
8899
89# CC_FOR_BUILD -- compiler used by this script. Note that the use of a100# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
90# compiler to aid in system detection is discouraged as it requires101# compiler to aid in system detection is discouraged as it requires
@@ -96,73 +107,90 @@ trap 'exit 1' 1 2 15
96107
97# Portable tmp directory creation inspired by the Autoconf team.108# Portable tmp directory creation inspired by the Autoconf team.
98109
99set_cc_for_build='110tmp=
100trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;111# shellcheck disable=SC2172
101trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;112trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
102: ${TMPDIR=/tmp} ;113
103 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||114set_cc_for_build() {
104 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||115 # prevent multiple calls if $tmp is already set
105 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||116 test "$tmp" && return 0
106 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;117 : "${TMPDIR=/tmp}"
107dummy=$tmp/dummy ;118 # shellcheck disable=SC2039,SC3028
108tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;119 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
109case $CC_FOR_BUILD,$HOST_CC,$CC in120 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
110 ,,) echo "int x;" > "$dummy.c" ;121 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
111 for c in cc gcc c89 c99 ; do122 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
112 if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then123 dummy=$tmp/dummy
113 CC_FOR_BUILD="$c"; break ;124 case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
114 fi ;125 ,,) echo "int x;" > "$dummy.c"
115 done ;126 for driver in cc gcc c89 c99 ; do
116 if test x"$CC_FOR_BUILD" = x ; then127 if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
117 CC_FOR_BUILD=no_compiler_found ;128 CC_FOR_BUILD=$driver
118 fi129 break
119 ;;130 fi
120 ,,*) CC_FOR_BUILD=$CC ;;131 done
121 ,*,*) CC_FOR_BUILD=$HOST_CC ;;132 if test x"$CC_FOR_BUILD" = x ; then
122esac ; set_cc_for_build= ;'133 CC_FOR_BUILD=no_compiler_found
134 fi
135 ;;
136 ,,*) CC_FOR_BUILD=$CC ;;
137 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
138 esac
139}
123140
124# This is needed to find uname on a Pyramid OSx when run in the BSD universe.141# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
125# (ghazi@noc.rutgers.edu 1994-08-24)142# (ghazi@noc.rutgers.edu 1994-08-24)
126if (test -f /.attbin/uname) >/dev/null 2>&1 ; then143if test -f /.attbin/uname ; then
127 PATH=$PATH:/.attbin ; export PATH144 PATH=$PATH:/.attbin ; export PATH
128fi145fi
129146
130UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown147UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
131UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown148UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
132UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown149UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
133UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown150UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
134151
135case "$UNAME_SYSTEM" in152case $UNAME_SYSTEM in
136Linux|GNU|GNU/*)153Linux|GNU|GNU/*)
137 # If the system lacks a compiler, then just pick glibc.154 LIBC=unknown
138 # We could probably try harder.
139 LIBC=gnu
140155
141 eval "$set_cc_for_build"156 set_cc_for_build
142 cat <<-EOF > "$dummy.c"157 cat <<-EOF > "$dummy.c"
143 #include <features.h>158 #include <features.h>
144 #if defined(__UCLIBC__)159 #if defined(__UCLIBC__)
145 LIBC=uclibc160 LIBC=uclibc
146 #elif defined(__dietlibc__)161 #elif defined(__dietlibc__)
147 LIBC=dietlibc162 LIBC=dietlibc
148 #else163 #elif defined(__GLIBC__)
149 LIBC=gnu164 LIBC=gnu
165 #else
166 #include <stdarg.h>
167 /* First heuristic to detect musl libc. */
168 #ifdef __DEFINED_va_list
169 LIBC=musl
170 #endif
150 #endif171 #endif
151 EOF172 EOF
152 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`"173 cc_set_libc=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`
174 eval "$cc_set_libc"
153175
154 # If ldd exists, use it to detect musl libc.176 # Second heuristic to detect musl libc.
155 if command -v ldd >/dev/null && \177 if [ "$LIBC" = unknown ] &&
156 ldd --version 2>&1 | grep -q ^musl178 command -v ldd >/dev/null &&
157 then179 ldd --version 2>&1 | grep -q ^musl; then
158 LIBC=musl180 LIBC=musl
181 fi
182
183 # If the system lacks a compiler, then just pick glibc.
184 # We could probably try harder.
185 if [ "$LIBC" = unknown ]; then
186 LIBC=gnu
159 fi187 fi
160 ;;188 ;;
161esac189esac
162190
163# Note: order is significant - the case branches are not exclusive.191# Note: order is significant - the case branches are not exclusive.
164192
165case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in193case $UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION in
166 *:NetBSD:*:*)194 *:NetBSD:*:*)
167 # NetBSD (nbsd) targets should (where applicable) match one or195 # NetBSD (nbsd) targets should (where applicable) match one or
168 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,196 # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
@@ -174,12 +202,12 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
174 #202 #
175 # Note: NetBSD doesn't particularly care about the vendor203 # Note: NetBSD doesn't particularly care about the vendor
176 # portion of the name. We always set it to "unknown".204 # portion of the name. We always set it to "unknown".
177 sysctl="sysctl -n hw.machine_arch"
178 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \205 UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \
179 "/sbin/$sysctl" 2>/dev/null || \206 /sbin/sysctl -n hw.machine_arch 2>/dev/null || \
180 "/usr/sbin/$sysctl" 2>/dev/null || \207 /usr/sbin/sysctl -n hw.machine_arch 2>/dev/null || \
181 echo unknown)`208 echo unknown)`
182 case "$UNAME_MACHINE_ARCH" in209 case $UNAME_MACHINE_ARCH in
210 aarch64eb) machine=aarch64_be-unknown ;;
183 armeb) machine=armeb-unknown ;;211 armeb) machine=armeb-unknown ;;
184 arm*) machine=arm-unknown ;;212 arm*) machine=arm-unknown ;;
185 sh3el) machine=shl-unknown ;;213 sh3el) machine=shl-unknown ;;
@@ -188,18 +216,18 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
188 earmv*)216 earmv*)
189 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`217 arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'`
190 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`218 endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'`
191 machine="${arch}${endian}"-unknown219 machine=${arch}${endian}-unknown
192 ;;220 ;;
193 *) machine="$UNAME_MACHINE_ARCH"-unknown ;;221 *) machine=$UNAME_MACHINE_ARCH-unknown ;;
194 esac222 esac
195 # The Operating System including object format, if it has switched223 # The Operating System including object format, if it has switched
196 # to ELF recently (or will in the future) and ABI.224 # to ELF recently (or will in the future) and ABI.
197 case "$UNAME_MACHINE_ARCH" in225 case $UNAME_MACHINE_ARCH in
198 earm*)226 earm*)
199 os=netbsdelf227 os=netbsdelf
200 ;;228 ;;
201 arm*|i386|m68k|ns32k|sh3*|sparc|vax)229 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
202 eval "$set_cc_for_build"230 set_cc_for_build
203 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \231 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
204 | grep -q __ELF__232 | grep -q __ELF__
205 then233 then
@@ -215,7 +243,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
215 ;;243 ;;
216 esac244 esac
217 # Determine ABI tags.245 # Determine ABI tags.
218 case "$UNAME_MACHINE_ARCH" in246 case $UNAME_MACHINE_ARCH in
219 earm*)247 earm*)
220 expr='s/^earmv[0-9]/-eabi/;s/eb$//'248 expr='s/^earmv[0-9]/-eabi/;s/eb$//'
221 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`249 abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
@@ -226,7 +254,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
226 # thus, need a distinct triplet. However, they do not need254 # thus, need a distinct triplet. However, they do not need
227 # kernel version information, so it can be replaced with a255 # kernel version information, so it can be replaced with a
228 # suitable tag, in the style of linux-gnu.256 # suitable tag, in the style of linux-gnu.
229 case "$UNAME_VERSION" in257 case $UNAME_VERSION in
230 Debian*)258 Debian*)
231 release='-gnu'259 release='-gnu'
232 ;;260 ;;
@@ -237,45 +265,57 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
237 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:265 # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
238 # contains redundant information, the shorter form:266 # contains redundant information, the shorter form:
239 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.267 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
240 echo "$machine-${os}${release}${abi}"268 GUESS=$machine-${os}${release}${abi-}
241 exit ;;269 ;;
242 *:Bitrig:*:*)270 *:Bitrig:*:*)
243 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`271 UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
244 echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"272 GUESS=$UNAME_MACHINE_ARCH-unknown-bitrig$UNAME_RELEASE
245 exit ;;273 ;;
246 *:OpenBSD:*:*)274 *:OpenBSD:*:*)
247 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`275 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
248 echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"276 GUESS=$UNAME_MACHINE_ARCH-unknown-openbsd$UNAME_RELEASE
249 exit ;;277 ;;
278 *:SecBSD:*:*)
279 UNAME_MACHINE_ARCH=`arch | sed 's/SecBSD.//'`
280 GUESS=$UNAME_MACHINE_ARCH-unknown-secbsd$UNAME_RELEASE
281 ;;
250 *:LibertyBSD:*:*)282 *:LibertyBSD:*:*)
251 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`283 UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'`
252 echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"284 GUESS=$UNAME_MACHINE_ARCH-unknown-libertybsd$UNAME_RELEASE
253 exit ;;285 ;;
254 *:MidnightBSD:*:*)286 *:MidnightBSD:*:*)
255 echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"287 GUESS=$UNAME_MACHINE-unknown-midnightbsd$UNAME_RELEASE
256 exit ;;288 ;;
257 *:ekkoBSD:*:*)289 *:ekkoBSD:*:*)
258 echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"290 GUESS=$UNAME_MACHINE-unknown-ekkobsd$UNAME_RELEASE
259 exit ;;291 ;;
260 *:SolidBSD:*:*)292 *:SolidBSD:*:*)
261 echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"293 GUESS=$UNAME_MACHINE-unknown-solidbsd$UNAME_RELEASE
262 exit ;;294 ;;
295 *:OS108:*:*)
296 GUESS=$UNAME_MACHINE-unknown-os108_$UNAME_RELEASE
297 ;;
263 macppc:MirBSD:*:*)298 macppc:MirBSD:*:*)
264 echo powerpc-unknown-mirbsd"$UNAME_RELEASE"299 GUESS=powerpc-unknown-mirbsd$UNAME_RELEASE
265 exit ;;300 ;;
266 *:MirBSD:*:*)301 *:MirBSD:*:*)
267 echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"302 GUESS=$UNAME_MACHINE-unknown-mirbsd$UNAME_RELEASE
268 exit ;;303 ;;
269 *:Sortix:*:*)304 *:Sortix:*:*)
270 echo "$UNAME_MACHINE"-unknown-sortix305 GUESS=$UNAME_MACHINE-unknown-sortix
271 exit ;;306 ;;
307 *:Twizzler:*:*)
308 GUESS=$UNAME_MACHINE-unknown-twizzler
309 ;;
272 *:Redox:*:*)310 *:Redox:*:*)
273 echo "$UNAME_MACHINE"-unknown-redox311 GUESS=$UNAME_MACHINE-unknown-redox
274 exit ;;312 ;;
275 mips:OSF1:*.*)313 mips:OSF1:*.*)
276 echo mips-dec-osf1314 GUESS=mips-dec-osf1
277 exit ;;315 ;;
278 alpha:OSF1:*:*)316 alpha:OSF1:*:*)
317 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
318 trap '' 0
279 case $UNAME_RELEASE in319 case $UNAME_RELEASE in
280 *4.0)320 *4.0)
281 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`321 UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
@@ -289,7 +329,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
289 # covers most systems running today. This code pipes the CPU329 # covers most systems running today. This code pipes the CPU
290 # types through head -n 1, so we only detect the type of CPU 0.330 # types through head -n 1, so we only detect the type of CPU 0.
291 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`331 ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
292 case "$ALPHA_CPU_TYPE" in332 case $ALPHA_CPU_TYPE in
293 "EV4 (21064)")333 "EV4 (21064)")
294 UNAME_MACHINE=alpha ;;334 UNAME_MACHINE=alpha ;;
295 "EV4.5 (21064)")335 "EV4.5 (21064)")
@@ -326,117 +366,121 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
326 # A Tn.n version is a released field test version.366 # A Tn.n version is a released field test version.
327 # A Xn.n version is an unreleased experimental baselevel.367 # A Xn.n version is an unreleased experimental baselevel.
328 # 1.2 uses "1.2" for uname -r.368 # 1.2 uses "1.2" for uname -r.
329 echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"369 OSF_REL=`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
330 # Reset EXIT trap before exiting to avoid spurious non-zero exit code.370 GUESS=$UNAME_MACHINE-dec-osf$OSF_REL
331 exitcode=$?371 ;;
332 trap '' 0
333 exit $exitcode ;;
334 Amiga*:UNIX_System_V:4.0:*)372 Amiga*:UNIX_System_V:4.0:*)
335 echo m68k-unknown-sysv4373 GUESS=m68k-unknown-sysv4
336 exit ;;374 ;;
337 *:[Aa]miga[Oo][Ss]:*:*)375 *:[Aa]miga[Oo][Ss]:*:*)
338 echo "$UNAME_MACHINE"-unknown-amigaos376 GUESS=$UNAME_MACHINE-unknown-amigaos
339 exit ;;377 ;;
340 *:[Mm]orph[Oo][Ss]:*:*)378 *:[Mm]orph[Oo][Ss]:*:*)
341 echo "$UNAME_MACHINE"-unknown-morphos379 GUESS=$UNAME_MACHINE-unknown-morphos
342 exit ;;380 ;;
343 *:OS/390:*:*)381 *:OS/390:*:*)
344 echo i370-ibm-openedition382 GUESS=i370-ibm-openedition
345 exit ;;383 ;;
346 *:z/VM:*:*)384 *:z/VM:*:*)
347 echo s390-ibm-zvmoe385 GUESS=s390-ibm-zvmoe
348 exit ;;386 ;;
349 *:OS400:*:*)387 *:OS400:*:*)
350 echo powerpc-ibm-os400388 GUESS=powerpc-ibm-os400
351 exit ;;389 ;;
352 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)390 arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
353 echo arm-acorn-riscix"$UNAME_RELEASE"391 GUESS=arm-acorn-riscix$UNAME_RELEASE
354 exit ;;392 ;;
355 arm*:riscos:*:*|arm*:RISCOS:*:*)393 arm*:riscos:*:*|arm*:RISCOS:*:*)
356 echo arm-unknown-riscos394 GUESS=arm-unknown-riscos
357 exit ;;395 ;;
358 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)396 SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
359 echo hppa1.1-hitachi-hiuxmpp397 GUESS=hppa1.1-hitachi-hiuxmpp
360 exit ;;398 ;;
361 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)399 Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
362 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.400 # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
363 if test "`(/bin/universe) 2>/dev/null`" = att ; then401 case `(/bin/universe) 2>/dev/null` in
364 echo pyramid-pyramid-sysv3402 att) GUESS=pyramid-pyramid-sysv3 ;;
365 else403 *) GUESS=pyramid-pyramid-bsd ;;
366 echo pyramid-pyramid-bsd404 esac
367 fi405 ;;
368 exit ;;
369 NILE*:*:*:dcosx)406 NILE*:*:*:dcosx)
370 echo pyramid-pyramid-svr4407 GUESS=pyramid-pyramid-svr4
371 exit ;;408 ;;
372 DRS?6000:unix:4.0:6*)409 DRS?6000:unix:4.0:6*)
373 echo sparc-icl-nx6410 GUESS=sparc-icl-nx6
374 exit ;;411 ;;
375 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)412 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
376 case `/usr/bin/uname -p` in413 case `/usr/bin/uname -p` in
377 sparc) echo sparc-icl-nx7; exit ;;414 sparc) GUESS=sparc-icl-nx7 ;;
378 esac ;;415 esac
416 ;;
379 s390x:SunOS:*:*)417 s390x:SunOS:*:*)
380 echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"418 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
381 exit ;;419 GUESS=$UNAME_MACHINE-ibm-solaris2$SUN_REL
420 ;;
382 sun4H:SunOS:5.*:*)421 sun4H:SunOS:5.*:*)
383 echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"422 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
384 exit ;;423 GUESS=sparc-hal-solaris2$SUN_REL
424 ;;
385 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)425 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
386 echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`"426 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
387 exit ;;427 GUESS=sparc-sun-solaris2$SUN_REL
428 ;;
388 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)429 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
389 echo i386-pc-auroraux"$UNAME_RELEASE"430 GUESS=i386-pc-auroraux$UNAME_RELEASE
390 exit ;;431 ;;
391 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)432 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
392 eval "$set_cc_for_build"433 set_cc_for_build
393 SUN_ARCH=i386434 SUN_ARCH=i386
394 # If there is a compiler, see if it is configured for 64-bit objects.435 # If there is a compiler, see if it is configured for 64-bit objects.
395 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.436 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
396 # This test works for both compilers.437 # This test works for both compilers.
397 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then438 if test "$CC_FOR_BUILD" != no_compiler_found; then
398 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \439 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
399 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \440 (CCOPTS="" $CC_FOR_BUILD -m64 -E - 2>/dev/null) | \
400 grep IS_64BIT_ARCH >/dev/null441 grep IS_64BIT_ARCH >/dev/null
401 then442 then
402 SUN_ARCH=x86_64443 SUN_ARCH=x86_64
403 fi444 fi
404 fi445 fi
405 echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"446 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
406 exit ;;447 GUESS=$SUN_ARCH-pc-solaris2$SUN_REL
448 ;;
407 sun4*:SunOS:6*:*)449 sun4*:SunOS:6*:*)
408 # According to config.sub, this is the proper way to canonicalize450 # According to config.sub, this is the proper way to canonicalize
409 # SunOS6. Hard to guess exactly what SunOS6 will be like, but451 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
410 # it's likely to be more like Solaris than SunOS4.452 # it's likely to be more like Solaris than SunOS4.
411 echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"453 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
412 exit ;;454 GUESS=sparc-sun-solaris3$SUN_REL
455 ;;
413 sun4*:SunOS:*:*)456 sun4*:SunOS:*:*)
414 case "`/usr/bin/arch -k`" in457 case `/usr/bin/arch -k` in
415 Series*|S4*)458 Series*|S4*)
416 UNAME_RELEASE=`uname -v`459 UNAME_RELEASE=`uname -v`
417 ;;460 ;;
418 esac461 esac
419 # Japanese Language versions have a version number like `4.1.3-JL'.462 # Japanese Language versions have a version number like `4.1.3-JL'.
420 echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`"463 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/'`
421 exit ;;464 GUESS=sparc-sun-sunos$SUN_REL
465 ;;
422 sun3*:SunOS:*:*)466 sun3*:SunOS:*:*)
423 echo m68k-sun-sunos"$UNAME_RELEASE"467 GUESS=m68k-sun-sunos$UNAME_RELEASE
424 exit ;;468 ;;
425 sun*:*:4.2BSD:*)469 sun*:*:4.2BSD:*)
426 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`470 UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
427 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3471 test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
428 case "`/bin/arch`" in472 case `/bin/arch` in
429 sun3)473 sun3)
430 echo m68k-sun-sunos"$UNAME_RELEASE"474 GUESS=m68k-sun-sunos$UNAME_RELEASE
431 ;;475 ;;
432 sun4)476 sun4)
433 echo sparc-sun-sunos"$UNAME_RELEASE"477 GUESS=sparc-sun-sunos$UNAME_RELEASE
434 ;;478 ;;
435 esac479 esac
436 exit ;;480 ;;
437 aushp:SunOS:*:*)481 aushp:SunOS:*:*)
438 echo sparc-auspex-sunos"$UNAME_RELEASE"482 GUESS=sparc-auspex-sunos$UNAME_RELEASE
439 exit ;;483 ;;
440 # The situation for MiNT is a little confusing. The machine name484 # The situation for MiNT is a little confusing. The machine name
441 # can be virtually everything (everything which is not485 # can be virtually everything (everything which is not
442 # "atarist" or "atariste" at least should have a processor486 # "atarist" or "atariste" at least should have a processor
@@ -446,43 +490,43 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
446 # MiNT. But MiNT is downward compatible to TOS, so this should490 # MiNT. But MiNT is downward compatible to TOS, so this should
447 # be no problem.491 # be no problem.
448 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)492 atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
449 echo m68k-atari-mint"$UNAME_RELEASE"493 GUESS=m68k-atari-mint$UNAME_RELEASE
450 exit ;;494 ;;
451 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)495 atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
452 echo m68k-atari-mint"$UNAME_RELEASE"496 GUESS=m68k-atari-mint$UNAME_RELEASE
453 exit ;;497 ;;
454 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)498 *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
455 echo m68k-atari-mint"$UNAME_RELEASE"499 GUESS=m68k-atari-mint$UNAME_RELEASE
456 exit ;;500 ;;
457 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)501 milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
458 echo m68k-milan-mint"$UNAME_RELEASE"502 GUESS=m68k-milan-mint$UNAME_RELEASE
459 exit ;;503 ;;
460 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)504 hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
461 echo m68k-hades-mint"$UNAME_RELEASE"505 GUESS=m68k-hades-mint$UNAME_RELEASE
462 exit ;;506 ;;
463 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)507 *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
464 echo m68k-unknown-mint"$UNAME_RELEASE"508 GUESS=m68k-unknown-mint$UNAME_RELEASE
465 exit ;;509 ;;
466 m68k:machten:*:*)510 m68k:machten:*:*)
467 echo m68k-apple-machten"$UNAME_RELEASE"511 GUESS=m68k-apple-machten$UNAME_RELEASE
468 exit ;;512 ;;
469 powerpc:machten:*:*)513 powerpc:machten:*:*)
470 echo powerpc-apple-machten"$UNAME_RELEASE"514 GUESS=powerpc-apple-machten$UNAME_RELEASE
471 exit ;;515 ;;
472 RISC*:Mach:*:*)516 RISC*:Mach:*:*)
473 echo mips-dec-mach_bsd4.3517 GUESS=mips-dec-mach_bsd4.3
474 exit ;;518 ;;
475 RISC*:ULTRIX:*:*)519 RISC*:ULTRIX:*:*)
476 echo mips-dec-ultrix"$UNAME_RELEASE"520 GUESS=mips-dec-ultrix$UNAME_RELEASE
477 exit ;;521 ;;
478 VAX*:ULTRIX*:*:*)522 VAX*:ULTRIX*:*:*)
479 echo vax-dec-ultrix"$UNAME_RELEASE"523 GUESS=vax-dec-ultrix$UNAME_RELEASE
480 exit ;;524 ;;
481 2020:CLIX:*:* | 2430:CLIX:*:*)525 2020:CLIX:*:* | 2430:CLIX:*:*)
482 echo clipper-intergraph-clix"$UNAME_RELEASE"526 GUESS=clipper-intergraph-clix$UNAME_RELEASE
483 exit ;;527 ;;
484 mips:*:*:UMIPS | mips:*:*:RISCos)528 mips:*:*:UMIPS | mips:*:*:RISCos)
485 eval "$set_cc_for_build"529 set_cc_for_build
486 sed 's/^ //' << EOF > "$dummy.c"530 sed 's/^ //' << EOF > "$dummy.c"
487#ifdef __cplusplus531#ifdef __cplusplus
488#include <stdio.h> /* for printf() prototype */532#include <stdio.h> /* for printf() prototype */
@@ -508,78 +552,79 @@ EOF
508 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&552 dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` &&
509 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&553 SYSTEM_NAME=`"$dummy" "$dummyarg"` &&
510 { echo "$SYSTEM_NAME"; exit; }554 { echo "$SYSTEM_NAME"; exit; }
511 echo mips-mips-riscos"$UNAME_RELEASE"555 GUESS=mips-mips-riscos$UNAME_RELEASE
512 exit ;;556 ;;
513 Motorola:PowerMAX_OS:*:*)557 Motorola:PowerMAX_OS:*:*)
514 echo powerpc-motorola-powermax558 GUESS=powerpc-motorola-powermax
515 exit ;;559 ;;
516 Motorola:*:4.3:PL8-*)560 Motorola:*:4.3:PL8-*)
517 echo powerpc-harris-powermax561 GUESS=powerpc-harris-powermax
518 exit ;;562 ;;
519 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)563 Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
520 echo powerpc-harris-powermax564 GUESS=powerpc-harris-powermax
521 exit ;;565 ;;
522 Night_Hawk:Power_UNIX:*:*)566 Night_Hawk:Power_UNIX:*:*)
523 echo powerpc-harris-powerunix567 GUESS=powerpc-harris-powerunix
524 exit ;;568 ;;
525 m88k:CX/UX:7*:*)569 m88k:CX/UX:7*:*)
526 echo m88k-harris-cxux7570 GUESS=m88k-harris-cxux7
527 exit ;;571 ;;
528 m88k:*:4*:R4*)572 m88k:*:4*:R4*)
529 echo m88k-motorola-sysv4573 GUESS=m88k-motorola-sysv4
530 exit ;;574 ;;
531 m88k:*:3*:R3*)575 m88k:*:3*:R3*)
532 echo m88k-motorola-sysv3576 GUESS=m88k-motorola-sysv3
533 exit ;;577 ;;
534 AViiON:dgux:*:*)578 AViiON:dgux:*:*)
535 # DG/UX returns AViiON for all architectures579 # DG/UX returns AViiON for all architectures
536 UNAME_PROCESSOR=`/usr/bin/uname -p`580 UNAME_PROCESSOR=`/usr/bin/uname -p`
537 if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]581 if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
538 then582 then
539 if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \583 if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
540 [ "$TARGET_BINARY_INTERFACE"x = x ]584 test "$TARGET_BINARY_INTERFACE"x = x
541 then585 then
542 echo m88k-dg-dgux"$UNAME_RELEASE"586 GUESS=m88k-dg-dgux$UNAME_RELEASE
543 else587 else
544 echo m88k-dg-dguxbcs"$UNAME_RELEASE"588 GUESS=m88k-dg-dguxbcs$UNAME_RELEASE
545 fi589 fi
546 else590 else
547 echo i586-dg-dgux"$UNAME_RELEASE"591 GUESS=i586-dg-dgux$UNAME_RELEASE
548 fi592 fi
549 exit ;;593 ;;
550 M88*:DolphinOS:*:*) # DolphinOS (SVR3)594 M88*:DolphinOS:*:*) # DolphinOS (SVR3)
551 echo m88k-dolphin-sysv3595 GUESS=m88k-dolphin-sysv3
552 exit ;;596 ;;
553 M88*:*:R3*:*)597 M88*:*:R3*:*)
554 # Delta 88k system running SVR3598 # Delta 88k system running SVR3
555 echo m88k-motorola-sysv3599 GUESS=m88k-motorola-sysv3
556 exit ;;600 ;;
557 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)601 XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
558 echo m88k-tektronix-sysv3602 GUESS=m88k-tektronix-sysv3
559 exit ;;603 ;;
560 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)604 Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
561 echo m68k-tektronix-bsd605 GUESS=m68k-tektronix-bsd
562 exit ;;606 ;;
563 *:IRIX*:*:*)607 *:IRIX*:*:*)
564 echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`"608 IRIX_REL=`echo "$UNAME_RELEASE" | sed -e 's/-/_/g'`
565 exit ;;609 GUESS=mips-sgi-irix$IRIX_REL
610 ;;
566 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.611 ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
567 echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id612 GUESS=romp-ibm-aix # uname -m gives an 8 hex-code CPU id
568 exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '613 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
569 i*86:AIX:*:*)614 i*86:AIX:*:*)
570 echo i386-ibm-aix615 GUESS=i386-ibm-aix
571 exit ;;616 ;;
572 ia64:AIX:*:*)617 ia64:AIX:*:*)
573 if [ -x /usr/bin/oslevel ] ; then618 if test -x /usr/bin/oslevel ; then
574 IBM_REV=`/usr/bin/oslevel`619 IBM_REV=`/usr/bin/oslevel`
575 else620 else
576 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"621 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
577 fi622 fi
578 echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"623 GUESS=$UNAME_MACHINE-ibm-aix$IBM_REV
579 exit ;;624 ;;
580 *:AIX:2:3)625 *:AIX:2:3)
581 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then626 if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
582 eval "$set_cc_for_build"627 set_cc_for_build
583 sed 's/^ //' << EOF > "$dummy.c"628 sed 's/^ //' << EOF > "$dummy.c"
584 #include <sys/systemcfg.h>629 #include <sys/systemcfg.h>
585630
@@ -593,16 +638,16 @@ EOF
593EOF638EOF
594 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`639 if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"`
595 then640 then
596 echo "$SYSTEM_NAME"641 GUESS=$SYSTEM_NAME
597 else642 else
598 echo rs6000-ibm-aix3.2.5643 GUESS=rs6000-ibm-aix3.2.5
599 fi644 fi
600 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then645 elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
601 echo rs6000-ibm-aix3.2.4646 GUESS=rs6000-ibm-aix3.2.4
602 else647 else
603 echo rs6000-ibm-aix3.2648 GUESS=rs6000-ibm-aix3.2
604 fi649 fi
605 exit ;;650 ;;
606 *:AIX:*:[4567])651 *:AIX:*:[4567])
607 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`652 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
608 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then653 if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
@@ -610,57 +655,57 @@ EOF
610 else655 else
611 IBM_ARCH=powerpc656 IBM_ARCH=powerpc
612 fi657 fi
613 if [ -x /usr/bin/lslpp ] ; then658 if test -x /usr/bin/lslpp ; then
614 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc |659 IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | \
615 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`660 awk -F: '{ print $3 }' | sed s/[0-9]*$/0/`
616 else661 else
617 IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"662 IBM_REV=$UNAME_VERSION.$UNAME_RELEASE
618 fi663 fi
619 echo "$IBM_ARCH"-ibm-aix"$IBM_REV"664 GUESS=$IBM_ARCH-ibm-aix$IBM_REV
620 exit ;;665 ;;
621 *:AIX:*:*)666 *:AIX:*:*)
622 echo rs6000-ibm-aix667 GUESS=rs6000-ibm-aix
623 exit ;;668 ;;
624 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)669 ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
625 echo romp-ibm-bsd4.4670 GUESS=romp-ibm-bsd4.4
626 exit ;;671 ;;
627 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and672 ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
628 echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to673 GUESS=romp-ibm-bsd$UNAME_RELEASE # 4.3 with uname added to
629 exit ;; # report: romp-ibm BSD 4.3674 ;; # report: romp-ibm BSD 4.3
630 *:BOSX:*:*)675 *:BOSX:*:*)
631 echo rs6000-bull-bosx676 GUESS=rs6000-bull-bosx
632 exit ;;677 ;;
633 DPX/2?00:B.O.S.:*:*)678 DPX/2?00:B.O.S.:*:*)
634 echo m68k-bull-sysv3679 GUESS=m68k-bull-sysv3
635 exit ;;680 ;;
636 9000/[34]??:4.3bsd:1.*:*)681 9000/[34]??:4.3bsd:1.*:*)
637 echo m68k-hp-bsd682 GUESS=m68k-hp-bsd
638 exit ;;683 ;;
639 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)684 hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
640 echo m68k-hp-bsd4.4685 GUESS=m68k-hp-bsd4.4
641 exit ;;686 ;;
642 9000/[34678]??:HP-UX:*:*)687 9000/[34678]??:HP-UX:*:*)
643 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`688 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
644 case "$UNAME_MACHINE" in689 case $UNAME_MACHINE in
645 9000/31?) HP_ARCH=m68000 ;;690 9000/31?) HP_ARCH=m68000 ;;
646 9000/[34]??) HP_ARCH=m68k ;;691 9000/[34]??) HP_ARCH=m68k ;;
647 9000/[678][0-9][0-9])692 9000/[678][0-9][0-9])
648 if [ -x /usr/bin/getconf ]; then693 if test -x /usr/bin/getconf; then
649 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`694 sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
650 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`695 sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
651 case "$sc_cpu_version" in696 case $sc_cpu_version in
652 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0697 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
653 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1698 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
654 532) # CPU_PA_RISC2_0699 532) # CPU_PA_RISC2_0
655 case "$sc_kernel_bits" in700 case $sc_kernel_bits in
656 32) HP_ARCH=hppa2.0n ;;701 32) HP_ARCH=hppa2.0n ;;
657 64) HP_ARCH=hppa2.0w ;;702 64) HP_ARCH=hppa2.0w ;;
658 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20703 '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
659 esac ;;704 esac ;;
660 esac705 esac
661 fi706 fi
662 if [ "$HP_ARCH" = "" ]; then707 if test "$HP_ARCH" = ""; then
663 eval "$set_cc_for_build"708 set_cc_for_build
664 sed 's/^ //' << EOF > "$dummy.c"709 sed 's/^ //' << EOF > "$dummy.c"
665710
666 #define _HPUX_SOURCE711 #define _HPUX_SOURCE
@@ -698,9 +743,9 @@ EOF
698 test -z "$HP_ARCH" && HP_ARCH=hppa743 test -z "$HP_ARCH" && HP_ARCH=hppa
699 fi ;;744 fi ;;
700 esac745 esac
701 if [ "$HP_ARCH" = hppa2.0w ]746 if test "$HP_ARCH" = hppa2.0w
702 then747 then
703 eval "$set_cc_for_build"748 set_cc_for_build
704749
705 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating750 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
706 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler751 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -719,14 +764,14 @@ EOF
719 HP_ARCH=hppa64764 HP_ARCH=hppa64
720 fi765 fi
721 fi766 fi
722 echo "$HP_ARCH"-hp-hpux"$HPUX_REV"767 GUESS=$HP_ARCH-hp-hpux$HPUX_REV
723 exit ;;768 ;;
724 ia64:HP-UX:*:*)769 ia64:HP-UX:*:*)
725 HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'`770 HPUX_REV=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*.[0B]*//'`
726 echo ia64-hp-hpux"$HPUX_REV"771 GUESS=ia64-hp-hpux$HPUX_REV
727 exit ;;772 ;;
728 3050*:HI-UX:*:*)773 3050*:HI-UX:*:*)
729 eval "$set_cc_for_build"774 set_cc_for_build
730 sed 's/^ //' << EOF > "$dummy.c"775 sed 's/^ //' << EOF > "$dummy.c"
731 #include <unistd.h>776 #include <unistd.h>
732 int777 int
@@ -754,36 +799,36 @@ EOF
754EOF799EOF
755 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&800 $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` &&
756 { echo "$SYSTEM_NAME"; exit; }801 { echo "$SYSTEM_NAME"; exit; }
757 echo unknown-hitachi-hiuxwe2802 GUESS=unknown-hitachi-hiuxwe2
758 exit ;;803 ;;
759 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)804 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
760 echo hppa1.1-hp-bsd805 GUESS=hppa1.1-hp-bsd
761 exit ;;806 ;;
762 9000/8??:4.3bsd:*:*)807 9000/8??:4.3bsd:*:*)
763 echo hppa1.0-hp-bsd808 GUESS=hppa1.0-hp-bsd
764 exit ;;809 ;;
765 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)810 *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
766 echo hppa1.0-hp-mpeix811 GUESS=hppa1.0-hp-mpeix
767 exit ;;812 ;;
768 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)813 hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
769 echo hppa1.1-hp-osf814 GUESS=hppa1.1-hp-osf
770 exit ;;815 ;;
771 hp8??:OSF1:*:*)816 hp8??:OSF1:*:*)
772 echo hppa1.0-hp-osf817 GUESS=hppa1.0-hp-osf
773 exit ;;818 ;;
774 i*86:OSF1:*:*)819 i*86:OSF1:*:*)
775 if [ -x /usr/sbin/sysversion ] ; then820 if test -x /usr/sbin/sysversion ; then
776 echo "$UNAME_MACHINE"-unknown-osf1mk821 GUESS=$UNAME_MACHINE-unknown-osf1mk
777 else822 else
778 echo "$UNAME_MACHINE"-unknown-osf1823 GUESS=$UNAME_MACHINE-unknown-osf1
779 fi824 fi
780 exit ;;825 ;;
781 parisc*:Lites*:*:*)826 parisc*:Lites*:*:*)
782 echo hppa1.1-hp-lites827 GUESS=hppa1.1-hp-lites
783 exit ;;828 ;;
784 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)829 C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
785 echo c1-convex-bsd830 GUESS=c1-convex-bsd
786 exit ;;831 ;;
787 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)832 C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
788 if getsysinfo -f scalar_acc833 if getsysinfo -f scalar_acc
789 then echo c32-convex-bsd834 then echo c32-convex-bsd
@@ -791,17 +836,18 @@ EOF
791 fi836 fi
792 exit ;;837 exit ;;
793 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)838 C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
794 echo c34-convex-bsd839 GUESS=c34-convex-bsd
795 exit ;;840 ;;
796 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)841 C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
797 echo c38-convex-bsd842 GUESS=c38-convex-bsd
798 exit ;;843 ;;
799 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)844 C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
800 echo c4-convex-bsd845 GUESS=c4-convex-bsd
801 exit ;;846 ;;
802 CRAY*Y-MP:*:*:*)847 CRAY*Y-MP:*:*:*)
803 echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'848 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
804 exit ;;849 GUESS=ymp-cray-unicos$CRAY_REL
850 ;;
805 CRAY*[A-Z]90:*:*:*)851 CRAY*[A-Z]90:*:*:*)
806 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \852 echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
807 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \853 | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
@@ -809,103 +855,129 @@ EOF
809 -e 's/\.[^.]*$/.X/'855 -e 's/\.[^.]*$/.X/'
810 exit ;;856 exit ;;
811 CRAY*TS:*:*:*)857 CRAY*TS:*:*:*)
812 echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'858 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
813 exit ;;859 GUESS=t90-cray-unicos$CRAY_REL
860 ;;
814 CRAY*T3E:*:*:*)861 CRAY*T3E:*:*:*)
815 echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'862 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
816 exit ;;863 GUESS=alphaev5-cray-unicosmk$CRAY_REL
864 ;;
817 CRAY*SV1:*:*:*)865 CRAY*SV1:*:*:*)
818 echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'866 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
819 exit ;;867 GUESS=sv1-cray-unicos$CRAY_REL
868 ;;
820 *:UNICOS/mp:*:*)869 *:UNICOS/mp:*:*)
821 echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'870 CRAY_REL=`echo "$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'`
822 exit ;;871 GUESS=craynv-cray-unicosmp$CRAY_REL
872 ;;
823 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)873 F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
824 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`874 FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
825 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`875 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
826 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`876 FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
827 echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"877 GUESS=${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
828 exit ;;878 ;;
829 5000:UNIX_System_V:4.*:*)879 5000:UNIX_System_V:4.*:*)
830 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`880 FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
831 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`881 FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
832 echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"882 GUESS=sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}
833 exit ;;883 ;;
834 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)884 i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
835 echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"885 GUESS=$UNAME_MACHINE-pc-bsdi$UNAME_RELEASE
836 exit ;;886 ;;
837 sparc*:BSD/OS:*:*)887 sparc*:BSD/OS:*:*)
838 echo sparc-unknown-bsdi"$UNAME_RELEASE"888 GUESS=sparc-unknown-bsdi$UNAME_RELEASE
839 exit ;;889 ;;
840 *:BSD/OS:*:*)890 *:BSD/OS:*:*)
841 echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"891 GUESS=$UNAME_MACHINE-unknown-bsdi$UNAME_RELEASE
842 exit ;;892 ;;
893 arm:FreeBSD:*:*)
894 UNAME_PROCESSOR=`uname -p`
895 set_cc_for_build
896 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
897 | grep -q __ARM_PCS_VFP
898 then
899 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
900 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabi
901 else
902 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
903 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL-gnueabihf
904 fi
905 ;;
843 *:FreeBSD:*:*)906 *:FreeBSD:*:*)
844 UNAME_PROCESSOR=`/usr/bin/uname -p`907 UNAME_PROCESSOR=`/usr/bin/uname -p`
845 case "$UNAME_PROCESSOR" in908 case $UNAME_PROCESSOR in
846 amd64)909 amd64)
847 UNAME_PROCESSOR=x86_64 ;;910 UNAME_PROCESSOR=x86_64 ;;
848 i386)911 i386)
849 UNAME_PROCESSOR=i586 ;;912 UNAME_PROCESSOR=i586 ;;
850 esac913 esac
851 echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"914 FREEBSD_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
852 exit ;;915 GUESS=$UNAME_PROCESSOR-unknown-freebsd$FREEBSD_REL
916 ;;
853 i*:CYGWIN*:*)917 i*:CYGWIN*:*)
854 echo "$UNAME_MACHINE"-pc-cygwin918 GUESS=$UNAME_MACHINE-pc-cygwin
855 exit ;;919 ;;
856 *:MINGW64*:*)920 *:MINGW64*:*)
857 echo "$UNAME_MACHINE"-pc-mingw64921 GUESS=$UNAME_MACHINE-pc-mingw64
858 exit ;;922 ;;
859 *:MINGW*:*)923 *:MINGW*:*)
860 echo "$UNAME_MACHINE"-pc-mingw32924 GUESS=$UNAME_MACHINE-pc-mingw32
861 exit ;;925 ;;
862 *:MSYS*:*)926 *:MSYS*:*)
863 echo "$UNAME_MACHINE"-pc-msys927 GUESS=$UNAME_MACHINE-pc-msys
864 exit ;;928 ;;
865 i*:PW*:*)929 i*:PW*:*)
866 echo "$UNAME_MACHINE"-pc-pw32930 GUESS=$UNAME_MACHINE-pc-pw32
867 exit ;;931 ;;
932 *:SerenityOS:*:*)
933 GUESS=$UNAME_MACHINE-pc-serenity
934 ;;
868 *:Interix*:*)935 *:Interix*:*)
869 case "$UNAME_MACHINE" in936 case $UNAME_MACHINE in
870 x86)937 x86)
871 echo i586-pc-interix"$UNAME_RELEASE"938 GUESS=i586-pc-interix$UNAME_RELEASE
872 exit ;;939 ;;
873 authenticamd | genuineintel | EM64T)940 authenticamd | genuineintel | EM64T)
874 echo x86_64-unknown-interix"$UNAME_RELEASE"941 GUESS=x86_64-unknown-interix$UNAME_RELEASE
875 exit ;;942 ;;
876 IA64)943 IA64)
877 echo ia64-unknown-interix"$UNAME_RELEASE"944 GUESS=ia64-unknown-interix$UNAME_RELEASE
878 exit ;;945 ;;
879 esac ;;946 esac ;;
880 i*:UWIN*:*)947 i*:UWIN*:*)
881 echo "$UNAME_MACHINE"-pc-uwin948 GUESS=$UNAME_MACHINE-pc-uwin
882 exit ;;949 ;;
883 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)950 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
884 echo x86_64-unknown-cygwin951 GUESS=x86_64-pc-cygwin
885 exit ;;952 ;;
886 prep*:SunOS:5.*:*)953 prep*:SunOS:5.*:*)
887 echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`"954 SUN_REL=`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`
888 exit ;;955 GUESS=powerpcle-unknown-solaris2$SUN_REL
956 ;;
889 *:GNU:*:*)957 *:GNU:*:*)
890 # the GNU system958 # the GNU system
891 echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`"959 GNU_ARCH=`echo "$UNAME_MACHINE" | sed -e 's,[-/].*$,,'`
892 exit ;;960 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's,/.*$,,'`
961 GUESS=$GNU_ARCH-unknown-$LIBC$GNU_REL
962 ;;
893 *:GNU/*:*:*)963 *:GNU/*:*:*)
894 # other systems with GNU libc and userland964 # other systems with GNU libc and userland
895 echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC"965 GNU_SYS=`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"`
896 exit ;;966 GNU_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
897 i*86:Minix:*:*)967 GUESS=$UNAME_MACHINE-unknown-$GNU_SYS$GNU_REL-$LIBC
898 echo "$UNAME_MACHINE"-pc-minix968 ;;
899 exit ;;969 *:Minix:*:*)
970 GUESS=$UNAME_MACHINE-unknown-minix
971 ;;
900 aarch64:Linux:*:*)972 aarch64:Linux:*:*)
901 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"973 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
902 exit ;;974 ;;
903 aarch64_be:Linux:*:*)975 aarch64_be:Linux:*:*)
904 UNAME_MACHINE=aarch64_be976 UNAME_MACHINE=aarch64_be
905 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"977 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
906 exit ;;978 ;;
907 alpha:Linux:*:*)979 alpha:Linux:*:*)
908 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in980 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null` in
909 EV5) UNAME_MACHINE=alphaev5 ;;981 EV5) UNAME_MACHINE=alphaev5 ;;
910 EV56) UNAME_MACHINE=alphaev56 ;;982 EV56) UNAME_MACHINE=alphaev56 ;;
911 PCA56) UNAME_MACHINE=alphapca56 ;;983 PCA56) UNAME_MACHINE=alphapca56 ;;
@@ -916,183 +988,236 @@ EOF
916 esac988 esac
917 objdump --private-headers /bin/sh | grep -q ld.so.1989 objdump --private-headers /bin/sh | grep -q ld.so.1
918 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi990 if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
919 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"991 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
920 exit ;;992 ;;
921 arc:Linux:*:* | arceb:Linux:*:*)993 arc:Linux:*:* | arceb:Linux:*:* | arc32:Linux:*:* | arc64:Linux:*:*)
922 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"994 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
923 exit ;;995 ;;
924 arm*:Linux:*:*)996 arm*:Linux:*:*)
925 eval "$set_cc_for_build"997 set_cc_for_build
926 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \998 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
927 | grep -q __ARM_EABI__999 | grep -q __ARM_EABI__
928 then1000 then
929 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1001 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
930 else1002 else
931 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \1003 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
932 | grep -q __ARM_PCS_VFP1004 | grep -q __ARM_PCS_VFP
933 then1005 then
934 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi1006 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabi
935 else1007 else
936 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf1008 GUESS=$UNAME_MACHINE-unknown-linux-${LIBC}eabihf
937 fi1009 fi
938 fi1010 fi
939 exit ;;1011 ;;
940 avr32*:Linux:*:*)1012 avr32*:Linux:*:*)
941 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1013 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
942 exit ;;1014 ;;
943 cris:Linux:*:*)1015 cris:Linux:*:*)
944 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"1016 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
945 exit ;;1017 ;;
946 crisv32:Linux:*:*)1018 crisv32:Linux:*:*)
947 echo "$UNAME_MACHINE"-axis-linux-"$LIBC"1019 GUESS=$UNAME_MACHINE-axis-linux-$LIBC
948 exit ;;1020 ;;
949 e2k:Linux:*:*)1021 e2k:Linux:*:*)
950 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1022 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
951 exit ;;1023 ;;
952 frv:Linux:*:*)1024 frv:Linux:*:*)
953 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1025 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
954 exit ;;1026 ;;
955 hexagon:Linux:*:*)1027 hexagon:Linux:*:*)
956 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1028 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
957 exit ;;1029 ;;
958 i*86:Linux:*:*)1030 i*86:Linux:*:*)
959 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"1031 GUESS=$UNAME_MACHINE-pc-linux-$LIBC
960 exit ;;1032 ;;
961 ia64:Linux:*:*)1033 ia64:Linux:*:*)
962 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1034 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
963 exit ;;1035 ;;
964 k1om:Linux:*:*)1036 k1om:Linux:*:*)
965 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1037 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
966 exit ;;1038 ;;
1039 loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1040 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1041 ;;
967 m32r*:Linux:*:*)1042 m32r*:Linux:*:*)
968 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1043 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
969 exit ;;1044 ;;
970 m68*:Linux:*:*)1045 m68*:Linux:*:*)
971 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1046 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
972 exit ;;1047 ;;
973 mips:Linux:*:* | mips64:Linux:*:*)1048 mips:Linux:*:* | mips64:Linux:*:*)
974 eval "$set_cc_for_build"1049 set_cc_for_build
1050 IS_GLIBC=0
1051 test x"${LIBC}" = xgnu && IS_GLIBC=1
975 sed 's/^ //' << EOF > "$dummy.c"1052 sed 's/^ //' << EOF > "$dummy.c"
976 #undef CPU1053 #undef CPU
977 #undef ${UNAME_MACHINE}1054 #undef mips
978 #undef ${UNAME_MACHINE}el1055 #undef mipsel
1056 #undef mips64
1057 #undef mips64el
1058 #if ${IS_GLIBC} && defined(_ABI64)
1059 LIBCABI=gnuabi64
1060 #else
1061 #if ${IS_GLIBC} && defined(_ABIN32)
1062 LIBCABI=gnuabin32
1063 #else
1064 LIBCABI=${LIBC}
1065 #endif
1066 #endif
1067
1068 #if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1069 CPU=mipsisa64r6
1070 #else
1071 #if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1072 CPU=mipsisa32r6
1073 #else
1074 #if defined(__mips64)
1075 CPU=mips64
1076 #else
1077 CPU=mips
1078 #endif
1079 #endif
1080 #endif
1081
979 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)1082 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
980 CPU=${UNAME_MACHINE}el1083 MIPS_ENDIAN=el
981 #else1084 #else
982 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)1085 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
983 CPU=${UNAME_MACHINE}1086 MIPS_ENDIAN=
984 #else1087 #else
985 CPU=1088 MIPS_ENDIAN=
986 #endif1089 #endif
987 #endif1090 #endif
988EOF1091EOF
989 eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`"1092 cc_set_vars=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI'`
990 test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }1093 eval "$cc_set_vars"
1094 test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
991 ;;1095 ;;
992 mips64el:Linux:*:*)1096 mips64el:Linux:*:*)
993 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1097 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
994 exit ;;1098 ;;
995 openrisc*:Linux:*:*)1099 openrisc*:Linux:*:*)
996 echo or1k-unknown-linux-"$LIBC"1100 GUESS=or1k-unknown-linux-$LIBC
997 exit ;;1101 ;;
998 or32:Linux:*:* | or1k*:Linux:*:*)1102 or32:Linux:*:* | or1k*:Linux:*:*)
999 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1103 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1000 exit ;;1104 ;;
1001 padre:Linux:*:*)1105 padre:Linux:*:*)
1002 echo sparc-unknown-linux-"$LIBC"1106 GUESS=sparc-unknown-linux-$LIBC
1003 exit ;;1107 ;;
1004 parisc64:Linux:*:* | hppa64:Linux:*:*)1108 parisc64:Linux:*:* | hppa64:Linux:*:*)
1005 echo hppa64-unknown-linux-"$LIBC"1109 GUESS=hppa64-unknown-linux-$LIBC
1006 exit ;;1110 ;;
1007 parisc:Linux:*:* | hppa:Linux:*:*)1111 parisc:Linux:*:* | hppa:Linux:*:*)
1008 # Look for CPU level1112 # Look for CPU level
1009 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in1113 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
1010 PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;1114 PA7*) GUESS=hppa1.1-unknown-linux-$LIBC ;;
1011 PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;1115 PA8*) GUESS=hppa2.0-unknown-linux-$LIBC ;;
1012 *) echo hppa-unknown-linux-"$LIBC" ;;1116 *) GUESS=hppa-unknown-linux-$LIBC ;;
1013 esac1117 esac
1014 exit ;;1118 ;;
1015 ppc64:Linux:*:*)1119 ppc64:Linux:*:*)
1016 echo powerpc64-unknown-linux-"$LIBC"1120 GUESS=powerpc64-unknown-linux-$LIBC
1017 exit ;;1121 ;;
1018 ppc:Linux:*:*)1122 ppc:Linux:*:*)
1019 echo powerpc-unknown-linux-"$LIBC"1123 GUESS=powerpc-unknown-linux-$LIBC
1020 exit ;;1124 ;;
1021 ppc64le:Linux:*:*)1125 ppc64le:Linux:*:*)
1022 echo powerpc64le-unknown-linux-"$LIBC"1126 GUESS=powerpc64le-unknown-linux-$LIBC
1023 exit ;;1127 ;;
1024 ppcle:Linux:*:*)1128 ppcle:Linux:*:*)
1025 echo powerpcle-unknown-linux-"$LIBC"1129 GUESS=powerpcle-unknown-linux-$LIBC
1026 exit ;;1130 ;;
1027 riscv32:Linux:*:* | riscv64:Linux:*:*)1131 riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*)
1028 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1132 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1029 exit ;;1133 ;;
1030 s390:Linux:*:* | s390x:Linux:*:*)1134 s390:Linux:*:* | s390x:Linux:*:*)
1031 echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"1135 GUESS=$UNAME_MACHINE-ibm-linux-$LIBC
1032 exit ;;1136 ;;
1033 sh64*:Linux:*:*)1137 sh64*:Linux:*:*)
1034 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1138 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1035 exit ;;1139 ;;
1036 sh*:Linux:*:*)1140 sh*:Linux:*:*)
1037 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1141 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1038 exit ;;1142 ;;
1039 sparc:Linux:*:* | sparc64:Linux:*:*)1143 sparc:Linux:*:* | sparc64:Linux:*:*)
1040 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1144 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1041 exit ;;1145 ;;
1042 tile*:Linux:*:*)1146 tile*:Linux:*:*)
1043 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1147 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1044 exit ;;1148 ;;
1045 vax:Linux:*:*)1149 vax:Linux:*:*)
1046 echo "$UNAME_MACHINE"-dec-linux-"$LIBC"1150 GUESS=$UNAME_MACHINE-dec-linux-$LIBC
1047 exit ;;1151 ;;
1048 x86_64:Linux:*:*)1152 x86_64:Linux:*:*)
1049 echo "$UNAME_MACHINE"-pc-linux-"$LIBC"1153 set_cc_for_build
1050 exit ;;1154 CPU=$UNAME_MACHINE
1155 LIBCABI=$LIBC
1156 if test "$CC_FOR_BUILD" != no_compiler_found; then
1157 ABI=64
1158 sed 's/^ //' << EOF > "$dummy.c"
1159 #ifdef __i386__
1160 ABI=x86
1161 #else
1162 #ifdef __ILP32__
1163 ABI=x32
1164 #endif
1165 #endif
1166EOF
1167 cc_set_abi=`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^ABI' | sed 's, ,,g'`
1168 eval "$cc_set_abi"
1169 case $ABI in
1170 x86) CPU=i686 ;;
1171 x32) LIBCABI=${LIBC}x32 ;;
1172 esac
1173 fi
1174 GUESS=$CPU-pc-linux-$LIBCABI
1175 ;;
1051 xtensa*:Linux:*:*)1176 xtensa*:Linux:*:*)
1052 echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"1177 GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
1053 exit ;;1178 ;;
1054 i*86:DYNIX/ptx:4*:*)1179 i*86:DYNIX/ptx:4*:*)
1055 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1180 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1056 # earlier versions are messed up and put the nodename in both1181 # earlier versions are messed up and put the nodename in both
1057 # sysname and nodename.1182 # sysname and nodename.
1058 echo i386-sequent-sysv41183 GUESS=i386-sequent-sysv4
1059 exit ;;1184 ;;
1060 i*86:UNIX_SV:4.2MP:2.*)1185 i*86:UNIX_SV:4.2MP:2.*)
1061 # Unixware is an offshoot of SVR4, but it has its own version1186 # Unixware is an offshoot of SVR4, but it has its own version
1062 # number series starting with 2...1187 # number series starting with 2...
1063 # I am not positive that other SVR4 systems won't match this,1188 # I am not positive that other SVR4 systems won't match this,
1064 # I just have to hope. -- rms.1189 # I just have to hope. -- rms.
1065 # Use sysv4.2uw... so that sysv4* matches it.1190 # Use sysv4.2uw... so that sysv4* matches it.
1066 echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"1191 GUESS=$UNAME_MACHINE-pc-sysv4.2uw$UNAME_VERSION
1067 exit ;;1192 ;;
1068 i*86:OS/2:*:*)1193 i*86:OS/2:*:*)
1069 # If we were able to find `uname', then EMX Unix compatibility1194 # If we were able to find `uname', then EMX Unix compatibility
1070 # is probably installed.1195 # is probably installed.
1071 echo "$UNAME_MACHINE"-pc-os2-emx1196 GUESS=$UNAME_MACHINE-pc-os2-emx
1072 exit ;;1197 ;;
1073 i*86:XTS-300:*:STOP)1198 i*86:XTS-300:*:STOP)
1074 echo "$UNAME_MACHINE"-unknown-stop1199 GUESS=$UNAME_MACHINE-unknown-stop
1075 exit ;;1200 ;;
1076 i*86:atheos:*:*)1201 i*86:atheos:*:*)
1077 echo "$UNAME_MACHINE"-unknown-atheos1202 GUESS=$UNAME_MACHINE-unknown-atheos
1078 exit ;;1203 ;;
1079 i*86:syllable:*:*)1204 i*86:syllable:*:*)
1080 echo "$UNAME_MACHINE"-pc-syllable1205 GUESS=$UNAME_MACHINE-pc-syllable
1081 exit ;;1206 ;;
1082 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)1207 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1083 echo i386-unknown-lynxos"$UNAME_RELEASE"1208 GUESS=i386-unknown-lynxos$UNAME_RELEASE
1084 exit ;;1209 ;;
1085 i*86:*DOS:*:*)1210 i*86:*DOS:*:*)
1086 echo "$UNAME_MACHINE"-pc-msdosdjgpp1211 GUESS=$UNAME_MACHINE-pc-msdosdjgpp
1087 exit ;;1212 ;;
1088 i*86:*:4.*:*)1213 i*86:*:4.*:*)
1089 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`1214 UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'`
1090 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then1215 if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1091 echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"1216 GUESS=$UNAME_MACHINE-univel-sysv$UNAME_REL
1092 else1217 else
1093 echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"1218 GUESS=$UNAME_MACHINE-pc-sysv$UNAME_REL
1094 fi1219 fi
1095 exit ;;1220 ;;
1096 i*86:*:5:[678]*)1221 i*86:*:5:[678]*)
1097 # UnixWare 7.x, OpenUNIX and OpenServer 6.1222 # UnixWare 7.x, OpenUNIX and OpenServer 6.
1098 case `/bin/uname -X | grep "^Machine"` in1223 case `/bin/uname -X | grep "^Machine"` in
@@ -1100,12 +1225,12 @@ EOF
1100 *Pentium) UNAME_MACHINE=i586 ;;1225 *Pentium) UNAME_MACHINE=i586 ;;
1101 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;1226 *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1102 esac1227 esac
1103 echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}"1228 GUESS=$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1104 exit ;;1229 ;;
1105 i*86:*:3.2:*)1230 i*86:*:3.2:*)
1106 if test -f /usr/options/cb.name; then1231 if test -f /usr/options/cb.name; then
1107 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`1232 UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
1108 echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"1233 GUESS=$UNAME_MACHINE-pc-isc$UNAME_REL
1109 elif /bin/uname -X 2>/dev/null >/dev/null ; then1234 elif /bin/uname -X 2>/dev/null >/dev/null ; then
1110 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`1235 UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1111 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i4861236 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
@@ -1115,11 +1240,11 @@ EOF
1115 && UNAME_MACHINE=i6861240 && UNAME_MACHINE=i686
1116 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \1241 (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1117 && UNAME_MACHINE=i6861242 && UNAME_MACHINE=i686
1118 echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"1243 GUESS=$UNAME_MACHINE-pc-sco$UNAME_REL
1119 else1244 else
1120 echo "$UNAME_MACHINE"-pc-sysv321245 GUESS=$UNAME_MACHINE-pc-sysv32
1121 fi1246 fi
1122 exit ;;1247 ;;
1123 pc:*:*:*)1248 pc:*:*:*)
1124 # Left here for compatibility:1249 # Left here for compatibility:
1125 # uname -m prints for DJGPP always 'pc', but it prints nothing about1250 # uname -m prints for DJGPP always 'pc', but it prints nothing about
@@ -1127,31 +1252,31 @@ EOF
1127 # Note: whatever this is, it MUST be the same as what config.sub1252 # Note: whatever this is, it MUST be the same as what config.sub
1128 # prints for the "djgpp" host, or else GDB configure will decide that1253 # prints for the "djgpp" host, or else GDB configure will decide that
1129 # this is a cross-build.1254 # this is a cross-build.
1130 echo i586-pc-msdosdjgpp1255 GUESS=i586-pc-msdosdjgpp
1131 exit ;;1256 ;;
1132 Intel:Mach:3*:*)1257 Intel:Mach:3*:*)
1133 echo i386-pc-mach31258 GUESS=i386-pc-mach3
1134 exit ;;1259 ;;
1135 paragon:*:*:*)1260 paragon:*:*:*)
1136 echo i860-intel-osf11261 GUESS=i860-intel-osf1
1137 exit ;;1262 ;;
1138 i860:*:4.*:*) # i860-SVR41263 i860:*:4.*:*) # i860-SVR4
1139 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then1264 if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1140 echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR41265 GUESS=i860-stardent-sysv$UNAME_RELEASE # Stardent Vistra i860-SVR4
1141 else # Add other i860-SVR4 vendors below as they are discovered.1266 else # Add other i860-SVR4 vendors below as they are discovered.
1142 echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR41267 GUESS=i860-unknown-sysv$UNAME_RELEASE # Unknown i860-SVR4
1143 fi1268 fi
1144 exit ;;1269 ;;
1145 mini*:CTIX:SYS*5:*)1270 mini*:CTIX:SYS*5:*)
1146 # "miniframe"1271 # "miniframe"
1147 echo m68010-convergent-sysv1272 GUESS=m68010-convergent-sysv
1148 exit ;;1273 ;;
1149 mc68k:UNIX:SYSTEM5:3.51m)1274 mc68k:UNIX:SYSTEM5:3.51m)
1150 echo m68k-convergent-sysv1275 GUESS=m68k-convergent-sysv
1151 exit ;;1276 ;;
1152 M680?0:D-NIX:5.3:*)1277 M680?0:D-NIX:5.3:*)
1153 echo m68k-diab-dnix1278 GUESS=m68k-diab-dnix
1154 exit ;;1279 ;;
1155 M68*:*:R3V[5678]*:*)1280 M68*:*:R3V[5678]*:*)
1156 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;1281 test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1157 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)1282 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
@@ -1176,249 +1301,407 @@ EOF
1176 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \1301 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1177 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;1302 && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1178 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1303 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1179 echo m68k-unknown-lynxos"$UNAME_RELEASE"1304 GUESS=m68k-unknown-lynxos$UNAME_RELEASE
1180 exit ;;1305 ;;
1181 mc68030:UNIX_System_V:4.*:*)1306 mc68030:UNIX_System_V:4.*:*)
1182 echo m68k-atari-sysv41307 GUESS=m68k-atari-sysv4
1183 exit ;;1308 ;;
1184 TSUNAMI:LynxOS:2.*:*)1309 TSUNAMI:LynxOS:2.*:*)
1185 echo sparc-unknown-lynxos"$UNAME_RELEASE"1310 GUESS=sparc-unknown-lynxos$UNAME_RELEASE
1186 exit ;;1311 ;;
1187 rs6000:LynxOS:2.*:*)1312 rs6000:LynxOS:2.*:*)
1188 echo rs6000-unknown-lynxos"$UNAME_RELEASE"1313 GUESS=rs6000-unknown-lynxos$UNAME_RELEASE
1189 exit ;;1314 ;;
1190 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)1315 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1191 echo powerpc-unknown-lynxos"$UNAME_RELEASE"1316 GUESS=powerpc-unknown-lynxos$UNAME_RELEASE
1192 exit ;;1317 ;;
1193 SM[BE]S:UNIX_SV:*:*)1318 SM[BE]S:UNIX_SV:*:*)
1194 echo mips-dde-sysv"$UNAME_RELEASE"1319 GUESS=mips-dde-sysv$UNAME_RELEASE
1195 exit ;;1320 ;;
1196 RM*:ReliantUNIX-*:*:*)1321 RM*:ReliantUNIX-*:*:*)
1197 echo mips-sni-sysv41322 GUESS=mips-sni-sysv4
1198 exit ;;1323 ;;
1199 RM*:SINIX-*:*:*)1324 RM*:SINIX-*:*:*)
1200 echo mips-sni-sysv41325 GUESS=mips-sni-sysv4
1201 exit ;;1326 ;;
1202 *:SINIX-*:*:*)1327 *:SINIX-*:*:*)
1203 if uname -p 2>/dev/null >/dev/null ; then1328 if uname -p 2>/dev/null >/dev/null ; then
1204 UNAME_MACHINE=`(uname -p) 2>/dev/null`1329 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1205 echo "$UNAME_MACHINE"-sni-sysv41330 GUESS=$UNAME_MACHINE-sni-sysv4
1206 else1331 else
1207 echo ns32k-sni-sysv1332 GUESS=ns32k-sni-sysv
1208 fi1333 fi
1209 exit ;;1334 ;;
1210 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1335 PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1211 # says <Richard.M.Bartel@ccMail.Census.GOV>1336 # says <Richard.M.Bartel@ccMail.Census.GOV>
1212 echo i586-unisys-sysv41337 GUESS=i586-unisys-sysv4
1213 exit ;;1338 ;;
1214 *:UNIX_System_V:4*:FTX*)1339 *:UNIX_System_V:4*:FTX*)
1215 # From Gerald Hewes <hewes@openmarket.com>.1340 # From Gerald Hewes <hewes@openmarket.com>.
1216 # How about differentiating between stratus architectures? -djm1341 # How about differentiating between stratus architectures? -djm
1217 echo hppa1.1-stratus-sysv41342 GUESS=hppa1.1-stratus-sysv4
1218 exit ;;1343 ;;
1219 *:*:*:FTX*)1344 *:*:*:FTX*)
1220 # From seanf@swdc.stratus.com.1345 # From seanf@swdc.stratus.com.
1221 echo i860-stratus-sysv41346 GUESS=i860-stratus-sysv4
1222 exit ;;1347 ;;
1223 i*86:VOS:*:*)1348 i*86:VOS:*:*)
1224 # From Paul.Green@stratus.com.1349 # From Paul.Green@stratus.com.
1225 echo "$UNAME_MACHINE"-stratus-vos1350 GUESS=$UNAME_MACHINE-stratus-vos
1226 exit ;;1351 ;;
1227 *:VOS:*:*)1352 *:VOS:*:*)
1228 # From Paul.Green@stratus.com.1353 # From Paul.Green@stratus.com.
1229 echo hppa1.1-stratus-vos1354 GUESS=hppa1.1-stratus-vos
1230 exit ;;1355 ;;
1231 mc68*:A/UX:*:*)1356 mc68*:A/UX:*:*)
1232 echo m68k-apple-aux"$UNAME_RELEASE"1357 GUESS=m68k-apple-aux$UNAME_RELEASE
1233 exit ;;1358 ;;
1234 news*:NEWS-OS:6*:*)1359 news*:NEWS-OS:6*:*)
1235 echo mips-sony-newsos61360 GUESS=mips-sony-newsos6
1236 exit ;;1361 ;;
1237 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)1362 R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1238 if [ -d /usr/nec ]; then1363 if test -d /usr/nec; then
1239 echo mips-nec-sysv"$UNAME_RELEASE"1364 GUESS=mips-nec-sysv$UNAME_RELEASE
1240 else1365 else
1241 echo mips-unknown-sysv"$UNAME_RELEASE"1366 GUESS=mips-unknown-sysv$UNAME_RELEASE
1242 fi1367 fi
1243 exit ;;1368 ;;
1244 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1369 BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1245 echo powerpc-be-beos1370 GUESS=powerpc-be-beos
1246 exit ;;1371 ;;
1247 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.1372 BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1248 echo powerpc-apple-beos1373 GUESS=powerpc-apple-beos
1249 exit ;;1374 ;;
1250 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.1375 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1251 echo i586-pc-beos1376 GUESS=i586-pc-beos
1252 exit ;;1377 ;;
1253 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.1378 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1254 echo i586-pc-haiku1379 GUESS=i586-pc-haiku
1255 exit ;;1380 ;;
1256 x86_64:Haiku:*:*)1381 ppc:Haiku:*:*) # Haiku running on Apple PowerPC
1257 echo x86_64-unknown-haiku1382 GUESS=powerpc-apple-haiku
1258 exit ;;1383 ;;
1384 *:Haiku:*:*) # Haiku modern gcc (not bound by BeOS compat)
1385 GUESS=$UNAME_MACHINE-unknown-haiku
1386 ;;
1259 SX-4:SUPER-UX:*:*)1387 SX-4:SUPER-UX:*:*)
1260 echo sx4-nec-superux"$UNAME_RELEASE"1388 GUESS=sx4-nec-superux$UNAME_RELEASE
1261 exit ;;1389 ;;
1262 SX-5:SUPER-UX:*:*)1390 SX-5:SUPER-UX:*:*)
1263 echo sx5-nec-superux"$UNAME_RELEASE"1391 GUESS=sx5-nec-superux$UNAME_RELEASE
1264 exit ;;1392 ;;
1265 SX-6:SUPER-UX:*:*)1393 SX-6:SUPER-UX:*:*)
1266 echo sx6-nec-superux"$UNAME_RELEASE"1394 GUESS=sx6-nec-superux$UNAME_RELEASE
1267 exit ;;1395 ;;
1268 SX-7:SUPER-UX:*:*)1396 SX-7:SUPER-UX:*:*)
1269 echo sx7-nec-superux"$UNAME_RELEASE"1397 GUESS=sx7-nec-superux$UNAME_RELEASE
1270 exit ;;1398 ;;
1271 SX-8:SUPER-UX:*:*)1399 SX-8:SUPER-UX:*:*)
1272 echo sx8-nec-superux"$UNAME_RELEASE"1400 GUESS=sx8-nec-superux$UNAME_RELEASE
1273 exit ;;1401 ;;
1274 SX-8R:SUPER-UX:*:*)1402 SX-8R:SUPER-UX:*:*)
1275 echo sx8r-nec-superux"$UNAME_RELEASE"1403 GUESS=sx8r-nec-superux$UNAME_RELEASE
1276 exit ;;1404 ;;
1277 SX-ACE:SUPER-UX:*:*)1405 SX-ACE:SUPER-UX:*:*)
1278 echo sxace-nec-superux"$UNAME_RELEASE"1406 GUESS=sxace-nec-superux$UNAME_RELEASE
1279 exit ;;1407 ;;
1280 Power*:Rhapsody:*:*)1408 Power*:Rhapsody:*:*)
1281 echo powerpc-apple-rhapsody"$UNAME_RELEASE"1409 GUESS=powerpc-apple-rhapsody$UNAME_RELEASE
1282 exit ;;1410 ;;
1283 *:Rhapsody:*:*)1411 *:Rhapsody:*:*)
1284 echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"1412 GUESS=$UNAME_MACHINE-apple-rhapsody$UNAME_RELEASE
1285 exit ;;1413 ;;
1414 arm64:Darwin:*:*)
1415 GUESS=aarch64-apple-darwin$UNAME_RELEASE
1416 ;;
1286 *:Darwin:*:*)1417 *:Darwin:*:*)
1287 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1418 UNAME_PROCESSOR=`uname -p`
1288 eval "$set_cc_for_build"1419 case $UNAME_PROCESSOR in
1289 if test "$UNAME_PROCESSOR" = unknown ; then1420 unknown) UNAME_PROCESSOR=powerpc ;;
1290 UNAME_PROCESSOR=powerpc1421 esac
1422 if command -v xcode-select > /dev/null 2> /dev/null && \
1423 ! xcode-select --print-path > /dev/null 2> /dev/null ; then
1424 # Avoid executing cc if there is no toolchain installed as
1425 # cc will be a stub that puts up a graphical alert
1426 # prompting the user to install developer tools.
1427 CC_FOR_BUILD=no_compiler_found
1428 else
1429 set_cc_for_build
1291 fi1430 fi
1292 if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then1431 if test "$CC_FOR_BUILD" != no_compiler_found; then
1293 if [ "$CC_FOR_BUILD" != no_compiler_found ]; then1432 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1294 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \1433 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1295 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \1434 grep IS_64BIT_ARCH >/dev/null
1296 grep IS_64BIT_ARCH >/dev/null1435 then
1297 then1436 case $UNAME_PROCESSOR in
1298 case $UNAME_PROCESSOR in1437 i386) UNAME_PROCESSOR=x86_64 ;;
1299 i386) UNAME_PROCESSOR=x86_64 ;;1438 powerpc) UNAME_PROCESSOR=powerpc64 ;;
1300 powerpc) UNAME_PROCESSOR=powerpc64 ;;1439 esac
1301 esac1440 fi
1302 fi1441 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1303 # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc1442 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1304 if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \1443 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1305 (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \1444 grep IS_PPC >/dev/null
1306 grep IS_PPC >/dev/null1445 then
1307 then1446 UNAME_PROCESSOR=powerpc
1308 UNAME_PROCESSOR=powerpc
1309 fi
1310 fi1447 fi
1311 elif test "$UNAME_PROCESSOR" = i386 ; then1448 elif test "$UNAME_PROCESSOR" = i386 ; then
1312 # Avoid executing cc on OS X 10.9, as it ships with a stub1449 # uname -m returns i386 or x86_64
1313 # that puts up a graphical alert prompting to install1450 UNAME_PROCESSOR=$UNAME_MACHINE
1314 # developer tools. Any system running Mac OS X 10.7 or
1315 # later (Darwin 11 and later) is required to have a 64-bit
1316 # processor. This is not true of the ARM version of Darwin
1317 # that Apple uses in portable devices.
1318 UNAME_PROCESSOR=x86_64
1319 fi1451 fi
1320 echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"1452 GUESS=$UNAME_PROCESSOR-apple-darwin$UNAME_RELEASE
1321 exit ;;1453 ;;
1322 *:procnto*:*:* | *:QNX:[0123456789]*:*)1454 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1323 UNAME_PROCESSOR=`uname -p`1455 UNAME_PROCESSOR=`uname -p`
1324 if test "$UNAME_PROCESSOR" = x86; then1456 if test "$UNAME_PROCESSOR" = x86; then
1325 UNAME_PROCESSOR=i3861457 UNAME_PROCESSOR=i386
1326 UNAME_MACHINE=pc1458 UNAME_MACHINE=pc
1327 fi1459 fi
1328 echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"1460 GUESS=$UNAME_PROCESSOR-$UNAME_MACHINE-nto-qnx$UNAME_RELEASE
1329 exit ;;1461 ;;
1330 *:QNX:*:4*)1462 *:QNX:*:4*)
1331 echo i386-pc-qnx1463 GUESS=i386-pc-qnx
1332 exit ;;1464 ;;
1333 NEO-*:NONSTOP_KERNEL:*:*)1465 NEO-*:NONSTOP_KERNEL:*:*)
1334 echo neo-tandem-nsk"$UNAME_RELEASE"1466 GUESS=neo-tandem-nsk$UNAME_RELEASE
1335 exit ;;1467 ;;
1336 NSE-*:NONSTOP_KERNEL:*:*)1468 NSE-*:NONSTOP_KERNEL:*:*)
1337 echo nse-tandem-nsk"$UNAME_RELEASE"1469 GUESS=nse-tandem-nsk$UNAME_RELEASE
1338 exit ;;1470 ;;
1339 NSR-*:NONSTOP_KERNEL:*:*)1471 NSR-*:NONSTOP_KERNEL:*:*)
1340 echo nsr-tandem-nsk"$UNAME_RELEASE"1472 GUESS=nsr-tandem-nsk$UNAME_RELEASE
1341 exit ;;1473 ;;
1342 NSV-*:NONSTOP_KERNEL:*:*)1474 NSV-*:NONSTOP_KERNEL:*:*)
1343 echo nsv-tandem-nsk"$UNAME_RELEASE"1475 GUESS=nsv-tandem-nsk$UNAME_RELEASE
1344 exit ;;1476 ;;
1345 NSX-*:NONSTOP_KERNEL:*:*)1477 NSX-*:NONSTOP_KERNEL:*:*)
1346 echo nsx-tandem-nsk"$UNAME_RELEASE"1478 GUESS=nsx-tandem-nsk$UNAME_RELEASE
1347 exit ;;1479 ;;
1348 *:NonStop-UX:*:*)1480 *:NonStop-UX:*:*)
1349 echo mips-compaq-nonstopux1481 GUESS=mips-compaq-nonstopux
1350 exit ;;1482 ;;
1351 BS2000:POSIX*:*:*)1483 BS2000:POSIX*:*:*)
1352 echo bs2000-siemens-sysv1484 GUESS=bs2000-siemens-sysv
1353 exit ;;1485 ;;
1354 DS/*:UNIX_System_V:*:*)1486 DS/*:UNIX_System_V:*:*)
1355 echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"1487 GUESS=$UNAME_MACHINE-$UNAME_SYSTEM-$UNAME_RELEASE
1356 exit ;;1488 ;;
1357 *:Plan9:*:*)1489 *:Plan9:*:*)
1358 # "uname -m" is not consistent, so use $cputype instead. 3861490 # "uname -m" is not consistent, so use $cputype instead. 386
1359 # is converted to i386 for consistency with other x861491 # is converted to i386 for consistency with other x86
1360 # operating systems.1492 # operating systems.
1361 if test "$cputype" = 386; then1493 if test "${cputype-}" = 386; then
1362 UNAME_MACHINE=i3861494 UNAME_MACHINE=i386
1363 else1495 elif test "x${cputype-}" != x; then
1364 UNAME_MACHINE="$cputype"1496 UNAME_MACHINE=$cputype
1365 fi1497 fi
1366 echo "$UNAME_MACHINE"-unknown-plan91498 GUESS=$UNAME_MACHINE-unknown-plan9
1367 exit ;;1499 ;;
1368 *:TOPS-10:*:*)1500 *:TOPS-10:*:*)
1369 echo pdp10-unknown-tops101501 GUESS=pdp10-unknown-tops10
1370 exit ;;1502 ;;
1371 *:TENEX:*:*)1503 *:TENEX:*:*)
1372 echo pdp10-unknown-tenex1504 GUESS=pdp10-unknown-tenex
1373 exit ;;1505 ;;
1374 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)1506 KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1375 echo pdp10-dec-tops201507 GUESS=pdp10-dec-tops20
1376 exit ;;1508 ;;
1377 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)1509 XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1378 echo pdp10-xkl-tops201510 GUESS=pdp10-xkl-tops20
1379 exit ;;1511 ;;
1380 *:TOPS-20:*:*)1512 *:TOPS-20:*:*)
1381 echo pdp10-unknown-tops201513 GUESS=pdp10-unknown-tops20
1382 exit ;;1514 ;;
1383 *:ITS:*:*)1515 *:ITS:*:*)
1384 echo pdp10-unknown-its1516 GUESS=pdp10-unknown-its
1385 exit ;;1517 ;;
1386 SEI:*:*:SEIUX)1518 SEI:*:*:SEIUX)
1387 echo mips-sei-seiux"$UNAME_RELEASE"1519 GUESS=mips-sei-seiux$UNAME_RELEASE
1388 exit ;;1520 ;;
1389 *:DragonFly:*:*)1521 *:DragonFly:*:*)
1390 echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"1522 DRAGONFLY_REL=`echo "$UNAME_RELEASE" | sed -e 's/[-(].*//'`
1391 exit ;;1523 GUESS=$UNAME_MACHINE-unknown-dragonfly$DRAGONFLY_REL
1524 ;;
1392 *:*VMS:*:*)1525 *:*VMS:*:*)
1393 UNAME_MACHINE=`(uname -p) 2>/dev/null`1526 UNAME_MACHINE=`(uname -p) 2>/dev/null`
1394 case "$UNAME_MACHINE" in1527 case $UNAME_MACHINE in
1395 A*) echo alpha-dec-vms ; exit ;;1528 A*) GUESS=alpha-dec-vms ;;
1396 I*) echo ia64-dec-vms ; exit ;;1529 I*) GUESS=ia64-dec-vms ;;
1397 V*) echo vax-dec-vms ; exit ;;1530 V*) GUESS=vax-dec-vms ;;
1398 esac ;;1531 esac ;;
1399 *:XENIX:*:SysV)1532 *:XENIX:*:SysV)
1400 echo i386-pc-xenix1533 GUESS=i386-pc-xenix
1401 exit ;;1534 ;;
1402 i*86:skyos:*:*)1535 i*86:skyos:*:*)
1403 echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`"1536 SKYOS_REL=`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`
1404 exit ;;1537 GUESS=$UNAME_MACHINE-pc-skyos$SKYOS_REL
1538 ;;
1405 i*86:rdos:*:*)1539 i*86:rdos:*:*)
1406 echo "$UNAME_MACHINE"-pc-rdos1540 GUESS=$UNAME_MACHINE-pc-rdos
1407 exit ;;1541 ;;
1408 i*86:AROS:*:*)1542 i*86:Fiwix:*:*)
1409 echo "$UNAME_MACHINE"-pc-aros1543 GUESS=$UNAME_MACHINE-pc-fiwix
1410 exit ;;1544 ;;
1545 *:AROS:*:*)
1546 GUESS=$UNAME_MACHINE-unknown-aros
1547 ;;
1411 x86_64:VMkernel:*:*)1548 x86_64:VMkernel:*:*)
1412 echo "$UNAME_MACHINE"-unknown-esx1549 GUESS=$UNAME_MACHINE-unknown-esx
1413 exit ;;1550 ;;
1414 amd64:Isilon\ OneFS:*:*)1551 amd64:Isilon\ OneFS:*:*)
1415 echo x86_64-unknown-onefs1552 GUESS=x86_64-unknown-onefs
1416 exit ;;1553 ;;
1554 *:Unleashed:*:*)
1555 GUESS=$UNAME_MACHINE-unknown-unleashed$UNAME_RELEASE
1556 ;;
1417esac1557esac
14181558
1559# Do we have a guess based on uname results?
1560if test "x$GUESS" != x; then
1561 echo "$GUESS"
1562 exit
1563fi
1564
1565# No uname command or uname output not recognized.
1566set_cc_for_build
1567cat > "$dummy.c" <<EOF
1568#ifdef _SEQUENT_
1569#include <sys/types.h>
1570#include <sys/utsname.h>
1571#endif
1572#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1573#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1574#include <signal.h>
1575#if defined(_SIZE_T_) || defined(SIGLOST)
1576#include <sys/utsname.h>
1577#endif
1578#endif
1579#endif
1580main ()
1581{
1582#if defined (sony)
1583#if defined (MIPSEB)
1584 /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1585 I don't know.... */
1586 printf ("mips-sony-bsd\n"); exit (0);
1587#else
1588#include <sys/param.h>
1589 printf ("m68k-sony-newsos%s\n",
1590#ifdef NEWSOS4
1591 "4"
1592#else
1593 ""
1594#endif
1595 ); exit (0);
1596#endif
1597#endif
1598
1599#if defined (NeXT)
1600#if !defined (__ARCHITECTURE__)
1601#define __ARCHITECTURE__ "m68k"
1602#endif
1603 int version;
1604 version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
1605 if (version < 4)
1606 printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1607 else
1608 printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1609 exit (0);
1610#endif
1611
1612#if defined (MULTIMAX) || defined (n16)
1613#if defined (UMAXV)
1614 printf ("ns32k-encore-sysv\n"); exit (0);
1615#else
1616#if defined (CMU)
1617 printf ("ns32k-encore-mach\n"); exit (0);
1618#else
1619 printf ("ns32k-encore-bsd\n"); exit (0);
1620#endif
1621#endif
1622#endif
1623
1624#if defined (__386BSD__)
1625 printf ("i386-pc-bsd\n"); exit (0);
1626#endif
1627
1628#if defined (sequent)
1629#if defined (i386)
1630 printf ("i386-sequent-dynix\n"); exit (0);
1631#endif
1632#if defined (ns32000)
1633 printf ("ns32k-sequent-dynix\n"); exit (0);
1634#endif
1635#endif
1636
1637#if defined (_SEQUENT_)
1638 struct utsname un;
1639
1640 uname(&un);
1641 if (strncmp(un.version, "V2", 2) == 0) {
1642 printf ("i386-sequent-ptx2\n"); exit (0);
1643 }
1644 if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1645 printf ("i386-sequent-ptx1\n"); exit (0);
1646 }
1647 printf ("i386-sequent-ptx\n"); exit (0);
1648#endif
1649
1650#if defined (vax)
1651#if !defined (ultrix)
1652#include <sys/param.h>
1653#if defined (BSD)
1654#if BSD == 43
1655 printf ("vax-dec-bsd4.3\n"); exit (0);
1656#else
1657#if BSD == 199006
1658 printf ("vax-dec-bsd4.3reno\n"); exit (0);
1659#else
1660 printf ("vax-dec-bsd\n"); exit (0);
1661#endif
1662#endif
1663#else
1664 printf ("vax-dec-bsd\n"); exit (0);
1665#endif
1666#else
1667#if defined(_SIZE_T_) || defined(SIGLOST)
1668 struct utsname un;
1669 uname (&un);
1670 printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1671#else
1672 printf ("vax-dec-ultrix\n"); exit (0);
1673#endif
1674#endif
1675#endif
1676#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1677#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1678#if defined(_SIZE_T_) || defined(SIGLOST)
1679 struct utsname *un;
1680 uname (&un);
1681 printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1682#else
1683 printf ("mips-dec-ultrix\n"); exit (0);
1684#endif
1685#endif
1686#endif
1687
1688#if defined (alliant) && defined (i860)
1689 printf ("i860-alliant-bsd\n"); exit (0);
1690#endif
1691
1692 exit (1);
1693}
1694EOF
1695
1696$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=`"$dummy"` &&
1697 { echo "$SYSTEM_NAME"; exit; }
1698
1699# Apollos put the system type in the environment.
1700test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1701
1419echo "$0: unable to guess system type" >&21702echo "$0: unable to guess system type" >&2
14201703
1421case "$UNAME_MACHINE:$UNAME_SYSTEM" in1704case $UNAME_MACHINE:$UNAME_SYSTEM in
1422 mips:Linux | mips64:Linux)1705 mips:Linux | mips64:Linux)
1423 # If we got here on MIPS GNU/Linux, output extra information.1706 # If we got here on MIPS GNU/Linux, output extra information.
1424 cat >&2 <<EOF1707 cat >&2 <<EOF
@@ -1435,9 +1718,17 @@ This script (version $timestamp), has failed to recognize the
1435operating system you are using. If your script is old, overwrite *all*1718operating system you are using. If your script is old, overwrite *all*
1436copies of config.guess and config.sub with the latest versions from:1719copies of config.guess and config.sub with the latest versions from:
14371720
1438 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess1721 https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
1439and1722and
1440 https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub1723 https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1724EOF
1725
1726our_year=`echo $timestamp | sed 's,-.*,,'`
1727thisyear=`date +%Y`
1728# shellcheck disable=SC2003
1729script_age=`expr "$thisyear" - "$our_year"`
1730if test "$script_age" -lt 3 ; then
1731 cat >&2 <<EOF
14411732
1442If $0 has already been updated, send the following data and any1733If $0 has already been updated, send the following data and any
1443information you think might be pertinent to config-patches@gnu.org to1734information you think might be pertinent to config-patches@gnu.org to
@@ -1465,6 +1756,7 @@ UNAME_RELEASE = "$UNAME_RELEASE"
1465UNAME_SYSTEM = "$UNAME_SYSTEM"1756UNAME_SYSTEM = "$UNAME_SYSTEM"
1466UNAME_VERSION = "$UNAME_VERSION"1757UNAME_VERSION = "$UNAME_VERSION"
1467EOF1758EOF
1759fi
14681760
1469exit 11761exit 1
14701762
diff --git a/build-aux/config.sub b/build-aux/config.sub
index 20f7cf2..b41da55 100755
--- a/build-aux/config.sub
+++ b/build-aux/config.sub
@@ -1,12 +1,14 @@
1#! /bin/sh1#!/usr/bin/sh
2# Configuration validation subroutine script.2# Configuration validation subroutine script.
3# Copyright 1992-2018 Free Software Foundation, Inc.3# Copyright 1992-2022 Free Software Foundation, Inc.
44
5timestamp='2018-05-05'5# shellcheck disable=SC2006,SC2268 # see below for rationale
6
7timestamp='2022-01-03'
68
7# This file is free software; you can redistribute it and/or modify it9# 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 by10# under the terms of the GNU General Public License as published by
9# the Free Software Foundation; either version 3 of the License, or11# the Free Software Foundation, either version 3 of the License, or
10# (at your option) any later version.12# (at your option) any later version.
11#13#
12# This program is distributed in the hope that it will be useful, but14# This program is distributed in the hope that it will be useful, but
@@ -33,7 +35,7 @@ timestamp='2018-05-05'
33# Otherwise, we print the canonical config type on stdout and succeed.35# Otherwise, we print the canonical config type on stdout and succeed.
3436
35# You can get the latest version of this script from:37# You can get the latest version of this script from:
36# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub38# https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
3739
38# This file is supposed to be the same for all GNU packages40# This file is supposed to be the same for all GNU packages
39# and recognize all the CPU types, system types and aliases41# and recognize all the CPU types, system types and aliases
@@ -50,6 +52,13 @@ timestamp='2018-05-05'
50# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM52# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
51# It is wrong to echo any other type of specification.53# It is wrong to echo any other type of specification.
5254
55# The "shellcheck disable" line above the timestamp inhibits complaints
56# about features and limitations of the classic Bourne shell that were
57# superseded or lifted in POSIX. However, this script identifies a wide
58# variety of pre-POSIX systems that do not have POSIX shells at all, and
59# even some reasonably current systems (Solaris 10 as case-in-point) still
60# have a pre-POSIX /bin/sh.
61
53me=`echo "$0" | sed -e 's,.*/,,'`62me=`echo "$0" | sed -e 's,.*/,,'`
5463
55usage="\64usage="\
@@ -67,7 +76,7 @@ Report bugs and patches to <config-patches@gnu.org>."
67version="\76version="\
68GNU config.sub ($timestamp)77GNU config.sub ($timestamp)
6978
70Copyright 1992-2018 Free Software Foundation, Inc.79Copyright 1992-2022 Free Software Foundation, Inc.
7180
72This is free software; see the source for copying conditions. There is NO81This is free software; see the source for copying conditions. There is NO
73warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."82warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -89,7 +98,7 @@ while test $# -gt 0 ; do
89 - ) # Use stdin as input.98 - ) # Use stdin as input.
90 break ;;99 break ;;
91 -* )100 -* )
92 echo "$me: invalid option $1$help"101 echo "$me: invalid option $1$help" >&2
93 exit 1 ;;102 exit 1 ;;
94103
95 *local*)104 *local*)
@@ -110,1249 +119,1186 @@ case $# in
110 exit 1;;119 exit 1;;
111esac120esac
112121
113# Spilt fields of configuration type122# Split fields of configuration type
114IFS="-" read -r field1 field2 field3 field4 <<EOF123# shellcheck disable=SC2162
124saved_IFS=$IFS
125IFS="-" read field1 field2 field3 field4 <<EOF
115$1126$1
116EOF127EOF
128IFS=$saved_IFS
117129
118# Separate into logical components for further validation130# Separate into logical components for further validation
119case $1 in131case $1 in
132 *-*-*-*-*)
133 echo Invalid configuration \`"$1"\': more than four components >&2
134 exit 1
135 ;;
120 *-*-*-*)136 *-*-*-*)
121 basic_machine=$field1-$field2137 basic_machine=$field1-$field2
122 os=-$field3-$field4138 basic_os=$field3-$field4
123 ;;139 ;;
124 *-*-*)140 *-*-*)
125 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two141 # Ambiguous whether COMPANY is present, or skipped and KERNEL-OS is two
126 # parts142 # parts
127 maybe_os=$field2-$field3143 maybe_os=$field2-$field3
128 case $maybe_os in144 case $maybe_os in
129 nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc \145 nto-qnx* | linux-* | uclinux-uclibc* \
130 | linux-newlib* | linux-musl* | linux-uclibc* | uclinux-uclibc* \
131 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \146 | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* \
132 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \147 | netbsd*-eabi* | kopensolaris*-gnu* | cloudabi*-eabi* \
133 | storm-chaos* | os2-emx* | rtmk-nova*)148 | storm-chaos* | os2-emx* | rtmk-nova*)
134 basic_machine=$field1149 basic_machine=$field1
135 os=-$maybe_os150 basic_os=$maybe_os
136 ;;151 ;;
137 android-linux)152 android-linux)
138 basic_machine=$field1-unknown153 basic_machine=$field1-unknown
139 os=-linux-android154 basic_os=linux-android
140 ;;155 ;;
141 *)156 *)
142 basic_machine=$field1-$field2157 basic_machine=$field1-$field2
143 os=-$field3158 basic_os=$field3
144 ;;159 ;;
145 esac160 esac
146 ;;161 ;;
147 *-*)162 *-*)
148 basic_machine=$field1163 # A lone config we happen to match not fitting any pattern
149 os=-$field2164 case $field1-$field2 in
165 decstation-3100)
166 basic_machine=mips-dec
167 basic_os=
168 ;;
169 *-*)
170 # Second component is usually, but not always the OS
171 case $field2 in
172 # Prevent following clause from handling this valid os
173 sun*os*)
174 basic_machine=$field1
175 basic_os=$field2
176 ;;
177 zephyr*)
178 basic_machine=$field1-unknown
179 basic_os=$field2
180 ;;
181 # Manufacturers
182 dec* | mips* | sequent* | encore* | pc533* | sgi* | sony* \
183 | att* | 7300* | 3300* | delta* | motorola* | sun[234]* \
184 | unicom* | ibm* | next | hp | isi* | apollo | altos* \
185 | convergent* | ncr* | news | 32* | 3600* | 3100* \
186 | hitachi* | c[123]* | convex* | sun | crds | omron* | dg \
187 | ultra | tti* | harris | dolphin | highlevel | gould \
188 | cbm | ns | masscomp | apple | axis | knuth | cray \
189 | microblaze* | sim | cisco \
190 | oki | wec | wrs | winbond)
191 basic_machine=$field1-$field2
192 basic_os=
193 ;;
194 *)
195 basic_machine=$field1
196 basic_os=$field2
197 ;;
198 esac
199 ;;
200 esac
150 ;;201 ;;
151 *)202 *)
152 basic_machine=$1203 # Convert single-component short-hands not valid as part of
153 os=204 # multi-component configurations.
154 ;;205 case $field1 in
155esac206 386bsd)
156207 basic_machine=i386-pc
157### Let's recognize common machines as not being operating systems so208 basic_os=bsd
158### that things like config.sub decstation-3100 work. We also209 ;;
159### recognize some manufacturers as not being operating systems, so we210 a29khif)
160### can provide default operating systems below.211 basic_machine=a29k-amd
161case $os in212 basic_os=udi
162 -sun*os*)213 ;;
163 # Prevent following clause from handling this invalid input.214 adobe68k)
164 ;;215 basic_machine=m68010-adobe
165 -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \216 basic_os=scout
166 -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \217 ;;
167 -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \218 alliant)
168 -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\219 basic_machine=fx80-alliant
169 -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \220 basic_os=
170 -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \221 ;;
171 -apple | -axis | -knuth | -cray | -microblaze*)222 altos | altos3068)
172 os=223 basic_machine=m68k-altos
173 basic_machine=$1224 basic_os=
174 ;;225 ;;
175 -bluegene*)226 am29k)
176 os=-cnk227 basic_machine=a29k-none
177 ;;228 basic_os=bsd
178 -sim | -cisco | -oki | -wec | -winbond)229 ;;
179 os=230 amdahl)
180 basic_machine=$1231 basic_machine=580-amdahl
181 ;;232 basic_os=sysv
182 -scout)233 ;;
183 ;;234 amiga)
184 -wrs)235 basic_machine=m68k-unknown
185 os=-vxworks236 basic_os=
186 basic_machine=$1237 ;;
187 ;;238 amigaos | amigados)
188 -chorusos*)239 basic_machine=m68k-unknown
189 os=-chorusos240 basic_os=amigaos
190 basic_machine=$1241 ;;
191 ;;242 amigaunix | amix)
192 -chorusrdb)243 basic_machine=m68k-unknown
193 os=-chorusrdb244 basic_os=sysv4
194 basic_machine=$1245 ;;
195 ;;246 apollo68)
196 -hiux*)247 basic_machine=m68k-apollo
197 os=-hiuxwe2248 basic_os=sysv
198 ;;249 ;;
199 -sco6)250 apollo68bsd)
200 os=-sco5v6251 basic_machine=m68k-apollo
201 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`252 basic_os=bsd
202 ;;253 ;;
203 -sco5)254 aros)
204 os=-sco3.2v5255 basic_machine=i386-pc
205 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`256 basic_os=aros
206 ;;257 ;;
207 -sco4)258 aux)
208 os=-sco3.2v4259 basic_machine=m68k-apple
209 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`260 basic_os=aux
210 ;;261 ;;
211 -sco3.2.[4-9]*)262 balance)
212 os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`263 basic_machine=ns32k-sequent
213 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`264 basic_os=dynix
214 ;;265 ;;
215 -sco3.2v[4-9]*)266 blackfin)
216 # Don't forget version if it is 3.2v4 or newer.267 basic_machine=bfin-unknown
217 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`268 basic_os=linux
218 ;;269 ;;
219 -sco5v6*)270 cegcc)
220 # Don't forget version if it is 3.2v4 or newer.271 basic_machine=arm-unknown
221 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`272 basic_os=cegcc
222 ;;273 ;;
223 -sco*)274 convex-c1)
224 os=-sco3.2v2275 basic_machine=c1-convex
225 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`276 basic_os=bsd
226 ;;277 ;;
227 -udk*)278 convex-c2)
228 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`279 basic_machine=c2-convex
229 ;;280 basic_os=bsd
230 -isc)281 ;;
231 os=-isc2.2282 convex-c32)
232 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`283 basic_machine=c32-convex
233 ;;284 basic_os=bsd
234 -clix*)285 ;;
235 basic_machine=clipper-intergraph286 convex-c34)
236 ;;287 basic_machine=c34-convex
237 -isc*)288 basic_os=bsd
238 basic_machine=`echo "$1" | sed -e 's/86-.*/86-pc/'`289 ;;
239 ;;290 convex-c38)
240 -lynx*178)291 basic_machine=c38-convex
241 os=-lynxos178292 basic_os=bsd
242 ;;293 ;;
243 -lynx*5)294 cray)
244 os=-lynxos5295 basic_machine=j90-cray
245 ;;296 basic_os=unicos
246 -lynx*)297 ;;
247 os=-lynxos298 crds | unos)
248 ;;299 basic_machine=m68k-crds
249 -ptx*)300 basic_os=
250 basic_machine=`echo "$1" | sed -e 's/86-.*/86-sequent/'`301 ;;
251 ;;302 da30)
252 -psos*)303 basic_machine=m68k-da30
253 os=-psos304 basic_os=
254 ;;305 ;;
255 -mint | -mint[0-9]*)306 decstation | pmax | pmin | dec3100 | decstatn)
256 basic_machine=m68k-atari307 basic_machine=mips-dec
257 os=-mint308 basic_os=
309 ;;
310 delta88)
311 basic_machine=m88k-motorola
312 basic_os=sysv3
313 ;;
314 dicos)
315 basic_machine=i686-pc
316 basic_os=dicos
317 ;;
318 djgpp)
319 basic_machine=i586-pc
320 basic_os=msdosdjgpp
321 ;;
322 ebmon29k)
323 basic_machine=a29k-amd
324 basic_os=ebmon
325 ;;
326 es1800 | OSE68k | ose68k | ose | OSE)
327 basic_machine=m68k-ericsson
328 basic_os=ose
329 ;;
330 gmicro)
331 basic_machine=tron-gmicro
332 basic_os=sysv
333 ;;
334 go32)
335 basic_machine=i386-pc
336 basic_os=go32
337 ;;
338 h8300hms)
339 basic_machine=h8300-hitachi
340 basic_os=hms
341 ;;
342 h8300xray)
343 basic_machine=h8300-hitachi
344 basic_os=xray
345 ;;
346 h8500hms)
347 basic_machine=h8500-hitachi
348 basic_os=hms
349 ;;
350 harris)
351 basic_machine=m88k-harris
352 basic_os=sysv3
353 ;;
354 hp300 | hp300hpux)
355 basic_machine=m68k-hp
356 basic_os=hpux
357 ;;
358 hp300bsd)
359 basic_machine=m68k-hp
360 basic_os=bsd
361 ;;
362 hppaosf)
363 basic_machine=hppa1.1-hp
364 basic_os=osf
365 ;;
366 hppro)
367 basic_machine=hppa1.1-hp
368 basic_os=proelf
369 ;;
370 i386mach)
371 basic_machine=i386-mach
372 basic_os=mach
373 ;;
374 isi68 | isi)
375 basic_machine=m68k-isi
376 basic_os=sysv
377 ;;
378 m68knommu)
379 basic_machine=m68k-unknown
380 basic_os=linux
381 ;;
382 magnum | m3230)
383 basic_machine=mips-mips
384 basic_os=sysv
385 ;;
386 merlin)
387 basic_machine=ns32k-utek
388 basic_os=sysv
389 ;;
390 mingw64)
391 basic_machine=x86_64-pc
392 basic_os=mingw64
393 ;;
394 mingw32)
395 basic_machine=i686-pc
396 basic_os=mingw32
397 ;;
398 mingw32ce)
399 basic_machine=arm-unknown
400 basic_os=mingw32ce
401 ;;
402 monitor)
403 basic_machine=m68k-rom68k
404 basic_os=coff
405 ;;
406 morphos)
407 basic_machine=powerpc-unknown
408 basic_os=morphos
409 ;;
410 moxiebox)
411 basic_machine=moxie-unknown
412 basic_os=moxiebox
413 ;;
414 msdos)
415 basic_machine=i386-pc
416 basic_os=msdos
417 ;;
418 msys)
419 basic_machine=i686-pc
420 basic_os=msys
421 ;;
422 mvs)
423 basic_machine=i370-ibm
424 basic_os=mvs
425 ;;
426 nacl)
427 basic_machine=le32-unknown
428 basic_os=nacl
429 ;;
430 ncr3000)
431 basic_machine=i486-ncr
432 basic_os=sysv4
433 ;;
434 netbsd386)
435 basic_machine=i386-pc
436 basic_os=netbsd
437 ;;
438 netwinder)
439 basic_machine=armv4l-rebel
440 basic_os=linux
441 ;;
442 news | news700 | news800 | news900)
443 basic_machine=m68k-sony
444 basic_os=newsos
445 ;;
446 news1000)
447 basic_machine=m68030-sony
448 basic_os=newsos
449 ;;
450 necv70)
451 basic_machine=v70-nec
452 basic_os=sysv
453 ;;
454 nh3000)
455 basic_machine=m68k-harris
456 basic_os=cxux
457 ;;
458 nh[45]000)
459 basic_machine=m88k-harris
460 basic_os=cxux
461 ;;
462 nindy960)
463 basic_machine=i960-intel
464 basic_os=nindy
465 ;;
466 mon960)
467 basic_machine=i960-intel
468 basic_os=mon960
469 ;;
470 nonstopux)
471 basic_machine=mips-compaq
472 basic_os=nonstopux
473 ;;
474 os400)
475 basic_machine=powerpc-ibm
476 basic_os=os400
477 ;;
478 OSE68000 | ose68000)
479 basic_machine=m68000-ericsson
480 basic_os=ose
481 ;;
482 os68k)
483 basic_machine=m68k-none
484 basic_os=os68k
485 ;;
486 paragon)
487 basic_machine=i860-intel
488 basic_os=osf
489 ;;
490 parisc)
491 basic_machine=hppa-unknown
492 basic_os=linux
493 ;;
494 psp)
495 basic_machine=mipsallegrexel-sony
496 basic_os=psp
497 ;;
498 pw32)
499 basic_machine=i586-unknown
500 basic_os=pw32
501 ;;
502 rdos | rdos64)
503 basic_machine=x86_64-pc
504 basic_os=rdos
505 ;;
506 rdos32)
507 basic_machine=i386-pc
508 basic_os=rdos
509 ;;
510 rom68k)
511 basic_machine=m68k-rom68k
512 basic_os=coff
513 ;;
514 sa29200)
515 basic_machine=a29k-amd
516 basic_os=udi
517 ;;
518 sei)
519 basic_machine=mips-sei
520 basic_os=seiux
521 ;;
522 sequent)
523 basic_machine=i386-sequent
524 basic_os=
525 ;;
526 sps7)
527 basic_machine=m68k-bull
528 basic_os=sysv2
529 ;;
530 st2000)
531 basic_machine=m68k-tandem
532 basic_os=
533 ;;
534 stratus)
535 basic_machine=i860-stratus
536 basic_os=sysv4
537 ;;
538 sun2)
539 basic_machine=m68000-sun
540 basic_os=
541 ;;
542 sun2os3)
543 basic_machine=m68000-sun
544 basic_os=sunos3
545 ;;
546 sun2os4)
547 basic_machine=m68000-sun
548 basic_os=sunos4
549 ;;
550 sun3)
551 basic_machine=m68k-sun
552 basic_os=
553 ;;
554 sun3os3)
555 basic_machine=m68k-sun
556 basic_os=sunos3
557 ;;
558 sun3os4)
559 basic_machine=m68k-sun
560 basic_os=sunos4
561 ;;
562 sun4)
563 basic_machine=sparc-sun
564 basic_os=
565 ;;
566 sun4os3)
567 basic_machine=sparc-sun
568 basic_os=sunos3
569 ;;
570 sun4os4)
571 basic_machine=sparc-sun
572 basic_os=sunos4
573 ;;
574 sun4sol2)
575 basic_machine=sparc-sun
576 basic_os=solaris2
577 ;;
578 sun386 | sun386i | roadrunner)
579 basic_machine=i386-sun
580 basic_os=
581 ;;
582 sv1)
583 basic_machine=sv1-cray
584 basic_os=unicos
585 ;;
586 symmetry)
587 basic_machine=i386-sequent
588 basic_os=dynix
589 ;;
590 t3e)
591 basic_machine=alphaev5-cray
592 basic_os=unicos
593 ;;
594 t90)
595 basic_machine=t90-cray
596 basic_os=unicos
597 ;;
598 toad1)
599 basic_machine=pdp10-xkl
600 basic_os=tops20
601 ;;
602 tpf)
603 basic_machine=s390x-ibm
604 basic_os=tpf
605 ;;
606 udi29k)
607 basic_machine=a29k-amd
608 basic_os=udi
609 ;;
610 ultra3)
611 basic_machine=a29k-nyu
612 basic_os=sym1
613 ;;
614 v810 | necv810)
615 basic_machine=v810-nec
616 basic_os=none
617 ;;
618 vaxv)
619 basic_machine=vax-dec
620 basic_os=sysv
621 ;;
622 vms)
623 basic_machine=vax-dec
624 basic_os=vms
625 ;;
626 vsta)
627 basic_machine=i386-pc
628 basic_os=vsta
629 ;;
630 vxworks960)
631 basic_machine=i960-wrs
632 basic_os=vxworks
633 ;;
634 vxworks68)
635 basic_machine=m68k-wrs
636 basic_os=vxworks
637 ;;
638 vxworks29k)
639 basic_machine=a29k-wrs
640 basic_os=vxworks
641 ;;
642 xbox)
643 basic_machine=i686-pc
644 basic_os=mingw32
645 ;;
646 ymp)
647 basic_machine=ymp-cray
648 basic_os=unicos
649 ;;
650 *)
651 basic_machine=$1
652 basic_os=
653 ;;
654 esac
258 ;;655 ;;
259esac656esac
260657
261# Decode aliases for certain CPU-COMPANY combinations.658# Decode 1-component or ad-hoc basic machines
262case $basic_machine in659case $basic_machine in
263 # Recognize the basic CPU types without company name.660 # Here we handle the default manufacturer of certain CPU types. It is in
264 # Some are omitted here because they have special meanings below.661 # some cases the only manufacturer, in others, it is the most popular.
265 1750a | 580 \662 w89k)
266 | a29k \663 cpu=hppa1.1
267 | aarch64 | aarch64_be \664 vendor=winbond
268 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
269 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
270 | am33_2.0 \
271 | arc | arceb \
272 | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv6m | armv[78][arm] \
273 | avr | avr32 \
274 | ba \
275 | be32 | be64 \
276 | bfin \
277 | c4x | c8051 | clipper | csky \
278 | d10v | d30v | dlx | dsp16xx \
279 | e2k | epiphany \
280 | fido | fr30 | frv | ft32 \
281 | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
282 | hexagon \
283 | i370 | i860 | i960 | ia16 | ia64 \
284 | ip2k | iq2000 \
285 | k1om \
286 | le32 | le64 \
287 | lm32 \
288 | m32c | m32r | m32rle | m68000 | m68k | m88k \
289 | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
290 | mips | mipsbe | mipseb | mipsel | mipsle \
291 | mips16 \
292 | mips64 | mips64el \
293 | mips64octeon | mips64octeonel \
294 | mips64orion | mips64orionel \
295 | mips64r5900 | mips64r5900el \
296 | mips64vr | mips64vrel \
297 | mips64vr4100 | mips64vr4100el \
298 | mips64vr4300 | mips64vr4300el \
299 | mips64vr5000 | mips64vr5000el \
300 | mips64vr5900 | mips64vr5900el \
301 | mipsisa32 | mipsisa32el \
302 | mipsisa32r2 | mipsisa32r2el \
303 | mipsisa32r6 | mipsisa32r6el \
304 | mipsisa64 | mipsisa64el \
305 | mipsisa64r2 | mipsisa64r2el \
306 | mipsisa64r6 | mipsisa64r6el \
307 | mipsisa64sb1 | mipsisa64sb1el \
308 | mipsisa64sr71k | mipsisa64sr71kel \
309 | mipsr5900 | mipsr5900el \
310 | mipstx39 | mipstx39el \
311 | mn10200 | mn10300 \
312 | moxie \
313 | mt \
314 | msp430 \
315 | nds32 | nds32le | nds32be \
316 | nfp \
317 | nios | nios2 | nios2eb | nios2el \
318 | ns16k | ns32k \
319 | open8 | or1k | or1knd | or32 \
320 | pdp10 | pj | pjl \
321 | powerpc | powerpc64 | powerpc64le | powerpcle \
322 | pru \
323 | pyramid \
324 | riscv32 | riscv64 \
325 | rl78 | rx \
326 | score \
327 | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
328 | sh64 | sh64le \
329 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
330 | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
331 | spu \
332 | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
333 | ubicom32 \
334 | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
335 | visium \
336 | wasm32 \
337 | x86 | xc16x | xstormy16 | xtensa \
338 | z8k | z80)
339 basic_machine=$basic_machine-unknown
340 ;;
341 c54x)
342 basic_machine=tic54x-unknown
343 ;;
344 c55x)
345 basic_machine=tic55x-unknown
346 ;;
347 c6x)
348 basic_machine=tic6x-unknown
349 ;;
350 leon|leon[3-9])
351 basic_machine=sparc-$basic_machine
352 ;;
353 m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | nvptx | picochip)
354 basic_machine=$basic_machine-unknown
355 os=-none
356 ;;
357 m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65)
358 ;;665 ;;
359 m9s12z | m68hcs12z | hcs12z | s12z)666 op50n)
360 basic_machine=s12z-unknown667 cpu=hppa1.1
361 os=-none668 vendor=oki
362 ;;669 ;;
363 ms1)670 op60c)
364 basic_machine=mt-unknown671 cpu=hppa1.1
672 vendor=oki
365 ;;673 ;;
366674 ibm*)
367 strongarm | thumb | xscale)675 cpu=i370
368 basic_machine=arm-unknown676 vendor=ibm
369 ;;677 ;;
370 xgate)678 orion105)
371 basic_machine=$basic_machine-unknown679 cpu=clipper
372 os=-none680 vendor=highlevel
373 ;;681 ;;
374 xscaleeb)682 mac | mpw | mac-mpw)
375 basic_machine=armeb-unknown683 cpu=m68k
684 vendor=apple
376 ;;685 ;;
377686 pmac | pmac-mpw)
378 xscaleel)687 cpu=powerpc
379 basic_machine=armel-unknown688 vendor=apple
380 ;;689 ;;
381690
382 # We use `pc' rather than `unknown'
383 # because (1) that's what they normally are, and
384 # (2) the word "unknown" tends to confuse beginning users.
385 i*86 | x86_64)
386 basic_machine=$basic_machine-pc
387 ;;
388 # Object if more than one company name word.
389 *-*-*)
390 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&2
391 exit 1
392 ;;
393 # Recognize the basic CPU types with company name.
394 580-* \
395 | a29k-* \
396 | aarch64-* | aarch64_be-* \
397 | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
398 | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
399 | alphapca5[67]-* | alpha64pca5[67]-* | arc-* | arceb-* \
400 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
401 | avr-* | avr32-* \
402 | ba-* \
403 | be32-* | be64-* \
404 | bfin-* | bs2000-* \
405 | c[123]* | c30-* | [cjt]90-* | c4x-* \
406 | c8051-* | clipper-* | craynv-* | csky-* | cydra-* \
407 | d10v-* | d30v-* | dlx-* \
408 | e2k-* | elxsi-* \
409 | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
410 | h8300-* | h8500-* \
411 | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
412 | hexagon-* \
413 | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
414 | ip2k-* | iq2000-* \
415 | k1om-* \
416 | le32-* | le64-* \
417 | lm32-* \
418 | m32c-* | m32r-* | m32rle-* \
419 | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
420 | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
421 | microblaze-* | microblazeel-* \
422 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
423 | mips16-* \
424 | mips64-* | mips64el-* \
425 | mips64octeon-* | mips64octeonel-* \
426 | mips64orion-* | mips64orionel-* \
427 | mips64r5900-* | mips64r5900el-* \
428 | mips64vr-* | mips64vrel-* \
429 | mips64vr4100-* | mips64vr4100el-* \
430 | mips64vr4300-* | mips64vr4300el-* \
431 | mips64vr5000-* | mips64vr5000el-* \
432 | mips64vr5900-* | mips64vr5900el-* \
433 | mipsisa32-* | mipsisa32el-* \
434 | mipsisa32r2-* | mipsisa32r2el-* \
435 | mipsisa32r6-* | mipsisa32r6el-* \
436 | mipsisa64-* | mipsisa64el-* \
437 | mipsisa64r2-* | mipsisa64r2el-* \
438 | mipsisa64r6-* | mipsisa64r6el-* \
439 | mipsisa64sb1-* | mipsisa64sb1el-* \
440 | mipsisa64sr71k-* | mipsisa64sr71kel-* \
441 | mipsr5900-* | mipsr5900el-* \
442 | mipstx39-* | mipstx39el-* \
443 | mmix-* \
444 | mt-* \
445 | msp430-* \
446 | nds32-* | nds32le-* | nds32be-* \
447 | nfp-* \
448 | nios-* | nios2-* | nios2eb-* | nios2el-* \
449 | none-* | np1-* | ns16k-* | ns32k-* \
450 | open8-* \
451 | or1k*-* \
452 | orion-* \
453 | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
454 | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
455 | pru-* \
456 | pyramid-* \
457 | riscv32-* | riscv64-* \
458 | rl78-* | romp-* | rs6000-* | rx-* \
459 | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
460 | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
461 | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
462 | sparclite-* \
463 | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
464 | tahoe-* \
465 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
466 | tile*-* \
467 | tron-* \
468 | ubicom32-* \
469 | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
470 | vax-* \
471 | visium-* \
472 | wasm32-* \
473 | we32k-* \
474 | x86-* | x86_64-* | xc16x-* | xps100-* \
475 | xstormy16-* | xtensa*-* \
476 | ymp-* \
477 | z8k-* | z80-*)
478 ;;
479 # Recognize the basic CPU types without company name, with glob match.
480 xtensa*)
481 basic_machine=$basic_machine-unknown
482 ;;
483 # Recognize the various machine names and aliases which stand691 # Recognize the various machine names and aliases which stand
484 # for a CPU type and a company and sometimes even an OS.692 # for a CPU type and a company and sometimes even an OS.
485 386bsd)
486 basic_machine=i386-pc
487 os=-bsd
488 ;;
489 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)693 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
490 basic_machine=m68000-att694 cpu=m68000
695 vendor=att
491 ;;696 ;;
492 3b*)697 3b*)
493 basic_machine=we32k-att698 cpu=we32k
494 ;;699 vendor=att
495 a29khif)
496 basic_machine=a29k-amd
497 os=-udi
498 ;;
499 abacus)
500 basic_machine=abacus-unknown
501 ;;
502 adobe68k)
503 basic_machine=m68010-adobe
504 os=-scout
505 ;;
506 alliant | fx80)
507 basic_machine=fx80-alliant
508 ;;
509 altos | altos3068)
510 basic_machine=m68k-altos
511 ;;
512 am29k)
513 basic_machine=a29k-none
514 os=-bsd
515 ;;
516 amd64)
517 basic_machine=x86_64-pc
518 ;;
519 amd64-*)
520 basic_machine=x86_64-`echo "$basic_machine" | sed 's/^[^-]*-//'`
521 ;;
522 amdahl)
523 basic_machine=580-amdahl
524 os=-sysv
525 ;;
526 amiga | amiga-*)
527 basic_machine=m68k-unknown
528 ;;
529 amigaos | amigados)
530 basic_machine=m68k-unknown
531 os=-amigaos
532 ;;
533 amigaunix | amix)
534 basic_machine=m68k-unknown
535 os=-sysv4
536 ;;
537 apollo68)
538 basic_machine=m68k-apollo
539 os=-sysv
540 ;;
541 apollo68bsd)
542 basic_machine=m68k-apollo
543 os=-bsd
544 ;;
545 aros)
546 basic_machine=i386-pc
547 os=-aros
548 ;;
549 asmjs)
550 basic_machine=asmjs-unknown
551 ;;
552 aux)
553 basic_machine=m68k-apple
554 os=-aux
555 ;;
556 balance)
557 basic_machine=ns32k-sequent
558 os=-dynix
559 ;;
560 blackfin)
561 basic_machine=bfin-unknown
562 os=-linux
563 ;;
564 blackfin-*)
565 basic_machine=bfin-`echo "$basic_machine" | sed 's/^[^-]*-//'`
566 os=-linux
567 ;;700 ;;
568 bluegene*)701 bluegene*)
569 basic_machine=powerpc-ibm702 cpu=powerpc
570 os=-cnk703 vendor=ibm
571 ;;704 basic_os=cnk
572 c54x-*)
573 basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
574 ;;
575 c55x-*)
576 basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
577 ;;
578 c6x-*)
579 basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
580 ;;
581 c90)
582 basic_machine=c90-cray
583 os=-unicos
584 ;;
585 cegcc)
586 basic_machine=arm-unknown
587 os=-cegcc
588 ;;
589 convex-c1)
590 basic_machine=c1-convex
591 os=-bsd
592 ;;
593 convex-c2)
594 basic_machine=c2-convex
595 os=-bsd
596 ;;
597 convex-c32)
598 basic_machine=c32-convex
599 os=-bsd
600 ;;
601 convex-c34)
602 basic_machine=c34-convex
603 os=-bsd
604 ;;
605 convex-c38)
606 basic_machine=c38-convex
607 os=-bsd
608 ;;
609 cray | j90)
610 basic_machine=j90-cray
611 os=-unicos
612 ;;
613 craynv)
614 basic_machine=craynv-cray
615 os=-unicosmp
616 ;;
617 cr16 | cr16-*)
618 basic_machine=cr16-unknown
619 os=-elf
620 ;;
621 crds | unos)
622 basic_machine=m68k-crds
623 ;;
624 crisv32 | crisv32-* | etraxfs*)
625 basic_machine=crisv32-axis
626 ;;
627 cris | cris-* | etrax*)
628 basic_machine=cris-axis
629 ;;
630 crx)
631 basic_machine=crx-unknown
632 os=-elf
633 ;;
634 da30 | da30-*)
635 basic_machine=m68k-da30
636 ;;
637 decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
638 basic_machine=mips-dec
639 ;;705 ;;
640 decsystem10* | dec10*)706 decsystem10* | dec10*)
641 basic_machine=pdp10-dec707 cpu=pdp10
642 os=-tops10708 vendor=dec
709 basic_os=tops10
643 ;;710 ;;
644 decsystem20* | dec20*)711 decsystem20* | dec20*)
645 basic_machine=pdp10-dec712 cpu=pdp10
646 os=-tops20713 vendor=dec
714 basic_os=tops20
647 ;;715 ;;
648 delta | 3300 | motorola-3300 | motorola-delta \716 delta | 3300 | motorola-3300 | motorola-delta \
649 | 3300-motorola | delta-motorola)717 | 3300-motorola | delta-motorola)
650 basic_machine=m68k-motorola718 cpu=m68k
651 ;;719 vendor=motorola
652 delta88)
653 basic_machine=m88k-motorola
654 os=-sysv3
655 ;;
656 dicos)
657 basic_machine=i686-pc
658 os=-dicos
659 ;;
660 djgpp)
661 basic_machine=i586-pc
662 os=-msdosdjgpp
663 ;;
664 dpx20 | dpx20-*)
665 basic_machine=rs6000-bull
666 os=-bosx
667 ;;720 ;;
668 dpx2*)721 dpx2*)
669 basic_machine=m68k-bull722 cpu=m68k
670 os=-sysv3723 vendor=bull
671 ;;724 basic_os=sysv3
672 e500v[12])
673 basic_machine=powerpc-unknown
674 os=$os"spe"
675 ;;
676 e500v[12]-*)
677 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
678 os=$os"spe"
679 ;;
680 ebmon29k)
681 basic_machine=a29k-amd
682 os=-ebmon
683 ;;
684 elxsi)
685 basic_machine=elxsi-elxsi
686 os=-bsd
687 ;;725 ;;
688 encore | umax | mmax)726 encore | umax | mmax)
689 basic_machine=ns32k-encore727 cpu=ns32k
728 vendor=encore
690 ;;729 ;;
691 es1800 | OSE68k | ose68k | ose | OSE)730 elxsi)
692 basic_machine=m68k-ericsson731 cpu=elxsi
693 os=-ose732 vendor=elxsi
733 basic_os=${basic_os:-bsd}
694 ;;734 ;;
695 fx2800)735 fx2800)
696 basic_machine=i860-alliant736 cpu=i860
737 vendor=alliant
697 ;;738 ;;
698 genix)739 genix)
699 basic_machine=ns32k-ns740 cpu=ns32k
700 ;;741 vendor=ns
701 gmicro)
702 basic_machine=tron-gmicro
703 os=-sysv
704 ;;
705 go32)
706 basic_machine=i386-pc
707 os=-go32
708 ;;742 ;;
709 h3050r* | hiux*)743 h3050r* | hiux*)
710 basic_machine=hppa1.1-hitachi744 cpu=hppa1.1
711 os=-hiuxwe2745 vendor=hitachi
712 ;;746 basic_os=hiuxwe2
713 h8300hms)
714 basic_machine=h8300-hitachi
715 os=-hms
716 ;;
717 h8300xray)
718 basic_machine=h8300-hitachi
719 os=-xray
720 ;;
721 h8500hms)
722 basic_machine=h8500-hitachi
723 os=-hms
724 ;;
725 harris)
726 basic_machine=m88k-harris
727 os=-sysv3
728 ;;
729 hp300-*)
730 basic_machine=m68k-hp
731 ;;
732 hp300bsd)
733 basic_machine=m68k-hp
734 os=-bsd
735 ;;
736 hp300hpux)
737 basic_machine=m68k-hp
738 os=-hpux
739 ;;747 ;;
740 hp3k9[0-9][0-9] | hp9[0-9][0-9])748 hp3k9[0-9][0-9] | hp9[0-9][0-9])
741 basic_machine=hppa1.0-hp749 cpu=hppa1.0
750 vendor=hp
742 ;;751 ;;
743 hp9k2[0-9][0-9] | hp9k31[0-9])752 hp9k2[0-9][0-9] | hp9k31[0-9])
744 basic_machine=m68000-hp753 cpu=m68000
754 vendor=hp
745 ;;755 ;;
746 hp9k3[2-9][0-9])756 hp9k3[2-9][0-9])
747 basic_machine=m68k-hp757 cpu=m68k
758 vendor=hp
748 ;;759 ;;
749 hp9k6[0-9][0-9] | hp6[0-9][0-9])760 hp9k6[0-9][0-9] | hp6[0-9][0-9])
750 basic_machine=hppa1.0-hp761 cpu=hppa1.0
762 vendor=hp
751 ;;763 ;;
752 hp9k7[0-79][0-9] | hp7[0-79][0-9])764 hp9k7[0-79][0-9] | hp7[0-79][0-9])
753 basic_machine=hppa1.1-hp765 cpu=hppa1.1
766 vendor=hp
754 ;;767 ;;
755 hp9k78[0-9] | hp78[0-9])768 hp9k78[0-9] | hp78[0-9])
756 # FIXME: really hppa2.0-hp769 # FIXME: really hppa2.0-hp
757 basic_machine=hppa1.1-hp770 cpu=hppa1.1
771 vendor=hp
758 ;;772 ;;
759 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)773 hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
760 # FIXME: really hppa2.0-hp774 # FIXME: really hppa2.0-hp
761 basic_machine=hppa1.1-hp775 cpu=hppa1.1
776 vendor=hp
762 ;;777 ;;
763 hp9k8[0-9][13679] | hp8[0-9][13679])778 hp9k8[0-9][13679] | hp8[0-9][13679])
764 basic_machine=hppa1.1-hp779 cpu=hppa1.1
780 vendor=hp
765 ;;781 ;;
766 hp9k8[0-9][0-9] | hp8[0-9][0-9])782 hp9k8[0-9][0-9] | hp8[0-9][0-9])
767 basic_machine=hppa1.0-hp783 cpu=hppa1.0
768 ;;784 vendor=hp
769 hppaosf)
770 basic_machine=hppa1.1-hp
771 os=-osf
772 ;;
773 hppro)
774 basic_machine=hppa1.1-hp
775 os=-proelf
776 ;;
777 i370-ibm* | ibm*)
778 basic_machine=i370-ibm
779 ;;785 ;;
780 i*86v32)786 i*86v32)
781 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`787 cpu=`echo "$1" | sed -e 's/86.*/86/'`
782 os=-sysv32788 vendor=pc
789 basic_os=sysv32
783 ;;790 ;;
784 i*86v4*)791 i*86v4*)
785 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`792 cpu=`echo "$1" | sed -e 's/86.*/86/'`
786 os=-sysv4793 vendor=pc
794 basic_os=sysv4
787 ;;795 ;;
788 i*86v)796 i*86v)
789 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`797 cpu=`echo "$1" | sed -e 's/86.*/86/'`
790 os=-sysv798 vendor=pc
799 basic_os=sysv
791 ;;800 ;;
792 i*86sol2)801 i*86sol2)
793 basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`802 cpu=`echo "$1" | sed -e 's/86.*/86/'`
794 os=-solaris2803 vendor=pc
795 ;;804 basic_os=solaris2
796 i386mach)
797 basic_machine=i386-mach
798 os=-mach
799 ;;805 ;;
800 vsta)806 j90 | j90-cray)
801 basic_machine=i386-unknown807 cpu=j90
802 os=-vsta808 vendor=cray
809 basic_os=${basic_os:-unicos}
803 ;;810 ;;
804 iris | iris4d)811 iris | iris4d)
805 basic_machine=mips-sgi812 cpu=mips
806 case $os in813 vendor=sgi
807 -irix*)814 case $basic_os in
815 irix*)
808 ;;816 ;;
809 *)817 *)
810 os=-irix4818 basic_os=irix4
811 ;;819 ;;
812 esac820 esac
813 ;;821 ;;
814 isi68 | isi)
815 basic_machine=m68k-isi
816 os=-sysv
817 ;;
818 leon-*|leon[3-9]-*)
819 basic_machine=sparc-`echo "$basic_machine" | sed 's/-.*//'`
820 ;;
821 m68knommu)
822 basic_machine=m68k-unknown
823 os=-linux
824 ;;
825 m68knommu-*)
826 basic_machine=m68k-`echo "$basic_machine" | sed 's/^[^-]*-//'`
827 os=-linux
828 ;;
829 magnum | m3230)
830 basic_machine=mips-mips
831 os=-sysv
832 ;;
833 merlin)
834 basic_machine=ns32k-utek
835 os=-sysv
836 ;;
837 microblaze*)
838 basic_machine=microblaze-xilinx
839 ;;
840 mingw64)
841 basic_machine=x86_64-pc
842 os=-mingw64
843 ;;
844 mingw32)
845 basic_machine=i686-pc
846 os=-mingw32
847 ;;
848 mingw32ce)
849 basic_machine=arm-unknown
850 os=-mingw32ce
851 ;;
852 miniframe)822 miniframe)
853 basic_machine=m68000-convergent823 cpu=m68000
854 ;;824 vendor=convergent
855 *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
856 basic_machine=m68k-atari
857 os=-mint
858 ;;
859 mips3*-*)
860 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`
861 ;;
862 mips3*)
863 basic_machine=`echo "$basic_machine" | sed -e 's/mips3/mips64/'`-unknown
864 ;;
865 monitor)
866 basic_machine=m68k-rom68k
867 os=-coff
868 ;;
869 morphos)
870 basic_machine=powerpc-unknown
871 os=-morphos
872 ;;
873 moxiebox)
874 basic_machine=moxie-unknown
875 os=-moxiebox
876 ;;
877 msdos)
878 basic_machine=i386-pc
879 os=-msdos
880 ;;
881 ms1-*)
882 basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
883 ;;
884 msys)
885 basic_machine=i686-pc
886 os=-msys
887 ;;
888 mvs)
889 basic_machine=i370-ibm
890 os=-mvs
891 ;;
892 nacl)
893 basic_machine=le32-unknown
894 os=-nacl
895 ;;
896 ncr3000)
897 basic_machine=i486-ncr
898 os=-sysv4
899 ;;825 ;;
900 netbsd386)826 *mint | mint[0-9]* | *MiNT | *MiNT[0-9]*)
901 basic_machine=i386-unknown827 cpu=m68k
902 os=-netbsd828 vendor=atari
903 ;;829 basic_os=mint
904 netwinder)
905 basic_machine=armv4l-rebel
906 os=-linux
907 ;;
908 news | news700 | news800 | news900)
909 basic_machine=m68k-sony
910 os=-newsos
911 ;;
912 news1000)
913 basic_machine=m68030-sony
914 os=-newsos
915 ;;830 ;;
916 news-3600 | risc-news)831 news-3600 | risc-news)
917 basic_machine=mips-sony832 cpu=mips
918 os=-newsos833 vendor=sony
919 ;;834 basic_os=newsos
920 necv70)
921 basic_machine=v70-nec
922 os=-sysv
923 ;;835 ;;
924 next | m*-next)836 next | m*-next)
925 basic_machine=m68k-next837 cpu=m68k
926 case $os in838 vendor=next
927 -nextstep* )839 case $basic_os in
840 openstep*)
841 ;;
842 nextstep*)
928 ;;843 ;;
929 -ns2*)844 ns2*)
930 os=-nextstep2845 basic_os=nextstep2
931 ;;846 ;;
932 *)847 *)
933 os=-nextstep3848 basic_os=nextstep3
934 ;;849 ;;
935 esac850 esac
936 ;;851 ;;
937 nh3000)
938 basic_machine=m68k-harris
939 os=-cxux
940 ;;
941 nh[45]000)
942 basic_machine=m88k-harris
943 os=-cxux
944 ;;
945 nindy960)
946 basic_machine=i960-intel
947 os=-nindy
948 ;;
949 mon960)
950 basic_machine=i960-intel
951 os=-mon960
952 ;;
953 nonstopux)
954 basic_machine=mips-compaq
955 os=-nonstopux
956 ;;
957 np1)852 np1)
958 basic_machine=np1-gould853 cpu=np1
959 ;;854 vendor=gould
960 neo-tandem)
961 basic_machine=neo-tandem
962 ;;
963 nse-tandem)
964 basic_machine=nse-tandem
965 ;;
966 nsr-tandem)
967 basic_machine=nsr-tandem
968 ;;
969 nsv-tandem)
970 basic_machine=nsv-tandem
971 ;;
972 nsx-tandem)
973 basic_machine=nsx-tandem
974 ;;855 ;;
975 op50n-* | op60c-*)856 op50n-* | op60c-*)
976 basic_machine=hppa1.1-oki857 cpu=hppa1.1
977 os=-proelf858 vendor=oki
978 ;;859 basic_os=proelf
979 openrisc | openrisc-*)
980 basic_machine=or32-unknown
981 ;;
982 os400)
983 basic_machine=powerpc-ibm
984 os=-os400
985 ;;
986 OSE68000 | ose68000)
987 basic_machine=m68000-ericsson
988 os=-ose
989 ;;
990 os68k)
991 basic_machine=m68k-none
992 os=-os68k
993 ;;860 ;;
994 pa-hitachi)861 pa-hitachi)
995 basic_machine=hppa1.1-hitachi862 cpu=hppa1.1
996 os=-hiuxwe2863 vendor=hitachi
997 ;;864 basic_os=hiuxwe2
998 paragon)
999 basic_machine=i860-intel
1000 os=-osf
1001 ;;
1002 parisc)
1003 basic_machine=hppa-unknown
1004 os=-linux
1005 ;;
1006 parisc-*)
1007 basic_machine=hppa-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1008 os=-linux
1009 ;;865 ;;
1010 pbd)866 pbd)
1011 basic_machine=sparc-tti867 cpu=sparc
868 vendor=tti
1012 ;;869 ;;
1013 pbb)870 pbb)
1014 basic_machine=m68k-tti871 cpu=m68k
1015 ;;872 vendor=tti
1016 pc532 | pc532-*)
1017 basic_machine=ns32k-pc532
1018 ;;
1019 pc98)
1020 basic_machine=i386-pc
1021 ;;873 ;;
1022 pc98-*)874 pc532)
1023 basic_machine=i386-`echo "$basic_machine" | sed 's/^[^-]*-//'`875 cpu=ns32k
1024 ;;876 vendor=pc532
1025 pentium | p5 | k5 | k6 | nexgen | viac3)
1026 basic_machine=i586-pc
1027 ;;
1028 pentiumpro | p6 | 6x86 | athlon | athlon_*)
1029 basic_machine=i686-pc
1030 ;;
1031 pentiumii | pentium2 | pentiumiii | pentium3)
1032 basic_machine=i686-pc
1033 ;;
1034 pentium4)
1035 basic_machine=i786-pc
1036 ;;
1037 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1038 basic_machine=i586-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1039 ;;
1040 pentiumpro-* | p6-* | 6x86-* | athlon-*)
1041 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1042 ;;
1043 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1044 basic_machine=i686-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1045 ;;
1046 pentium4-*)
1047 basic_machine=i786-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1048 ;;877 ;;
1049 pn)878 pn)
1050 basic_machine=pn-gould879 cpu=pn
1051 ;;880 vendor=gould
1052 power) basic_machine=power-ibm
1053 ;;
1054 ppc | ppcbe) basic_machine=powerpc-unknown
1055 ;;
1056 ppc-* | ppcbe-*)
1057 basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
1058 ;;881 ;;
1059 ppcle | powerpclittle)882 power)
1060 basic_machine=powerpcle-unknown883 cpu=power
884 vendor=ibm
1061 ;;885 ;;
1062 ppcle-* | powerpclittle-*)886 ps2)
1063 basic_machine=powerpcle-`echo "$basic_machine" | sed 's/^[^-]*-//'`887 cpu=i386
888 vendor=ibm
1064 ;;889 ;;
1065 ppc64) basic_machine=powerpc64-unknown890 rm[46]00)
891 cpu=mips
892 vendor=siemens
1066 ;;893 ;;
1067 ppc64-*) basic_machine=powerpc64-`echo "$basic_machine" | sed 's/^[^-]*-//'`894 rtpc | rtpc-*)
895 cpu=romp
896 vendor=ibm
1068 ;;897 ;;
1069 ppc64le | powerpc64little)898 sde)
1070 basic_machine=powerpc64le-unknown899 cpu=mipsisa32
900 vendor=sde
901 basic_os=${basic_os:-elf}
1071 ;;902 ;;
1072 ppc64le-* | powerpc64little-*)903 simso-wrs)
1073 basic_machine=powerpc64le-`echo "$basic_machine" | sed 's/^[^-]*-//'`904 cpu=sparclite
905 vendor=wrs
906 basic_os=vxworks
1074 ;;907 ;;
1075 ps2)908 tower | tower-32)
1076 basic_machine=i386-ibm909 cpu=m68k
910 vendor=ncr
1077 ;;911 ;;
1078 pw32)912 vpp*|vx|vx-*)
1079 basic_machine=i586-unknown913 cpu=f301
1080 os=-pw32914 vendor=fujitsu
1081 ;;915 ;;
1082 rdos | rdos64)916 w65)
1083 basic_machine=x86_64-pc917 cpu=w65
1084 os=-rdos918 vendor=wdc
1085 ;;919 ;;
1086 rdos32)920 w89k-*)
1087 basic_machine=i386-pc921 cpu=hppa1.1
1088 os=-rdos922 vendor=winbond
923 basic_os=proelf
1089 ;;924 ;;
1090 rom68k)925 none)
1091 basic_machine=m68k-rom68k926 cpu=none
1092 os=-coff927 vendor=none
1093 ;;928 ;;
1094 rm[46]00)929 leon|leon[3-9])
1095 basic_machine=mips-siemens930 cpu=sparc
931 vendor=$basic_machine
1096 ;;932 ;;
1097 rtpc | rtpc-*)933 leon-*|leon[3-9]-*)
1098 basic_machine=romp-ibm934 cpu=sparc
935 vendor=`echo "$basic_machine" | sed 's/-.*//'`
1099 ;;936 ;;
1100 s390 | s390-*)937
1101 basic_machine=s390-ibm938 *-*)
939 # shellcheck disable=SC2162
940 saved_IFS=$IFS
941 IFS="-" read cpu vendor <<EOF
942$basic_machine
943EOF
944 IFS=$saved_IFS
1102 ;;945 ;;
1103 s390x | s390x-*)946 # We use `pc' rather than `unknown'
1104 basic_machine=s390x-ibm947 # because (1) that's what they normally are, and
948 # (2) the word "unknown" tends to confuse beginning users.
949 i*86 | x86_64)
950 cpu=$basic_machine
951 vendor=pc
1105 ;;952 ;;
1106 sa29200)953 # These rules are duplicated from below for sake of the special case above;
1107 basic_machine=a29k-amd954 # i.e. things that normalized to x86 arches should also default to "pc"
1108 os=-udi955 pc98)
956 cpu=i386
957 vendor=pc
1109 ;;958 ;;
1110 sb1)959 x64 | amd64)
1111 basic_machine=mipsisa64sb1-unknown960 cpu=x86_64
961 vendor=pc
1112 ;;962 ;;
1113 sb1el)963 # Recognize the basic CPU types without company name.
1114 basic_machine=mipsisa64sb1el-unknown964 *)
965 cpu=$basic_machine
966 vendor=unknown
1115 ;;967 ;;
1116 sde)968esac
1117 basic_machine=mipsisa32-sde969
1118 os=-elf970unset -v basic_machine
971
972# Decode basic machines in the full and proper CPU-Company form.
973case $cpu-$vendor in
974 # Here we handle the default manufacturer of certain CPU types in canonical form. It is in
975 # some cases the only manufacturer, in others, it is the most popular.
976 craynv-unknown)
977 vendor=cray
978 basic_os=${basic_os:-unicosmp}
1119 ;;979 ;;
1120 sei)980 c90-unknown | c90-cray)
1121 basic_machine=mips-sei981 vendor=cray
1122 os=-seiux982 basic_os=${Basic_os:-unicos}
1123 ;;983 ;;
1124 sequent)984 fx80-unknown)
1125 basic_machine=i386-sequent985 vendor=alliant
1126 ;;986 ;;
1127 sh5el)987 romp-unknown)
1128 basic_machine=sh5le-unknown988 vendor=ibm
1129 ;;989 ;;
1130 simso-wrs)990 mmix-unknown)
1131 basic_machine=sparclite-wrs991 vendor=knuth
1132 os=-vxworks
1133 ;;992 ;;
1134 sps7)993 microblaze-unknown | microblazeel-unknown)
1135 basic_machine=m68k-bull994 vendor=xilinx
1136 os=-sysv2
1137 ;;995 ;;
1138 spur)996 rs6000-unknown)
1139 basic_machine=spur-unknown997 vendor=ibm
1140 ;;998 ;;
1141 st2000)999 vax-unknown)
1142 basic_machine=m68k-tandem1000 vendor=dec
1143 ;;1001 ;;
1144 stratus)1002 pdp11-unknown)
1145 basic_machine=i860-stratus1003 vendor=dec
1146 os=-sysv4
1147 ;;1004 ;;
1148 strongarm-* | thumb-*)1005 we32k-unknown)
1149 basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`1006 vendor=att
1150 ;;1007 ;;
1151 sun2)1008 cydra-unknown)
1152 basic_machine=m68000-sun1009 vendor=cydrome
1153 ;;1010 ;;
1154 sun2os3)1011 i370-ibm*)
1155 basic_machine=m68000-sun1012 vendor=ibm
1156 os=-sunos3
1157 ;;1013 ;;
1158 sun2os4)1014 orion-unknown)
1159 basic_machine=m68000-sun1015 vendor=highlevel
1160 os=-sunos4
1161 ;;1016 ;;
1162 sun3os3)1017 xps-unknown | xps100-unknown)
1163 basic_machine=m68k-sun1018 cpu=xps100
1164 os=-sunos31019 vendor=honeywell
1165 ;;1020 ;;
1166 sun3os4)1021
1167 basic_machine=m68k-sun1022 # Here we normalize CPU types with a missing or matching vendor
1168 os=-sunos41023 armh-unknown | armh-alt)
1024 cpu=armv7l
1025 vendor=alt
1026 basic_os=${basic_os:-linux-gnueabihf}
1169 ;;1027 ;;
1170 sun4os3)1028 dpx20-unknown | dpx20-bull)
1171 basic_machine=sparc-sun1029 cpu=rs6000
1172 os=-sunos31030 vendor=bull
1031 basic_os=${basic_os:-bosx}
1173 ;;1032 ;;
1174 sun4os4)1033
1175 basic_machine=sparc-sun1034 # Here we normalize CPU types irrespective of the vendor
1176 os=-sunos41035 amd64-*)
1036 cpu=x86_64
1177 ;;1037 ;;
1178 sun4sol2)1038 blackfin-*)
1179 basic_machine=sparc-sun1039 cpu=bfin
1180 os=-solaris21040 basic_os=linux
1181 ;;1041 ;;
1182 sun3 | sun3-*)1042 c54x-*)
1183 basic_machine=m68k-sun1043 cpu=tic54x
1184 ;;1044 ;;
1185 sun4)1045 c55x-*)
1186 basic_machine=sparc-sun1046 cpu=tic55x
1187 ;;1047 ;;
1188 sun386 | sun386i | roadrunner)1048 c6x-*)
1189 basic_machine=i386-sun1049 cpu=tic6x
1190 ;;1050 ;;
1191 sv1)1051 e500v[12]-*)
1192 basic_machine=sv1-cray1052 cpu=powerpc
1193 os=-unicos1053 basic_os=${basic_os}"spe"
1194 ;;1054 ;;
1195 symmetry)1055 mips3*-*)
1196 basic_machine=i386-sequent1056 cpu=mips64
1197 os=-dynix
1198 ;;1057 ;;
1199 t3e)1058 ms1-*)
1200 basic_machine=alphaev5-cray1059 cpu=mt
1201 os=-unicos
1202 ;;1060 ;;
1203 t90)1061 m68knommu-*)
1204 basic_machine=t90-cray1062 cpu=m68k
1205 os=-unicos1063 basic_os=linux
1206 ;;1064 ;;
1207 tile*)1065 m9s12z-* | m68hcs12z-* | hcs12z-* | s12z-*)
1208 basic_machine=$basic_machine-unknown1066 cpu=s12z
1209 os=-linux-gnu
1210 ;;1067 ;;
1211 tx39)1068 openrisc-*)
1212 basic_machine=mipstx39-unknown1069 cpu=or32
1213 ;;1070 ;;
1214 tx39el)1071 parisc-*)
1215 basic_machine=mipstx39el-unknown1072 cpu=hppa
1073 basic_os=linux
1216 ;;1074 ;;
1217 toad1)1075 pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
1218 basic_machine=pdp10-xkl1076 cpu=i586
1219 os=-tops20
1220 ;;1077 ;;
1221 tower | tower-32)1078 pentiumpro-* | p6-* | 6x86-* | athlon-* | athalon_*-*)
1222 basic_machine=m68k-ncr1079 cpu=i686
1223 ;;1080 ;;
1224 tpf)1081 pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
1225 basic_machine=s390x-ibm1082 cpu=i686
1226 os=-tpf
1227 ;;1083 ;;
1228 udi29k)1084 pentium4-*)
1229 basic_machine=a29k-amd1085 cpu=i786
1230 os=-udi
1231 ;;1086 ;;
1232 ultra3)1087 pc98-*)
1233 basic_machine=a29k-nyu1088 cpu=i386
1234 os=-sym1
1235 ;;1089 ;;
1236 v810 | necv810)1090 ppc-* | ppcbe-*)
1237 basic_machine=v810-nec1091 cpu=powerpc
1238 os=-none
1239 ;;1092 ;;
1240 vaxv)1093 ppcle-* | powerpclittle-*)
1241 basic_machine=vax-dec1094 cpu=powerpcle
1242 os=-sysv
1243 ;;1095 ;;
1244 vms)1096 ppc64-*)
1245 basic_machine=vax-dec1097 cpu=powerpc64
1246 os=-vms
1247 ;;1098 ;;
1248 vpp*|vx|vx-*)1099 ppc64le-* | powerpc64little-*)
1249 basic_machine=f301-fujitsu1100 cpu=powerpc64le
1250 ;;1101 ;;
1251 vxworks960)1102 sb1-*)
1252 basic_machine=i960-wrs1103 cpu=mipsisa64sb1
1253 os=-vxworks
1254 ;;1104 ;;
1255 vxworks68)1105 sb1el-*)
1256 basic_machine=m68k-wrs1106 cpu=mipsisa64sb1el
1257 os=-vxworks
1258 ;;1107 ;;
1259 vxworks29k)1108 sh5e[lb]-*)
1260 basic_machine=a29k-wrs1109 cpu=`echo "$cpu" | sed 's/^\(sh.\)e\(.\)$/\1\2e/'`
1261 os=-vxworks
1262 ;;1110 ;;
1263 w65*)1111 spur-*)
1264 basic_machine=w65-wdc1112 cpu=spur
1265 os=-none
1266 ;;1113 ;;
1267 w89k-*)1114 strongarm-* | thumb-*)
1268 basic_machine=hppa1.1-winbond1115 cpu=arm
1269 os=-proelf
1270 ;;1116 ;;
1271 x64)1117 tx39-*)
1272 basic_machine=x86_64-pc1118 cpu=mipstx39
1273 ;;1119 ;;
1274 xbox)1120 tx39el-*)
1275 basic_machine=i686-pc1121 cpu=mipstx39el
1276 os=-mingw32
1277 ;;1122 ;;
1278 xps | xps100)1123 x64-*)
1279 basic_machine=xps100-honeywell1124 cpu=x86_64
1280 ;;1125 ;;
1281 xscale-* | xscalee[bl]-*)1126 xscale-* | xscalee[bl]-*)
1282 basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`1127 cpu=`echo "$cpu" | sed 's/^xscale/arm/'`
1283 ;;1128 ;;
1284 ymp)1129 arm64-* | aarch64le-*)
1285 basic_machine=ymp-cray1130 cpu=aarch64
1286 os=-unicos
1287 ;;
1288 none)
1289 basic_machine=none-none
1290 os=-none
1291 ;;1131 ;;
12921132
1293# Here we handle the default manufacturer of certain CPU types. It is in1133 # Recognize the canonical CPU Types that limit and/or modify the
1294# some cases the only manufacturer, in others, it is the most popular.1134 # company names they are paired with.
1295 w89k)1135 cr16-*)
1296 basic_machine=hppa1.1-winbond1136 basic_os=${basic_os:-elf}
1297 ;;
1298 op50n)
1299 basic_machine=hppa1.1-oki
1300 ;;
1301 op60c)
1302 basic_machine=hppa1.1-oki
1303 ;;
1304 romp)
1305 basic_machine=romp-ibm
1306 ;;1137 ;;
1307 mmix)1138 crisv32-* | etraxfs*-*)
1308 basic_machine=mmix-knuth1139 cpu=crisv32
1140 vendor=axis
1309 ;;1141 ;;
1310 rs6000)1142 cris-* | etrax*-*)
1311 basic_machine=rs6000-ibm1143 cpu=cris
1144 vendor=axis
1312 ;;1145 ;;
1313 vax)1146 crx-*)
1314 basic_machine=vax-dec1147 basic_os=${basic_os:-elf}
1315 ;;1148 ;;
1316 pdp11)1149 neo-tandem)
1317 basic_machine=pdp11-dec1150 cpu=neo
1318 ;;1151 vendor=tandem
1319 we32k)
1320 basic_machine=we32k-att
1321 ;;
1322 sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
1323 basic_machine=sh-unknown
1324 ;;1152 ;;
1325 cydra)1153 nse-tandem)
1326 basic_machine=cydra-cydrome1154 cpu=nse
1155 vendor=tandem
1327 ;;1156 ;;
1328 orion)1157 nsr-tandem)
1329 basic_machine=orion-highlevel1158 cpu=nsr
1159 vendor=tandem
1330 ;;1160 ;;
1331 orion105)1161 nsv-tandem)
1332 basic_machine=clipper-highlevel1162 cpu=nsv
1163 vendor=tandem
1333 ;;1164 ;;
1334 mac | mpw | mac-mpw)1165 nsx-tandem)
1335 basic_machine=m68k-apple1166 cpu=nsx
1167 vendor=tandem
1336 ;;1168 ;;
1337 pmac | pmac-mpw)1169 mipsallegrexel-sony)
1338 basic_machine=powerpc-apple1170 cpu=mipsallegrexel
1171 vendor=sony
1339 ;;1172 ;;
1340 *-unknown)1173 tile*-*)
1341 # Make sure to match an already-canonicalized machine name.1174 basic_os=${basic_os:-linux-gnu}
1342 ;;1175 ;;
1176
1343 *)1177 *)
1344 echo Invalid configuration \`"$1"\': machine \`"$basic_machine"\' not recognized 1>&21178 # Recognize the canonical CPU types that are allowed with any
1345 exit 11179 # company name.
1180 case $cpu in
1181 1750a | 580 \
1182 | a29k \
1183 | aarch64 | aarch64_be \
1184 | abacus \
1185 | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
1186 | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \
1187 | alphapca5[67] | alpha64pca5[67] \
1188 | am33_2.0 \
1189 | amdgcn \
1190 | arc | arceb | arc32 | arc64 \
1191 | arm | arm[lb]e | arme[lb] | armv* \
1192 | avr | avr32 \
1193 | asmjs \
1194 | ba \
1195 | be32 | be64 \
1196 | bfin | bpf | bs2000 \
1197 | c[123]* | c30 | [cjt]90 | c4x \
1198 | c8051 | clipper | craynv | csky | cydra \
1199 | d10v | d30v | dlx | dsp16xx \
1200 | e2k | elxsi | epiphany \
1201 | f30[01] | f700 | fido | fr30 | frv | ft32 | fx80 \
1202 | h8300 | h8500 \
1203 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
1204 | hexagon \
1205 | i370 | i*86 | i860 | i960 | ia16 | ia64 \
1206 | ip2k | iq2000 \
1207 | k1om \
1208 | le32 | le64 \
1209 | lm32 \
1210 | loongarch32 | loongarch64 | loongarchx32 \
1211 | m32c | m32r | m32rle \
1212 | m5200 | m68000 | m680[012346]0 | m68360 | m683?2 | m68k \
1213 | m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x \
1214 | m88110 | m88k | maxq | mb | mcore | mep | metag \
1215 | microblaze | microblazeel \
1216 | mips | mipsbe | mipseb | mipsel | mipsle \
1217 | mips16 \
1218 | mips64 | mips64eb | mips64el \
1219 | mips64octeon | mips64octeonel \
1220 | mips64orion | mips64orionel \
1221 | mips64r5900 | mips64r5900el \
1222 | mips64vr | mips64vrel \
1223 | mips64vr4100 | mips64vr4100el \
1224 | mips64vr4300 | mips64vr4300el \
1225 | mips64vr5000 | mips64vr5000el \
1226 | mips64vr5900 | mips64vr5900el \
1227 | mipsisa32 | mipsisa32el \
1228 | mipsisa32r2 | mipsisa32r2el \
1229 | mipsisa32r3 | mipsisa32r3el \
1230 | mipsisa32r5 | mipsisa32r5el \
1231 | mipsisa32r6 | mipsisa32r6el \
1232 | mipsisa64 | mipsisa64el \
1233 | mipsisa64r2 | mipsisa64r2el \
1234 | mipsisa64r3 | mipsisa64r3el \
1235 | mipsisa64r5 | mipsisa64r5el \
1236 | mipsisa64r6 | mipsisa64r6el \
1237 | mipsisa64sb1 | mipsisa64sb1el \
1238 | mipsisa64sr71k | mipsisa64sr71kel \
1239 | mipsr5900 | mipsr5900el \
1240 | mipstx39 | mipstx39el \
1241 | mmix \
1242 | mn10200 | mn10300 \
1243 | moxie \
1244 | mt \
1245 | msp430 \
1246 | nds32 | nds32le | nds32be \
1247 | nfp \
1248 | nios | nios2 | nios2eb | nios2el \
1249 | none | np1 | ns16k | ns32k | nvptx \
1250 | open8 \
1251 | or1k* \
1252 | or32 \
1253 | orion \
1254 | picochip \
1255 | pdp10 | pdp11 | pj | pjl | pn | power \
1256 | powerpc | powerpc64 | powerpc64le | powerpcle | powerpcspe \
1257 | pru \
1258 | pyramid \
1259 | riscv | riscv32 | riscv32be | riscv64 | riscv64be \
1260 | rl78 | romp | rs6000 | rx \
1261 | s390 | s390x \
1262 | score \
1263 | sh | shl \
1264 | sh[1234] | sh[24]a | sh[24]ae[lb] | sh[23]e | she[lb] | sh[lb]e \
1265 | sh[1234]e[lb] | sh[12345][lb]e | sh[23]ele | sh64 | sh64le \
1266 | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet \
1267 | sparclite \
1268 | sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
1269 | spu \
1270 | tahoe \
1271 | thumbv7* \
1272 | tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \
1273 | tron \
1274 | ubicom32 \
1275 | v70 | v850 | v850e | v850e1 | v850es | v850e2 | v850e2v3 \
1276 | vax \
1277 | visium \
1278 | w65 \
The diff has been truncated for viewing.

Subscribers

People subscribed via source and target branches