Commit 169ef206 authored by Vladimir Bashkirtsev's avatar Vladimir Bashkirtsev

Updated mtdev to 1.1.6

parent fbe0baac
all: all:
tar xf mtdev-1.1.5.tar.bz2 tar xf mtdev-1.1.6.tar.bz2
patch -Np1 -d mtdev-1.1.5 < mtdev-1.1.5-aarch64.patch patch -Np1 -d mtdev-1.1.6 < mtdev-1.1.6-aarch64.patch
cd mtdev-1.1.5 && ./configure --prefix=/usr --disable-static cd mtdev-1.1.6 && ./configure --prefix=/usr --disable-static
$(MAKE) -C mtdev-1.1.5 $(MAKE) -C mtdev-1.1.6
$(MAKE) -C mtdev-1.1.5 check $(MAKE) -C mtdev-1.1.6 check
$(MAKE) -C mtdev-1.1.5 install $(MAKE) -C mtdev-1.1.6 install
rm -rf mtdev-1.1.5 rm -rf mtdev-1.1.6
diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/config.guess diff -uNr mtdev-1.1.6/config-aux/config.guess mtdev-1.1.6-aarch64/config-aux/config.guess
--- mtdev-1.1.5/config-aux/config.guess 2012-02-20 15:04:39.000000000 +0000 --- mtdev-1.1.6/config-aux/config.guess 2010-08-02 17:33:23.000000000 +0930
+++ mtdev-1.1.5-aarch64/config-aux/config.guess 2018-03-20 05:19:24.627952746 +0000 +++ mtdev-1.1.6-aarch64/config-aux/config.guess 2021-07-28 12:18:41.539414197 +0930
@@ -1,14 +1,12 @@ @@ -1,14 +1,12 @@
#! /bin/sh #! /bin/sh
# Attempt to guess a canonical system name. # Attempt to guess a canonical system name.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-# 2011, 2012 Free Software Foundation, Inc. -# Free Software Foundation, Inc.
+# Copyright 1992-2018 Free Software Foundation, Inc. +# Copyright 1992-2018 Free Software Foundation, Inc.
-timestamp='2012-01-01' -timestamp='2009-12-30'
+timestamp='2018-03-08' +timestamp='2018-03-08'
# This file is free software; you can redistribute it and/or modify it # This file is free software; you can redistribute it and/or modify it
...@@ -69,8 +69,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -69,8 +69,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
Originally written by Per Bothner. Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
-Free Software Foundation, Inc. -Software Foundation, Inc.
+Copyright 1992-2018 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
...@@ -87,7 +87,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -87,7 +87,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
CC_FOR_BUILD="$c"; break ; CC_FOR_BUILD="$c"; break ;
fi ; fi ;
done ; done ;
@@ -140,9 +132,37 @@ @@ -140,12 +132,40 @@
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
...@@ -125,7 +125,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -125,7 +125,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in +case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
*:NetBSD:*:*) *:NetBSD:*:*)
# NetBSD (nbsd) targets should (where applicable) match one or # NetBSD (nbsd) targets should (where applicable) match one or
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
# switched to ELF, *-*-netbsd* would select the old
# object file format. This provides both forward
@@ -155,21 +175,31 @@ @@ -155,21 +175,31 @@
# Note: NetBSD doesn't particularly care about the vendor # Note: NetBSD doesn't particularly care about the vendor
# portion of the name. We always set it to "unknown". # portion of the name. We always set it to "unknown".
...@@ -165,19 +169,23 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -165,19 +169,23 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ELF__ | grep -q __ELF__
then then
@@ -184,40 +214,67 @@ @@ -181,7 +211,14 @@
os=netbsd fi
;; ;;
esac *)
- os=netbsd
+ os=netbsd
+ ;;
+ esac
+ # Determine ABI tags. + # Determine ABI tags.
+ case "$UNAME_MACHINE_ARCH" in + case "$UNAME_MACHINE_ARCH" in
+ earm*) + earm*)
+ expr='s/^earmv[0-9]/-eabi/;s/eb$//' + expr='s/^earmv[0-9]/-eabi/;s/eb$//'
+ abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"`
+ ;; ;;
+ esac esac
# The OS release # The OS release
# Debian GNU/NetBSD machines have a different userland, and @@ -189,42 +226,62 @@
# thus, need a distinct triplet. However, they do not need # thus, need a distinct triplet. However, they do not need
# kernel version information, so it can be replaced with a # kernel version information, so it can be replaced with a
# suitable tag, in the style of linux-gnu. # suitable tag, in the style of linux-gnu.
...@@ -241,7 +249,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -241,7 +249,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
alpha:OSF1:*:*) alpha:OSF1:*:*)
case $UNAME_RELEASE in case $UNAME_RELEASE in
*4.0) *4.0)
@@ -234,63 +291,54 @@ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
;;
*5.*)
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
;;
esac
# According to Compaq, /usr/sbin/psrinfo has been available on
@@ -234,60 +291,54 @@
ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
case "$ALPHA_CPU_TYPE" in case "$ALPHA_CPU_TYPE" in
"EV4 (21064)") "EV4 (21064)")
...@@ -296,11 +312,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -296,11 +312,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
# A Xn.n version is an unreleased experimental baselevel. # A Xn.n version is an unreleased experimental baselevel.
# 1.2 uses "1.2" for uname -r. # 1.2 uses "1.2" for uname -r.
- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
+ echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" - exit ;;
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
exitcode=$?
trap '' 0
exit $exitcode ;;
- Alpha\ *:Windows_NT*:*) - Alpha\ *:Windows_NT*:*)
- # How do we know it's Interix rather than the generic POSIX subsystem? - # How do we know it's Interix rather than the generic POSIX subsystem?
- # Should we change UNAME_MACHINE based on the output of uname instead - # Should we change UNAME_MACHINE based on the output of uname instead
...@@ -310,6 +322,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -310,6 +322,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- 21064:Windows_NT:50:3) - 21064:Windows_NT:50:3)
- echo alpha-dec-winnt3.5 - echo alpha-dec-winnt3.5
- exit ;; - exit ;;
+ echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`"
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
+ exitcode=$?
+ trap '' 0
+ exit $exitcode ;;
Amiga*:UNIX_System_V:4.0:*) Amiga*:UNIX_System_V:4.0:*)
echo m68k-unknown-sysv4 echo m68k-unknown-sysv4
exit ;; exit ;;
...@@ -323,8 +340,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -323,8 +340,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
*:OS/390:*:*) *:OS/390:*:*)
echo i370-ibm-openedition echo i370-ibm-openedition
@@ -302,9 +350,9 @@ @@ -296,12 +347,12 @@
echo powerpc-ibm-os400 echo s390-ibm-zvmoe
exit ;;
*:OS400:*:*)
- echo powerpc-ibm-os400
+ echo powerpc-ibm-os400
exit ;; exit ;;
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
- echo arm-acorn-riscix${UNAME_RELEASE} - echo arm-acorn-riscix${UNAME_RELEASE}
...@@ -335,7 +356,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -335,7 +356,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
echo arm-unknown-riscos echo arm-unknown-riscos
exit ;; exit ;;
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
@@ -329,38 +377,38 @@ @@ -326,38 +377,38 @@
sparc) echo sparc-icl-nx7; exit ;; sparc) echo sparc-icl-nx7; exit ;;
esac ;; esac ;;
s390x:SunOS:*:*) s390x:SunOS:*:*)
...@@ -385,7 +406,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -385,7 +406,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
sun4*:SunOS:*:*) sun4*:SunOS:*:*)
case "`/usr/bin/arch -k`" in case "`/usr/bin/arch -k`" in
@@ -369,25 +417,25 @@ @@ -366,25 +417,25 @@
;; ;;
esac esac
# Japanese Language versions have a version number like `4.1.3-JL'. # Japanese Language versions have a version number like `4.1.3-JL'.
...@@ -417,7 +438,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -417,7 +438,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
# The situation for MiNT is a little confusing. The machine name # The situation for MiNT is a little confusing. The machine name
# can be virtually everything (everything which is not # can be virtually everything (everything which is not
@@ -398,44 +446,44 @@ @@ -395,44 +446,44 @@
# MiNT. But MiNT is downward compatible to TOS, so this should # MiNT. But MiNT is downward compatible to TOS, so this should
# be no problem. # be no problem.
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
...@@ -426,24 +447,28 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -426,24 +447,28 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE} - echo m68k-atari-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-atari-mint"$UNAME_RELEASE" + echo m68k-atari-mint"$UNAME_RELEASE"
exit ;; + exit ;;
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
- echo m68k-atari-mint${UNAME_RELEASE} - echo m68k-atari-mint${UNAME_RELEASE}
+ echo m68k-atari-mint"$UNAME_RELEASE" + echo m68k-atari-mint"$UNAME_RELEASE"
exit ;; exit ;;
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
- echo m68k-milan-mint${UNAME_RELEASE} - echo m68k-milan-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-milan-mint"$UNAME_RELEASE" + echo m68k-milan-mint"$UNAME_RELEASE"
exit ;; + exit ;;
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
- echo m68k-hades-mint${UNAME_RELEASE} - echo m68k-hades-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-hades-mint"$UNAME_RELEASE" + echo m68k-hades-mint"$UNAME_RELEASE"
exit ;; + exit ;;
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
- echo m68k-unknown-mint${UNAME_RELEASE} - echo m68k-unknown-mint${UNAME_RELEASE}
- exit ;;
+ echo m68k-unknown-mint"$UNAME_RELEASE" + echo m68k-unknown-mint"$UNAME_RELEASE"
exit ;; + exit ;;
m68k:machten:*:*) m68k:machten:*:*)
- echo m68k-apple-machten${UNAME_RELEASE} - echo m68k-apple-machten${UNAME_RELEASE}
+ echo m68k-apple-machten"$UNAME_RELEASE" + echo m68k-apple-machten"$UNAME_RELEASE"
...@@ -475,7 +500,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -475,7 +500,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
#ifdef __cplusplus #ifdef __cplusplus
#include <stdio.h> /* for printf() prototype */ #include <stdio.h> /* for printf() prototype */
int main (int argc, char *argv[]) { int main (int argc, char *argv[]) {
@@ -444,23 +492,23 @@ @@ -441,23 +492,23 @@
#endif #endif
#if defined (host_mips) && defined (MIPSEB) #if defined (host_mips) && defined (MIPSEB)
#if defined (SYSTYPE_SYSV) #if defined (SYSTYPE_SYSV)
...@@ -506,11 +531,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -506,11 +531,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
Motorola:PowerMAX_OS:*:*) Motorola:PowerMAX_OS:*:*)
echo powerpc-motorola-powermax echo powerpc-motorola-powermax
@@ -486,17 +534,17 @@ @@ -481,21 +532,21 @@
echo m88k-motorola-sysv3
exit ;;
AViiON:dgux:*:*) AViiON:dgux:*:*)
# DG/UX returns AViiON for all architectures - # DG/UX returns AViiON for all architectures
UNAME_PROCESSOR=`/usr/bin/uname -p` - UNAME_PROCESSOR=`/usr/bin/uname -p`
- if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
+ # DG/UX returns AViiON for all architectures
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] + if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ]
then then
- if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
...@@ -528,9 +557,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -528,9 +557,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- echo i586-dg-dgux${UNAME_RELEASE} - echo i586-dg-dgux${UNAME_RELEASE}
+ echo i586-dg-dgux"$UNAME_RELEASE" + echo i586-dg-dgux"$UNAME_RELEASE"
fi fi
exit ;; - exit ;;
+ exit ;;
M88*:DolphinOS:*:*) # DolphinOS (SVR3) M88*:DolphinOS:*:*) # DolphinOS (SVR3)
@@ -513,7 +561,7 @@ echo m88k-dolphin-sysv3
exit ;;
@@ -510,7 +561,7 @@
echo m68k-tektronix-bsd echo m68k-tektronix-bsd
exit ;; exit ;;
*:IRIX*:*:*) *:IRIX*:*:*)
...@@ -539,7 +571,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -539,7 +571,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
@@ -525,14 +573,14 @@ @@ -522,14 +573,14 @@
if [ -x /usr/bin/oslevel ] ; then if [ -x /usr/bin/oslevel ] ; then
IBM_REV=`/usr/bin/oslevel` IBM_REV=`/usr/bin/oslevel`
else else
...@@ -558,7 +590,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -558,7 +590,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
#include <sys/systemcfg.h> #include <sys/systemcfg.h>
main() main()
@@ -543,7 +591,7 @@ @@ -540,7 +591,7 @@
exit(0); exit(0);
} }
EOF EOF
...@@ -567,9 +599,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -567,9 +599,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
then then
echo "$SYSTEM_NAME" echo "$SYSTEM_NAME"
else else
@@ -557,26 +605,27 @@ @@ -552,28 +603,29 @@
echo rs6000-ibm-aix3.2
fi
exit ;; exit ;;
*:AIX:*:[4567]) - *:AIX:*:[456])
+ *:AIX:*:[4567])
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
- if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
+ if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then + if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
...@@ -602,7 +637,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -602,7 +637,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; # report: romp-ibm BSD 4.3 exit ;; # report: romp-ibm BSD 4.3
*:BOSX:*:*) *:BOSX:*:*)
echo rs6000-bull-bosx echo rs6000-bull-bosx
@@ -591,28 +640,28 @@ @@ -588,67 +640,67 @@
echo m68k-hp-bsd4.4 echo m68k-hp-bsd4.4
exit ;; exit ;;
9000/[34678]??:HP-UX:*:*) 9000/[34678]??:HP-UX:*:*)
...@@ -617,37 +652,97 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -617,37 +652,97 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
9000/[678][0-9][0-9]) 9000/[678][0-9][0-9])
if [ -x /usr/bin/getconf ]; then if [ -x /usr/bin/getconf ]; then
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
- case "${sc_cpu_version}" in - case "${sc_cpu_version}" in
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
+ case "$sc_cpu_version" in - 532) # CPU_PA_RISC2_0
+ 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
532) # CPU_PA_RISC2_0
- case "${sc_kernel_bits}" in - case "${sc_kernel_bits}" in
- 32) HP_ARCH="hppa2.0n" ;; - 32) HP_ARCH="hppa2.0n" ;;
- 64) HP_ARCH="hppa2.0w" ;; - 64) HP_ARCH="hppa2.0w" ;;
- '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
- esac ;;
- esac
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
+ case "$sc_cpu_version" in
+ 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
+ 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
+ 532) # CPU_PA_RISC2_0
+ case "$sc_kernel_bits" in + case "$sc_kernel_bits" in
+ 32) HP_ARCH=hppa2.0n ;; + 32) HP_ARCH=hppa2.0n ;;
+ 64) HP_ARCH=hppa2.0w ;; + 64) HP_ARCH=hppa2.0w ;;
+ '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 + '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
esac ;; + esac ;;
esac + esac
fi fi
- if [ "${HP_ARCH}" = "" ]; then - if [ "${HP_ARCH}" = "" ]; then
- eval $set_cc_for_build - eval $set_cc_for_build
- sed 's/^ //' << EOF >$dummy.c - sed 's/^ //' << EOF >$dummy.c
-
- #define _HPUX_SOURCE
- #include <stdlib.h>
- #include <unistd.h>
-
- int main ()
- {
- #if defined(_SC_KERNEL_BITS)
- long bits = sysconf(_SC_KERNEL_BITS);
- #endif
- long cpu = sysconf (_SC_CPU_VERSION);
-
- switch (cpu)
- {
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
- case CPU_PA_RISC2_0:
- #if defined(_SC_KERNEL_BITS)
- switch (bits)
- {
- case 64: puts ("hppa2.0w"); break;
- case 32: puts ("hppa2.0n"); break;
- default: puts ("hppa2.0"); break;
- } break;
- #else /* !defined(_SC_KERNEL_BITS) */
- puts ("hppa2.0"); break;
- #endif
- default: puts ("hppa1.0"); break;
- }
- exit (0);
- }
+ if [ "$HP_ARCH" = "" ]; then + if [ "$HP_ARCH" = "" ]; then
+ eval "$set_cc_for_build" + eval "$set_cc_for_build"
+ sed 's/^ //' << EOF > "$dummy.c" + sed 's/^ //' << EOF > "$dummy.c"
+
#define _HPUX_SOURCE + #define _HPUX_SOURCE
#include <stdlib.h> + #include <stdlib.h>
@@ -645,13 +694,13 @@ + #include <unistd.h>
exit (0); +
} + int main ()
+ {
+ #if defined(_SC_KERNEL_BITS)
+ long bits = sysconf(_SC_KERNEL_BITS);
+ #endif
+ long cpu = sysconf (_SC_CPU_VERSION);
+
+ switch (cpu)
+ {
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
+ case CPU_PA_RISC2_0:
+ #if defined(_SC_KERNEL_BITS)
+ switch (bits)
+ {
+ case 64: puts ("hppa2.0w"); break;
+ case 32: puts ("hppa2.0n"); break;
+ default: puts ("hppa2.0"); break;
+ } break;
+ #else /* !defined(_SC_KERNEL_BITS) */
+ puts ("hppa2.0"); break;
+ #endif
+ default: puts ("hppa1.0"); break;
+ }
+ exit (0);
+ }
EOF EOF
- (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
+ (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"`
...@@ -662,7 +757,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -662,7 +757,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -662,23 +711,23 @@ @@ -659,23 +711,23 @@
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
# => hppa64-hp-hpux11.23 # => hppa64-hp-hpux11.23
...@@ -694,7 +789,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -694,7 +789,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
#include <unistd.h> #include <unistd.h>
int int
main () main ()
@@ -703,11 +752,11 @@ @@ -700,11 +752,11 @@
exit (0); exit (0);
} }
EOF EOF
...@@ -708,7 +803,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -708,7 +803,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
echo hppa1.1-hp-bsd echo hppa1.1-hp-bsd
exit ;; exit ;;
9000/8??:4.3bsd:*:*) 9000/8??:4.3bsd:*:*)
@@ -716,7 +765,7 @@ @@ -713,7 +765,7 @@
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
echo hppa1.0-hp-mpeix echo hppa1.0-hp-mpeix
exit ;; exit ;;
...@@ -717,7 +812,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -717,7 +812,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
echo hppa1.1-hp-osf echo hppa1.1-hp-osf
exit ;; exit ;;
hp8??:OSF1:*:*) hp8??:OSF1:*:*)
@@ -724,9 +773,9 @@ @@ -721,9 +773,9 @@
exit ;; exit ;;
i*86:OSF1:*:*) i*86:OSF1:*:*)
if [ -x /usr/sbin/sysversion ] ; then if [ -x /usr/sbin/sysversion ] ; then
...@@ -729,9 +824,31 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -729,9 +824,31 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
fi fi
exit ;; exit ;;
parisc*:Lites*:*:*) parisc*:Lites*:*:*)
@@ -751,117 +800,109 @@ @@ -731,132 +783,126 @@
echo c4-convex-bsd
exit ;; exit ;;
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
echo c1-convex-bsd
- exit ;;
+ exit ;;
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
if getsysinfo -f scalar_acc
then echo c32-convex-bsd
else echo c2-convex-bsd
fi
- exit ;;
+ exit ;;
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
echo c34-convex-bsd
- exit ;;
+ exit ;;
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
echo c38-convex-bsd
- exit ;;
+ exit ;;
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
echo c4-convex-bsd
- exit ;;
+ exit ;;
CRAY*Y-MP:*:*:*) CRAY*Y-MP:*:*:*)
- echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
+ echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' + echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
...@@ -763,17 +880,20 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -763,17 +880,20 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
- exit ;;
+ FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` + FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`
+ FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
+ FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'`
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;; + exit ;;
5000:UNIX_System_V:4.*:*) 5000:UNIX_System_V:4.*:*)
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
+ FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` + FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'`
+ FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` + FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'`
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
exit ;; exit ;;
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
- echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
...@@ -788,13 +908,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -788,13 +908,15 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" + echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
exit ;; exit ;;
*:FreeBSD:*:*) *:FreeBSD:*:*)
UNAME_PROCESSOR=`/usr/bin/uname -p` - case ${UNAME_MACHINE} in
- case ${UNAME_PROCESSOR} in - pc98)
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
+ case "$UNAME_PROCESSOR" in + case "$UNAME_PROCESSOR" in
amd64) amd64)
- echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
- *) - *)
- echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
+ UNAME_PROCESSOR=x86_64 ;; + UNAME_PROCESSOR=x86_64 ;;
+ i386) + i386)
+ UNAME_PROCESSOR=i586 ;; + UNAME_PROCESSOR=i586 ;;
...@@ -804,15 +926,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -804,15 +926,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
i*:CYGWIN*:*) i*:CYGWIN*:*)
- echo ${UNAME_MACHINE}-pc-cygwin - echo ${UNAME_MACHINE}-pc-cygwin
+ echo "$UNAME_MACHINE"-pc-cygwin + echo "$UNAME_MACHINE"-pc-cygwin
exit ;; + exit ;;
- *:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-mingw32
+ *:MINGW64*:*) + *:MINGW64*:*)
+ echo "$UNAME_MACHINE"-pc-mingw64 + echo "$UNAME_MACHINE"-pc-mingw64
exit ;; exit ;;
- i*:MSYS*:*) *:MINGW*:*)
- echo ${UNAME_MACHINE}-pc-msys - echo ${UNAME_MACHINE}-pc-mingw32
+ *:MINGW*:*)
+ echo "$UNAME_MACHINE"-pc-mingw32 + echo "$UNAME_MACHINE"-pc-mingw32
exit ;; exit ;;
- i*:windows32*:*) - i*:windows32*:*)
...@@ -890,9 +1009,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -890,9 +1009,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
alpha:Linux:*:*) alpha:Linux:*:*)
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
@@ -874,63 +915,64 @@ @@ -867,56 +913,66 @@
EV6) UNAME_MACHINE=alphaev6 ;;
EV67) UNAME_MACHINE=alphaev67 ;;
EV68*) UNAME_MACHINE=alphaev68 ;; EV68*) UNAME_MACHINE=alphaev68 ;;
esac - esac
+ esac
objdump --private-headers /bin/sh | grep -q ld.so.1 objdump --private-headers /bin/sh | grep -q ld.so.1
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
...@@ -911,15 +1033,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -911,15 +1033,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- echo ${UNAME_MACHINE}-unknown-linux-gnu - echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
else else
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
| grep -q __ARM_PCS_VFP
then
- echo ${UNAME_MACHINE}-unknown-linux-gnueabi - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
+ | grep -q __ARM_PCS_VFP
+ then
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
else + else
- echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
fi + fi
fi fi
exit ;; exit ;;
avr32*:Linux:*:*) avr32*:Linux:*:*)
...@@ -927,22 +1048,21 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -927,22 +1048,21 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; exit ;;
cris:Linux:*:*) cris:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-gnu - echo cris-axis-linux-gnu
+ echo "$UNAME_MACHINE"-axis-linux-"$LIBC" + echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
exit ;; exit ;;
crisv32:Linux:*:*) crisv32:Linux:*:*)
- echo ${UNAME_MACHINE}-axis-linux-gnu - echo crisv32-axis-linux-gnu
+ echo "$UNAME_MACHINE"-axis-linux-"$LIBC" + echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
+ exit ;; + exit ;;
+ e2k:Linux:*:*) + e2k:Linux:*:*)
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; exit ;;
frv:Linux:*:*) frv:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu - echo frv-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; + exit ;;
hexagon:Linux:*:*) + hexagon:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; exit ;;
i*86:Linux:*:*) i*86:Linux:*:*)
...@@ -980,7 +1100,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -980,7 +1100,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
#undef CPU #undef CPU
#undef ${UNAME_MACHINE} #undef ${UNAME_MACHINE}
#undef ${UNAME_MACHINE}el #undef ${UNAME_MACHINE}el
@@ -944,55 +986,70 @@ @@ -930,52 +986,70 @@
#endif #endif
#endif #endif
EOF EOF
...@@ -990,7 +1110,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -990,7 +1110,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } + test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; }
;; ;;
- or32:Linux:*:*) - or32:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu - echo or32-unknown-linux-gnu
+ mips64el:Linux:*:*) + mips64el:Linux:*:*)
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
+ exit ;; + exit ;;
...@@ -1051,9 +1171,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1051,9 +1171,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
sparc:Linux:*:* | sparc64:Linux:*:*) sparc:Linux:*:* | sparc64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu - echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; + exit ;;
tile*:Linux:*:*) + tile*:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
exit ;; exit ;;
vax:Linux:*:*) vax:Linux:*:*)
...@@ -1061,7 +1180,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1061,7 +1180,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ echo "$UNAME_MACHINE"-dec-linux-"$LIBC" + echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
exit ;; exit ;;
x86_64:Linux:*:*) x86_64:Linux:*:*)
- echo ${UNAME_MACHINE}-unknown-linux-gnu - echo x86_64-unknown-linux-gnu
+ echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
exit ;; exit ;;
xtensa*:Linux:*:*) xtensa*:Linux:*:*)
...@@ -1070,11 +1189,20 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1070,11 +1189,20 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
i*86:DYNIX/ptx:4*:*) i*86:DYNIX/ptx:4*:*)
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
@@ -1006,34 +1063,34 @@ @@ -984,54 +1058,54 @@
# I am not positive that other SVR4 systems won't match this, echo i386-sequent-sysv4
exit ;;
i*86:UNIX_SV:4.2MP:2.*)
- # Unixware is an offshoot of SVR4, but it has its own version
- # number series starting with 2...
- # I am not positive that other SVR4 systems won't match this,
+ # Unixware is an offshoot of SVR4, but it has its own version
+ # number series starting with 2...
+ # I am not positive that other SVR4 systems won't match this,
# I just have to hope. -- rms. # I just have to hope. -- rms.
# Use sysv4.2uw... so that sysv4* matches it. - # Use sysv4.2uw... so that sysv4* matches it.
- echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
+ # Use sysv4.2uw... so that sysv4* matches it.
+ echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" + echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
exit ;; exit ;;
i*86:OS/2:*:*) i*86:OS/2:*:*)
...@@ -1116,7 +1244,10 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1116,7 +1244,10 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
fi fi
exit ;; exit ;;
i*86:*:5:[678]*) i*86:*:5:[678]*)
@@ -1043,12 +1100,12 @@ - # UnixWare 7.x, OpenUNIX and OpenServer 6.
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
case `/bin/uname -X | grep "^Machine"` in
*486*) UNAME_MACHINE=i486 ;;
*Pentium) UNAME_MACHINE=i586 ;; *Pentium) UNAME_MACHINE=i586 ;;
*Pent*|*Celeron) UNAME_MACHINE=i686 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
esac esac
...@@ -1131,7 +1262,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1131,7 +1262,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
elif /bin/uname -X 2>/dev/null >/dev/null ; then elif /bin/uname -X 2>/dev/null >/dev/null ; then
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
@@ -1058,9 +1115,9 @@ @@ -1041,20 +1115,20 @@
&& UNAME_MACHINE=i686 && UNAME_MACHINE=i686
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
&& UNAME_MACHINE=i686 && UNAME_MACHINE=i686
...@@ -1143,16 +1274,22 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1143,16 +1274,22 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
fi fi
exit ;; exit ;;
pc:*:*:*) pc:*:*:*)
@@ -1068,7 +1125,7 @@ # Left here for compatibility:
# uname -m prints for DJGPP always 'pc', but it prints nothing about - # uname -m prints for DJGPP always 'pc', but it prints nothing about
# the processor, so we play safe by assuming i586. - # the processor, so we play safe by assuming i586.
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
+ # the processor, so we play safe by assuming i586.
# Note: whatever this is, it MUST be the same as what config.sub # Note: whatever this is, it MUST be the same as what config.sub
- # prints for the "djgpp" host, or else GDB configury will decide that - # prints for the "djgpp" host, or else GDB configury will decide that
+ # prints for the "djgpp" host, or else GDB configure will decide that + # prints for the "djgpp" host, or else GDB configure will decide that
# this is a cross-build. # this is a cross-build.
echo i586-pc-msdosdjgpp echo i586-pc-msdosdjgpp
- exit ;;
+ exit ;;
Intel:Mach:3*:*)
echo i386-pc-mach3
exit ;; exit ;;
@@ -1080,9 +1137,9 @@ @@ -1063,9 +1137,9 @@
exit ;; exit ;;
i860:*:4.*:*) # i860-SVR4 i860:*:4.*:*) # i860-SVR4
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
...@@ -1164,7 +1301,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1164,7 +1301,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
fi fi
exit ;; exit ;;
mini*:CTIX:SYS*5:*) mini*:CTIX:SYS*5:*)
@@ -1102,9 +1159,9 @@ @@ -1085,39 +1159,39 @@
test -r /etc/.relid \ test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
...@@ -1174,9 +1311,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1174,9 +1311,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
+ && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; + && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \ - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
&& { echo i486-ncr-sysv4; exit; } ;; - && { echo i486-ncr-sysv4; exit; } ;;
@@ -1113,28 +1170,28 @@ + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
+ && { echo i486-ncr-sysv4; exit; } ;;
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
OS_REL='.3'
test -r /etc/.relid \ test -r /etc/.relid \
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
...@@ -1213,7 +1353,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1213,7 +1353,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
RM*:ReliantUNIX-*:*:*) RM*:ReliantUNIX-*:*:*)
echo mips-sni-sysv4 echo mips-sni-sysv4
@@ -1145,7 +1202,7 @@ @@ -1128,15 +1202,15 @@
*:SINIX-*:*:*) *:SINIX-*:*:*)
if uname -p 2>/dev/null >/dev/null ; then if uname -p 2>/dev/null >/dev/null ; then
UNAME_MACHINE=`(uname -p) 2>/dev/null` UNAME_MACHINE=`(uname -p) 2>/dev/null`
...@@ -1222,7 +1362,19 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1222,7 +1362,19 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
else else
echo ns32k-sni-sysv echo ns32k-sni-sysv
fi fi
@@ -1165,23 +1222,23 @@ exit ;;
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
- # says <Richard.M.Bartel@ccMail.Census.GOV>
- echo i586-unisys-sysv4
- exit ;;
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
+ echo i586-unisys-sysv4
+ exit ;;
*:UNIX_System_V:4*:FTX*)
# From Gerald Hewes <hewes@openmarket.com>.
# How about differentiating between stratus architectures? -djm
@@ -1148,25 +1222,25 @@
exit ;; exit ;;
i*86:VOS:*:*) i*86:VOS:*:*)
# From Paul.Green@stratus.com. # From Paul.Green@stratus.com.
...@@ -1248,9 +1400,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1248,9 +1400,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
- echo mips-unknown-sysv${UNAME_RELEASE} - echo mips-unknown-sysv${UNAME_RELEASE}
+ echo mips-unknown-sysv"$UNAME_RELEASE" + echo mips-unknown-sysv"$UNAME_RELEASE"
fi fi
exit ;; - exit ;;
+ exit ;;
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
@@ -1196,66 +1253,97 @@ echo powerpc-be-beos
exit ;;
@@ -1179,63 +1253,97 @@
BePC:Haiku:*:*) # Haiku running on Intel PC compatible. BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
echo i586-pc-haiku echo i586-pc-haiku
exit ;; exit ;;
...@@ -1355,8 +1510,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1355,8 +1510,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
*:QNX:*:4*) *:QNX:*:4*)
echo i386-pc-qnx echo i386-pc-qnx
exit ;; exit ;;
- NEO-?:NONSTOP_KERNEL:*:*) - NSE-?:NONSTOP_KERNEL:*:*)
- echo neo-tandem-nsk${UNAME_RELEASE} - echo nse-tandem-nsk${UNAME_RELEASE}
+ NEO-*:NONSTOP_KERNEL:*:*) + NEO-*:NONSTOP_KERNEL:*:*)
+ echo neo-tandem-nsk"$UNAME_RELEASE" + echo neo-tandem-nsk"$UNAME_RELEASE"
+ exit ;; + exit ;;
...@@ -1366,19 +1521,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1366,19 +1521,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ NSR-*:NONSTOP_KERNEL:*:*) + NSR-*:NONSTOP_KERNEL:*:*)
+ echo nsr-tandem-nsk"$UNAME_RELEASE" + echo nsr-tandem-nsk"$UNAME_RELEASE"
exit ;; exit ;;
- NSE-?:NONSTOP_KERNEL:*:*)
- echo nse-tandem-nsk${UNAME_RELEASE}
+ NSV-*:NONSTOP_KERNEL:*:*)
+ echo nsv-tandem-nsk"$UNAME_RELEASE"
exit ;;
- NSR-?:NONSTOP_KERNEL:*:*) - NSR-?:NONSTOP_KERNEL:*:*)
- echo nsr-tandem-nsk${UNAME_RELEASE} - echo nsr-tandem-nsk${UNAME_RELEASE}
+ NSV-*:NONSTOP_KERNEL:*:*)
+ echo nsv-tandem-nsk"$UNAME_RELEASE"
+ exit ;;
+ NSX-*:NONSTOP_KERNEL:*:*) + NSX-*:NONSTOP_KERNEL:*:*)
+ echo nsx-tandem-nsk"$UNAME_RELEASE" + echo nsx-tandem-nsk"$UNAME_RELEASE"
exit ;; exit ;;
*:NonStop-UX:*:*) *:NonStop-UX:*:*)
echo mips-compaq-nonstopux echo mips-compaq-nonstopux
@@ -1264,18 +1352,18 @@ @@ -1244,18 +1352,18 @@
echo bs2000-siemens-sysv echo bs2000-siemens-sysv
exit ;; exit ;;
DS/*:UNIX_System_V:*:*) DS/*:UNIX_System_V:*:*)
...@@ -1400,7 +1553,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1400,7 +1553,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
exit ;; exit ;;
*:TOPS-10:*:*) *:TOPS-10:*:*)
echo pdp10-unknown-tops10 echo pdp10-unknown-tops10
@@ -1296,14 +1384,14 @@ @@ -1276,14 +1384,14 @@
echo pdp10-unknown-its echo pdp10-unknown-its
exit ;; exit ;;
SEI:*:*:SEIUX) SEI:*:*:SEIUX)
...@@ -1412,13 +1565,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1412,13 +1565,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
+ echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`"
exit ;; exit ;;
*:*VMS:*:*) *:*VMS:*:*)
UNAME_MACHINE=`(uname -p) 2>/dev/null` - UNAME_MACHINE=`(uname -p) 2>/dev/null`
- case "${UNAME_MACHINE}" in - case "${UNAME_MACHINE}" in
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
+ case "$UNAME_MACHINE" in + case "$UNAME_MACHINE" in
A*) echo alpha-dec-vms ; exit ;; A*) echo alpha-dec-vms ; exit ;;
I*) echo ia64-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;;
V*) echo vax-dec-vms ; exit ;; V*) echo vax-dec-vms ; exit ;;
@@ -1312,182 +1400,48 @@ @@ -1292,182 +1400,48 @@
echo i386-pc-xenix echo i386-pc-xenix
exit ;; exit ;;
i*86:skyos:*:*) i*86:skyos:*:*)
...@@ -1472,8 +1626,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1472,8 +1626,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
-#if defined (__arm) && defined (__acorn) && defined (__unix) -#if defined (__arm) && defined (__acorn) && defined (__unix)
- printf ("arm-acorn-riscix\n"); exit (0); - printf ("arm-acorn-riscix\n"); exit (0);
-#endif -#endif
+echo "$0: unable to guess system type" >&2 -
-#if defined (hp300) && !defined (hpux) -#if defined (hp300) && !defined (hpux)
- printf ("m68k-hp-bsd\n"); exit (0); - printf ("m68k-hp-bsd\n"); exit (0);
-#endif -#endif
...@@ -1502,7 +1655,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1502,7 +1655,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
-#endif -#endif
-#endif -#endif
-#endif -#endif
- +echo "$0: unable to guess system type" >&2
-#if defined (__386BSD__) -#if defined (__386BSD__)
- printf ("i386-pc-bsd\n"); exit (0); - printf ("i386-pc-bsd\n"); exit (0);
-#endif -#endif
...@@ -1627,7 +1781,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1627,7 +1781,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
config.guess timestamp = $timestamp config.guess timestamp = $timestamp
@@ -1506,16 +1460,16 @@ @@ -1486,16 +1460,16 @@
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
...@@ -1649,17 +1803,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con ...@@ -1649,17 +1803,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.guess mtdev-1.1.5-aarch64/config-aux/con
# time-stamp-start: "timestamp='" # time-stamp-start: "timestamp='"
# time-stamp-format: "%:y-%02m-%02d" # time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "'" # time-stamp-end: "'"
diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/config.sub diff -uNr mtdev-1.1.6/config-aux/config.sub mtdev-1.1.6-aarch64/config-aux/config.sub
--- mtdev-1.1.5/config-aux/config.sub 2012-02-20 15:04:39.000000000 +0000 --- mtdev-1.1.6/config-aux/config.sub 2010-08-02 17:33:23.000000000 +0930
+++ mtdev-1.1.5-aarch64/config-aux/config.sub 2018-03-20 05:19:24.627952746 +0000 +++ mtdev-1.1.6-aarch64/config-aux/config.sub 2021-07-28 12:18:41.540414200 +0930
@@ -1,38 +1,31 @@ @@ -1,38 +1,31 @@
#! /bin/sh #! /bin/sh
# Configuration validation subroutine script. # Configuration validation subroutine script.
-# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
-# 2011, 2012 Free Software Foundation, Inc. -# Free Software Foundation, Inc.
- -
-timestamp='2012-01-01' -timestamp='2010-01-22'
- -
-# This file is (in principle) common to ALL GNU software. -# This file is (in principle) common to ALL GNU software.
-# The presence of a machine in this file suggests that SOME GNU software -# The presence of a machine in this file suggests that SOME GNU software
...@@ -1736,8 +1890,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1736,8 +1890,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
GNU config.sub ($timestamp) GNU config.sub ($timestamp)
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
-2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 -2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
-Free Software Foundation, Inc. -Software Foundation, Inc.
+Copyright 1992-2018 Free Software Foundation, Inc. +Copyright 1992-2018 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO This is free software; see the source for copying conditions. There is NO
...@@ -1751,17 +1905,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1751,17 +1905,17 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
exit ;; exit ;;
* ) * )
@@ -122,20 +112,24 @@ @@ -122,19 +112,24 @@
# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any). # Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
# Here we must recognize all the valid KERNEL-OS combinations. # Here we must recognize all the valid KERNEL-OS combinations.
-maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
+maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` +maybe_os=`echo "$1" | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
case $maybe_os in case $maybe_os in
nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
- linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
- knetbsd*-gnu* | netbsd*-gnu* | \
- kopensolaris*-gnu* | \ - kopensolaris*-gnu* | \
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
+ knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \ + knetbsd*-gnu* | netbsd*-gnu* | netbsd*-eabi* | \
+ kopensolaris*-gnu* | cloudabi*-eabi* | \ + kopensolaris*-gnu* | cloudabi*-eabi* | \
...@@ -1784,7 +1938,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1784,7 +1938,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
else os=; fi else os=; fi
;; ;;
esac esac
@@ -154,7 +148,7 @@ @@ -153,12 +148,12 @@
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
...@@ -1793,7 +1947,26 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1793,7 +1947,26 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os= os=
basic_machine=$1 basic_machine=$1
;; ;;
@@ -184,53 +178,56 @@ - -bluegene*)
- os=-cnk
+ -bluegene*)
+ os=-cnk
;;
-sim | -cisco | -oki | -wec | -winbond)
os=
@@ -174,62 +169,65 @@
os=-chorusos
basic_machine=$1
;;
- -chorusrdb)
- os=-chorusrdb
+ -chorusrdb)
+ os=-chorusrdb
basic_machine=$1
- ;;
+ ;;
-hiux*)
os=-hiuxwe2
;; ;;
-sco6) -sco6)
os=-sco5v6 os=-sco5v6
...@@ -1864,7 +2037,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1864,7 +2037,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
-psos*) -psos*)
os=-psos os=-psos
@@ -247,24 +244,29 @@ @@ -246,20 +244,29 @@
# Some are omitted here because they have special meanings below. # Some are omitted here because they have special meanings below.
1750a | 580 \ 1750a | 580 \
| a29k \ | a29k \
...@@ -1873,7 +2046,6 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1873,7 +2046,6 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \ | am33_2.0 \
- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
- | be32 | be64 \
+ | arc | arceb \ + | arc | arceb \
+ | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \
+ | avr | avr32 \ + | avr | avr32 \
...@@ -1883,17 +2055,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1883,17 +2055,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
- | c4x | clipper \ - | c4x | clipper \
+ | c4x | c8051 | clipper \ + | c4x | c8051 | clipper \
| d10v | d30v | dlx | dsp16xx \ | d10v | d30v | dlx | dsp16xx \
- | epiphany \
- | fido | fr30 | frv \ - | fido | fr30 | frv \
+ | e2k | epiphany \ + | e2k | epiphany \
+ | fido | fr30 | frv | ft32 \ + | fido | fr30 | frv | ft32 \
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
| hexagon \
- | i370 | i860 | i960 | ia64 \ - | i370 | i860 | i960 | ia64 \
+ | hexagon \
+ | i370 | i860 | i960 | ia16 | ia64 \ + | i370 | i860 | i960 | ia16 | ia64 \
| ip2k | iq2000 \ | ip2k | iq2000 \
+ | k1om \ + | k1om \
| le32 | le64 \ + | le32 | le64 \
| lm32 \ | lm32 \
| m32c | m32r | m32rle | m68000 | m68k | m88k \ | m32c | m32r | m32rle | m68000 | m68k | m88k \
- | maxq | mb | microblaze | mcore | mep | metag \ - | maxq | mb | microblaze | mcore | mep | metag \
...@@ -1901,7 +2072,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1901,7 +2072,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| mips | mipsbe | mipseb | mipsel | mipsle \ | mips | mipsbe | mipseb | mipsel | mipsle \
| mips16 \ | mips16 \
| mips64 | mips64el \ | mips64 | mips64el \
@@ -278,26 +280,30 @@ @@ -273,47 +280,80 @@
| mips64vr5900 | mips64vr5900el \ | mips64vr5900 | mips64vr5900el \
| mipsisa32 | mipsisa32el \ | mipsisa32 | mipsisa32el \
| mipsisa32r2 | mipsisa32r2el \ | mipsisa32r2 | mipsisa32r2el \
...@@ -1917,41 +2088,53 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1917,41 +2088,53 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| moxie \ | moxie \
| mt \ | mt \
| msp430 \ | msp430 \
| nds32 | nds32le | nds32be \
- | nios | nios2 \ - | nios | nios2 \
+ | nds32 | nds32le | nds32be \
+ | nios | nios2 | nios2eb | nios2el \ + | nios | nios2 | nios2eb | nios2el \
| ns16k | ns32k \ | ns16k | ns32k \
- | open8 \
- | or32 \ - | or32 \
- | pdp10 | pdp11 | pj | pjl \ - | pdp10 | pdp11 | pj | pjl \
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
+ | open8 | or1k | or1knd | or32 \ + | open8 | or1k | or1knd | or32 \
+ | pdp10 | pj | pjl \ + | pdp10 | pj | pjl \
| powerpc | powerpc64 | powerpc64le | powerpcle \ + | powerpc | powerpc64 | powerpc64le | powerpcle \
+ | pru \ + | pru \
| pyramid \ | pyramid \
- | rx \
+ | riscv32 | riscv64 \ + | riscv32 | riscv64 \
| rl78 | rx \ + | rl78 | rx \
| score \ | score \
- | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[234]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
| sh64 | sh64le \ | sh64 | sh64le \
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
@@ -305,7 +311,8 @@ - | spu | strongarm \
| tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ - | tahoe | thumb | tic4x | tic80 | tron \
+ | spu \
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
| ubicom32 \ | ubicom32 \
| v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \ - | v850 | v850e \
- | we32k \ - | we32k \
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
+ | visium \ + | visium \
+ | wasm32 \ + | wasm32 \
| x86 | xc16x | xstormy16 | xtensa \ + | x86 | xc16x | xstormy16 | xtensa \
| z8k | z80) | z8k | z80)
basic_machine=$basic_machine-unknown basic_machine=$basic_machine-unknown
@@ -319,11 +326,14 @@
c6x)
basic_machine=tic6x-unknown
;; ;;
- m6811 | m68hc11 | m6812 | m68hc12 | picochip) - m6811 | m68hc11 | m6812 | m68hc12 | picochip)
- # Motorola 68HC11/12.
+ c54x)
+ basic_machine=tic54x-unknown
+ ;;
+ c55x)
+ basic_machine=tic55x-unknown
+ ;;
+ c6x)
+ basic_machine=tic6x-unknown
+ ;;
+ leon|leon[3-9]) + leon|leon[3-9])
+ basic_machine=sparc-$basic_machine + basic_machine=sparc-$basic_machine
+ ;; + ;;
...@@ -1964,19 +2147,27 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1964,19 +2147,27 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
ms1) ms1)
basic_machine=mt-unknown basic_machine=mt-unknown
@@ -332,7 +342,10 @@
strongarm | thumb | xscale)
basic_machine=arm-unknown
;; ;;
-
+ strongarm | thumb | xscale)
+ basic_machine=arm-unknown
+ ;;
+ xgate) + xgate)
+ basic_machine=$basic_machine-unknown + basic_machine=$basic_machine-unknown
+ os=-none + os=-none
+ ;; + ;;
xscaleeb) + xscaleeb)
basic_machine=armeb-unknown + basic_machine=armeb-unknown
;; + ;;
@@ -349,34 +362,38 @@ +
+ xscaleel)
+ basic_machine=armel-unknown
+ ;;
+
# We use `pc' rather than `unknown'
# because (1) that's what they normally are, and
# (2) the word "unknown" tends to confuse beginning users.
@@ -322,31 +362,38 @@
;; ;;
# Object if more than one company name word. # Object if more than one company name word.
*-*-*) *-*-*)
...@@ -1995,10 +2186,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -1995,10 +2186,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \ | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
| avr-* | avr32-* \ | avr-* | avr32-* \
+ | ba-* \ + | ba-* \
| be32-* | be64-* \ + | be32-* | be64-* \
| bfin-* | bs2000-* \ | bfin-* | bs2000-* \
| c[123]* | c30-* | [cjt]90-* | c4x-* \ - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
- | clipper-* | craynv-* | cydra-* \ - | clipper-* | craynv-* | cydra-* \
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
+ | c8051-* | clipper-* | craynv-* | cydra-* \ + | c8051-* | clipper-* | craynv-* | cydra-* \
| d10v-* | d30v-* | dlx-* \ | d10v-* | d30v-* | dlx-* \
- | elxsi-* \ - | elxsi-* \
...@@ -2006,12 +2198,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2006,12 +2198,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
| h8300-* | h8500-* \ | h8300-* | h8500-* \
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
| hexagon-* \
- | i*86-* | i860-* | i960-* | ia64-* \ - | i*86-* | i860-* | i960-* | ia64-* \
+ | hexagon-* \
+ | i*86-* | i860-* | i960-* | ia16-* | ia64-* \ + | i*86-* | i860-* | i960-* | ia16-* | ia64-* \
| ip2k-* | iq2000-* \ | ip2k-* | iq2000-* \
+ | k1om-* \ + | k1om-* \
| le32-* | le64-* \ + | le32-* | le64-* \
| lm32-* \ | lm32-* \
| m32c-* | m32r-* | m32rle-* \ | m32c-* | m32r-* | m32rle-* \
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
...@@ -2021,7 +2213,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2021,7 +2213,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
| mips16-* \ | mips16-* \
| mips64-* | mips64el-* \ | mips64-* | mips64el-* \
@@ -390,28 +407,34 @@ @@ -360,34 +407,45 @@
| mips64vr5900-* | mips64vr5900el-* \ | mips64vr5900-* | mips64vr5900el-* \
| mipsisa32-* | mipsisa32el-* \ | mipsisa32-* | mipsisa32el-* \
| mipsisa32r2-* | mipsisa32r2el-* \ | mipsisa32r2-* | mipsisa32r2el-* \
...@@ -2036,38 +2228,46 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2036,38 +2228,46 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| mmix-* \ | mmix-* \
| mt-* \ | mt-* \
| msp430-* \ | msp430-* \
| nds32-* | nds32le-* | nds32be-* \
- | nios-* | nios2-* \ - | nios-* | nios2-* \
+ | nds32-* | nds32le-* | nds32be-* \
+ | nios-* | nios2-* | nios2eb-* | nios2el-* \ + | nios-* | nios2-* | nios2eb-* | nios2el-* \
| none-* | np1-* | ns16k-* | ns32k-* \ | none-* | np1-* | ns16k-* | ns32k-* \
| open8-* \ + | open8-* \
+ | or1k*-* \ + | or1k*-* \
| orion-* \ | orion-* \
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
| powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \ - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
+ | pru-* \ + | pru-* \
| pyramid-* \ | pyramid-* \
- | romp-* | rs6000-* | rx-* \
+ | riscv32-* | riscv64-* \ + | riscv32-* | riscv64-* \
| rl78-* | romp-* | rs6000-* | rx-* \ + | rl78-* | romp-* | rs6000-* | rx-* \
| sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
| sparclite-* \ | sparclite-* \
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \ - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
- | tahoe-* | thumb-* \
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \ + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx*-* \
| tahoe-* \ + | tahoe-* \
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
| tile*-* \ - | tile-* | tilegx-* \
@@ -419,6 +442,8 @@ + | tile*-* \
| tron-* \
| ubicom32-* \ | ubicom32-* \
| v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \ - | v850-* | v850e-* | vax-* \
| vax-* \ + | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
+ | vax-* \
+ | visium-* \ + | visium-* \
+ | wasm32-* \ + | wasm32-* \
| we32k-* \ | we32k-* \
| x86-* | x86_64-* | xc16x-* | xps100-* \ - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
| xstormy16-* | xtensa*-* \ | xstormy16-* | xtensa*-* \
@@ -432,7 +457,7 @@ | ymp-* \
| z8k-* | z80-*)
@@ -399,7 +457,7 @@
# Recognize the various machine names and aliases which stand # Recognize the various machine names and aliases which stand
# for a CPU type and a company and sometimes even an OS. # for a CPU type and a company and sometimes even an OS.
386bsd) 386bsd)
...@@ -2076,7 +2276,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2076,7 +2276,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-bsd os=-bsd
;; ;;
3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc) 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
@@ -466,7 +491,7 @@ @@ -412,7 +470,7 @@
basic_machine=a29k-amd
os=-udi
;;
- abacus)
+ abacus)
basic_machine=abacus-unknown
;;
adobe68k)
@@ -433,7 +491,7 @@
basic_machine=x86_64-pc basic_machine=x86_64-pc
;; ;;
amd64-*) amd64-*)
...@@ -2085,7 +2294,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2085,7 +2294,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
amdahl) amdahl)
basic_machine=580-amdahl basic_machine=580-amdahl
@@ -495,6 +520,9 @@ @@ -462,6 +520,9 @@
basic_machine=i386-pc basic_machine=i386-pc
os=-aros os=-aros
;; ;;
...@@ -2095,7 +2304,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2095,7 +2304,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
aux) aux)
basic_machine=m68k-apple basic_machine=m68k-apple
os=-aux os=-aux
@@ -508,7 +536,7 @@ @@ -475,18 +536,27 @@
os=-linux os=-linux
;; ;;
blackfin-*) blackfin-*)
...@@ -2104,24 +2313,37 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2104,24 +2313,37 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-linux os=-linux
;; ;;
bluegene*) bluegene*)
@@ -516,13 +544,13 @@ basic_machine=powerpc-ibm
os=-cnk os=-cnk
;; ;;
c54x-*) + c54x-*)
- basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'` + basic_machine=tic54x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
;; + ;;
c55x-*) + c55x-*)
- basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'` + basic_machine=tic55x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
;; + ;;
c6x-*) + c6x-*)
- basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
+ basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'` + basic_machine=tic6x-`echo "$basic_machine" | sed 's/^[^-]*-//'`
;; + ;;
c90) c90)
basic_machine=c90-cray basic_machine=c90-cray
@@ -611,10 +639,18 @@ os=-unicos
;;
- cegcc)
+ cegcc)
basic_machine=arm-unknown
os=-cegcc
;;
@@ -518,7 +588,7 @@
basic_machine=craynv-cray
os=-unicosmp
;;
- cr16)
+ cr16 | cr16-*)
basic_machine=cr16-unknown
os=-elf
;;
@@ -569,10 +639,18 @@
basic_machine=rs6000-bull basic_machine=rs6000-bull
os=-bosx os=-bosx
;; ;;
...@@ -2141,7 +2363,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2141,7 +2363,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
ebmon29k) ebmon29k)
basic_machine=a29k-amd basic_machine=a29k-amd
os=-ebmon os=-ebmon
@@ -704,9 +740,6 @@ @@ -662,9 +740,6 @@
hp9k8[0-9][0-9] | hp8[0-9][0-9]) hp9k8[0-9][0-9] | hp8[0-9][0-9])
basic_machine=hppa1.0-hp basic_machine=hppa1.0-hp
;; ;;
...@@ -2151,9 +2373,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2151,9 +2373,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
hppaosf) hppaosf)
basic_machine=hppa1.1-hp basic_machine=hppa1.1-hp
os=-osf os=-osf
@@ -719,26 +752,26 @@ @@ -676,28 +751,27 @@
i370-ibm* | ibm*)
basic_machine=i370-ibm basic_machine=i370-ibm
;; ;;
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
i*86v32) i*86v32)
- basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'` - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
+ basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'` + basic_machine=`echo "$1" | sed -e 's/86.*/86-pc/'`
...@@ -2183,7 +2407,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2183,7 +2407,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
basic_machine=i386-unknown basic_machine=i386-unknown
os=-vsta os=-vsta
;; ;;
@@ -756,17 +789,17 @@ @@ -715,17 +789,17 @@
basic_machine=m68k-isi basic_machine=m68k-isi
os=-sysv os=-sysv
;; ;;
...@@ -2205,7 +2429,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2205,7 +2429,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
magnum | m3230) magnum | m3230)
basic_machine=mips-mips basic_machine=mips-mips
os=-sysv os=-sysv
@@ -775,11 +808,15 @@ @@ -734,11 +808,15 @@
basic_machine=ns32k-utek basic_machine=ns32k-utek
os=-sysv os=-sysv
;; ;;
...@@ -2223,7 +2447,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2223,7 +2447,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-mingw32 os=-mingw32
;; ;;
mingw32ce) mingw32ce)
@@ -794,10 +831,10 @@ @@ -753,10 +831,10 @@
os=-mint os=-mint
;; ;;
mips3*-*) mips3*-*)
...@@ -2236,7 +2460,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2236,7 +2460,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
monitor) monitor)
basic_machine=m68k-rom68k basic_machine=m68k-rom68k
@@ -807,15 +844,19 @@ @@ -766,17 +844,29 @@
basic_machine=powerpc-unknown basic_machine=powerpc-unknown
os=-morphos os=-morphos
;; ;;
...@@ -2251,14 +2475,23 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2251,14 +2475,23 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
ms1-*) ms1-*)
- basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
+ basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'` + basic_machine=`echo "$basic_machine" | sed -e 's/ms1-/mt-/'`
;; + ;;
msys) + msys)
- basic_machine=i386-pc
+ basic_machine=i686-pc + basic_machine=i686-pc
os=-msys + os=-msys
;; ;;
mvs) mvs)
@@ -854,7 +895,7 @@ basic_machine=i370-ibm
os=-mvs
;;
+ nacl)
+ basic_machine=le32-unknown
+ os=-nacl
+ ;;
ncr3000)
basic_machine=i486-ncr
os=-sysv4
@@ -805,7 +895,7 @@
basic_machine=v70-nec basic_machine=v70-nec
os=-sysv os=-sysv
;; ;;
...@@ -2267,7 +2500,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2267,7 +2500,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
basic_machine=m68k-next basic_machine=m68k-next
case $os in case $os in
-nextstep* ) -nextstep* )
@@ -899,6 +940,12 @@ @@ -841,9 +931,21 @@
np1)
basic_machine=np1-gould
;;
+ neo-tandem)
+ basic_machine=neo-tandem
+ ;;
+ nse-tandem)
+ basic_machine=nse-tandem
+ ;;
nsr-tandem) nsr-tandem)
basic_machine=nsr-tandem basic_machine=nsr-tandem
;; ;;
...@@ -2280,7 +2522,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2280,7 +2522,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
op50n-* | op60c-*) op50n-* | op60c-*)
basic_machine=hppa1.1-oki basic_machine=hppa1.1-oki
os=-proelf os=-proelf
@@ -931,7 +978,7 @@ @@ -876,7 +978,7 @@
os=-linux os=-linux
;; ;;
parisc-*) parisc-*)
...@@ -2289,7 +2531,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2289,7 +2531,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-linux os=-linux
;; ;;
pbd) pbd)
@@ -947,7 +994,7 @@ @@ -892,7 +994,7 @@
basic_machine=i386-pc basic_machine=i386-pc
;; ;;
pc98-*) pc98-*)
...@@ -2298,7 +2540,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2298,7 +2540,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
pentium | p5 | k5 | k6 | nexgen | viac3) pentium | p5 | k5 | k6 | nexgen | viac3)
basic_machine=i586-pc basic_machine=i586-pc
@@ -962,16 +1009,16 @@ @@ -907,41 +1009,42 @@
basic_machine=i786-pc basic_machine=i786-pc
;; ;;
pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*) pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
...@@ -2319,11 +2561,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2319,11 +2561,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
pn) pn)
basic_machine=pn-gould basic_machine=pn-gould
@@ -981,23 +1028,23 @@
ppc | ppcbe) basic_machine=powerpc-unknown
;; ;;
ppc-* | ppcbe-*) power) basic_machine=power-ibm
- basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'` ;;
- ppc) basic_machine=powerpc-unknown
+ ppc | ppcbe) basic_machine=powerpc-unknown
;;
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
+ ppc-* | ppcbe-*)
+ basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'` + basic_machine=powerpc-`echo "$basic_machine" | sed 's/^[^-]*-//'`
;; ;;
- ppcle | powerpclittle | ppc-le | powerpc-little) - ppcle | powerpclittle | ppc-le | powerpc-little)
...@@ -2349,7 +2594,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2349,7 +2594,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
ps2) ps2)
basic_machine=i386-ibm basic_machine=i386-ibm
@@ -1006,7 +1053,11 @@ @@ -950,7 +1053,11 @@
basic_machine=i586-unknown basic_machine=i586-unknown
os=-pw32 os=-pw32
;; ;;
...@@ -2362,7 +2607,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2362,7 +2607,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
basic_machine=i386-pc basic_machine=i386-pc
os=-rdos os=-rdos
;; ;;
@@ -1047,17 +1098,10 @@ @@ -991,17 +1098,10 @@
sequent) sequent)
basic_machine=i386-sequent basic_machine=i386-sequent
;; ;;
...@@ -2381,16 +2626,44 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2381,16 +2626,44 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
basic_machine=sparclite-wrs basic_machine=sparclite-wrs
os=-vxworks os=-vxworks
;; ;;
@@ -1076,7 +1120,7 @@ @@ -1019,6 +1119,9 @@
basic_machine=i860-stratus
os=-sysv4 os=-sysv4
;; ;;
strongarm-* | thumb-*) + strongarm-* | thumb-*)
- basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
+ basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'` + basic_machine=arm-`echo "$basic_machine" | sed 's/^[^-]*-//'`
;; + ;;
sun2) sun2)
basic_machine=m68000-sun basic_machine=m68000-sun
@@ -1198,6 +1242,9 @@ ;;
@@ -1075,25 +1178,8 @@
basic_machine=t90-cray
os=-unicos
;;
- tic54x | c54x*)
- basic_machine=tic54x-unknown
- os=-coff
- ;;
- tic55x | c55x*)
- basic_machine=tic55x-unknown
- os=-coff
- ;;
- tic6x | c6x*)
- basic_machine=tic6x-unknown
- os=-coff
- ;;
- # This must be matched before tile*.
- tilegx*)
- basic_machine=tilegx-unknown
- os=-linux-gnu
- ;;
tile*)
- basic_machine=tile-unknown
+ basic_machine=$basic_machine-unknown
os=-linux-gnu
;;
tx39)
@@ -1156,6 +1242,9 @@
basic_machine=hppa1.1-winbond basic_machine=hppa1.1-winbond
os=-proelf os=-proelf
;; ;;
...@@ -2400,13 +2673,13 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2400,13 +2673,13 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
xbox) xbox)
basic_machine=i686-pc basic_machine=i686-pc
os=-mingw32 os=-mingw32
@@ -1206,20 +1253,12 @@ @@ -1163,18 +1252,13 @@
xps | xps100)
basic_machine=xps100-honeywell basic_machine=xps100-honeywell
;; ;;
xscale-* | xscalee[bl]-*) + xscale-* | xscalee[bl]-*)
- basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
+ basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'` + basic_machine=`echo "$basic_machine" | sed 's/^xscale/arm/'`
;; + ;;
ymp) ymp)
basic_machine=ymp-cray basic_machine=ymp-cray
os=-unicos os=-unicos
...@@ -2422,7 +2695,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2422,7 +2695,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
none) none)
basic_machine=none-none basic_machine=none-none
os=-none os=-none
@@ -1248,10 +1287,6 @@ @@ -1203,10 +1287,6 @@
vax) vax)
basic_machine=vax-dec basic_machine=vax-dec
;; ;;
...@@ -2433,7 +2706,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2433,7 +2706,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
pdp11) pdp11)
basic_machine=pdp11-dec basic_machine=pdp11-dec
;; ;;
@@ -1261,9 +1296,6 @@ @@ -1216,9 +1296,6 @@
sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
basic_machine=sh-unknown basic_machine=sh-unknown
;; ;;
...@@ -2443,7 +2716,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2443,7 +2716,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
cydra) cydra)
basic_machine=cydra-cydrome basic_machine=cydra-cydrome
;; ;;
@@ -1283,7 +1315,7 @@ @@ -1238,7 +1315,7 @@
# Make sure to match an already-canonicalized machine name. # Make sure to match an already-canonicalized machine name.
;; ;;
*) *)
...@@ -2452,7 +2725,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2452,7 +2725,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
exit 1 exit 1
;; ;;
esac esac
@@ -1291,10 +1323,10 @@ @@ -1246,10 +1323,10 @@
# Here we canonicalize certain aliases for manufacturers. # Here we canonicalize certain aliases for manufacturers.
case $basic_machine in case $basic_machine in
*-digital*) *-digital*)
...@@ -2465,7 +2738,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2465,7 +2738,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
*) *)
;; ;;
@@ -1305,8 +1337,8 @@ @@ -1260,11 +1337,11 @@
if [ x"$os" != x"" ] if [ x"$os" != x"" ]
then then
case $os in case $os in
...@@ -2474,9 +2747,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2474,9 +2747,14 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
+ # First match some system type aliases that might get confused + # First match some system type aliases that might get confused
+ # with valid system types. + # with valid system types.
# -solaris* is a basic system type, with this one exception. # -solaris* is a basic system type, with this one exception.
-auroraux) - -auroraux)
os=-auroraux - os=-auroraux
@@ -1317,45 +1349,48 @@ + -auroraux)
+ os=-auroraux
;;
-solaris1 | -solaris1.*)
os=`echo $os | sed -e 's|solaris1|sunos4|'`
@@ -1272,44 +1349,48 @@
-solaris) -solaris)
os=-solaris2 os=-solaris2
;; ;;
...@@ -2518,13 +2796,13 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2518,13 +2796,13 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
- | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
- | -chorusos* | -chorusrdb* | -cegcc* \ - | -chorusos* | -chorusrdb* | -cegcc* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \ - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \ - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
| -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
- | -mingw32* | -linux-gnu* | -linux-android* \
- | -linux-newlib* | -linux-uclibc* \
- | -uxpv* | -beos* | -mpeix* | -udk* \ - | -uxpv* | -beos* | -mpeix* | -udk* \
- | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
+ | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* | -hcos* \
+ | -chorusos* | -chorusrdb* | -cegcc* | -glidix* \
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
+ | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \ + | -midipix* | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \ + | -linux-newlib* | -linux-musl* | -linux-uclibc* \
+ | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \ + | -uxpv* | -beos* | -mpeix* | -udk* | -moxiebox* \
...@@ -2542,7 +2820,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2542,7 +2820,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
# Remember, each alternative MUST END IN *, to match a version number. # Remember, each alternative MUST END IN *, to match a version number.
;; ;;
-qnx*) -qnx*)
@@ -1372,12 +1407,12 @@ @@ -1326,12 +1407,12 @@
-nto*) -nto*)
os=`echo $os | sed -e 's|nto|nto-qnx|'` os=`echo $os | sed -e 's|nto|nto-qnx|'`
;; ;;
...@@ -2558,7 +2836,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2558,7 +2836,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
-linux-dietlibc) -linux-dietlibc)
os=-linux-dietlibc os=-linux-dietlibc
@@ -1386,10 +1421,10 @@ @@ -1340,26 +1421,20 @@
os=`echo $os | sed -e 's|linux|linux-gnu|'` os=`echo $os | sed -e 's|linux|linux-gnu|'`
;; ;;
-sunos5*) -sunos5*)
...@@ -2571,7 +2849,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2571,7 +2849,11 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
;; ;;
-opened*) -opened*)
os=-openedition os=-openedition
@@ -1400,12 +1435,6 @@ ;;
- -os400*)
+ -os400*)
os=-os400
;;
-wince*) -wince*)
os=-wince os=-wince
;; ;;
...@@ -2584,7 +2866,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2584,7 +2866,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
-utek*) -utek*)
os=-bsd os=-bsd
;; ;;
@@ -1430,7 +1459,7 @@ @@ -1384,7 +1459,7 @@
-nova*) -nova*)
os=-rtmk-nova os=-rtmk-nova
;; ;;
...@@ -2593,7 +2875,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2593,7 +2875,16 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-nextstep2 os=-nextstep2
;; ;;
-nsk*) -nsk*)
@@ -1452,7 +1481,7 @@ @@ -1397,7 +1472,7 @@
-sinix*)
os=-sysv4
;;
- -tpf*)
+ -tpf*)
os=-tpf
;;
-triton*)
@@ -1406,7 +1481,7 @@
-oss*) -oss*)
os=-sysv3 os=-sysv3
;; ;;
...@@ -2602,7 +2893,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2602,7 +2893,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-sysv4 os=-sysv4
;; ;;
-svr3) -svr3)
@@ -1467,35 +1496,38 @@ @@ -1421,35 +1496,38 @@
-ose*) -ose*)
os=-ose os=-ose
;; ;;
...@@ -2627,6 +2918,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2627,6 +2918,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
-dicos*) -dicos*)
os=-dicos os=-dicos
;; ;;
- -nacl*)
- ;;
+ -pikeos*) + -pikeos*)
+ # Until real need of OS specific support for + # Until real need of OS specific support for
+ # particular features comes up, bare metal + # particular features comes up, bare metal
...@@ -2640,8 +2933,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2640,8 +2933,8 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
+ ;; + ;;
+ esac + esac
+ ;; + ;;
-nacl*) + -nacl*)
;; + ;;
+ -ios) + -ios)
+ ;; + ;;
-none) -none)
...@@ -2654,20 +2947,62 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2654,20 +2947,62 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
exit 1 exit 1
;; ;;
esac esac
@@ -1530,6 +1562,12 @@ @@ -1466,10 +1544,10 @@
c4x-* | tic4x-*) # system, and we'll never get to this point.
os=-coff
;; case $basic_machine in
- score-*)
+ score-*)
os=-elf
;;
- spu-*)
+ spu-*)
os=-elf
;;
*-acorn)
@@ -1481,8 +1559,23 @@
arm*-semi)
os=-aout
;;
- c4x-* | tic4x-*)
- os=-coff
+ c4x-* | tic4x-*)
+ os=-coff
+ ;;
+ c8051-*) + c8051-*)
+ os=-elf + os=-elf
+ ;; + ;;
+ hexagon-*) + hexagon-*)
+ os=-elf + os=-elf
+ ;; + ;;
tic54x-*) + tic54x-*)
os=-coff + os=-coff
+ ;;
+ tic55x-*)
+ os=-coff
+ ;;
+ tic6x-*)
+ os=-coff
;;
# This must come before the *-dec entry.
pdp10-*)
@@ -1502,14 +1595,11 @@
;;
m68000-sun)
os=-sunos3
- # This also exists in the configure program, but was not the
- # default.
- # os=-sunos4
;; ;;
@@ -1579,12 +1617,12 @@ m68*-cisco)
os=-aout
;;
- mep-*)
+ mep-*)
os=-elf
;;
mips*-cisco)
@@ -1527,16 +1617,16 @@
sparc-* | *-sun) sparc-* | *-sun)
os=-sunos4.1.1 os=-sunos4.1.1
;; ;;
...@@ -2683,7 +3018,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2683,7 +3018,12 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
*-ibm) *-ibm)
os=-aix os=-aix
;; ;;
@@ -1624,7 +1662,7 @@ - *-knuth)
+ *-knuth)
os=-mmixware
;;
*-wec)
@@ -1572,7 +1662,7 @@
m88k-omron*) m88k-omron*)
os=-luna os=-luna
;; ;;
...@@ -2692,7 +3032,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2692,7 +3032,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
os=-nextstep os=-nextstep
;; ;;
*-sequent) *-sequent)
@@ -1639,9 +1677,6 @@ @@ -1587,9 +1677,6 @@
i370-*) i370-*)
os=-mvs os=-mvs
;; ;;
...@@ -2702,7 +3042,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi ...@@ -2702,7 +3042,7 @@ diff -uNr mtdev-1.1.5/config-aux/config.sub mtdev-1.1.5-aarch64/config-aux/confi
*-gould) *-gould)
os=-sysv os=-sysv
;; ;;
@@ -1751,15 +1786,15 @@ @@ -1699,15 +1786,15 @@
vendor=stratus vendor=stratus
;; ;;
esac esac
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment