|
|
dc872b |
diff -urN fontforge-20120731-b/config.guess fontforge-20120731-b-aarch64/config.guess
|
|
|
dc872b |
--- fontforge-20120731-b/config.guess 2012-08-02 10:09:08.000000000 -0500
|
|
|
dc872b |
+++ fontforge-20120731-b-aarch64/config.guess 2013-03-03 04:42:30.844067956 -0600
|
|
|
dc872b |
@@ -1,10 +1,10 @@
|
|
|
dc872b |
#! /bin/sh
|
|
|
dc872b |
# Attempt to guess a canonical system name.
|
|
|
dc872b |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
|
dc872b |
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
|
|
dc872b |
-# Inc.
|
|
|
dc872b |
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
|
dc872b |
+# 2011, 2012 Free Software Foundation, Inc.
|
|
|
dc872b |
|
|
|
dc872b |
-timestamp='2007-07-22'
|
|
|
dc872b |
+timestamp='2012-09-25'
|
|
|
dc872b |
|
|
|
dc872b |
# This file is free software; you can redistribute it and/or modify it
|
|
|
dc872b |
# under the terms of the GNU General Public License as published by
|
|
|
dc872b |
@@ -17,9 +17,7 @@
|
|
|
dc872b |
# General Public License for more details.
|
|
|
dc872b |
#
|
|
|
dc872b |
# You should have received a copy of the GNU General Public License
|
|
|
dc872b |
-# along with this program; if not, write to the Free Software
|
|
|
dc872b |
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
|
dc872b |
-# 02110-1301, USA.
|
|
|
dc872b |
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
dc872b |
#
|
|
|
dc872b |
# As a special exception to the GNU General Public License, if you
|
|
|
dc872b |
# distribute this file as part of a program that contains a
|
|
|
dc872b |
@@ -27,16 +25,16 @@
|
|
|
dc872b |
# the same distribution terms that you use for the rest of that program.
|
|
|
dc872b |
|
|
|
dc872b |
|
|
|
dc872b |
-# Originally written by Per Bothner <per@bothner.com>.
|
|
|
dc872b |
-# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
|
dc872b |
-# diff and a properly formatted ChangeLog entry.
|
|
|
dc872b |
+# Originally written by Per Bothner. Please send patches (context
|
|
|
dc872b |
+# diff format) to <config-patches@gnu.org> and include a ChangeLog
|
|
|
dc872b |
+# entry.
|
|
|
dc872b |
#
|
|
|
dc872b |
# This script attempts to guess a canonical system name similar to
|
|
|
dc872b |
# config.sub. If it succeeds, it prints the system name on stdout, and
|
|
|
dc872b |
# exits with 0. Otherwise, it exits with 1.
|
|
|
dc872b |
#
|
|
|
dc872b |
-# The plan is that this can be called by configure scripts if you
|
|
|
dc872b |
-# don't specify an explicit build system type.
|
|
|
dc872b |
+# You can get the latest version of this script from:
|
|
|
dc872b |
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
|
dc872b |
|
|
|
dc872b |
me=`echo "$0" | sed -e 's,.*/,,'`
|
|
|
dc872b |
|
|
|
dc872b |
@@ -56,7 +54,8 @@
|
|
|
dc872b |
GNU config.guess ($timestamp)
|
|
|
dc872b |
|
|
|
dc872b |
Originally written by Per Bothner.
|
|
|
dc872b |
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|
|
dc872b |
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
|
dc872b |
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
|
|
|
dc872b |
Free Software Foundation, Inc.
|
|
|
dc872b |
|
|
|
dc872b |
This is free software; see the source for copying conditions. There is NO
|
|
|
dc872b |
@@ -144,7 +143,7 @@
|
|
|
dc872b |
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
|
|
|
dc872b |
*:NetBSD:*:*)
|
|
|
dc872b |
# NetBSD (nbsd) targets should (where applicable) match one or
|
|
|
dc872b |
- # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
|
|
|
dc872b |
+ # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
|
|
|
dc872b |
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
|
|
|
dc872b |
# switched to ELF, *-*-netbsd* would select the old
|
|
|
dc872b |
# object file format. This provides both forward
|
|
|
dc872b |
@@ -170,7 +169,7 @@
|
|
|
dc872b |
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
|
|
|
dc872b |
eval $set_cc_for_build
|
|
|
dc872b |
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
dc872b |
- | grep __ELF__ >/dev/null
|
|
|
dc872b |
+ | grep -q __ELF__
|
|
|
dc872b |
then
|
|
|
dc872b |
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
|
|
|
dc872b |
# Return netbsd for either. FIX?
|
|
|
dc872b |
@@ -180,7 +179,7 @@
|
|
|
dc872b |
fi
|
|
|
dc872b |
;;
|
|
|
dc872b |
*)
|
|
|
dc872b |
- os=netbsd
|
|
|
dc872b |
+ os=netbsd
|
|
|
dc872b |
;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
# The OS release
|
|
|
dc872b |
@@ -201,6 +200,10 @@
|
|
|
dc872b |
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
|
|
|
dc872b |
echo "${machine}-${os}${release}"
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ *:Bitrig:*:*)
|
|
|
dc872b |
+ UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
|
|
|
dc872b |
+ echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
*:OpenBSD:*:*)
|
|
|
dc872b |
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
|
|
|
dc872b |
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
|
|
|
dc872b |
@@ -223,7 +226,7 @@
|
|
|
dc872b |
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
*5.*)
|
|
|
dc872b |
- UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
|
|
dc872b |
+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
# According to Compaq, /usr/sbin/psrinfo has been available on
|
|
|
dc872b |
@@ -269,7 +272,10 @@
|
|
|
dc872b |
# A Xn.n version is an unreleased experimental baselevel.
|
|
|
dc872b |
# 1.2 uses "1.2" for uname -r.
|
|
|
dc872b |
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ # Reset EXIT trap before exiting to avoid spurious non-zero exit code.
|
|
|
dc872b |
+ exitcode=$?
|
|
|
dc872b |
+ trap '' 0
|
|
|
dc872b |
+ exit $exitcode ;;
|
|
|
dc872b |
Alpha\ *:Windows_NT*:*)
|
|
|
dc872b |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
|
dc872b |
# Should we change UNAME_MACHINE based on the output of uname instead
|
|
|
dc872b |
@@ -295,12 +301,12 @@
|
|
|
dc872b |
echo s390-ibm-zvmoe
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
*:OS400:*:*)
|
|
|
dc872b |
- echo powerpc-ibm-os400
|
|
|
dc872b |
+ echo powerpc-ibm-os400
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
|
|
|
dc872b |
echo arm-acorn-riscix${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- arm:riscos:*:*|arm:RISCOS:*:*)
|
|
|
dc872b |
+ arm*:riscos:*:*|arm*:RISCOS:*:*)
|
|
|
dc872b |
echo arm-unknown-riscos
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
|
|
|
dc872b |
@@ -324,14 +330,33 @@
|
|
|
dc872b |
case `/usr/bin/uname -p` in
|
|
|
dc872b |
sparc) echo sparc-icl-nx7; exit ;;
|
|
|
dc872b |
esac ;;
|
|
|
dc872b |
+ s390x:SunOS:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
sun4H:SunOS:5.*:*)
|
|
|
dc872b |
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
|
|
|
dc872b |
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
|
|
|
dc872b |
+ echo i386-pc-auroraux${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
|
|
|
dc872b |
- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
dc872b |
+ eval $set_cc_for_build
|
|
|
dc872b |
+ SUN_ARCH="i386"
|
|
|
dc872b |
+ # If there is a compiler, see if it is configured for 64-bit objects.
|
|
|
dc872b |
+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
|
|
|
dc872b |
+ # This test works for both compilers.
|
|
|
dc872b |
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
|
dc872b |
+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
|
dc872b |
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
|
dc872b |
+ grep IS_64BIT_ARCH >/dev/null
|
|
|
dc872b |
+ then
|
|
|
dc872b |
+ SUN_ARCH="x86_64"
|
|
|
dc872b |
+ fi
|
|
|
dc872b |
+ fi
|
|
|
dc872b |
+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
sun4*:SunOS:6*:*)
|
|
|
dc872b |
# According to config.sub, this is the proper way to canonicalize
|
|
|
dc872b |
@@ -375,23 +400,23 @@
|
|
|
dc872b |
# MiNT. But MiNT is downward compatible to TOS, so this should
|
|
|
dc872b |
# be no problem.
|
|
|
dc872b |
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
|
dc872b |
- echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
dc872b |
+ echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
|
|
|
dc872b |
echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
|
|
|
dc872b |
- echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
dc872b |
+ echo m68k-atari-mint${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
|
|
|
dc872b |
- echo m68k-milan-mint${UNAME_RELEASE}
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ echo m68k-milan-mint${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
|
|
|
dc872b |
- echo m68k-hades-mint${UNAME_RELEASE}
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ echo m68k-hades-mint${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
|
|
|
dc872b |
- echo m68k-unknown-mint${UNAME_RELEASE}
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ echo m68k-unknown-mint${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
m68k:machten:*:*)
|
|
|
dc872b |
echo m68k-apple-machten${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -461,8 +486,8 @@
|
|
|
dc872b |
echo m88k-motorola-sysv3
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
AViiON:dgux:*:*)
|
|
|
dc872b |
- # DG/UX returns AViiON for all architectures
|
|
|
dc872b |
- UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
dc872b |
+ # DG/UX returns AViiON for all architectures
|
|
|
dc872b |
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
dc872b |
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
|
|
|
dc872b |
then
|
|
|
dc872b |
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
|
|
|
dc872b |
@@ -475,7 +500,7 @@
|
|
|
dc872b |
else
|
|
|
dc872b |
echo i586-dg-dgux${UNAME_RELEASE}
|
|
|
dc872b |
fi
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
|
|
|
dc872b |
echo m88k-dolphin-sysv3
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -532,7 +557,7 @@
|
|
|
dc872b |
echo rs6000-ibm-aix3.2
|
|
|
dc872b |
fi
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- *:AIX:*:[45])
|
|
|
dc872b |
+ *:AIX:*:[4567])
|
|
|
dc872b |
IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
|
|
|
dc872b |
if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
|
|
|
dc872b |
IBM_ARCH=rs6000
|
|
|
dc872b |
@@ -575,52 +600,52 @@
|
|
|
dc872b |
9000/[678][0-9][0-9])
|
|
|
dc872b |
if [ -x /usr/bin/getconf ]; then
|
|
|
dc872b |
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
|
|
|
dc872b |
- sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
|
dc872b |
- case "${sc_cpu_version}" in
|
|
|
dc872b |
- 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
|
dc872b |
- 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
|
dc872b |
- 532) # CPU_PA_RISC2_0
|
|
|
dc872b |
- case "${sc_kernel_bits}" in
|
|
|
dc872b |
- 32) HP_ARCH="hppa2.0n" ;;
|
|
|
dc872b |
- 64) HP_ARCH="hppa2.0w" ;;
|
|
|
dc872b |
+ sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
|
|
|
dc872b |
+ case "${sc_cpu_version}" in
|
|
|
dc872b |
+ 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
|
|
|
dc872b |
+ 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
|
|
|
dc872b |
+ 532) # CPU_PA_RISC2_0
|
|
|
dc872b |
+ case "${sc_kernel_bits}" in
|
|
|
dc872b |
+ 32) HP_ARCH="hppa2.0n" ;;
|
|
|
dc872b |
+ 64) HP_ARCH="hppa2.0w" ;;
|
|
|
dc872b |
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
|
|
|
dc872b |
- esac ;;
|
|
|
dc872b |
- esac
|
|
|
dc872b |
+ esac ;;
|
|
|
dc872b |
+ esac
|
|
|
dc872b |
fi
|
|
|
dc872b |
if [ "${HP_ARCH}" = "" ]; then
|
|
|
dc872b |
eval $set_cc_for_build
|
|
|
dc872b |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
+ sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
|
|
|
dc872b |
- #define _HPUX_SOURCE
|
|
|
dc872b |
- #include <stdlib.h>
|
|
|
dc872b |
- #include <unistd.h>
|
|
|
dc872b |
-
|
|
|
dc872b |
- int main ()
|
|
|
dc872b |
- {
|
|
|
dc872b |
- #if defined(_SC_KERNEL_BITS)
|
|
|
dc872b |
- long bits = sysconf(_SC_KERNEL_BITS);
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
- long cpu = sysconf (_SC_CPU_VERSION);
|
|
|
dc872b |
-
|
|
|
dc872b |
- switch (cpu)
|
|
|
dc872b |
- {
|
|
|
dc872b |
- case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
|
dc872b |
- case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
|
dc872b |
- case CPU_PA_RISC2_0:
|
|
|
dc872b |
- #if defined(_SC_KERNEL_BITS)
|
|
|
dc872b |
- switch (bits)
|
|
|
dc872b |
- {
|
|
|
dc872b |
- case 64: puts ("hppa2.0w"); break;
|
|
|
dc872b |
- case 32: puts ("hppa2.0n"); break;
|
|
|
dc872b |
- default: puts ("hppa2.0"); break;
|
|
|
dc872b |
- } break;
|
|
|
dc872b |
- #else /* !defined(_SC_KERNEL_BITS) */
|
|
|
dc872b |
- puts ("hppa2.0"); break;
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
- default: puts ("hppa1.0"); break;
|
|
|
dc872b |
- }
|
|
|
dc872b |
- exit (0);
|
|
|
dc872b |
- }
|
|
|
dc872b |
+ #define _HPUX_SOURCE
|
|
|
dc872b |
+ #include <stdlib.h>
|
|
|
dc872b |
+ #include <unistd.h>
|
|
|
dc872b |
+
|
|
|
dc872b |
+ int main ()
|
|
|
dc872b |
+ {
|
|
|
dc872b |
+ #if defined(_SC_KERNEL_BITS)
|
|
|
dc872b |
+ long bits = sysconf(_SC_KERNEL_BITS);
|
|
|
dc872b |
+ #endif
|
|
|
dc872b |
+ long cpu = sysconf (_SC_CPU_VERSION);
|
|
|
dc872b |
+
|
|
|
dc872b |
+ switch (cpu)
|
|
|
dc872b |
+ {
|
|
|
dc872b |
+ case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
|
|
|
dc872b |
+ case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
|
|
|
dc872b |
+ case CPU_PA_RISC2_0:
|
|
|
dc872b |
+ #if defined(_SC_KERNEL_BITS)
|
|
|
dc872b |
+ switch (bits)
|
|
|
dc872b |
+ {
|
|
|
dc872b |
+ case 64: puts ("hppa2.0w"); break;
|
|
|
dc872b |
+ case 32: puts ("hppa2.0n"); break;
|
|
|
dc872b |
+ default: puts ("hppa2.0"); break;
|
|
|
dc872b |
+ } break;
|
|
|
dc872b |
+ #else /* !defined(_SC_KERNEL_BITS) */
|
|
|
dc872b |
+ puts ("hppa2.0"); break;
|
|
|
dc872b |
+ #endif
|
|
|
dc872b |
+ default: puts ("hppa1.0"); break;
|
|
|
dc872b |
+ }
|
|
|
dc872b |
+ exit (0);
|
|
|
dc872b |
+ }
|
|
|
dc872b |
EOF
|
|
|
dc872b |
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
|
|
|
dc872b |
test -z "$HP_ARCH" && HP_ARCH=hppa
|
|
|
dc872b |
@@ -640,7 +665,7 @@
|
|
|
dc872b |
# => hppa64-hp-hpux11.23
|
|
|
dc872b |
|
|
|
dc872b |
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
|
|
|
dc872b |
- grep __LP64__ >/dev/null
|
|
|
dc872b |
+ grep -q __LP64__
|
|
|
dc872b |
then
|
|
|
dc872b |
HP_ARCH="hppa2.0w"
|
|
|
dc872b |
else
|
|
|
dc872b |
@@ -711,22 +736,22 @@
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
|
|
|
dc872b |
echo c1-convex-bsd
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
|
|
|
dc872b |
if getsysinfo -f scalar_acc
|
|
|
dc872b |
then echo c32-convex-bsd
|
|
|
dc872b |
else echo c2-convex-bsd
|
|
|
dc872b |
fi
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
|
|
|
dc872b |
echo c34-convex-bsd
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
|
|
|
dc872b |
echo c38-convex-bsd
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
|
|
|
dc872b |
echo c4-convex-bsd
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
CRAY*Y-MP:*:*:*)
|
|
|
dc872b |
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -750,14 +775,14 @@
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
|
|
|
dc872b |
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
|
|
|
dc872b |
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
dc872b |
- FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|
|
dc872b |
- echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
dc872b |
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
|
|
|
dc872b |
+ echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
5000:UNIX_System_V:4.*:*)
|
|
|
dc872b |
- FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
dc872b |
- FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
|
|
dc872b |
- echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
dc872b |
+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
|
|
|
dc872b |
+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
|
|
|
dc872b |
+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
|
|
|
dc872b |
@@ -769,40 +794,51 @@
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
*:FreeBSD:*:*)
|
|
|
dc872b |
- case ${UNAME_MACHINE} in
|
|
|
dc872b |
- pc98)
|
|
|
dc872b |
- echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
dc872b |
+ UNAME_PROCESSOR=`/usr/bin/uname -p`
|
|
|
dc872b |
+ case ${UNAME_PROCESSOR} in
|
|
|
dc872b |
amd64)
|
|
|
dc872b |
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
dc872b |
*)
|
|
|
dc872b |
- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
dc872b |
+ echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*:CYGWIN*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-cygwin
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ *:MINGW64*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-pc-mingw64
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
*:MINGW*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-mingw32
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ i*:MSYS*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-pc-msys
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
i*:windows32*:*)
|
|
|
dc872b |
- # uname -m includes "-pc" on this system.
|
|
|
dc872b |
- echo ${UNAME_MACHINE}-mingw32
|
|
|
dc872b |
+ # uname -m includes "-pc" on this system.
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-mingw32
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*:PW*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-pw32
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- *:Interix*:[3456]*)
|
|
|
dc872b |
- case ${UNAME_MACHINE} in
|
|
|
dc872b |
+ *:Interix*:*)
|
|
|
dc872b |
+ case ${UNAME_MACHINE} in
|
|
|
dc872b |
x86)
|
|
|
dc872b |
echo i586-pc-interix${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- EM64T | authenticamd)
|
|
|
dc872b |
+ authenticamd | genuineintel | EM64T)
|
|
|
dc872b |
echo x86_64-unknown-interix${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ IA64)
|
|
|
dc872b |
+ echo ia64-unknown-interix${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
esac ;;
|
|
|
dc872b |
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
|
|
|
dc872b |
echo i${UNAME_MACHINE}-pc-mks
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ 8664:Windows_NT:*)
|
|
|
dc872b |
+ echo x86_64-pc-mks
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
|
|
|
dc872b |
# How do we know it's Interix rather than the generic POSIX subsystem?
|
|
|
dc872b |
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
|
|
|
dc872b |
@@ -832,20 +868,68 @@
|
|
|
dc872b |
i*86:Minix:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-minix
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- arm*:Linux:*:*)
|
|
|
dc872b |
+ aarch64:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ aarch64_be:Linux:*:*)
|
|
|
dc872b |
+ UNAME_MACHINE=aarch64_be
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ alpha:Linux:*:*)
|
|
|
dc872b |
+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
|
dc872b |
+ EV5) UNAME_MACHINE=alphaev5 ;;
|
|
|
dc872b |
+ EV56) UNAME_MACHINE=alphaev56 ;;
|
|
|
dc872b |
+ PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
|
dc872b |
+ PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
|
dc872b |
+ EV6) UNAME_MACHINE=alphaev6 ;;
|
|
|
dc872b |
+ EV67) UNAME_MACHINE=alphaev67 ;;
|
|
|
dc872b |
+ EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
|
dc872b |
+ esac
|
|
|
dc872b |
+ objdump --private-headers /bin/sh | grep -q ld.so.1
|
|
|
dc872b |
+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ arm*:Linux:*:*)
|
|
|
dc872b |
+ eval $set_cc_for_build
|
|
|
dc872b |
+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
dc872b |
+ | grep -q __ARM_EABI__
|
|
|
dc872b |
+ then
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ else
|
|
|
dc872b |
+ if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
|
|
|
dc872b |
+ | grep -q __ARM_PCS_VFP
|
|
|
dc872b |
+ then
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi
|
|
|
dc872b |
+ else
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
|
|
|
dc872b |
+ fi
|
|
|
dc872b |
+ fi
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
avr32*:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
cris:Linux:*:*)
|
|
|
dc872b |
- echo cris-axis-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-axis-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
crisv32:Linux:*:*)
|
|
|
dc872b |
- echo crisv32-axis-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-axis-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
frv:Linux:*:*)
|
|
|
dc872b |
- echo frv-unknown-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ hexagon:Linux:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ i*86:Linux:*:*)
|
|
|
dc872b |
+ LIBC=gnu
|
|
|
dc872b |
+ eval $set_cc_for_build
|
|
|
dc872b |
+ sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
+ #ifdef __dietlibc__
|
|
|
dc872b |
+ LIBC=dietlibc
|
|
|
dc872b |
+ #endif
|
|
|
dc872b |
+EOF
|
|
|
dc872b |
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
|
|
|
dc872b |
+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
ia64:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
@@ -856,74 +940,33 @@
|
|
|
dc872b |
m68*:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- mips:Linux:*:*)
|
|
|
dc872b |
+ mips:Linux:*:* | mips64:Linux:*:*)
|
|
|
dc872b |
eval $set_cc_for_build
|
|
|
dc872b |
sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
#undef CPU
|
|
|
dc872b |
- #undef mips
|
|
|
dc872b |
- #undef mipsel
|
|
|
dc872b |
+ #undef ${UNAME_MACHINE}
|
|
|
dc872b |
+ #undef ${UNAME_MACHINE}el
|
|
|
dc872b |
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
|
dc872b |
- CPU=mipsel
|
|
|
dc872b |
+ CPU=${UNAME_MACHINE}el
|
|
|
dc872b |
#else
|
|
|
dc872b |
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
|
dc872b |
- CPU=mips
|
|
|
dc872b |
+ CPU=${UNAME_MACHINE}
|
|
|
dc872b |
#else
|
|
|
dc872b |
CPU=
|
|
|
dc872b |
#endif
|
|
|
dc872b |
#endif
|
|
|
dc872b |
EOF
|
|
|
dc872b |
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
|
dc872b |
- /^CPU/{
|
|
|
dc872b |
- s: ::g
|
|
|
dc872b |
- p
|
|
|
dc872b |
- }'`"
|
|
|
dc872b |
- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
- mips64:Linux:*:*)
|
|
|
dc872b |
- eval $set_cc_for_build
|
|
|
dc872b |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
- #undef CPU
|
|
|
dc872b |
- #undef mips64
|
|
|
dc872b |
- #undef mips64el
|
|
|
dc872b |
- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
|
|
|
dc872b |
- CPU=mips64el
|
|
|
dc872b |
- #else
|
|
|
dc872b |
- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
|
|
|
dc872b |
- CPU=mips64
|
|
|
dc872b |
- #else
|
|
|
dc872b |
- CPU=
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
-EOF
|
|
|
dc872b |
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
|
dc872b |
- /^CPU/{
|
|
|
dc872b |
- s: ::g
|
|
|
dc872b |
- p
|
|
|
dc872b |
- }'`"
|
|
|
dc872b |
+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
|
|
|
dc872b |
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
|
|
|
dc872b |
;;
|
|
|
dc872b |
or32:Linux:*:*)
|
|
|
dc872b |
- echo or32-unknown-linux-gnu
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
- ppc:Linux:*:*)
|
|
|
dc872b |
- echo powerpc-unknown-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- ppc64:Linux:*:*)
|
|
|
dc872b |
- echo powerpc64-unknown-linux-gnu
|
|
|
dc872b |
+ padre:Linux:*:*)
|
|
|
dc872b |
+ echo sparc-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- alpha:Linux:*:*)
|
|
|
dc872b |
- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
|
|
|
dc872b |
- EV5) UNAME_MACHINE=alphaev5 ;;
|
|
|
dc872b |
- EV56) UNAME_MACHINE=alphaev56 ;;
|
|
|
dc872b |
- PCA56) UNAME_MACHINE=alphapca56 ;;
|
|
|
dc872b |
- PCA57) UNAME_MACHINE=alphapca56 ;;
|
|
|
dc872b |
- EV6) UNAME_MACHINE=alphaev6 ;;
|
|
|
dc872b |
- EV67) UNAME_MACHINE=alphaev67 ;;
|
|
|
dc872b |
- EV68*) UNAME_MACHINE=alphaev68 ;;
|
|
|
dc872b |
- esac
|
|
|
dc872b |
- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
|
|
|
dc872b |
- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
|
|
|
dc872b |
- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
|
|
|
dc872b |
+ parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
|
dc872b |
+ echo hppa64-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
parisc:Linux:*:* | hppa:Linux:*:*)
|
|
|
dc872b |
# Look for CPU level
|
|
|
dc872b |
@@ -933,14 +976,17 @@
|
|
|
dc872b |
*) echo hppa-unknown-linux-gnu ;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- parisc64:Linux:*:* | hppa64:Linux:*:*)
|
|
|
dc872b |
- echo hppa64-unknown-linux-gnu
|
|
|
dc872b |
+ ppc64:Linux:*:*)
|
|
|
dc872b |
+ echo powerpc64-unknown-linux-gnu
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ ppc:Linux:*:*)
|
|
|
dc872b |
+ echo powerpc-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
s390:Linux:*:* | s390x:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-ibm-linux
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
sh64*:Linux:*:*)
|
|
|
dc872b |
- echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
sh*:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
@@ -948,78 +994,18 @@
|
|
|
dc872b |
sparc:Linux:*:* | sparc64:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ tile*:Linux:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
vax:Linux:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-dec-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
x86_64:Linux:*:*)
|
|
|
dc872b |
- echo x86_64-unknown-linux-gnu
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- xtensa:Linux:*:*)
|
|
|
dc872b |
- echo xtensa-unknown-linux-gnu
|
|
|
dc872b |
+ xtensa*:Linux:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-linux-gnu
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- i*86:Linux:*:*)
|
|
|
dc872b |
- # The BFD linker knows what the default object file format is, so
|
|
|
dc872b |
- # first see if it will tell us. cd to the root directory to prevent
|
|
|
dc872b |
- # problems with other programs or directories called `ld' in the path.
|
|
|
dc872b |
- # Set LC_ALL=C to ensure ld outputs messages in English.
|
|
|
dc872b |
- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
|
|
|
dc872b |
- | sed -ne '/supported targets:/!d
|
|
|
dc872b |
- s/[ ][ ]*/ /g
|
|
|
dc872b |
- s/.*supported targets: *//
|
|
|
dc872b |
- s/ .*//
|
|
|
dc872b |
- p'`
|
|
|
dc872b |
- case "$ld_supported_targets" in
|
|
|
dc872b |
- elf32-i386)
|
|
|
dc872b |
- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
- a.out-i386-linux)
|
|
|
dc872b |
- echo "${UNAME_MACHINE}-pc-linux-gnuaout"
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
- coff-i386)
|
|
|
dc872b |
- echo "${UNAME_MACHINE}-pc-linux-gnucoff"
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
- "")
|
|
|
dc872b |
- # Either a pre-BFD a.out linker (linux-gnuoldld) or
|
|
|
dc872b |
- # one that does not give us useful --help.
|
|
|
dc872b |
- echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
- esac
|
|
|
dc872b |
- # Determine whether the default compiler is a.out or elf
|
|
|
dc872b |
- eval $set_cc_for_build
|
|
|
dc872b |
- sed 's/^ //' << EOF >$dummy.c
|
|
|
dc872b |
- #include <features.h>
|
|
|
dc872b |
- #ifdef __ELF__
|
|
|
dc872b |
- # ifdef __GLIBC__
|
|
|
dc872b |
- # if __GLIBC__ >= 2
|
|
|
dc872b |
- LIBC=gnu
|
|
|
dc872b |
- # else
|
|
|
dc872b |
- LIBC=gnulibc1
|
|
|
dc872b |
- # endif
|
|
|
dc872b |
- # else
|
|
|
dc872b |
- LIBC=gnulibc1
|
|
|
dc872b |
- # endif
|
|
|
dc872b |
- #else
|
|
|
dc872b |
- #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
|
|
|
dc872b |
- LIBC=gnu
|
|
|
dc872b |
- #else
|
|
|
dc872b |
- LIBC=gnuaout
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
- #ifdef __dietlibc__
|
|
|
dc872b |
- LIBC=dietlibc
|
|
|
dc872b |
- #endif
|
|
|
dc872b |
-EOF
|
|
|
dc872b |
- eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
|
|
|
dc872b |
- /^LIBC/{
|
|
|
dc872b |
- s: ::g
|
|
|
dc872b |
- p
|
|
|
dc872b |
- }'`"
|
|
|
dc872b |
- test x"${LIBC}" != x && {
|
|
|
dc872b |
- echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
|
|
|
dc872b |
- exit
|
|
|
dc872b |
- }
|
|
|
dc872b |
- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
i*86:DYNIX/ptx:4*:*)
|
|
|
dc872b |
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
|
|
|
dc872b |
# earlier versions are messed up and put the nodename in both
|
|
|
dc872b |
@@ -1027,11 +1013,11 @@
|
|
|
dc872b |
echo i386-sequent-sysv4
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*86:UNIX_SV:4.2MP:2.*)
|
|
|
dc872b |
- # Unixware is an offshoot of SVR4, but it has its own version
|
|
|
dc872b |
- # number series starting with 2...
|
|
|
dc872b |
- # I am not positive that other SVR4 systems won't match this,
|
|
|
dc872b |
+ # Unixware is an offshoot of SVR4, but it has its own version
|
|
|
dc872b |
+ # number series starting with 2...
|
|
|
dc872b |
+ # I am not positive that other SVR4 systems won't match this,
|
|
|
dc872b |
# I just have to hope. -- rms.
|
|
|
dc872b |
- # Use sysv4.2uw... so that sysv4* matches it.
|
|
|
dc872b |
+ # Use sysv4.2uw... so that sysv4* matches it.
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*86:OS/2:*:*)
|
|
|
dc872b |
@@ -1048,7 +1034,7 @@
|
|
|
dc872b |
i*86:syllable:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-syllable
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
|
|
|
dc872b |
+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
|
|
|
dc872b |
echo i386-unknown-lynxos${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*86:*DOS:*:*)
|
|
|
dc872b |
@@ -1063,7 +1049,7 @@
|
|
|
dc872b |
fi
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
i*86:*:5:[678]*)
|
|
|
dc872b |
- # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
|
|
dc872b |
+ # UnixWare 7.x, OpenUNIX and OpenServer 6.
|
|
|
dc872b |
case `/bin/uname -X | grep "^Machine"` in
|
|
|
dc872b |
*486*) UNAME_MACHINE=i486 ;;
|
|
|
dc872b |
*Pentium) UNAME_MACHINE=i586 ;;
|
|
|
dc872b |
@@ -1091,10 +1077,13 @@
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
pc:*:*:*)
|
|
|
dc872b |
# Left here for compatibility:
|
|
|
dc872b |
- # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
|
|
dc872b |
- # the processor, so we play safe by assuming i386.
|
|
|
dc872b |
- echo i386-pc-msdosdjgpp
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ # uname -m prints for DJGPP always 'pc', but it prints nothing about
|
|
|
dc872b |
+ # the processor, so we play safe by assuming i586.
|
|
|
dc872b |
+ # Note: whatever this is, it MUST be the same as what config.sub
|
|
|
dc872b |
+ # prints for the "djgpp" host, or else GDB configury will decide that
|
|
|
dc872b |
+ # this is a cross-build.
|
|
|
dc872b |
+ echo i586-pc-msdosdjgpp
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
Intel:Mach:3*:*)
|
|
|
dc872b |
echo i386-pc-mach3
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -1129,8 +1118,18 @@
|
|
|
dc872b |
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
|
dc872b |
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
|
dc872b |
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
|
|
|
dc872b |
- /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
dc872b |
- && { echo i486-ncr-sysv4; exit; } ;;
|
|
|
dc872b |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
dc872b |
+ && { echo i486-ncr-sysv4; exit; } ;;
|
|
|
dc872b |
+ NCR*:*:4.2:* | MPRAS*:*:4.2:*)
|
|
|
dc872b |
+ OS_REL='.3'
|
|
|
dc872b |
+ test -r /etc/.relid \
|
|
|
dc872b |
+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
|
|
|
dc872b |
+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
|
|
|
dc872b |
+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
|
|
|
dc872b |
+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
|
|
|
dc872b |
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
|
|
|
dc872b |
+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
|
|
|
dc872b |
+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
|
|
|
dc872b |
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
|
|
|
dc872b |
echo m68k-unknown-lynxos${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -1143,7 +1142,7 @@
|
|
|
dc872b |
rs6000:LynxOS:2.*:*)
|
|
|
dc872b |
echo rs6000-unknown-lynxos${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
|
|
|
dc872b |
+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
|
|
|
dc872b |
echo powerpc-unknown-lynxos${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
SM[BE]S:UNIX_SV:*:*)
|
|
|
dc872b |
@@ -1163,10 +1162,10 @@
|
|
|
dc872b |
echo ns32k-sni-sysv
|
|
|
dc872b |
fi
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
|
|
dc872b |
- # says <Richard.M.Bartel@ccMail.Census.GOV>
|
|
|
dc872b |
- echo i586-unisys-sysv4
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
|
|
|
dc872b |
+ # says <Richard.M.Bartel@ccMail.Census.GOV>
|
|
|
dc872b |
+ echo i586-unisys-sysv4
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
*:UNIX_System_V:4*:FTX*)
|
|
|
dc872b |
# From Gerald Hewes <hewes@openmarket.com>.
|
|
|
dc872b |
# How about differentiating between stratus architectures? -djm
|
|
|
dc872b |
@@ -1192,11 +1191,11 @@
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
|
|
|
dc872b |
if [ -d /usr/nec ]; then
|
|
|
dc872b |
- echo mips-nec-sysv${UNAME_RELEASE}
|
|
|
dc872b |
+ echo mips-nec-sysv${UNAME_RELEASE}
|
|
|
dc872b |
else
|
|
|
dc872b |
- echo mips-unknown-sysv${UNAME_RELEASE}
|
|
|
dc872b |
+ echo mips-unknown-sysv${UNAME_RELEASE}
|
|
|
dc872b |
fi
|
|
|
dc872b |
- exit ;;
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
|
|
|
dc872b |
echo powerpc-be-beos
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -1206,6 +1205,12 @@
|
|
|
dc872b |
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
|
|
|
dc872b |
echo i586-pc-beos
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
|
|
|
dc872b |
+ echo i586-pc-haiku
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ x86_64:Haiku:*:*)
|
|
|
dc872b |
+ echo x86_64-unknown-haiku
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
SX-4:SUPER-UX:*:*)
|
|
|
dc872b |
echo sx4-nec-superux${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
@@ -1233,6 +1238,16 @@
|
|
|
dc872b |
*:Darwin:*:*)
|
|
|
dc872b |
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
|
|
|
dc872b |
case $UNAME_PROCESSOR in
|
|
|
dc872b |
+ i386)
|
|
|
dc872b |
+ eval $set_cc_for_build
|
|
|
dc872b |
+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
|
|
|
dc872b |
+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
|
|
|
dc872b |
+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
|
|
|
dc872b |
+ grep IS_64BIT_ARCH >/dev/null
|
|
|
dc872b |
+ then
|
|
|
dc872b |
+ UNAME_PROCESSOR="x86_64"
|
|
|
dc872b |
+ fi
|
|
|
dc872b |
+ fi ;;
|
|
|
dc872b |
unknown) UNAME_PROCESSOR=powerpc ;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
|
|
|
dc872b |
@@ -1248,7 +1263,10 @@
|
|
|
dc872b |
*:QNX:*:4*)
|
|
|
dc872b |
echo i386-pc-qnx
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
- NSE-?:NONSTOP_KERNEL:*:*)
|
|
|
dc872b |
+ NEO-?:NONSTOP_KERNEL:*:*)
|
|
|
dc872b |
+ echo neo-tandem-nsk${UNAME_RELEASE}
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ NSE-*:NONSTOP_KERNEL:*:*)
|
|
|
dc872b |
echo nse-tandem-nsk${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
NSR-?:NONSTOP_KERNEL:*:*)
|
|
|
dc872b |
@@ -1293,13 +1311,13 @@
|
|
|
dc872b |
echo pdp10-unknown-its
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
SEI:*:*:SEIUX)
|
|
|
dc872b |
- echo mips-sei-seiux${UNAME_RELEASE}
|
|
|
dc872b |
+ echo mips-sei-seiux${UNAME_RELEASE}
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
*:DragonFly:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
*:*VMS:*:*)
|
|
|
dc872b |
- UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
|
dc872b |
+ UNAME_MACHINE=`(uname -p) 2>/dev/null`
|
|
|
dc872b |
case "${UNAME_MACHINE}" in
|
|
|
dc872b |
A*) echo alpha-dec-vms ; exit ;;
|
|
|
dc872b |
I*) echo ia64-dec-vms ; exit ;;
|
|
|
dc872b |
@@ -1314,11 +1332,14 @@
|
|
|
dc872b |
i*86:rdos:*:*)
|
|
|
dc872b |
echo ${UNAME_MACHINE}-pc-rdos
|
|
|
dc872b |
exit ;;
|
|
|
dc872b |
+ i*86:AROS:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-pc-aros
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
+ x86_64:VMkernel:*:*)
|
|
|
dc872b |
+ echo ${UNAME_MACHINE}-unknown-esx
|
|
|
dc872b |
+ exit ;;
|
|
|
dc872b |
esac
|
|
|
dc872b |
|
|
|
dc872b |
-#echo '(No uname command or uname output not recognized.)' 1>&2
|
|
|
dc872b |
-#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
|
|
|
dc872b |
-
|
|
|
dc872b |
eval $set_cc_for_build
|
|
|
dc872b |
cat >$dummy.c <
|
|
|
dc872b |
#ifdef _SEQUENT_
|
|
|
dc872b |
@@ -1336,11 +1357,11 @@
|
|
|
dc872b |
#include <sys/param.h>
|
|
|
dc872b |
printf ("m68k-sony-newsos%s\n",
|
|
|
dc872b |
#ifdef NEWSOS4
|
|
|
dc872b |
- "4"
|
|
|
dc872b |
+ "4"
|
|
|
dc872b |
#else
|
|
|
dc872b |
- ""
|
|
|
dc872b |
+ ""
|
|
|
dc872b |
#endif
|
|
|
dc872b |
- ); exit (0);
|
|
|
dc872b |
+ ); exit (0);
|
|
|
dc872b |
#endif
|
|
|
dc872b |
#endif
|
|
|
dc872b |
|
|
|
dc872b |
@@ -1474,9 +1495,9 @@
|
|
|
dc872b |
the operating system you are using. It is advised that you
|
|
|
dc872b |
download the most up to date version of the config scripts from
|
|
|
dc872b |
|
|
|
dc872b |
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
|
|
|
dc872b |
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
|
|
|
dc872b |
and
|
|
|
dc872b |
- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
|
|
|
dc872b |
+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
|
|
dc872b |
|
|
|
dc872b |
If the version you run ($0) is already up to date, please
|
|
|
dc872b |
send the following data and any information you think might be
|
|
|
dc872b |
diff -urN fontforge-20120731-b/config.sub fontforge-20120731-b-aarch64/config.sub
|
|
|
dc872b |
--- fontforge-20120731-b/config.sub 2012-08-02 10:09:08.000000000 -0500
|
|
|
dc872b |
+++ fontforge-20120731-b-aarch64/config.sub 2013-03-03 04:42:30.885063212 -0600
|
|
|
dc872b |
@@ -1,10 +1,10 @@
|
|
|
dc872b |
#! /bin/sh
|
|
|
dc872b |
# Configuration validation subroutine script.
|
|
|
dc872b |
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
|
|
|
dc872b |
-# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
|
|
|
dc872b |
-# Inc.
|
|
|
dc872b |
+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
|
|
|
dc872b |
+# 2011, 2012 Free Software Foundation, Inc.
|
|
|
dc872b |
|
|
|
dc872b |
-timestamp='2007-06-28'
|
|
|
dc872b |
+timestamp='2012-10-10'
|
|
|
dc872b |
|
|
|
dc872b |
# This file is (in principle) common to ALL GNU software.
|
|
|
dc872b |
# The presence of a machine in this file suggests that SOME GNU software
|
|
|
dc872b |
@@ -21,9 +21,7 @@
|
|
|
dc872b |
# GNU General Public License for more details.
|
|
|
dc872b |
#
|
|
|
dc872b |
# You should have received a copy of the GNU General Public License
|
|
|
dc872b |
-# along with this program; if not, write to the Free Software
|
|
|
dc872b |
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
|
|
|
dc872b |
-# 02110-1301, USA.
|
|
|
dc872b |
+# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
|
|
dc872b |
#
|
|
|
dc872b |
# As a special exception to the GNU General Public License, if you
|
|
|
dc872b |
# distribute this file as part of a program that contains a
|
|
|
dc872b |
@@ -32,13 +30,16 @@
|
|
|
dc872b |
|
|
|
dc872b |
|
|
|
dc872b |
# Please send patches to <config-patches@gnu.org>. Submit a context
|
|
|
dc872b |
-# diff and a properly formatted ChangeLog entry.
|
|
|
dc872b |
+# diff and a properly formatted GNU ChangeLog entry.
|
|
|
dc872b |
#
|
|
|
dc872b |
# Configuration subroutine to validate and canonicalize a configuration type.
|
|
|
dc872b |
# Supply the specified configuration type as an argument.
|
|
|
dc872b |
# If it is invalid, we print an error message on stderr and exit with code 1.
|
|
|
dc872b |
# Otherwise, we print the canonical config type on stdout and succeed.
|
|
|
dc872b |
|
|
|
dc872b |
+# You can get the latest version of this script from:
|
|
|
dc872b |
+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
|
|
|
dc872b |
+
|
|
|
dc872b |
# This file is supposed to be the same for all GNU packages
|
|
|
dc872b |
# and recognize all the CPU types, system types and aliases
|
|
|
dc872b |
# that are meaningful with *any* GNU software.
|
|
|
dc872b |
@@ -72,7 +73,8 @@
|
|
|
dc872b |
version="\
|
|
|
dc872b |
GNU config.sub ($timestamp)
|
|
|
dc872b |
|
|
|
dc872b |
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
|
|
|
dc872b |
+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
|
|
|
dc872b |
+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
|
|
|
dc872b |
Free Software Foundation, Inc.
|
|
|
dc872b |
|
|
|
dc872b |
This is free software; see the source for copying conditions. There is NO
|
|
|
dc872b |
@@ -120,12 +122,18 @@
|
|
|
dc872b |
# Here we must recognize all the valid KERNEL-OS combinations.
|
|
|
dc872b |
maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
|
|
|
dc872b |
case $maybe_os in
|
|
|
dc872b |
- nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
|
|
|
dc872b |
- uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
|
|
|
dc872b |
+ nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \
|
|
|
dc872b |
+ linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \
|
|
|
dc872b |
+ knetbsd*-gnu* | netbsd*-gnu* | \
|
|
|
dc872b |
+ kopensolaris*-gnu* | \
|
|
|
dc872b |
storm-chaos* | os2-emx* | rtmk-nova*)
|
|
|
dc872b |
os=-$maybe_os
|
|
|
dc872b |
basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ android-linux)
|
|
|
dc872b |
+ os=-linux-android
|
|
|
dc872b |
+ basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
*)
|
|
|
dc872b |
basic_machine=`echo $1 | sed 's/-[^-]*$//'`
|
|
|
dc872b |
if [ $basic_machine != $1 ]
|
|
|
dc872b |
@@ -148,10 +156,13 @@
|
|
|
dc872b |
-convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
|
|
|
dc872b |
-c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
|
|
|
dc872b |
-harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
|
|
|
dc872b |
- -apple | -axis | -knuth | -cray)
|
|
|
dc872b |
+ -apple | -axis | -knuth | -cray | -microblaze*)
|
|
|
dc872b |
os=
|
|
|
dc872b |
basic_machine=$1
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ -bluegene*)
|
|
|
dc872b |
+ os=-cnk
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
-sim | -cisco | -oki | -wec | -winbond)
|
|
|
dc872b |
os=
|
|
|
dc872b |
basic_machine=$1
|
|
|
dc872b |
@@ -166,10 +177,10 @@
|
|
|
dc872b |
os=-chorusos
|
|
|
dc872b |
basic_machine=$1
|
|
|
dc872b |
;;
|
|
|
dc872b |
- -chorusrdb)
|
|
|
dc872b |
- os=-chorusrdb
|
|
|
dc872b |
+ -chorusrdb)
|
|
|
dc872b |
+ os=-chorusrdb
|
|
|
dc872b |
basic_machine=$1
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
-hiux*)
|
|
|
dc872b |
os=-hiuxwe2
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -214,6 +225,12 @@
|
|
|
dc872b |
-isc*)
|
|
|
dc872b |
basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ -lynx*178)
|
|
|
dc872b |
+ os=-lynxos178
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ -lynx*5)
|
|
|
dc872b |
+ os=-lynxos5
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
-lynx*)
|
|
|
dc872b |
os=-lynxos
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -238,24 +255,32 @@
|
|
|
dc872b |
# Some are omitted here because they have special meanings below.
|
|
|
dc872b |
1750a | 580 \
|
|
|
dc872b |
| a29k \
|
|
|
dc872b |
+ | aarch64 | aarch64_be \
|
|
|
dc872b |
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
|
|
|
dc872b |
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
|
|
|
dc872b |
| am33_2.0 \
|
|
|
dc872b |
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
|
|
|
dc872b |
+ | be32 | be64 \
|
|
|
dc872b |
| bfin \
|
|
|
dc872b |
| c4x | clipper \
|
|
|
dc872b |
| d10v | d30v | dlx | dsp16xx \
|
|
|
dc872b |
+ | epiphany \
|
|
|
dc872b |
| fido | fr30 | frv \
|
|
|
dc872b |
| h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
|
|
|
dc872b |
+ | hexagon \
|
|
|
dc872b |
| i370 | i860 | i960 | ia64 \
|
|
|
dc872b |
| ip2k | iq2000 \
|
|
|
dc872b |
+ | le32 | le64 \
|
|
|
dc872b |
+ | lm32 \
|
|
|
dc872b |
| m32c | m32r | m32rle | m68000 | m68k | m88k \
|
|
|
dc872b |
- | maxq | mb | microblaze | mcore | mep \
|
|
|
dc872b |
+ | maxq | mb | microblaze | microblazeel | mcore | mep | metag \
|
|
|
dc872b |
| mips | mipsbe | mipseb | mipsel | mipsle \
|
|
|
dc872b |
| mips16 \
|
|
|
dc872b |
| mips64 | mips64el \
|
|
|
dc872b |
- | mips64vr | mips64vrel \
|
|
|
dc872b |
+ | mips64octeon | mips64octeonel \
|
|
|
dc872b |
| mips64orion | mips64orionel \
|
|
|
dc872b |
+ | mips64r5900 | mips64r5900el \
|
|
|
dc872b |
+ | mips64vr | mips64vrel \
|
|
|
dc872b |
| mips64vr4100 | mips64vr4100el \
|
|
|
dc872b |
| mips64vr4300 | mips64vr4300el \
|
|
|
dc872b |
| mips64vr5000 | mips64vr5000el \
|
|
|
dc872b |
@@ -268,29 +293,42 @@
|
|
|
dc872b |
| mipsisa64sr71k | mipsisa64sr71kel \
|
|
|
dc872b |
| mipstx39 | mipstx39el \
|
|
|
dc872b |
| mn10200 | mn10300 \
|
|
|
dc872b |
+ | moxie \
|
|
|
dc872b |
| mt \
|
|
|
dc872b |
| msp430 \
|
|
|
dc872b |
+ | nds32 | nds32le | nds32be \
|
|
|
dc872b |
| nios | nios2 \
|
|
|
dc872b |
| ns16k | ns32k \
|
|
|
dc872b |
+ | open8 \
|
|
|
dc872b |
| or32 \
|
|
|
dc872b |
| pdp10 | pdp11 | pj | pjl \
|
|
|
dc872b |
- | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
|
|
|
dc872b |
+ | powerpc | powerpc64 | powerpc64le | powerpcle \
|
|
|
dc872b |
| pyramid \
|
|
|
dc872b |
+ | rl78 | rx \
|
|
|
dc872b |
| score \
|
|
|
dc872b |
- | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
|
|
dc872b |
+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
|
|
|
dc872b |
| sh64 | sh64le \
|
|
|
dc872b |
| sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
|
|
|
dc872b |
| sparcv8 | sparcv9 | sparcv9b | sparcv9v \
|
|
|
dc872b |
- | spu | strongarm \
|
|
|
dc872b |
- | tahoe | thumb | tic4x | tic80 | tron \
|
|
|
dc872b |
- | v850 | v850e \
|
|
|
dc872b |
+ | spu \
|
|
|
dc872b |
+ | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \
|
|
|
dc872b |
+ | ubicom32 \
|
|
|
dc872b |
+ | v850 | v850e | v850e1 | v850e2 | v850es | v850e2v3 \
|
|
|
dc872b |
| we32k \
|
|
|
dc872b |
- | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
|
|
|
dc872b |
- | z8k)
|
|
|
dc872b |
+ | x86 | xc16x | xstormy16 | xtensa \
|
|
|
dc872b |
+ | z8k | z80)
|
|
|
dc872b |
basic_machine=$basic_machine-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
- m6811 | m68hc11 | m6812 | m68hc12)
|
|
|
dc872b |
- # Motorola 68HC11/12.
|
|
|
dc872b |
+ c54x)
|
|
|
dc872b |
+ basic_machine=tic54x-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ c55x)
|
|
|
dc872b |
+ basic_machine=tic55x-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ c6x)
|
|
|
dc872b |
+ basic_machine=tic6x-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ m6811 | m68hc11 | m6812 | m68hc12 | m68hcs12x | picochip)
|
|
|
dc872b |
basic_machine=$basic_machine-unknown
|
|
|
dc872b |
os=-none
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -300,6 +338,21 @@
|
|
|
dc872b |
basic_machine=mt-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
|
|
|
dc872b |
+ strongarm | thumb | xscale)
|
|
|
dc872b |
+ basic_machine=arm-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ xgate)
|
|
|
dc872b |
+ basic_machine=$basic_machine-unknown
|
|
|
dc872b |
+ os=-none
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ xscaleeb)
|
|
|
dc872b |
+ basic_machine=armeb-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+
|
|
|
dc872b |
+ xscaleel)
|
|
|
dc872b |
+ basic_machine=armel-unknown
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+
|
|
|
dc872b |
# We use `pc' rather than `unknown'
|
|
|
dc872b |
# because (1) that's what they normally are, and
|
|
|
dc872b |
# (2) the word "unknown" tends to confuse beginning users.
|
|
|
dc872b |
@@ -314,29 +367,37 @@
|
|
|
dc872b |
# Recognize the basic CPU types with company name.
|
|
|
dc872b |
580-* \
|
|
|
dc872b |
| a29k-* \
|
|
|
dc872b |
+ | aarch64-* | aarch64_be-* \
|
|
|
dc872b |
| alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
|
|
|
dc872b |
| alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
|
|
|
dc872b |
| alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
|
|
|
dc872b |
| arm-* | armbe-* | armle-* | armeb-* | armv*-* \
|
|
|
dc872b |
| avr-* | avr32-* \
|
|
|
dc872b |
+ | be32-* | be64-* \
|
|
|
dc872b |
| bfin-* | bs2000-* \
|
|
|
dc872b |
- | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
|
|
|
dc872b |
+ | c[123]* | c30-* | [cjt]90-* | c4x-* \
|
|
|
dc872b |
| clipper-* | craynv-* | cydra-* \
|
|
|
dc872b |
| d10v-* | d30v-* | dlx-* \
|
|
|
dc872b |
| elxsi-* \
|
|
|
dc872b |
| f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
|
|
|
dc872b |
| h8300-* | h8500-* \
|
|
|
dc872b |
| hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
|
|
|
dc872b |
+ | hexagon-* \
|
|
|
dc872b |
| i*86-* | i860-* | i960-* | ia64-* \
|
|
|
dc872b |
| ip2k-* | iq2000-* \
|
|
|
dc872b |
+ | le32-* | le64-* \
|
|
|
dc872b |
+ | lm32-* \
|
|
|
dc872b |
| m32c-* | m32r-* | m32rle-* \
|
|
|
dc872b |
| m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
|
|
|
dc872b |
- | m88110-* | m88k-* | maxq-* | mcore-* \
|
|
|
dc872b |
+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
|
|
|
dc872b |
+ | microblaze-* | microblazeel-* \
|
|
|
dc872b |
| mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
|
|
|
dc872b |
| mips16-* \
|
|
|
dc872b |
| mips64-* | mips64el-* \
|
|
|
dc872b |
- | mips64vr-* | mips64vrel-* \
|
|
|
dc872b |
+ | mips64octeon-* | mips64octeonel-* \
|
|
|
dc872b |
| mips64orion-* | mips64orionel-* \
|
|
|
dc872b |
+ | mips64r5900-* | mips64r5900el-* \
|
|
|
dc872b |
+ | mips64vr-* | mips64vrel-* \
|
|
|
dc872b |
| mips64vr4100-* | mips64vr4100el-* \
|
|
|
dc872b |
| mips64vr4300-* | mips64vr4300el-* \
|
|
|
dc872b |
| mips64vr5000-* | mips64vr5000el-* \
|
|
|
dc872b |
@@ -351,27 +412,36 @@
|
|
|
dc872b |
| mmix-* \
|
|
|
dc872b |
| mt-* \
|
|
|
dc872b |
| msp430-* \
|
|
|
dc872b |
+ | nds32-* | nds32le-* | nds32be-* \
|
|
|
dc872b |
| nios-* | nios2-* \
|
|
|
dc872b |
| none-* | np1-* | ns16k-* | ns32k-* \
|
|
|
dc872b |
+ | open8-* \
|
|
|
dc872b |
| orion-* \
|
|
|
dc872b |
| pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
|
|
|
dc872b |
- | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
|
|
|
dc872b |
+ | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* \
|
|
|
dc872b |
| pyramid-* \
|
|
|
dc872b |
- | romp-* | rs6000-* \
|
|
|
dc872b |
- | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
|
|
dc872b |
+ | rl78-* | romp-* | rs6000-* | rx-* \
|
|
|
dc872b |
+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
|
|
|
dc872b |
| shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
|
|
|
dc872b |
| sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
|
|
|
dc872b |
| sparclite-* \
|
|
|
dc872b |
- | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
|
|
|
dc872b |
- | tahoe-* | thumb-* \
|
|
|
dc872b |
+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | sv1-* | sx?-* \
|
|
|
dc872b |
+ | tahoe-* \
|
|
|
dc872b |
| tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
|
|
|
dc872b |
+ | tile*-* \
|
|
|
dc872b |
| tron-* \
|
|
|
dc872b |
- | v850-* | v850e-* | vax-* \
|
|
|
dc872b |
+ | ubicom32-* \
|
|
|
dc872b |
+ | v850-* | v850e-* | v850e1-* | v850es-* | v850e2-* | v850e2v3-* \
|
|
|
dc872b |
+ | vax-* \
|
|
|
dc872b |
| we32k-* \
|
|
|
dc872b |
- | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
|
|
|
dc872b |
- | xstormy16-* | xtensa-* \
|
|
|
dc872b |
+ | x86-* | x86_64-* | xc16x-* | xps100-* \
|
|
|
dc872b |
+ | xstormy16-* | xtensa*-* \
|
|
|
dc872b |
| ymp-* \
|
|
|
dc872b |
- | z8k-*)
|
|
|
dc872b |
+ | z8k-* | z80-*)
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ # Recognize the basic CPU types without company name, with glob match.
|
|
|
dc872b |
+ xtensa*)
|
|
|
dc872b |
+ basic_machine=$basic_machine-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
# Recognize the various machine names and aliases which stand
|
|
|
dc872b |
# for a CPU type and a company and sometimes even an OS.
|
|
|
dc872b |
@@ -389,7 +459,7 @@
|
|
|
dc872b |
basic_machine=a29k-amd
|
|
|
dc872b |
os=-udi
|
|
|
dc872b |
;;
|
|
|
dc872b |
- abacus)
|
|
|
dc872b |
+ abacus)
|
|
|
dc872b |
basic_machine=abacus-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
adobe68k)
|
|
|
dc872b |
@@ -435,6 +505,10 @@
|
|
|
dc872b |
basic_machine=m68k-apollo
|
|
|
dc872b |
os=-bsd
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ aros)
|
|
|
dc872b |
+ basic_machine=i386-pc
|
|
|
dc872b |
+ os=-aros
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
aux)
|
|
|
dc872b |
basic_machine=m68k-apple
|
|
|
dc872b |
os=-aux
|
|
|
dc872b |
@@ -443,10 +517,35 @@
|
|
|
dc872b |
basic_machine=ns32k-sequent
|
|
|
dc872b |
os=-dynix
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ blackfin)
|
|
|
dc872b |
+ basic_machine=bfin-unknown
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ blackfin-*)
|
|
|
dc872b |
+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ bluegene*)
|
|
|
dc872b |
+ basic_machine=powerpc-ibm
|
|
|
dc872b |
+ os=-cnk
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ c54x-*)
|
|
|
dc872b |
+ basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ c55x-*)
|
|
|
dc872b |
+ basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ c6x-*)
|
|
|
dc872b |
+ basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
c90)
|
|
|
dc872b |
basic_machine=c90-cray
|
|
|
dc872b |
os=-unicos
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ cegcc)
|
|
|
dc872b |
+ basic_machine=arm-unknown
|
|
|
dc872b |
+ os=-cegcc
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
convex-c1)
|
|
|
dc872b |
basic_machine=c1-convex
|
|
|
dc872b |
os=-bsd
|
|
|
dc872b |
@@ -475,7 +574,7 @@
|
|
|
dc872b |
basic_machine=craynv-cray
|
|
|
dc872b |
os=-unicosmp
|
|
|
dc872b |
;;
|
|
|
dc872b |
- cr16)
|
|
|
dc872b |
+ cr16 | cr16-*)
|
|
|
dc872b |
basic_machine=cr16-unknown
|
|
|
dc872b |
os=-elf
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -514,6 +613,10 @@
|
|
|
dc872b |
basic_machine=m88k-motorola
|
|
|
dc872b |
os=-sysv3
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ dicos)
|
|
|
dc872b |
+ basic_machine=i686-pc
|
|
|
dc872b |
+ os=-dicos
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
djgpp)
|
|
|
dc872b |
basic_machine=i586-pc
|
|
|
dc872b |
os=-msdosdjgpp
|
|
|
dc872b |
@@ -629,7 +732,6 @@
|
|
|
dc872b |
i370-ibm* | ibm*)
|
|
|
dc872b |
basic_machine=i370-ibm
|
|
|
dc872b |
;;
|
|
|
dc872b |
-# I'm not sure what "Sysv32" means. Should this be sysv3.2?
|
|
|
dc872b |
i*86v32)
|
|
|
dc872b |
basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
|
|
|
dc872b |
os=-sysv32
|
|
|
dc872b |
@@ -668,6 +770,14 @@
|
|
|
dc872b |
basic_machine=m68k-isi
|
|
|
dc872b |
os=-sysv
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ m68knommu)
|
|
|
dc872b |
+ basic_machine=m68k-unknown
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ m68knommu-*)
|
|
|
dc872b |
+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
m88k-omron*)
|
|
|
dc872b |
basic_machine=m88k-omron
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -679,6 +789,13 @@
|
|
|
dc872b |
basic_machine=ns32k-utek
|
|
|
dc872b |
os=-sysv
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ microblaze*)
|
|
|
dc872b |
+ basic_machine=microblaze-xilinx
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ mingw64)
|
|
|
dc872b |
+ basic_machine=x86_64-pc
|
|
|
dc872b |
+ os=-mingw64
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
mingw32)
|
|
|
dc872b |
basic_machine=i386-pc
|
|
|
dc872b |
os=-mingw32
|
|
|
dc872b |
@@ -715,10 +832,18 @@
|
|
|
dc872b |
ms1-*)
|
|
|
dc872b |
basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ msys)
|
|
|
dc872b |
+ basic_machine=i386-pc
|
|
|
dc872b |
+ os=-msys
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
mvs)
|
|
|
dc872b |
basic_machine=i370-ibm
|
|
|
dc872b |
os=-mvs
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ nacl)
|
|
|
dc872b |
+ basic_machine=le32-unknown
|
|
|
dc872b |
+ os=-nacl
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
ncr3000)
|
|
|
dc872b |
basic_machine=i486-ncr
|
|
|
dc872b |
os=-sysv4
|
|
|
dc872b |
@@ -783,6 +908,12 @@
|
|
|
dc872b |
np1)
|
|
|
dc872b |
basic_machine=np1-gould
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ neo-tandem)
|
|
|
dc872b |
+ basic_machine=neo-tandem
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ nse-tandem)
|
|
|
dc872b |
+ basic_machine=nse-tandem
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
nsr-tandem)
|
|
|
dc872b |
basic_machine=nsr-tandem
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -813,6 +944,14 @@
|
|
|
dc872b |
basic_machine=i860-intel
|
|
|
dc872b |
os=-osf
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ parisc)
|
|
|
dc872b |
+ basic_machine=hppa-unknown
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ parisc-*)
|
|
|
dc872b |
+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ os=-linux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
pbd)
|
|
|
dc872b |
basic_machine=sparc-tti
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -857,9 +996,10 @@
|
|
|
dc872b |
;;
|
|
|
dc872b |
power) basic_machine=power-ibm
|
|
|
dc872b |
;;
|
|
|
dc872b |
- ppc) basic_machine=powerpc-unknown
|
|
|
dc872b |
+ ppc | ppcbe) basic_machine=powerpc-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
- ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ ppc-* | ppcbe-*)
|
|
|
dc872b |
+ basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
ppcle | powerpclittle | ppc-le | powerpc-little)
|
|
|
dc872b |
basic_machine=powerpcle-unknown
|
|
|
dc872b |
@@ -953,6 +1093,9 @@
|
|
|
dc872b |
basic_machine=i860-stratus
|
|
|
dc872b |
os=-sysv4
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ strongarm-* | thumb-*)
|
|
|
dc872b |
+ basic_machine=arm-`echo $basic_machine | sed 's/^[^-]*-//'`
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
sun2)
|
|
|
dc872b |
basic_machine=m68000-sun
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -1009,17 +1152,9 @@
|
|
|
dc872b |
basic_machine=t90-cray
|
|
|
dc872b |
os=-unicos
|
|
|
dc872b |
;;
|
|
|
dc872b |
- tic54x | c54x*)
|
|
|
dc872b |
- basic_machine=tic54x-unknown
|
|
|
dc872b |
- os=-coff
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
- tic55x | c55x*)
|
|
|
dc872b |
- basic_machine=tic55x-unknown
|
|
|
dc872b |
- os=-coff
|
|
|
dc872b |
- ;;
|
|
|
dc872b |
- tic6x | c6x*)
|
|
|
dc872b |
- basic_machine=tic6x-unknown
|
|
|
dc872b |
- os=-coff
|
|
|
dc872b |
+ tile*)
|
|
|
dc872b |
+ basic_machine=$basic_machine-unknown
|
|
|
dc872b |
+ os=-linux-gnu
|
|
|
dc872b |
;;
|
|
|
dc872b |
tx39)
|
|
|
dc872b |
basic_machine=mipstx39-unknown
|
|
|
dc872b |
@@ -1088,6 +1223,9 @@
|
|
|
dc872b |
xps | xps100)
|
|
|
dc872b |
basic_machine=xps100-honeywell
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ xscale-* | xscalee[bl]-*)
|
|
|
dc872b |
+ basic_machine=`echo $basic_machine | sed 's/^xscale/arm/'`
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
ymp)
|
|
|
dc872b |
basic_machine=ymp-cray
|
|
|
dc872b |
os=-unicos
|
|
|
dc872b |
@@ -1096,6 +1234,10 @@
|
|
|
dc872b |
basic_machine=z8k-unknown
|
|
|
dc872b |
os=-sim
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ z80-*-coff)
|
|
|
dc872b |
+ basic_machine=z80-unknown
|
|
|
dc872b |
+ os=-sim
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
none)
|
|
|
dc872b |
basic_machine=none-none
|
|
|
dc872b |
os=-none
|
|
|
dc872b |
@@ -1134,7 +1276,7 @@
|
|
|
dc872b |
we32k)
|
|
|
dc872b |
basic_machine=we32k-att
|
|
|
dc872b |
;;
|
|
|
dc872b |
- sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)
|
|
|
dc872b |
+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
|
|
|
dc872b |
basic_machine=sh-unknown
|
|
|
dc872b |
;;
|
|
|
dc872b |
sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
|
|
|
dc872b |
@@ -1181,9 +1323,12 @@
|
|
|
dc872b |
if [ x"$os" != x"" ]
|
|
|
dc872b |
then
|
|
|
dc872b |
case $os in
|
|
|
dc872b |
- # First match some system type aliases
|
|
|
dc872b |
- # that might get confused with valid system types.
|
|
|
dc872b |
+ # First match some system type aliases
|
|
|
dc872b |
+ # that might get confused with valid system types.
|
|
|
dc872b |
# -solaris* is a basic system type, with this one exception.
|
|
|
dc872b |
+ -auroraux)
|
|
|
dc872b |
+ os=-auroraux
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
-solaris1 | -solaris1.*)
|
|
|
dc872b |
os=`echo $os | sed -e 's|solaris1|sunos4|'`
|
|
|
dc872b |
;;
|
|
|
dc872b |
@@ -1204,21 +1349,23 @@
|
|
|
dc872b |
# Each alternative MUST END IN A *, to match a version number.
|
|
|
dc872b |
# -sysv* is not here because it comes later, after sysvr4.
|
|
|
dc872b |
-gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
|
|
|
dc872b |
- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
|
|
|
dc872b |
- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
|
|
|
dc872b |
+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
|
|
|
dc872b |
+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \
|
|
|
dc872b |
+ | -sym* | -kopensolaris* \
|
|
|
dc872b |
| -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
|
|
|
dc872b |
- | -aos* \
|
|
|
dc872b |
+ | -aos* | -aros* \
|
|
|
dc872b |
| -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
|
|
|
dc872b |
| -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
|
|
|
dc872b |
| -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
|
|
|
dc872b |
- | -openbsd* | -solidbsd* \
|
|
|
dc872b |
+ | -bitrig* | -openbsd* | -solidbsd* \
|
|
|
dc872b |
| -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
|
|
|
dc872b |
| -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
|
|
|
dc872b |
| -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
|
|
|
dc872b |
| -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
|
|
|
dc872b |
- | -chorusos* | -chorusrdb* \
|
|
|
dc872b |
- | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
|
dc872b |
- | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
|
|
|
dc872b |
+ | -chorusos* | -chorusrdb* | -cegcc* \
|
|
|
dc872b |
+ | -cygwin* | -msys* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
|
|
|
dc872b |
+ | -mingw32* | -mingw64* | -linux-gnu* | -linux-android* \
|
|
|
dc872b |
+ | -linux-newlib* | -linux-musl* | -linux-uclibc* \
|
|
|
dc872b |
| -uxpv* | -beos* | -mpeix* | -udk* \
|
|
|
dc872b |
| -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
|
|
|
dc872b |
| -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
|
|
|
dc872b |
@@ -1226,7 +1373,7 @@
|
|
|
dc872b |
| -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
|
|
|
dc872b |
| -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
|
|
|
dc872b |
| -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
|
|
|
dc872b |
- | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
|
|
|
dc872b |
+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*)
|
|
|
dc872b |
# Remember, each alternative MUST END IN *, to match a version number.
|
|
|
dc872b |
;;
|
|
|
dc872b |
-qnx*)
|
|
|
dc872b |
@@ -1265,7 +1412,7 @@
|
|
|
dc872b |
-opened*)
|
|
|
dc872b |
os=-openedition
|
|
|
dc872b |
;;
|
|
|
dc872b |
- -os400*)
|
|
|
dc872b |
+ -os400*)
|
|
|
dc872b |
os=-os400
|
|
|
dc872b |
;;
|
|
|
dc872b |
-wince*)
|
|
|
dc872b |
@@ -1314,7 +1461,7 @@
|
|
|
dc872b |
-sinix*)
|
|
|
dc872b |
os=-sysv4
|
|
|
dc872b |
;;
|
|
|
dc872b |
- -tpf*)
|
|
|
dc872b |
+ -tpf*)
|
|
|
dc872b |
os=-tpf
|
|
|
dc872b |
;;
|
|
|
dc872b |
-triton*)
|
|
|
dc872b |
@@ -1356,6 +1503,11 @@
|
|
|
dc872b |
-zvmoe)
|
|
|
dc872b |
os=-zvmoe
|
|
|
dc872b |
;;
|
|
|
dc872b |
+ -dicos*)
|
|
|
dc872b |
+ os=-dicos
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ -nacl*)
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
-none)
|
|
|
dc872b |
;;
|
|
|
dc872b |
*)
|
|
|
dc872b |
@@ -1378,10 +1530,10 @@
|
|
|
dc872b |
# system, and we'll never get to this point.
|
|
|
dc872b |
|
|
|
dc872b |
case $basic_machine in
|
|
|
dc872b |
- score-*)
|
|
|
dc872b |
+ score-*)
|
|
|
dc872b |
os=-elf
|
|
|
dc872b |
;;
|
|
|
dc872b |
- spu-*)
|
|
|
dc872b |
+ spu-*)
|
|
|
dc872b |
os=-elf
|
|
|
dc872b |
;;
|
|
|
dc872b |
*-acorn)
|
|
|
dc872b |
@@ -1393,8 +1545,20 @@
|
|
|
dc872b |
arm*-semi)
|
|
|
dc872b |
os=-aout
|
|
|
dc872b |
;;
|
|
|
dc872b |
- c4x-* | tic4x-*)
|
|
|
dc872b |
- os=-coff
|
|
|
dc872b |
+ c4x-* | tic4x-*)
|
|
|
dc872b |
+ os=-coff
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ hexagon-*)
|
|
|
dc872b |
+ os=-elf
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ tic54x-*)
|
|
|
dc872b |
+ os=-coff
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ tic55x-*)
|
|
|
dc872b |
+ os=-coff
|
|
|
dc872b |
+ ;;
|
|
|
dc872b |
+ tic6x-*)
|
|
|
dc872b |
+ os=-coff
|
|
|
dc872b |
;;
|
|
|
dc872b |
# This must come before the *-dec entry.
|
|
|
dc872b |
pdp10-*)
|
|
|
dc872b |
@@ -1414,14 +1578,11 @@
|
|
|
dc872b |
;;
|
|
|
dc872b |
m68000-sun)
|
|
|
dc872b |
os=-sunos3
|
|
|
dc872b |
- # This also exists in the configure program, but was not the
|
|
|
dc872b |
- # default.
|
|
|
dc872b |
- # os=-sunos4
|
|
|
dc872b |
;;
|
|
|
dc872b |
m68*-cisco)
|
|
|
dc872b |
os=-aout
|
|
|
dc872b |
;;
|
|
|
dc872b |
- mep-*)
|
|
|
dc872b |
+ mep-*)
|
|
|
dc872b |
os=-elf
|
|
|
dc872b |
;;
|
|
|
dc872b |
mips*-cisco)
|
|
|
dc872b |
@@ -1448,7 +1609,7 @@
|
|
|
dc872b |
*-ibm)
|
|
|
dc872b |
os=-aix
|
|
|
dc872b |
;;
|
|
|
dc872b |
- *-knuth)
|
|
|
dc872b |
+ *-knuth)
|
|
|
dc872b |
os=-mmixware
|
|
|
dc872b |
;;
|
|
|
dc872b |
*-wec)
|
|
|
dc872b |
@@ -1553,7 +1714,7 @@
|
|
|
dc872b |
-sunos*)
|
|
|
dc872b |
vendor=sun
|
|
|
dc872b |
;;
|
|
|
dc872b |
- -aix*)
|
|
|
dc872b |
+ -cnk*|-aix*)
|
|
|
dc872b |
vendor=ibm
|
|
|
dc872b |
;;
|
|
|
dc872b |
-beos*)
|