revision 525:eec1fd69a42c
summary |
tree |
shortlog |
changelog |
graph |
changeset |
raw | bz2 | zip | gz changeset | 525:eec1fd69a42c |
parent | 524:96c0ee659cba |
child | 526:ba3da45b5754 |
author | nkeynes |
date | Sat Nov 17 01:30:01 2007 +0000 (16 years ago) |
Add config.guess, config.sub files
![]() | config.guess | view | annotate | diff | log | |
![]() | config.sub | view | annotate | diff | log |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00001.2 +++ b/config.guess Sat Nov 17 01:30:01 2007 +00001.3 @@ -0,0 +1,1500 @@1.4 +#! /bin/sh1.5 +# Attempt to guess a canonical system name.1.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,1.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,1.8 +# Inc.1.9 +1.10 +timestamp='2006-07-02'1.11 +1.12 +# This file is free software; you can redistribute it and/or modify it1.13 +# under the terms of the GNU General Public License as published by1.14 +# the Free Software Foundation; either version 2 of the License, or1.15 +# (at your option) any later version.1.16 +#1.17 +# This program is distributed in the hope that it will be useful, but1.18 +# WITHOUT ANY WARRANTY; without even the implied warranty of1.19 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU1.20 +# General Public License for more details.1.21 +#1.22 +# You should have received a copy of the GNU General Public License1.23 +# along with this program; if not, write to the Free Software1.24 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA1.25 +# 02110-1301, USA.1.26 +#1.27 +# As a special exception to the GNU General Public License, if you1.28 +# distribute this file as part of a program that contains a1.29 +# configuration script generated by Autoconf, you may include it under1.30 +# the same distribution terms that you use for the rest of that program.1.31 +1.32 +1.33 +# Originally written by Per Bothner <per@bothner.com>.1.34 +# Please send patches to <config-patches@gnu.org>. Submit a context1.35 +# diff and a properly formatted ChangeLog entry.1.36 +#1.37 +# This script attempts to guess a canonical system name similar to1.38 +# config.sub. If it succeeds, it prints the system name on stdout, and1.39 +# exits with 0. Otherwise, it exits with 1.1.40 +#1.41 +# The plan is that this can be called by configure scripts if you1.42 +# don't specify an explicit build system type.1.43 +1.44 +me=`echo "$0" | sed -e 's,.*/,,'`1.45 +1.46 +usage="\1.47 +Usage: $0 [OPTION]1.48 +1.49 +Output the configuration name of the system \`$me' is run on.1.50 +1.51 +Operation modes:1.52 + -h, --help print this help, then exit1.53 + -t, --time-stamp print date of last modification, then exit1.54 + -v, --version print version number, then exit1.55 +1.56 +Report bugs and patches to <config-patches@gnu.org>."1.57 +1.58 +version="\1.59 +GNU config.guess ($timestamp)1.60 +1.61 +Originally written by Per Bothner.1.62 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 20051.63 +Free Software Foundation, Inc.1.64 +1.65 +This is free software; see the source for copying conditions. There is NO1.66 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."1.67 +1.68 +help="1.69 +Try \`$me --help' for more information."1.70 +1.71 +# Parse command line1.72 +while test $# -gt 0 ; do1.73 + case $1 in1.74 + --time-stamp | --time* | -t )1.75 + echo "$timestamp" ; exit ;;1.76 + --version | -v )1.77 + echo "$version" ; exit ;;1.78 + --help | --h* | -h )1.79 + echo "$usage"; exit ;;1.80 + -- ) # Stop option processing1.81 + shift; break ;;1.82 + - ) # Use stdin as input.1.83 + break ;;1.84 + -* )1.85 + echo "$me: invalid option $1$help" >&21.86 + exit 1 ;;1.87 + * )1.88 + break ;;1.89 + esac1.90 +done1.91 +1.92 +if test $# != 0; then1.93 + echo "$me: too many arguments$help" >&21.94 + exit 11.95 +fi1.96 +1.97 +trap 'exit 1' 1 2 151.98 +1.99 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a1.100 +# compiler to aid in system detection is discouraged as it requires1.101 +# temporary files to be created and, as you can see below, it is a1.102 +# headache to deal with in a portable fashion.1.103 +1.104 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still1.105 +# use `HOST_CC' if defined, but it is deprecated.1.106 +1.107 +# Portable tmp directory creation inspired by the Autoconf team.1.108 +1.109 +set_cc_for_build='1.110 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;1.111 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;1.112 +: ${TMPDIR=/tmp} ;1.113 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||1.114 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||1.115 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||1.116 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;1.117 +dummy=$tmp/dummy ;1.118 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;1.119 +case $CC_FOR_BUILD,$HOST_CC,$CC in1.120 + ,,) echo "int x;" > $dummy.c ;1.121 + for c in cc gcc c89 c99 ; do1.122 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then1.123 + CC_FOR_BUILD="$c"; break ;1.124 + fi ;1.125 + done ;1.126 + if test x"$CC_FOR_BUILD" = x ; then1.127 + CC_FOR_BUILD=no_compiler_found ;1.128 + fi1.129 + ;;1.130 + ,,*) CC_FOR_BUILD=$CC ;;1.131 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;1.132 +esac ; set_cc_for_build= ;'1.133 +1.134 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.1.135 +# (ghazi@noc.rutgers.edu 1994-08-24)1.136 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then1.137 + PATH=$PATH:/.attbin ; export PATH1.138 +fi1.139 +1.140 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown1.141 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown1.142 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown1.143 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown1.144 +1.145 +# Note: order is significant - the case branches are not exclusive.1.146 +1.147 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in1.148 + *:NetBSD:*:*)1.149 + # NetBSD (nbsd) targets should (where applicable) match one or1.150 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,1.151 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently1.152 + # switched to ELF, *-*-netbsd* would select the old1.153 + # object file format. This provides both forward1.154 + # compatibility and a consistent mechanism for selecting the1.155 + # object file format.1.156 + #1.157 + # Note: NetBSD doesn't particularly care about the vendor1.158 + # portion of the name. We always set it to "unknown".1.159 + sysctl="sysctl -n hw.machine_arch"1.160 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \1.161 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`1.162 + case "${UNAME_MACHINE_ARCH}" in1.163 + armeb) machine=armeb-unknown ;;1.164 + arm*) machine=arm-unknown ;;1.165 + sh3el) machine=shl-unknown ;;1.166 + sh3eb) machine=sh-unknown ;;1.167 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;1.168 + esac1.169 + # The Operating System including object format, if it has switched1.170 + # to ELF recently, or will in the future.1.171 + case "${UNAME_MACHINE_ARCH}" in1.172 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)1.173 + eval $set_cc_for_build1.174 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \1.175 + | grep __ELF__ >/dev/null1.176 + then1.177 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).1.178 + # Return netbsd for either. FIX?1.179 + os=netbsd1.180 + else1.181 + os=netbsdelf1.182 + fi1.183 + ;;1.184 + *)1.185 + os=netbsd1.186 + ;;1.187 + esac1.188 + # The OS release1.189 + # Debian GNU/NetBSD machines have a different userland, and1.190 + # thus, need a distinct triplet. However, they do not need1.191 + # kernel version information, so it can be replaced with a1.192 + # suitable tag, in the style of linux-gnu.1.193 + case "${UNAME_VERSION}" in1.194 + Debian*)1.195 + release='-gnu'1.196 + ;;1.197 + *)1.198 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`1.199 + ;;1.200 + esac1.201 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:1.202 + # contains redundant information, the shorter form:1.203 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.1.204 + echo "${machine}-${os}${release}"1.205 + exit ;;1.206 + *:OpenBSD:*:*)1.207 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`1.208 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}1.209 + exit ;;1.210 + *:ekkoBSD:*:*)1.211 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}1.212 + exit ;;1.213 + *:SolidBSD:*:*)1.214 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}1.215 + exit ;;1.216 + macppc:MirBSD:*:*)1.217 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}1.218 + exit ;;1.219 + *:MirBSD:*:*)1.220 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}1.221 + exit ;;1.222 + alpha:OSF1:*:*)1.223 + case $UNAME_RELEASE in1.224 + *4.0)1.225 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`1.226 + ;;1.227 + *5.*)1.228 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`1.229 + ;;1.230 + esac1.231 + # According to Compaq, /usr/sbin/psrinfo has been available on1.232 + # OSF/1 and Tru64 systems produced since 1995. I hope that1.233 + # covers most systems running today. This code pipes the CPU1.234 + # types through head -n 1, so we only detect the type of CPU 0.1.235 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`1.236 + case "$ALPHA_CPU_TYPE" in1.237 + "EV4 (21064)")1.238 + UNAME_MACHINE="alpha" ;;1.239 + "EV4.5 (21064)")1.240 + UNAME_MACHINE="alpha" ;;1.241 + "LCA4 (21066/21068)")1.242 + UNAME_MACHINE="alpha" ;;1.243 + "EV5 (21164)")1.244 + UNAME_MACHINE="alphaev5" ;;1.245 + "EV5.6 (21164A)")1.246 + UNAME_MACHINE="alphaev56" ;;1.247 + "EV5.6 (21164PC)")1.248 + UNAME_MACHINE="alphapca56" ;;1.249 + "EV5.7 (21164PC)")1.250 + UNAME_MACHINE="alphapca57" ;;1.251 + "EV6 (21264)")1.252 + UNAME_MACHINE="alphaev6" ;;1.253 + "EV6.7 (21264A)")1.254 + UNAME_MACHINE="alphaev67" ;;1.255 + "EV6.8CB (21264C)")1.256 + UNAME_MACHINE="alphaev68" ;;1.257 + "EV6.8AL (21264B)")1.258 + UNAME_MACHINE="alphaev68" ;;1.259 + "EV6.8CX (21264D)")1.260 + UNAME_MACHINE="alphaev68" ;;1.261 + "EV6.9A (21264/EV69A)")1.262 + UNAME_MACHINE="alphaev69" ;;1.263 + "EV7 (21364)")1.264 + UNAME_MACHINE="alphaev7" ;;1.265 + "EV7.9 (21364A)")1.266 + UNAME_MACHINE="alphaev79" ;;1.267 + esac1.268 + # A Pn.n version is a patched version.1.269 + # A Vn.n version is a released version.1.270 + # A Tn.n version is a released field test version.1.271 + # A Xn.n version is an unreleased experimental baselevel.1.272 + # 1.2 uses "1.2" for uname -r.1.273 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`1.274 + exit ;;1.275 + Alpha\ *:Windows_NT*:*)1.276 + # How do we know it's Interix rather than the generic POSIX subsystem?1.277 + # Should we change UNAME_MACHINE based on the output of uname instead1.278 + # of the specific Alpha model?1.279 + echo alpha-pc-interix1.280 + exit ;;1.281 + 21064:Windows_NT:50:3)1.282 + echo alpha-dec-winnt3.51.283 + exit ;;1.284 + Amiga*:UNIX_System_V:4.0:*)1.285 + echo m68k-unknown-sysv41.286 + exit ;;1.287 + *:[Aa]miga[Oo][Ss]:*:*)1.288 + echo ${UNAME_MACHINE}-unknown-amigaos1.289 + exit ;;1.290 + *:[Mm]orph[Oo][Ss]:*:*)1.291 + echo ${UNAME_MACHINE}-unknown-morphos1.292 + exit ;;1.293 + *:OS/390:*:*)1.294 + echo i370-ibm-openedition1.295 + exit ;;1.296 + *:z/VM:*:*)1.297 + echo s390-ibm-zvmoe1.298 + exit ;;1.299 + *:OS400:*:*)1.300 + echo powerpc-ibm-os4001.301 + exit ;;1.302 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)1.303 + echo arm-acorn-riscix${UNAME_RELEASE}1.304 + exit ;;1.305 + arm:riscos:*:*|arm:RISCOS:*:*)1.306 + echo arm-unknown-riscos1.307 + exit ;;1.308 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)1.309 + echo hppa1.1-hitachi-hiuxmpp1.310 + exit ;;1.311 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)1.312 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.1.313 + if test "`(/bin/universe) 2>/dev/null`" = att ; then1.314 + echo pyramid-pyramid-sysv31.315 + else1.316 + echo pyramid-pyramid-bsd1.317 + fi1.318 + exit ;;1.319 + NILE*:*:*:dcosx)1.320 + echo pyramid-pyramid-svr41.321 + exit ;;1.322 + DRS?6000:unix:4.0:6*)1.323 + echo sparc-icl-nx61.324 + exit ;;1.325 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)1.326 + case `/usr/bin/uname -p` in1.327 + sparc) echo sparc-icl-nx7; exit ;;1.328 + esac ;;1.329 + sun4H:SunOS:5.*:*)1.330 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.331 + exit ;;1.332 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)1.333 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.334 + exit ;;1.335 + i86pc:SunOS:5.*:*)1.336 + echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.337 + exit ;;1.338 + sun4*:SunOS:6*:*)1.339 + # According to config.sub, this is the proper way to canonicalize1.340 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but1.341 + # it's likely to be more like Solaris than SunOS4.1.342 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.343 + exit ;;1.344 + sun4*:SunOS:*:*)1.345 + case "`/usr/bin/arch -k`" in1.346 + Series*|S4*)1.347 + UNAME_RELEASE=`uname -v`1.348 + ;;1.349 + esac1.350 + # Japanese Language versions have a version number like `4.1.3-JL'.1.351 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`1.352 + exit ;;1.353 + sun3*:SunOS:*:*)1.354 + echo m68k-sun-sunos${UNAME_RELEASE}1.355 + exit ;;1.356 + sun*:*:4.2BSD:*)1.357 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`1.358 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=31.359 + case "`/bin/arch`" in1.360 + sun3)1.361 + echo m68k-sun-sunos${UNAME_RELEASE}1.362 + ;;1.363 + sun4)1.364 + echo sparc-sun-sunos${UNAME_RELEASE}1.365 + ;;1.366 + esac1.367 + exit ;;1.368 + aushp:SunOS:*:*)1.369 + echo sparc-auspex-sunos${UNAME_RELEASE}1.370 + exit ;;1.371 + # The situation for MiNT is a little confusing. The machine name1.372 + # can be virtually everything (everything which is not1.373 + # "atarist" or "atariste" at least should have a processor1.374 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"1.375 + # to the lowercase version "mint" (or "freemint"). Finally1.376 + # the system name "TOS" denotes a system which is actually not1.377 + # MiNT. But MiNT is downward compatible to TOS, so this should1.378 + # be no problem.1.379 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)1.380 + echo m68k-atari-mint${UNAME_RELEASE}1.381 + exit ;;1.382 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)1.383 + echo m68k-atari-mint${UNAME_RELEASE}1.384 + exit ;;1.385 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)1.386 + echo m68k-atari-mint${UNAME_RELEASE}1.387 + exit ;;1.388 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)1.389 + echo m68k-milan-mint${UNAME_RELEASE}1.390 + exit ;;1.391 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)1.392 + echo m68k-hades-mint${UNAME_RELEASE}1.393 + exit ;;1.394 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)1.395 + echo m68k-unknown-mint${UNAME_RELEASE}1.396 + exit ;;1.397 + m68k:machten:*:*)1.398 + echo m68k-apple-machten${UNAME_RELEASE}1.399 + exit ;;1.400 + powerpc:machten:*:*)1.401 + echo powerpc-apple-machten${UNAME_RELEASE}1.402 + exit ;;1.403 + RISC*:Mach:*:*)1.404 + echo mips-dec-mach_bsd4.31.405 + exit ;;1.406 + RISC*:ULTRIX:*:*)1.407 + echo mips-dec-ultrix${UNAME_RELEASE}1.408 + exit ;;1.409 + VAX*:ULTRIX*:*:*)1.410 + echo vax-dec-ultrix${UNAME_RELEASE}1.411 + exit ;;1.412 + 2020:CLIX:*:* | 2430:CLIX:*:*)1.413 + echo clipper-intergraph-clix${UNAME_RELEASE}1.414 + exit ;;1.415 + mips:*:*:UMIPS | mips:*:*:RISCos)1.416 + eval $set_cc_for_build1.417 + sed 's/^ //' << EOF >$dummy.c1.418 +#ifdef __cplusplus1.419 +#include <stdio.h> /* for printf() prototype */1.420 + int main (int argc, char *argv[]) {1.421 +#else1.422 + int main (argc, argv) int argc; char *argv[]; {1.423 +#endif1.424 + #if defined (host_mips) && defined (MIPSEB)1.425 + #if defined (SYSTYPE_SYSV)1.426 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);1.427 + #endif1.428 + #if defined (SYSTYPE_SVR4)1.429 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);1.430 + #endif1.431 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)1.432 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);1.433 + #endif1.434 + #endif1.435 + exit (-1);1.436 + }1.437 +EOF1.438 + $CC_FOR_BUILD -o $dummy $dummy.c &&1.439 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&1.440 + SYSTEM_NAME=`$dummy $dummyarg` &&1.441 + { echo "$SYSTEM_NAME"; exit; }1.442 + echo mips-mips-riscos${UNAME_RELEASE}1.443 + exit ;;1.444 + Motorola:PowerMAX_OS:*:*)1.445 + echo powerpc-motorola-powermax1.446 + exit ;;1.447 + Motorola:*:4.3:PL8-*)1.448 + echo powerpc-harris-powermax1.449 + exit ;;1.450 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)1.451 + echo powerpc-harris-powermax1.452 + exit ;;1.453 + Night_Hawk:Power_UNIX:*:*)1.454 + echo powerpc-harris-powerunix1.455 + exit ;;1.456 + m88k:CX/UX:7*:*)1.457 + echo m88k-harris-cxux71.458 + exit ;;1.459 + m88k:*:4*:R4*)1.460 + echo m88k-motorola-sysv41.461 + exit ;;1.462 + m88k:*:3*:R3*)1.463 + echo m88k-motorola-sysv31.464 + exit ;;1.465 + AViiON:dgux:*:*)1.466 + # DG/UX returns AViiON for all architectures1.467 + UNAME_PROCESSOR=`/usr/bin/uname -p`1.468 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]1.469 + then1.470 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \1.471 + [ ${TARGET_BINARY_INTERFACE}x = x ]1.472 + then1.473 + echo m88k-dg-dgux${UNAME_RELEASE}1.474 + else1.475 + echo m88k-dg-dguxbcs${UNAME_RELEASE}1.476 + fi1.477 + else1.478 + echo i586-dg-dgux${UNAME_RELEASE}1.479 + fi1.480 + exit ;;1.481 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)1.482 + echo m88k-dolphin-sysv31.483 + exit ;;1.484 + M88*:*:R3*:*)1.485 + # Delta 88k system running SVR31.486 + echo m88k-motorola-sysv31.487 + exit ;;1.488 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)1.489 + echo m88k-tektronix-sysv31.490 + exit ;;1.491 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)1.492 + echo m68k-tektronix-bsd1.493 + exit ;;1.494 + *:IRIX*:*:*)1.495 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`1.496 + exit ;;1.497 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.1.498 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id1.499 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '1.500 + i*86:AIX:*:*)1.501 + echo i386-ibm-aix1.502 + exit ;;1.503 + ia64:AIX:*:*)1.504 + if [ -x /usr/bin/oslevel ] ; then1.505 + IBM_REV=`/usr/bin/oslevel`1.506 + else1.507 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}1.508 + fi1.509 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}1.510 + exit ;;1.511 + *:AIX:2:3)1.512 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then1.513 + eval $set_cc_for_build1.514 + sed 's/^ //' << EOF >$dummy.c1.515 + #include <sys/systemcfg.h>1.516 +1.517 + main()1.518 + {1.519 + if (!__power_pc())1.520 + exit(1);1.521 + puts("powerpc-ibm-aix3.2.5");1.522 + exit(0);1.523 + }1.524 +EOF1.525 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`1.526 + then1.527 + echo "$SYSTEM_NAME"1.528 + else1.529 + echo rs6000-ibm-aix3.2.51.530 + fi1.531 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then1.532 + echo rs6000-ibm-aix3.2.41.533 + else1.534 + echo rs6000-ibm-aix3.21.535 + fi1.536 + exit ;;1.537 + *:AIX:*:[45])1.538 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`1.539 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then1.540 + IBM_ARCH=rs60001.541 + else1.542 + IBM_ARCH=powerpc1.543 + fi1.544 + if [ -x /usr/bin/oslevel ] ; then1.545 + IBM_REV=`/usr/bin/oslevel`1.546 + else1.547 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}1.548 + fi1.549 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}1.550 + exit ;;1.551 + *:AIX:*:*)1.552 + echo rs6000-ibm-aix1.553 + exit ;;1.554 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)1.555 + echo romp-ibm-bsd4.41.556 + exit ;;1.557 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and1.558 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to1.559 + exit ;; # report: romp-ibm BSD 4.31.560 + *:BOSX:*:*)1.561 + echo rs6000-bull-bosx1.562 + exit ;;1.563 + DPX/2?00:B.O.S.:*:*)1.564 + echo m68k-bull-sysv31.565 + exit ;;1.566 + 9000/[34]??:4.3bsd:1.*:*)1.567 + echo m68k-hp-bsd1.568 + exit ;;1.569 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)1.570 + echo m68k-hp-bsd4.41.571 + exit ;;1.572 + 9000/[34678]??:HP-UX:*:*)1.573 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`1.574 + case "${UNAME_MACHINE}" in1.575 + 9000/31? ) HP_ARCH=m68000 ;;1.576 + 9000/[34]?? ) HP_ARCH=m68k ;;1.577 + 9000/[678][0-9][0-9])1.578 + if [ -x /usr/bin/getconf ]; then1.579 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`1.580 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`1.581 + case "${sc_cpu_version}" in1.582 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_01.583 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_11.584 + 532) # CPU_PA_RISC2_01.585 + case "${sc_kernel_bits}" in1.586 + 32) HP_ARCH="hppa2.0n" ;;1.587 + 64) HP_ARCH="hppa2.0w" ;;1.588 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.201.589 + esac ;;1.590 + esac1.591 + fi1.592 + if [ "${HP_ARCH}" = "" ]; then1.593 + eval $set_cc_for_build1.594 + sed 's/^ //' << EOF >$dummy.c1.595 +1.596 + #define _HPUX_SOURCE1.597 + #include <stdlib.h>1.598 + #include <unistd.h>1.599 +1.600 + int main ()1.601 + {1.602 + #if defined(_SC_KERNEL_BITS)1.603 + long bits = sysconf(_SC_KERNEL_BITS);1.604 + #endif1.605 + long cpu = sysconf (_SC_CPU_VERSION);1.606 +1.607 + switch (cpu)1.608 + {1.609 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;1.610 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;1.611 + case CPU_PA_RISC2_0:1.612 + #if defined(_SC_KERNEL_BITS)1.613 + switch (bits)1.614 + {1.615 + case 64: puts ("hppa2.0w"); break;1.616 + case 32: puts ("hppa2.0n"); break;1.617 + default: puts ("hppa2.0"); break;1.618 + } break;1.619 + #else /* !defined(_SC_KERNEL_BITS) */1.620 + puts ("hppa2.0"); break;1.621 + #endif1.622 + default: puts ("hppa1.0"); break;1.623 + }1.624 + exit (0);1.625 + }1.626 +EOF1.627 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`1.628 + test -z "$HP_ARCH" && HP_ARCH=hppa1.629 + fi ;;1.630 + esac1.631 + if [ ${HP_ARCH} = "hppa2.0w" ]1.632 + then1.633 + eval $set_cc_for_build1.634 +1.635 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating1.636 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler1.637 + # generating 64-bit code. GNU and HP use different nomenclature:1.638 + #1.639 + # $ CC_FOR_BUILD=cc ./config.guess1.640 + # => hppa2.0w-hp-hpux11.231.641 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess1.642 + # => hppa64-hp-hpux11.231.643 +1.644 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |1.645 + grep __LP64__ >/dev/null1.646 + then1.647 + HP_ARCH="hppa2.0w"1.648 + else1.649 + HP_ARCH="hppa64"1.650 + fi1.651 + fi1.652 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}1.653 + exit ;;1.654 + ia64:HP-UX:*:*)1.655 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`1.656 + echo ia64-hp-hpux${HPUX_REV}1.657 + exit ;;1.658 + 3050*:HI-UX:*:*)1.659 + eval $set_cc_for_build1.660 + sed 's/^ //' << EOF >$dummy.c1.661 + #include <unistd.h>1.662 + int1.663 + main ()1.664 + {1.665 + long cpu = sysconf (_SC_CPU_VERSION);1.666 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns1.667 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct1.668 + results, however. */1.669 + if (CPU_IS_PA_RISC (cpu))1.670 + {1.671 + switch (cpu)1.672 + {1.673 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;1.674 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;1.675 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;1.676 + default: puts ("hppa-hitachi-hiuxwe2"); break;1.677 + }1.678 + }1.679 + else if (CPU_IS_HP_MC68K (cpu))1.680 + puts ("m68k-hitachi-hiuxwe2");1.681 + else puts ("unknown-hitachi-hiuxwe2");1.682 + exit (0);1.683 + }1.684 +EOF1.685 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&1.686 + { echo "$SYSTEM_NAME"; exit; }1.687 + echo unknown-hitachi-hiuxwe21.688 + exit ;;1.689 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )1.690 + echo hppa1.1-hp-bsd1.691 + exit ;;1.692 + 9000/8??:4.3bsd:*:*)1.693 + echo hppa1.0-hp-bsd1.694 + exit ;;1.695 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)1.696 + echo hppa1.0-hp-mpeix1.697 + exit ;;1.698 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )1.699 + echo hppa1.1-hp-osf1.700 + exit ;;1.701 + hp8??:OSF1:*:*)1.702 + echo hppa1.0-hp-osf1.703 + exit ;;1.704 + i*86:OSF1:*:*)1.705 + if [ -x /usr/sbin/sysversion ] ; then1.706 + echo ${UNAME_MACHINE}-unknown-osf1mk1.707 + else1.708 + echo ${UNAME_MACHINE}-unknown-osf11.709 + fi1.710 + exit ;;1.711 + parisc*:Lites*:*:*)1.712 + echo hppa1.1-hp-lites1.713 + exit ;;1.714 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)1.715 + echo c1-convex-bsd1.716 + exit ;;1.717 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)1.718 + if getsysinfo -f scalar_acc1.719 + then echo c32-convex-bsd1.720 + else echo c2-convex-bsd1.721 + fi1.722 + exit ;;1.723 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)1.724 + echo c34-convex-bsd1.725 + exit ;;1.726 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)1.727 + echo c38-convex-bsd1.728 + exit ;;1.729 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)1.730 + echo c4-convex-bsd1.731 + exit ;;1.732 + CRAY*Y-MP:*:*:*)1.733 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.734 + exit ;;1.735 + CRAY*[A-Z]90:*:*:*)1.736 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \1.737 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \1.738 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \1.739 + -e 's/\.[^.]*$/.X/'1.740 + exit ;;1.741 + CRAY*TS:*:*:*)1.742 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.743 + exit ;;1.744 + CRAY*T3E:*:*:*)1.745 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.746 + exit ;;1.747 + CRAY*SV1:*:*:*)1.748 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.749 + exit ;;1.750 + *:UNICOS/mp:*:*)1.751 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'1.752 + exit ;;1.753 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)1.754 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`1.755 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.756 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`1.757 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.758 + exit ;;1.759 + 5000:UNIX_System_V:4.*:*)1.760 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`1.761 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`1.762 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"1.763 + exit ;;1.764 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)1.765 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}1.766 + exit ;;1.767 + sparc*:BSD/OS:*:*)1.768 + echo sparc-unknown-bsdi${UNAME_RELEASE}1.769 + exit ;;1.770 + *:BSD/OS:*:*)1.771 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}1.772 + exit ;;1.773 + *:FreeBSD:*:*)1.774 + case ${UNAME_MACHINE} in1.775 + pc98)1.776 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;1.777 + amd64)1.778 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;1.779 + *)1.780 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;1.781 + esac1.782 + exit ;;1.783 + i*:CYGWIN*:*)1.784 + echo ${UNAME_MACHINE}-pc-cygwin1.785 + exit ;;1.786 + i*:MINGW*:*)1.787 + echo ${UNAME_MACHINE}-pc-mingw321.788 + exit ;;1.789 + i*:windows32*:*)1.790 + # uname -m includes "-pc" on this system.1.791 + echo ${UNAME_MACHINE}-mingw321.792 + exit ;;1.793 + i*:PW*:*)1.794 + echo ${UNAME_MACHINE}-pc-pw321.795 + exit ;;1.796 + x86:Interix*:[3456]*)1.797 + echo i586-pc-interix${UNAME_RELEASE}1.798 + exit ;;1.799 + EM64T:Interix*:[3456]*)1.800 + echo x86_64-unknown-interix${UNAME_RELEASE}1.801 + exit ;;1.802 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)1.803 + echo i${UNAME_MACHINE}-pc-mks1.804 + exit ;;1.805 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)1.806 + # How do we know it's Interix rather than the generic POSIX subsystem?1.807 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we1.808 + # UNAME_MACHINE based on the output of uname instead of i386?1.809 + echo i586-pc-interix1.810 + exit ;;1.811 + i*:UWIN*:*)1.812 + echo ${UNAME_MACHINE}-pc-uwin1.813 + exit ;;1.814 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)1.815 + echo x86_64-unknown-cygwin1.816 + exit ;;1.817 + p*:CYGWIN*:*)1.818 + echo powerpcle-unknown-cygwin1.819 + exit ;;1.820 + prep*:SunOS:5.*:*)1.821 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`1.822 + exit ;;1.823 + *:GNU:*:*)1.824 + # the GNU system1.825 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`1.826 + exit ;;1.827 + *:GNU/*:*:*)1.828 + # other systems with GNU libc and userland1.829 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu1.830 + exit ;;1.831 + i*86:Minix:*:*)1.832 + echo ${UNAME_MACHINE}-pc-minix1.833 + exit ;;1.834 + arm*:Linux:*:*)1.835 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.836 + exit ;;1.837 + avr32*:Linux:*:*)1.838 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.839 + exit ;;1.840 + cris:Linux:*:*)1.841 + echo cris-axis-linux-gnu1.842 + exit ;;1.843 + crisv32:Linux:*:*)1.844 + echo crisv32-axis-linux-gnu1.845 + exit ;;1.846 + frv:Linux:*:*)1.847 + echo frv-unknown-linux-gnu1.848 + exit ;;1.849 + ia64:Linux:*:*)1.850 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.851 + exit ;;1.852 + m32r*:Linux:*:*)1.853 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.854 + exit ;;1.855 + m68*:Linux:*:*)1.856 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.857 + exit ;;1.858 + mips:Linux:*:*)1.859 + eval $set_cc_for_build1.860 + sed 's/^ //' << EOF >$dummy.c1.861 + #undef CPU1.862 + #undef mips1.863 + #undef mipsel1.864 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)1.865 + CPU=mipsel1.866 + #else1.867 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)1.868 + CPU=mips1.869 + #else1.870 + CPU=1.871 + #endif1.872 + #endif1.873 +EOF1.874 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.875 + /^CPU/{1.876 + s: ::g1.877 + p1.878 + }'`"1.879 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }1.880 + ;;1.881 + mips64:Linux:*:*)1.882 + eval $set_cc_for_build1.883 + sed 's/^ //' << EOF >$dummy.c1.884 + #undef CPU1.885 + #undef mips641.886 + #undef mips64el1.887 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)1.888 + CPU=mips64el1.889 + #else1.890 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)1.891 + CPU=mips641.892 + #else1.893 + CPU=1.894 + #endif1.895 + #endif1.896 +EOF1.897 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.898 + /^CPU/{1.899 + s: ::g1.900 + p1.901 + }'`"1.902 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }1.903 + ;;1.904 + or32:Linux:*:*)1.905 + echo or32-unknown-linux-gnu1.906 + exit ;;1.907 + ppc:Linux:*:*)1.908 + echo powerpc-unknown-linux-gnu1.909 + exit ;;1.910 + ppc64:Linux:*:*)1.911 + echo powerpc64-unknown-linux-gnu1.912 + exit ;;1.913 + alpha:Linux:*:*)1.914 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in1.915 + EV5) UNAME_MACHINE=alphaev5 ;;1.916 + EV56) UNAME_MACHINE=alphaev56 ;;1.917 + PCA56) UNAME_MACHINE=alphapca56 ;;1.918 + PCA57) UNAME_MACHINE=alphapca56 ;;1.919 + EV6) UNAME_MACHINE=alphaev6 ;;1.920 + EV67) UNAME_MACHINE=alphaev67 ;;1.921 + EV68*) UNAME_MACHINE=alphaev68 ;;1.922 + esac1.923 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null1.924 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi1.925 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}1.926 + exit ;;1.927 + parisc:Linux:*:* | hppa:Linux:*:*)1.928 + # Look for CPU level1.929 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in1.930 + PA7*) echo hppa1.1-unknown-linux-gnu ;;1.931 + PA8*) echo hppa2.0-unknown-linux-gnu ;;1.932 + *) echo hppa-unknown-linux-gnu ;;1.933 + esac1.934 + exit ;;1.935 + parisc64:Linux:*:* | hppa64:Linux:*:*)1.936 + echo hppa64-unknown-linux-gnu1.937 + exit ;;1.938 + s390:Linux:*:* | s390x:Linux:*:*)1.939 + echo ${UNAME_MACHINE}-ibm-linux1.940 + exit ;;1.941 + sh64*:Linux:*:*)1.942 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.943 + exit ;;1.944 + sh*:Linux:*:*)1.945 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.946 + exit ;;1.947 + sparc:Linux:*:* | sparc64:Linux:*:*)1.948 + echo ${UNAME_MACHINE}-unknown-linux-gnu1.949 + exit ;;1.950 + vax:Linux:*:*)1.951 + echo ${UNAME_MACHINE}-dec-linux-gnu1.952 + exit ;;1.953 + x86_64:Linux:*:*)1.954 + echo x86_64-unknown-linux-gnu1.955 + exit ;;1.956 + i*86:Linux:*:*)1.957 + # The BFD linker knows what the default object file format is, so1.958 + # first see if it will tell us. cd to the root directory to prevent1.959 + # problems with other programs or directories called `ld' in the path.1.960 + # Set LC_ALL=C to ensure ld outputs messages in English.1.961 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \1.962 + | sed -ne '/supported targets:/!d1.963 + s/[ ][ ]*/ /g1.964 + s/.*supported targets: *//1.965 + s/ .*//1.966 + p'`1.967 + case "$ld_supported_targets" in1.968 + elf32-i386)1.969 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"1.970 + ;;1.971 + a.out-i386-linux)1.972 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"1.973 + exit ;;1.974 + coff-i386)1.975 + echo "${UNAME_MACHINE}-pc-linux-gnucoff"1.976 + exit ;;1.977 + "")1.978 + # Either a pre-BFD a.out linker (linux-gnuoldld) or1.979 + # one that does not give us useful --help.1.980 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"1.981 + exit ;;1.982 + esac1.983 + # Determine whether the default compiler is a.out or elf1.984 + eval $set_cc_for_build1.985 + sed 's/^ //' << EOF >$dummy.c1.986 + #include <features.h>1.987 + #ifdef __ELF__1.988 + # ifdef __GLIBC__1.989 + # if __GLIBC__ >= 21.990 + LIBC=gnu1.991 + # else1.992 + LIBC=gnulibc11.993 + # endif1.994 + # else1.995 + LIBC=gnulibc11.996 + # endif1.997 + #else1.998 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)1.999 + LIBC=gnu1.1000 + #else1.1001 + LIBC=gnuaout1.1002 + #endif1.1003 + #endif1.1004 + #ifdef __dietlibc__1.1005 + LIBC=dietlibc1.1006 + #endif1.1007 +EOF1.1008 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '1.1009 + /^LIBC/{1.1010 + s: ::g1.1011 + p1.1012 + }'`"1.1013 + test x"${LIBC}" != x && {1.1014 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"1.1015 + exit1.1016 + }1.1017 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }1.1018 + ;;1.1019 + i*86:DYNIX/ptx:4*:*)1.1020 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.1.1021 + # earlier versions are messed up and put the nodename in both1.1022 + # sysname and nodename.1.1023 + echo i386-sequent-sysv41.1024 + exit ;;1.1025 + i*86:UNIX_SV:4.2MP:2.*)1.1026 + # Unixware is an offshoot of SVR4, but it has its own version1.1027 + # number series starting with 2...1.1028 + # I am not positive that other SVR4 systems won't match this,1.1029 + # I just have to hope. -- rms.1.1030 + # Use sysv4.2uw... so that sysv4* matches it.1.1031 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}1.1032 + exit ;;1.1033 + i*86:OS/2:*:*)1.1034 + # If we were able to find `uname', then EMX Unix compatibility1.1035 + # is probably installed.1.1036 + echo ${UNAME_MACHINE}-pc-os2-emx1.1037 + exit ;;1.1038 + i*86:XTS-300:*:STOP)1.1039 + echo ${UNAME_MACHINE}-unknown-stop1.1040 + exit ;;1.1041 + i*86:atheos:*:*)1.1042 + echo ${UNAME_MACHINE}-unknown-atheos1.1043 + exit ;;1.1044 + i*86:syllable:*:*)1.1045 + echo ${UNAME_MACHINE}-pc-syllable1.1046 + exit ;;1.1047 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)1.1048 + echo i386-unknown-lynxos${UNAME_RELEASE}1.1049 + exit ;;1.1050 + i*86:*DOS:*:*)1.1051 + echo ${UNAME_MACHINE}-pc-msdosdjgpp1.1052 + exit ;;1.1053 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)1.1054 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`1.1055 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then1.1056 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}1.1057 + else1.1058 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}1.1059 + fi1.1060 + exit ;;1.1061 + i*86:*:5:[678]*)1.1062 + # UnixWare 7.x, OpenUNIX and OpenServer 6.1.1063 + case `/bin/uname -X | grep "^Machine"` in1.1064 + *486*) UNAME_MACHINE=i486 ;;1.1065 + *Pentium) UNAME_MACHINE=i586 ;;1.1066 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;1.1067 + esac1.1068 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}1.1069 + exit ;;1.1070 + i*86:*:3.2:*)1.1071 + if test -f /usr/options/cb.name; then1.1072 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`1.1073 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL1.1074 + elif /bin/uname -X 2>/dev/null >/dev/null ; then1.1075 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`1.1076 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i4861.1077 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \1.1078 + && UNAME_MACHINE=i5861.1079 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \1.1080 + && UNAME_MACHINE=i6861.1081 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \1.1082 + && UNAME_MACHINE=i6861.1083 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL1.1084 + else1.1085 + echo ${UNAME_MACHINE}-pc-sysv321.1086 + fi1.1087 + exit ;;1.1088 + pc:*:*:*)1.1089 + # Left here for compatibility:1.1090 + # uname -m prints for DJGPP always 'pc', but it prints nothing about1.1091 + # the processor, so we play safe by assuming i386.1.1092 + echo i386-pc-msdosdjgpp1.1093 + exit ;;1.1094 + Intel:Mach:3*:*)1.1095 + echo i386-pc-mach31.1096 + exit ;;1.1097 + paragon:*:*:*)1.1098 + echo i860-intel-osf11.1099 + exit ;;1.1100 + i860:*:4.*:*) # i860-SVR41.1101 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then1.1102 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR41.1103 + else # Add other i860-SVR4 vendors below as they are discovered.1.1104 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR41.1105 + fi1.1106 + exit ;;1.1107 + mini*:CTIX:SYS*5:*)1.1108 + # "miniframe"1.1109 + echo m68010-convergent-sysv1.1110 + exit ;;1.1111 + mc68k:UNIX:SYSTEM5:3.51m)1.1112 + echo m68k-convergent-sysv1.1113 + exit ;;1.1114 + M680?0:D-NIX:5.3:*)1.1115 + echo m68k-diab-dnix1.1116 + exit ;;1.1117 + M68*:*:R3V[5678]*:*)1.1118 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;1.1119 + 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)1.1120 + OS_REL=''1.1121 + test -r /etc/.relid \1.1122 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`1.1123 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1.1124 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }1.1125 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \1.1126 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;1.1127 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)1.1128 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \1.1129 + && { echo i486-ncr-sysv4; exit; } ;;1.1130 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)1.1131 + echo m68k-unknown-lynxos${UNAME_RELEASE}1.1132 + exit ;;1.1133 + mc68030:UNIX_System_V:4.*:*)1.1134 + echo m68k-atari-sysv41.1135 + exit ;;1.1136 + TSUNAMI:LynxOS:2.*:*)1.1137 + echo sparc-unknown-lynxos${UNAME_RELEASE}1.1138 + exit ;;1.1139 + rs6000:LynxOS:2.*:*)1.1140 + echo rs6000-unknown-lynxos${UNAME_RELEASE}1.1141 + exit ;;1.1142 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)1.1143 + echo powerpc-unknown-lynxos${UNAME_RELEASE}1.1144 + exit ;;1.1145 + SM[BE]S:UNIX_SV:*:*)1.1146 + echo mips-dde-sysv${UNAME_RELEASE}1.1147 + exit ;;1.1148 + RM*:ReliantUNIX-*:*:*)1.1149 + echo mips-sni-sysv41.1150 + exit ;;1.1151 + RM*:SINIX-*:*:*)1.1152 + echo mips-sni-sysv41.1153 + exit ;;1.1154 + *:SINIX-*:*:*)1.1155 + if uname -p 2>/dev/null >/dev/null ; then1.1156 + UNAME_MACHINE=`(uname -p) 2>/dev/null`1.1157 + echo ${UNAME_MACHINE}-sni-sysv41.1158 + else1.1159 + echo ns32k-sni-sysv1.1160 + fi1.1161 + exit ;;1.1162 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort1.1163 + # says <Richard.M.Bartel@ccMail.Census.GOV>1.1164 + echo i586-unisys-sysv41.1165 + exit ;;1.1166 + *:UNIX_System_V:4*:FTX*)1.1167 + # From Gerald Hewes <hewes@openmarket.com>.1.1168 + # How about differentiating between stratus architectures? -djm1.1169 + echo hppa1.1-stratus-sysv41.1170 + exit ;;1.1171 + *:*:*:FTX*)1.1172 + # From seanf@swdc.stratus.com.1.1173 + echo i860-stratus-sysv41.1174 + exit ;;1.1175 + i*86:VOS:*:*)1.1176 + # From Paul.Green@stratus.com.1.1177 + echo ${UNAME_MACHINE}-stratus-vos1.1178 + exit ;;1.1179 + *:VOS:*:*)1.1180 + # From Paul.Green@stratus.com.1.1181 + echo hppa1.1-stratus-vos1.1182 + exit ;;1.1183 + mc68*:A/UX:*:*)1.1184 + echo m68k-apple-aux${UNAME_RELEASE}1.1185 + exit ;;1.1186 + news*:NEWS-OS:6*:*)1.1187 + echo mips-sony-newsos61.1188 + exit ;;1.1189 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)1.1190 + if [ -d /usr/nec ]; then1.1191 + echo mips-nec-sysv${UNAME_RELEASE}1.1192 + else1.1193 + echo mips-unknown-sysv${UNAME_RELEASE}1.1194 + fi1.1195 + exit ;;1.1196 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.1.1197 + echo powerpc-be-beos1.1198 + exit ;;1.1199 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.1.1200 + echo powerpc-apple-beos1.1201 + exit ;;1.1202 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.1.1203 + echo i586-pc-beos1.1204 + exit ;;1.1205 + SX-4:SUPER-UX:*:*)1.1206 + echo sx4-nec-superux${UNAME_RELEASE}1.1207 + exit ;;1.1208 + SX-5:SUPER-UX:*:*)1.1209 + echo sx5-nec-superux${UNAME_RELEASE}1.1210 + exit ;;1.1211 + SX-6:SUPER-UX:*:*)1.1212 + echo sx6-nec-superux${UNAME_RELEASE}1.1213 + exit ;;1.1214 + Power*:Rhapsody:*:*)1.1215 + echo powerpc-apple-rhapsody${UNAME_RELEASE}1.1216 + exit ;;1.1217 + *:Rhapsody:*:*)1.1218 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}1.1219 + exit ;;1.1220 + *:Darwin:*:*)1.1221 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown1.1222 + case $UNAME_PROCESSOR in1.1223 + unknown) UNAME_PROCESSOR=powerpc ;;1.1224 + esac1.1225 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}1.1226 + exit ;;1.1227 + *:procnto*:*:* | *:QNX:[0123456789]*:*)1.1228 + UNAME_PROCESSOR=`uname -p`1.1229 + if test "$UNAME_PROCESSOR" = "x86"; then1.1230 + UNAME_PROCESSOR=i3861.1231 + UNAME_MACHINE=pc1.1232 + fi1.1233 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}1.1234 + exit ;;1.1235 + *:QNX:*:4*)1.1236 + echo i386-pc-qnx1.1237 + exit ;;1.1238 + NSE-?:NONSTOP_KERNEL:*:*)1.1239 + echo nse-tandem-nsk${UNAME_RELEASE}1.1240 + exit ;;1.1241 + NSR-?:NONSTOP_KERNEL:*:*)1.1242 + echo nsr-tandem-nsk${UNAME_RELEASE}1.1243 + exit ;;1.1244 + *:NonStop-UX:*:*)1.1245 + echo mips-compaq-nonstopux1.1246 + exit ;;1.1247 + BS2000:POSIX*:*:*)1.1248 + echo bs2000-siemens-sysv1.1249 + exit ;;1.1250 + DS/*:UNIX_System_V:*:*)1.1251 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}1.1252 + exit ;;1.1253 + *:Plan9:*:*)1.1254 + # "uname -m" is not consistent, so use $cputype instead. 3861.1255 + # is converted to i386 for consistency with other x861.1256 + # operating systems.1.1257 + if test "$cputype" = "386"; then1.1258 + UNAME_MACHINE=i3861.1259 + else1.1260 + UNAME_MACHINE="$cputype"1.1261 + fi1.1262 + echo ${UNAME_MACHINE}-unknown-plan91.1263 + exit ;;1.1264 + *:TOPS-10:*:*)1.1265 + echo pdp10-unknown-tops101.1266 + exit ;;1.1267 + *:TENEX:*:*)1.1268 + echo pdp10-unknown-tenex1.1269 + exit ;;1.1270 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)1.1271 + echo pdp10-dec-tops201.1272 + exit ;;1.1273 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)1.1274 + echo pdp10-xkl-tops201.1275 + exit ;;1.1276 + *:TOPS-20:*:*)1.1277 + echo pdp10-unknown-tops201.1278 + exit ;;1.1279 + *:ITS:*:*)1.1280 + echo pdp10-unknown-its1.1281 + exit ;;1.1282 + SEI:*:*:SEIUX)1.1283 + echo mips-sei-seiux${UNAME_RELEASE}1.1284 + exit ;;1.1285 + *:DragonFly:*:*)1.1286 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`1.1287 + exit ;;1.1288 + *:*VMS:*:*)1.1289 + UNAME_MACHINE=`(uname -p) 2>/dev/null`1.1290 + case "${UNAME_MACHINE}" in1.1291 + A*) echo alpha-dec-vms ; exit ;;1.1292 + I*) echo ia64-dec-vms ; exit ;;1.1293 + V*) echo vax-dec-vms ; exit ;;1.1294 + esac ;;1.1295 + *:XENIX:*:SysV)1.1296 + echo i386-pc-xenix1.1297 + exit ;;1.1298 + i*86:skyos:*:*)1.1299 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'1.1300 + exit ;;1.1301 + i*86:rdos:*:*)1.1302 + echo ${UNAME_MACHINE}-pc-rdos1.1303 + exit ;;1.1304 +esac1.1305 +1.1306 +#echo '(No uname command or uname output not recognized.)' 1>&21.1307 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&21.1308 +1.1309 +eval $set_cc_for_build1.1310 +cat >$dummy.c <<EOF1.1311 +#ifdef _SEQUENT_1.1312 +# include <sys/types.h>1.1313 +# include <sys/utsname.h>1.1314 +#endif1.1315 +main ()1.1316 +{1.1317 +#if defined (sony)1.1318 +#if defined (MIPSEB)1.1319 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,1.1320 + I don't know.... */1.1321 + printf ("mips-sony-bsd\n"); exit (0);1.1322 +#else1.1323 +#include <sys/param.h>1.1324 + printf ("m68k-sony-newsos%s\n",1.1325 +#ifdef NEWSOS41.1326 + "4"1.1327 +#else1.1328 + ""1.1329 +#endif1.1330 + ); exit (0);1.1331 +#endif1.1332 +#endif1.1333 +1.1334 +#if defined (__arm) && defined (__acorn) && defined (__unix)1.1335 + printf ("arm-acorn-riscix\n"); exit (0);1.1336 +#endif1.1337 +1.1338 +#if defined (hp300) && !defined (hpux)1.1339 + printf ("m68k-hp-bsd\n"); exit (0);1.1340 +#endif1.1341 +1.1342 +#if defined (NeXT)1.1343 +#if !defined (__ARCHITECTURE__)1.1344 +#define __ARCHITECTURE__ "m68k"1.1345 +#endif1.1346 + int version;1.1347 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;1.1348 + if (version < 4)1.1349 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);1.1350 + else1.1351 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);1.1352 + exit (0);1.1353 +#endif1.1354 +1.1355 +#if defined (MULTIMAX) || defined (n16)1.1356 +#if defined (UMAXV)1.1357 + printf ("ns32k-encore-sysv\n"); exit (0);1.1358 +#else1.1359 +#if defined (CMU)1.1360 + printf ("ns32k-encore-mach\n"); exit (0);1.1361 +#else1.1362 + printf ("ns32k-encore-bsd\n"); exit (0);1.1363 +#endif1.1364 +#endif1.1365 +#endif1.1366 +1.1367 +#if defined (__386BSD__)1.1368 + printf ("i386-pc-bsd\n"); exit (0);1.1369 +#endif1.1370 +1.1371 +#if defined (sequent)1.1372 +#if defined (i386)1.1373 + printf ("i386-sequent-dynix\n"); exit (0);1.1374 +#endif1.1375 +#if defined (ns32000)1.1376 + printf ("ns32k-sequent-dynix\n"); exit (0);1.1377 +#endif1.1378 +#endif1.1379 +1.1380 +#if defined (_SEQUENT_)1.1381 + struct utsname un;1.1382 +1.1383 + uname(&un);1.1384 +1.1385 + if (strncmp(un.version, "V2", 2) == 0) {1.1386 + printf ("i386-sequent-ptx2\n"); exit (0);1.1387 + }1.1388 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */1.1389 + printf ("i386-sequent-ptx1\n"); exit (0);1.1390 + }1.1391 + printf ("i386-sequent-ptx\n"); exit (0);1.1392 +1.1393 +#endif1.1394 +1.1395 +#if defined (vax)1.1396 +# if !defined (ultrix)1.1397 +# include <sys/param.h>1.1398 +# if defined (BSD)1.1399 +# if BSD == 431.1400 + printf ("vax-dec-bsd4.3\n"); exit (0);1.1401 +# else1.1402 +# if BSD == 1990061.1403 + printf ("vax-dec-bsd4.3reno\n"); exit (0);1.1404 +# else1.1405 + printf ("vax-dec-bsd\n"); exit (0);1.1406 +# endif1.1407 +# endif1.1408 +# else1.1409 + printf ("vax-dec-bsd\n"); exit (0);1.1410 +# endif1.1411 +# else1.1412 + printf ("vax-dec-ultrix\n"); exit (0);1.1413 +# endif1.1414 +#endif1.1415 +1.1416 +#if defined (alliant) && defined (i860)1.1417 + printf ("i860-alliant-bsd\n"); exit (0);1.1418 +#endif1.1419 +1.1420 + exit (1);1.1421 +}1.1422 +EOF1.1423 +1.1424 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&1.1425 + { echo "$SYSTEM_NAME"; exit; }1.1426 +1.1427 +# Apollos put the system type in the environment.1.1428 +1.1429 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }1.1430 +1.1431 +# Convex versions that predate uname can use getsysinfo(1)1.1432 +1.1433 +if [ -x /usr/convex/getsysinfo ]1.1434 +then1.1435 + case `getsysinfo -f cpu_type` in1.1436 + c1*)1.1437 + echo c1-convex-bsd1.1438 + exit ;;1.1439 + c2*)1.1440 + if getsysinfo -f scalar_acc1.1441 + then echo c32-convex-bsd1.1442 + else echo c2-convex-bsd1.1443 + fi1.1444 + exit ;;1.1445 + c34*)1.1446 + echo c34-convex-bsd1.1447 + exit ;;1.1448 + c38*)1.1449 + echo c38-convex-bsd1.1450 + exit ;;1.1451 + c4*)1.1452 + echo c4-convex-bsd1.1453 + exit ;;1.1454 + esac1.1455 +fi1.1456 +1.1457 +cat >&2 <<EOF1.1458 +$0: unable to guess system type1.1459 +1.1460 +This script, last modified $timestamp, has failed to recognize1.1461 +the operating system you are using. It is advised that you1.1462 +download the most up to date version of the config scripts from1.1463 +1.1464 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess1.1465 +and1.1466 + http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub1.1467 +1.1468 +If the version you run ($0) is already up to date, please1.1469 +send the following data and any information you think might be1.1470 +pertinent to <config-patches@gnu.org> in order to provide the needed1.1471 +information to handle your system.1.1472 +1.1473 +config.guess timestamp = $timestamp1.1474 +1.1475 +uname -m = `(uname -m) 2>/dev/null || echo unknown`1.1476 +uname -r = `(uname -r) 2>/dev/null || echo unknown`1.1477 +uname -s = `(uname -s) 2>/dev/null || echo unknown`1.1478 +uname -v = `(uname -v) 2>/dev/null || echo unknown`1.1479 +1.1480 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`1.1481 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`1.1482 +1.1483 +hostinfo = `(hostinfo) 2>/dev/null`1.1484 +/bin/universe = `(/bin/universe) 2>/dev/null`1.1485 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`1.1486 +/bin/arch = `(/bin/arch) 2>/dev/null`1.1487 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`1.1488 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`1.1489 +1.1490 +UNAME_MACHINE = ${UNAME_MACHINE}1.1491 +UNAME_RELEASE = ${UNAME_RELEASE}1.1492 +UNAME_SYSTEM = ${UNAME_SYSTEM}1.1493 +UNAME_VERSION = ${UNAME_VERSION}1.1494 +EOF1.1495 +1.1496 +exit 11.1497 +1.1498 +# Local variables:1.1499 +# eval: (add-hook 'write-file-hooks 'time-stamp)1.1500 +# time-stamp-start: "timestamp='"1.1501 +# time-stamp-format: "%:y-%02m-%02d"1.1502 +# time-stamp-end: "'"1.1503 +# End:
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +00002.2 +++ b/config.sub Sat Nov 17 01:30:01 2007 +00002.3 @@ -0,0 +1,1608 @@2.4 +#! /bin/sh2.5 +# Configuration validation subroutine script.2.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,2.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,2.8 +# Inc.2.9 +2.10 +timestamp='2006-07-02'2.11 +2.12 +# This file is (in principle) common to ALL GNU software.2.13 +# The presence of a machine in this file suggests that SOME GNU software2.14 +# can handle that machine. It does not imply ALL GNU software can.2.15 +#2.16 +# This file is free software; you can redistribute it and/or modify2.17 +# it under the terms of the GNU General Public License as published by2.18 +# the Free Software Foundation; either version 2 of the License, or2.19 +# (at your option) any later version.2.20 +#2.21 +# This program is distributed in the hope that it will be useful,2.22 +# but WITHOUT ANY WARRANTY; without even the implied warranty of2.23 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the2.24 +# GNU General Public License for more details.2.25 +#2.26 +# You should have received a copy of the GNU General Public License2.27 +# along with this program; if not, write to the Free Software2.28 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA2.29 +# 02110-1301, USA.2.30 +#2.31 +# As a special exception to the GNU General Public License, if you2.32 +# distribute this file as part of a program that contains a2.33 +# configuration script generated by Autoconf, you may include it under2.34 +# the same distribution terms that you use for the rest of that program.2.35 +2.36 +2.37 +# Please send patches to <config-patches@gnu.org>. Submit a context2.38 +# diff and a properly formatted ChangeLog entry.2.39 +#2.40 +# Configuration subroutine to validate and canonicalize a configuration type.2.41 +# Supply the specified configuration type as an argument.2.42 +# If it is invalid, we print an error message on stderr and exit with code 1.2.43 +# Otherwise, we print the canonical config type on stdout and succeed.2.44 +2.45 +# This file is supposed to be the same for all GNU packages2.46 +# and recognize all the CPU types, system types and aliases2.47 +# that are meaningful with *any* GNU software.2.48 +# Each package is responsible for reporting which valid configurations2.49 +# it does not support. The user should be able to distinguish2.50 +# a failure to support a valid configuration from a meaningless2.51 +# configuration.2.52 +2.53 +# The goal of this file is to map all the various variations of a given2.54 +# machine specification into a single specification in the form:2.55 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM2.56 +# or in some cases, the newer four-part form:2.57 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM2.58 +# It is wrong to echo any other type of specification.2.59 +2.60 +me=`echo "$0" | sed -e 's,.*/,,'`2.61 +2.62 +usage="\2.63 +Usage: $0 [OPTION] CPU-MFR-OPSYS2.64 + $0 [OPTION] ALIAS2.65 +2.66 +Canonicalize a configuration name.2.67 +2.68 +Operation modes:2.69 + -h, --help print this help, then exit2.70 + -t, --time-stamp print date of last modification, then exit2.71 + -v, --version print version number, then exit2.72 +2.73 +Report bugs and patches to <config-patches@gnu.org>."2.74 +2.75 +version="\2.76 +GNU config.sub ($timestamp)2.77 +2.78 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 20052.79 +Free Software Foundation, Inc.2.80 +2.81 +This is free software; see the source for copying conditions. There is NO2.82 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."2.83 +2.84 +help="2.85 +Try \`$me --help' for more information."2.86 +2.87 +# Parse command line2.88 +while test $# -gt 0 ; do2.89 + case $1 in2.90 + --time-stamp | --time* | -t )2.91 + echo "$timestamp" ; exit ;;2.92 + --version | -v )2.93 + echo "$version" ; exit ;;2.94 + --help | --h* | -h )2.95 + echo "$usage"; exit ;;2.96 + -- ) # Stop option processing2.97 + shift; break ;;2.98 + - ) # Use stdin as input.2.99 + break ;;2.100 + -* )2.101 + echo "$me: invalid option $1$help"2.102 + exit 1 ;;2.103 +2.104 + *local*)2.105 + # First pass through any local machine types.2.106 + echo $12.107 + exit ;;2.108 +2.109 + * )2.110 + break ;;2.111 + esac2.112 +done2.113 +2.114 +case $# in2.115 + 0) echo "$me: missing argument$help" >&22.116 + exit 1;;2.117 + 1) ;;2.118 + *) echo "$me: too many arguments$help" >&22.119 + exit 1;;2.120 +esac2.121 +2.122 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).2.123 +# Here we must recognize all the valid KERNEL-OS combinations.2.124 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`2.125 +case $maybe_os in2.126 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \2.127 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \2.128 + storm-chaos* | os2-emx* | rtmk-nova*)2.129 + os=-$maybe_os2.130 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`2.131 + ;;2.132 + *)2.133 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`2.134 + if [ $basic_machine != $1 ]2.135 + then os=`echo $1 | sed 's/.*-/-/'`2.136 + else os=; fi2.137 + ;;2.138 +esac2.139 +2.140 +### Let's recognize common machines as not being operating systems so2.141 +### that things like config.sub decstation-3100 work. We also2.142 +### recognize some manufacturers as not being operating systems, so we2.143 +### can provide default operating systems below.2.144 +case $os in2.145 + -sun*os*)2.146 + # Prevent following clause from handling this invalid input.2.147 + ;;2.148 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \2.149 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \2.150 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \2.151 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\2.152 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \2.153 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \2.154 + -apple | -axis | -knuth | -cray)2.155 + os=2.156 + basic_machine=$12.157 + ;;2.158 + -sim | -cisco | -oki | -wec | -winbond)2.159 + os=2.160 + basic_machine=$12.161 + ;;2.162 + -scout)2.163 + ;;2.164 + -wrs)2.165 + os=-vxworks2.166 + basic_machine=$12.167 + ;;2.168 + -chorusos*)2.169 + os=-chorusos2.170 + basic_machine=$12.171 + ;;2.172 + -chorusrdb)2.173 + os=-chorusrdb2.174 + basic_machine=$12.175 + ;;2.176 + -hiux*)2.177 + os=-hiuxwe22.178 + ;;2.179 + -sco6)2.180 + os=-sco5v62.181 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.182 + ;;2.183 + -sco5)2.184 + os=-sco3.2v52.185 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.186 + ;;2.187 + -sco4)2.188 + os=-sco3.2v42.189 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.190 + ;;2.191 + -sco3.2.[4-9]*)2.192 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`2.193 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.194 + ;;2.195 + -sco3.2v[4-9]*)2.196 + # Don't forget version if it is 3.2v4 or newer.2.197 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.198 + ;;2.199 + -sco5v6*)2.200 + # Don't forget version if it is 3.2v4 or newer.2.201 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.202 + ;;2.203 + -sco*)2.204 + os=-sco3.2v22.205 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.206 + ;;2.207 + -udk*)2.208 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.209 + ;;2.210 + -isc)2.211 + os=-isc2.22.212 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.213 + ;;2.214 + -clix*)2.215 + basic_machine=clipper-intergraph2.216 + ;;2.217 + -isc*)2.218 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`2.219 + ;;2.220 + -lynx*)2.221 + os=-lynxos2.222 + ;;2.223 + -ptx*)2.224 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`2.225 + ;;2.226 + -windowsnt*)2.227 + os=`echo $os | sed -e 's/windowsnt/winnt/'`2.228 + ;;2.229 + -psos*)2.230 + os=-psos2.231 + ;;2.232 + -mint | -mint[0-9]*)2.233 + basic_machine=m68k-atari2.234 + os=-mint2.235 + ;;2.236 +esac2.237 +2.238 +# Decode aliases for certain CPU-COMPANY combinations.2.239 +case $basic_machine in2.240 + # Recognize the basic CPU types without company name.2.241 + # Some are omitted here because they have special meanings below.2.242 + 1750a | 580 \2.243 + | a29k \2.244 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \2.245 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \2.246 + | am33_2.0 \2.247 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \2.248 + | bfin \2.249 + | c4x | clipper \2.250 + | d10v | d30v | dlx | dsp16xx \2.251 + | fr30 | frv \2.252 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \2.253 + | i370 | i860 | i960 | ia64 \2.254 + | ip2k | iq2000 \2.255 + | m32c | m32r | m32rle | m68000 | m68k | m88k \2.256 + | maxq | mb | microblaze | mcore \2.257 + | mips | mipsbe | mipseb | mipsel | mipsle \2.258 + | mips16 \2.259 + | mips64 | mips64el \2.260 + | mips64vr | mips64vrel \2.261 + | mips64orion | mips64orionel \2.262 + | mips64vr4100 | mips64vr4100el \2.263 + | mips64vr4300 | mips64vr4300el \2.264 + | mips64vr5000 | mips64vr5000el \2.265 + | mips64vr5900 | mips64vr5900el \2.266 + | mipsisa32 | mipsisa32el \2.267 + | mipsisa32r2 | mipsisa32r2el \2.268 + | mipsisa64 | mipsisa64el \2.269 + | mipsisa64r2 | mipsisa64r2el \2.270 + | mipsisa64sb1 | mipsisa64sb1el \2.271 + | mipsisa64sr71k | mipsisa64sr71kel \2.272 + | mipstx39 | mipstx39el \2.273 + | mn10200 | mn10300 \2.274 + | mt \2.275 + | msp430 \2.276 + | nios | nios2 \2.277 + | ns16k | ns32k \2.278 + | or32 \2.279 + | pdp10 | pdp11 | pj | pjl \2.280 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \2.281 + | pyramid \2.282 + | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \2.283 + | sh64 | sh64le \2.284 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \2.285 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \2.286 + | spu | strongarm \2.287 + | tahoe | thumb | tic4x | tic80 | tron \2.288 + | v850 | v850e \2.289 + | we32k \2.290 + | x86 | xscale | xscalee[bl] | xstormy16 | xtensa \2.291 + | z8k)2.292 + basic_machine=$basic_machine-unknown2.293 + ;;2.294 + m6811 | m68hc11 | m6812 | m68hc12)2.295 + # Motorola 68HC11/12.2.296 + basic_machine=$basic_machine-unknown2.297 + os=-none2.298 + ;;2.299 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)2.300 + ;;2.301 + ms1)2.302 + basic_machine=mt-unknown2.303 + ;;2.304 +2.305 + # We use `pc' rather than `unknown'2.306 + # because (1) that's what they normally are, and2.307 + # (2) the word "unknown" tends to confuse beginning users.2.308 + i*86 | x86_64)2.309 + basic_machine=$basic_machine-pc2.310 + ;;2.311 + # Object if more than one company name word.2.312 + *-*-*)2.313 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&22.314 + exit 12.315 + ;;2.316 + # Recognize the basic CPU types with company name.2.317 + 580-* \2.318 + | a29k-* \2.319 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \2.320 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \2.321 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \2.322 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \2.323 + | avr-* | avr32-* \2.324 + | bfin-* | bs2000-* \2.325 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \2.326 + | clipper-* | craynv-* | cydra-* \2.327 + | d10v-* | d30v-* | dlx-* \2.328 + | elxsi-* \2.329 + | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \2.330 + | h8300-* | h8500-* \2.331 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \2.332 + | i*86-* | i860-* | i960-* | ia64-* \2.333 + | ip2k-* | iq2000-* \2.334 + | m32c-* | m32r-* | m32rle-* \2.335 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \2.336 + | m88110-* | m88k-* | maxq-* | mcore-* \2.337 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \2.338 + | mips16-* \2.339 + | mips64-* | mips64el-* \2.340 + | mips64vr-* | mips64vrel-* \2.341 + | mips64orion-* | mips64orionel-* \2.342 + | mips64vr4100-* | mips64vr4100el-* \2.343 + | mips64vr4300-* | mips64vr4300el-* \2.344 + | mips64vr5000-* | mips64vr5000el-* \2.345 + | mips64vr5900-* | mips64vr5900el-* \2.346 + | mipsisa32-* | mipsisa32el-* \2.347 + | mipsisa32r2-* | mipsisa32r2el-* \2.348 + | mipsisa64-* | mipsisa64el-* \2.349 + | mipsisa64r2-* | mipsisa64r2el-* \2.350 + | mipsisa64sb1-* | mipsisa64sb1el-* \2.351 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \2.352 + | mipstx39-* | mipstx39el-* \2.353 + | mmix-* \2.354 + | mt-* \2.355 + | msp430-* \2.356 + | nios-* | nios2-* \2.357 + | none-* | np1-* | ns16k-* | ns32k-* \2.358 + | orion-* \2.359 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \2.360 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \2.361 + | pyramid-* \2.362 + | romp-* | rs6000-* \2.363 + | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \2.364 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \2.365 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \2.366 + | sparclite-* \2.367 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \2.368 + | tahoe-* | thumb-* \2.369 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \2.370 + | tron-* \2.371 + | v850-* | v850e-* | vax-* \2.372 + | we32k-* \2.373 + | x86-* | x86_64-* | xps100-* | xscale-* | xscalee[bl]-* \2.374 + | xstormy16-* | xtensa-* \2.375 + | ymp-* \2.376 + | z8k-*)2.377 + ;;2.378 + # Recognize the various machine names and aliases which stand2.379 + # for a CPU type and a company and sometimes even an OS.2.380 + 386bsd)2.381 + basic_machine=i386-unknown2.382 + os=-bsd2.383 + ;;2.384 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)2.385 + basic_machine=m68000-att2.386 + ;;2.387 + 3b*)2.388 + basic_machine=we32k-att2.389 + ;;2.390 + a29khif)2.391 + basic_machine=a29k-amd2.392 + os=-udi2.393 + ;;2.394 + abacus)2.395 + basic_machine=abacus-unknown2.396 + ;;2.397 + adobe68k)2.398 + basic_machine=m68010-adobe2.399 + os=-scout2.400 + ;;2.401 + alliant | fx80)2.402 + basic_machine=fx80-alliant2.403 + ;;2.404 + altos | altos3068)2.405 + basic_machine=m68k-altos2.406 + ;;2.407 + am29k)2.408 + basic_machine=a29k-none2.409 + os=-bsd2.410 + ;;2.411 + amd64)2.412 + basic_machine=x86_64-pc2.413 + ;;2.414 + amd64-*)2.415 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`2.416 + ;;2.417 + amdahl)2.418 + basic_machine=580-amdahl2.419 + os=-sysv2.420 + ;;2.421 + amiga | amiga-*)2.422 + basic_machine=m68k-unknown2.423 + ;;2.424 + amigaos | amigados)2.425 + basic_machine=m68k-unknown2.426 + os=-amigaos2.427 + ;;2.428 + amigaunix | amix)2.429 + basic_machine=m68k-unknown2.430 + os=-sysv42.431 + ;;2.432 + apollo68)2.433 + basic_machine=m68k-apollo2.434 + os=-sysv2.435 + ;;2.436 + apollo68bsd)2.437 + basic_machine=m68k-apollo2.438 + os=-bsd2.439 + ;;2.440 + aux)2.441 + basic_machine=m68k-apple2.442 + os=-aux2.443 + ;;2.444 + balance)2.445 + basic_machine=ns32k-sequent2.446 + os=-dynix2.447 + ;;2.448 + c90)2.449 + basic_machine=c90-cray2.450 + os=-unicos2.451 + ;;2.452 + convex-c1)2.453 + basic_machine=c1-convex2.454 + os=-bsd2.455 + ;;2.456 + convex-c2)2.457 + basic_machine=c2-convex2.458 + os=-bsd2.459 + ;;2.460 + convex-c32)2.461 + basic_machine=c32-convex2.462 + os=-bsd2.463 + ;;2.464 + convex-c34)2.465 + basic_machine=c34-convex2.466 + os=-bsd2.467 + ;;2.468 + convex-c38)2.469 + basic_machine=c38-convex2.470 + os=-bsd2.471 + ;;2.472 + cray | j90)2.473 + basic_machine=j90-cray2.474 + os=-unicos2.475 + ;;2.476 + craynv)2.477 + basic_machine=craynv-cray2.478 + os=-unicosmp2.479 + ;;2.480 + cr16c)2.481 + basic_machine=cr16c-unknown2.482 + os=-elf2.483 + ;;2.484 + crds | unos)2.485 + basic_machine=m68k-crds2.486 + ;;2.487 + crisv32 | crisv32-* | etraxfs*)2.488 + basic_machine=crisv32-axis2.489 + ;;2.490 + cris | cris-* | etrax*)2.491 + basic_machine=cris-axis2.492 + ;;2.493 + crx)2.494 + basic_machine=crx-unknown2.495 + os=-elf2.496 + ;;2.497 + da30 | da30-*)2.498 + basic_machine=m68k-da302.499 + ;;2.500 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)2.501 + basic_machine=mips-dec2.502 + ;;2.503 + decsystem10* | dec10*)2.504 + basic_machine=pdp10-dec2.505 + os=-tops102.506 + ;;2.507 + decsystem20* | dec20*)2.508 + basic_machine=pdp10-dec2.509 + os=-tops202.510 + ;;2.511 + delta | 3300 | motorola-3300 | motorola-delta \2.512 + | 3300-motorola | delta-motorola)2.513 + basic_machine=m68k-motorola2.514 + ;;2.515 + delta88)2.516 + basic_machine=m88k-motorola2.517 + os=-sysv32.518 + ;;2.519 + djgpp)2.520 + basic_machine=i586-pc2.521 + os=-msdosdjgpp2.522 + ;;2.523 + dpx20 | dpx20-*)2.524 + basic_machine=rs6000-bull2.525 + os=-bosx2.526 + ;;2.527 + dpx2* | dpx2*-bull)2.528 + basic_machine=m68k-bull2.529 + os=-sysv32.530 + ;;2.531 + ebmon29k)2.532 + basic_machine=a29k-amd2.533 + os=-ebmon2.534 + ;;2.535 + elxsi)2.536 + basic_machine=elxsi-elxsi2.537 + os=-bsd2.538 + ;;2.539 + encore | umax | mmax)2.540 + basic_machine=ns32k-encore2.541 + ;;2.542 + es1800 | OSE68k | ose68k | ose | OSE)2.543 + basic_machine=m68k-ericsson2.544 + os=-ose2.545 + ;;2.546 + fx2800)2.547 + basic_machine=i860-alliant2.548 + ;;2.549 + genix)2.550 + basic_machine=ns32k-ns2.551 + ;;2.552 + gmicro)2.553 + basic_machine=tron-gmicro2.554 + os=-sysv2.555 + ;;2.556 + go32)2.557 + basic_machine=i386-pc2.558 + os=-go322.559 + ;;2.560 + h3050r* | hiux*)2.561 + basic_machine=hppa1.1-hitachi2.562 + os=-hiuxwe22.563 + ;;2.564 + h8300hms)2.565 + basic_machine=h8300-hitachi2.566 + os=-hms2.567 + ;;2.568 + h8300xray)2.569 + basic_machine=h8300-hitachi2.570 + os=-xray2.571 + ;;2.572 + h8500hms)2.573 + basic_machine=h8500-hitachi2.574 + os=-hms2.575 + ;;2.576 + harris)2.577 + basic_machine=m88k-harris2.578 + os=-sysv32.579 + ;;2.580 + hp300-*)2.581 + basic_machine=m68k-hp2.582 + ;;2.583 + hp300bsd)2.584 + basic_machine=m68k-hp2.585 + os=-bsd2.586 + ;;2.587 + hp300hpux)2.588 + basic_machine=m68k-hp2.589 + os=-hpux2.590 + ;;2.591 + hp3k9[0-9][0-9] | hp9[0-9][0-9])2.592 + basic_machine=hppa1.0-hp2.593 + ;;2.594 + hp9k2[0-9][0-9] | hp9k31[0-9])2.595 + basic_machine=m68000-hp2.596 + ;;2.597 + hp9k3[2-9][0-9])2.598 + basic_machine=m68k-hp2.599 + ;;2.600 + hp9k6[0-9][0-9] | hp6[0-9][0-9])2.601 + basic_machine=hppa1.0-hp2.602 + ;;2.603 + hp9k7[0-79][0-9] | hp7[0-79][0-9])2.604 + basic_machine=hppa1.1-hp2.605 + ;;2.606 + hp9k78[0-9] | hp78[0-9])2.607 + # FIXME: really hppa2.0-hp2.608 + basic_machine=hppa1.1-hp2.609 + ;;2.610 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)2.611 + # FIXME: really hppa2.0-hp2.612 + basic_machine=hppa1.1-hp2.613 + ;;2.614 + hp9k8[0-9][13679] | hp8[0-9][13679])2.615 + basic_machine=hppa1.1-hp2.616 + ;;2.617 + hp9k8[0-9][0-9] | hp8[0-9][0-9])2.618 + basic_machine=hppa1.0-hp2.619 + ;;2.620 + hppa-next)2.621 + os=-nextstep32.622 + ;;2.623 + hppaosf)2.624 + basic_machine=hppa1.1-hp2.625 + os=-osf2.626 + ;;2.627 + hppro)2.628 + basic_machine=hppa1.1-hp2.629 + os=-proelf2.630 + ;;2.631 + i370-ibm* | ibm*)2.632 + basic_machine=i370-ibm2.633 + ;;2.634 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?2.635 + i*86v32)2.636 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`2.637 + os=-sysv322.638 + ;;2.639 + i*86v4*)2.640 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`2.641 + os=-sysv42.642 + ;;2.643 + i*86v)2.644 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`2.645 + os=-sysv2.646 + ;;2.647 + i*86sol2)2.648 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`2.649 + os=-solaris22.650 + ;;2.651 + i386mach)2.652 + basic_machine=i386-mach2.653 + os=-mach2.654 + ;;2.655 + i386-vsta | vsta)2.656 + basic_machine=i386-unknown2.657 + os=-vsta2.658 + ;;2.659 + iris | iris4d)2.660 + basic_machine=mips-sgi2.661 + case $os in2.662 + -irix*)2.663 + ;;2.664 + *)2.665 + os=-irix42.666 + ;;2.667 + esac2.668 + ;;2.669 + isi68 | isi)2.670 + basic_machine=m68k-isi2.671 + os=-sysv2.672 + ;;2.673 + m88k-omron*)2.674 + basic_machine=m88k-omron2.675 + ;;2.676 + magnum | m3230)2.677 + basic_machine=mips-mips2.678 + os=-sysv2.679 + ;;2.680 + merlin)2.681 + basic_machine=ns32k-utek2.682 + os=-sysv2.683 + ;;2.684 + mingw32)2.685 + basic_machine=i386-pc2.686 + os=-mingw322.687 + ;;2.688 + miniframe)2.689 + basic_machine=m68000-convergent2.690 + ;;2.691 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)2.692 + basic_machine=m68k-atari2.693 + os=-mint2.694 + ;;2.695 + mips3*-*)2.696 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`2.697 + ;;2.698 + mips3*)2.699 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown2.700 + ;;2.701 + monitor)2.702 + basic_machine=m68k-rom68k2.703 + os=-coff2.704 + ;;2.705 + morphos)2.706 + basic_machine=powerpc-unknown2.707 + os=-morphos2.708 + ;;2.709 + msdos)2.710 + basic_machine=i386-pc2.711 + os=-msdos2.712 + ;;2.713 + ms1-*)2.714 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`2.715 + ;;2.716 + mvs)2.717 + basic_machine=i370-ibm2.718 + os=-mvs2.719 + ;;2.720 + ncr3000)2.721 + basic_machine=i486-ncr2.722 + os=-sysv42.723 + ;;2.724 + netbsd386)2.725 + basic_machine=i386-unknown2.726 + os=-netbsd2.727 + ;;2.728 + netwinder)2.729 + basic_machine=armv4l-rebel2.730 + os=-linux2.731 + ;;2.732 + news | news700 | news800 | news900)2.733 + basic_machine=m68k-sony2.734 + os=-newsos2.735 + ;;2.736 + news1000)2.737 + basic_machine=m68030-sony2.738 + os=-newsos2.739 + ;;2.740 + news-3600 | risc-news)2.741 + basic_machine=mips-sony2.742 + os=-newsos2.743 + ;;2.744 + necv70)2.745 + basic_machine=v70-nec2.746 + os=-sysv2.747 + ;;2.748 + next | m*-next )2.749 + basic_machine=m68k-next2.750 + case $os in2.751 + -nextstep* )2.752 + ;;2.753 + -ns2*)2.754 + os=-nextstep22.755 + ;;2.756 + *)2.757 + os=-nextstep32.758 + ;;2.759 + esac2.760 + ;;2.761 + nh3000)2.762 + basic_machine=m68k-harris2.763 + os=-cxux2.764 + ;;2.765 + nh[45]000)2.766 + basic_machine=m88k-harris2.767 + os=-cxux2.768 + ;;2.769 + nindy960)2.770 + basic_machine=i960-intel2.771 + os=-nindy2.772 + ;;2.773 + mon960)2.774 + basic_machine=i960-intel2.775 + os=-mon9602.776 + ;;2.777 + nonstopux)2.778 + basic_machine=mips-compaq2.779 + os=-nonstopux2.780 + ;;2.781 + np1)2.782 + basic_machine=np1-gould2.783 + ;;2.784 + nsr-tandem)2.785 + basic_machine=nsr-tandem2.786 + ;;2.787 + op50n-* | op60c-*)2.788 + basic_machine=hppa1.1-oki2.789 + os=-proelf2.790 + ;;2.791 + openrisc | openrisc-*)2.792 + basic_machine=or32-unknown2.793 + ;;2.794 + os400)2.795 + basic_machine=powerpc-ibm2.796 + os=-os4002.797 + ;;2.798 + OSE68000 | ose68000)2.799 + basic_machine=m68000-ericsson2.800 + os=-ose2.801 + ;;2.802 + os68k)2.803 + basic_machine=m68k-none2.804 + os=-os68k2.805 + ;;2.806 + pa-hitachi)2.807 + basic_machine=hppa1.1-hitachi2.808 + os=-hiuxwe22.809 + ;;2.810 + paragon)2.811 + basic_machine=i860-intel2.812 + os=-osf2.813 + ;;2.814 + pbd)2.815 + basic_machine=sparc-tti2.816 + ;;2.817 + pbb)2.818 + basic_machine=m68k-tti2.819 + ;;2.820 + pc532 | pc532-*)2.821 + basic_machine=ns32k-pc5322.822 + ;;2.823 + pc98)2.824 + basic_machine=i386-pc2.825 + ;;2.826 + pc98-*)2.827 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`2.828 + ;;2.829 + pentium | p5 | k5 | k6 | nexgen | viac3)2.830 + basic_machine=i586-pc2.831 + ;;2.832 + pentiumpro | p6 | 6x86 | athlon | athlon_*)2.833 + basic_machine=i686-pc2.834 + ;;2.835 + pentiumii | pentium2 | pentiumiii | pentium3)2.836 + basic_machine=i686-pc2.837 + ;;2.838 + pentium4)2.839 + basic_machine=i786-pc2.840 + ;;2.841 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)2.842 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`2.843 + ;;2.844 + pentiumpro-* | p6-* | 6x86-* | athlon-*)2.845 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`2.846 + ;;2.847 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)2.848 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`2.849 + ;;2.850 + pentium4-*)2.851 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`2.852 + ;;2.853 + pn)2.854 + basic_machine=pn-gould2.855 + ;;2.856 + power) basic_machine=power-ibm2.857 + ;;2.858 + ppc) basic_machine=powerpc-unknown2.859 + ;;2.860 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`2.861 + ;;2.862 + ppcle | powerpclittle | ppc-le | powerpc-little)2.863 + basic_machine=powerpcle-unknown2.864 + ;;2.865 + ppcle-* | powerpclittle-*)2.866 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`2.867 + ;;2.868 + ppc64) basic_machine=powerpc64-unknown2.869 + ;;2.870 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`2.871 + ;;2.872 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)2.873 + basic_machine=powerpc64le-unknown2.874 + ;;2.875 + ppc64le-* | powerpc64little-*)2.876 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`2.877 + ;;2.878 + ps2)2.879 + basic_machine=i386-ibm2.880 + ;;2.881 + pw32)2.882 + basic_machine=i586-unknown2.883 + os=-pw322.884 + ;;2.885 + rdos)2.886 + basic_machine=i386-pc2.887 + os=-rdos2.888 + ;;2.889 + rom68k)2.890 + basic_machine=m68k-rom68k2.891 + os=-coff2.892 + ;;2.893 + rm[46]00)2.894 + basic_machine=mips-siemens2.895 + ;;2.896 + rtpc | rtpc-*)2.897 + basic_machine=romp-ibm2.898 + ;;2.899 + s390 | s390-*)2.900 + basic_machine=s390-ibm2.901 + ;;2.902 + s390x | s390x-*)2.903 + basic_machine=s390x-ibm2.904 + ;;2.905 + sa29200)2.906 + basic_machine=a29k-amd2.907 + os=-udi2.908 + ;;2.909 + sb1)2.910 + basic_machine=mipsisa64sb1-unknown2.911 + ;;2.912 + sb1el)2.913 + basic_machine=mipsisa64sb1el-unknown2.914 + ;;2.915 + sei)2.916 + basic_machine=mips-sei2.917 + os=-seiux2.918 + ;;2.919 + sequent)2.920 + basic_machine=i386-sequent2.921 + ;;2.922 + sh)2.923 + basic_machine=sh-hitachi2.924 + os=-hms2.925 + ;;2.926 + sh64)2.927 + basic_machine=sh64-unknown2.928 + ;;2.929 + sparclite-wrs | simso-wrs)2.930 + basic_machine=sparclite-wrs2.931 + os=-vxworks2.932 + ;;2.933 + sps7)2.934 + basic_machine=m68k-bull2.935 + os=-sysv22.936 + ;;2.937 + spur)2.938 + basic_machine=spur-unknown2.939 + ;;2.940 + st2000)2.941 + basic_machine=m68k-tandem2.942 + ;;2.943 + stratus)2.944 + basic_machine=i860-stratus2.945 + os=-sysv42.946 + ;;2.947 + sun2)2.948 + basic_machine=m68000-sun2.949 + ;;2.950 + sun2os3)2.951 + basic_machine=m68000-sun2.952 + os=-sunos32.953 + ;;2.954 + sun2os4)2.955 + basic_machine=m68000-sun2.956 + os=-sunos42.957 + ;;2.958 + sun3os3)2.959 + basic_machine=m68k-sun2.960 + os=-sunos32.961 + ;;2.962 + sun3os4)2.963 + basic_machine=m68k-sun2.964 + os=-sunos42.965 + ;;2.966 + sun4os3)2.967 + basic_machine=sparc-sun2.968 + os=-sunos32.969 + ;;2.970 + sun4os4)2.971 + basic_machine=sparc-sun2.972 + os=-sunos42.973 + ;;2.974 + sun4sol2)2.975 + basic_machine=sparc-sun2.976 + os=-solaris22.977 + ;;2.978 + sun3 | sun3-*)2.979 + basic_machine=m68k-sun2.980 + ;;2.981 + sun4)2.982 + basic_machine=sparc-sun2.983 + ;;2.984 + sun386 | sun386i | roadrunner)2.985 + basic_machine=i386-sun2.986 + ;;2.987 + sv1)2.988 + basic_machine=sv1-cray2.989 + os=-unicos2.990 + ;;2.991 + symmetry)2.992 + basic_machine=i386-sequent2.993 + os=-dynix2.994 + ;;2.995 + t3e)2.996 + basic_machine=alphaev5-cray2.997 + os=-unicos2.998 + ;;2.999 + t90)2.1000 + basic_machine=t90-cray2.1001 + os=-unicos2.1002 + ;;2.1003 + tic54x | c54x*)2.1004 + basic_machine=tic54x-unknown2.1005 + os=-coff2.1006 + ;;2.1007 + tic55x | c55x*)2.1008 + basic_machine=tic55x-unknown2.1009 + os=-coff2.1010 + ;;2.1011 + tic6x | c6x*)2.1012 + basic_machine=tic6x-unknown2.1013 + os=-coff2.1014 + ;;2.1015 + tx39)2.1016 + basic_machine=mipstx39-unknown2.1017 + ;;2.1018 + tx39el)2.1019 + basic_machine=mipstx39el-unknown2.1020 + ;;2.1021 + toad1)2.1022 + basic_machine=pdp10-xkl2.1023 + os=-tops202.1024 + ;;2.1025 + tower | tower-32)2.1026 + basic_machine=m68k-ncr2.1027 + ;;2.1028 + tpf)2.1029 + basic_machine=s390x-ibm2.1030 + os=-tpf2.1031 + ;;2.1032 + udi29k)2.1033 + basic_machine=a29k-amd2.1034 + os=-udi2.1035 + ;;2.1036 + ultra3)2.1037 + basic_machine=a29k-nyu2.1038 + os=-sym12.1039 + ;;2.1040 + v810 | necv810)2.1041 + basic_machine=v810-nec2.1042 + os=-none2.1043 + ;;2.1044 + vaxv)2.1045 + basic_machine=vax-dec2.1046 + os=-sysv2.1047 + ;;2.1048 + vms)2.1049 + basic_machine=vax-dec2.1050 + os=-vms2.1051 + ;;2.1052 + vpp*|vx|vx-*)2.1053 + basic_machine=f301-fujitsu2.1054 + ;;2.1055 + vxworks960)2.1056 + basic_machine=i960-wrs2.1057 + os=-vxworks2.1058 + ;;2.1059 + vxworks68)2.1060 + basic_machine=m68k-wrs2.1061 + os=-vxworks2.1062 + ;;2.1063 + vxworks29k)2.1064 + basic_machine=a29k-wrs2.1065 + os=-vxworks2.1066 + ;;2.1067 + w65*)2.1068 + basic_machine=w65-wdc2.1069 + os=-none2.1070 + ;;2.1071 + w89k-*)2.1072 + basic_machine=hppa1.1-winbond2.1073 + os=-proelf2.1074 + ;;2.1075 + xbox)2.1076 + basic_machine=i686-pc2.1077 + os=-mingw322.1078 + ;;2.1079 + xps | xps100)2.1080 + basic_machine=xps100-honeywell2.1081 + ;;2.1082 + ymp)2.1083 + basic_machine=ymp-cray2.1084 + os=-unicos2.1085 + ;;2.1086 + z8k-*-coff)2.1087 + basic_machine=z8k-unknown2.1088 + os=-sim2.1089 + ;;2.1090 + none)2.1091 + basic_machine=none-none2.1092 + os=-none2.1093 + ;;2.1094 +2.1095 +# Here we handle the default manufacturer of certain CPU types. It is in2.1096 +# some cases the only manufacturer, in others, it is the most popular.2.1097 + w89k)2.1098 + basic_machine=hppa1.1-winbond2.1099 + ;;2.1100 + op50n)2.1101 + basic_machine=hppa1.1-oki2.1102 + ;;2.1103 + op60c)2.1104 + basic_machine=hppa1.1-oki2.1105 + ;;2.1106 + romp)2.1107 + basic_machine=romp-ibm2.1108 + ;;2.1109 + mmix)2.1110 + basic_machine=mmix-knuth2.1111 + ;;2.1112 + rs6000)2.1113 + basic_machine=rs6000-ibm2.1114 + ;;2.1115 + vax)2.1116 + basic_machine=vax-dec2.1117 + ;;2.1118 + pdp10)2.1119 + # there are many clones, so DEC is not a safe bet2.1120 + basic_machine=pdp10-unknown2.1121 + ;;2.1122 + pdp11)2.1123 + basic_machine=pdp11-dec2.1124 + ;;2.1125 + we32k)2.1126 + basic_machine=we32k-att2.1127 + ;;2.1128 + sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele)2.1129 + basic_machine=sh-unknown2.1130 + ;;2.1131 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)2.1132 + basic_machine=sparc-sun2.1133 + ;;2.1134 + cydra)2.1135 + basic_machine=cydra-cydrome2.1136 + ;;2.1137 + orion)2.1138 + basic_machine=orion-highlevel2.1139 + ;;2.1140 + orion105)2.1141 + basic_machine=clipper-highlevel2.1142 + ;;2.1143 + mac | mpw | mac-mpw)2.1144 + basic_machine=m68k-apple2.1145 + ;;2.1146 + pmac | pmac-mpw)2.1147 + basic_machine=powerpc-apple2.1148 + ;;2.1149 + *-unknown)2.1150 + # Make sure to match an already-canonicalized machine name.2.1151 + ;;2.1152 + *)2.1153 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&22.1154 + exit 12.1155 + ;;2.1156 +esac2.1157 +2.1158 +# Here we canonicalize certain aliases for manufacturers.2.1159 +case $basic_machine in2.1160 + *-digital*)2.1161 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`2.1162 + ;;2.1163 + *-commodore*)2.1164 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`2.1165 + ;;2.1166 + *)2.1167 + ;;2.1168 +esac2.1169 +2.1170 +# Decode manufacturer-specific aliases for certain operating systems.2.1171 +2.1172 +if [ x"$os" != x"" ]2.1173 +then2.1174 +case $os in2.1175 + # First match some system type aliases2.1176 + # that might get confused with valid system types.2.1177 + # -solaris* is a basic system type, with this one exception.2.1178 + -solaris1 | -solaris1.*)2.1179 + os=`echo $os | sed -e 's|solaris1|sunos4|'`2.1180 + ;;2.1181 + -solaris)2.1182 + os=-solaris22.1183 + ;;2.1184 + -svr4*)2.1185 + os=-sysv42.1186 + ;;2.1187 + -unixware*)2.1188 + os=-sysv4.2uw2.1189 + ;;2.1190 + -gnu/linux*)2.1191 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`2.1192 + ;;2.1193 + # First accept the basic system types.2.1194 + # The portable systems comes first.2.1195 + # Each alternative MUST END IN A *, to match a version number.2.1196 + # -sysv* is not here because it comes later, after sysvr4.2.1197 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \2.1198 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\2.1199 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \2.1200 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \2.1201 + | -aos* \2.1202 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \2.1203 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \2.1204 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \2.1205 + | -openbsd* | -solidbsd* \2.1206 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \2.1207 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \2.1208 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \2.1209 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \2.1210 + | -chorusos* | -chorusrdb* \2.1211 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \2.1212 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \2.1213 + | -uxpv* | -beos* | -mpeix* | -udk* \2.1214 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \2.1215 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \2.1216 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \2.1217 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \2.1218 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \2.1219 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \2.1220 + | -skyos* | -haiku* | -rdos* | -toppers*)2.1221 + # Remember, each alternative MUST END IN *, to match a version number.2.1222 + ;;2.1223 + -qnx*)2.1224 + case $basic_machine in2.1225 + x86-* | i*86-*)2.1226 + ;;2.1227 + *)2.1228 + os=-nto$os2.1229 + ;;2.1230 + esac2.1231 + ;;2.1232 + -nto-qnx*)2.1233 + ;;2.1234 + -nto*)2.1235 + os=`echo $os | sed -e 's|nto|nto-qnx|'`2.1236 + ;;2.1237 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \2.1238 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \2.1239 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)2.1240 + ;;2.1241 + -mac*)2.1242 + os=`echo $os | sed -e 's|mac|macos|'`2.1243 + ;;2.1244 + -linux-dietlibc)2.1245 + os=-linux-dietlibc2.1246 + ;;2.1247 + -linux*)2.1248 + os=`echo $os | sed -e 's|linux|linux-gnu|'`2.1249 + ;;2.1250 + -sunos5*)2.1251 + os=`echo $os | sed -e 's|sunos5|solaris2|'`2.1252 + ;;2.1253 + -sunos6*)2.1254 + os=`echo $os | sed -e 's|sunos6|solaris3|'`2.1255 + ;;2.1256 + -opened*)2.1257 + os=-openedition2.1258 + ;;2.1259 + -os400*)2.1260 + os=-os4002.1261 + ;;2.1262 + -wince*)2.1263 + os=-wince2.1264 + ;;2.1265 + -osfrose*)2.1266 + os=-osfrose2.1267 + ;;2.1268 + -osf*)2.1269 + os=-osf2.1270 + ;;2.1271 + -utek*)2.1272 + os=-bsd2.1273 + ;;2.1274 + -dynix*)2.1275 + os=-bsd2.1276 + ;;2.1277 + -acis*)2.1278 + os=-aos2.1279 + ;;2.1280 + -atheos*)2.1281 + os=-atheos2.1282 + ;;2.1283 + -syllable*)2.1284 + os=-syllable2.1285 + ;;2.1286 + -386bsd)2.1287 + os=-bsd2.1288 + ;;2.1289 + -ctix* | -uts*)2.1290 + os=-sysv2.1291 + ;;2.1292 + -nova*)2.1293 + os=-rtmk-nova2.1294 + ;;2.1295 + -ns2 )2.1296 + os=-nextstep22.1297 + ;;2.1298 + -nsk*)2.1299 + os=-nsk2.1300 + ;;2.1301 + # Preserve the version number of sinix5.2.1302 + -sinix5.*)2.1303 + os=`echo $os | sed -e 's|sinix|sysv|'`2.1304 + ;;2.1305 + -sinix*)2.1306 + os=-sysv42.1307 + ;;2.1308 + -tpf*)2.1309 + os=-tpf2.1310 + ;;2.1311 + -triton*)2.1312 + os=-sysv32.1313 + ;;2.1314 + -oss*)2.1315 + os=-sysv32.1316 + ;;2.1317 + -svr4)2.1318 + os=-sysv42.1319 + ;;2.1320 + -svr3)2.1321 + os=-sysv32.1322 + ;;2.1323 + -sysvr4)2.1324 + os=-sysv42.1325 + ;;2.1326 + # This must come after -sysvr4.2.1327 + -sysv*)2.1328 + ;;2.1329 + -ose*)2.1330 + os=-ose2.1331 + ;;2.1332 + -es1800*)2.1333 + os=-ose2.1334 + ;;2.1335 + -xenix)2.1336 + os=-xenix2.1337 + ;;2.1338 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)2.1339 + os=-mint2.1340 + ;;2.1341 + -aros*)2.1342 + os=-aros2.1343 + ;;2.1344 + -kaos*)2.1345 + os=-kaos2.1346 + ;;2.1347 + -zvmoe)2.1348 + os=-zvmoe2.1349 + ;;2.1350 + -none)2.1351 + ;;2.1352 + *)2.1353 + # Get rid of the `-' at the beginning of $os.2.1354 + os=`echo $os | sed 's/[^-]*-//'`2.1355 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&22.1356 + exit 12.1357 + ;;2.1358 +esac2.1359 +else2.1360 +2.1361 +# Here we handle the default operating systems that come with various machines.2.1362 +# The value should be what the vendor currently ships out the door with their2.1363 +# machine or put another way, the most popular os provided with the machine.2.1364 +2.1365 +# Note that if you're going to try to match "-MANUFACTURER" here (say,2.1366 +# "-sun"), then you have to tell the case statement up towards the top2.1367 +# that MANUFACTURER isn't an operating system. Otherwise, code above2.1368 +# will signal an error saying that MANUFACTURER isn't an operating2.1369 +# system, and we'll never get to this point.2.1370 +2.1371 +case $basic_machine in2.1372 + spu-*)2.1373 + os=-elf2.1374 + ;;2.1375 + *-acorn)2.1376 + os=-riscix1.22.1377 + ;;2.1378 + arm*-rebel)2.1379 + os=-linux2.1380 + ;;2.1381 + arm*-semi)2.1382 + os=-aout2.1383 + ;;2.1384 + c4x-* | tic4x-*)2.1385 + os=-coff2.1386 + ;;2.1387 + # This must come before the *-dec entry.2.1388 + pdp10-*)2.1389 + os=-tops202.1390 + ;;2.1391 + pdp11-*)2.1392 + os=-none2.1393 + ;;2.1394 + *-dec | vax-*)2.1395 + os=-ultrix4.22.1396 + ;;2.1397 + m68*-apollo)2.1398 + os=-domain2.1399 + ;;2.1400 + i386-sun)2.1401 + os=-sunos4.0.22.1402 + ;;2.1403 + m68000-sun)2.1404 + os=-sunos32.1405 + # This also exists in the configure program, but was not the2.1406 + # default.2.1407 + # os=-sunos42.1408 + ;;2.1409 + m68*-cisco)2.1410 + os=-aout2.1411 + ;;2.1412 + mips*-cisco)2.1413 + os=-elf2.1414 + ;;2.1415 + mips*-*)2.1416 + os=-elf2.1417 + ;;2.1418 + or32-*)2.1419 + os=-coff2.1420 + ;;2.1421 + *-tti) # must be before sparc entry or we get the wrong os.2.1422 + os=-sysv32.1423 + ;;2.1424 + sparc-* | *-sun)2.1425 + os=-sunos4.1.12.1426 + ;;2.1427 + *-be)2.1428 + os=-beos2.1429 + ;;2.1430 + *-haiku)2.1431 + os=-haiku2.1432 + ;;2.1433 + *-ibm)2.1434 + os=-aix2.1435 + ;;2.1436 + *-knuth)2.1437 + os=-mmixware2.1438 + ;;2.1439 + *-wec)2.1440 + os=-proelf2.1441 + ;;2.1442 + *-winbond)2.1443 + os=-proelf2.1444 + ;;2.1445 + *-oki)2.1446 + os=-proelf2.1447 + ;;2.1448 + *-hp)2.1449 + os=-hpux2.1450 + ;;2.1451 + *-hitachi)2.1452 + os=-hiux2.1453 + ;;2.1454 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)2.1455 + os=-sysv2.1456 + ;;2.1457 + *-cbm)2.1458 + os=-amigaos2.1459 + ;;2.1460 + *-dg)2.1461 + os=-dgux2.1462 + ;;2.1463 + *-dolphin)2.1464 + os=-sysv32.1465 + ;;2.1466 + m68k-ccur)2.1467 + os=-rtu2.1468 + ;;2.1469 + m88k-omron*)2.1470 + os=-luna2.1471 + ;;2.1472 + *-next )2.1473 + os=-nextstep2.1474 + ;;2.1475 + *-sequent)2.1476 + os=-ptx2.1477 + ;;2.1478 + *-crds)2.1479 + os=-unos2.1480 + ;;2.1481 + *-ns)2.1482 + os=-genix2.1483 + ;;2.1484 + i370-*)2.1485 + os=-mvs2.1486 + ;;2.1487 + *-next)2.1488 + os=-nextstep32.1489 + ;;2.1490 + *-gould)2.1491 + os=-sysv2.1492 + ;;2.1493 + *-highlevel)2.1494 + os=-bsd2.1495 + ;;2.1496 + *-encore)2.1497 + os=-bsd2.1498 + ;;2.1499 + *-sgi)2.1500 + os=-irix2.1501 + ;;2.1502 + *-siemens)2.1503 + os=-sysv42.1504 + ;;2.1505 + *-masscomp)2.1506 + os=-rtu2.1507 + ;;2.1508 + f30[01]-fujitsu | f700-fujitsu)2.1509 + os=-uxpv2.1510 + ;;2.1511 + *-rom68k)2.1512 + os=-coff2.1513 + ;;2.1514 + *-*bug)2.1515 + os=-coff2.1516 + ;;2.1517 + *-apple)2.1518 + os=-macos2.1519 + ;;2.1520 + *-atari*)2.1521 + os=-mint2.1522 + ;;2.1523 + *)2.1524 + os=-none2.1525 + ;;2.1526 +esac2.1527 +fi2.1528 +2.1529 +# Here we handle the case where we know the os, and the CPU type, but not the2.1530 +# manufacturer. We pick the logical manufacturer.2.1531 +vendor=unknown2.1532 +case $basic_machine in2.1533 + *-unknown)2.1534 + case $os in2.1535 + -riscix*)2.1536 + vendor=acorn2.1537 + ;;2.1538 + -sunos*)2.1539 + vendor=sun2.1540 + ;;2.1541 + -aix*)2.1542 + vendor=ibm2.1543 + ;;2.1544 + -beos*)2.1545 + vendor=be2.1546 + ;;2.1547 + -hpux*)2.1548 + vendor=hp2.1549 + ;;2.1550 + -mpeix*)2.1551 + vendor=hp2.1552 + ;;2.1553 + -hiux*)2.1554 + vendor=hitachi2.1555 + ;;2.1556 + -unos*)2.1557 + vendor=crds2.1558 + ;;2.1559 + -dgux*)2.1560 + vendor=dg2.1561 + ;;2.1562 + -luna*)2.1563 + vendor=omron2.1564 + ;;2.1565 + -genix*)2.1566 + vendor=ns2.1567 + ;;2.1568 + -mvs* | -opened*)2.1569 + vendor=ibm2.1570 + ;;2.1571 + -os400*)2.1572 + vendor=ibm2.1573 + ;;2.1574 + -ptx*)2.1575 + vendor=sequent2.1576 + ;;2.1577 + -tpf*)2.1578 + vendor=ibm2.1579 + ;;2.1580 + -vxsim* | -vxworks* | -windiss*)2.1581 + vendor=wrs2.1582 + ;;2.1583 + -aux*)2.1584 + vendor=apple2.1585 + ;;2.1586 + -hms*)2.1587 + vendor=hitachi2.1588 + ;;2.1589 + -mpw* | -macos*)2.1590 + vendor=apple2.1591 + ;;2.1592 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)2.1593 + vendor=atari2.1594 + ;;2.1595 + -vos*)2.1596 + vendor=stratus2.1597 + ;;2.1598 + esac2.1599 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`2.1600 + ;;2.1601 +esac2.1602 +2.1603 +echo $basic_machine$os2.1604 +exit2.1605 +2.1606 +# Local variables:2.1607 +# eval: (add-hook 'write-file-hooks 'time-stamp)2.1608 +# time-stamp-start: "timestamp='"2.1609 +# time-stamp-format: "%:y-%02m-%02d"2.1610 +# time-stamp-end: "'"2.1611 +# End:
.