1*cdf0e10cSrcweir--- misc/xmlsec1-1.2.12/config.guess 2010-04-15 09:29:35.000000000 +0000 2*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.12/config.guess 2010-04-15 09:29:46.000000000 +0000 3*cdf0e10cSrcweir@@ -1,9 +1,10 @@ 4*cdf0e10cSrcweir #! /bin/sh 5*cdf0e10cSrcweir # Attempt to guess a canonical system name. 6*cdf0e10cSrcweir # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 7*cdf0e10cSrcweir-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 8*cdf0e10cSrcweir+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 9*cdf0e10cSrcweir+# Free Software Foundation, Inc. 10*cdf0e10cSrcweir 11*cdf0e10cSrcweir-timestamp='2003-06-17' 12*cdf0e10cSrcweir+timestamp='2009-12-30' 13*cdf0e10cSrcweir 14*cdf0e10cSrcweir # This file is free software; you can redistribute it and/or modify it 15*cdf0e10cSrcweir # under the terms of the GNU General Public License as published by 16*cdf0e10cSrcweir@@ -17,23 +18,25 @@ 17*cdf0e10cSrcweir # 18*cdf0e10cSrcweir # You should have received a copy of the GNU General Public License 19*cdf0e10cSrcweir # along with this program; if not, write to the Free Software 20*cdf0e10cSrcweir-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21*cdf0e10cSrcweir+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 22*cdf0e10cSrcweir+# 02110-1301, USA. 23*cdf0e10cSrcweir # 24*cdf0e10cSrcweir # As a special exception to the GNU General Public License, if you 25*cdf0e10cSrcweir # distribute this file as part of a program that contains a 26*cdf0e10cSrcweir # configuration script generated by Autoconf, you may include it under 27*cdf0e10cSrcweir # the same distribution terms that you use for the rest of that program. 28*cdf0e10cSrcweir 29*cdf0e10cSrcweir-# Originally written by Per Bothner <per@bothner.com>. 30*cdf0e10cSrcweir-# Please send patches to <config-patches@gnu.org>. Submit a context 31*cdf0e10cSrcweir-# diff and a properly formatted ChangeLog entry. 32*cdf0e10cSrcweir+ 33*cdf0e10cSrcweir+# Originally written by Per Bothner. Please send patches (context 34*cdf0e10cSrcweir+# diff format) to <config-patches@gnu.org> and include a ChangeLog 35*cdf0e10cSrcweir+# entry. 36*cdf0e10cSrcweir # 37*cdf0e10cSrcweir # This script attempts to guess a canonical system name similar to 38*cdf0e10cSrcweir # config.sub. If it succeeds, it prints the system name on stdout, and 39*cdf0e10cSrcweir # exits with 0. Otherwise, it exits with 1. 40*cdf0e10cSrcweir # 41*cdf0e10cSrcweir-# The plan is that this can be called by configure scripts if you 42*cdf0e10cSrcweir-# don't specify an explicit build system type. 43*cdf0e10cSrcweir+# You can get the latest version of this script from: 44*cdf0e10cSrcweir+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 45*cdf0e10cSrcweir 46*cdf0e10cSrcweir me=`echo "$0" | sed -e 's,.*/,,'` 47*cdf0e10cSrcweir 48*cdf0e10cSrcweir@@ -53,8 +56,9 @@ 49*cdf0e10cSrcweir GNU config.guess ($timestamp) 50*cdf0e10cSrcweir 51*cdf0e10cSrcweir Originally written by Per Bothner. 52*cdf0e10cSrcweir-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 53*cdf0e10cSrcweir-Free Software Foundation, Inc. 54*cdf0e10cSrcweir+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 55*cdf0e10cSrcweir+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free 56*cdf0e10cSrcweir+Software Foundation, Inc. 57*cdf0e10cSrcweir 58*cdf0e10cSrcweir This is free software; see the source for copying conditions. There is NO 59*cdf0e10cSrcweir warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 60*cdf0e10cSrcweir@@ -66,11 +70,11 @@ 61*cdf0e10cSrcweir while test $# -gt 0 ; do 62*cdf0e10cSrcweir case $1 in 63*cdf0e10cSrcweir --time-stamp | --time* | -t ) 64*cdf0e10cSrcweir- echo "$timestamp" ; exit 0 ;; 65*cdf0e10cSrcweir+ echo "$timestamp" ; exit ;; 66*cdf0e10cSrcweir --version | -v ) 67*cdf0e10cSrcweir- echo "$version" ; exit 0 ;; 68*cdf0e10cSrcweir+ echo "$version" ; exit ;; 69*cdf0e10cSrcweir --help | --h* | -h ) 70*cdf0e10cSrcweir- echo "$usage"; exit 0 ;; 71*cdf0e10cSrcweir+ echo "$usage"; exit ;; 72*cdf0e10cSrcweir -- ) # Stop option processing 73*cdf0e10cSrcweir shift; break ;; 74*cdf0e10cSrcweir - ) # Use stdin as input. 75*cdf0e10cSrcweir@@ -104,7 +108,7 @@ 76*cdf0e10cSrcweir trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 77*cdf0e10cSrcweir trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 78*cdf0e10cSrcweir : ${TMPDIR=/tmp} ; 79*cdf0e10cSrcweir- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 80*cdf0e10cSrcweir+ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 81*cdf0e10cSrcweir { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 82*cdf0e10cSrcweir { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 83*cdf0e10cSrcweir { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 84*cdf0e10cSrcweir@@ -123,7 +127,7 @@ 85*cdf0e10cSrcweir ;; 86*cdf0e10cSrcweir ,,*) CC_FOR_BUILD=$CC ;; 87*cdf0e10cSrcweir ,*,*) CC_FOR_BUILD=$HOST_CC ;; 88*cdf0e10cSrcweir-esac ;' 89*cdf0e10cSrcweir+esac ; set_cc_for_build= ;' 90*cdf0e10cSrcweir 91*cdf0e10cSrcweir # This is needed to find uname on a Pyramid OSx when run in the BSD universe. 92*cdf0e10cSrcweir # (ghazi@noc.rutgers.edu 1994-08-24) 93*cdf0e10cSrcweir@@ -136,13 +140,6 @@ 94*cdf0e10cSrcweir UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 95*cdf0e10cSrcweir UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir-## for Red Hat Linux 98*cdf0e10cSrcweir-if test -f /etc/redhat-release ; then 99*cdf0e10cSrcweir- VENDOR=redhat ; 100*cdf0e10cSrcweir-else 101*cdf0e10cSrcweir- VENDOR= ; 102*cdf0e10cSrcweir-fi 103*cdf0e10cSrcweir- 104*cdf0e10cSrcweir # Note: order is significant - the case branches are not exclusive. 105*cdf0e10cSrcweir 106*cdf0e10cSrcweir case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 107*cdf0e10cSrcweir@@ -165,6 +162,7 @@ 108*cdf0e10cSrcweir arm*) machine=arm-unknown ;; 109*cdf0e10cSrcweir sh3el) machine=shl-unknown ;; 110*cdf0e10cSrcweir sh3eb) machine=sh-unknown ;; 111*cdf0e10cSrcweir+ sh5el) machine=sh5le-unknown ;; 112*cdf0e10cSrcweir *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 113*cdf0e10cSrcweir esac 114*cdf0e10cSrcweir # The Operating System including object format, if it has switched 115*cdf0e10cSrcweir@@ -173,7 +171,7 @@ 116*cdf0e10cSrcweir arm*|i386|m68k|ns32k|sh3*|sparc|vax) 117*cdf0e10cSrcweir eval $set_cc_for_build 118*cdf0e10cSrcweir if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 119*cdf0e10cSrcweir- | grep __ELF__ >/dev/null 120*cdf0e10cSrcweir+ | grep -q __ELF__ 121*cdf0e10cSrcweir then 122*cdf0e10cSrcweir # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 123*cdf0e10cSrcweir # Return netbsd for either. FIX? 124*cdf0e10cSrcweir@@ -203,50 +201,32 @@ 125*cdf0e10cSrcweir # contains redundant information, the shorter form: 126*cdf0e10cSrcweir # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 127*cdf0e10cSrcweir echo "${machine}-${os}${release}" 128*cdf0e10cSrcweir- exit 0 ;; 129*cdf0e10cSrcweir- amiga:OpenBSD:*:*) 130*cdf0e10cSrcweir- echo m68k-unknown-openbsd${UNAME_RELEASE} 131*cdf0e10cSrcweir- exit 0 ;; 132*cdf0e10cSrcweir- arc:OpenBSD:*:*) 133*cdf0e10cSrcweir- echo mipsel-unknown-openbsd${UNAME_RELEASE} 134*cdf0e10cSrcweir- exit 0 ;; 135*cdf0e10cSrcweir- hp300:OpenBSD:*:*) 136*cdf0e10cSrcweir- echo m68k-unknown-openbsd${UNAME_RELEASE} 137*cdf0e10cSrcweir- exit 0 ;; 138*cdf0e10cSrcweir- mac68k:OpenBSD:*:*) 139*cdf0e10cSrcweir- echo m68k-unknown-openbsd${UNAME_RELEASE} 140*cdf0e10cSrcweir- exit 0 ;; 141*cdf0e10cSrcweir- macppc:OpenBSD:*:*) 142*cdf0e10cSrcweir- echo powerpc-unknown-openbsd${UNAME_RELEASE} 143*cdf0e10cSrcweir- exit 0 ;; 144*cdf0e10cSrcweir- mvme68k:OpenBSD:*:*) 145*cdf0e10cSrcweir- echo m68k-unknown-openbsd${UNAME_RELEASE} 146*cdf0e10cSrcweir- exit 0 ;; 147*cdf0e10cSrcweir- mvme88k:OpenBSD:*:*) 148*cdf0e10cSrcweir- echo m88k-unknown-openbsd${UNAME_RELEASE} 149*cdf0e10cSrcweir- exit 0 ;; 150*cdf0e10cSrcweir- mvmeppc:OpenBSD:*:*) 151*cdf0e10cSrcweir- echo powerpc-unknown-openbsd${UNAME_RELEASE} 152*cdf0e10cSrcweir- exit 0 ;; 153*cdf0e10cSrcweir- pmax:OpenBSD:*:*) 154*cdf0e10cSrcweir- echo mipsel-unknown-openbsd${UNAME_RELEASE} 155*cdf0e10cSrcweir- exit 0 ;; 156*cdf0e10cSrcweir- sgi:OpenBSD:*:*) 157*cdf0e10cSrcweir- echo mipseb-unknown-openbsd${UNAME_RELEASE} 158*cdf0e10cSrcweir- exit 0 ;; 159*cdf0e10cSrcweir- sun3:OpenBSD:*:*) 160*cdf0e10cSrcweir- echo m68k-unknown-openbsd${UNAME_RELEASE} 161*cdf0e10cSrcweir- exit 0 ;; 162*cdf0e10cSrcweir- wgrisc:OpenBSD:*:*) 163*cdf0e10cSrcweir- echo mipsel-unknown-openbsd${UNAME_RELEASE} 164*cdf0e10cSrcweir- exit 0 ;; 165*cdf0e10cSrcweir+ exit ;; 166*cdf0e10cSrcweir *:OpenBSD:*:*) 167*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 168*cdf0e10cSrcweir- exit 0 ;; 169*cdf0e10cSrcweir+ UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 170*cdf0e10cSrcweir+ echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 171*cdf0e10cSrcweir+ exit ;; 172*cdf0e10cSrcweir+ *:ekkoBSD:*:*) 173*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 174*cdf0e10cSrcweir+ exit ;; 175*cdf0e10cSrcweir+ *:SolidBSD:*:*) 176*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 177*cdf0e10cSrcweir+ exit ;; 178*cdf0e10cSrcweir+ macppc:MirBSD:*:*) 179*cdf0e10cSrcweir+ echo powerpc-unknown-mirbsd${UNAME_RELEASE} 180*cdf0e10cSrcweir+ exit ;; 181*cdf0e10cSrcweir+ *:MirBSD:*:*) 182*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 183*cdf0e10cSrcweir+ exit ;; 184*cdf0e10cSrcweir alpha:OSF1:*:*) 185*cdf0e10cSrcweir- if test $UNAME_RELEASE = "V4.0"; then 186*cdf0e10cSrcweir+ case $UNAME_RELEASE in 187*cdf0e10cSrcweir+ *4.0) 188*cdf0e10cSrcweir UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 189*cdf0e10cSrcweir- fi 190*cdf0e10cSrcweir+ ;; 191*cdf0e10cSrcweir+ *5.*) 192*cdf0e10cSrcweir+ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 193*cdf0e10cSrcweir+ ;; 194*cdf0e10cSrcweir+ esac 195*cdf0e10cSrcweir # According to Compaq, /usr/sbin/psrinfo has been available on 196*cdf0e10cSrcweir # OSF/1 and Tru64 systems produced since 1995. I hope that 197*cdf0e10cSrcweir # covers most systems running today. This code pipes the CPU 198*cdf0e10cSrcweir@@ -284,42 +264,49 @@ 199*cdf0e10cSrcweir "EV7.9 (21364A)") 200*cdf0e10cSrcweir UNAME_MACHINE="alphaev79" ;; 201*cdf0e10cSrcweir esac 202*cdf0e10cSrcweir+ # A Pn.n version is a patched version. 203*cdf0e10cSrcweir # A Vn.n version is a released version. 204*cdf0e10cSrcweir # A Tn.n version is a released field test version. 205*cdf0e10cSrcweir # A Xn.n version is an unreleased experimental baselevel. 206*cdf0e10cSrcweir # 1.2 uses "1.2" for uname -r. 207*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 208*cdf0e10cSrcweir- exit 0 ;; 209*cdf0e10cSrcweir- Alpha*:OpenVMS:*:*) 210*cdf0e10cSrcweir- echo alpha-hp-vms 211*cdf0e10cSrcweir- exit 0 ;; 212*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 213*cdf0e10cSrcweir+ exit ;; 214*cdf0e10cSrcweir Alpha\ *:Windows_NT*:*) 215*cdf0e10cSrcweir # How do we know it's Interix rather than the generic POSIX subsystem? 216*cdf0e10cSrcweir # Should we change UNAME_MACHINE based on the output of uname instead 217*cdf0e10cSrcweir # of the specific Alpha model? 218*cdf0e10cSrcweir echo alpha-pc-interix 219*cdf0e10cSrcweir- exit 0 ;; 220*cdf0e10cSrcweir+ exit ;; 221*cdf0e10cSrcweir 21064:Windows_NT:50:3) 222*cdf0e10cSrcweir echo alpha-dec-winnt3.5 223*cdf0e10cSrcweir- exit 0 ;; 224*cdf0e10cSrcweir+ exit ;; 225*cdf0e10cSrcweir Amiga*:UNIX_System_V:4.0:*) 226*cdf0e10cSrcweir echo m68k-unknown-sysv4 227*cdf0e10cSrcweir- exit 0;; 228*cdf0e10cSrcweir+ exit ;; 229*cdf0e10cSrcweir *:[Aa]miga[Oo][Ss]:*:*) 230*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-amigaos 231*cdf0e10cSrcweir- exit 0 ;; 232*cdf0e10cSrcweir+ exit ;; 233*cdf0e10cSrcweir *:[Mm]orph[Oo][Ss]:*:*) 234*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-morphos 235*cdf0e10cSrcweir- exit 0 ;; 236*cdf0e10cSrcweir+ exit ;; 237*cdf0e10cSrcweir *:OS/390:*:*) 238*cdf0e10cSrcweir echo i370-ibm-openedition 239*cdf0e10cSrcweir- exit 0 ;; 240*cdf0e10cSrcweir+ exit ;; 241*cdf0e10cSrcweir+ *:z/VM:*:*) 242*cdf0e10cSrcweir+ echo s390-ibm-zvmoe 243*cdf0e10cSrcweir+ exit ;; 244*cdf0e10cSrcweir+ *:OS400:*:*) 245*cdf0e10cSrcweir+ echo powerpc-ibm-os400 246*cdf0e10cSrcweir+ exit ;; 247*cdf0e10cSrcweir arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 248*cdf0e10cSrcweir echo arm-acorn-riscix${UNAME_RELEASE} 249*cdf0e10cSrcweir- exit 0;; 250*cdf0e10cSrcweir+ exit ;; 251*cdf0e10cSrcweir+ arm:riscos:*:*|arm:RISCOS:*:*) 252*cdf0e10cSrcweir+ echo arm-unknown-riscos 253*cdf0e10cSrcweir+ exit ;; 254*cdf0e10cSrcweir SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 255*cdf0e10cSrcweir echo hppa1.1-hitachi-hiuxmpp 256*cdf0e10cSrcweir- exit 0;; 257*cdf0e10cSrcweir+ exit ;; 258*cdf0e10cSrcweir Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 259*cdf0e10cSrcweir # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 260*cdf0e10cSrcweir if test "`(/bin/universe) 2>/dev/null`" = att ; then 261*cdf0e10cSrcweir@@ -327,32 +314,51 @@ 262*cdf0e10cSrcweir else 263*cdf0e10cSrcweir echo pyramid-pyramid-bsd 264*cdf0e10cSrcweir fi 265*cdf0e10cSrcweir- exit 0 ;; 266*cdf0e10cSrcweir+ exit ;; 267*cdf0e10cSrcweir NILE*:*:*:dcosx) 268*cdf0e10cSrcweir echo pyramid-pyramid-svr4 269*cdf0e10cSrcweir- exit 0 ;; 270*cdf0e10cSrcweir+ exit ;; 271*cdf0e10cSrcweir DRS?6000:unix:4.0:6*) 272*cdf0e10cSrcweir echo sparc-icl-nx6 273*cdf0e10cSrcweir- exit 0 ;; 274*cdf0e10cSrcweir- DRS?6000:UNIX_SV:4.2*:7*) 275*cdf0e10cSrcweir+ exit ;; 276*cdf0e10cSrcweir+ DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 277*cdf0e10cSrcweir case `/usr/bin/uname -p` in 278*cdf0e10cSrcweir- sparc) echo sparc-icl-nx7 && exit 0 ;; 279*cdf0e10cSrcweir+ sparc) echo sparc-icl-nx7; exit ;; 280*cdf0e10cSrcweir esac ;; 281*cdf0e10cSrcweir+ s390x:SunOS:*:*) 282*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 283*cdf0e10cSrcweir+ exit ;; 284*cdf0e10cSrcweir sun4H:SunOS:5.*:*) 285*cdf0e10cSrcweir echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 286*cdf0e10cSrcweir- exit 0 ;; 287*cdf0e10cSrcweir+ exit ;; 288*cdf0e10cSrcweir sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 289*cdf0e10cSrcweir echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 290*cdf0e10cSrcweir- exit 0 ;; 291*cdf0e10cSrcweir- i86pc:SunOS:5.*:*) 292*cdf0e10cSrcweir- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 293*cdf0e10cSrcweir- exit 0 ;; 294*cdf0e10cSrcweir+ exit ;; 295*cdf0e10cSrcweir+ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 296*cdf0e10cSrcweir+ echo i386-pc-auroraux${UNAME_RELEASE} 297*cdf0e10cSrcweir+ exit ;; 298*cdf0e10cSrcweir+ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 299*cdf0e10cSrcweir+ eval $set_cc_for_build 300*cdf0e10cSrcweir+ SUN_ARCH="i386" 301*cdf0e10cSrcweir+ # If there is a compiler, see if it is configured for 64-bit objects. 302*cdf0e10cSrcweir+ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 303*cdf0e10cSrcweir+ # This test works for both compilers. 304*cdf0e10cSrcweir+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 305*cdf0e10cSrcweir+ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 306*cdf0e10cSrcweir+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 307*cdf0e10cSrcweir+ grep IS_64BIT_ARCH >/dev/null 308*cdf0e10cSrcweir+ then 309*cdf0e10cSrcweir+ SUN_ARCH="x86_64" 310*cdf0e10cSrcweir+ fi 311*cdf0e10cSrcweir+ fi 312*cdf0e10cSrcweir+ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 313*cdf0e10cSrcweir+ exit ;; 314*cdf0e10cSrcweir sun4*:SunOS:6*:*) 315*cdf0e10cSrcweir # According to config.sub, this is the proper way to canonicalize 316*cdf0e10cSrcweir # SunOS6. Hard to guess exactly what SunOS6 will be like, but 317*cdf0e10cSrcweir # it's likely to be more like Solaris than SunOS4. 318*cdf0e10cSrcweir echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 319*cdf0e10cSrcweir- exit 0 ;; 320*cdf0e10cSrcweir+ exit ;; 321*cdf0e10cSrcweir sun4*:SunOS:*:*) 322*cdf0e10cSrcweir case "`/usr/bin/arch -k`" in 323*cdf0e10cSrcweir Series*|S4*) 324*cdf0e10cSrcweir@@ -361,10 +367,10 @@ 325*cdf0e10cSrcweir esac 326*cdf0e10cSrcweir # Japanese Language versions have a version number like `4.1.3-JL'. 327*cdf0e10cSrcweir echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 328*cdf0e10cSrcweir- exit 0 ;; 329*cdf0e10cSrcweir+ exit ;; 330*cdf0e10cSrcweir sun3*:SunOS:*:*) 331*cdf0e10cSrcweir echo m68k-sun-sunos${UNAME_RELEASE} 332*cdf0e10cSrcweir- exit 0 ;; 333*cdf0e10cSrcweir+ exit ;; 334*cdf0e10cSrcweir sun*:*:4.2BSD:*) 335*cdf0e10cSrcweir UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 336*cdf0e10cSrcweir test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 337*cdf0e10cSrcweir@@ -376,10 +382,10 @@ 338*cdf0e10cSrcweir echo sparc-sun-sunos${UNAME_RELEASE} 339*cdf0e10cSrcweir ;; 340*cdf0e10cSrcweir esac 341*cdf0e10cSrcweir- exit 0 ;; 342*cdf0e10cSrcweir+ exit ;; 343*cdf0e10cSrcweir aushp:SunOS:*:*) 344*cdf0e10cSrcweir echo sparc-auspex-sunos${UNAME_RELEASE} 345*cdf0e10cSrcweir- exit 0 ;; 346*cdf0e10cSrcweir+ exit ;; 347*cdf0e10cSrcweir # The situation for MiNT is a little confusing. The machine name 348*cdf0e10cSrcweir # can be virtually everything (everything which is not 349*cdf0e10cSrcweir # "atarist" or "atariste" at least should have a processor 350*cdf0e10cSrcweir@@ -390,37 +396,40 @@ 351*cdf0e10cSrcweir # be no problem. 352*cdf0e10cSrcweir atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 353*cdf0e10cSrcweir echo m68k-atari-mint${UNAME_RELEASE} 354*cdf0e10cSrcweir- exit 0 ;; 355*cdf0e10cSrcweir+ exit ;; 356*cdf0e10cSrcweir atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 357*cdf0e10cSrcweir echo m68k-atari-mint${UNAME_RELEASE} 358*cdf0e10cSrcweir- exit 0 ;; 359*cdf0e10cSrcweir+ exit ;; 360*cdf0e10cSrcweir *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 361*cdf0e10cSrcweir echo m68k-atari-mint${UNAME_RELEASE} 362*cdf0e10cSrcweir- exit 0 ;; 363*cdf0e10cSrcweir+ exit ;; 364*cdf0e10cSrcweir milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 365*cdf0e10cSrcweir echo m68k-milan-mint${UNAME_RELEASE} 366*cdf0e10cSrcweir- exit 0 ;; 367*cdf0e10cSrcweir+ exit ;; 368*cdf0e10cSrcweir hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 369*cdf0e10cSrcweir echo m68k-hades-mint${UNAME_RELEASE} 370*cdf0e10cSrcweir- exit 0 ;; 371*cdf0e10cSrcweir+ exit ;; 372*cdf0e10cSrcweir *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 373*cdf0e10cSrcweir echo m68k-unknown-mint${UNAME_RELEASE} 374*cdf0e10cSrcweir- exit 0 ;; 375*cdf0e10cSrcweir+ exit ;; 376*cdf0e10cSrcweir+ m68k:machten:*:*) 377*cdf0e10cSrcweir+ echo m68k-apple-machten${UNAME_RELEASE} 378*cdf0e10cSrcweir+ exit ;; 379*cdf0e10cSrcweir powerpc:machten:*:*) 380*cdf0e10cSrcweir echo powerpc-apple-machten${UNAME_RELEASE} 381*cdf0e10cSrcweir- exit 0 ;; 382*cdf0e10cSrcweir+ exit ;; 383*cdf0e10cSrcweir RISC*:Mach:*:*) 384*cdf0e10cSrcweir echo mips-dec-mach_bsd4.3 385*cdf0e10cSrcweir- exit 0 ;; 386*cdf0e10cSrcweir+ exit ;; 387*cdf0e10cSrcweir RISC*:ULTRIX:*:*) 388*cdf0e10cSrcweir echo mips-dec-ultrix${UNAME_RELEASE} 389*cdf0e10cSrcweir- exit 0 ;; 390*cdf0e10cSrcweir+ exit ;; 391*cdf0e10cSrcweir VAX*:ULTRIX*:*:*) 392*cdf0e10cSrcweir echo vax-dec-ultrix${UNAME_RELEASE} 393*cdf0e10cSrcweir- exit 0 ;; 394*cdf0e10cSrcweir+ exit ;; 395*cdf0e10cSrcweir 2020:CLIX:*:* | 2430:CLIX:*:*) 396*cdf0e10cSrcweir echo clipper-intergraph-clix${UNAME_RELEASE} 397*cdf0e10cSrcweir- exit 0 ;; 398*cdf0e10cSrcweir+ exit ;; 399*cdf0e10cSrcweir mips:*:*:UMIPS | mips:*:*:RISCos) 400*cdf0e10cSrcweir eval $set_cc_for_build 401*cdf0e10cSrcweir sed 's/^ //' << EOF >$dummy.c 402*cdf0e10cSrcweir@@ -444,32 +453,33 @@ 403*cdf0e10cSrcweir exit (-1); 404*cdf0e10cSrcweir } 405*cdf0e10cSrcweir EOF 406*cdf0e10cSrcweir- $CC_FOR_BUILD -o $dummy $dummy.c \ 407*cdf0e10cSrcweir- && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \ 408*cdf0e10cSrcweir- && exit 0 409*cdf0e10cSrcweir+ $CC_FOR_BUILD -o $dummy $dummy.c && 410*cdf0e10cSrcweir+ dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 411*cdf0e10cSrcweir+ SYSTEM_NAME=`$dummy $dummyarg` && 412*cdf0e10cSrcweir+ { echo "$SYSTEM_NAME"; exit; } 413*cdf0e10cSrcweir echo mips-mips-riscos${UNAME_RELEASE} 414*cdf0e10cSrcweir- exit 0 ;; 415*cdf0e10cSrcweir+ exit ;; 416*cdf0e10cSrcweir Motorola:PowerMAX_OS:*:*) 417*cdf0e10cSrcweir echo powerpc-motorola-powermax 418*cdf0e10cSrcweir- exit 0 ;; 419*cdf0e10cSrcweir+ exit ;; 420*cdf0e10cSrcweir Motorola:*:4.3:PL8-*) 421*cdf0e10cSrcweir echo powerpc-harris-powermax 422*cdf0e10cSrcweir- exit 0 ;; 423*cdf0e10cSrcweir+ exit ;; 424*cdf0e10cSrcweir Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 425*cdf0e10cSrcweir echo powerpc-harris-powermax 426*cdf0e10cSrcweir- exit 0 ;; 427*cdf0e10cSrcweir+ exit ;; 428*cdf0e10cSrcweir Night_Hawk:Power_UNIX:*:*) 429*cdf0e10cSrcweir echo powerpc-harris-powerunix 430*cdf0e10cSrcweir- exit 0 ;; 431*cdf0e10cSrcweir+ exit ;; 432*cdf0e10cSrcweir m88k:CX/UX:7*:*) 433*cdf0e10cSrcweir echo m88k-harris-cxux7 434*cdf0e10cSrcweir- exit 0 ;; 435*cdf0e10cSrcweir+ exit ;; 436*cdf0e10cSrcweir m88k:*:4*:R4*) 437*cdf0e10cSrcweir echo m88k-motorola-sysv4 438*cdf0e10cSrcweir- exit 0 ;; 439*cdf0e10cSrcweir+ exit ;; 440*cdf0e10cSrcweir m88k:*:3*:R3*) 441*cdf0e10cSrcweir echo m88k-motorola-sysv3 442*cdf0e10cSrcweir- exit 0 ;; 443*cdf0e10cSrcweir+ exit ;; 444*cdf0e10cSrcweir AViiON:dgux:*:*) 445*cdf0e10cSrcweir # DG/UX returns AViiON for all architectures 446*cdf0e10cSrcweir UNAME_PROCESSOR=`/usr/bin/uname -p` 447*cdf0e10cSrcweir@@ -485,29 +495,29 @@ 448*cdf0e10cSrcweir else 449*cdf0e10cSrcweir echo i586-dg-dgux${UNAME_RELEASE} 450*cdf0e10cSrcweir fi 451*cdf0e10cSrcweir- exit 0 ;; 452*cdf0e10cSrcweir+ exit ;; 453*cdf0e10cSrcweir M88*:DolphinOS:*:*) # DolphinOS (SVR3) 454*cdf0e10cSrcweir echo m88k-dolphin-sysv3 455*cdf0e10cSrcweir- exit 0 ;; 456*cdf0e10cSrcweir+ exit ;; 457*cdf0e10cSrcweir M88*:*:R3*:*) 458*cdf0e10cSrcweir # Delta 88k system running SVR3 459*cdf0e10cSrcweir echo m88k-motorola-sysv3 460*cdf0e10cSrcweir- exit 0 ;; 461*cdf0e10cSrcweir+ exit ;; 462*cdf0e10cSrcweir XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 463*cdf0e10cSrcweir echo m88k-tektronix-sysv3 464*cdf0e10cSrcweir- exit 0 ;; 465*cdf0e10cSrcweir+ exit ;; 466*cdf0e10cSrcweir Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 467*cdf0e10cSrcweir echo m68k-tektronix-bsd 468*cdf0e10cSrcweir- exit 0 ;; 469*cdf0e10cSrcweir+ exit ;; 470*cdf0e10cSrcweir *:IRIX*:*:*) 471*cdf0e10cSrcweir echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 472*cdf0e10cSrcweir- exit 0 ;; 473*cdf0e10cSrcweir+ exit ;; 474*cdf0e10cSrcweir ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 475*cdf0e10cSrcweir- echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 476*cdf0e10cSrcweir- exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 477*cdf0e10cSrcweir+ echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 478*cdf0e10cSrcweir+ exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 479*cdf0e10cSrcweir i*86:AIX:*:*) 480*cdf0e10cSrcweir echo i386-ibm-aix 481*cdf0e10cSrcweir- exit 0 ;; 482*cdf0e10cSrcweir+ exit ;; 483*cdf0e10cSrcweir ia64:AIX:*:*) 484*cdf0e10cSrcweir if [ -x /usr/bin/oslevel ] ; then 485*cdf0e10cSrcweir IBM_REV=`/usr/bin/oslevel` 486*cdf0e10cSrcweir@@ -515,7 +525,7 @@ 487*cdf0e10cSrcweir IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 488*cdf0e10cSrcweir fi 489*cdf0e10cSrcweir echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 490*cdf0e10cSrcweir- exit 0 ;; 491*cdf0e10cSrcweir+ exit ;; 492*cdf0e10cSrcweir *:AIX:2:3) 493*cdf0e10cSrcweir if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 494*cdf0e10cSrcweir eval $set_cc_for_build 495*cdf0e10cSrcweir@@ -530,15 +540,19 @@ 496*cdf0e10cSrcweir exit(0); 497*cdf0e10cSrcweir } 498*cdf0e10cSrcweir EOF 499*cdf0e10cSrcweir- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 500*cdf0e10cSrcweir- echo rs6000-ibm-aix3.2.5 501*cdf0e10cSrcweir+ if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 502*cdf0e10cSrcweir+ then 503*cdf0e10cSrcweir+ echo "$SYSTEM_NAME" 504*cdf0e10cSrcweir+ else 505*cdf0e10cSrcweir+ echo rs6000-ibm-aix3.2.5 506*cdf0e10cSrcweir+ fi 507*cdf0e10cSrcweir elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 508*cdf0e10cSrcweir echo rs6000-ibm-aix3.2.4 509*cdf0e10cSrcweir else 510*cdf0e10cSrcweir echo rs6000-ibm-aix3.2 511*cdf0e10cSrcweir fi 512*cdf0e10cSrcweir- exit 0 ;; 513*cdf0e10cSrcweir- *:AIX:*:[45]) 514*cdf0e10cSrcweir+ exit ;; 515*cdf0e10cSrcweir+ *:AIX:*:[456]) 516*cdf0e10cSrcweir IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 517*cdf0e10cSrcweir if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 518*cdf0e10cSrcweir IBM_ARCH=rs6000 519*cdf0e10cSrcweir@@ -551,28 +565,28 @@ 520*cdf0e10cSrcweir IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 521*cdf0e10cSrcweir fi 522*cdf0e10cSrcweir echo ${IBM_ARCH}-ibm-aix${IBM_REV} 523*cdf0e10cSrcweir- exit 0 ;; 524*cdf0e10cSrcweir+ exit ;; 525*cdf0e10cSrcweir *:AIX:*:*) 526*cdf0e10cSrcweir echo rs6000-ibm-aix 527*cdf0e10cSrcweir- exit 0 ;; 528*cdf0e10cSrcweir+ exit ;; 529*cdf0e10cSrcweir ibmrt:4.4BSD:*|romp-ibm:BSD:*) 530*cdf0e10cSrcweir echo romp-ibm-bsd4.4 531*cdf0e10cSrcweir- exit 0 ;; 532*cdf0e10cSrcweir+ exit ;; 533*cdf0e10cSrcweir ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 534*cdf0e10cSrcweir echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 535*cdf0e10cSrcweir- exit 0 ;; # report: romp-ibm BSD 4.3 536*cdf0e10cSrcweir+ exit ;; # report: romp-ibm BSD 4.3 537*cdf0e10cSrcweir *:BOSX:*:*) 538*cdf0e10cSrcweir echo rs6000-bull-bosx 539*cdf0e10cSrcweir- exit 0 ;; 540*cdf0e10cSrcweir+ exit ;; 541*cdf0e10cSrcweir DPX/2?00:B.O.S.:*:*) 542*cdf0e10cSrcweir echo m68k-bull-sysv3 543*cdf0e10cSrcweir- exit 0 ;; 544*cdf0e10cSrcweir+ exit ;; 545*cdf0e10cSrcweir 9000/[34]??:4.3bsd:1.*:*) 546*cdf0e10cSrcweir echo m68k-hp-bsd 547*cdf0e10cSrcweir- exit 0 ;; 548*cdf0e10cSrcweir+ exit ;; 549*cdf0e10cSrcweir hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 550*cdf0e10cSrcweir echo m68k-hp-bsd4.4 551*cdf0e10cSrcweir- exit 0 ;; 552*cdf0e10cSrcweir+ exit ;; 553*cdf0e10cSrcweir 9000/[34678]??:HP-UX:*:*) 554*cdf0e10cSrcweir HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 555*cdf0e10cSrcweir case "${UNAME_MACHINE}" in 556*cdf0e10cSrcweir@@ -634,9 +648,19 @@ 557*cdf0e10cSrcweir esac 558*cdf0e10cSrcweir if [ ${HP_ARCH} = "hppa2.0w" ] 559*cdf0e10cSrcweir then 560*cdf0e10cSrcweir- # avoid double evaluation of $set_cc_for_build 561*cdf0e10cSrcweir- test -n "$CC_FOR_BUILD" || eval $set_cc_for_build 562*cdf0e10cSrcweir- if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null 563*cdf0e10cSrcweir+ eval $set_cc_for_build 564*cdf0e10cSrcweir+ 565*cdf0e10cSrcweir+ # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 566*cdf0e10cSrcweir+ # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 567*cdf0e10cSrcweir+ # generating 64-bit code. GNU and HP use different nomenclature: 568*cdf0e10cSrcweir+ # 569*cdf0e10cSrcweir+ # $ CC_FOR_BUILD=cc ./config.guess 570*cdf0e10cSrcweir+ # => hppa2.0w-hp-hpux11.23 571*cdf0e10cSrcweir+ # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 572*cdf0e10cSrcweir+ # => hppa64-hp-hpux11.23 573*cdf0e10cSrcweir+ 574*cdf0e10cSrcweir+ if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 575*cdf0e10cSrcweir+ grep -q __LP64__ 576*cdf0e10cSrcweir then 577*cdf0e10cSrcweir HP_ARCH="hppa2.0w" 578*cdf0e10cSrcweir else 579*cdf0e10cSrcweir@@ -644,11 +668,11 @@ 580*cdf0e10cSrcweir fi 581*cdf0e10cSrcweir fi 582*cdf0e10cSrcweir echo ${HP_ARCH}-hp-hpux${HPUX_REV} 583*cdf0e10cSrcweir- exit 0 ;; 584*cdf0e10cSrcweir+ exit ;; 585*cdf0e10cSrcweir ia64:HP-UX:*:*) 586*cdf0e10cSrcweir HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 587*cdf0e10cSrcweir echo ia64-hp-hpux${HPUX_REV} 588*cdf0e10cSrcweir- exit 0 ;; 589*cdf0e10cSrcweir+ exit ;; 590*cdf0e10cSrcweir 3050*:HI-UX:*:*) 591*cdf0e10cSrcweir eval $set_cc_for_build 592*cdf0e10cSrcweir sed 's/^ //' << EOF >$dummy.c 593*cdf0e10cSrcweir@@ -676,208 +700,248 @@ 594*cdf0e10cSrcweir exit (0); 595*cdf0e10cSrcweir } 596*cdf0e10cSrcweir EOF 597*cdf0e10cSrcweir- $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0 598*cdf0e10cSrcweir+ $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 599*cdf0e10cSrcweir+ { echo "$SYSTEM_NAME"; exit; } 600*cdf0e10cSrcweir echo unknown-hitachi-hiuxwe2 601*cdf0e10cSrcweir- exit 0 ;; 602*cdf0e10cSrcweir+ exit ;; 603*cdf0e10cSrcweir 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 604*cdf0e10cSrcweir echo hppa1.1-hp-bsd 605*cdf0e10cSrcweir- exit 0 ;; 606*cdf0e10cSrcweir+ exit ;; 607*cdf0e10cSrcweir 9000/8??:4.3bsd:*:*) 608*cdf0e10cSrcweir echo hppa1.0-hp-bsd 609*cdf0e10cSrcweir- exit 0 ;; 610*cdf0e10cSrcweir+ exit ;; 611*cdf0e10cSrcweir *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 612*cdf0e10cSrcweir echo hppa1.0-hp-mpeix 613*cdf0e10cSrcweir- exit 0 ;; 614*cdf0e10cSrcweir+ exit ;; 615*cdf0e10cSrcweir hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 616*cdf0e10cSrcweir echo hppa1.1-hp-osf 617*cdf0e10cSrcweir- exit 0 ;; 618*cdf0e10cSrcweir+ exit ;; 619*cdf0e10cSrcweir hp8??:OSF1:*:*) 620*cdf0e10cSrcweir echo hppa1.0-hp-osf 621*cdf0e10cSrcweir- exit 0 ;; 622*cdf0e10cSrcweir+ exit ;; 623*cdf0e10cSrcweir i*86:OSF1:*:*) 624*cdf0e10cSrcweir if [ -x /usr/sbin/sysversion ] ; then 625*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-osf1mk 626*cdf0e10cSrcweir else 627*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-osf1 628*cdf0e10cSrcweir fi 629*cdf0e10cSrcweir- exit 0 ;; 630*cdf0e10cSrcweir+ exit ;; 631*cdf0e10cSrcweir parisc*:Lites*:*:*) 632*cdf0e10cSrcweir echo hppa1.1-hp-lites 633*cdf0e10cSrcweir- exit 0 ;; 634*cdf0e10cSrcweir+ exit ;; 635*cdf0e10cSrcweir C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 636*cdf0e10cSrcweir echo c1-convex-bsd 637*cdf0e10cSrcweir- exit 0 ;; 638*cdf0e10cSrcweir+ exit ;; 639*cdf0e10cSrcweir C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 640*cdf0e10cSrcweir if getsysinfo -f scalar_acc 641*cdf0e10cSrcweir then echo c32-convex-bsd 642*cdf0e10cSrcweir else echo c2-convex-bsd 643*cdf0e10cSrcweir fi 644*cdf0e10cSrcweir- exit 0 ;; 645*cdf0e10cSrcweir+ exit ;; 646*cdf0e10cSrcweir C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 647*cdf0e10cSrcweir echo c34-convex-bsd 648*cdf0e10cSrcweir- exit 0 ;; 649*cdf0e10cSrcweir+ exit ;; 650*cdf0e10cSrcweir C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 651*cdf0e10cSrcweir echo c38-convex-bsd 652*cdf0e10cSrcweir- exit 0 ;; 653*cdf0e10cSrcweir+ exit ;; 654*cdf0e10cSrcweir C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 655*cdf0e10cSrcweir echo c4-convex-bsd 656*cdf0e10cSrcweir- exit 0 ;; 657*cdf0e10cSrcweir+ exit ;; 658*cdf0e10cSrcweir CRAY*Y-MP:*:*:*) 659*cdf0e10cSrcweir echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 660*cdf0e10cSrcweir- exit 0 ;; 661*cdf0e10cSrcweir+ exit ;; 662*cdf0e10cSrcweir CRAY*[A-Z]90:*:*:*) 663*cdf0e10cSrcweir echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 664*cdf0e10cSrcweir | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 665*cdf0e10cSrcweir -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 666*cdf0e10cSrcweir -e 's/\.[^.]*$/.X/' 667*cdf0e10cSrcweir- exit 0 ;; 668*cdf0e10cSrcweir+ exit ;; 669*cdf0e10cSrcweir CRAY*TS:*:*:*) 670*cdf0e10cSrcweir echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 671*cdf0e10cSrcweir- exit 0 ;; 672*cdf0e10cSrcweir+ exit ;; 673*cdf0e10cSrcweir CRAY*T3E:*:*:*) 674*cdf0e10cSrcweir echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 675*cdf0e10cSrcweir- exit 0 ;; 676*cdf0e10cSrcweir+ exit ;; 677*cdf0e10cSrcweir CRAY*SV1:*:*:*) 678*cdf0e10cSrcweir echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 679*cdf0e10cSrcweir- exit 0 ;; 680*cdf0e10cSrcweir+ exit ;; 681*cdf0e10cSrcweir *:UNICOS/mp:*:*) 682*cdf0e10cSrcweir- echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 683*cdf0e10cSrcweir- exit 0 ;; 684*cdf0e10cSrcweir+ echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 685*cdf0e10cSrcweir+ exit ;; 686*cdf0e10cSrcweir F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 687*cdf0e10cSrcweir FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 688*cdf0e10cSrcweir FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 689*cdf0e10cSrcweir FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 690*cdf0e10cSrcweir echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 691*cdf0e10cSrcweir- exit 0 ;; 692*cdf0e10cSrcweir+ exit ;; 693*cdf0e10cSrcweir+ 5000:UNIX_System_V:4.*:*) 694*cdf0e10cSrcweir+ FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 695*cdf0e10cSrcweir+ FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 696*cdf0e10cSrcweir+ echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 697*cdf0e10cSrcweir+ exit ;; 698*cdf0e10cSrcweir i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 699*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 700*cdf0e10cSrcweir- exit 0 ;; 701*cdf0e10cSrcweir+ exit ;; 702*cdf0e10cSrcweir sparc*:BSD/OS:*:*) 703*cdf0e10cSrcweir echo sparc-unknown-bsdi${UNAME_RELEASE} 704*cdf0e10cSrcweir- exit 0 ;; 705*cdf0e10cSrcweir+ exit ;; 706*cdf0e10cSrcweir *:BSD/OS:*:*) 707*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 708*cdf0e10cSrcweir- exit 0 ;; 709*cdf0e10cSrcweir- *:FreeBSD:*:*|*:GNU/FreeBSD:*:*) 710*cdf0e10cSrcweir- # Determine whether the default compiler uses glibc. 711*cdf0e10cSrcweir- eval $set_cc_for_build 712*cdf0e10cSrcweir- sed 's/^ //' << EOF >$dummy.c 713*cdf0e10cSrcweir- #include <features.h> 714*cdf0e10cSrcweir- #if __GLIBC__ >= 2 715*cdf0e10cSrcweir- LIBC=gnu 716*cdf0e10cSrcweir- #else 717*cdf0e10cSrcweir- LIBC= 718*cdf0e10cSrcweir- #endif 719*cdf0e10cSrcweir-EOF 720*cdf0e10cSrcweir- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 721*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC} 722*cdf0e10cSrcweir- exit 0 ;; 723*cdf0e10cSrcweir+ exit ;; 724*cdf0e10cSrcweir+ *:FreeBSD:*:*) 725*cdf0e10cSrcweir+ case ${UNAME_MACHINE} in 726*cdf0e10cSrcweir+ pc98) 727*cdf0e10cSrcweir+ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 728*cdf0e10cSrcweir+ amd64) 729*cdf0e10cSrcweir+ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 730*cdf0e10cSrcweir+ *) 731*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 732*cdf0e10cSrcweir+ esac 733*cdf0e10cSrcweir+ exit ;; 734*cdf0e10cSrcweir i*:CYGWIN*:*) 735*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-cygwin 736*cdf0e10cSrcweir- exit 0 ;; 737*cdf0e10cSrcweir- i*:MINGW*:*) 738*cdf0e10cSrcweir+ exit ;; 739*cdf0e10cSrcweir+ *:MINGW*:*) 740*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-mingw32 741*cdf0e10cSrcweir- exit 0 ;; 742*cdf0e10cSrcweir+ exit ;; 743*cdf0e10cSrcweir+ i*:windows32*:*) 744*cdf0e10cSrcweir+ # uname -m includes "-pc" on this system. 745*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-mingw32 746*cdf0e10cSrcweir+ exit ;; 747*cdf0e10cSrcweir i*:PW*:*) 748*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-pw32 749*cdf0e10cSrcweir- exit 0 ;; 750*cdf0e10cSrcweir- x86:Interix*:[34]*) 751*cdf0e10cSrcweir- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 752*cdf0e10cSrcweir- exit 0 ;; 753*cdf0e10cSrcweir+ exit ;; 754*cdf0e10cSrcweir+ *:Interix*:*) 755*cdf0e10cSrcweir+ case ${UNAME_MACHINE} in 756*cdf0e10cSrcweir+ x86) 757*cdf0e10cSrcweir+ echo i586-pc-interix${UNAME_RELEASE} 758*cdf0e10cSrcweir+ exit ;; 759*cdf0e10cSrcweir+ authenticamd | genuineintel | EM64T) 760*cdf0e10cSrcweir+ echo x86_64-unknown-interix${UNAME_RELEASE} 761*cdf0e10cSrcweir+ exit ;; 762*cdf0e10cSrcweir+ IA64) 763*cdf0e10cSrcweir+ echo ia64-unknown-interix${UNAME_RELEASE} 764*cdf0e10cSrcweir+ exit ;; 765*cdf0e10cSrcweir+ esac ;; 766*cdf0e10cSrcweir [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 767*cdf0e10cSrcweir echo i${UNAME_MACHINE}-pc-mks 768*cdf0e10cSrcweir- exit 0 ;; 769*cdf0e10cSrcweir+ exit ;; 770*cdf0e10cSrcweir+ 8664:Windows_NT:*) 771*cdf0e10cSrcweir+ echo x86_64-pc-mks 772*cdf0e10cSrcweir+ exit ;; 773*cdf0e10cSrcweir i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 774*cdf0e10cSrcweir # How do we know it's Interix rather than the generic POSIX subsystem? 775*cdf0e10cSrcweir # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 776*cdf0e10cSrcweir # UNAME_MACHINE based on the output of uname instead of i386? 777*cdf0e10cSrcweir echo i586-pc-interix 778*cdf0e10cSrcweir- exit 0 ;; 779*cdf0e10cSrcweir+ exit ;; 780*cdf0e10cSrcweir i*:UWIN*:*) 781*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-uwin 782*cdf0e10cSrcweir- exit 0 ;; 783*cdf0e10cSrcweir+ exit ;; 784*cdf0e10cSrcweir+ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 785*cdf0e10cSrcweir+ echo x86_64-unknown-cygwin 786*cdf0e10cSrcweir+ exit ;; 787*cdf0e10cSrcweir p*:CYGWIN*:*) 788*cdf0e10cSrcweir echo powerpcle-unknown-cygwin 789*cdf0e10cSrcweir- exit 0 ;; 790*cdf0e10cSrcweir+ exit ;; 791*cdf0e10cSrcweir prep*:SunOS:5.*:*) 792*cdf0e10cSrcweir echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 793*cdf0e10cSrcweir- exit 0 ;; 794*cdf0e10cSrcweir+ exit ;; 795*cdf0e10cSrcweir *:GNU:*:*) 796*cdf0e10cSrcweir+ # the GNU system 797*cdf0e10cSrcweir echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 798*cdf0e10cSrcweir- exit 0 ;; 799*cdf0e10cSrcweir+ exit ;; 800*cdf0e10cSrcweir+ *:GNU/*:*:*) 801*cdf0e10cSrcweir+ # other systems with GNU libc and userland 802*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 803*cdf0e10cSrcweir+ exit ;; 804*cdf0e10cSrcweir i*86:Minix:*:*) 805*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-minix 806*cdf0e10cSrcweir- exit 0 ;; 807*cdf0e10cSrcweir+ exit ;; 808*cdf0e10cSrcweir+ alpha:Linux:*:*) 809*cdf0e10cSrcweir+ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 810*cdf0e10cSrcweir+ EV5) UNAME_MACHINE=alphaev5 ;; 811*cdf0e10cSrcweir+ EV56) UNAME_MACHINE=alphaev56 ;; 812*cdf0e10cSrcweir+ PCA56) UNAME_MACHINE=alphapca56 ;; 813*cdf0e10cSrcweir+ PCA57) UNAME_MACHINE=alphapca56 ;; 814*cdf0e10cSrcweir+ EV6) UNAME_MACHINE=alphaev6 ;; 815*cdf0e10cSrcweir+ EV67) UNAME_MACHINE=alphaev67 ;; 816*cdf0e10cSrcweir+ EV68*) UNAME_MACHINE=alphaev68 ;; 817*cdf0e10cSrcweir+ esac 818*cdf0e10cSrcweir+ objdump --private-headers /bin/sh | grep -q ld.so.1 819*cdf0e10cSrcweir+ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 820*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 821*cdf0e10cSrcweir+ exit ;; 822*cdf0e10cSrcweir arm*:Linux:*:*) 823*cdf0e10cSrcweir+ eval $set_cc_for_build 824*cdf0e10cSrcweir+ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 825*cdf0e10cSrcweir+ | grep -q __ARM_EABI__ 826*cdf0e10cSrcweir+ then 827*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu 828*cdf0e10cSrcweir+ else 829*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnueabi 830*cdf0e10cSrcweir+ fi 831*cdf0e10cSrcweir+ exit ;; 832*cdf0e10cSrcweir+ avr32*:Linux:*:*) 833*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-linux-gnu 834*cdf0e10cSrcweir- exit 0 ;; 835*cdf0e10cSrcweir+ exit ;; 836*cdf0e10cSrcweir cris:Linux:*:*) 837*cdf0e10cSrcweir echo cris-axis-linux-gnu 838*cdf0e10cSrcweir- exit 0 ;; 839*cdf0e10cSrcweir- ia64:Linux:*:*) 840*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-${VENDOR:-unknown}-linux-gnu 841*cdf0e10cSrcweir- exit 0 ;; 842*cdf0e10cSrcweir- m68*:Linux:*:*) 843*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-unknown-linux-gnu 844*cdf0e10cSrcweir- exit 0 ;; 845*cdf0e10cSrcweir- mips:Linux:*:*) 846*cdf0e10cSrcweir+ exit ;; 847*cdf0e10cSrcweir+ crisv32:Linux:*:*) 848*cdf0e10cSrcweir+ echo crisv32-axis-linux-gnu 849*cdf0e10cSrcweir+ exit ;; 850*cdf0e10cSrcweir+ frv:Linux:*:*) 851*cdf0e10cSrcweir+ echo frv-unknown-linux-gnu 852*cdf0e10cSrcweir+ exit ;; 853*cdf0e10cSrcweir+ i*86:Linux:*:*) 854*cdf0e10cSrcweir+ LIBC=gnu 855*cdf0e10cSrcweir eval $set_cc_for_build 856*cdf0e10cSrcweir sed 's/^ //' << EOF >$dummy.c 857*cdf0e10cSrcweir- #undef CPU 858*cdf0e10cSrcweir- #undef mips 859*cdf0e10cSrcweir- #undef mipsel 860*cdf0e10cSrcweir- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 861*cdf0e10cSrcweir- CPU=mipsel 862*cdf0e10cSrcweir- #else 863*cdf0e10cSrcweir- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 864*cdf0e10cSrcweir- CPU=mips 865*cdf0e10cSrcweir- #else 866*cdf0e10cSrcweir- CPU= 867*cdf0e10cSrcweir- #endif 868*cdf0e10cSrcweir+ #ifdef __dietlibc__ 869*cdf0e10cSrcweir+ LIBC=dietlibc 870*cdf0e10cSrcweir #endif 871*cdf0e10cSrcweir EOF 872*cdf0e10cSrcweir- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 873*cdf0e10cSrcweir- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 874*cdf0e10cSrcweir- ;; 875*cdf0e10cSrcweir- mips64:Linux:*:*) 876*cdf0e10cSrcweir+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 877*cdf0e10cSrcweir+ echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 878*cdf0e10cSrcweir+ exit ;; 879*cdf0e10cSrcweir+ ia64:Linux:*:*) 880*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu 881*cdf0e10cSrcweir+ exit ;; 882*cdf0e10cSrcweir+ m32r*:Linux:*:*) 883*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu 884*cdf0e10cSrcweir+ exit ;; 885*cdf0e10cSrcweir+ m68*:Linux:*:*) 886*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu 887*cdf0e10cSrcweir+ exit ;; 888*cdf0e10cSrcweir+ mips:Linux:*:* | mips64:Linux:*:*) 889*cdf0e10cSrcweir eval $set_cc_for_build 890*cdf0e10cSrcweir sed 's/^ //' << EOF >$dummy.c 891*cdf0e10cSrcweir #undef CPU 892*cdf0e10cSrcweir- #undef mips64 893*cdf0e10cSrcweir- #undef mips64el 894*cdf0e10cSrcweir+ #undef ${UNAME_MACHINE} 895*cdf0e10cSrcweir+ #undef ${UNAME_MACHINE}el 896*cdf0e10cSrcweir #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 897*cdf0e10cSrcweir- CPU=mips64el 898*cdf0e10cSrcweir+ CPU=${UNAME_MACHINE}el 899*cdf0e10cSrcweir #else 900*cdf0e10cSrcweir #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 901*cdf0e10cSrcweir- CPU=mips64 902*cdf0e10cSrcweir+ CPU=${UNAME_MACHINE} 903*cdf0e10cSrcweir #else 904*cdf0e10cSrcweir CPU= 905*cdf0e10cSrcweir #endif 906*cdf0e10cSrcweir #endif 907*cdf0e10cSrcweir EOF 908*cdf0e10cSrcweir- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 909*cdf0e10cSrcweir- test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0 910*cdf0e10cSrcweir+ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 911*cdf0e10cSrcweir+ test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 912*cdf0e10cSrcweir ;; 913*cdf0e10cSrcweir- ppc:Linux:*:*) 914*cdf0e10cSrcweir- echo powerpc-${VENDOR:-unknown}-linux-gnu 915*cdf0e10cSrcweir- exit 0 ;; 916*cdf0e10cSrcweir- ppc64:Linux:*:*) 917*cdf0e10cSrcweir- echo powerpc64-${VENDOR:-unknown}-linux-gnu 918*cdf0e10cSrcweir- exit 0 ;; 919*cdf0e10cSrcweir- alpha:Linux:*:*) 920*cdf0e10cSrcweir- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 921*cdf0e10cSrcweir- EV5) UNAME_MACHINE=alphaev5 ;; 922*cdf0e10cSrcweir- EV56) UNAME_MACHINE=alphaev56 ;; 923*cdf0e10cSrcweir- PCA56) UNAME_MACHINE=alphapca56 ;; 924*cdf0e10cSrcweir- PCA57) UNAME_MACHINE=alphapca56 ;; 925*cdf0e10cSrcweir- EV6) UNAME_MACHINE=alphaev6 ;; 926*cdf0e10cSrcweir- EV67) UNAME_MACHINE=alphaev67 ;; 927*cdf0e10cSrcweir- EV68*) UNAME_MACHINE=alphaev68 ;; 928*cdf0e10cSrcweir- esac 929*cdf0e10cSrcweir- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 930*cdf0e10cSrcweir- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 931*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 932*cdf0e10cSrcweir- exit 0 ;; 933*cdf0e10cSrcweir+ or32:Linux:*:*) 934*cdf0e10cSrcweir+ echo or32-unknown-linux-gnu 935*cdf0e10cSrcweir+ exit ;; 936*cdf0e10cSrcweir+ padre:Linux:*:*) 937*cdf0e10cSrcweir+ echo sparc-unknown-linux-gnu 938*cdf0e10cSrcweir+ exit ;; 939*cdf0e10cSrcweir+ parisc64:Linux:*:* | hppa64:Linux:*:*) 940*cdf0e10cSrcweir+ echo hppa64-unknown-linux-gnu 941*cdf0e10cSrcweir+ exit ;; 942*cdf0e10cSrcweir parisc:Linux:*:* | hppa:Linux:*:*) 943*cdf0e10cSrcweir # Look for CPU level 944*cdf0e10cSrcweir case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 945*cdf0e10cSrcweir@@ -885,84 +949,40 @@ 946*cdf0e10cSrcweir PA8*) echo hppa2.0-unknown-linux-gnu ;; 947*cdf0e10cSrcweir *) echo hppa-unknown-linux-gnu ;; 948*cdf0e10cSrcweir esac 949*cdf0e10cSrcweir- exit 0 ;; 950*cdf0e10cSrcweir- parisc64:Linux:*:* | hppa64:Linux:*:*) 951*cdf0e10cSrcweir- echo hppa64-unknown-linux-gnu 952*cdf0e10cSrcweir- exit 0 ;; 953*cdf0e10cSrcweir+ exit ;; 954*cdf0e10cSrcweir+ ppc64:Linux:*:*) 955*cdf0e10cSrcweir+ echo powerpc64-unknown-linux-gnu 956*cdf0e10cSrcweir+ exit ;; 957*cdf0e10cSrcweir+ ppc:Linux:*:*) 958*cdf0e10cSrcweir+ echo powerpc-unknown-linux-gnu 959*cdf0e10cSrcweir+ exit ;; 960*cdf0e10cSrcweir s390:Linux:*:* | s390x:Linux:*:*) 961*cdf0e10cSrcweir- echo ${UNAME_MACHINE}-${VENDOR:-ibm}-linux-gnu 962*cdf0e10cSrcweir- exit 0 ;; 963*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-ibm-linux 964*cdf0e10cSrcweir+ exit ;; 965*cdf0e10cSrcweir sh64*:Linux:*:*) 966*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-linux-gnu 967*cdf0e10cSrcweir- exit 0 ;; 968*cdf0e10cSrcweir+ exit ;; 969*cdf0e10cSrcweir sh*:Linux:*:*) 970*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-linux-gnu 971*cdf0e10cSrcweir- exit 0 ;; 972*cdf0e10cSrcweir+ exit ;; 973*cdf0e10cSrcweir sparc:Linux:*:* | sparc64:Linux:*:*) 974*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-linux-gnu 975*cdf0e10cSrcweir- exit 0 ;; 976*cdf0e10cSrcweir+ exit ;; 977*cdf0e10cSrcweir+ vax:Linux:*:*) 978*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-dec-linux-gnu 979*cdf0e10cSrcweir+ exit ;; 980*cdf0e10cSrcweir x86_64:Linux:*:*) 981*cdf0e10cSrcweir- echo x86_64-${VENDOR:-unknown}-linux-gnu 982*cdf0e10cSrcweir- exit 0 ;; 983*cdf0e10cSrcweir- i*86:Linux:*:*) 984*cdf0e10cSrcweir- # The BFD linker knows what the default object file format is, so 985*cdf0e10cSrcweir- # first see if it will tell us. cd to the root directory to prevent 986*cdf0e10cSrcweir- # problems with other programs or directories called `ld' in the path. 987*cdf0e10cSrcweir- # Set LC_ALL=C to ensure ld outputs messages in English. 988*cdf0e10cSrcweir- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 989*cdf0e10cSrcweir- | sed -ne '/supported targets:/!d 990*cdf0e10cSrcweir- s/[ ][ ]*/ /g 991*cdf0e10cSrcweir- s/.*supported targets: *// 992*cdf0e10cSrcweir- s/ .*// 993*cdf0e10cSrcweir- p'` 994*cdf0e10cSrcweir- case "$ld_supported_targets" in 995*cdf0e10cSrcweir- elf32-i386) 996*cdf0e10cSrcweir- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 997*cdf0e10cSrcweir- ;; 998*cdf0e10cSrcweir- a.out-i386-linux) 999*cdf0e10cSrcweir- echo "${UNAME_MACHINE}-pc-linux-gnuaout" 1000*cdf0e10cSrcweir- exit 0 ;; 1001*cdf0e10cSrcweir- coff-i386) 1002*cdf0e10cSrcweir- echo "${UNAME_MACHINE}-pc-linux-gnucoff" 1003*cdf0e10cSrcweir- exit 0 ;; 1004*cdf0e10cSrcweir- "") 1005*cdf0e10cSrcweir- # Either a pre-BFD a.out linker (linux-gnuoldld) or 1006*cdf0e10cSrcweir- # one that does not give us useful --help. 1007*cdf0e10cSrcweir- echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 1008*cdf0e10cSrcweir- exit 0 ;; 1009*cdf0e10cSrcweir- esac 1010*cdf0e10cSrcweir- # Determine whether the default compiler is a.out or elf 1011*cdf0e10cSrcweir- eval $set_cc_for_build 1012*cdf0e10cSrcweir- sed 's/^ //' << EOF >$dummy.c 1013*cdf0e10cSrcweir- #include <features.h> 1014*cdf0e10cSrcweir- #ifdef __ELF__ 1015*cdf0e10cSrcweir- # ifdef __GLIBC__ 1016*cdf0e10cSrcweir- # if __GLIBC__ >= 2 1017*cdf0e10cSrcweir- LIBC=gnu 1018*cdf0e10cSrcweir- # else 1019*cdf0e10cSrcweir- LIBC=gnulibc1 1020*cdf0e10cSrcweir- # endif 1021*cdf0e10cSrcweir- # else 1022*cdf0e10cSrcweir- LIBC=gnulibc1 1023*cdf0e10cSrcweir- # endif 1024*cdf0e10cSrcweir- #else 1025*cdf0e10cSrcweir- #ifdef __INTEL_COMPILER 1026*cdf0e10cSrcweir- LIBC=gnu 1027*cdf0e10cSrcweir- #else 1028*cdf0e10cSrcweir- LIBC=gnuaout 1029*cdf0e10cSrcweir- #endif 1030*cdf0e10cSrcweir- #endif 1031*cdf0e10cSrcweir-EOF 1032*cdf0e10cSrcweir- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1033*cdf0e10cSrcweir- test x"${LIBC}" != x && echo "${UNAME_MACHINE}-${VENDOR:-pc}-linux-${LIBC}" && exit 0 1034*cdf0e10cSrcweir- test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0 1035*cdf0e10cSrcweir- ;; 1036*cdf0e10cSrcweir+ echo x86_64-unknown-linux-gnu 1037*cdf0e10cSrcweir+ exit ;; 1038*cdf0e10cSrcweir+ xtensa*:Linux:*:*) 1039*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-linux-gnu 1040*cdf0e10cSrcweir+ exit ;; 1041*cdf0e10cSrcweir i*86:DYNIX/ptx:4*:*) 1042*cdf0e10cSrcweir # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1043*cdf0e10cSrcweir # earlier versions are messed up and put the nodename in both 1044*cdf0e10cSrcweir # sysname and nodename. 1045*cdf0e10cSrcweir echo i386-sequent-sysv4 1046*cdf0e10cSrcweir- exit 0 ;; 1047*cdf0e10cSrcweir+ exit ;; 1048*cdf0e10cSrcweir i*86:UNIX_SV:4.2MP:2.*) 1049*cdf0e10cSrcweir # Unixware is an offshoot of SVR4, but it has its own version 1050*cdf0e10cSrcweir # number series starting with 2... 1051*cdf0e10cSrcweir@@ -970,24 +990,27 @@ 1052*cdf0e10cSrcweir # I just have to hope. -- rms. 1053*cdf0e10cSrcweir # Use sysv4.2uw... so that sysv4* matches it. 1054*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1055*cdf0e10cSrcweir- exit 0 ;; 1056*cdf0e10cSrcweir+ exit ;; 1057*cdf0e10cSrcweir i*86:OS/2:*:*) 1058*cdf0e10cSrcweir # If we were able to find `uname', then EMX Unix compatibility 1059*cdf0e10cSrcweir # is probably installed. 1060*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-os2-emx 1061*cdf0e10cSrcweir- exit 0 ;; 1062*cdf0e10cSrcweir+ exit ;; 1063*cdf0e10cSrcweir i*86:XTS-300:*:STOP) 1064*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-stop 1065*cdf0e10cSrcweir- exit 0 ;; 1066*cdf0e10cSrcweir+ exit ;; 1067*cdf0e10cSrcweir i*86:atheos:*:*) 1068*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-atheos 1069*cdf0e10cSrcweir- exit 0 ;; 1070*cdf0e10cSrcweir- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1071*cdf0e10cSrcweir+ exit ;; 1072*cdf0e10cSrcweir+ i*86:syllable:*:*) 1073*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-pc-syllable 1074*cdf0e10cSrcweir+ exit ;; 1075*cdf0e10cSrcweir+ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1076*cdf0e10cSrcweir echo i386-unknown-lynxos${UNAME_RELEASE} 1077*cdf0e10cSrcweir- exit 0 ;; 1078*cdf0e10cSrcweir+ exit ;; 1079*cdf0e10cSrcweir i*86:*DOS:*:*) 1080*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-msdosdjgpp 1081*cdf0e10cSrcweir- exit 0 ;; 1082*cdf0e10cSrcweir+ exit ;; 1083*cdf0e10cSrcweir i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1084*cdf0e10cSrcweir UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1085*cdf0e10cSrcweir if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1086*cdf0e10cSrcweir@@ -995,15 +1018,16 @@ 1087*cdf0e10cSrcweir else 1088*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1089*cdf0e10cSrcweir fi 1090*cdf0e10cSrcweir- exit 0 ;; 1091*cdf0e10cSrcweir- i*86:*:5:[78]*) 1092*cdf0e10cSrcweir+ exit ;; 1093*cdf0e10cSrcweir+ i*86:*:5:[678]*) 1094*cdf0e10cSrcweir+ # UnixWare 7.x, OpenUNIX and OpenServer 6. 1095*cdf0e10cSrcweir case `/bin/uname -X | grep "^Machine"` in 1096*cdf0e10cSrcweir *486*) UNAME_MACHINE=i486 ;; 1097*cdf0e10cSrcweir *Pentium) UNAME_MACHINE=i586 ;; 1098*cdf0e10cSrcweir *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1099*cdf0e10cSrcweir esac 1100*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1101*cdf0e10cSrcweir- exit 0 ;; 1102*cdf0e10cSrcweir+ exit ;; 1103*cdf0e10cSrcweir i*86:*:3.2:*) 1104*cdf0e10cSrcweir if test -f /usr/options/cb.name; then 1105*cdf0e10cSrcweir UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1106*cdf0e10cSrcweir@@ -1021,73 +1045,86 @@ 1107*cdf0e10cSrcweir else 1108*cdf0e10cSrcweir echo ${UNAME_MACHINE}-pc-sysv32 1109*cdf0e10cSrcweir fi 1110*cdf0e10cSrcweir- exit 0 ;; 1111*cdf0e10cSrcweir+ exit ;; 1112*cdf0e10cSrcweir pc:*:*:*) 1113*cdf0e10cSrcweir # Left here for compatibility: 1114*cdf0e10cSrcweir # uname -m prints for DJGPP always 'pc', but it prints nothing about 1115*cdf0e10cSrcweir- # the processor, so we play safe by assuming i386. 1116*cdf0e10cSrcweir- echo i386-pc-msdosdjgpp 1117*cdf0e10cSrcweir- exit 0 ;; 1118*cdf0e10cSrcweir+ # the processor, so we play safe by assuming i586. 1119*cdf0e10cSrcweir+ # Note: whatever this is, it MUST be the same as what config.sub 1120*cdf0e10cSrcweir+ # prints for the "djgpp" host, or else GDB configury will decide that 1121*cdf0e10cSrcweir+ # this is a cross-build. 1122*cdf0e10cSrcweir+ echo i586-pc-msdosdjgpp 1123*cdf0e10cSrcweir+ exit ;; 1124*cdf0e10cSrcweir Intel:Mach:3*:*) 1125*cdf0e10cSrcweir echo i386-pc-mach3 1126*cdf0e10cSrcweir- exit 0 ;; 1127*cdf0e10cSrcweir+ exit ;; 1128*cdf0e10cSrcweir paragon:*:*:*) 1129*cdf0e10cSrcweir echo i860-intel-osf1 1130*cdf0e10cSrcweir- exit 0 ;; 1131*cdf0e10cSrcweir+ exit ;; 1132*cdf0e10cSrcweir i860:*:4.*:*) # i860-SVR4 1133*cdf0e10cSrcweir if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1134*cdf0e10cSrcweir echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1135*cdf0e10cSrcweir else # Add other i860-SVR4 vendors below as they are discovered. 1136*cdf0e10cSrcweir echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1137*cdf0e10cSrcweir fi 1138*cdf0e10cSrcweir- exit 0 ;; 1139*cdf0e10cSrcweir+ exit ;; 1140*cdf0e10cSrcweir mini*:CTIX:SYS*5:*) 1141*cdf0e10cSrcweir # "miniframe" 1142*cdf0e10cSrcweir echo m68010-convergent-sysv 1143*cdf0e10cSrcweir- exit 0 ;; 1144*cdf0e10cSrcweir+ exit ;; 1145*cdf0e10cSrcweir mc68k:UNIX:SYSTEM5:3.51m) 1146*cdf0e10cSrcweir echo m68k-convergent-sysv 1147*cdf0e10cSrcweir- exit 0 ;; 1148*cdf0e10cSrcweir+ exit ;; 1149*cdf0e10cSrcweir M680?0:D-NIX:5.3:*) 1150*cdf0e10cSrcweir echo m68k-diab-dnix 1151*cdf0e10cSrcweir- exit 0 ;; 1152*cdf0e10cSrcweir- M68*:*:R3V[567]*:*) 1153*cdf0e10cSrcweir- test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;; 1154*cdf0e10cSrcweir- 3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0) 1155*cdf0e10cSrcweir+ exit ;; 1156*cdf0e10cSrcweir+ M68*:*:R3V[5678]*:*) 1157*cdf0e10cSrcweir+ test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1158*cdf0e10cSrcweir+ 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0) 1159*cdf0e10cSrcweir OS_REL='' 1160*cdf0e10cSrcweir test -r /etc/.relid \ 1161*cdf0e10cSrcweir && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1162*cdf0e10cSrcweir /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1163*cdf0e10cSrcweir- && echo i486-ncr-sysv4.3${OS_REL} && exit 0 1164*cdf0e10cSrcweir+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1165*cdf0e10cSrcweir /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1166*cdf0e10cSrcweir- && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;; 1167*cdf0e10cSrcweir+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1168*cdf0e10cSrcweir 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1169*cdf0e10cSrcweir /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1170*cdf0e10cSrcweir- && echo i486-ncr-sysv4 && exit 0 ;; 1171*cdf0e10cSrcweir+ && { echo i486-ncr-sysv4; exit; } ;; 1172*cdf0e10cSrcweir+ NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1173*cdf0e10cSrcweir+ OS_REL='.3' 1174*cdf0e10cSrcweir+ test -r /etc/.relid \ 1175*cdf0e10cSrcweir+ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1176*cdf0e10cSrcweir+ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1177*cdf0e10cSrcweir+ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1178*cdf0e10cSrcweir+ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1179*cdf0e10cSrcweir+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1180*cdf0e10cSrcweir+ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1181*cdf0e10cSrcweir+ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1182*cdf0e10cSrcweir m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1183*cdf0e10cSrcweir echo m68k-unknown-lynxos${UNAME_RELEASE} 1184*cdf0e10cSrcweir- exit 0 ;; 1185*cdf0e10cSrcweir+ exit ;; 1186*cdf0e10cSrcweir mc68030:UNIX_System_V:4.*:*) 1187*cdf0e10cSrcweir echo m68k-atari-sysv4 1188*cdf0e10cSrcweir- exit 0 ;; 1189*cdf0e10cSrcweir+ exit ;; 1190*cdf0e10cSrcweir TSUNAMI:LynxOS:2.*:*) 1191*cdf0e10cSrcweir echo sparc-unknown-lynxos${UNAME_RELEASE} 1192*cdf0e10cSrcweir- exit 0 ;; 1193*cdf0e10cSrcweir+ exit ;; 1194*cdf0e10cSrcweir rs6000:LynxOS:2.*:*) 1195*cdf0e10cSrcweir echo rs6000-unknown-lynxos${UNAME_RELEASE} 1196*cdf0e10cSrcweir- exit 0 ;; 1197*cdf0e10cSrcweir- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1198*cdf0e10cSrcweir+ exit ;; 1199*cdf0e10cSrcweir+ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1200*cdf0e10cSrcweir echo powerpc-unknown-lynxos${UNAME_RELEASE} 1201*cdf0e10cSrcweir- exit 0 ;; 1202*cdf0e10cSrcweir+ exit ;; 1203*cdf0e10cSrcweir SM[BE]S:UNIX_SV:*:*) 1204*cdf0e10cSrcweir echo mips-dde-sysv${UNAME_RELEASE} 1205*cdf0e10cSrcweir- exit 0 ;; 1206*cdf0e10cSrcweir+ exit ;; 1207*cdf0e10cSrcweir RM*:ReliantUNIX-*:*:*) 1208*cdf0e10cSrcweir echo mips-sni-sysv4 1209*cdf0e10cSrcweir- exit 0 ;; 1210*cdf0e10cSrcweir+ exit ;; 1211*cdf0e10cSrcweir RM*:SINIX-*:*:*) 1212*cdf0e10cSrcweir echo mips-sni-sysv4 1213*cdf0e10cSrcweir- exit 0 ;; 1214*cdf0e10cSrcweir+ exit ;; 1215*cdf0e10cSrcweir *:SINIX-*:*:*) 1216*cdf0e10cSrcweir if uname -p 2>/dev/null >/dev/null ; then 1217*cdf0e10cSrcweir UNAME_MACHINE=`(uname -p) 2>/dev/null` 1218*cdf0e10cSrcweir@@ -1095,68 +1132,94 @@ 1219*cdf0e10cSrcweir else 1220*cdf0e10cSrcweir echo ns32k-sni-sysv 1221*cdf0e10cSrcweir fi 1222*cdf0e10cSrcweir- exit 0 ;; 1223*cdf0e10cSrcweir+ exit ;; 1224*cdf0e10cSrcweir PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1225*cdf0e10cSrcweir # says <Richard.M.Bartel@ccMail.Census.GOV> 1226*cdf0e10cSrcweir echo i586-unisys-sysv4 1227*cdf0e10cSrcweir- exit 0 ;; 1228*cdf0e10cSrcweir+ exit ;; 1229*cdf0e10cSrcweir *:UNIX_System_V:4*:FTX*) 1230*cdf0e10cSrcweir # From Gerald Hewes <hewes@openmarket.com>. 1231*cdf0e10cSrcweir # How about differentiating between stratus architectures? -djm 1232*cdf0e10cSrcweir echo hppa1.1-stratus-sysv4 1233*cdf0e10cSrcweir- exit 0 ;; 1234*cdf0e10cSrcweir+ exit ;; 1235*cdf0e10cSrcweir *:*:*:FTX*) 1236*cdf0e10cSrcweir # From seanf@swdc.stratus.com. 1237*cdf0e10cSrcweir echo i860-stratus-sysv4 1238*cdf0e10cSrcweir- exit 0 ;; 1239*cdf0e10cSrcweir+ exit ;; 1240*cdf0e10cSrcweir+ i*86:VOS:*:*) 1241*cdf0e10cSrcweir+ # From Paul.Green@stratus.com. 1242*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-stratus-vos 1243*cdf0e10cSrcweir+ exit ;; 1244*cdf0e10cSrcweir *:VOS:*:*) 1245*cdf0e10cSrcweir # From Paul.Green@stratus.com. 1246*cdf0e10cSrcweir echo hppa1.1-stratus-vos 1247*cdf0e10cSrcweir- exit 0 ;; 1248*cdf0e10cSrcweir+ exit ;; 1249*cdf0e10cSrcweir mc68*:A/UX:*:*) 1250*cdf0e10cSrcweir echo m68k-apple-aux${UNAME_RELEASE} 1251*cdf0e10cSrcweir- exit 0 ;; 1252*cdf0e10cSrcweir+ exit ;; 1253*cdf0e10cSrcweir news*:NEWS-OS:6*:*) 1254*cdf0e10cSrcweir echo mips-sony-newsos6 1255*cdf0e10cSrcweir- exit 0 ;; 1256*cdf0e10cSrcweir+ exit ;; 1257*cdf0e10cSrcweir R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1258*cdf0e10cSrcweir if [ -d /usr/nec ]; then 1259*cdf0e10cSrcweir echo mips-nec-sysv${UNAME_RELEASE} 1260*cdf0e10cSrcweir else 1261*cdf0e10cSrcweir echo mips-unknown-sysv${UNAME_RELEASE} 1262*cdf0e10cSrcweir fi 1263*cdf0e10cSrcweir- exit 0 ;; 1264*cdf0e10cSrcweir+ exit ;; 1265*cdf0e10cSrcweir BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1266*cdf0e10cSrcweir echo powerpc-be-beos 1267*cdf0e10cSrcweir- exit 0 ;; 1268*cdf0e10cSrcweir+ exit ;; 1269*cdf0e10cSrcweir BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1270*cdf0e10cSrcweir echo powerpc-apple-beos 1271*cdf0e10cSrcweir- exit 0 ;; 1272*cdf0e10cSrcweir+ exit ;; 1273*cdf0e10cSrcweir BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1274*cdf0e10cSrcweir echo i586-pc-beos 1275*cdf0e10cSrcweir- exit 0 ;; 1276*cdf0e10cSrcweir+ exit ;; 1277*cdf0e10cSrcweir+ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1278*cdf0e10cSrcweir+ echo i586-pc-haiku 1279*cdf0e10cSrcweir+ exit ;; 1280*cdf0e10cSrcweir SX-4:SUPER-UX:*:*) 1281*cdf0e10cSrcweir echo sx4-nec-superux${UNAME_RELEASE} 1282*cdf0e10cSrcweir- exit 0 ;; 1283*cdf0e10cSrcweir+ exit ;; 1284*cdf0e10cSrcweir SX-5:SUPER-UX:*:*) 1285*cdf0e10cSrcweir echo sx5-nec-superux${UNAME_RELEASE} 1286*cdf0e10cSrcweir- exit 0 ;; 1287*cdf0e10cSrcweir+ exit ;; 1288*cdf0e10cSrcweir SX-6:SUPER-UX:*:*) 1289*cdf0e10cSrcweir echo sx6-nec-superux${UNAME_RELEASE} 1290*cdf0e10cSrcweir- exit 0 ;; 1291*cdf0e10cSrcweir+ exit ;; 1292*cdf0e10cSrcweir+ SX-7:SUPER-UX:*:*) 1293*cdf0e10cSrcweir+ echo sx7-nec-superux${UNAME_RELEASE} 1294*cdf0e10cSrcweir+ exit ;; 1295*cdf0e10cSrcweir+ SX-8:SUPER-UX:*:*) 1296*cdf0e10cSrcweir+ echo sx8-nec-superux${UNAME_RELEASE} 1297*cdf0e10cSrcweir+ exit ;; 1298*cdf0e10cSrcweir+ SX-8R:SUPER-UX:*:*) 1299*cdf0e10cSrcweir+ echo sx8r-nec-superux${UNAME_RELEASE} 1300*cdf0e10cSrcweir+ exit ;; 1301*cdf0e10cSrcweir Power*:Rhapsody:*:*) 1302*cdf0e10cSrcweir echo powerpc-apple-rhapsody${UNAME_RELEASE} 1303*cdf0e10cSrcweir- exit 0 ;; 1304*cdf0e10cSrcweir+ exit ;; 1305*cdf0e10cSrcweir *:Rhapsody:*:*) 1306*cdf0e10cSrcweir echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1307*cdf0e10cSrcweir- exit 0 ;; 1308*cdf0e10cSrcweir+ exit ;; 1309*cdf0e10cSrcweir *:Darwin:*:*) 1310*cdf0e10cSrcweir- case `uname -p` in 1311*cdf0e10cSrcweir- *86) UNAME_PROCESSOR=i686 ;; 1312*cdf0e10cSrcweir- powerpc) UNAME_PROCESSOR=powerpc ;; 1313*cdf0e10cSrcweir+ UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1314*cdf0e10cSrcweir+ case $UNAME_PROCESSOR in 1315*cdf0e10cSrcweir+ i386) 1316*cdf0e10cSrcweir+ eval $set_cc_for_build 1317*cdf0e10cSrcweir+ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1318*cdf0e10cSrcweir+ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1319*cdf0e10cSrcweir+ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1320*cdf0e10cSrcweir+ grep IS_64BIT_ARCH >/dev/null 1321*cdf0e10cSrcweir+ then 1322*cdf0e10cSrcweir+ UNAME_PROCESSOR="x86_64" 1323*cdf0e10cSrcweir+ fi 1324*cdf0e10cSrcweir+ fi ;; 1325*cdf0e10cSrcweir+ unknown) UNAME_PROCESSOR=powerpc ;; 1326*cdf0e10cSrcweir esac 1327*cdf0e10cSrcweir echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1328*cdf0e10cSrcweir- exit 0 ;; 1329*cdf0e10cSrcweir+ exit ;; 1330*cdf0e10cSrcweir *:procnto*:*:* | *:QNX:[0123456789]*:*) 1331*cdf0e10cSrcweir UNAME_PROCESSOR=`uname -p` 1332*cdf0e10cSrcweir if test "$UNAME_PROCESSOR" = "x86"; then 1333*cdf0e10cSrcweir@@ -1164,22 +1227,25 @@ 1334*cdf0e10cSrcweir UNAME_MACHINE=pc 1335*cdf0e10cSrcweir fi 1336*cdf0e10cSrcweir echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1337*cdf0e10cSrcweir- exit 0 ;; 1338*cdf0e10cSrcweir+ exit ;; 1339*cdf0e10cSrcweir *:QNX:*:4*) 1340*cdf0e10cSrcweir echo i386-pc-qnx 1341*cdf0e10cSrcweir- exit 0 ;; 1342*cdf0e10cSrcweir- NSR-[DGKLNPTVW]:NONSTOP_KERNEL:*:*) 1343*cdf0e10cSrcweir+ exit ;; 1344*cdf0e10cSrcweir+ NSE-?:NONSTOP_KERNEL:*:*) 1345*cdf0e10cSrcweir+ echo nse-tandem-nsk${UNAME_RELEASE} 1346*cdf0e10cSrcweir+ exit ;; 1347*cdf0e10cSrcweir+ NSR-?:NONSTOP_KERNEL:*:*) 1348*cdf0e10cSrcweir echo nsr-tandem-nsk${UNAME_RELEASE} 1349*cdf0e10cSrcweir- exit 0 ;; 1350*cdf0e10cSrcweir+ exit ;; 1351*cdf0e10cSrcweir *:NonStop-UX:*:*) 1352*cdf0e10cSrcweir echo mips-compaq-nonstopux 1353*cdf0e10cSrcweir- exit 0 ;; 1354*cdf0e10cSrcweir+ exit ;; 1355*cdf0e10cSrcweir BS2000:POSIX*:*:*) 1356*cdf0e10cSrcweir echo bs2000-siemens-sysv 1357*cdf0e10cSrcweir- exit 0 ;; 1358*cdf0e10cSrcweir+ exit ;; 1359*cdf0e10cSrcweir DS/*:UNIX_System_V:*:*) 1360*cdf0e10cSrcweir echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1361*cdf0e10cSrcweir- exit 0 ;; 1362*cdf0e10cSrcweir+ exit ;; 1363*cdf0e10cSrcweir *:Plan9:*:*) 1364*cdf0e10cSrcweir # "uname -m" is not consistent, so use $cputype instead. 386 1365*cdf0e10cSrcweir # is converted to i386 for consistency with other x86 1366*cdf0e10cSrcweir@@ -1190,28 +1256,50 @@ 1367*cdf0e10cSrcweir UNAME_MACHINE="$cputype" 1368*cdf0e10cSrcweir fi 1369*cdf0e10cSrcweir echo ${UNAME_MACHINE}-unknown-plan9 1370*cdf0e10cSrcweir- exit 0 ;; 1371*cdf0e10cSrcweir+ exit ;; 1372*cdf0e10cSrcweir *:TOPS-10:*:*) 1373*cdf0e10cSrcweir echo pdp10-unknown-tops10 1374*cdf0e10cSrcweir- exit 0 ;; 1375*cdf0e10cSrcweir+ exit ;; 1376*cdf0e10cSrcweir *:TENEX:*:*) 1377*cdf0e10cSrcweir echo pdp10-unknown-tenex 1378*cdf0e10cSrcweir- exit 0 ;; 1379*cdf0e10cSrcweir+ exit ;; 1380*cdf0e10cSrcweir KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1381*cdf0e10cSrcweir echo pdp10-dec-tops20 1382*cdf0e10cSrcweir- exit 0 ;; 1383*cdf0e10cSrcweir+ exit ;; 1384*cdf0e10cSrcweir XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1385*cdf0e10cSrcweir echo pdp10-xkl-tops20 1386*cdf0e10cSrcweir- exit 0 ;; 1387*cdf0e10cSrcweir+ exit ;; 1388*cdf0e10cSrcweir *:TOPS-20:*:*) 1389*cdf0e10cSrcweir echo pdp10-unknown-tops20 1390*cdf0e10cSrcweir- exit 0 ;; 1391*cdf0e10cSrcweir+ exit ;; 1392*cdf0e10cSrcweir *:ITS:*:*) 1393*cdf0e10cSrcweir echo pdp10-unknown-its 1394*cdf0e10cSrcweir- exit 0 ;; 1395*cdf0e10cSrcweir+ exit ;; 1396*cdf0e10cSrcweir SEI:*:*:SEIUX) 1397*cdf0e10cSrcweir echo mips-sei-seiux${UNAME_RELEASE} 1398*cdf0e10cSrcweir- exit 0 ;; 1399*cdf0e10cSrcweir+ exit ;; 1400*cdf0e10cSrcweir+ *:DragonFly:*:*) 1401*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1402*cdf0e10cSrcweir+ exit ;; 1403*cdf0e10cSrcweir+ *:*VMS:*:*) 1404*cdf0e10cSrcweir+ UNAME_MACHINE=`(uname -p) 2>/dev/null` 1405*cdf0e10cSrcweir+ case "${UNAME_MACHINE}" in 1406*cdf0e10cSrcweir+ A*) echo alpha-dec-vms ; exit ;; 1407*cdf0e10cSrcweir+ I*) echo ia64-dec-vms ; exit ;; 1408*cdf0e10cSrcweir+ V*) echo vax-dec-vms ; exit ;; 1409*cdf0e10cSrcweir+ esac ;; 1410*cdf0e10cSrcweir+ *:XENIX:*:SysV) 1411*cdf0e10cSrcweir+ echo i386-pc-xenix 1412*cdf0e10cSrcweir+ exit ;; 1413*cdf0e10cSrcweir+ i*86:skyos:*:*) 1414*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1415*cdf0e10cSrcweir+ exit ;; 1416*cdf0e10cSrcweir+ i*86:rdos:*:*) 1417*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-pc-rdos 1418*cdf0e10cSrcweir+ exit ;; 1419*cdf0e10cSrcweir+ i*86:AROS:*:*) 1420*cdf0e10cSrcweir+ echo ${UNAME_MACHINE}-pc-aros 1421*cdf0e10cSrcweir+ exit ;; 1422*cdf0e10cSrcweir esac 1423*cdf0e10cSrcweir 1424*cdf0e10cSrcweir #echo '(No uname command or uname output not recognized.)' 1>&2 1425*cdf0e10cSrcweir@@ -1243,7 +1331,7 @@ 1426*cdf0e10cSrcweir #endif 1427*cdf0e10cSrcweir 1428*cdf0e10cSrcweir #if defined (__arm) && defined (__acorn) && defined (__unix) 1429*cdf0e10cSrcweir- printf ("arm-acorn-riscix"); exit (0); 1430*cdf0e10cSrcweir+ printf ("arm-acorn-riscix\n"); exit (0); 1431*cdf0e10cSrcweir #endif 1432*cdf0e10cSrcweir 1433*cdf0e10cSrcweir #if defined (hp300) && !defined (hpux) 1434*cdf0e10cSrcweir@@ -1332,11 +1420,12 @@ 1435*cdf0e10cSrcweir } 1436*cdf0e10cSrcweir EOF 1437*cdf0e10cSrcweir 1438*cdf0e10cSrcweir-$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0 1439*cdf0e10cSrcweir+$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1440*cdf0e10cSrcweir+ { echo "$SYSTEM_NAME"; exit; } 1441*cdf0e10cSrcweir 1442*cdf0e10cSrcweir # Apollos put the system type in the environment. 1443*cdf0e10cSrcweir 1444*cdf0e10cSrcweir-test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; } 1445*cdf0e10cSrcweir+test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1446*cdf0e10cSrcweir 1447*cdf0e10cSrcweir # Convex versions that predate uname can use getsysinfo(1) 1448*cdf0e10cSrcweir 1449*cdf0e10cSrcweir@@ -1345,22 +1434,22 @@ 1450*cdf0e10cSrcweir case `getsysinfo -f cpu_type` in 1451*cdf0e10cSrcweir c1*) 1452*cdf0e10cSrcweir echo c1-convex-bsd 1453*cdf0e10cSrcweir- exit 0 ;; 1454*cdf0e10cSrcweir+ exit ;; 1455*cdf0e10cSrcweir c2*) 1456*cdf0e10cSrcweir if getsysinfo -f scalar_acc 1457*cdf0e10cSrcweir then echo c32-convex-bsd 1458*cdf0e10cSrcweir else echo c2-convex-bsd 1459*cdf0e10cSrcweir fi 1460*cdf0e10cSrcweir- exit 0 ;; 1461*cdf0e10cSrcweir+ exit ;; 1462*cdf0e10cSrcweir c34*) 1463*cdf0e10cSrcweir echo c34-convex-bsd 1464*cdf0e10cSrcweir- exit 0 ;; 1465*cdf0e10cSrcweir+ exit ;; 1466*cdf0e10cSrcweir c38*) 1467*cdf0e10cSrcweir echo c38-convex-bsd 1468*cdf0e10cSrcweir- exit 0 ;; 1469*cdf0e10cSrcweir+ exit ;; 1470*cdf0e10cSrcweir c4*) 1471*cdf0e10cSrcweir echo c4-convex-bsd 1472*cdf0e10cSrcweir- exit 0 ;; 1473*cdf0e10cSrcweir+ exit ;; 1474*cdf0e10cSrcweir esac 1475*cdf0e10cSrcweir fi 1476*cdf0e10cSrcweir 1477*cdf0e10cSrcweir@@ -1371,7 +1460,9 @@ 1478*cdf0e10cSrcweir the operating system you are using. It is advised that you 1479*cdf0e10cSrcweir download the most up to date version of the config scripts from 1480*cdf0e10cSrcweir 1481*cdf0e10cSrcweir- ftp://ftp.gnu.org/pub/gnu/config/ 1482*cdf0e10cSrcweir+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1483*cdf0e10cSrcweir+and 1484*cdf0e10cSrcweir+ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1485*cdf0e10cSrcweir 1486*cdf0e10cSrcweir If the version you run ($0) is already up to date, please 1487*cdf0e10cSrcweir send the following data and any information you think might be 1488*cdf0e10cSrcweir--- misc/xmlsec1-1.2.12/config.sub 2010-04-15 09:29:35.000000000 +0000 1489*cdf0e10cSrcweir+++ misc/build/xmlsec1-1.2.12/config.sub 2010-04-15 09:29:46.000000000 +0000 1490*cdf0e10cSrcweir@@ -1,9 +1,10 @@ 1491*cdf0e10cSrcweir #! /bin/sh 1492*cdf0e10cSrcweir # Configuration validation subroutine script. 1493*cdf0e10cSrcweir # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 1494*cdf0e10cSrcweir-# 2000, 2001, 2002, 2003 Free Software Foundation, Inc. 1495*cdf0e10cSrcweir+# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 1496*cdf0e10cSrcweir+# Free Software Foundation, Inc. 1497*cdf0e10cSrcweir 1498*cdf0e10cSrcweir-timestamp='2003-06-18' 1499*cdf0e10cSrcweir+timestamp='2010-01-22' 1500*cdf0e10cSrcweir 1501*cdf0e10cSrcweir # This file is (in principle) common to ALL GNU software. 1502*cdf0e10cSrcweir # The presence of a machine in this file suggests that SOME GNU software 1503*cdf0e10cSrcweir@@ -21,22 +22,26 @@ 1504*cdf0e10cSrcweir # 1505*cdf0e10cSrcweir # You should have received a copy of the GNU General Public License 1506*cdf0e10cSrcweir # along with this program; if not, write to the Free Software 1507*cdf0e10cSrcweir-# Foundation, Inc., 59 Temple Place - Suite 330, 1508*cdf0e10cSrcweir-# Boston, MA 02111-1307, USA. 1509*cdf0e10cSrcweir- 1510*cdf0e10cSrcweir+# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 1511*cdf0e10cSrcweir+# 02110-1301, USA. 1512*cdf0e10cSrcweir+# 1513*cdf0e10cSrcweir # As a special exception to the GNU General Public License, if you 1514*cdf0e10cSrcweir # distribute this file as part of a program that contains a 1515*cdf0e10cSrcweir # configuration script generated by Autoconf, you may include it under 1516*cdf0e10cSrcweir # the same distribution terms that you use for the rest of that program. 1517*cdf0e10cSrcweir 1518*cdf0e10cSrcweir+ 1519*cdf0e10cSrcweir # Please send patches to <config-patches@gnu.org>. Submit a context 1520*cdf0e10cSrcweir-# diff and a properly formatted ChangeLog entry. 1521*cdf0e10cSrcweir+# diff and a properly formatted GNU ChangeLog entry. 1522*cdf0e10cSrcweir # 1523*cdf0e10cSrcweir # Configuration subroutine to validate and canonicalize a configuration type. 1524*cdf0e10cSrcweir # Supply the specified configuration type as an argument. 1525*cdf0e10cSrcweir # If it is invalid, we print an error message on stderr and exit with code 1. 1526*cdf0e10cSrcweir # Otherwise, we print the canonical config type on stdout and succeed. 1527*cdf0e10cSrcweir 1528*cdf0e10cSrcweir+# You can get the latest version of this script from: 1529*cdf0e10cSrcweir+# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1530*cdf0e10cSrcweir+ 1531*cdf0e10cSrcweir # This file is supposed to be the same for all GNU packages 1532*cdf0e10cSrcweir # and recognize all the CPU types, system types and aliases 1533*cdf0e10cSrcweir # that are meaningful with *any* GNU software. 1534*cdf0e10cSrcweir@@ -70,8 +75,9 @@ 1535*cdf0e10cSrcweir version="\ 1536*cdf0e10cSrcweir GNU config.sub ($timestamp) 1537*cdf0e10cSrcweir 1538*cdf0e10cSrcweir-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001 1539*cdf0e10cSrcweir-Free Software Foundation, Inc. 1540*cdf0e10cSrcweir+Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 1541*cdf0e10cSrcweir+2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free 1542*cdf0e10cSrcweir+Software Foundation, Inc. 1543*cdf0e10cSrcweir 1544*cdf0e10cSrcweir This is free software; see the source for copying conditions. There is NO 1545*cdf0e10cSrcweir warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 1546*cdf0e10cSrcweir@@ -83,11 +89,11 @@ 1547*cdf0e10cSrcweir while test $# -gt 0 ; do 1548*cdf0e10cSrcweir case $1 in 1549*cdf0e10cSrcweir --time-stamp | --time* | -t ) 1550*cdf0e10cSrcweir- echo "$timestamp" ; exit 0 ;; 1551*cdf0e10cSrcweir+ echo "$timestamp" ; exit ;; 1552*cdf0e10cSrcweir --version | -v ) 1553*cdf0e10cSrcweir- echo "$version" ; exit 0 ;; 1554*cdf0e10cSrcweir+ echo "$version" ; exit ;; 1555*cdf0e10cSrcweir --help | --h* | -h ) 1556*cdf0e10cSrcweir- echo "$usage"; exit 0 ;; 1557*cdf0e10cSrcweir+ echo "$usage"; exit ;; 1558*cdf0e10cSrcweir -- ) # Stop option processing 1559*cdf0e10cSrcweir shift; break ;; 1560*cdf0e10cSrcweir - ) # Use stdin as input. 1561*cdf0e10cSrcweir@@ -99,7 +105,7 @@ 1562*cdf0e10cSrcweir *local*) 1563*cdf0e10cSrcweir # First pass through any local machine types. 1564*cdf0e10cSrcweir echo $1 1565*cdf0e10cSrcweir- exit 0;; 1566*cdf0e10cSrcweir+ exit ;; 1567*cdf0e10cSrcweir 1568*cdf0e10cSrcweir * ) 1569*cdf0e10cSrcweir break ;; 1570*cdf0e10cSrcweir@@ -118,7 +124,10 @@ 1571*cdf0e10cSrcweir # Here we must recognize all the valid KERNEL-OS combinations. 1572*cdf0e10cSrcweir maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` 1573*cdf0e10cSrcweir case $maybe_os in 1574*cdf0e10cSrcweir- nto-qnx* | linux-gnu* | freebsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*) 1575*cdf0e10cSrcweir+ nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ 1576*cdf0e10cSrcweir+ uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ 1577*cdf0e10cSrcweir+ kopensolaris*-gnu* | \ 1578*cdf0e10cSrcweir+ storm-chaos* | os2-emx* | rtmk-nova*) 1579*cdf0e10cSrcweir os=-$maybe_os 1580*cdf0e10cSrcweir basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` 1581*cdf0e10cSrcweir ;; 1582*cdf0e10cSrcweir@@ -144,10 +153,13 @@ 1583*cdf0e10cSrcweir -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ 1584*cdf0e10cSrcweir -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ 1585*cdf0e10cSrcweir -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ 1586*cdf0e10cSrcweir- -apple | -axis) 1587*cdf0e10cSrcweir+ -apple | -axis | -knuth | -cray | -microblaze) 1588*cdf0e10cSrcweir os= 1589*cdf0e10cSrcweir basic_machine=$1 1590*cdf0e10cSrcweir ;; 1591*cdf0e10cSrcweir+ -bluegene*) 1592*cdf0e10cSrcweir+ os=-cnk 1593*cdf0e10cSrcweir+ ;; 1594*cdf0e10cSrcweir -sim | -cisco | -oki | -wec | -winbond) 1595*cdf0e10cSrcweir os= 1596*cdf0e10cSrcweir basic_machine=$1 1597*cdf0e10cSrcweir@@ -169,6 +181,10 @@ 1598*cdf0e10cSrcweir -hiux*) 1599*cdf0e10cSrcweir os=-hiuxwe2 1600*cdf0e10cSrcweir ;; 1601*cdf0e10cSrcweir+ -sco6) 1602*cdf0e10cSrcweir+ os=-sco5v6 1603*cdf0e10cSrcweir+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1604*cdf0e10cSrcweir+ ;; 1605*cdf0e10cSrcweir -sco5) 1606*cdf0e10cSrcweir os=-sco3.2v5 1607*cdf0e10cSrcweir basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1608*cdf0e10cSrcweir@@ -185,6 +201,10 @@ 1609*cdf0e10cSrcweir # Don't forget version if it is 3.2v4 or newer. 1610*cdf0e10cSrcweir basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1611*cdf0e10cSrcweir ;; 1612*cdf0e10cSrcweir+ -sco5v6*) 1613*cdf0e10cSrcweir+ # Don't forget version if it is 3.2v4 or newer. 1614*cdf0e10cSrcweir+ basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1615*cdf0e10cSrcweir+ ;; 1616*cdf0e10cSrcweir -sco*) 1617*cdf0e10cSrcweir os=-sco3.2v2 1618*cdf0e10cSrcweir basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` 1619*cdf0e10cSrcweir@@ -228,54 +248,71 @@ 1620*cdf0e10cSrcweir | a29k \ 1621*cdf0e10cSrcweir | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ 1622*cdf0e10cSrcweir | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ 1623*cdf0e10cSrcweir- | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \ 1624*cdf0e10cSrcweir+ | am33_2.0 \ 1625*cdf0e10cSrcweir+ | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ 1626*cdf0e10cSrcweir+ | bfin \ 1627*cdf0e10cSrcweir | c4x | clipper \ 1628*cdf0e10cSrcweir | d10v | d30v | dlx | dsp16xx \ 1629*cdf0e10cSrcweir- | fr30 | frv \ 1630*cdf0e10cSrcweir+ | fido | fr30 | frv \ 1631*cdf0e10cSrcweir | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ 1632*cdf0e10cSrcweir | i370 | i860 | i960 | ia64 \ 1633*cdf0e10cSrcweir- | ip2k \ 1634*cdf0e10cSrcweir- | m32r | m68000 | m68k | m88k | mcore \ 1635*cdf0e10cSrcweir+ | ip2k | iq2000 \ 1636*cdf0e10cSrcweir+ | lm32 \ 1637*cdf0e10cSrcweir+ | m32c | m32r | m32rle | m68000 | m68k | m88k \ 1638*cdf0e10cSrcweir+ | maxq | mb | microblaze | mcore | mep | metag \ 1639*cdf0e10cSrcweir | mips | mipsbe | mipseb | mipsel | mipsle \ 1640*cdf0e10cSrcweir | mips16 \ 1641*cdf0e10cSrcweir | mips64 | mips64el \ 1642*cdf0e10cSrcweir- | mips64vr | mips64vrel \ 1643*cdf0e10cSrcweir+ | mips64octeon | mips64octeonel \ 1644*cdf0e10cSrcweir | mips64orion | mips64orionel \ 1645*cdf0e10cSrcweir+ | mips64r5900 | mips64r5900el \ 1646*cdf0e10cSrcweir+ | mips64vr | mips64vrel \ 1647*cdf0e10cSrcweir | mips64vr4100 | mips64vr4100el \ 1648*cdf0e10cSrcweir | mips64vr4300 | mips64vr4300el \ 1649*cdf0e10cSrcweir | mips64vr5000 | mips64vr5000el \ 1650*cdf0e10cSrcweir+ | mips64vr5900 | mips64vr5900el \ 1651*cdf0e10cSrcweir | mipsisa32 | mipsisa32el \ 1652*cdf0e10cSrcweir | mipsisa32r2 | mipsisa32r2el \ 1653*cdf0e10cSrcweir | mipsisa64 | mipsisa64el \ 1654*cdf0e10cSrcweir+ | mipsisa64r2 | mipsisa64r2el \ 1655*cdf0e10cSrcweir | mipsisa64sb1 | mipsisa64sb1el \ 1656*cdf0e10cSrcweir | mipsisa64sr71k | mipsisa64sr71kel \ 1657*cdf0e10cSrcweir | mipstx39 | mipstx39el \ 1658*cdf0e10cSrcweir | mn10200 | mn10300 \ 1659*cdf0e10cSrcweir+ | moxie \ 1660*cdf0e10cSrcweir+ | mt \ 1661*cdf0e10cSrcweir | msp430 \ 1662*cdf0e10cSrcweir+ | nios | nios2 \ 1663*cdf0e10cSrcweir | ns16k | ns32k \ 1664*cdf0e10cSrcweir- | openrisc | or32 \ 1665*cdf0e10cSrcweir+ | or32 \ 1666*cdf0e10cSrcweir | pdp10 | pdp11 | pj | pjl \ 1667*cdf0e10cSrcweir | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ 1668*cdf0e10cSrcweir | pyramid \ 1669*cdf0e10cSrcweir- | s390 | s390x \ 1670*cdf0e10cSrcweir- | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \ 1671*cdf0e10cSrcweir+ | rx \ 1672*cdf0e10cSrcweir+ | score \ 1673*cdf0e10cSrcweir+ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ 1674*cdf0e10cSrcweir | sh64 | sh64le \ 1675*cdf0e10cSrcweir- | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv9 | sparcv9b \ 1676*cdf0e10cSrcweir- | strongarm \ 1677*cdf0e10cSrcweir+ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ 1678*cdf0e10cSrcweir+ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ 1679*cdf0e10cSrcweir+ | spu | strongarm \ 1680*cdf0e10cSrcweir | tahoe | thumb | tic4x | tic80 | tron \ 1681*cdf0e10cSrcweir+ | ubicom32 \ 1682*cdf0e10cSrcweir | v850 | v850e \ 1683*cdf0e10cSrcweir | we32k \ 1684*cdf0e10cSrcweir- | x86 | xscale | xstormy16 | xtensa \ 1685*cdf0e10cSrcweir- | z8k) 1686*cdf0e10cSrcweir+ | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ 1687*cdf0e10cSrcweir+ | z8k | z80) 1688*cdf0e10cSrcweir basic_machine=$basic_machine-unknown 1689*cdf0e10cSrcweir ;; 1690*cdf0e10cSrcweir- m6811 | m68hc11 | m6812 | m68hc12) 1691*cdf0e10cSrcweir+ m6811 | m68hc11 | m6812 | m68hc12 | picochip) 1692*cdf0e10cSrcweir # Motorola 68HC11/12. 1693*cdf0e10cSrcweir basic_machine=$basic_machine-unknown 1694*cdf0e10cSrcweir os=-none 1695*cdf0e10cSrcweir ;; 1696*cdf0e10cSrcweir m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k) 1697*cdf0e10cSrcweir ;; 1698*cdf0e10cSrcweir+ ms1) 1699*cdf0e10cSrcweir+ basic_machine=mt-unknown 1700*cdf0e10cSrcweir+ ;; 1701*cdf0e10cSrcweir 1702*cdf0e10cSrcweir # We use `pc' rather than `unknown' 1703*cdf0e10cSrcweir # because (1) that's what they normally are, and 1704*cdf0e10cSrcweir@@ -295,55 +332,69 @@ 1705*cdf0e10cSrcweir | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \ 1706*cdf0e10cSrcweir | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \ 1707*cdf0e10cSrcweir | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ 1708*cdf0e10cSrcweir- | avr-* \ 1709*cdf0e10cSrcweir- | bs2000-* \ 1710*cdf0e10cSrcweir+ | avr-* | avr32-* \ 1711*cdf0e10cSrcweir+ | bfin-* | bs2000-* \ 1712*cdf0e10cSrcweir | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ 1713*cdf0e10cSrcweir- | clipper-* | cydra-* \ 1714*cdf0e10cSrcweir+ | clipper-* | craynv-* | cydra-* \ 1715*cdf0e10cSrcweir | d10v-* | d30v-* | dlx-* \ 1716*cdf0e10cSrcweir | elxsi-* \ 1717*cdf0e10cSrcweir- | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \ 1718*cdf0e10cSrcweir+ | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \ 1719*cdf0e10cSrcweir | h8300-* | h8500-* \ 1720*cdf0e10cSrcweir | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ 1721*cdf0e10cSrcweir | i*86-* | i860-* | i960-* | ia64-* \ 1722*cdf0e10cSrcweir- | ip2k-* \ 1723*cdf0e10cSrcweir- | m32r-* \ 1724*cdf0e10cSrcweir+ | ip2k-* | iq2000-* \ 1725*cdf0e10cSrcweir+ | lm32-* \ 1726*cdf0e10cSrcweir+ | m32c-* | m32r-* | m32rle-* \ 1727*cdf0e10cSrcweir | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ 1728*cdf0e10cSrcweir- | m88110-* | m88k-* | mcore-* \ 1729*cdf0e10cSrcweir+ | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ 1730*cdf0e10cSrcweir | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ 1731*cdf0e10cSrcweir | mips16-* \ 1732*cdf0e10cSrcweir | mips64-* | mips64el-* \ 1733*cdf0e10cSrcweir- | mips64vr-* | mips64vrel-* \ 1734*cdf0e10cSrcweir+ | mips64octeon-* | mips64octeonel-* \ 1735*cdf0e10cSrcweir | mips64orion-* | mips64orionel-* \ 1736*cdf0e10cSrcweir+ | mips64r5900-* | mips64r5900el-* \ 1737*cdf0e10cSrcweir+ | mips64vr-* | mips64vrel-* \ 1738*cdf0e10cSrcweir | mips64vr4100-* | mips64vr4100el-* \ 1739*cdf0e10cSrcweir | mips64vr4300-* | mips64vr4300el-* \ 1740*cdf0e10cSrcweir | mips64vr5000-* | mips64vr5000el-* \ 1741*cdf0e10cSrcweir+ | mips64vr5900-* | mips64vr5900el-* \ 1742*cdf0e10cSrcweir | mipsisa32-* | mipsisa32el-* \ 1743*cdf0e10cSrcweir | mipsisa32r2-* | mipsisa32r2el-* \ 1744*cdf0e10cSrcweir | mipsisa64-* | mipsisa64el-* \ 1745*cdf0e10cSrcweir+ | mipsisa64r2-* | mipsisa64r2el-* \ 1746*cdf0e10cSrcweir | mipsisa64sb1-* | mipsisa64sb1el-* \ 1747*cdf0e10cSrcweir | mipsisa64sr71k-* | mipsisa64sr71kel-* \ 1748*cdf0e10cSrcweir | mipstx39-* | mipstx39el-* \ 1749*cdf0e10cSrcweir+ | mmix-* \ 1750*cdf0e10cSrcweir+ | mt-* \ 1751*cdf0e10cSrcweir | msp430-* \ 1752*cdf0e10cSrcweir- | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \ 1753*cdf0e10cSrcweir+ | nios-* | nios2-* \ 1754*cdf0e10cSrcweir+ | none-* | np1-* | ns16k-* | ns32k-* \ 1755*cdf0e10cSrcweir | orion-* \ 1756*cdf0e10cSrcweir | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ 1757*cdf0e10cSrcweir | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ 1758*cdf0e10cSrcweir | pyramid-* \ 1759*cdf0e10cSrcweir- | romp-* | rs6000-* \ 1760*cdf0e10cSrcweir- | s390-* | s390x-* \ 1761*cdf0e10cSrcweir- | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \ 1762*cdf0e10cSrcweir+ | romp-* | rs6000-* | rx-* \ 1763*cdf0e10cSrcweir+ | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ 1764*cdf0e10cSrcweir | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ 1765*cdf0e10cSrcweir- | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \ 1766*cdf0e10cSrcweir- | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \ 1767*cdf0e10cSrcweir+ | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ 1768*cdf0e10cSrcweir+ | sparclite-* \ 1769*cdf0e10cSrcweir+ | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ 1770*cdf0e10cSrcweir | tahoe-* | thumb-* \ 1771*cdf0e10cSrcweir | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ 1772*cdf0e10cSrcweir+ | tile-* | tilegx-* \ 1773*cdf0e10cSrcweir | tron-* \ 1774*cdf0e10cSrcweir+ | ubicom32-* \ 1775*cdf0e10cSrcweir | v850-* | v850e-* | vax-* \ 1776*cdf0e10cSrcweir | we32k-* \ 1777*cdf0e10cSrcweir- | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \ 1778*cdf0e10cSrcweir- | xtensa-* \ 1779*cdf0e10cSrcweir+ | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ 1780*cdf0e10cSrcweir+ | xstormy16-* | xtensa*-* \ 1781*cdf0e10cSrcweir | ymp-* \ 1782*cdf0e10cSrcweir- | z8k-*) 1783*cdf0e10cSrcweir+ | z8k-* | z80-*) 1784*cdf0e10cSrcweir+ ;; 1785*cdf0e10cSrcweir+ # Recognize the basic CPU types without company name, with glob match. 1786*cdf0e10cSrcweir+ xtensa*) 1787*cdf0e10cSrcweir+ basic_machine=$basic_machine-unknown 1788*cdf0e10cSrcweir ;; 1789*cdf0e10cSrcweir # Recognize the various machine names and aliases which stand 1790*cdf0e10cSrcweir # for a CPU type and a company and sometimes even an OS. 1791*cdf0e10cSrcweir@@ -361,6 +412,9 @@ 1792*cdf0e10cSrcweir basic_machine=a29k-amd 1793*cdf0e10cSrcweir os=-udi 1794*cdf0e10cSrcweir ;; 1795*cdf0e10cSrcweir+ abacus) 1796*cdf0e10cSrcweir+ basic_machine=abacus-unknown 1797*cdf0e10cSrcweir+ ;; 1798*cdf0e10cSrcweir adobe68k) 1799*cdf0e10cSrcweir basic_machine=m68010-adobe 1800*cdf0e10cSrcweir os=-scout 1801*cdf0e10cSrcweir@@ -378,6 +432,9 @@ 1802*cdf0e10cSrcweir amd64) 1803*cdf0e10cSrcweir basic_machine=x86_64-pc 1804*cdf0e10cSrcweir ;; 1805*cdf0e10cSrcweir+ amd64-*) 1806*cdf0e10cSrcweir+ basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'` 1807*cdf0e10cSrcweir+ ;; 1808*cdf0e10cSrcweir amdahl) 1809*cdf0e10cSrcweir basic_machine=580-amdahl 1810*cdf0e10cSrcweir os=-sysv 1811*cdf0e10cSrcweir@@ -401,6 +458,10 @@ 1812*cdf0e10cSrcweir basic_machine=m68k-apollo 1813*cdf0e10cSrcweir os=-bsd 1814*cdf0e10cSrcweir ;; 1815*cdf0e10cSrcweir+ aros) 1816*cdf0e10cSrcweir+ basic_machine=i386-pc 1817*cdf0e10cSrcweir+ os=-aros 1818*cdf0e10cSrcweir+ ;; 1819*cdf0e10cSrcweir aux) 1820*cdf0e10cSrcweir basic_machine=m68k-apple 1821*cdf0e10cSrcweir os=-aux 1822*cdf0e10cSrcweir@@ -409,10 +470,26 @@ 1823*cdf0e10cSrcweir basic_machine=ns32k-sequent 1824*cdf0e10cSrcweir os=-dynix 1825*cdf0e10cSrcweir ;; 1826*cdf0e10cSrcweir+ blackfin) 1827*cdf0e10cSrcweir+ basic_machine=bfin-unknown 1828*cdf0e10cSrcweir+ os=-linux 1829*cdf0e10cSrcweir+ ;; 1830*cdf0e10cSrcweir+ blackfin-*) 1831*cdf0e10cSrcweir+ basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` 1832*cdf0e10cSrcweir+ os=-linux 1833*cdf0e10cSrcweir+ ;; 1834*cdf0e10cSrcweir+ bluegene*) 1835*cdf0e10cSrcweir+ basic_machine=powerpc-ibm 1836*cdf0e10cSrcweir+ os=-cnk 1837*cdf0e10cSrcweir+ ;; 1838*cdf0e10cSrcweir c90) 1839*cdf0e10cSrcweir basic_machine=c90-cray 1840*cdf0e10cSrcweir os=-unicos 1841*cdf0e10cSrcweir ;; 1842*cdf0e10cSrcweir+ cegcc) 1843*cdf0e10cSrcweir+ basic_machine=arm-unknown 1844*cdf0e10cSrcweir+ os=-cegcc 1845*cdf0e10cSrcweir+ ;; 1846*cdf0e10cSrcweir convex-c1) 1847*cdf0e10cSrcweir basic_machine=c1-convex 1848*cdf0e10cSrcweir os=-bsd 1849*cdf0e10cSrcweir@@ -437,12 +514,27 @@ 1850*cdf0e10cSrcweir basic_machine=j90-cray 1851*cdf0e10cSrcweir os=-unicos 1852*cdf0e10cSrcweir ;; 1853*cdf0e10cSrcweir+ craynv) 1854*cdf0e10cSrcweir+ basic_machine=craynv-cray 1855*cdf0e10cSrcweir+ os=-unicosmp 1856*cdf0e10cSrcweir+ ;; 1857*cdf0e10cSrcweir+ cr16) 1858*cdf0e10cSrcweir+ basic_machine=cr16-unknown 1859*cdf0e10cSrcweir+ os=-elf 1860*cdf0e10cSrcweir+ ;; 1861*cdf0e10cSrcweir crds | unos) 1862*cdf0e10cSrcweir basic_machine=m68k-crds 1863*cdf0e10cSrcweir ;; 1864*cdf0e10cSrcweir+ crisv32 | crisv32-* | etraxfs*) 1865*cdf0e10cSrcweir+ basic_machine=crisv32-axis 1866*cdf0e10cSrcweir+ ;; 1867*cdf0e10cSrcweir cris | cris-* | etrax*) 1868*cdf0e10cSrcweir basic_machine=cris-axis 1869*cdf0e10cSrcweir ;; 1870*cdf0e10cSrcweir+ crx) 1871*cdf0e10cSrcweir+ basic_machine=crx-unknown 1872*cdf0e10cSrcweir+ os=-elf 1873*cdf0e10cSrcweir+ ;; 1874*cdf0e10cSrcweir da30 | da30-*) 1875*cdf0e10cSrcweir basic_machine=m68k-da30 1876*cdf0e10cSrcweir ;; 1877*cdf0e10cSrcweir@@ -465,6 +557,14 @@ 1878*cdf0e10cSrcweir basic_machine=m88k-motorola 1879*cdf0e10cSrcweir os=-sysv3 1880*cdf0e10cSrcweir ;; 1881*cdf0e10cSrcweir+ dicos) 1882*cdf0e10cSrcweir+ basic_machine=i686-pc 1883*cdf0e10cSrcweir+ os=-dicos 1884*cdf0e10cSrcweir+ ;; 1885*cdf0e10cSrcweir+ djgpp) 1886*cdf0e10cSrcweir+ basic_machine=i586-pc 1887*cdf0e10cSrcweir+ os=-msdosdjgpp 1888*cdf0e10cSrcweir+ ;; 1889*cdf0e10cSrcweir dpx20 | dpx20-*) 1890*cdf0e10cSrcweir basic_machine=rs6000-bull 1891*cdf0e10cSrcweir os=-bosx 1892*cdf0e10cSrcweir@@ -615,6 +715,14 @@ 1893*cdf0e10cSrcweir basic_machine=m68k-isi 1894*cdf0e10cSrcweir os=-sysv 1895*cdf0e10cSrcweir ;; 1896*cdf0e10cSrcweir+ m68knommu) 1897*cdf0e10cSrcweir+ basic_machine=m68k-unknown 1898*cdf0e10cSrcweir+ os=-linux 1899*cdf0e10cSrcweir+ ;; 1900*cdf0e10cSrcweir+ m68knommu-*) 1901*cdf0e10cSrcweir+ basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` 1902*cdf0e10cSrcweir+ os=-linux 1903*cdf0e10cSrcweir+ ;; 1904*cdf0e10cSrcweir m88k-omron*) 1905*cdf0e10cSrcweir basic_machine=m88k-omron 1906*cdf0e10cSrcweir ;; 1907*cdf0e10cSrcweir@@ -626,10 +734,17 @@ 1908*cdf0e10cSrcweir basic_machine=ns32k-utek 1909*cdf0e10cSrcweir os=-sysv 1910*cdf0e10cSrcweir ;; 1911*cdf0e10cSrcweir+ microblaze) 1912*cdf0e10cSrcweir+ basic_machine=microblaze-xilinx 1913*cdf0e10cSrcweir+ ;; 1914*cdf0e10cSrcweir mingw32) 1915*cdf0e10cSrcweir basic_machine=i386-pc 1916*cdf0e10cSrcweir os=-mingw32 1917*cdf0e10cSrcweir ;; 1918*cdf0e10cSrcweir+ mingw32ce) 1919*cdf0e10cSrcweir+ basic_machine=arm-unknown 1920*cdf0e10cSrcweir+ os=-mingw32ce 1921*cdf0e10cSrcweir+ ;; 1922*cdf0e10cSrcweir miniframe) 1923*cdf0e10cSrcweir basic_machine=m68000-convergent 1924*cdf0e10cSrcweir ;; 1925*cdf0e10cSrcweir@@ -643,10 +758,6 @@ 1926*cdf0e10cSrcweir mips3*) 1927*cdf0e10cSrcweir basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown 1928*cdf0e10cSrcweir ;; 1929*cdf0e10cSrcweir- mmix*) 1930*cdf0e10cSrcweir- basic_machine=mmix-knuth 1931*cdf0e10cSrcweir- os=-mmixware 1932*cdf0e10cSrcweir- ;; 1933*cdf0e10cSrcweir monitor) 1934*cdf0e10cSrcweir basic_machine=m68k-rom68k 1935*cdf0e10cSrcweir os=-coff 1936*cdf0e10cSrcweir@@ -659,6 +770,9 @@ 1937*cdf0e10cSrcweir basic_machine=i386-pc 1938*cdf0e10cSrcweir os=-msdos 1939*cdf0e10cSrcweir ;; 1940*cdf0e10cSrcweir+ ms1-*) 1941*cdf0e10cSrcweir+ basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'` 1942*cdf0e10cSrcweir+ ;; 1943*cdf0e10cSrcweir mvs) 1944*cdf0e10cSrcweir basic_machine=i370-ibm 1945*cdf0e10cSrcweir os=-mvs 1946*cdf0e10cSrcweir@@ -727,10 +841,6 @@ 1947*cdf0e10cSrcweir np1) 1948*cdf0e10cSrcweir basic_machine=np1-gould 1949*cdf0e10cSrcweir ;; 1950*cdf0e10cSrcweir- nv1) 1951*cdf0e10cSrcweir- basic_machine=nv1-cray 1952*cdf0e10cSrcweir- os=-unicosmp 1953*cdf0e10cSrcweir- ;; 1954*cdf0e10cSrcweir nsr-tandem) 1955*cdf0e10cSrcweir basic_machine=nsr-tandem 1956*cdf0e10cSrcweir ;; 1957*cdf0e10cSrcweir@@ -738,9 +848,12 @@ 1958*cdf0e10cSrcweir basic_machine=hppa1.1-oki 1959*cdf0e10cSrcweir os=-proelf 1960*cdf0e10cSrcweir ;; 1961*cdf0e10cSrcweir- or32 | or32-*) 1962*cdf0e10cSrcweir+ openrisc | openrisc-*) 1963*cdf0e10cSrcweir basic_machine=or32-unknown 1964*cdf0e10cSrcweir- os=-coff 1965*cdf0e10cSrcweir+ ;; 1966*cdf0e10cSrcweir+ os400) 1967*cdf0e10cSrcweir+ basic_machine=powerpc-ibm 1968*cdf0e10cSrcweir+ os=-os400 1969*cdf0e10cSrcweir ;; 1970*cdf0e10cSrcweir OSE68000 | ose68000) 1971*cdf0e10cSrcweir basic_machine=m68000-ericsson 1972*cdf0e10cSrcweir@@ -758,6 +871,14 @@ 1973*cdf0e10cSrcweir basic_machine=i860-intel 1974*cdf0e10cSrcweir os=-osf 1975*cdf0e10cSrcweir ;; 1976*cdf0e10cSrcweir+ parisc) 1977*cdf0e10cSrcweir+ basic_machine=hppa-unknown 1978*cdf0e10cSrcweir+ os=-linux 1979*cdf0e10cSrcweir+ ;; 1980*cdf0e10cSrcweir+ parisc-*) 1981*cdf0e10cSrcweir+ basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` 1982*cdf0e10cSrcweir+ os=-linux 1983*cdf0e10cSrcweir+ ;; 1984*cdf0e10cSrcweir pbd) 1985*cdf0e10cSrcweir basic_machine=sparc-tti 1986*cdf0e10cSrcweir ;; 1987*cdf0e10cSrcweir@@ -767,6 +888,12 @@ 1988*cdf0e10cSrcweir pc532 | pc532-*) 1989*cdf0e10cSrcweir basic_machine=ns32k-pc532 1990*cdf0e10cSrcweir ;; 1991*cdf0e10cSrcweir+ pc98) 1992*cdf0e10cSrcweir+ basic_machine=i386-pc 1993*cdf0e10cSrcweir+ ;; 1994*cdf0e10cSrcweir+ pc98-*) 1995*cdf0e10cSrcweir+ basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'` 1996*cdf0e10cSrcweir+ ;; 1997*cdf0e10cSrcweir pentium | p5 | k5 | k6 | nexgen | viac3) 1998*cdf0e10cSrcweir basic_machine=i586-pc 1999*cdf0e10cSrcweir ;; 2000*cdf0e10cSrcweir@@ -823,6 +950,10 @@ 2001*cdf0e10cSrcweir basic_machine=i586-unknown 2002*cdf0e10cSrcweir os=-pw32 2003*cdf0e10cSrcweir ;; 2004*cdf0e10cSrcweir+ rdos) 2005*cdf0e10cSrcweir+ basic_machine=i386-pc 2006*cdf0e10cSrcweir+ os=-rdos 2007*cdf0e10cSrcweir+ ;; 2008*cdf0e10cSrcweir rom68k) 2009*cdf0e10cSrcweir basic_machine=m68k-rom68k 2010*cdf0e10cSrcweir os=-coff 2011*cdf0e10cSrcweir@@ -833,6 +964,12 @@ 2012*cdf0e10cSrcweir rtpc | rtpc-*) 2013*cdf0e10cSrcweir basic_machine=romp-ibm 2014*cdf0e10cSrcweir ;; 2015*cdf0e10cSrcweir+ s390 | s390-*) 2016*cdf0e10cSrcweir+ basic_machine=s390-ibm 2017*cdf0e10cSrcweir+ ;; 2018*cdf0e10cSrcweir+ s390x | s390x-*) 2019*cdf0e10cSrcweir+ basic_machine=s390x-ibm 2020*cdf0e10cSrcweir+ ;; 2021*cdf0e10cSrcweir sa29200) 2022*cdf0e10cSrcweir basic_machine=a29k-amd 2023*cdf0e10cSrcweir os=-udi 2024*cdf0e10cSrcweir@@ -843,6 +980,10 @@ 2025*cdf0e10cSrcweir sb1el) 2026*cdf0e10cSrcweir basic_machine=mipsisa64sb1el-unknown 2027*cdf0e10cSrcweir ;; 2028*cdf0e10cSrcweir+ sde) 2029*cdf0e10cSrcweir+ basic_machine=mipsisa32-sde 2030*cdf0e10cSrcweir+ os=-elf 2031*cdf0e10cSrcweir+ ;; 2032*cdf0e10cSrcweir sei) 2033*cdf0e10cSrcweir basic_machine=mips-sei 2034*cdf0e10cSrcweir os=-seiux 2035*cdf0e10cSrcweir@@ -854,6 +995,9 @@ 2036*cdf0e10cSrcweir basic_machine=sh-hitachi 2037*cdf0e10cSrcweir os=-hms 2038*cdf0e10cSrcweir ;; 2039*cdf0e10cSrcweir+ sh5el) 2040*cdf0e10cSrcweir+ basic_machine=sh5le-unknown 2041*cdf0e10cSrcweir+ ;; 2042*cdf0e10cSrcweir sh64) 2043*cdf0e10cSrcweir basic_machine=sh64-unknown 2044*cdf0e10cSrcweir ;; 2045*cdf0e10cSrcweir@@ -943,6 +1087,15 @@ 2046*cdf0e10cSrcweir basic_machine=tic6x-unknown 2047*cdf0e10cSrcweir os=-coff 2048*cdf0e10cSrcweir ;; 2049*cdf0e10cSrcweir+ # This must be matched before tile*. 2050*cdf0e10cSrcweir+ tilegx*) 2051*cdf0e10cSrcweir+ basic_machine=tilegx-unknown 2052*cdf0e10cSrcweir+ os=-linux-gnu 2053*cdf0e10cSrcweir+ ;; 2054*cdf0e10cSrcweir+ tile*) 2055*cdf0e10cSrcweir+ basic_machine=tile-unknown 2056*cdf0e10cSrcweir+ os=-linux-gnu 2057*cdf0e10cSrcweir+ ;; 2058*cdf0e10cSrcweir tx39) 2059*cdf0e10cSrcweir basic_machine=mipstx39-unknown 2060*cdf0e10cSrcweir ;; 2061*cdf0e10cSrcweir@@ -956,6 +1109,10 @@ 2062*cdf0e10cSrcweir tower | tower-32) 2063*cdf0e10cSrcweir basic_machine=m68k-ncr 2064*cdf0e10cSrcweir ;; 2065*cdf0e10cSrcweir+ tpf) 2066*cdf0e10cSrcweir+ basic_machine=s390x-ibm 2067*cdf0e10cSrcweir+ os=-tpf 2068*cdf0e10cSrcweir+ ;; 2069*cdf0e10cSrcweir udi29k) 2070*cdf0e10cSrcweir basic_machine=a29k-amd 2071*cdf0e10cSrcweir os=-udi 2072*cdf0e10cSrcweir@@ -999,6 +1156,10 @@ 2073*cdf0e10cSrcweir basic_machine=hppa1.1-winbond 2074*cdf0e10cSrcweir os=-proelf 2075*cdf0e10cSrcweir ;; 2076*cdf0e10cSrcweir+ xbox) 2077*cdf0e10cSrcweir+ basic_machine=i686-pc 2078*cdf0e10cSrcweir+ os=-mingw32 2079*cdf0e10cSrcweir+ ;; 2080*cdf0e10cSrcweir xps | xps100) 2081*cdf0e10cSrcweir basic_machine=xps100-honeywell 2082*cdf0e10cSrcweir ;; 2083*cdf0e10cSrcweir@@ -1010,6 +1171,10 @@ 2084*cdf0e10cSrcweir basic_machine=z8k-unknown 2085*cdf0e10cSrcweir os=-sim 2086*cdf0e10cSrcweir ;; 2087*cdf0e10cSrcweir+ z80-*-coff) 2088*cdf0e10cSrcweir+ basic_machine=z80-unknown 2089*cdf0e10cSrcweir+ os=-sim 2090*cdf0e10cSrcweir+ ;; 2091*cdf0e10cSrcweir none) 2092*cdf0e10cSrcweir basic_machine=none-none 2093*cdf0e10cSrcweir os=-none 2094*cdf0e10cSrcweir@@ -1029,6 +1194,9 @@ 2095*cdf0e10cSrcweir romp) 2096*cdf0e10cSrcweir basic_machine=romp-ibm 2097*cdf0e10cSrcweir ;; 2098*cdf0e10cSrcweir+ mmix) 2099*cdf0e10cSrcweir+ basic_machine=mmix-knuth 2100*cdf0e10cSrcweir+ ;; 2101*cdf0e10cSrcweir rs6000) 2102*cdf0e10cSrcweir basic_machine=rs6000-ibm 2103*cdf0e10cSrcweir ;; 2104*cdf0e10cSrcweir@@ -1045,13 +1213,10 @@ 2105*cdf0e10cSrcweir we32k) 2106*cdf0e10cSrcweir basic_machine=we32k-att 2107*cdf0e10cSrcweir ;; 2108*cdf0e10cSrcweir- sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele) 2109*cdf0e10cSrcweir+ sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) 2110*cdf0e10cSrcweir basic_machine=sh-unknown 2111*cdf0e10cSrcweir ;; 2112*cdf0e10cSrcweir- sh64) 2113*cdf0e10cSrcweir- basic_machine=sh64-unknown 2114*cdf0e10cSrcweir- ;; 2115*cdf0e10cSrcweir- sparc | sparcv9 | sparcv9b) 2116*cdf0e10cSrcweir+ sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) 2117*cdf0e10cSrcweir basic_machine=sparc-sun 2118*cdf0e10cSrcweir ;; 2119*cdf0e10cSrcweir cydra) 2120*cdf0e10cSrcweir@@ -1098,6 +1263,9 @@ 2121*cdf0e10cSrcweir # First match some system type aliases 2122*cdf0e10cSrcweir # that might get confused with valid system types. 2123*cdf0e10cSrcweir # -solaris* is a basic system type, with this one exception. 2124*cdf0e10cSrcweir+ -auroraux) 2125*cdf0e10cSrcweir+ os=-auroraux 2126*cdf0e10cSrcweir+ ;; 2127*cdf0e10cSrcweir -solaris1 | -solaris1.*) 2128*cdf0e10cSrcweir os=`echo $os | sed -e 's|solaris1|sunos4|'` 2129*cdf0e10cSrcweir ;; 2130*cdf0e10cSrcweir@@ -1118,25 +1286,30 @@ 2131*cdf0e10cSrcweir # Each alternative MUST END IN A *, to match a version number. 2132*cdf0e10cSrcweir # -sysv* is not here because it comes later, after sysvr4. 2133*cdf0e10cSrcweir -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ 2134*cdf0e10cSrcweir- | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ 2135*cdf0e10cSrcweir- | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ 2136*cdf0e10cSrcweir+ | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ 2137*cdf0e10cSrcweir+ | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ 2138*cdf0e10cSrcweir+ | -sym* | -kopensolaris* \ 2139*cdf0e10cSrcweir | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ 2140*cdf0e10cSrcweir- | -aos* \ 2141*cdf0e10cSrcweir+ | -aos* | -aros* \ 2142*cdf0e10cSrcweir | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ 2143*cdf0e10cSrcweir | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ 2144*cdf0e10cSrcweir- | -hiux* | -386bsd* | -netbsd* | -openbsd* | -freebsd* | -riscix* \ 2145*cdf0e10cSrcweir- | -lynxos* | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 2146*cdf0e10cSrcweir+ | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ 2147*cdf0e10cSrcweir+ | -openbsd* | -solidbsd* \ 2148*cdf0e10cSrcweir+ | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \ 2149*cdf0e10cSrcweir+ | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ 2150*cdf0e10cSrcweir | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ 2151*cdf0e10cSrcweir | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ 2152*cdf0e10cSrcweir- | -chorusos* | -chorusrdb* \ 2153*cdf0e10cSrcweir+ | -chorusos* | -chorusrdb* | -cegcc* \ 2154*cdf0e10cSrcweir | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ 2155*cdf0e10cSrcweir- | -mingw32* | -linux-gnu* | -uxpv* | -beos* | -mpeix* | -udk* \ 2156*cdf0e10cSrcweir+ | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ 2157*cdf0e10cSrcweir+ | -uxpv* | -beos* | -mpeix* | -udk* \ 2158*cdf0e10cSrcweir | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ 2159*cdf0e10cSrcweir | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ 2160*cdf0e10cSrcweir | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \ 2161*cdf0e10cSrcweir | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ 2162*cdf0e10cSrcweir | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ 2163*cdf0e10cSrcweir- | -powermax* | -dnix* | -nx6 | -nx7 | -sei*) 2164*cdf0e10cSrcweir+ | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ 2165*cdf0e10cSrcweir+ | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) 2166*cdf0e10cSrcweir # Remember, each alternative MUST END IN *, to match a version number. 2167*cdf0e10cSrcweir ;; 2168*cdf0e10cSrcweir -qnx*) 2169*cdf0e10cSrcweir@@ -1154,12 +1327,15 @@ 2170*cdf0e10cSrcweir os=`echo $os | sed -e 's|nto|nto-qnx|'` 2171*cdf0e10cSrcweir ;; 2172*cdf0e10cSrcweir -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \ 2173*cdf0e10cSrcweir- | -windows* | -osx | -abug | -netware* | -os9* | -beos* \ 2174*cdf0e10cSrcweir+ | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \ 2175*cdf0e10cSrcweir | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*) 2176*cdf0e10cSrcweir ;; 2177*cdf0e10cSrcweir -mac*) 2178*cdf0e10cSrcweir os=`echo $os | sed -e 's|mac|macos|'` 2179*cdf0e10cSrcweir ;; 2180*cdf0e10cSrcweir+ -linux-dietlibc) 2181*cdf0e10cSrcweir+ os=-linux-dietlibc 2182*cdf0e10cSrcweir+ ;; 2183*cdf0e10cSrcweir -linux*) 2184*cdf0e10cSrcweir os=`echo $os | sed -e 's|linux|linux-gnu|'` 2185*cdf0e10cSrcweir ;; 2186*cdf0e10cSrcweir@@ -1172,6 +1348,9 @@ 2187*cdf0e10cSrcweir -opened*) 2188*cdf0e10cSrcweir os=-openedition 2189*cdf0e10cSrcweir ;; 2190*cdf0e10cSrcweir+ -os400*) 2191*cdf0e10cSrcweir+ os=-os400 2192*cdf0e10cSrcweir+ ;; 2193*cdf0e10cSrcweir -wince*) 2194*cdf0e10cSrcweir os=-wince 2195*cdf0e10cSrcweir ;; 2196*cdf0e10cSrcweir@@ -1193,6 +1372,9 @@ 2197*cdf0e10cSrcweir -atheos*) 2198*cdf0e10cSrcweir os=-atheos 2199*cdf0e10cSrcweir ;; 2200*cdf0e10cSrcweir+ -syllable*) 2201*cdf0e10cSrcweir+ os=-syllable 2202*cdf0e10cSrcweir+ ;; 2203*cdf0e10cSrcweir -386bsd) 2204*cdf0e10cSrcweir os=-bsd 2205*cdf0e10cSrcweir ;; 2206*cdf0e10cSrcweir@@ -1215,6 +1397,9 @@ 2207*cdf0e10cSrcweir -sinix*) 2208*cdf0e10cSrcweir os=-sysv4 2209*cdf0e10cSrcweir ;; 2210*cdf0e10cSrcweir+ -tpf*) 2211*cdf0e10cSrcweir+ os=-tpf 2212*cdf0e10cSrcweir+ ;; 2213*cdf0e10cSrcweir -triton*) 2214*cdf0e10cSrcweir os=-sysv3 2215*cdf0e10cSrcweir ;; 2216*cdf0e10cSrcweir@@ -1251,6 +1436,14 @@ 2217*cdf0e10cSrcweir -kaos*) 2218*cdf0e10cSrcweir os=-kaos 2219*cdf0e10cSrcweir ;; 2220*cdf0e10cSrcweir+ -zvmoe) 2221*cdf0e10cSrcweir+ os=-zvmoe 2222*cdf0e10cSrcweir+ ;; 2223*cdf0e10cSrcweir+ -dicos*) 2224*cdf0e10cSrcweir+ os=-dicos 2225*cdf0e10cSrcweir+ ;; 2226*cdf0e10cSrcweir+ -nacl*) 2227*cdf0e10cSrcweir+ ;; 2228*cdf0e10cSrcweir -none) 2229*cdf0e10cSrcweir ;; 2230*cdf0e10cSrcweir *) 2231*cdf0e10cSrcweir@@ -1273,6 +1466,12 @@ 2232*cdf0e10cSrcweir # system, and we'll never get to this point. 2233*cdf0e10cSrcweir 2234*cdf0e10cSrcweir case $basic_machine in 2235*cdf0e10cSrcweir+ score-*) 2236*cdf0e10cSrcweir+ os=-elf 2237*cdf0e10cSrcweir+ ;; 2238*cdf0e10cSrcweir+ spu-*) 2239*cdf0e10cSrcweir+ os=-elf 2240*cdf0e10cSrcweir+ ;; 2241*cdf0e10cSrcweir *-acorn) 2242*cdf0e10cSrcweir os=-riscix1.2 2243*cdf0e10cSrcweir ;; 2244*cdf0e10cSrcweir@@ -1282,8 +1481,8 @@ 2245*cdf0e10cSrcweir arm*-semi) 2246*cdf0e10cSrcweir os=-aout 2247*cdf0e10cSrcweir ;; 2248*cdf0e10cSrcweir- c4x-* | tic4x-*) 2249*cdf0e10cSrcweir- os=-coff 2250*cdf0e10cSrcweir+ c4x-* | tic4x-*) 2251*cdf0e10cSrcweir+ os=-coff 2252*cdf0e10cSrcweir ;; 2253*cdf0e10cSrcweir # This must come before the *-dec entry. 2254*cdf0e10cSrcweir pdp10-*) 2255*cdf0e10cSrcweir@@ -1310,6 +1509,9 @@ 2256*cdf0e10cSrcweir m68*-cisco) 2257*cdf0e10cSrcweir os=-aout 2258*cdf0e10cSrcweir ;; 2259*cdf0e10cSrcweir+ mep-*) 2260*cdf0e10cSrcweir+ os=-elf 2261*cdf0e10cSrcweir+ ;; 2262*cdf0e10cSrcweir mips*-cisco) 2263*cdf0e10cSrcweir os=-elf 2264*cdf0e10cSrcweir ;; 2265*cdf0e10cSrcweir@@ -1328,9 +1530,15 @@ 2266*cdf0e10cSrcweir *-be) 2267*cdf0e10cSrcweir os=-beos 2268*cdf0e10cSrcweir ;; 2269*cdf0e10cSrcweir+ *-haiku) 2270*cdf0e10cSrcweir+ os=-haiku 2271*cdf0e10cSrcweir+ ;; 2272*cdf0e10cSrcweir *-ibm) 2273*cdf0e10cSrcweir os=-aix 2274*cdf0e10cSrcweir ;; 2275*cdf0e10cSrcweir+ *-knuth) 2276*cdf0e10cSrcweir+ os=-mmixware 2277*cdf0e10cSrcweir+ ;; 2278*cdf0e10cSrcweir *-wec) 2279*cdf0e10cSrcweir os=-proelf 2280*cdf0e10cSrcweir ;; 2281*cdf0e10cSrcweir@@ -1433,7 +1641,7 @@ 2282*cdf0e10cSrcweir -sunos*) 2283*cdf0e10cSrcweir vendor=sun 2284*cdf0e10cSrcweir ;; 2285*cdf0e10cSrcweir- -aix*) 2286*cdf0e10cSrcweir+ -cnk*|-aix*) 2287*cdf0e10cSrcweir vendor=ibm 2288*cdf0e10cSrcweir ;; 2289*cdf0e10cSrcweir -beos*) 2290*cdf0e10cSrcweir@@ -1463,9 +1671,15 @@ 2291*cdf0e10cSrcweir -mvs* | -opened*) 2292*cdf0e10cSrcweir vendor=ibm 2293*cdf0e10cSrcweir ;; 2294*cdf0e10cSrcweir+ -os400*) 2295*cdf0e10cSrcweir+ vendor=ibm 2296*cdf0e10cSrcweir+ ;; 2297*cdf0e10cSrcweir -ptx*) 2298*cdf0e10cSrcweir vendor=sequent 2299*cdf0e10cSrcweir ;; 2300*cdf0e10cSrcweir+ -tpf*) 2301*cdf0e10cSrcweir+ vendor=ibm 2302*cdf0e10cSrcweir+ ;; 2303*cdf0e10cSrcweir -vxsim* | -vxworks* | -windiss*) 2304*cdf0e10cSrcweir vendor=wrs 2305*cdf0e10cSrcweir ;; 2306*cdf0e10cSrcweir@@ -1490,7 +1704,7 @@ 2307*cdf0e10cSrcweir esac 2308*cdf0e10cSrcweir 2309*cdf0e10cSrcweir echo $basic_machine$os 2310*cdf0e10cSrcweir-exit 0 2311*cdf0e10cSrcweir+exit 2312*cdf0e10cSrcweir 2313*cdf0e10cSrcweir # Local variables: 2314*cdf0e10cSrcweir # eval: (add-hook 'write-file-hooks 'time-stamp) 2315