1.1 --- a/Makefile.in Tue Dec 16 18:03:28 2008 +0000
1.2 +++ b/Makefile.in Tue Dec 16 18:12:34 2008 +0000
1.3 @@ -39,7 +39,7 @@
1.4
1.5 build: $(patsubst %,build-%,$(TARGETS))
1.6
1.7 -install: real-install
1.8 +install: build real-install
1.9
1.10 clean: $(patsubst %,clean-%,$(TARGETS))
1.11
1.12 @@ -100,7 +100,7 @@
1.13
1.14 ifeq ($(strip $(LOCAL)),1)
1.15
1.16 -real-install: build
1.17 +real-install:
1.18 @echo " CHMOD 'ct-ng'"
1.19 @chmod a+x ct-ng
1.20
1.21 @@ -112,7 +112,7 @@
1.22 #--------------------------------------
1.23 # Install rules
1.24
1.25 -real-install: build $(patsubst %,install-%,$(TARGETS))
1.26 +real-install: $(patsubst %,install-%,$(TARGETS))
1.27
1.28 install-bin: $(DESTDIR)$(BINDIR)
1.29 @echo " INST 'ct-ng'"
1.30 @@ -125,11 +125,11 @@
1.31 install-lib: uninstall-lib $(DESTDIR)$(LIBDIR) install-lib-main install-lib-samples
1.32
1.33 install-lib-main: $(DESTDIR)$(LIBDIR)
1.34 - @for src_dir in config kconfig patches scripts tools; do \
1.35 + @for src_dir in config kconfig patches scripts; do \
1.36 echo " INST '$${src_dir}/'"; \
1.37 tar cf - --exclude=.svn $${src_dir} |(cd "$(DESTDIR)$(LIBDIR)"; tar xf -); \
1.38 done
1.39 - @rm -f "$(DESTDIR)$(LIBDIR)/tools/addToolVersion.sh"
1.40 + @rm -f "$(DESTDIR)$(LIBDIR)/scripts/addToolVersion.sh"
1.41 @echo " INST 'steps.mk'"
1.42 @install -m 644 steps.mk "$(DESTDIR)$(LIBDIR)/steps.mk"
1.43
2.1 --- a/ct-ng.in Tue Dec 16 18:03:28 2008 +0000
2.2 +++ b/ct-ng.in Tue Dec 16 18:12:34 2008 +0000
2.3 @@ -50,7 +50,7 @@
2.4 endif # origin V
2.5 export V SILENT ECHO
2.6
2.7 -.FORCE:
2.8 +.FORCE: $(FORCE)
2.9 .PHONY: $(PHONY)
2.10 PHONY += all
2.11 all: help
2.12 @@ -103,7 +103,7 @@
2.13 include $(CT_LIB_DIR)/kconfig/kconfig.mk
2.14 include $(CT_LIB_DIR)/steps.mk
2.15 include $(CT_LIB_DIR)/samples/samples.mk
2.16 -include $(CT_LIB_DIR)/tools/tools.mk
2.17 +include $(CT_LIB_DIR)/scripts/scripts.mk
2.18
2.19 help-distrib::
2.20 @echo ' tarball - Build a tarball of the configured toolchain'
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/scripts/config.guess Tue Dec 16 18:12:34 2008 +0000
3.3 @@ -0,0 +1,1544 @@
3.4 +#! /bin/sh
3.5 +# Attempt to guess a canonical system name.
3.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
3.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
3.8 +# Free Software Foundation, Inc.
3.9 +
3.10 +timestamp='2008-12-11'
3.11 +
3.12 +# This file is free software; you can redistribute it and/or modify it
3.13 +# under the terms of the GNU General Public License as published by
3.14 +# the Free Software Foundation; either version 2 of the License, or
3.15 +# (at your option) any later version.
3.16 +#
3.17 +# This program is distributed in the hope that it will be useful, but
3.18 +# WITHOUT ANY WARRANTY; without even the implied warranty of
3.19 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
3.20 +# General Public License for more details.
3.21 +#
3.22 +# You should have received a copy of the GNU General Public License
3.23 +# along with this program; if not, write to the Free Software
3.24 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
3.25 +# 02110-1301, USA.
3.26 +#
3.27 +# As a special exception to the GNU General Public License, if you
3.28 +# distribute this file as part of a program that contains a
3.29 +# configuration script generated by Autoconf, you may include it under
3.30 +# the same distribution terms that you use for the rest of that program.
3.31 +
3.32 +
3.33 +# Originally written by Per Bothner <per@bothner.com>.
3.34 +# Please send patches to <config-patches@gnu.org>. Submit a context
3.35 +# diff and a properly formatted ChangeLog entry.
3.36 +#
3.37 +# This script attempts to guess a canonical system name similar to
3.38 +# config.sub. If it succeeds, it prints the system name on stdout, and
3.39 +# exits with 0. Otherwise, it exits with 1.
3.40 +#
3.41 +# The plan is that this can be called by configure scripts if you
3.42 +# don't specify an explicit build system type.
3.43 +
3.44 +me=`echo "$0" | sed -e 's,.*/,,'`
3.45 +
3.46 +usage="\
3.47 +Usage: $0 [OPTION]
3.48 +
3.49 +Output the configuration name of the system \`$me' is run on.
3.50 +
3.51 +Operation modes:
3.52 + -h, --help print this help, then exit
3.53 + -t, --time-stamp print date of last modification, then exit
3.54 + -v, --version print version number, then exit
3.55 +
3.56 +Report bugs and patches to <config-patches@gnu.org>."
3.57 +
3.58 +version="\
3.59 +GNU config.guess ($timestamp)
3.60 +
3.61 +Originally written by Per Bothner.
3.62 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
3.63 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
3.64 +
3.65 +This is free software; see the source for copying conditions. There is NO
3.66 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
3.67 +
3.68 +help="
3.69 +Try \`$me --help' for more information."
3.70 +
3.71 +# Parse command line
3.72 +while test $# -gt 0 ; do
3.73 + case $1 in
3.74 + --time-stamp | --time* | -t )
3.75 + echo "$timestamp" ; exit ;;
3.76 + --version | -v )
3.77 + echo "$version" ; exit ;;
3.78 + --help | --h* | -h )
3.79 + echo "$usage"; exit ;;
3.80 + -- ) # Stop option processing
3.81 + shift; break ;;
3.82 + - ) # Use stdin as input.
3.83 + break ;;
3.84 + -* )
3.85 + echo "$me: invalid option $1$help" >&2
3.86 + exit 1 ;;
3.87 + * )
3.88 + break ;;
3.89 + esac
3.90 +done
3.91 +
3.92 +if test $# != 0; then
3.93 + echo "$me: too many arguments$help" >&2
3.94 + exit 1
3.95 +fi
3.96 +
3.97 +trap 'exit 1' 1 2 15
3.98 +
3.99 +# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
3.100 +# compiler to aid in system detection is discouraged as it requires
3.101 +# temporary files to be created and, as you can see below, it is a
3.102 +# headache to deal with in a portable fashion.
3.103 +
3.104 +# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
3.105 +# use `HOST_CC' if defined, but it is deprecated.
3.106 +
3.107 +# Portable tmp directory creation inspired by the Autoconf team.
3.108 +
3.109 +set_cc_for_build='
3.110 +trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
3.111 +trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
3.112 +: ${TMPDIR=/tmp} ;
3.113 + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
3.114 + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
3.115 + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
3.116 + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
3.117 +dummy=$tmp/dummy ;
3.118 +tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
3.119 +case $CC_FOR_BUILD,$HOST_CC,$CC in
3.120 + ,,) echo "int x;" > $dummy.c ;
3.121 + for c in cc gcc c89 c99 ; do
3.122 + if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
3.123 + CC_FOR_BUILD="$c"; break ;
3.124 + fi ;
3.125 + done ;
3.126 + if test x"$CC_FOR_BUILD" = x ; then
3.127 + CC_FOR_BUILD=no_compiler_found ;
3.128 + fi
3.129 + ;;
3.130 + ,,*) CC_FOR_BUILD=$CC ;;
3.131 + ,*,*) CC_FOR_BUILD=$HOST_CC ;;
3.132 +esac ; set_cc_for_build= ;'
3.133 +
3.134 +# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
3.135 +# (ghazi@noc.rutgers.edu 1994-08-24)
3.136 +if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
3.137 + PATH=$PATH:/.attbin ; export PATH
3.138 +fi
3.139 +
3.140 +UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
3.141 +UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
3.142 +UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
3.143 +UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
3.144 +
3.145 +# Note: order is significant - the case branches are not exclusive.
3.146 +
3.147 +case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
3.148 + *:NetBSD:*:*)
3.149 + # NetBSD (nbsd) targets should (where applicable) match one or
3.150 + # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
3.151 + # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
3.152 + # switched to ELF, *-*-netbsd* would select the old
3.153 + # object file format. This provides both forward
3.154 + # compatibility and a consistent mechanism for selecting the
3.155 + # object file format.
3.156 + #
3.157 + # Note: NetBSD doesn't particularly care about the vendor
3.158 + # portion of the name. We always set it to "unknown".
3.159 + sysctl="sysctl -n hw.machine_arch"
3.160 + UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
3.161 + /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
3.162 + case "${UNAME_MACHINE_ARCH}" in
3.163 + armeb) machine=armeb-unknown ;;
3.164 + arm*) machine=arm-unknown ;;
3.165 + sh3el) machine=shl-unknown ;;
3.166 + sh3eb) machine=sh-unknown ;;
3.167 + sh5el) machine=sh5le-unknown ;;
3.168 + *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
3.169 + esac
3.170 + # The Operating System including object format, if it has switched
3.171 + # to ELF recently, or will in the future.
3.172 + case "${UNAME_MACHINE_ARCH}" in
3.173 + arm*|i386|m68k|ns32k|sh3*|sparc|vax)
3.174 + eval $set_cc_for_build
3.175 + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
3.176 + | grep __ELF__ >/dev/null
3.177 + then
3.178 + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
3.179 + # Return netbsd for either. FIX?
3.180 + os=netbsd
3.181 + else
3.182 + os=netbsdelf
3.183 + fi
3.184 + ;;
3.185 + *)
3.186 + os=netbsd
3.187 + ;;
3.188 + esac
3.189 + # The OS release
3.190 + # Debian GNU/NetBSD machines have a different userland, and
3.191 + # thus, need a distinct triplet. However, they do not need
3.192 + # kernel version information, so it can be replaced with a
3.193 + # suitable tag, in the style of linux-gnu.
3.194 + case "${UNAME_VERSION}" in
3.195 + Debian*)
3.196 + release='-gnu'
3.197 + ;;
3.198 + *)
3.199 + release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
3.200 + ;;
3.201 + esac
3.202 + # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
3.203 + # contains redundant information, the shorter form:
3.204 + # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
3.205 + echo "${machine}-${os}${release}"
3.206 + exit ;;
3.207 + *:OpenBSD:*:*)
3.208 + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
3.209 + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
3.210 + exit ;;
3.211 + *:ekkoBSD:*:*)
3.212 + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
3.213 + exit ;;
3.214 + *:SolidBSD:*:*)
3.215 + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
3.216 + exit ;;
3.217 + macppc:MirBSD:*:*)
3.218 + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
3.219 + exit ;;
3.220 + *:MirBSD:*:*)
3.221 + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
3.222 + exit ;;
3.223 + alpha:OSF1:*:*)
3.224 + case $UNAME_RELEASE in
3.225 + *4.0)
3.226 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
3.227 + ;;
3.228 + *5.*)
3.229 + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
3.230 + ;;
3.231 + esac
3.232 + # According to Compaq, /usr/sbin/psrinfo has been available on
3.233 + # OSF/1 and Tru64 systems produced since 1995. I hope that
3.234 + # covers most systems running today. This code pipes the CPU
3.235 + # types through head -n 1, so we only detect the type of CPU 0.
3.236 + ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
3.237 + case "$ALPHA_CPU_TYPE" in
3.238 + "EV4 (21064)")
3.239 + UNAME_MACHINE="alpha" ;;
3.240 + "EV4.5 (21064)")
3.241 + UNAME_MACHINE="alpha" ;;
3.242 + "LCA4 (21066/21068)")
3.243 + UNAME_MACHINE="alpha" ;;
3.244 + "EV5 (21164)")
3.245 + UNAME_MACHINE="alphaev5" ;;
3.246 + "EV5.6 (21164A)")
3.247 + UNAME_MACHINE="alphaev56" ;;
3.248 + "EV5.6 (21164PC)")
3.249 + UNAME_MACHINE="alphapca56" ;;
3.250 + "EV5.7 (21164PC)")
3.251 + UNAME_MACHINE="alphapca57" ;;
3.252 + "EV6 (21264)")
3.253 + UNAME_MACHINE="alphaev6" ;;
3.254 + "EV6.7 (21264A)")
3.255 + UNAME_MACHINE="alphaev67" ;;
3.256 + "EV6.8CB (21264C)")
3.257 + UNAME_MACHINE="alphaev68" ;;
3.258 + "EV6.8AL (21264B)")
3.259 + UNAME_MACHINE="alphaev68" ;;
3.260 + "EV6.8CX (21264D)")
3.261 + UNAME_MACHINE="alphaev68" ;;
3.262 + "EV6.9A (21264/EV69A)")
3.263 + UNAME_MACHINE="alphaev69" ;;
3.264 + "EV7 (21364)")
3.265 + UNAME_MACHINE="alphaev7" ;;
3.266 + "EV7.9 (21364A)")
3.267 + UNAME_MACHINE="alphaev79" ;;
3.268 + esac
3.269 + # A Pn.n version is a patched version.
3.270 + # A Vn.n version is a released version.
3.271 + # A Tn.n version is a released field test version.
3.272 + # A Xn.n version is an unreleased experimental baselevel.
3.273 + # 1.2 uses "1.2" for uname -r.
3.274 + echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3.275 + exit ;;
3.276 + Alpha\ *:Windows_NT*:*)
3.277 + # How do we know it's Interix rather than the generic POSIX subsystem?
3.278 + # Should we change UNAME_MACHINE based on the output of uname instead
3.279 + # of the specific Alpha model?
3.280 + echo alpha-pc-interix
3.281 + exit ;;
3.282 + 21064:Windows_NT:50:3)
3.283 + echo alpha-dec-winnt3.5
3.284 + exit ;;
3.285 + Amiga*:UNIX_System_V:4.0:*)
3.286 + echo m68k-unknown-sysv4
3.287 + exit ;;
3.288 + *:[Aa]miga[Oo][Ss]:*:*)
3.289 + echo ${UNAME_MACHINE}-unknown-amigaos
3.290 + exit ;;
3.291 + *:[Mm]orph[Oo][Ss]:*:*)
3.292 + echo ${UNAME_MACHINE}-unknown-morphos
3.293 + exit ;;
3.294 + *:OS/390:*:*)
3.295 + echo i370-ibm-openedition
3.296 + exit ;;
3.297 + *:z/VM:*:*)
3.298 + echo s390-ibm-zvmoe
3.299 + exit ;;
3.300 + *:OS400:*:*)
3.301 + echo powerpc-ibm-os400
3.302 + exit ;;
3.303 + arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
3.304 + echo arm-acorn-riscix${UNAME_RELEASE}
3.305 + exit ;;
3.306 + arm:riscos:*:*|arm:RISCOS:*:*)
3.307 + echo arm-unknown-riscos
3.308 + exit ;;
3.309 + SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
3.310 + echo hppa1.1-hitachi-hiuxmpp
3.311 + exit ;;
3.312 + Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
3.313 + # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
3.314 + if test "`(/bin/universe) 2>/dev/null`" = att ; then
3.315 + echo pyramid-pyramid-sysv3
3.316 + else
3.317 + echo pyramid-pyramid-bsd
3.318 + fi
3.319 + exit ;;
3.320 + NILE*:*:*:dcosx)
3.321 + echo pyramid-pyramid-svr4
3.322 + exit ;;
3.323 + DRS?6000:unix:4.0:6*)
3.324 + echo sparc-icl-nx6
3.325 + exit ;;
3.326 + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
3.327 + case `/usr/bin/uname -p` in
3.328 + sparc) echo sparc-icl-nx7; exit ;;
3.329 + esac ;;
3.330 + sun4H:SunOS:5.*:*)
3.331 + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3.332 + exit ;;
3.333 + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
3.334 + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3.335 + exit ;;
3.336 + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
3.337 + eval $set_cc_for_build
3.338 + SUN_ARCH="i386"
3.339 + # If there is a compiler, see if it is configured for 64-bit objects.
3.340 + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
3.341 + # This test works for both compilers. Note that the full path to
3.342 + # /usr/bin/echo is necessary to work around the shell builtins for
3.343 + # echo that do not handle newlines.
3.344 + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
3.345 + if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
3.346 + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
3.347 + grep IS_64BIT_ARCH >/dev/null
3.348 + then
3.349 + SUN_ARCH="x86_64"
3.350 + fi
3.351 + fi
3.352 + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3.353 + exit ;;
3.354 + sun4*:SunOS:6*:*)
3.355 + # According to config.sub, this is the proper way to canonicalize
3.356 + # SunOS6. Hard to guess exactly what SunOS6 will be like, but
3.357 + # it's likely to be more like Solaris than SunOS4.
3.358 + echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3.359 + exit ;;
3.360 + sun4*:SunOS:*:*)
3.361 + case "`/usr/bin/arch -k`" in
3.362 + Series*|S4*)
3.363 + UNAME_RELEASE=`uname -v`
3.364 + ;;
3.365 + esac
3.366 + # Japanese Language versions have a version number like `4.1.3-JL'.
3.367 + echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
3.368 + exit ;;
3.369 + sun3*:SunOS:*:*)
3.370 + echo m68k-sun-sunos${UNAME_RELEASE}
3.371 + exit ;;
3.372 + sun*:*:4.2BSD:*)
3.373 + UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
3.374 + test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
3.375 + case "`/bin/arch`" in
3.376 + sun3)
3.377 + echo m68k-sun-sunos${UNAME_RELEASE}
3.378 + ;;
3.379 + sun4)
3.380 + echo sparc-sun-sunos${UNAME_RELEASE}
3.381 + ;;
3.382 + esac
3.383 + exit ;;
3.384 + aushp:SunOS:*:*)
3.385 + echo sparc-auspex-sunos${UNAME_RELEASE}
3.386 + exit ;;
3.387 + # The situation for MiNT is a little confusing. The machine name
3.388 + # can be virtually everything (everything which is not
3.389 + # "atarist" or "atariste" at least should have a processor
3.390 + # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
3.391 + # to the lowercase version "mint" (or "freemint"). Finally
3.392 + # the system name "TOS" denotes a system which is actually not
3.393 + # MiNT. But MiNT is downward compatible to TOS, so this should
3.394 + # be no problem.
3.395 + atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
3.396 + echo m68k-atari-mint${UNAME_RELEASE}
3.397 + exit ;;
3.398 + atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
3.399 + echo m68k-atari-mint${UNAME_RELEASE}
3.400 + exit ;;
3.401 + *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
3.402 + echo m68k-atari-mint${UNAME_RELEASE}
3.403 + exit ;;
3.404 + milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
3.405 + echo m68k-milan-mint${UNAME_RELEASE}
3.406 + exit ;;
3.407 + hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
3.408 + echo m68k-hades-mint${UNAME_RELEASE}
3.409 + exit ;;
3.410 + *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
3.411 + echo m68k-unknown-mint${UNAME_RELEASE}
3.412 + exit ;;
3.413 + m68k:machten:*:*)
3.414 + echo m68k-apple-machten${UNAME_RELEASE}
3.415 + exit ;;
3.416 + powerpc:machten:*:*)
3.417 + echo powerpc-apple-machten${UNAME_RELEASE}
3.418 + exit ;;
3.419 + RISC*:Mach:*:*)
3.420 + echo mips-dec-mach_bsd4.3
3.421 + exit ;;
3.422 + RISC*:ULTRIX:*:*)
3.423 + echo mips-dec-ultrix${UNAME_RELEASE}
3.424 + exit ;;
3.425 + VAX*:ULTRIX*:*:*)
3.426 + echo vax-dec-ultrix${UNAME_RELEASE}
3.427 + exit ;;
3.428 + 2020:CLIX:*:* | 2430:CLIX:*:*)
3.429 + echo clipper-intergraph-clix${UNAME_RELEASE}
3.430 + exit ;;
3.431 + mips:*:*:UMIPS | mips:*:*:RISCos)
3.432 + eval $set_cc_for_build
3.433 + sed 's/^ //' << EOF >$dummy.c
3.434 +#ifdef __cplusplus
3.435 +#include <stdio.h> /* for printf() prototype */
3.436 + int main (int argc, char *argv[]) {
3.437 +#else
3.438 + int main (argc, argv) int argc; char *argv[]; {
3.439 +#endif
3.440 + #if defined (host_mips) && defined (MIPSEB)
3.441 + #if defined (SYSTYPE_SYSV)
3.442 + printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
3.443 + #endif
3.444 + #if defined (SYSTYPE_SVR4)
3.445 + printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
3.446 + #endif
3.447 + #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
3.448 + printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
3.449 + #endif
3.450 + #endif
3.451 + exit (-1);
3.452 + }
3.453 +EOF
3.454 + $CC_FOR_BUILD -o $dummy $dummy.c &&
3.455 + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
3.456 + SYSTEM_NAME=`$dummy $dummyarg` &&
3.457 + { echo "$SYSTEM_NAME"; exit; }
3.458 + echo mips-mips-riscos${UNAME_RELEASE}
3.459 + exit ;;
3.460 + Motorola:PowerMAX_OS:*:*)
3.461 + echo powerpc-motorola-powermax
3.462 + exit ;;
3.463 + Motorola:*:4.3:PL8-*)
3.464 + echo powerpc-harris-powermax
3.465 + exit ;;
3.466 + Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
3.467 + echo powerpc-harris-powermax
3.468 + exit ;;
3.469 + Night_Hawk:Power_UNIX:*:*)
3.470 + echo powerpc-harris-powerunix
3.471 + exit ;;
3.472 + m88k:CX/UX:7*:*)
3.473 + echo m88k-harris-cxux7
3.474 + exit ;;
3.475 + m88k:*:4*:R4*)
3.476 + echo m88k-motorola-sysv4
3.477 + exit ;;
3.478 + m88k:*:3*:R3*)
3.479 + echo m88k-motorola-sysv3
3.480 + exit ;;
3.481 + AViiON:dgux:*:*)
3.482 + # DG/UX returns AViiON for all architectures
3.483 + UNAME_PROCESSOR=`/usr/bin/uname -p`
3.484 + if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
3.485 + then
3.486 + if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
3.487 + [ ${TARGET_BINARY_INTERFACE}x = x ]
3.488 + then
3.489 + echo m88k-dg-dgux${UNAME_RELEASE}
3.490 + else
3.491 + echo m88k-dg-dguxbcs${UNAME_RELEASE}
3.492 + fi
3.493 + else
3.494 + echo i586-dg-dgux${UNAME_RELEASE}
3.495 + fi
3.496 + exit ;;
3.497 + M88*:DolphinOS:*:*) # DolphinOS (SVR3)
3.498 + echo m88k-dolphin-sysv3
3.499 + exit ;;
3.500 + M88*:*:R3*:*)
3.501 + # Delta 88k system running SVR3
3.502 + echo m88k-motorola-sysv3
3.503 + exit ;;
3.504 + XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
3.505 + echo m88k-tektronix-sysv3
3.506 + exit ;;
3.507 + Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
3.508 + echo m68k-tektronix-bsd
3.509 + exit ;;
3.510 + *:IRIX*:*:*)
3.511 + echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
3.512 + exit ;;
3.513 + ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
3.514 + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
3.515 + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
3.516 + i*86:AIX:*:*)
3.517 + echo i386-ibm-aix
3.518 + exit ;;
3.519 + ia64:AIX:*:*)
3.520 + if [ -x /usr/bin/oslevel ] ; then
3.521 + IBM_REV=`/usr/bin/oslevel`
3.522 + else
3.523 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
3.524 + fi
3.525 + echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
3.526 + exit ;;
3.527 + *:AIX:2:3)
3.528 + if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
3.529 + eval $set_cc_for_build
3.530 + sed 's/^ //' << EOF >$dummy.c
3.531 + #include <sys/systemcfg.h>
3.532 +
3.533 + main()
3.534 + {
3.535 + if (!__power_pc())
3.536 + exit(1);
3.537 + puts("powerpc-ibm-aix3.2.5");
3.538 + exit(0);
3.539 + }
3.540 +EOF
3.541 + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
3.542 + then
3.543 + echo "$SYSTEM_NAME"
3.544 + else
3.545 + echo rs6000-ibm-aix3.2.5
3.546 + fi
3.547 + elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
3.548 + echo rs6000-ibm-aix3.2.4
3.549 + else
3.550 + echo rs6000-ibm-aix3.2
3.551 + fi
3.552 + exit ;;
3.553 + *:AIX:*:[456])
3.554 + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
3.555 + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
3.556 + IBM_ARCH=rs6000
3.557 + else
3.558 + IBM_ARCH=powerpc
3.559 + fi
3.560 + if [ -x /usr/bin/oslevel ] ; then
3.561 + IBM_REV=`/usr/bin/oslevel`
3.562 + else
3.563 + IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
3.564 + fi
3.565 + echo ${IBM_ARCH}-ibm-aix${IBM_REV}
3.566 + exit ;;
3.567 + *:AIX:*:*)
3.568 + echo rs6000-ibm-aix
3.569 + exit ;;
3.570 + ibmrt:4.4BSD:*|romp-ibm:BSD:*)
3.571 + echo romp-ibm-bsd4.4
3.572 + exit ;;
3.573 + ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
3.574 + echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
3.575 + exit ;; # report: romp-ibm BSD 4.3
3.576 + *:BOSX:*:*)
3.577 + echo rs6000-bull-bosx
3.578 + exit ;;
3.579 + DPX/2?00:B.O.S.:*:*)
3.580 + echo m68k-bull-sysv3
3.581 + exit ;;
3.582 + 9000/[34]??:4.3bsd:1.*:*)
3.583 + echo m68k-hp-bsd
3.584 + exit ;;
3.585 + hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
3.586 + echo m68k-hp-bsd4.4
3.587 + exit ;;
3.588 + 9000/[34678]??:HP-UX:*:*)
3.589 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
3.590 + case "${UNAME_MACHINE}" in
3.591 + 9000/31? ) HP_ARCH=m68000 ;;
3.592 + 9000/[34]?? ) HP_ARCH=m68k ;;
3.593 + 9000/[678][0-9][0-9])
3.594 + if [ -x /usr/bin/getconf ]; then
3.595 + sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
3.596 + sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
3.597 + case "${sc_cpu_version}" in
3.598 + 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
3.599 + 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
3.600 + 532) # CPU_PA_RISC2_0
3.601 + case "${sc_kernel_bits}" in
3.602 + 32) HP_ARCH="hppa2.0n" ;;
3.603 + 64) HP_ARCH="hppa2.0w" ;;
3.604 + '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
3.605 + esac ;;
3.606 + esac
3.607 + fi
3.608 + if [ "${HP_ARCH}" = "" ]; then
3.609 + eval $set_cc_for_build
3.610 + sed 's/^ //' << EOF >$dummy.c
3.611 +
3.612 + #define _HPUX_SOURCE
3.613 + #include <stdlib.h>
3.614 + #include <unistd.h>
3.615 +
3.616 + int main ()
3.617 + {
3.618 + #if defined(_SC_KERNEL_BITS)
3.619 + long bits = sysconf(_SC_KERNEL_BITS);
3.620 + #endif
3.621 + long cpu = sysconf (_SC_CPU_VERSION);
3.622 +
3.623 + switch (cpu)
3.624 + {
3.625 + case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
3.626 + case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
3.627 + case CPU_PA_RISC2_0:
3.628 + #if defined(_SC_KERNEL_BITS)
3.629 + switch (bits)
3.630 + {
3.631 + case 64: puts ("hppa2.0w"); break;
3.632 + case 32: puts ("hppa2.0n"); break;
3.633 + default: puts ("hppa2.0"); break;
3.634 + } break;
3.635 + #else /* !defined(_SC_KERNEL_BITS) */
3.636 + puts ("hppa2.0"); break;
3.637 + #endif
3.638 + default: puts ("hppa1.0"); break;
3.639 + }
3.640 + exit (0);
3.641 + }
3.642 +EOF
3.643 + (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
3.644 + test -z "$HP_ARCH" && HP_ARCH=hppa
3.645 + fi ;;
3.646 + esac
3.647 + if [ ${HP_ARCH} = "hppa2.0w" ]
3.648 + then
3.649 + eval $set_cc_for_build
3.650 +
3.651 + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
3.652 + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
3.653 + # generating 64-bit code. GNU and HP use different nomenclature:
3.654 + #
3.655 + # $ CC_FOR_BUILD=cc ./config.guess
3.656 + # => hppa2.0w-hp-hpux11.23
3.657 + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
3.658 + # => hppa64-hp-hpux11.23
3.659 +
3.660 + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
3.661 + grep __LP64__ >/dev/null
3.662 + then
3.663 + HP_ARCH="hppa2.0w"
3.664 + else
3.665 + HP_ARCH="hppa64"
3.666 + fi
3.667 + fi
3.668 + echo ${HP_ARCH}-hp-hpux${HPUX_REV}
3.669 + exit ;;
3.670 + ia64:HP-UX:*:*)
3.671 + HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
3.672 + echo ia64-hp-hpux${HPUX_REV}
3.673 + exit ;;
3.674 + 3050*:HI-UX:*:*)
3.675 + eval $set_cc_for_build
3.676 + sed 's/^ //' << EOF >$dummy.c
3.677 + #include <unistd.h>
3.678 + int
3.679 + main ()
3.680 + {
3.681 + long cpu = sysconf (_SC_CPU_VERSION);
3.682 + /* The order matters, because CPU_IS_HP_MC68K erroneously returns
3.683 + true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
3.684 + results, however. */
3.685 + if (CPU_IS_PA_RISC (cpu))
3.686 + {
3.687 + switch (cpu)
3.688 + {
3.689 + case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
3.690 + case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
3.691 + case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
3.692 + default: puts ("hppa-hitachi-hiuxwe2"); break;
3.693 + }
3.694 + }
3.695 + else if (CPU_IS_HP_MC68K (cpu))
3.696 + puts ("m68k-hitachi-hiuxwe2");
3.697 + else puts ("unknown-hitachi-hiuxwe2");
3.698 + exit (0);
3.699 + }
3.700 +EOF
3.701 + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
3.702 + { echo "$SYSTEM_NAME"; exit; }
3.703 + echo unknown-hitachi-hiuxwe2
3.704 + exit ;;
3.705 + 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
3.706 + echo hppa1.1-hp-bsd
3.707 + exit ;;
3.708 + 9000/8??:4.3bsd:*:*)
3.709 + echo hppa1.0-hp-bsd
3.710 + exit ;;
3.711 + *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
3.712 + echo hppa1.0-hp-mpeix
3.713 + exit ;;
3.714 + hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
3.715 + echo hppa1.1-hp-osf
3.716 + exit ;;
3.717 + hp8??:OSF1:*:*)
3.718 + echo hppa1.0-hp-osf
3.719 + exit ;;
3.720 + i*86:OSF1:*:*)
3.721 + if [ -x /usr/sbin/sysversion ] ; then
3.722 + echo ${UNAME_MACHINE}-unknown-osf1mk
3.723 + else
3.724 + echo ${UNAME_MACHINE}-unknown-osf1
3.725 + fi
3.726 + exit ;;
3.727 + parisc*:Lites*:*:*)
3.728 + echo hppa1.1-hp-lites
3.729 + exit ;;
3.730 + C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
3.731 + echo c1-convex-bsd
3.732 + exit ;;
3.733 + C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
3.734 + if getsysinfo -f scalar_acc
3.735 + then echo c32-convex-bsd
3.736 + else echo c2-convex-bsd
3.737 + fi
3.738 + exit ;;
3.739 + C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
3.740 + echo c34-convex-bsd
3.741 + exit ;;
3.742 + C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
3.743 + echo c38-convex-bsd
3.744 + exit ;;
3.745 + C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
3.746 + echo c4-convex-bsd
3.747 + exit ;;
3.748 + CRAY*Y-MP:*:*:*)
3.749 + echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3.750 + exit ;;
3.751 + CRAY*[A-Z]90:*:*:*)
3.752 + echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
3.753 + | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
3.754 + -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
3.755 + -e 's/\.[^.]*$/.X/'
3.756 + exit ;;
3.757 + CRAY*TS:*:*:*)
3.758 + echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3.759 + exit ;;
3.760 + CRAY*T3E:*:*:*)
3.761 + echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3.762 + exit ;;
3.763 + CRAY*SV1:*:*:*)
3.764 + echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3.765 + exit ;;
3.766 + *:UNICOS/mp:*:*)
3.767 + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
3.768 + exit ;;
3.769 + F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
3.770 + FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
3.771 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
3.772 + FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
3.773 + echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
3.774 + exit ;;
3.775 + 5000:UNIX_System_V:4.*:*)
3.776 + FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
3.777 + FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
3.778 + echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
3.779 + exit ;;
3.780 + i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
3.781 + echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
3.782 + exit ;;
3.783 + sparc*:BSD/OS:*:*)
3.784 + echo sparc-unknown-bsdi${UNAME_RELEASE}
3.785 + exit ;;
3.786 + *:BSD/OS:*:*)
3.787 + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
3.788 + exit ;;
3.789 + *:FreeBSD:*:*)
3.790 + case ${UNAME_MACHINE} in
3.791 + pc98)
3.792 + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
3.793 + amd64)
3.794 + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
3.795 + *)
3.796 + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
3.797 + esac
3.798 + exit ;;
3.799 + i*:CYGWIN*:*)
3.800 + echo ${UNAME_MACHINE}-pc-cygwin
3.801 + exit ;;
3.802 + *:MINGW*:*)
3.803 + echo ${UNAME_MACHINE}-pc-mingw32
3.804 + exit ;;
3.805 + i*:windows32*:*)
3.806 + # uname -m includes "-pc" on this system.
3.807 + echo ${UNAME_MACHINE}-mingw32
3.808 + exit ;;
3.809 + i*:PW*:*)
3.810 + echo ${UNAME_MACHINE}-pc-pw32
3.811 + exit ;;
3.812 + *:Interix*:[3456]*)
3.813 + case ${UNAME_MACHINE} in
3.814 + x86)
3.815 + echo i586-pc-interix${UNAME_RELEASE}
3.816 + exit ;;
3.817 + EM64T | authenticamd | genuineintel)
3.818 + echo x86_64-unknown-interix${UNAME_RELEASE}
3.819 + exit ;;
3.820 + IA64)
3.821 + echo ia64-unknown-interix${UNAME_RELEASE}
3.822 + exit ;;
3.823 + esac ;;
3.824 + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
3.825 + echo i${UNAME_MACHINE}-pc-mks
3.826 + exit ;;
3.827 + i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
3.828 + # How do we know it's Interix rather than the generic POSIX subsystem?
3.829 + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
3.830 + # UNAME_MACHINE based on the output of uname instead of i386?
3.831 + echo i586-pc-interix
3.832 + exit ;;
3.833 + i*:UWIN*:*)
3.834 + echo ${UNAME_MACHINE}-pc-uwin
3.835 + exit ;;
3.836 + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
3.837 + echo x86_64-unknown-cygwin
3.838 + exit ;;
3.839 + p*:CYGWIN*:*)
3.840 + echo powerpcle-unknown-cygwin
3.841 + exit ;;
3.842 + prep*:SunOS:5.*:*)
3.843 + echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
3.844 + exit ;;
3.845 + *:GNU:*:*)
3.846 + # the GNU system
3.847 + echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
3.848 + exit ;;
3.849 + *:GNU/*:*:*)
3.850 + # other systems with GNU libc and userland
3.851 + echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
3.852 + exit ;;
3.853 + i*86:Minix:*:*)
3.854 + echo ${UNAME_MACHINE}-pc-minix
3.855 + exit ;;
3.856 + arm*:Linux:*:*)
3.857 + eval $set_cc_for_build
3.858 + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
3.859 + | grep -q __ARM_EABI__
3.860 + then
3.861 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.862 + else
3.863 + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
3.864 + fi
3.865 + exit ;;
3.866 + avr32*:Linux:*:*)
3.867 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.868 + exit ;;
3.869 + cris:Linux:*:*)
3.870 + echo cris-axis-linux-gnu
3.871 + exit ;;
3.872 + crisv32:Linux:*:*)
3.873 + echo crisv32-axis-linux-gnu
3.874 + exit ;;
3.875 + frv:Linux:*:*)
3.876 + echo frv-unknown-linux-gnu
3.877 + exit ;;
3.878 + ia64:Linux:*:*)
3.879 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.880 + exit ;;
3.881 + m32r*:Linux:*:*)
3.882 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.883 + exit ;;
3.884 + m68*:Linux:*:*)
3.885 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.886 + exit ;;
3.887 + mips:Linux:*:*)
3.888 + eval $set_cc_for_build
3.889 + sed 's/^ //' << EOF >$dummy.c
3.890 + #undef CPU
3.891 + #undef mips
3.892 + #undef mipsel
3.893 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
3.894 + CPU=mipsel
3.895 + #else
3.896 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
3.897 + CPU=mips
3.898 + #else
3.899 + CPU=
3.900 + #endif
3.901 + #endif
3.902 +EOF
3.903 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3.904 + /^CPU/{
3.905 + s: ::g
3.906 + p
3.907 + }'`"
3.908 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3.909 + ;;
3.910 + mips64:Linux:*:*)
3.911 + eval $set_cc_for_build
3.912 + sed 's/^ //' << EOF >$dummy.c
3.913 + #undef CPU
3.914 + #undef mips64
3.915 + #undef mips64el
3.916 + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
3.917 + CPU=mips64el
3.918 + #else
3.919 + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
3.920 + CPU=mips64
3.921 + #else
3.922 + CPU=
3.923 + #endif
3.924 + #endif
3.925 +EOF
3.926 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3.927 + /^CPU/{
3.928 + s: ::g
3.929 + p
3.930 + }'`"
3.931 + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
3.932 + ;;
3.933 + or32:Linux:*:*)
3.934 + echo or32-unknown-linux-gnu
3.935 + exit ;;
3.936 + ppc:Linux:*:*)
3.937 + echo powerpc-unknown-linux-gnu
3.938 + exit ;;
3.939 + ppc64:Linux:*:*)
3.940 + echo powerpc64-unknown-linux-gnu
3.941 + exit ;;
3.942 + alpha:Linux:*:*)
3.943 + case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
3.944 + EV5) UNAME_MACHINE=alphaev5 ;;
3.945 + EV56) UNAME_MACHINE=alphaev56 ;;
3.946 + PCA56) UNAME_MACHINE=alphapca56 ;;
3.947 + PCA57) UNAME_MACHINE=alphapca56 ;;
3.948 + EV6) UNAME_MACHINE=alphaev6 ;;
3.949 + EV67) UNAME_MACHINE=alphaev67 ;;
3.950 + EV68*) UNAME_MACHINE=alphaev68 ;;
3.951 + esac
3.952 + objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
3.953 + if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
3.954 + echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
3.955 + exit ;;
3.956 + padre:Linux:*:*)
3.957 + echo sparc-unknown-linux-gnu
3.958 + exit ;;
3.959 + parisc:Linux:*:* | hppa:Linux:*:*)
3.960 + # Look for CPU level
3.961 + case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
3.962 + PA7*) echo hppa1.1-unknown-linux-gnu ;;
3.963 + PA8*) echo hppa2.0-unknown-linux-gnu ;;
3.964 + *) echo hppa-unknown-linux-gnu ;;
3.965 + esac
3.966 + exit ;;
3.967 + parisc64:Linux:*:* | hppa64:Linux:*:*)
3.968 + echo hppa64-unknown-linux-gnu
3.969 + exit ;;
3.970 + s390:Linux:*:* | s390x:Linux:*:*)
3.971 + echo ${UNAME_MACHINE}-ibm-linux
3.972 + exit ;;
3.973 + sh64*:Linux:*:*)
3.974 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.975 + exit ;;
3.976 + sh*:Linux:*:*)
3.977 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.978 + exit ;;
3.979 + sparc:Linux:*:* | sparc64:Linux:*:*)
3.980 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.981 + exit ;;
3.982 + vax:Linux:*:*)
3.983 + echo ${UNAME_MACHINE}-dec-linux-gnu
3.984 + exit ;;
3.985 + x86_64:Linux:*:*)
3.986 + echo x86_64-unknown-linux-gnu
3.987 + exit ;;
3.988 + xtensa*:Linux:*:*)
3.989 + echo ${UNAME_MACHINE}-unknown-linux-gnu
3.990 + exit ;;
3.991 + i*86:Linux:*:*)
3.992 + # The BFD linker knows what the default object file format is, so
3.993 + # first see if it will tell us. cd to the root directory to prevent
3.994 + # problems with other programs or directories called `ld' in the path.
3.995 + # Set LC_ALL=C to ensure ld outputs messages in English.
3.996 + ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
3.997 + | sed -ne '/supported targets:/!d
3.998 + s/[ ][ ]*/ /g
3.999 + s/.*supported targets: *//
3.1000 + s/ .*//
3.1001 + p'`
3.1002 + case "$ld_supported_targets" in
3.1003 + elf32-i386)
3.1004 + TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
3.1005 + ;;
3.1006 + a.out-i386-linux)
3.1007 + echo "${UNAME_MACHINE}-pc-linux-gnuaout"
3.1008 + exit ;;
3.1009 + "")
3.1010 + # Either a pre-BFD a.out linker (linux-gnuoldld) or
3.1011 + # one that does not give us useful --help.
3.1012 + echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
3.1013 + exit ;;
3.1014 + esac
3.1015 + # Determine whether the default compiler is a.out or elf
3.1016 + eval $set_cc_for_build
3.1017 + sed 's/^ //' << EOF >$dummy.c
3.1018 + #include <features.h>
3.1019 + #ifdef __ELF__
3.1020 + # ifdef __GLIBC__
3.1021 + # if __GLIBC__ >= 2
3.1022 + LIBC=gnu
3.1023 + # else
3.1024 + LIBC=gnulibc1
3.1025 + # endif
3.1026 + # else
3.1027 + LIBC=gnulibc1
3.1028 + # endif
3.1029 + #else
3.1030 + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
3.1031 + LIBC=gnu
3.1032 + #else
3.1033 + LIBC=gnuaout
3.1034 + #endif
3.1035 + #endif
3.1036 + #ifdef __dietlibc__
3.1037 + LIBC=dietlibc
3.1038 + #endif
3.1039 +EOF
3.1040 + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
3.1041 + /^LIBC/{
3.1042 + s: ::g
3.1043 + p
3.1044 + }'`"
3.1045 + test x"${LIBC}" != x && {
3.1046 + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
3.1047 + exit
3.1048 + }
3.1049 + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
3.1050 + ;;
3.1051 + i*86:DYNIX/ptx:4*:*)
3.1052 + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
3.1053 + # earlier versions are messed up and put the nodename in both
3.1054 + # sysname and nodename.
3.1055 + echo i386-sequent-sysv4
3.1056 + exit ;;
3.1057 + i*86:UNIX_SV:4.2MP:2.*)
3.1058 + # Unixware is an offshoot of SVR4, but it has its own version
3.1059 + # number series starting with 2...
3.1060 + # I am not positive that other SVR4 systems won't match this,
3.1061 + # I just have to hope. -- rms.
3.1062 + # Use sysv4.2uw... so that sysv4* matches it.
3.1063 + echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
3.1064 + exit ;;
3.1065 + i*86:OS/2:*:*)
3.1066 + # If we were able to find `uname', then EMX Unix compatibility
3.1067 + # is probably installed.
3.1068 + echo ${UNAME_MACHINE}-pc-os2-emx
3.1069 + exit ;;
3.1070 + i*86:XTS-300:*:STOP)
3.1071 + echo ${UNAME_MACHINE}-unknown-stop
3.1072 + exit ;;
3.1073 + i*86:atheos:*:*)
3.1074 + echo ${UNAME_MACHINE}-unknown-atheos
3.1075 + exit ;;
3.1076 + i*86:syllable:*:*)
3.1077 + echo ${UNAME_MACHINE}-pc-syllable
3.1078 + exit ;;
3.1079 + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
3.1080 + echo i386-unknown-lynxos${UNAME_RELEASE}
3.1081 + exit ;;
3.1082 + i*86:*DOS:*:*)
3.1083 + echo ${UNAME_MACHINE}-pc-msdosdjgpp
3.1084 + exit ;;
3.1085 + i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
3.1086 + UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
3.1087 + if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
3.1088 + echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
3.1089 + else
3.1090 + echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
3.1091 + fi
3.1092 + exit ;;
3.1093 + i*86:*:5:[678]*)
3.1094 + # UnixWare 7.x, OpenUNIX and OpenServer 6.
3.1095 + case `/bin/uname -X | grep "^Machine"` in
3.1096 + *486*) UNAME_MACHINE=i486 ;;
3.1097 + *Pentium) UNAME_MACHINE=i586 ;;
3.1098 + *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
3.1099 + esac
3.1100 + echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
3.1101 + exit ;;
3.1102 + i*86:*:3.2:*)
3.1103 + if test -f /usr/options/cb.name; then
3.1104 + UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
3.1105 + echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
3.1106 + elif /bin/uname -X 2>/dev/null >/dev/null ; then
3.1107 + UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
3.1108 + (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
3.1109 + (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
3.1110 + && UNAME_MACHINE=i586
3.1111 + (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
3.1112 + && UNAME_MACHINE=i686
3.1113 + (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
3.1114 + && UNAME_MACHINE=i686
3.1115 + echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
3.1116 + else
3.1117 + echo ${UNAME_MACHINE}-pc-sysv32
3.1118 + fi
3.1119 + exit ;;
3.1120 + pc:*:*:*)
3.1121 + # Left here for compatibility:
3.1122 + # uname -m prints for DJGPP always 'pc', but it prints nothing about
3.1123 + # the processor, so we play safe by assuming i386.
3.1124 + echo i386-pc-msdosdjgpp
3.1125 + exit ;;
3.1126 + Intel:Mach:3*:*)
3.1127 + echo i386-pc-mach3
3.1128 + exit ;;
3.1129 + paragon:*:*:*)
3.1130 + echo i860-intel-osf1
3.1131 + exit ;;
3.1132 + i860:*:4.*:*) # i860-SVR4
3.1133 + if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
3.1134 + echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
3.1135 + else # Add other i860-SVR4 vendors below as they are discovered.
3.1136 + echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
3.1137 + fi
3.1138 + exit ;;
3.1139 + mini*:CTIX:SYS*5:*)
3.1140 + # "miniframe"
3.1141 + echo m68010-convergent-sysv
3.1142 + exit ;;
3.1143 + mc68k:UNIX:SYSTEM5:3.51m)
3.1144 + echo m68k-convergent-sysv
3.1145 + exit ;;
3.1146 + M680?0:D-NIX:5.3:*)
3.1147 + echo m68k-diab-dnix
3.1148 + exit ;;
3.1149 + M68*:*:R3V[5678]*:*)
3.1150 + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
3.1151 + 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)
3.1152 + OS_REL=''
3.1153 + test -r /etc/.relid \
3.1154 + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
3.1155 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
3.1156 + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
3.1157 + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
3.1158 + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
3.1159 + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
3.1160 + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
3.1161 + && { echo i486-ncr-sysv4; exit; } ;;
3.1162 + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
3.1163 + echo m68k-unknown-lynxos${UNAME_RELEASE}
3.1164 + exit ;;
3.1165 + mc68030:UNIX_System_V:4.*:*)
3.1166 + echo m68k-atari-sysv4
3.1167 + exit ;;
3.1168 + TSUNAMI:LynxOS:2.*:*)
3.1169 + echo sparc-unknown-lynxos${UNAME_RELEASE}
3.1170 + exit ;;
3.1171 + rs6000:LynxOS:2.*:*)
3.1172 + echo rs6000-unknown-lynxos${UNAME_RELEASE}
3.1173 + exit ;;
3.1174 + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
3.1175 + echo powerpc-unknown-lynxos${UNAME_RELEASE}
3.1176 + exit ;;
3.1177 + SM[BE]S:UNIX_SV:*:*)
3.1178 + echo mips-dde-sysv${UNAME_RELEASE}
3.1179 + exit ;;
3.1180 + RM*:ReliantUNIX-*:*:*)
3.1181 + echo mips-sni-sysv4
3.1182 + exit ;;
3.1183 + RM*:SINIX-*:*:*)
3.1184 + echo mips-sni-sysv4
3.1185 + exit ;;
3.1186 + *:SINIX-*:*:*)
3.1187 + if uname -p 2>/dev/null >/dev/null ; then
3.1188 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
3.1189 + echo ${UNAME_MACHINE}-sni-sysv4
3.1190 + else
3.1191 + echo ns32k-sni-sysv
3.1192 + fi
3.1193 + exit ;;
3.1194 + PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
3.1195 + # says <Richard.M.Bartel@ccMail.Census.GOV>
3.1196 + echo i586-unisys-sysv4
3.1197 + exit ;;
3.1198 + *:UNIX_System_V:4*:FTX*)
3.1199 + # From Gerald Hewes <hewes@openmarket.com>.
3.1200 + # How about differentiating between stratus architectures? -djm
3.1201 + echo hppa1.1-stratus-sysv4
3.1202 + exit ;;
3.1203 + *:*:*:FTX*)
3.1204 + # From seanf@swdc.stratus.com.
3.1205 + echo i860-stratus-sysv4
3.1206 + exit ;;
3.1207 + i*86:VOS:*:*)
3.1208 + # From Paul.Green@stratus.com.
3.1209 + echo ${UNAME_MACHINE}-stratus-vos
3.1210 + exit ;;
3.1211 + *:VOS:*:*)
3.1212 + # From Paul.Green@stratus.com.
3.1213 + echo hppa1.1-stratus-vos
3.1214 + exit ;;
3.1215 + mc68*:A/UX:*:*)
3.1216 + echo m68k-apple-aux${UNAME_RELEASE}
3.1217 + exit ;;
3.1218 + news*:NEWS-OS:6*:*)
3.1219 + echo mips-sony-newsos6
3.1220 + exit ;;
3.1221 + R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
3.1222 + if [ -d /usr/nec ]; then
3.1223 + echo mips-nec-sysv${UNAME_RELEASE}
3.1224 + else
3.1225 + echo mips-unknown-sysv${UNAME_RELEASE}
3.1226 + fi
3.1227 + exit ;;
3.1228 + BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
3.1229 + echo powerpc-be-beos
3.1230 + exit ;;
3.1231 + BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
3.1232 + echo powerpc-apple-beos
3.1233 + exit ;;
3.1234 + BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
3.1235 + echo i586-pc-beos
3.1236 + exit ;;
3.1237 + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
3.1238 + echo i586-pc-haiku
3.1239 + exit ;;
3.1240 + SX-4:SUPER-UX:*:*)
3.1241 + echo sx4-nec-superux${UNAME_RELEASE}
3.1242 + exit ;;
3.1243 + SX-5:SUPER-UX:*:*)
3.1244 + echo sx5-nec-superux${UNAME_RELEASE}
3.1245 + exit ;;
3.1246 + SX-6:SUPER-UX:*:*)
3.1247 + echo sx6-nec-superux${UNAME_RELEASE}
3.1248 + exit ;;
3.1249 + SX-7:SUPER-UX:*:*)
3.1250 + echo sx7-nec-superux${UNAME_RELEASE}
3.1251 + exit ;;
3.1252 + SX-8:SUPER-UX:*:*)
3.1253 + echo sx8-nec-superux${UNAME_RELEASE}
3.1254 + exit ;;
3.1255 + SX-8R:SUPER-UX:*:*)
3.1256 + echo sx8r-nec-superux${UNAME_RELEASE}
3.1257 + exit ;;
3.1258 + Power*:Rhapsody:*:*)
3.1259 + echo powerpc-apple-rhapsody${UNAME_RELEASE}
3.1260 + exit ;;
3.1261 + *:Rhapsody:*:*)
3.1262 + echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
3.1263 + exit ;;
3.1264 + *:Darwin:*:*)
3.1265 + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
3.1266 + case $UNAME_PROCESSOR in
3.1267 + unknown) UNAME_PROCESSOR=powerpc ;;
3.1268 + esac
3.1269 + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
3.1270 + exit ;;
3.1271 + *:procnto*:*:* | *:QNX:[0123456789]*:*)
3.1272 + UNAME_PROCESSOR=`uname -p`
3.1273 + if test "$UNAME_PROCESSOR" = "x86"; then
3.1274 + UNAME_PROCESSOR=i386
3.1275 + UNAME_MACHINE=pc
3.1276 + fi
3.1277 + echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
3.1278 + exit ;;
3.1279 + *:QNX:*:4*)
3.1280 + echo i386-pc-qnx
3.1281 + exit ;;
3.1282 + NSE-?:NONSTOP_KERNEL:*:*)
3.1283 + echo nse-tandem-nsk${UNAME_RELEASE}
3.1284 + exit ;;
3.1285 + NSR-?:NONSTOP_KERNEL:*:*)
3.1286 + echo nsr-tandem-nsk${UNAME_RELEASE}
3.1287 + exit ;;
3.1288 + *:NonStop-UX:*:*)
3.1289 + echo mips-compaq-nonstopux
3.1290 + exit ;;
3.1291 + BS2000:POSIX*:*:*)
3.1292 + echo bs2000-siemens-sysv
3.1293 + exit ;;
3.1294 + DS/*:UNIX_System_V:*:*)
3.1295 + echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
3.1296 + exit ;;
3.1297 + *:Plan9:*:*)
3.1298 + # "uname -m" is not consistent, so use $cputype instead. 386
3.1299 + # is converted to i386 for consistency with other x86
3.1300 + # operating systems.
3.1301 + if test "$cputype" = "386"; then
3.1302 + UNAME_MACHINE=i386
3.1303 + else
3.1304 + UNAME_MACHINE="$cputype"
3.1305 + fi
3.1306 + echo ${UNAME_MACHINE}-unknown-plan9
3.1307 + exit ;;
3.1308 + *:TOPS-10:*:*)
3.1309 + echo pdp10-unknown-tops10
3.1310 + exit ;;
3.1311 + *:TENEX:*:*)
3.1312 + echo pdp10-unknown-tenex
3.1313 + exit ;;
3.1314 + KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
3.1315 + echo pdp10-dec-tops20
3.1316 + exit ;;
3.1317 + XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
3.1318 + echo pdp10-xkl-tops20
3.1319 + exit ;;
3.1320 + *:TOPS-20:*:*)
3.1321 + echo pdp10-unknown-tops20
3.1322 + exit ;;
3.1323 + *:ITS:*:*)
3.1324 + echo pdp10-unknown-its
3.1325 + exit ;;
3.1326 + SEI:*:*:SEIUX)
3.1327 + echo mips-sei-seiux${UNAME_RELEASE}
3.1328 + exit ;;
3.1329 + *:DragonFly:*:*)
3.1330 + echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
3.1331 + exit ;;
3.1332 + *:*VMS:*:*)
3.1333 + UNAME_MACHINE=`(uname -p) 2>/dev/null`
3.1334 + case "${UNAME_MACHINE}" in
3.1335 + A*) echo alpha-dec-vms ; exit ;;
3.1336 + I*) echo ia64-dec-vms ; exit ;;
3.1337 + V*) echo vax-dec-vms ; exit ;;
3.1338 + esac ;;
3.1339 + *:XENIX:*:SysV)
3.1340 + echo i386-pc-xenix
3.1341 + exit ;;
3.1342 + i*86:skyos:*:*)
3.1343 + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
3.1344 + exit ;;
3.1345 + i*86:rdos:*:*)
3.1346 + echo ${UNAME_MACHINE}-pc-rdos
3.1347 + exit ;;
3.1348 +esac
3.1349 +
3.1350 +#echo '(No uname command or uname output not recognized.)' 1>&2
3.1351 +#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
3.1352 +
3.1353 +eval $set_cc_for_build
3.1354 +cat >$dummy.c <<EOF
3.1355 +#ifdef _SEQUENT_
3.1356 +# include <sys/types.h>
3.1357 +# include <sys/utsname.h>
3.1358 +#endif
3.1359 +main ()
3.1360 +{
3.1361 +#if defined (sony)
3.1362 +#if defined (MIPSEB)
3.1363 + /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
3.1364 + I don't know.... */
3.1365 + printf ("mips-sony-bsd\n"); exit (0);
3.1366 +#else
3.1367 +#include <sys/param.h>
3.1368 + printf ("m68k-sony-newsos%s\n",
3.1369 +#ifdef NEWSOS4
3.1370 + "4"
3.1371 +#else
3.1372 + ""
3.1373 +#endif
3.1374 + ); exit (0);
3.1375 +#endif
3.1376 +#endif
3.1377 +
3.1378 +#if defined (__arm) && defined (__acorn) && defined (__unix)
3.1379 + printf ("arm-acorn-riscix\n"); exit (0);
3.1380 +#endif
3.1381 +
3.1382 +#if defined (hp300) && !defined (hpux)
3.1383 + printf ("m68k-hp-bsd\n"); exit (0);
3.1384 +#endif
3.1385 +
3.1386 +#if defined (NeXT)
3.1387 +#if !defined (__ARCHITECTURE__)
3.1388 +#define __ARCHITECTURE__ "m68k"
3.1389 +#endif
3.1390 + int version;
3.1391 + version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
3.1392 + if (version < 4)
3.1393 + printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
3.1394 + else
3.1395 + printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
3.1396 + exit (0);
3.1397 +#endif
3.1398 +
3.1399 +#if defined (MULTIMAX) || defined (n16)
3.1400 +#if defined (UMAXV)
3.1401 + printf ("ns32k-encore-sysv\n"); exit (0);
3.1402 +#else
3.1403 +#if defined (CMU)
3.1404 + printf ("ns32k-encore-mach\n"); exit (0);
3.1405 +#else
3.1406 + printf ("ns32k-encore-bsd\n"); exit (0);
3.1407 +#endif
3.1408 +#endif
3.1409 +#endif
3.1410 +
3.1411 +#if defined (__386BSD__)
3.1412 + printf ("i386-pc-bsd\n"); exit (0);
3.1413 +#endif
3.1414 +
3.1415 +#if defined (sequent)
3.1416 +#if defined (i386)
3.1417 + printf ("i386-sequent-dynix\n"); exit (0);
3.1418 +#endif
3.1419 +#if defined (ns32000)
3.1420 + printf ("ns32k-sequent-dynix\n"); exit (0);
3.1421 +#endif
3.1422 +#endif
3.1423 +
3.1424 +#if defined (_SEQUENT_)
3.1425 + struct utsname un;
3.1426 +
3.1427 + uname(&un);
3.1428 +
3.1429 + if (strncmp(un.version, "V2", 2) == 0) {
3.1430 + printf ("i386-sequent-ptx2\n"); exit (0);
3.1431 + }
3.1432 + if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
3.1433 + printf ("i386-sequent-ptx1\n"); exit (0);
3.1434 + }
3.1435 + printf ("i386-sequent-ptx\n"); exit (0);
3.1436 +
3.1437 +#endif
3.1438 +
3.1439 +#if defined (vax)
3.1440 +# if !defined (ultrix)
3.1441 +# include <sys/param.h>
3.1442 +# if defined (BSD)
3.1443 +# if BSD == 43
3.1444 + printf ("vax-dec-bsd4.3\n"); exit (0);
3.1445 +# else
3.1446 +# if BSD == 199006
3.1447 + printf ("vax-dec-bsd4.3reno\n"); exit (0);
3.1448 +# else
3.1449 + printf ("vax-dec-bsd\n"); exit (0);
3.1450 +# endif
3.1451 +# endif
3.1452 +# else
3.1453 + printf ("vax-dec-bsd\n"); exit (0);
3.1454 +# endif
3.1455 +# else
3.1456 + printf ("vax-dec-ultrix\n"); exit (0);
3.1457 +# endif
3.1458 +#endif
3.1459 +
3.1460 +#if defined (alliant) && defined (i860)
3.1461 + printf ("i860-alliant-bsd\n"); exit (0);
3.1462 +#endif
3.1463 +
3.1464 + exit (1);
3.1465 +}
3.1466 +EOF
3.1467 +
3.1468 +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
3.1469 + { echo "$SYSTEM_NAME"; exit; }
3.1470 +
3.1471 +# Apollos put the system type in the environment.
3.1472 +
3.1473 +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
3.1474 +
3.1475 +# Convex versions that predate uname can use getsysinfo(1)
3.1476 +
3.1477 +if [ -x /usr/convex/getsysinfo ]
3.1478 +then
3.1479 + case `getsysinfo -f cpu_type` in
3.1480 + c1*)
3.1481 + echo c1-convex-bsd
3.1482 + exit ;;
3.1483 + c2*)
3.1484 + if getsysinfo -f scalar_acc
3.1485 + then echo c32-convex-bsd
3.1486 + else echo c2-convex-bsd
3.1487 + fi
3.1488 + exit ;;
3.1489 + c34*)
3.1490 + echo c34-convex-bsd
3.1491 + exit ;;
3.1492 + c38*)
3.1493 + echo c38-convex-bsd
3.1494 + exit ;;
3.1495 + c4*)
3.1496 + echo c4-convex-bsd
3.1497 + exit ;;
3.1498 + esac
3.1499 +fi
3.1500 +
3.1501 +cat >&2 <<EOF
3.1502 +$0: unable to guess system type
3.1503 +
3.1504 +This script, last modified $timestamp, has failed to recognize
3.1505 +the operating system you are using. It is advised that you
3.1506 +download the most up to date version of the config scripts from
3.1507 +
3.1508 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
3.1509 +and
3.1510 + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
3.1511 +
3.1512 +If the version you run ($0) is already up to date, please
3.1513 +send the following data and any information you think might be
3.1514 +pertinent to <config-patches@gnu.org> in order to provide the needed
3.1515 +information to handle your system.
3.1516 +
3.1517 +config.guess timestamp = $timestamp
3.1518 +
3.1519 +uname -m = `(uname -m) 2>/dev/null || echo unknown`
3.1520 +uname -r = `(uname -r) 2>/dev/null || echo unknown`
3.1521 +uname -s = `(uname -s) 2>/dev/null || echo unknown`
3.1522 +uname -v = `(uname -v) 2>/dev/null || echo unknown`
3.1523 +
3.1524 +/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
3.1525 +/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
3.1526 +
3.1527 +hostinfo = `(hostinfo) 2>/dev/null`
3.1528 +/bin/universe = `(/bin/universe) 2>/dev/null`
3.1529 +/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
3.1530 +/bin/arch = `(/bin/arch) 2>/dev/null`
3.1531 +/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
3.1532 +/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
3.1533 +
3.1534 +UNAME_MACHINE = ${UNAME_MACHINE}
3.1535 +UNAME_RELEASE = ${UNAME_RELEASE}
3.1536 +UNAME_SYSTEM = ${UNAME_SYSTEM}
3.1537 +UNAME_VERSION = ${UNAME_VERSION}
3.1538 +EOF
3.1539 +
3.1540 +exit 1
3.1541 +
3.1542 +# Local variables:
3.1543 +# eval: (add-hook 'write-file-hooks 'time-stamp)
3.1544 +# time-stamp-start: "timestamp='"
3.1545 +# time-stamp-format: "%:y-%02m-%02d"
3.1546 +# time-stamp-end: "'"
3.1547 +# End:
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/scripts/config.sub Tue Dec 16 18:12:34 2008 +0000
4.3 @@ -0,0 +1,1679 @@
4.4 +#! /bin/sh
4.5 +# Configuration validation subroutine script.
4.6 +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4.7 +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
4.8 +# Free Software Foundation, Inc.
4.9 +
4.10 +timestamp='2008-12-11'
4.11 +
4.12 +# This file is (in principle) common to ALL GNU software.
4.13 +# The presence of a machine in this file suggests that SOME GNU software
4.14 +# can handle that machine. It does not imply ALL GNU software can.
4.15 +#
4.16 +# This file is free software; you can redistribute it and/or modify
4.17 +# it under the terms of the GNU General Public License as published by
4.18 +# the Free Software Foundation; either version 2 of the License, or
4.19 +# (at your option) any later version.
4.20 +#
4.21 +# This program is distributed in the hope that it will be useful,
4.22 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
4.23 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
4.24 +# GNU General Public License for more details.
4.25 +#
4.26 +# You should have received a copy of the GNU General Public License
4.27 +# along with this program; if not, write to the Free Software
4.28 +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
4.29 +# 02110-1301, USA.
4.30 +#
4.31 +# As a special exception to the GNU General Public License, if you
4.32 +# distribute this file as part of a program that contains a
4.33 +# configuration script generated by Autoconf, you may include it under
4.34 +# the same distribution terms that you use for the rest of that program.
4.35 +
4.36 +
4.37 +# Please send patches to <config-patches@gnu.org>. Submit a context
4.38 +# diff and a properly formatted ChangeLog entry.
4.39 +#
4.40 +# Configuration subroutine to validate and canonicalize a configuration type.
4.41 +# Supply the specified configuration type as an argument.
4.42 +# If it is invalid, we print an error message on stderr and exit with code 1.
4.43 +# Otherwise, we print the canonical config type on stdout and succeed.
4.44 +
4.45 +# This file is supposed to be the same for all GNU packages
4.46 +# and recognize all the CPU types, system types and aliases
4.47 +# that are meaningful with *any* GNU software.
4.48 +# Each package is responsible for reporting which valid configurations
4.49 +# it does not support. The user should be able to distinguish
4.50 +# a failure to support a valid configuration from a meaningless
4.51 +# configuration.
4.52 +
4.53 +# The goal of this file is to map all the various variations of a given
4.54 +# machine specification into a single specification in the form:
4.55 +# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
4.56 +# or in some cases, the newer four-part form:
4.57 +# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
4.58 +# It is wrong to echo any other type of specification.
4.59 +
4.60 +me=`echo "$0" | sed -e 's,.*/,,'`
4.61 +
4.62 +usage="\
4.63 +Usage: $0 [OPTION] CPU-MFR-OPSYS
4.64 + $0 [OPTION] ALIAS
4.65 +
4.66 +Canonicalize a configuration name.
4.67 +
4.68 +Operation modes:
4.69 + -h, --help print this help, then exit
4.70 + -t, --time-stamp print date of last modification, then exit
4.71 + -v, --version print version number, then exit
4.72 +
4.73 +Report bugs and patches to <config-patches@gnu.org>."
4.74 +
4.75 +version="\
4.76 +GNU config.sub ($timestamp)
4.77 +
4.78 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
4.79 +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
4.80 +
4.81 +This is free software; see the source for copying conditions. There is NO
4.82 +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
4.83 +
4.84 +help="
4.85 +Try \`$me --help' for more information."
4.86 +
4.87 +# Parse command line
4.88 +while test $# -gt 0 ; do
4.89 + case $1 in
4.90 + --time-stamp | --time* | -t )
4.91 + echo "$timestamp" ; exit ;;
4.92 + --version | -v )
4.93 + echo "$version" ; exit ;;
4.94 + --help | --h* | -h )
4.95 + echo "$usage"; exit ;;
4.96 + -- ) # Stop option processing
4.97 + shift; break ;;
4.98 + - ) # Use stdin as input.
4.99 + break ;;
4.100 + -* )
4.101 + echo "$me: invalid option $1$help"
4.102 + exit 1 ;;
4.103 +
4.104 + *local*)
4.105 + # First pass through any local machine types.
4.106 + echo $1
4.107 + exit ;;
4.108 +
4.109 + * )
4.110 + break ;;
4.111 + esac
4.112 +done
4.113 +
4.114 +case $# in
4.115 + 0) echo "$me: missing argument$help" >&2
4.116 + exit 1;;
4.117 + 1) ;;
4.118 + *) echo "$me: too many arguments$help" >&2
4.119 + exit 1;;
4.120 +esac
4.121 +
4.122 +# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
4.123 +# Here we must recognize all the valid KERNEL-OS combinations.
4.124 +maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
4.125 +case $maybe_os in
4.126 + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
4.127 + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
4.128 + storm-chaos* | os2-emx* | rtmk-nova*)
4.129 + os=-$maybe_os
4.130 + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
4.131 + ;;
4.132 + *)
4.133 + basic_machine=`echo $1 | sed 's/-[^-]*$//'`
4.134 + if [ $basic_machine != $1 ]
4.135 + then os=`echo $1 | sed 's/.*-/-/'`
4.136 + else os=; fi
4.137 + ;;
4.138 +esac
4.139 +
4.140 +### Let's recognize common machines as not being operating systems so
4.141 +### that things like config.sub decstation-3100 work. We also
4.142 +### recognize some manufacturers as not being operating systems, so we
4.143 +### can provide default operating systems below.
4.144 +case $os in
4.145 + -sun*os*)
4.146 + # Prevent following clause from handling this invalid input.
4.147 + ;;
4.148 + -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
4.149 + -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
4.150 + -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
4.151 + -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
4.152 + -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
4.153 + -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
4.154 + -apple | -axis | -knuth | -cray)
4.155 + os=
4.156 + basic_machine=$1
4.157 + ;;
4.158 + -sim | -cisco | -oki | -wec | -winbond)
4.159 + os=
4.160 + basic_machine=$1
4.161 + ;;
4.162 + -scout)
4.163 + ;;
4.164 + -wrs)
4.165 + os=-vxworks
4.166 + basic_machine=$1
4.167 + ;;
4.168 + -chorusos*)
4.169 + os=-chorusos
4.170 + basic_machine=$1
4.171 + ;;
4.172 + -chorusrdb)
4.173 + os=-chorusrdb
4.174 + basic_machine=$1
4.175 + ;;
4.176 + -hiux*)
4.177 + os=-hiuxwe2
4.178 + ;;
4.179 + -sco6)
4.180 + os=-sco5v6
4.181 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.182 + ;;
4.183 + -sco5)
4.184 + os=-sco3.2v5
4.185 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.186 + ;;
4.187 + -sco4)
4.188 + os=-sco3.2v4
4.189 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.190 + ;;
4.191 + -sco3.2.[4-9]*)
4.192 + os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
4.193 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.194 + ;;
4.195 + -sco3.2v[4-9]*)
4.196 + # Don't forget version if it is 3.2v4 or newer.
4.197 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.198 + ;;
4.199 + -sco5v6*)
4.200 + # Don't forget version if it is 3.2v4 or newer.
4.201 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.202 + ;;
4.203 + -sco*)
4.204 + os=-sco3.2v2
4.205 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.206 + ;;
4.207 + -udk*)
4.208 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.209 + ;;
4.210 + -isc)
4.211 + os=-isc2.2
4.212 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.213 + ;;
4.214 + -clix*)
4.215 + basic_machine=clipper-intergraph
4.216 + ;;
4.217 + -isc*)
4.218 + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
4.219 + ;;
4.220 + -lynx*)
4.221 + os=-lynxos
4.222 + ;;
4.223 + -ptx*)
4.224 + basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
4.225 + ;;
4.226 + -windowsnt*)
4.227 + os=`echo $os | sed -e 's/windowsnt/winnt/'`
4.228 + ;;
4.229 + -psos*)
4.230 + os=-psos
4.231 + ;;
4.232 + -mint | -mint[0-9]*)
4.233 + basic_machine=m68k-atari
4.234 + os=-mint
4.235 + ;;
4.236 +esac
4.237 +
4.238 +# Decode aliases for certain CPU-COMPANY combinations.
4.239 +case $basic_machine in
4.240 + # Recognize the basic CPU types without company name.
4.241 + # Some are omitted here because they have special meanings below.
4.242 + 1750a | 580 \
4.243 + | a29k \
4.244 + | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
4.245 + | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
4.246 + | am33_2.0 \
4.247 + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
4.248 + | bfin \
4.249 + | c4x | clipper \
4.250 + | d10v | d30v | dlx | dsp16xx \
4.251 + | fido | fr30 | frv \
4.252 + | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
4.253 + | i370 | i860 | i960 | ia64 \
4.254 + | ip2k | iq2000 \
4.255 + | lm32 \
4.256 + | m32c | m32r | m32rle | m68000 | m68k | m88k \
4.257 + | maxq | mb | microblaze | mcore | mep | metag \
4.258 + | mips | mipsbe | mipseb | mipsel | mipsle \
4.259 + | mips16 \
4.260 + | mips64 | mips64el \
4.261 + | mips64octeon | mips64octeonel \
4.262 + | mips64orion | mips64orionel \
4.263 + | mips64r5900 | mips64r5900el \
4.264 + | mips64vr | mips64vrel \
4.265 + | mips64vr4100 | mips64vr4100el \
4.266 + | mips64vr4300 | mips64vr4300el \
4.267 + | mips64vr5000 | mips64vr5000el \
4.268 + | mips64vr5900 | mips64vr5900el \
4.269 + | mipsisa32 | mipsisa32el \
4.270 + | mipsisa32r2 | mipsisa32r2el \
4.271 + | mipsisa64 | mipsisa64el \
4.272 + | mipsisa64r2 | mipsisa64r2el \
4.273 + | mipsisa64sb1 | mipsisa64sb1el \
4.274 + | mipsisa64sr71k | mipsisa64sr71kel \
4.275 + | mipstx39 | mipstx39el \
4.276 + | mn10200 | mn10300 \
4.277 + | mt \
4.278 + | msp430 \
4.279 + | nios | nios2 \
4.280 + | ns16k | ns32k \
4.281 + | or32 \
4.282 + | pdp10 | pdp11 | pj | pjl \
4.283 + | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
4.284 + | pyramid \
4.285 + | score \
4.286 + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
4.287 + | sh64 | sh64le \
4.288 + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
4.289 + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
4.290 + | spu | strongarm \
4.291 + | tahoe | thumb | tic4x | tic80 | tron \
4.292 + | v850 | v850e \
4.293 + | we32k \
4.294 + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
4.295 + | z8k | z80)
4.296 + basic_machine=$basic_machine-unknown
4.297 + ;;
4.298 + m6811 | m68hc11 | m6812 | m68hc12)
4.299 + # Motorola 68HC11/12.
4.300 + basic_machine=$basic_machine-unknown
4.301 + os=-none
4.302 + ;;
4.303 + m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
4.304 + ;;
4.305 + ms1)
4.306 + basic_machine=mt-unknown
4.307 + ;;
4.308 +
4.309 + # We use `pc' rather than `unknown'
4.310 + # because (1) that's what they normally are, and
4.311 + # (2) the word "unknown" tends to confuse beginning users.
4.312 + i*86 | x86_64)
4.313 + basic_machine=$basic_machine-pc
4.314 + ;;
4.315 + # Object if more than one company name word.
4.316 + *-*-*)
4.317 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
4.318 + exit 1
4.319 + ;;
4.320 + # Recognize the basic CPU types with company name.
4.321 + 580-* \
4.322 + | a29k-* \
4.323 + | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
4.324 + | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
4.325 + | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
4.326 + | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
4.327 + | avr-* | avr32-* \
4.328 + | bfin-* | bs2000-* \
4.329 + | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
4.330 + | clipper-* | craynv-* | cydra-* \
4.331 + | d10v-* | d30v-* | dlx-* \
4.332 + | elxsi-* \
4.333 + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
4.334 + | h8300-* | h8500-* \
4.335 + | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
4.336 + | i*86-* | i860-* | i960-* | ia64-* \
4.337 + | ip2k-* | iq2000-* \
4.338 + | lm32-* \
4.339 + | m32c-* | m32r-* | m32rle-* \
4.340 + | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
4.341 + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
4.342 + | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
4.343 + | mips16-* \
4.344 + | mips64-* | mips64el-* \
4.345 + | mips64octeon-* | mips64octeonel-* \
4.346 + | mips64orion-* | mips64orionel-* \
4.347 + | mips64r5900-* | mips64r5900el-* \
4.348 + | mips64vr-* | mips64vrel-* \
4.349 + | mips64vr4100-* | mips64vr4100el-* \
4.350 + | mips64vr4300-* | mips64vr4300el-* \
4.351 + | mips64vr5000-* | mips64vr5000el-* \
4.352 + | mips64vr5900-* | mips64vr5900el-* \
4.353 + | mipsisa32-* | mipsisa32el-* \
4.354 + | mipsisa32r2-* | mipsisa32r2el-* \
4.355 + | mipsisa64-* | mipsisa64el-* \
4.356 + | mipsisa64r2-* | mipsisa64r2el-* \
4.357 + | mipsisa64sb1-* | mipsisa64sb1el-* \
4.358 + | mipsisa64sr71k-* | mipsisa64sr71kel-* \
4.359 + | mipstx39-* | mipstx39el-* \
4.360 + | mmix-* \
4.361 + | mt-* \
4.362 + | msp430-* \
4.363 + | nios-* | nios2-* \
4.364 + | none-* | np1-* | ns16k-* | ns32k-* \
4.365 + | orion-* \
4.366 + | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
4.367 + | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
4.368 + | pyramid-* \
4.369 + | romp-* | rs6000-* \
4.370 + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
4.371 + | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
4.372 + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
4.373 + | sparclite-* \
4.374 + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
4.375 + | tahoe-* | thumb-* \
4.376 + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
4.377 + | tron-* \
4.378 + | v850-* | v850e-* | vax-* \
4.379 + | we32k-* \
4.380 + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
4.381 + | xstormy16-* | xtensa*-* \
4.382 + | ymp-* \
4.383 + | z8k-* | z80-*)
4.384 + ;;
4.385 + # Recognize the basic CPU types without company name, with glob match.
4.386 + xtensa*)
4.387 + basic_machine=$basic_machine-unknown
4.388 + ;;
4.389 + # Recognize the various machine names and aliases which stand
4.390 + # for a CPU type and a company and sometimes even an OS.
4.391 + 386bsd)
4.392 + basic_machine=i386-unknown
4.393 + os=-bsd
4.394 + ;;
4.395 + 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
4.396 + basic_machine=m68000-att
4.397 + ;;
4.398 + 3b*)
4.399 + basic_machine=we32k-att
4.400 + ;;
4.401 + a29khif)
4.402 + basic_machine=a29k-amd
4.403 + os=-udi
4.404 + ;;
4.405 + abacus)
4.406 + basic_machine=abacus-unknown
4.407 + ;;
4.408 + adobe68k)
4.409 + basic_machine=m68010-adobe
4.410 + os=-scout
4.411 + ;;
4.412 + alliant | fx80)
4.413 + basic_machine=fx80-alliant
4.414 + ;;
4.415 + altos | altos3068)
4.416 + basic_machine=m68k-altos
4.417 + ;;
4.418 + am29k)
4.419 + basic_machine=a29k-none
4.420 + os=-bsd
4.421 + ;;
4.422 + amd64)
4.423 + basic_machine=x86_64-pc
4.424 + ;;
4.425 + amd64-*)
4.426 + basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
4.427 + ;;
4.428 + amdahl)
4.429 + basic_machine=580-amdahl
4.430 + os=-sysv
4.431 + ;;
4.432 + amiga | amiga-*)
4.433 + basic_machine=m68k-unknown
4.434 + ;;
4.435 + amigaos | amigados)
4.436 + basic_machine=m68k-unknown
4.437 + os=-amigaos
4.438 + ;;
4.439 + amigaunix | amix)
4.440 + basic_machine=m68k-unknown
4.441 + os=-sysv4
4.442 + ;;
4.443 + apollo68)
4.444 + basic_machine=m68k-apollo
4.445 + os=-sysv
4.446 + ;;
4.447 + apollo68bsd)
4.448 + basic_machine=m68k-apollo
4.449 + os=-bsd
4.450 + ;;
4.451 + aux)
4.452 + basic_machine=m68k-apple
4.453 + os=-aux
4.454 + ;;
4.455 + balance)
4.456 + basic_machine=ns32k-sequent
4.457 + os=-dynix
4.458 + ;;
4.459 + blackfin)
4.460 + basic_machine=bfin-unknown
4.461 + os=-linux
4.462 + ;;
4.463 + blackfin-*)
4.464 + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
4.465 + os=-linux
4.466 + ;;
4.467 + c90)
4.468 + basic_machine=c90-cray
4.469 + os=-unicos
4.470 + ;;
4.471 + cegcc)
4.472 + basic_machine=arm-unknown
4.473 + os=-cegcc
4.474 + ;;
4.475 + convex-c1)
4.476 + basic_machine=c1-convex
4.477 + os=-bsd
4.478 + ;;
4.479 + convex-c2)
4.480 + basic_machine=c2-convex
4.481 + os=-bsd
4.482 + ;;
4.483 + convex-c32)
4.484 + basic_machine=c32-convex
4.485 + os=-bsd
4.486 + ;;
4.487 + convex-c34)
4.488 + basic_machine=c34-convex
4.489 + os=-bsd
4.490 + ;;
4.491 + convex-c38)
4.492 + basic_machine=c38-convex
4.493 + os=-bsd
4.494 + ;;
4.495 + cray | j90)
4.496 + basic_machine=j90-cray
4.497 + os=-unicos
4.498 + ;;
4.499 + craynv)
4.500 + basic_machine=craynv-cray
4.501 + os=-unicosmp
4.502 + ;;
4.503 + cr16)
4.504 + basic_machine=cr16-unknown
4.505 + os=-elf
4.506 + ;;
4.507 + crds | unos)
4.508 + basic_machine=m68k-crds
4.509 + ;;
4.510 + crisv32 | crisv32-* | etraxfs*)
4.511 + basic_machine=crisv32-axis
4.512 + ;;
4.513 + cris | cris-* | etrax*)
4.514 + basic_machine=cris-axis
4.515 + ;;
4.516 + crx)
4.517 + basic_machine=crx-unknown
4.518 + os=-elf
4.519 + ;;
4.520 + da30 | da30-*)
4.521 + basic_machine=m68k-da30
4.522 + ;;
4.523 + decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
4.524 + basic_machine=mips-dec
4.525 + ;;
4.526 + decsystem10* | dec10*)
4.527 + basic_machine=pdp10-dec
4.528 + os=-tops10
4.529 + ;;
4.530 + decsystem20* | dec20*)
4.531 + basic_machine=pdp10-dec
4.532 + os=-tops20
4.533 + ;;
4.534 + delta | 3300 | motorola-3300 | motorola-delta \
4.535 + | 3300-motorola | delta-motorola)
4.536 + basic_machine=m68k-motorola
4.537 + ;;
4.538 + delta88)
4.539 + basic_machine=m88k-motorola
4.540 + os=-sysv3
4.541 + ;;
4.542 + dicos)
4.543 + basic_machine=i686-pc
4.544 + os=-dicos
4.545 + ;;
4.546 + djgpp)
4.547 + basic_machine=i586-pc
4.548 + os=-msdosdjgpp
4.549 + ;;
4.550 + dpx20 | dpx20-*)
4.551 + basic_machine=rs6000-bull
4.552 + os=-bosx
4.553 + ;;
4.554 + dpx2* | dpx2*-bull)
4.555 + basic_machine=m68k-bull
4.556 + os=-sysv3
4.557 + ;;
4.558 + ebmon29k)
4.559 + basic_machine=a29k-amd
4.560 + os=-ebmon
4.561 + ;;
4.562 + elxsi)
4.563 + basic_machine=elxsi-elxsi
4.564 + os=-bsd
4.565 + ;;
4.566 + encore | umax | mmax)
4.567 + basic_machine=ns32k-encore
4.568 + ;;
4.569 + es1800 | OSE68k | ose68k | ose | OSE)
4.570 + basic_machine=m68k-ericsson
4.571 + os=-ose
4.572 + ;;
4.573 + fx2800)
4.574 + basic_machine=i860-alliant
4.575 + ;;
4.576 + genix)
4.577 + basic_machine=ns32k-ns
4.578 + ;;
4.579 + gmicro)
4.580 + basic_machine=tron-gmicro
4.581 + os=-sysv
4.582 + ;;
4.583 + go32)
4.584 + basic_machine=i386-pc
4.585 + os=-go32
4.586 + ;;
4.587 + h3050r* | hiux*)
4.588 + basic_machine=hppa1.1-hitachi
4.589 + os=-hiuxwe2
4.590 + ;;
4.591 + h8300hms)
4.592 + basic_machine=h8300-hitachi
4.593 + os=-hms
4.594 + ;;
4.595 + h8300xray)
4.596 + basic_machine=h8300-hitachi
4.597 + os=-xray
4.598 + ;;
4.599 + h8500hms)
4.600 + basic_machine=h8500-hitachi
4.601 + os=-hms
4.602 + ;;
4.603 + harris)
4.604 + basic_machine=m88k-harris
4.605 + os=-sysv3
4.606 + ;;
4.607 + hp300-*)
4.608 + basic_machine=m68k-hp
4.609 + ;;
4.610 + hp300bsd)
4.611 + basic_machine=m68k-hp
4.612 + os=-bsd
4.613 + ;;
4.614 + hp300hpux)
4.615 + basic_machine=m68k-hp
4.616 + os=-hpux
4.617 + ;;
4.618 + hp3k9[0-9][0-9] | hp9[0-9][0-9])
4.619 + basic_machine=hppa1.0-hp
4.620 + ;;
4.621 + hp9k2[0-9][0-9] | hp9k31[0-9])
4.622 + basic_machine=m68000-hp
4.623 + ;;
4.624 + hp9k3[2-9][0-9])
4.625 + basic_machine=m68k-hp
4.626 + ;;
4.627 + hp9k6[0-9][0-9] | hp6[0-9][0-9])
4.628 + basic_machine=hppa1.0-hp
4.629 + ;;
4.630 + hp9k7[0-79][0-9] | hp7[0-79][0-9])
4.631 + basic_machine=hppa1.1-hp
4.632 + ;;
4.633 + hp9k78[0-9] | hp78[0-9])
4.634 + # FIXME: really hppa2.0-hp
4.635 + basic_machine=hppa1.1-hp
4.636 + ;;
4.637 + hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
4.638 + # FIXME: really hppa2.0-hp
4.639 + basic_machine=hppa1.1-hp
4.640 + ;;
4.641 + hp9k8[0-9][13679] | hp8[0-9][13679])
4.642 + basic_machine=hppa1.1-hp
4.643 + ;;
4.644 + hp9k8[0-9][0-9] | hp8[0-9][0-9])
4.645 + basic_machine=hppa1.0-hp
4.646 + ;;
4.647 + hppa-next)
4.648 + os=-nextstep3
4.649 + ;;
4.650 + hppaosf)
4.651 + basic_machine=hppa1.1-hp
4.652 + os=-osf
4.653 + ;;
4.654 + hppro)
4.655 + basic_machine=hppa1.1-hp
4.656 + os=-proelf
4.657 + ;;
4.658 + i370-ibm* | ibm*)
4.659 + basic_machine=i370-ibm
4.660 + ;;
4.661 +# I'm not sure what "Sysv32" means. Should this be sysv3.2?
4.662 + i*86v32)
4.663 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4.664 + os=-sysv32
4.665 + ;;
4.666 + i*86v4*)
4.667 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4.668 + os=-sysv4
4.669 + ;;
4.670 + i*86v)
4.671 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4.672 + os=-sysv
4.673 + ;;
4.674 + i*86sol2)
4.675 + basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
4.676 + os=-solaris2
4.677 + ;;
4.678 + i386mach)
4.679 + basic_machine=i386-mach
4.680 + os=-mach
4.681 + ;;
4.682 + i386-vsta | vsta)
4.683 + basic_machine=i386-unknown
4.684 + os=-vsta
4.685 + ;;
4.686 + iris | iris4d)
4.687 + basic_machine=mips-sgi
4.688 + case $os in
4.689 + -irix*)
4.690 + ;;
4.691 + *)
4.692 + os=-irix4
4.693 + ;;
4.694 + esac
4.695 + ;;
4.696 + isi68 | isi)
4.697 + basic_machine=m68k-isi
4.698 + os=-sysv
4.699 + ;;
4.700 + m68knommu)
4.701 + basic_machine=m68k-unknown
4.702 + os=-linux
4.703 + ;;
4.704 + m68knommu-*)
4.705 + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
4.706 + os=-linux
4.707 + ;;
4.708 + m88k-omron*)
4.709 + basic_machine=m88k-omron
4.710 + ;;
4.711 + magnum | m3230)
4.712 + basic_machine=mips-mips
4.713 + os=-sysv
4.714 + ;;
4.715 + merlin)
4.716 + basic_machine=ns32k-utek
4.717 + os=-sysv
4.718 + ;;
4.719 + mingw32)
4.720 + basic_machine=i386-pc
4.721 + os=-mingw32
4.722 + ;;
4.723 + mingw32ce)
4.724 + basic_machine=arm-unknown
4.725 + os=-mingw32ce
4.726 + ;;
4.727 + miniframe)
4.728 + basic_machine=m68000-convergent
4.729 + ;;
4.730 + *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
4.731 + basic_machine=m68k-atari
4.732 + os=-mint
4.733 + ;;
4.734 + mips3*-*)
4.735 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
4.736 + ;;
4.737 + mips3*)
4.738 + basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
4.739 + ;;
4.740 + monitor)
4.741 + basic_machine=m68k-rom68k
4.742 + os=-coff
4.743 + ;;
4.744 + morphos)
4.745 + basic_machine=powerpc-unknown
4.746 + os=-morphos
4.747 + ;;
4.748 + msdos)
4.749 + basic_machine=i386-pc
4.750 + os=-msdos
4.751 + ;;
4.752 + ms1-*)
4.753 + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
4.754 + ;;
4.755 + mvs)
4.756 + basic_machine=i370-ibm
4.757 + os=-mvs
4.758 + ;;
4.759 + ncr3000)
4.760 + basic_machine=i486-ncr
4.761 + os=-sysv4
4.762 + ;;
4.763 + netbsd386)
4.764 + basic_machine=i386-unknown
4.765 + os=-netbsd
4.766 + ;;
4.767 + netwinder)
4.768 + basic_machine=armv4l-rebel
4.769 + os=-linux
4.770 + ;;
4.771 + news | news700 | news800 | news900)
4.772 + basic_machine=m68k-sony
4.773 + os=-newsos
4.774 + ;;
4.775 + news1000)
4.776 + basic_machine=m68030-sony
4.777 + os=-newsos
4.778 + ;;
4.779 + news-3600 | risc-news)
4.780 + basic_machine=mips-sony
4.781 + os=-newsos
4.782 + ;;
4.783 + necv70)
4.784 + basic_machine=v70-nec
4.785 + os=-sysv
4.786 + ;;
4.787 + next | m*-next )
4.788 + basic_machine=m68k-next
4.789 + case $os in
4.790 + -nextstep* )
4.791 + ;;
4.792 + -ns2*)
4.793 + os=-nextstep2
4.794 + ;;
4.795 + *)
4.796 + os=-nextstep3
4.797 + ;;
4.798 + esac
4.799 + ;;
4.800 + nh3000)
4.801 + basic_machine=m68k-harris
4.802 + os=-cxux
4.803 + ;;
4.804 + nh[45]000)
4.805 + basic_machine=m88k-harris
4.806 + os=-cxux
4.807 + ;;
4.808 + nindy960)
4.809 + basic_machine=i960-intel
4.810 + os=-nindy
4.811 + ;;
4.812 + mon960)
4.813 + basic_machine=i960-intel
4.814 + os=-mon960
4.815 + ;;
4.816 + nonstopux)
4.817 + basic_machine=mips-compaq
4.818 + os=-nonstopux
4.819 + ;;
4.820 + np1)
4.821 + basic_machine=np1-gould
4.822 + ;;
4.823 + nsr-tandem)
4.824 + basic_machine=nsr-tandem
4.825 + ;;
4.826 + op50n-* | op60c-*)
4.827 + basic_machine=hppa1.1-oki
4.828 + os=-proelf
4.829 + ;;
4.830 + openrisc | openrisc-*)
4.831 + basic_machine=or32-unknown
4.832 + ;;
4.833 + os400)
4.834 + basic_machine=powerpc-ibm
4.835 + os=-os400
4.836 + ;;
4.837 + OSE68000 | ose68000)
4.838 + basic_machine=m68000-ericsson
4.839 + os=-ose
4.840 + ;;
4.841 + os68k)
4.842 + basic_machine=m68k-none
4.843 + os=-os68k
4.844 + ;;
4.845 + pa-hitachi)
4.846 + basic_machine=hppa1.1-hitachi
4.847 + os=-hiuxwe2
4.848 + ;;
4.849 + paragon)
4.850 + basic_machine=i860-intel
4.851 + os=-osf
4.852 + ;;
4.853 + parisc)
4.854 + basic_machine=hppa-unknown
4.855 + os=-linux
4.856 + ;;
4.857 + parisc-*)
4.858 + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
4.859 + os=-linux
4.860 + ;;
4.861 + pbd)
4.862 + basic_machine=sparc-tti
4.863 + ;;
4.864 + pbb)
4.865 + basic_machine=m68k-tti
4.866 + ;;
4.867 + pc532 | pc532-*)
4.868 + basic_machine=ns32k-pc532
4.869 + ;;
4.870 + pc98)
4.871 + basic_machine=i386-pc
4.872 + ;;
4.873 + pc98-*)
4.874 + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
4.875 + ;;
4.876 + pentium | p5 | k5 | k6 | nexgen | viac3)
4.877 + basic_machine=i586-pc
4.878 + ;;
4.879 + pentiumpro | p6 | 6x86 | athlon | athlon_*)
4.880 + basic_machine=i686-pc
4.881 + ;;
4.882 + pentiumii | pentium2 | pentiumiii | pentium3)
4.883 + basic_machine=i686-pc
4.884 + ;;
4.885 + pentium4)
4.886 + basic_machine=i786-pc
4.887 + ;;
4.888 + pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
4.889 + basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
4.890 + ;;
4.891 + pentiumpro-* | p6-* | 6x86-* | athlon-*)
4.892 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4.893 + ;;
4.894 + pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
4.895 + basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
4.896 + ;;
4.897 + pentium4-*)
4.898 + basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
4.899 + ;;
4.900 + pn)
4.901 + basic_machine=pn-gould
4.902 + ;;
4.903 + power) basic_machine=power-ibm
4.904 + ;;
4.905 + ppc) basic_machine=powerpc-unknown
4.906 + ;;
4.907 + ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
4.908 + ;;
4.909 + ppcle | powerpclittle | ppc-le | powerpc-little)
4.910 + basic_machine=powerpcle-unknown
4.911 + ;;
4.912 + ppcle-* | powerpclittle-*)
4.913 + basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
4.914 + ;;
4.915 + ppc64) basic_machine=powerpc64-unknown
4.916 + ;;
4.917 + ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
4.918 + ;;
4.919 + ppc64le | powerpc64little | ppc64-le | powerpc64-little)
4.920 + basic_machine=powerpc64le-unknown
4.921 + ;;
4.922 + ppc64le-* | powerpc64little-*)
4.923 + basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
4.924 + ;;
4.925 + ps2)
4.926 + basic_machine=i386-ibm
4.927 + ;;
4.928 + pw32)
4.929 + basic_machine=i586-unknown
4.930 + os=-pw32
4.931 + ;;
4.932 + rdos)
4.933 + basic_machine=i386-pc
4.934 + os=-rdos
4.935 + ;;
4.936 + rom68k)
4.937 + basic_machine=m68k-rom68k
4.938 + os=-coff
4.939 + ;;
4.940 + rm[46]00)
4.941 + basic_machine=mips-siemens
4.942 + ;;
4.943 + rtpc | rtpc-*)
4.944 + basic_machine=romp-ibm
4.945 + ;;
4.946 + s390 | s390-*)
4.947 + basic_machine=s390-ibm
4.948 + ;;
4.949 + s390x | s390x-*)
4.950 + basic_machine=s390x-ibm
4.951 + ;;
4.952 + sa29200)
4.953 + basic_machine=a29k-amd
4.954 + os=-udi
4.955 + ;;
4.956 + sb1)
4.957 + basic_machine=mipsisa64sb1-unknown
4.958 + ;;
4.959 + sb1el)
4.960 + basic_machine=mipsisa64sb1el-unknown
4.961 + ;;
4.962 + sde)
4.963 + basic_machine=mipsisa32-sde
4.964 + os=-elf
4.965 + ;;
4.966 + sei)
4.967 + basic_machine=mips-sei
4.968 + os=-seiux
4.969 + ;;
4.970 + sequent)
4.971 + basic_machine=i386-sequent
4.972 + ;;
4.973 + sh)
4.974 + basic_machine=sh-hitachi
4.975 + os=-hms
4.976 + ;;
4.977 + sh5el)
4.978 + basic_machine=sh5le-unknown
4.979 + ;;
4.980 + sh64)
4.981 + basic_machine=sh64-unknown
4.982 + ;;
4.983 + sparclite-wrs | simso-wrs)
4.984 + basic_machine=sparclite-wrs
4.985 + os=-vxworks
4.986 + ;;
4.987 + sps7)
4.988 + basic_machine=m68k-bull
4.989 + os=-sysv2
4.990 + ;;
4.991 + spur)
4.992 + basic_machine=spur-unknown
4.993 + ;;
4.994 + st2000)
4.995 + basic_machine=m68k-tandem
4.996 + ;;
4.997 + stratus)
4.998 + basic_machine=i860-stratus
4.999 + os=-sysv4
4.1000 + ;;
4.1001 + sun2)
4.1002 + basic_machine=m68000-sun
4.1003 + ;;
4.1004 + sun2os3)
4.1005 + basic_machine=m68000-sun
4.1006 + os=-sunos3
4.1007 + ;;
4.1008 + sun2os4)
4.1009 + basic_machine=m68000-sun
4.1010 + os=-sunos4
4.1011 + ;;
4.1012 + sun3os3)
4.1013 + basic_machine=m68k-sun
4.1014 + os=-sunos3
4.1015 + ;;
4.1016 + sun3os4)
4.1017 + basic_machine=m68k-sun
4.1018 + os=-sunos4
4.1019 + ;;
4.1020 + sun4os3)
4.1021 + basic_machine=sparc-sun
4.1022 + os=-sunos3
4.1023 + ;;
4.1024 + sun4os4)
4.1025 + basic_machine=sparc-sun
4.1026 + os=-sunos4
4.1027 + ;;
4.1028 + sun4sol2)
4.1029 + basic_machine=sparc-sun
4.1030 + os=-solaris2
4.1031 + ;;
4.1032 + sun3 | sun3-*)
4.1033 + basic_machine=m68k-sun
4.1034 + ;;
4.1035 + sun4)
4.1036 + basic_machine=sparc-sun
4.1037 + ;;
4.1038 + sun386 | sun386i | roadrunner)
4.1039 + basic_machine=i386-sun
4.1040 + ;;
4.1041 + sv1)
4.1042 + basic_machine=sv1-cray
4.1043 + os=-unicos
4.1044 + ;;
4.1045 + symmetry)
4.1046 + basic_machine=i386-sequent
4.1047 + os=-dynix
4.1048 + ;;
4.1049 + t3e)
4.1050 + basic_machine=alphaev5-cray
4.1051 + os=-unicos
4.1052 + ;;
4.1053 + t90)
4.1054 + basic_machine=t90-cray
4.1055 + os=-unicos
4.1056 + ;;
4.1057 + tic54x | c54x*)
4.1058 + basic_machine=tic54x-unknown
4.1059 + os=-coff
4.1060 + ;;
4.1061 + tic55x | c55x*)
4.1062 + basic_machine=tic55x-unknown
4.1063 + os=-coff
4.1064 + ;;
4.1065 + tic6x | c6x*)
4.1066 + basic_machine=tic6x-unknown
4.1067 + os=-coff
4.1068 + ;;
4.1069 + tile*)
4.1070 + basic_machine=tile-unknown
4.1071 + os=-linux-gnu
4.1072 + ;;
4.1073 + tx39)
4.1074 + basic_machine=mipstx39-unknown
4.1075 + ;;
4.1076 + tx39el)
4.1077 + basic_machine=mipstx39el-unknown
4.1078 + ;;
4.1079 + toad1)
4.1080 + basic_machine=pdp10-xkl
4.1081 + os=-tops20
4.1082 + ;;
4.1083 + tower | tower-32)
4.1084 + basic_machine=m68k-ncr
4.1085 + ;;
4.1086 + tpf)
4.1087 + basic_machine=s390x-ibm
4.1088 + os=-tpf
4.1089 + ;;
4.1090 + udi29k)
4.1091 + basic_machine=a29k-amd
4.1092 + os=-udi
4.1093 + ;;
4.1094 + ultra3)
4.1095 + basic_machine=a29k-nyu
4.1096 + os=-sym1
4.1097 + ;;
4.1098 + v810 | necv810)
4.1099 + basic_machine=v810-nec
4.1100 + os=-none
4.1101 + ;;
4.1102 + vaxv)
4.1103 + basic_machine=vax-dec
4.1104 + os=-sysv
4.1105 + ;;
4.1106 + vms)
4.1107 + basic_machine=vax-dec
4.1108 + os=-vms
4.1109 + ;;
4.1110 + vpp*|vx|vx-*)
4.1111 + basic_machine=f301-fujitsu
4.1112 + ;;
4.1113 + vxworks960)
4.1114 + basic_machine=i960-wrs
4.1115 + os=-vxworks
4.1116 + ;;
4.1117 + vxworks68)
4.1118 + basic_machine=m68k-wrs
4.1119 + os=-vxworks
4.1120 + ;;
4.1121 + vxworks29k)
4.1122 + basic_machine=a29k-wrs
4.1123 + os=-vxworks
4.1124 + ;;
4.1125 + w65*)
4.1126 + basic_machine=w65-wdc
4.1127 + os=-none
4.1128 + ;;
4.1129 + w89k-*)
4.1130 + basic_machine=hppa1.1-winbond
4.1131 + os=-proelf
4.1132 + ;;
4.1133 + xbox)
4.1134 + basic_machine=i686-pc
4.1135 + os=-mingw32
4.1136 + ;;
4.1137 + xps | xps100)
4.1138 + basic_machine=xps100-honeywell
4.1139 + ;;
4.1140 + ymp)
4.1141 + basic_machine=ymp-cray
4.1142 + os=-unicos
4.1143 + ;;
4.1144 + z8k-*-coff)
4.1145 + basic_machine=z8k-unknown
4.1146 + os=-sim
4.1147 + ;;
4.1148 + z80-*-coff)
4.1149 + basic_machine=z80-unknown
4.1150 + os=-sim
4.1151 + ;;
4.1152 + none)
4.1153 + basic_machine=none-none
4.1154 + os=-none
4.1155 + ;;
4.1156 +
4.1157 +# Here we handle the default manufacturer of certain CPU types. It is in
4.1158 +# some cases the only manufacturer, in others, it is the most popular.
4.1159 + w89k)
4.1160 + basic_machine=hppa1.1-winbond
4.1161 + ;;
4.1162 + op50n)
4.1163 + basic_machine=hppa1.1-oki
4.1164 + ;;
4.1165 + op60c)
4.1166 + basic_machine=hppa1.1-oki
4.1167 + ;;
4.1168 + romp)
4.1169 + basic_machine=romp-ibm
4.1170 + ;;
4.1171 + mmix)
4.1172 + basic_machine=mmix-knuth
4.1173 + ;;
4.1174 + rs6000)
4.1175 + basic_machine=rs6000-ibm
4.1176 + ;;
4.1177 + vax)
4.1178 + basic_machine=vax-dec
4.1179 + ;;
4.1180 + pdp10)
4.1181 + # there are many clones, so DEC is not a safe bet
4.1182 + basic_machine=pdp10-unknown
4.1183 + ;;
4.1184 + pdp11)
4.1185 + basic_machine=pdp11-dec
4.1186 + ;;
4.1187 + we32k)
4.1188 + basic_machine=we32k-att
4.1189 + ;;
4.1190 + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
4.1191 + basic_machine=sh-unknown
4.1192 + ;;
4.1193 + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
4.1194 + basic_machine=sparc-sun
4.1195 + ;;
4.1196 + cydra)
4.1197 + basic_machine=cydra-cydrome
4.1198 + ;;
4.1199 + orion)
4.1200 + basic_machine=orion-highlevel
4.1201 + ;;
4.1202 + orion105)
4.1203 + basic_machine=clipper-highlevel
4.1204 + ;;
4.1205 + mac | mpw | mac-mpw)
4.1206 + basic_machine=m68k-apple
4.1207 + ;;
4.1208 + pmac | pmac-mpw)
4.1209 + basic_machine=powerpc-apple
4.1210 + ;;
4.1211 + *-unknown)
4.1212 + # Make sure to match an already-canonicalized machine name.
4.1213 + ;;
4.1214 + *)
4.1215 + echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
4.1216 + exit 1
4.1217 + ;;
4.1218 +esac
4.1219 +
4.1220 +# Here we canonicalize certain aliases for manufacturers.
4.1221 +case $basic_machine in
4.1222 + *-digital*)
4.1223 + basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
4.1224 + ;;
4.1225 + *-commodore*)
4.1226 + basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
4.1227 + ;;
4.1228 + *)
4.1229 + ;;
4.1230 +esac
4.1231 +
4.1232 +# Decode manufacturer-specific aliases for certain operating systems.
4.1233 +
4.1234 +if [ x"$os" != x"" ]
4.1235 +then
4.1236 +case $os in
4.1237 + # First match some system type aliases
4.1238 + # that might get confused with valid system types.
4.1239 + # -solaris* is a basic system type, with this one exception.
4.1240 + -solaris1 | -solaris1.*)
4.1241 + os=`echo $os | sed -e 's|solaris1|sunos4|'`
4.1242 + ;;
4.1243 + -solaris)
4.1244 + os=-solaris2
4.1245 + ;;
4.1246 + -svr4*)
4.1247 + os=-sysv4
4.1248 + ;;
4.1249 + -unixware*)
4.1250 + os=-sysv4.2uw
4.1251 + ;;
4.1252 + -gnu/linux*)
4.1253 + os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
4.1254 + ;;
4.1255 + # First accept the basic system types.
4.1256 + # The portable systems comes first.
4.1257 + # Each alternative MUST END IN A *, to match a version number.
4.1258 + # -sysv* is not here because it comes later, after sysvr4.
4.1259 + -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
4.1260 + | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
4.1261 + | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
4.1262 + | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
4.1263 + | -aos* \
4.1264 + | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
4.1265 + | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
4.1266 + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
4.1267 + | -openbsd* | -solidbsd* \
4.1268 + | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
4.1269 + | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
4.1270 + | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
4.1271 + | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
4.1272 + | -chorusos* | -chorusrdb* | -cegcc* \
4.1273 + | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
4.1274 + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
4.1275 + | -uxpv* | -beos* | -mpeix* | -udk* \
4.1276 + | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
4.1277 + | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
4.1278 + | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
4.1279 + | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
4.1280 + | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
4.1281 + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
4.1282 + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
4.1283 + # Remember, each alternative MUST END IN *, to match a version number.
4.1284 + ;;
4.1285 + -qnx*)
4.1286 + case $basic_machine in
4.1287 + x86-* | i*86-*)
4.1288 + ;;
4.1289 + *)
4.1290 + os=-nto$os
4.1291 + ;;
4.1292 + esac
4.1293 + ;;
4.1294 + -nto-qnx*)
4.1295 + ;;
4.1296 + -nto*)
4.1297 + os=`echo $os | sed -e 's|nto|nto-qnx|'`
4.1298 + ;;
4.1299 + -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
4.1300 + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
4.1301 + | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
4.1302 + ;;
4.1303 + -mac*)
4.1304 + os=`echo $os | sed -e 's|mac|macos|'`
4.1305 + ;;
4.1306 + -linux-dietlibc)
4.1307 + os=-linux-dietlibc
4.1308 + ;;
4.1309 + -linux*)
4.1310 + os=`echo $os | sed -e 's|linux|linux-gnu|'`
4.1311 + ;;
4.1312 + -sunos5*)
4.1313 + os=`echo $os | sed -e 's|sunos5|solaris2|'`
4.1314 + ;;
4.1315 + -sunos6*)
4.1316 + os=`echo $os | sed -e 's|sunos6|solaris3|'`
4.1317 + ;;
4.1318 + -opened*)
4.1319 + os=-openedition
4.1320 + ;;
4.1321 + -os400*)
4.1322 + os=-os400
4.1323 + ;;
4.1324 + -wince*)
4.1325 + os=-wince
4.1326 + ;;
4.1327 + -osfrose*)
4.1328 + os=-osfrose
4.1329 + ;;
4.1330 + -osf*)
4.1331 + os=-osf
4.1332 + ;;
4.1333 + -utek*)
4.1334 + os=-bsd
4.1335 + ;;
4.1336 + -dynix*)
4.1337 + os=-bsd
4.1338 + ;;
4.1339 + -acis*)
4.1340 + os=-aos
4.1341 + ;;
4.1342 + -atheos*)
4.1343 + os=-atheos
4.1344 + ;;
4.1345 + -syllable*)
4.1346 + os=-syllable
4.1347 + ;;
4.1348 + -386bsd)
4.1349 + os=-bsd
4.1350 + ;;
4.1351 + -ctix* | -uts*)
4.1352 + os=-sysv
4.1353 + ;;
4.1354 + -nova*)
4.1355 + os=-rtmk-nova
4.1356 + ;;
4.1357 + -ns2 )
4.1358 + os=-nextstep2
4.1359 + ;;
4.1360 + -nsk*)
4.1361 + os=-nsk
4.1362 + ;;
4.1363 + # Preserve the version number of sinix5.
4.1364 + -sinix5.*)
4.1365 + os=`echo $os | sed -e 's|sinix|sysv|'`
4.1366 + ;;
4.1367 + -sinix*)
4.1368 + os=-sysv4
4.1369 + ;;
4.1370 + -tpf*)
4.1371 + os=-tpf
4.1372 + ;;
4.1373 + -triton*)
4.1374 + os=-sysv3
4.1375 + ;;
4.1376 + -oss*)
4.1377 + os=-sysv3
4.1378 + ;;
4.1379 + -svr4)
4.1380 + os=-sysv4
4.1381 + ;;
4.1382 + -svr3)
4.1383 + os=-sysv3
4.1384 + ;;
4.1385 + -sysvr4)
4.1386 + os=-sysv4
4.1387 + ;;
4.1388 + # This must come after -sysvr4.
4.1389 + -sysv*)
4.1390 + ;;
4.1391 + -ose*)
4.1392 + os=-ose
4.1393 + ;;
4.1394 + -es1800*)
4.1395 + os=-ose
4.1396 + ;;
4.1397 + -xenix)
4.1398 + os=-xenix
4.1399 + ;;
4.1400 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4.1401 + os=-mint
4.1402 + ;;
4.1403 + -aros*)
4.1404 + os=-aros
4.1405 + ;;
4.1406 + -kaos*)
4.1407 + os=-kaos
4.1408 + ;;
4.1409 + -zvmoe)
4.1410 + os=-zvmoe
4.1411 + ;;
4.1412 + -dicos*)
4.1413 + os=-dicos
4.1414 + ;;
4.1415 + -none)
4.1416 + ;;
4.1417 + *)
4.1418 + # Get rid of the `-' at the beginning of $os.
4.1419 + os=`echo $os | sed 's/[^-]*-//'`
4.1420 + echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
4.1421 + exit 1
4.1422 + ;;
4.1423 +esac
4.1424 +else
4.1425 +
4.1426 +# Here we handle the default operating systems that come with various machines.
4.1427 +# The value should be what the vendor currently ships out the door with their
4.1428 +# machine or put another way, the most popular os provided with the machine.
4.1429 +
4.1430 +# Note that if you're going to try to match "-MANUFACTURER" here (say,
4.1431 +# "-sun"), then you have to tell the case statement up towards the top
4.1432 +# that MANUFACTURER isn't an operating system. Otherwise, code above
4.1433 +# will signal an error saying that MANUFACTURER isn't an operating
4.1434 +# system, and we'll never get to this point.
4.1435 +
4.1436 +case $basic_machine in
4.1437 + score-*)
4.1438 + os=-elf
4.1439 + ;;
4.1440 + spu-*)
4.1441 + os=-elf
4.1442 + ;;
4.1443 + *-acorn)
4.1444 + os=-riscix1.2
4.1445 + ;;
4.1446 + arm*-rebel)
4.1447 + os=-linux
4.1448 + ;;
4.1449 + arm*-semi)
4.1450 + os=-aout
4.1451 + ;;
4.1452 + c4x-* | tic4x-*)
4.1453 + os=-coff
4.1454 + ;;
4.1455 + # This must come before the *-dec entry.
4.1456 + pdp10-*)
4.1457 + os=-tops20
4.1458 + ;;
4.1459 + pdp11-*)
4.1460 + os=-none
4.1461 + ;;
4.1462 + *-dec | vax-*)
4.1463 + os=-ultrix4.2
4.1464 + ;;
4.1465 + m68*-apollo)
4.1466 + os=-domain
4.1467 + ;;
4.1468 + i386-sun)
4.1469 + os=-sunos4.0.2
4.1470 + ;;
4.1471 + m68000-sun)
4.1472 + os=-sunos3
4.1473 + # This also exists in the configure program, but was not the
4.1474 + # default.
4.1475 + # os=-sunos4
4.1476 + ;;
4.1477 + m68*-cisco)
4.1478 + os=-aout
4.1479 + ;;
4.1480 + mep-*)
4.1481 + os=-elf
4.1482 + ;;
4.1483 + mips*-cisco)
4.1484 + os=-elf
4.1485 + ;;
4.1486 + mips*-*)
4.1487 + os=-elf
4.1488 + ;;
4.1489 + or32-*)
4.1490 + os=-coff
4.1491 + ;;
4.1492 + *-tti) # must be before sparc entry or we get the wrong os.
4.1493 + os=-sysv3
4.1494 + ;;
4.1495 + sparc-* | *-sun)
4.1496 + os=-sunos4.1.1
4.1497 + ;;
4.1498 + *-be)
4.1499 + os=-beos
4.1500 + ;;
4.1501 + *-haiku)
4.1502 + os=-haiku
4.1503 + ;;
4.1504 + *-ibm)
4.1505 + os=-aix
4.1506 + ;;
4.1507 + *-knuth)
4.1508 + os=-mmixware
4.1509 + ;;
4.1510 + *-wec)
4.1511 + os=-proelf
4.1512 + ;;
4.1513 + *-winbond)
4.1514 + os=-proelf
4.1515 + ;;
4.1516 + *-oki)
4.1517 + os=-proelf
4.1518 + ;;
4.1519 + *-hp)
4.1520 + os=-hpux
4.1521 + ;;
4.1522 + *-hitachi)
4.1523 + os=-hiux
4.1524 + ;;
4.1525 + i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
4.1526 + os=-sysv
4.1527 + ;;
4.1528 + *-cbm)
4.1529 + os=-amigaos
4.1530 + ;;
4.1531 + *-dg)
4.1532 + os=-dgux
4.1533 + ;;
4.1534 + *-dolphin)
4.1535 + os=-sysv3
4.1536 + ;;
4.1537 + m68k-ccur)
4.1538 + os=-rtu
4.1539 + ;;
4.1540 + m88k-omron*)
4.1541 + os=-luna
4.1542 + ;;
4.1543 + *-next )
4.1544 + os=-nextstep
4.1545 + ;;
4.1546 + *-sequent)
4.1547 + os=-ptx
4.1548 + ;;
4.1549 + *-crds)
4.1550 + os=-unos
4.1551 + ;;
4.1552 + *-ns)
4.1553 + os=-genix
4.1554 + ;;
4.1555 + i370-*)
4.1556 + os=-mvs
4.1557 + ;;
4.1558 + *-next)
4.1559 + os=-nextstep3
4.1560 + ;;
4.1561 + *-gould)
4.1562 + os=-sysv
4.1563 + ;;
4.1564 + *-highlevel)
4.1565 + os=-bsd
4.1566 + ;;
4.1567 + *-encore)
4.1568 + os=-bsd
4.1569 + ;;
4.1570 + *-sgi)
4.1571 + os=-irix
4.1572 + ;;
4.1573 + *-siemens)
4.1574 + os=-sysv4
4.1575 + ;;
4.1576 + *-masscomp)
4.1577 + os=-rtu
4.1578 + ;;
4.1579 + f30[01]-fujitsu | f700-fujitsu)
4.1580 + os=-uxpv
4.1581 + ;;
4.1582 + *-rom68k)
4.1583 + os=-coff
4.1584 + ;;
4.1585 + *-*bug)
4.1586 + os=-coff
4.1587 + ;;
4.1588 + *-apple)
4.1589 + os=-macos
4.1590 + ;;
4.1591 + *-atari*)
4.1592 + os=-mint
4.1593 + ;;
4.1594 + *)
4.1595 + os=-none
4.1596 + ;;
4.1597 +esac
4.1598 +fi
4.1599 +
4.1600 +# Here we handle the case where we know the os, and the CPU type, but not the
4.1601 +# manufacturer. We pick the logical manufacturer.
4.1602 +vendor=unknown
4.1603 +case $basic_machine in
4.1604 + *-unknown)
4.1605 + case $os in
4.1606 + -riscix*)
4.1607 + vendor=acorn
4.1608 + ;;
4.1609 + -sunos*)
4.1610 + vendor=sun
4.1611 + ;;
4.1612 + -aix*)
4.1613 + vendor=ibm
4.1614 + ;;
4.1615 + -beos*)
4.1616 + vendor=be
4.1617 + ;;
4.1618 + -hpux*)
4.1619 + vendor=hp
4.1620 + ;;
4.1621 + -mpeix*)
4.1622 + vendor=hp
4.1623 + ;;
4.1624 + -hiux*)
4.1625 + vendor=hitachi
4.1626 + ;;
4.1627 + -unos*)
4.1628 + vendor=crds
4.1629 + ;;
4.1630 + -dgux*)
4.1631 + vendor=dg
4.1632 + ;;
4.1633 + -luna*)
4.1634 + vendor=omron
4.1635 + ;;
4.1636 + -genix*)
4.1637 + vendor=ns
4.1638 + ;;
4.1639 + -mvs* | -opened*)
4.1640 + vendor=ibm
4.1641 + ;;
4.1642 + -os400*)
4.1643 + vendor=ibm
4.1644 + ;;
4.1645 + -ptx*)
4.1646 + vendor=sequent
4.1647 + ;;
4.1648 + -tpf*)
4.1649 + vendor=ibm
4.1650 + ;;
4.1651 + -vxsim* | -vxworks* | -windiss*)
4.1652 + vendor=wrs
4.1653 + ;;
4.1654 + -aux*)
4.1655 + vendor=apple
4.1656 + ;;
4.1657 + -hms*)
4.1658 + vendor=hitachi
4.1659 + ;;
4.1660 + -mpw* | -macos*)
4.1661 + vendor=apple
4.1662 + ;;
4.1663 + -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
4.1664 + vendor=atari
4.1665 + ;;
4.1666 + -vos*)
4.1667 + vendor=stratus
4.1668 + ;;
4.1669 + esac
4.1670 + basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
4.1671 + ;;
4.1672 +esac
4.1673 +
4.1674 +echo $basic_machine$os
4.1675 +exit
4.1676 +
4.1677 +# Local variables:
4.1678 +# eval: (add-hook 'write-file-hooks 'time-stamp)
4.1679 +# time-stamp-start: "timestamp='"
4.1680 +# time-stamp-format: "%:y-%02m-%02d"
4.1681 +# time-stamp-end: "'"
4.1682 +# End:
5.1 --- a/scripts/functions Tue Dec 16 18:03:28 2008 +0000
5.2 +++ b/scripts/functions Tue Dec 16 18:12:34 2008 +0000
5.3 @@ -617,8 +617,8 @@
5.4 if [ "${CT_OVERIDE_CONFIG_GUESS_SUB}" = "y" ]; then
5.5 CT_DoLog ALL "Overiding config.guess and config.sub"
5.6 for cfg in config_guess config_sub; do
5.7 - eval ${cfg}="${CT_LIB_DIR}/tools/${cfg/_/.}"
5.8 - [ -e "${CT_TOP_DIR}/tools/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/tools/${cfg/_/.}"
5.9 + eval ${cfg}="${CT_LIB_DIR}/scripts/${cfg/_/.}"
5.10 + [ -e "${CT_TOP_DIR}/scripts/${cfg/_/.}" ] && eval ${cfg}="${CT_TOP_DIR}/scripts/${cfg/_/.}"
5.11 # Can't use CT_DoExecLog because of the '{} \;' to be passed un-mangled to find
5.12 find . -type f -name "${cfg/_/.}" -exec cp -v "${!cfg}" {} \; |CT_DoLog ALL
5.13 done
5.14 @@ -630,18 +630,18 @@
5.15 # Two wrappers to call config.(guess|sub) either from CT_TOP_DIR or CT_LIB_DIR.
5.16 # Those from CT_TOP_DIR, if they exist, will be be more recent than those from CT_LIB_DIR.
5.17 CT_DoConfigGuess() {
5.18 - if [ -x "${CT_TOP_DIR}/tools/config.guess" ]; then
5.19 - "${CT_TOP_DIR}/tools/config.guess"
5.20 + if [ -x "${CT_TOP_DIR}/scripts/config.guess" ]; then
5.21 + "${CT_TOP_DIR}/scripts/config.guess"
5.22 else
5.23 - "${CT_LIB_DIR}/tools/config.guess"
5.24 + "${CT_LIB_DIR}/scripts/config.guess"
5.25 fi
5.26 }
5.27
5.28 CT_DoConfigSub() {
5.29 - if [ -x "${CT_TOP_DIR}/tools/config.sub" ]; then
5.30 - "${CT_TOP_DIR}/tools/config.sub" "$@"
5.31 + if [ -x "${CT_TOP_DIR}/scripts/config.sub" ]; then
5.32 + "${CT_TOP_DIR}/scripts/config.sub" "$@"
5.33 else
5.34 - "${CT_LIB_DIR}/tools/config.sub" "$@"
5.35 + "${CT_LIB_DIR}/scripts/config.sub" "$@"
5.36 fi
5.37 }
5.38
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/scripts/scripts.mk Tue Dec 16 18:12:34 2008 +0000
6.3 @@ -0,0 +1,55 @@
6.4 +# Makefile for the scripts/ sub-directory
6.5 +
6.6 +# Here, we can update the config.* scripts.
6.7 +# If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those
6.8 +# scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those
6.9 +# scripts are downloaded only for use in CT_TOP_DIR.
6.10 +
6.11 +# ----------------------------------------------------------
6.12 +# The tools help entry
6.13 +
6.14 +help-distrib::
6.15 + @echo ' updatetools - Update the config tools'
6.16 +
6.17 +# ----------------------------------------------------------
6.18 +# Where to get tools from, and where to store them into
6.19 +# The tools are: config.guess and config.sub
6.20 +
6.21 +CONFIG_SUB_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
6.22 +CONFIG_SUB_DEST=scripts/config.sub
6.23 +CONFIG_GUESS_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
6.24 +CONFIG_GUESS_DEST=scripts/config.guess
6.25 +
6.26 +PHONY += updatetools
6.27 +updatetools: $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST)
6.28 +
6.29 +# ----------------------------------------------------------
6.30 +# How to retrieve the tools
6.31 +
6.32 +wget_opt=-o /dev/null
6.33 +ifeq ($(strip $(V)),2)
6.34 + wget_opt=
6.35 +endif
6.36 +
6.37 +PHONY += scripts
6.38 +scripts:
6.39 + $(SILENT)mkdir -p scripts
6.40 +
6.41 +FROCE += $(CONFIG_SUB_DEST)
6.42 +$(CONFIG_SUB_DEST): scripts
6.43 + @$(ECHO) ' WGET $@'
6.44 + $(SILENT)wget $(wget_opt) -O $@ $(CONFIG_SUB_SRC)
6.45 + $(SILENT)chmod u+rwx,go+rx-w $@
6.46 +
6.47 +FORCE += $(CONFIG_GUESS_DEST)
6.48 +$(CONFIG_GUESS_DEST): scripts
6.49 + @$(ECHO) ' WGET $@'
6.50 + $(SILENT)wget $(wget_opt) -O $@ $(CONFIG_GUESS_SRC)
6.51 + $(SILENT)chmod u+rwx,go+rx-w $@
6.52 +
6.53 +# ----------------------------------------------------------
6.54 +# Clean up the mess
6.55 +
6.56 +distclean::
6.57 + @$(ECHO) " CLEAN scripts"
6.58 + $(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/scripts
7.1 --- a/tools/config.guess Tue Dec 16 18:03:28 2008 +0000
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,1544 +0,0 @@
7.4 -#! /bin/sh
7.5 -# Attempt to guess a canonical system name.
7.6 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
7.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
7.8 -# Free Software Foundation, Inc.
7.9 -
7.10 -timestamp='2008-12-11'
7.11 -
7.12 -# This file is free software; you can redistribute it and/or modify it
7.13 -# under the terms of the GNU General Public License as published by
7.14 -# the Free Software Foundation; either version 2 of the License, or
7.15 -# (at your option) any later version.
7.16 -#
7.17 -# This program is distributed in the hope that it will be useful, but
7.18 -# WITHOUT ANY WARRANTY; without even the implied warranty of
7.19 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
7.20 -# General Public License for more details.
7.21 -#
7.22 -# You should have received a copy of the GNU General Public License
7.23 -# along with this program; if not, write to the Free Software
7.24 -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
7.25 -# 02110-1301, USA.
7.26 -#
7.27 -# As a special exception to the GNU General Public License, if you
7.28 -# distribute this file as part of a program that contains a
7.29 -# configuration script generated by Autoconf, you may include it under
7.30 -# the same distribution terms that you use for the rest of that program.
7.31 -
7.32 -
7.33 -# Originally written by Per Bothner <per@bothner.com>.
7.34 -# Please send patches to <config-patches@gnu.org>. Submit a context
7.35 -# diff and a properly formatted ChangeLog entry.
7.36 -#
7.37 -# This script attempts to guess a canonical system name similar to
7.38 -# config.sub. If it succeeds, it prints the system name on stdout, and
7.39 -# exits with 0. Otherwise, it exits with 1.
7.40 -#
7.41 -# The plan is that this can be called by configure scripts if you
7.42 -# don't specify an explicit build system type.
7.43 -
7.44 -me=`echo "$0" | sed -e 's,.*/,,'`
7.45 -
7.46 -usage="\
7.47 -Usage: $0 [OPTION]
7.48 -
7.49 -Output the configuration name of the system \`$me' is run on.
7.50 -
7.51 -Operation modes:
7.52 - -h, --help print this help, then exit
7.53 - -t, --time-stamp print date of last modification, then exit
7.54 - -v, --version print version number, then exit
7.55 -
7.56 -Report bugs and patches to <config-patches@gnu.org>."
7.57 -
7.58 -version="\
7.59 -GNU config.guess ($timestamp)
7.60 -
7.61 -Originally written by Per Bothner.
7.62 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
7.63 -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7.64 -
7.65 -This is free software; see the source for copying conditions. There is NO
7.66 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
7.67 -
7.68 -help="
7.69 -Try \`$me --help' for more information."
7.70 -
7.71 -# Parse command line
7.72 -while test $# -gt 0 ; do
7.73 - case $1 in
7.74 - --time-stamp | --time* | -t )
7.75 - echo "$timestamp" ; exit ;;
7.76 - --version | -v )
7.77 - echo "$version" ; exit ;;
7.78 - --help | --h* | -h )
7.79 - echo "$usage"; exit ;;
7.80 - -- ) # Stop option processing
7.81 - shift; break ;;
7.82 - - ) # Use stdin as input.
7.83 - break ;;
7.84 - -* )
7.85 - echo "$me: invalid option $1$help" >&2
7.86 - exit 1 ;;
7.87 - * )
7.88 - break ;;
7.89 - esac
7.90 -done
7.91 -
7.92 -if test $# != 0; then
7.93 - echo "$me: too many arguments$help" >&2
7.94 - exit 1
7.95 -fi
7.96 -
7.97 -trap 'exit 1' 1 2 15
7.98 -
7.99 -# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
7.100 -# compiler to aid in system detection is discouraged as it requires
7.101 -# temporary files to be created and, as you can see below, it is a
7.102 -# headache to deal with in a portable fashion.
7.103 -
7.104 -# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
7.105 -# use `HOST_CC' if defined, but it is deprecated.
7.106 -
7.107 -# Portable tmp directory creation inspired by the Autoconf team.
7.108 -
7.109 -set_cc_for_build='
7.110 -trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
7.111 -trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
7.112 -: ${TMPDIR=/tmp} ;
7.113 - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
7.114 - { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
7.115 - { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
7.116 - { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
7.117 -dummy=$tmp/dummy ;
7.118 -tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
7.119 -case $CC_FOR_BUILD,$HOST_CC,$CC in
7.120 - ,,) echo "int x;" > $dummy.c ;
7.121 - for c in cc gcc c89 c99 ; do
7.122 - if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
7.123 - CC_FOR_BUILD="$c"; break ;
7.124 - fi ;
7.125 - done ;
7.126 - if test x"$CC_FOR_BUILD" = x ; then
7.127 - CC_FOR_BUILD=no_compiler_found ;
7.128 - fi
7.129 - ;;
7.130 - ,,*) CC_FOR_BUILD=$CC ;;
7.131 - ,*,*) CC_FOR_BUILD=$HOST_CC ;;
7.132 -esac ; set_cc_for_build= ;'
7.133 -
7.134 -# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
7.135 -# (ghazi@noc.rutgers.edu 1994-08-24)
7.136 -if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
7.137 - PATH=$PATH:/.attbin ; export PATH
7.138 -fi
7.139 -
7.140 -UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
7.141 -UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
7.142 -UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
7.143 -UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
7.144 -
7.145 -# Note: order is significant - the case branches are not exclusive.
7.146 -
7.147 -case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
7.148 - *:NetBSD:*:*)
7.149 - # NetBSD (nbsd) targets should (where applicable) match one or
7.150 - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
7.151 - # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
7.152 - # switched to ELF, *-*-netbsd* would select the old
7.153 - # object file format. This provides both forward
7.154 - # compatibility and a consistent mechanism for selecting the
7.155 - # object file format.
7.156 - #
7.157 - # Note: NetBSD doesn't particularly care about the vendor
7.158 - # portion of the name. We always set it to "unknown".
7.159 - sysctl="sysctl -n hw.machine_arch"
7.160 - UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
7.161 - /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
7.162 - case "${UNAME_MACHINE_ARCH}" in
7.163 - armeb) machine=armeb-unknown ;;
7.164 - arm*) machine=arm-unknown ;;
7.165 - sh3el) machine=shl-unknown ;;
7.166 - sh3eb) machine=sh-unknown ;;
7.167 - sh5el) machine=sh5le-unknown ;;
7.168 - *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
7.169 - esac
7.170 - # The Operating System including object format, if it has switched
7.171 - # to ELF recently, or will in the future.
7.172 - case "${UNAME_MACHINE_ARCH}" in
7.173 - arm*|i386|m68k|ns32k|sh3*|sparc|vax)
7.174 - eval $set_cc_for_build
7.175 - if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
7.176 - | grep __ELF__ >/dev/null
7.177 - then
7.178 - # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
7.179 - # Return netbsd for either. FIX?
7.180 - os=netbsd
7.181 - else
7.182 - os=netbsdelf
7.183 - fi
7.184 - ;;
7.185 - *)
7.186 - os=netbsd
7.187 - ;;
7.188 - esac
7.189 - # The OS release
7.190 - # Debian GNU/NetBSD machines have a different userland, and
7.191 - # thus, need a distinct triplet. However, they do not need
7.192 - # kernel version information, so it can be replaced with a
7.193 - # suitable tag, in the style of linux-gnu.
7.194 - case "${UNAME_VERSION}" in
7.195 - Debian*)
7.196 - release='-gnu'
7.197 - ;;
7.198 - *)
7.199 - release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
7.200 - ;;
7.201 - esac
7.202 - # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
7.203 - # contains redundant information, the shorter form:
7.204 - # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
7.205 - echo "${machine}-${os}${release}"
7.206 - exit ;;
7.207 - *:OpenBSD:*:*)
7.208 - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
7.209 - echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
7.210 - exit ;;
7.211 - *:ekkoBSD:*:*)
7.212 - echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
7.213 - exit ;;
7.214 - *:SolidBSD:*:*)
7.215 - echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
7.216 - exit ;;
7.217 - macppc:MirBSD:*:*)
7.218 - echo powerpc-unknown-mirbsd${UNAME_RELEASE}
7.219 - exit ;;
7.220 - *:MirBSD:*:*)
7.221 - echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
7.222 - exit ;;
7.223 - alpha:OSF1:*:*)
7.224 - case $UNAME_RELEASE in
7.225 - *4.0)
7.226 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
7.227 - ;;
7.228 - *5.*)
7.229 - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
7.230 - ;;
7.231 - esac
7.232 - # According to Compaq, /usr/sbin/psrinfo has been available on
7.233 - # OSF/1 and Tru64 systems produced since 1995. I hope that
7.234 - # covers most systems running today. This code pipes the CPU
7.235 - # types through head -n 1, so we only detect the type of CPU 0.
7.236 - ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
7.237 - case "$ALPHA_CPU_TYPE" in
7.238 - "EV4 (21064)")
7.239 - UNAME_MACHINE="alpha" ;;
7.240 - "EV4.5 (21064)")
7.241 - UNAME_MACHINE="alpha" ;;
7.242 - "LCA4 (21066/21068)")
7.243 - UNAME_MACHINE="alpha" ;;
7.244 - "EV5 (21164)")
7.245 - UNAME_MACHINE="alphaev5" ;;
7.246 - "EV5.6 (21164A)")
7.247 - UNAME_MACHINE="alphaev56" ;;
7.248 - "EV5.6 (21164PC)")
7.249 - UNAME_MACHINE="alphapca56" ;;
7.250 - "EV5.7 (21164PC)")
7.251 - UNAME_MACHINE="alphapca57" ;;
7.252 - "EV6 (21264)")
7.253 - UNAME_MACHINE="alphaev6" ;;
7.254 - "EV6.7 (21264A)")
7.255 - UNAME_MACHINE="alphaev67" ;;
7.256 - "EV6.8CB (21264C)")
7.257 - UNAME_MACHINE="alphaev68" ;;
7.258 - "EV6.8AL (21264B)")
7.259 - UNAME_MACHINE="alphaev68" ;;
7.260 - "EV6.8CX (21264D)")
7.261 - UNAME_MACHINE="alphaev68" ;;
7.262 - "EV6.9A (21264/EV69A)")
7.263 - UNAME_MACHINE="alphaev69" ;;
7.264 - "EV7 (21364)")
7.265 - UNAME_MACHINE="alphaev7" ;;
7.266 - "EV7.9 (21364A)")
7.267 - UNAME_MACHINE="alphaev79" ;;
7.268 - esac
7.269 - # A Pn.n version is a patched version.
7.270 - # A Vn.n version is a released version.
7.271 - # A Tn.n version is a released field test version.
7.272 - # A Xn.n version is an unreleased experimental baselevel.
7.273 - # 1.2 uses "1.2" for uname -r.
7.274 - echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7.275 - exit ;;
7.276 - Alpha\ *:Windows_NT*:*)
7.277 - # How do we know it's Interix rather than the generic POSIX subsystem?
7.278 - # Should we change UNAME_MACHINE based on the output of uname instead
7.279 - # of the specific Alpha model?
7.280 - echo alpha-pc-interix
7.281 - exit ;;
7.282 - 21064:Windows_NT:50:3)
7.283 - echo alpha-dec-winnt3.5
7.284 - exit ;;
7.285 - Amiga*:UNIX_System_V:4.0:*)
7.286 - echo m68k-unknown-sysv4
7.287 - exit ;;
7.288 - *:[Aa]miga[Oo][Ss]:*:*)
7.289 - echo ${UNAME_MACHINE}-unknown-amigaos
7.290 - exit ;;
7.291 - *:[Mm]orph[Oo][Ss]:*:*)
7.292 - echo ${UNAME_MACHINE}-unknown-morphos
7.293 - exit ;;
7.294 - *:OS/390:*:*)
7.295 - echo i370-ibm-openedition
7.296 - exit ;;
7.297 - *:z/VM:*:*)
7.298 - echo s390-ibm-zvmoe
7.299 - exit ;;
7.300 - *:OS400:*:*)
7.301 - echo powerpc-ibm-os400
7.302 - exit ;;
7.303 - arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
7.304 - echo arm-acorn-riscix${UNAME_RELEASE}
7.305 - exit ;;
7.306 - arm:riscos:*:*|arm:RISCOS:*:*)
7.307 - echo arm-unknown-riscos
7.308 - exit ;;
7.309 - SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
7.310 - echo hppa1.1-hitachi-hiuxmpp
7.311 - exit ;;
7.312 - Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
7.313 - # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
7.314 - if test "`(/bin/universe) 2>/dev/null`" = att ; then
7.315 - echo pyramid-pyramid-sysv3
7.316 - else
7.317 - echo pyramid-pyramid-bsd
7.318 - fi
7.319 - exit ;;
7.320 - NILE*:*:*:dcosx)
7.321 - echo pyramid-pyramid-svr4
7.322 - exit ;;
7.323 - DRS?6000:unix:4.0:6*)
7.324 - echo sparc-icl-nx6
7.325 - exit ;;
7.326 - DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
7.327 - case `/usr/bin/uname -p` in
7.328 - sparc) echo sparc-icl-nx7; exit ;;
7.329 - esac ;;
7.330 - sun4H:SunOS:5.*:*)
7.331 - echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7.332 - exit ;;
7.333 - sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
7.334 - echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7.335 - exit ;;
7.336 - i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
7.337 - eval $set_cc_for_build
7.338 - SUN_ARCH="i386"
7.339 - # If there is a compiler, see if it is configured for 64-bit objects.
7.340 - # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
7.341 - # This test works for both compilers. Note that the full path to
7.342 - # /usr/bin/echo is necessary to work around the shell builtins for
7.343 - # echo that do not handle newlines.
7.344 - if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
7.345 - if /usr/bin/echo '\n#ifdef __amd64\nIS_64BIT_ARCH\n#endif' | \
7.346 - (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
7.347 - grep IS_64BIT_ARCH >/dev/null
7.348 - then
7.349 - SUN_ARCH="x86_64"
7.350 - fi
7.351 - fi
7.352 - echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7.353 - exit ;;
7.354 - sun4*:SunOS:6*:*)
7.355 - # According to config.sub, this is the proper way to canonicalize
7.356 - # SunOS6. Hard to guess exactly what SunOS6 will be like, but
7.357 - # it's likely to be more like Solaris than SunOS4.
7.358 - echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7.359 - exit ;;
7.360 - sun4*:SunOS:*:*)
7.361 - case "`/usr/bin/arch -k`" in
7.362 - Series*|S4*)
7.363 - UNAME_RELEASE=`uname -v`
7.364 - ;;
7.365 - esac
7.366 - # Japanese Language versions have a version number like `4.1.3-JL'.
7.367 - echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
7.368 - exit ;;
7.369 - sun3*:SunOS:*:*)
7.370 - echo m68k-sun-sunos${UNAME_RELEASE}
7.371 - exit ;;
7.372 - sun*:*:4.2BSD:*)
7.373 - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
7.374 - test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
7.375 - case "`/bin/arch`" in
7.376 - sun3)
7.377 - echo m68k-sun-sunos${UNAME_RELEASE}
7.378 - ;;
7.379 - sun4)
7.380 - echo sparc-sun-sunos${UNAME_RELEASE}
7.381 - ;;
7.382 - esac
7.383 - exit ;;
7.384 - aushp:SunOS:*:*)
7.385 - echo sparc-auspex-sunos${UNAME_RELEASE}
7.386 - exit ;;
7.387 - # The situation for MiNT is a little confusing. The machine name
7.388 - # can be virtually everything (everything which is not
7.389 - # "atarist" or "atariste" at least should have a processor
7.390 - # > m68000). The system name ranges from "MiNT" over "FreeMiNT"
7.391 - # to the lowercase version "mint" (or "freemint"). Finally
7.392 - # the system name "TOS" denotes a system which is actually not
7.393 - # MiNT. But MiNT is downward compatible to TOS, so this should
7.394 - # be no problem.
7.395 - atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
7.396 - echo m68k-atari-mint${UNAME_RELEASE}
7.397 - exit ;;
7.398 - atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
7.399 - echo m68k-atari-mint${UNAME_RELEASE}
7.400 - exit ;;
7.401 - *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
7.402 - echo m68k-atari-mint${UNAME_RELEASE}
7.403 - exit ;;
7.404 - milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
7.405 - echo m68k-milan-mint${UNAME_RELEASE}
7.406 - exit ;;
7.407 - hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
7.408 - echo m68k-hades-mint${UNAME_RELEASE}
7.409 - exit ;;
7.410 - *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
7.411 - echo m68k-unknown-mint${UNAME_RELEASE}
7.412 - exit ;;
7.413 - m68k:machten:*:*)
7.414 - echo m68k-apple-machten${UNAME_RELEASE}
7.415 - exit ;;
7.416 - powerpc:machten:*:*)
7.417 - echo powerpc-apple-machten${UNAME_RELEASE}
7.418 - exit ;;
7.419 - RISC*:Mach:*:*)
7.420 - echo mips-dec-mach_bsd4.3
7.421 - exit ;;
7.422 - RISC*:ULTRIX:*:*)
7.423 - echo mips-dec-ultrix${UNAME_RELEASE}
7.424 - exit ;;
7.425 - VAX*:ULTRIX*:*:*)
7.426 - echo vax-dec-ultrix${UNAME_RELEASE}
7.427 - exit ;;
7.428 - 2020:CLIX:*:* | 2430:CLIX:*:*)
7.429 - echo clipper-intergraph-clix${UNAME_RELEASE}
7.430 - exit ;;
7.431 - mips:*:*:UMIPS | mips:*:*:RISCos)
7.432 - eval $set_cc_for_build
7.433 - sed 's/^ //' << EOF >$dummy.c
7.434 -#ifdef __cplusplus
7.435 -#include <stdio.h> /* for printf() prototype */
7.436 - int main (int argc, char *argv[]) {
7.437 -#else
7.438 - int main (argc, argv) int argc; char *argv[]; {
7.439 -#endif
7.440 - #if defined (host_mips) && defined (MIPSEB)
7.441 - #if defined (SYSTYPE_SYSV)
7.442 - printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
7.443 - #endif
7.444 - #if defined (SYSTYPE_SVR4)
7.445 - printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
7.446 - #endif
7.447 - #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
7.448 - printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
7.449 - #endif
7.450 - #endif
7.451 - exit (-1);
7.452 - }
7.453 -EOF
7.454 - $CC_FOR_BUILD -o $dummy $dummy.c &&
7.455 - dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
7.456 - SYSTEM_NAME=`$dummy $dummyarg` &&
7.457 - { echo "$SYSTEM_NAME"; exit; }
7.458 - echo mips-mips-riscos${UNAME_RELEASE}
7.459 - exit ;;
7.460 - Motorola:PowerMAX_OS:*:*)
7.461 - echo powerpc-motorola-powermax
7.462 - exit ;;
7.463 - Motorola:*:4.3:PL8-*)
7.464 - echo powerpc-harris-powermax
7.465 - exit ;;
7.466 - Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
7.467 - echo powerpc-harris-powermax
7.468 - exit ;;
7.469 - Night_Hawk:Power_UNIX:*:*)
7.470 - echo powerpc-harris-powerunix
7.471 - exit ;;
7.472 - m88k:CX/UX:7*:*)
7.473 - echo m88k-harris-cxux7
7.474 - exit ;;
7.475 - m88k:*:4*:R4*)
7.476 - echo m88k-motorola-sysv4
7.477 - exit ;;
7.478 - m88k:*:3*:R3*)
7.479 - echo m88k-motorola-sysv3
7.480 - exit ;;
7.481 - AViiON:dgux:*:*)
7.482 - # DG/UX returns AViiON for all architectures
7.483 - UNAME_PROCESSOR=`/usr/bin/uname -p`
7.484 - if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
7.485 - then
7.486 - if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
7.487 - [ ${TARGET_BINARY_INTERFACE}x = x ]
7.488 - then
7.489 - echo m88k-dg-dgux${UNAME_RELEASE}
7.490 - else
7.491 - echo m88k-dg-dguxbcs${UNAME_RELEASE}
7.492 - fi
7.493 - else
7.494 - echo i586-dg-dgux${UNAME_RELEASE}
7.495 - fi
7.496 - exit ;;
7.497 - M88*:DolphinOS:*:*) # DolphinOS (SVR3)
7.498 - echo m88k-dolphin-sysv3
7.499 - exit ;;
7.500 - M88*:*:R3*:*)
7.501 - # Delta 88k system running SVR3
7.502 - echo m88k-motorola-sysv3
7.503 - exit ;;
7.504 - XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
7.505 - echo m88k-tektronix-sysv3
7.506 - exit ;;
7.507 - Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
7.508 - echo m68k-tektronix-bsd
7.509 - exit ;;
7.510 - *:IRIX*:*:*)
7.511 - echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
7.512 - exit ;;
7.513 - ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
7.514 - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
7.515 - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
7.516 - i*86:AIX:*:*)
7.517 - echo i386-ibm-aix
7.518 - exit ;;
7.519 - ia64:AIX:*:*)
7.520 - if [ -x /usr/bin/oslevel ] ; then
7.521 - IBM_REV=`/usr/bin/oslevel`
7.522 - else
7.523 - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7.524 - fi
7.525 - echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
7.526 - exit ;;
7.527 - *:AIX:2:3)
7.528 - if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
7.529 - eval $set_cc_for_build
7.530 - sed 's/^ //' << EOF >$dummy.c
7.531 - #include <sys/systemcfg.h>
7.532 -
7.533 - main()
7.534 - {
7.535 - if (!__power_pc())
7.536 - exit(1);
7.537 - puts("powerpc-ibm-aix3.2.5");
7.538 - exit(0);
7.539 - }
7.540 -EOF
7.541 - if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
7.542 - then
7.543 - echo "$SYSTEM_NAME"
7.544 - else
7.545 - echo rs6000-ibm-aix3.2.5
7.546 - fi
7.547 - elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
7.548 - echo rs6000-ibm-aix3.2.4
7.549 - else
7.550 - echo rs6000-ibm-aix3.2
7.551 - fi
7.552 - exit ;;
7.553 - *:AIX:*:[456])
7.554 - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
7.555 - if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
7.556 - IBM_ARCH=rs6000
7.557 - else
7.558 - IBM_ARCH=powerpc
7.559 - fi
7.560 - if [ -x /usr/bin/oslevel ] ; then
7.561 - IBM_REV=`/usr/bin/oslevel`
7.562 - else
7.563 - IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
7.564 - fi
7.565 - echo ${IBM_ARCH}-ibm-aix${IBM_REV}
7.566 - exit ;;
7.567 - *:AIX:*:*)
7.568 - echo rs6000-ibm-aix
7.569 - exit ;;
7.570 - ibmrt:4.4BSD:*|romp-ibm:BSD:*)
7.571 - echo romp-ibm-bsd4.4
7.572 - exit ;;
7.573 - ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
7.574 - echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
7.575 - exit ;; # report: romp-ibm BSD 4.3
7.576 - *:BOSX:*:*)
7.577 - echo rs6000-bull-bosx
7.578 - exit ;;
7.579 - DPX/2?00:B.O.S.:*:*)
7.580 - echo m68k-bull-sysv3
7.581 - exit ;;
7.582 - 9000/[34]??:4.3bsd:1.*:*)
7.583 - echo m68k-hp-bsd
7.584 - exit ;;
7.585 - hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
7.586 - echo m68k-hp-bsd4.4
7.587 - exit ;;
7.588 - 9000/[34678]??:HP-UX:*:*)
7.589 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7.590 - case "${UNAME_MACHINE}" in
7.591 - 9000/31? ) HP_ARCH=m68000 ;;
7.592 - 9000/[34]?? ) HP_ARCH=m68k ;;
7.593 - 9000/[678][0-9][0-9])
7.594 - if [ -x /usr/bin/getconf ]; then
7.595 - sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
7.596 - sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
7.597 - case "${sc_cpu_version}" in
7.598 - 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
7.599 - 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
7.600 - 532) # CPU_PA_RISC2_0
7.601 - case "${sc_kernel_bits}" in
7.602 - 32) HP_ARCH="hppa2.0n" ;;
7.603 - 64) HP_ARCH="hppa2.0w" ;;
7.604 - '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
7.605 - esac ;;
7.606 - esac
7.607 - fi
7.608 - if [ "${HP_ARCH}" = "" ]; then
7.609 - eval $set_cc_for_build
7.610 - sed 's/^ //' << EOF >$dummy.c
7.611 -
7.612 - #define _HPUX_SOURCE
7.613 - #include <stdlib.h>
7.614 - #include <unistd.h>
7.615 -
7.616 - int main ()
7.617 - {
7.618 - #if defined(_SC_KERNEL_BITS)
7.619 - long bits = sysconf(_SC_KERNEL_BITS);
7.620 - #endif
7.621 - long cpu = sysconf (_SC_CPU_VERSION);
7.622 -
7.623 - switch (cpu)
7.624 - {
7.625 - case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
7.626 - case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
7.627 - case CPU_PA_RISC2_0:
7.628 - #if defined(_SC_KERNEL_BITS)
7.629 - switch (bits)
7.630 - {
7.631 - case 64: puts ("hppa2.0w"); break;
7.632 - case 32: puts ("hppa2.0n"); break;
7.633 - default: puts ("hppa2.0"); break;
7.634 - } break;
7.635 - #else /* !defined(_SC_KERNEL_BITS) */
7.636 - puts ("hppa2.0"); break;
7.637 - #endif
7.638 - default: puts ("hppa1.0"); break;
7.639 - }
7.640 - exit (0);
7.641 - }
7.642 -EOF
7.643 - (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
7.644 - test -z "$HP_ARCH" && HP_ARCH=hppa
7.645 - fi ;;
7.646 - esac
7.647 - if [ ${HP_ARCH} = "hppa2.0w" ]
7.648 - then
7.649 - eval $set_cc_for_build
7.650 -
7.651 - # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
7.652 - # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
7.653 - # generating 64-bit code. GNU and HP use different nomenclature:
7.654 - #
7.655 - # $ CC_FOR_BUILD=cc ./config.guess
7.656 - # => hppa2.0w-hp-hpux11.23
7.657 - # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
7.658 - # => hppa64-hp-hpux11.23
7.659 -
7.660 - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
7.661 - grep __LP64__ >/dev/null
7.662 - then
7.663 - HP_ARCH="hppa2.0w"
7.664 - else
7.665 - HP_ARCH="hppa64"
7.666 - fi
7.667 - fi
7.668 - echo ${HP_ARCH}-hp-hpux${HPUX_REV}
7.669 - exit ;;
7.670 - ia64:HP-UX:*:*)
7.671 - HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
7.672 - echo ia64-hp-hpux${HPUX_REV}
7.673 - exit ;;
7.674 - 3050*:HI-UX:*:*)
7.675 - eval $set_cc_for_build
7.676 - sed 's/^ //' << EOF >$dummy.c
7.677 - #include <unistd.h>
7.678 - int
7.679 - main ()
7.680 - {
7.681 - long cpu = sysconf (_SC_CPU_VERSION);
7.682 - /* The order matters, because CPU_IS_HP_MC68K erroneously returns
7.683 - true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
7.684 - results, however. */
7.685 - if (CPU_IS_PA_RISC (cpu))
7.686 - {
7.687 - switch (cpu)
7.688 - {
7.689 - case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
7.690 - case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
7.691 - case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
7.692 - default: puts ("hppa-hitachi-hiuxwe2"); break;
7.693 - }
7.694 - }
7.695 - else if (CPU_IS_HP_MC68K (cpu))
7.696 - puts ("m68k-hitachi-hiuxwe2");
7.697 - else puts ("unknown-hitachi-hiuxwe2");
7.698 - exit (0);
7.699 - }
7.700 -EOF
7.701 - $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
7.702 - { echo "$SYSTEM_NAME"; exit; }
7.703 - echo unknown-hitachi-hiuxwe2
7.704 - exit ;;
7.705 - 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
7.706 - echo hppa1.1-hp-bsd
7.707 - exit ;;
7.708 - 9000/8??:4.3bsd:*:*)
7.709 - echo hppa1.0-hp-bsd
7.710 - exit ;;
7.711 - *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
7.712 - echo hppa1.0-hp-mpeix
7.713 - exit ;;
7.714 - hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
7.715 - echo hppa1.1-hp-osf
7.716 - exit ;;
7.717 - hp8??:OSF1:*:*)
7.718 - echo hppa1.0-hp-osf
7.719 - exit ;;
7.720 - i*86:OSF1:*:*)
7.721 - if [ -x /usr/sbin/sysversion ] ; then
7.722 - echo ${UNAME_MACHINE}-unknown-osf1mk
7.723 - else
7.724 - echo ${UNAME_MACHINE}-unknown-osf1
7.725 - fi
7.726 - exit ;;
7.727 - parisc*:Lites*:*:*)
7.728 - echo hppa1.1-hp-lites
7.729 - exit ;;
7.730 - C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
7.731 - echo c1-convex-bsd
7.732 - exit ;;
7.733 - C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
7.734 - if getsysinfo -f scalar_acc
7.735 - then echo c32-convex-bsd
7.736 - else echo c2-convex-bsd
7.737 - fi
7.738 - exit ;;
7.739 - C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
7.740 - echo c34-convex-bsd
7.741 - exit ;;
7.742 - C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
7.743 - echo c38-convex-bsd
7.744 - exit ;;
7.745 - C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
7.746 - echo c4-convex-bsd
7.747 - exit ;;
7.748 - CRAY*Y-MP:*:*:*)
7.749 - echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7.750 - exit ;;
7.751 - CRAY*[A-Z]90:*:*:*)
7.752 - echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
7.753 - | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
7.754 - -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
7.755 - -e 's/\.[^.]*$/.X/'
7.756 - exit ;;
7.757 - CRAY*TS:*:*:*)
7.758 - echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7.759 - exit ;;
7.760 - CRAY*T3E:*:*:*)
7.761 - echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7.762 - exit ;;
7.763 - CRAY*SV1:*:*:*)
7.764 - echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7.765 - exit ;;
7.766 - *:UNICOS/mp:*:*)
7.767 - echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
7.768 - exit ;;
7.769 - F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
7.770 - FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
7.771 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7.772 - FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
7.773 - echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7.774 - exit ;;
7.775 - 5000:UNIX_System_V:4.*:*)
7.776 - FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
7.777 - FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
7.778 - echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
7.779 - exit ;;
7.780 - i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
7.781 - echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
7.782 - exit ;;
7.783 - sparc*:BSD/OS:*:*)
7.784 - echo sparc-unknown-bsdi${UNAME_RELEASE}
7.785 - exit ;;
7.786 - *:BSD/OS:*:*)
7.787 - echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
7.788 - exit ;;
7.789 - *:FreeBSD:*:*)
7.790 - case ${UNAME_MACHINE} in
7.791 - pc98)
7.792 - echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7.793 - amd64)
7.794 - echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7.795 - *)
7.796 - echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
7.797 - esac
7.798 - exit ;;
7.799 - i*:CYGWIN*:*)
7.800 - echo ${UNAME_MACHINE}-pc-cygwin
7.801 - exit ;;
7.802 - *:MINGW*:*)
7.803 - echo ${UNAME_MACHINE}-pc-mingw32
7.804 - exit ;;
7.805 - i*:windows32*:*)
7.806 - # uname -m includes "-pc" on this system.
7.807 - echo ${UNAME_MACHINE}-mingw32
7.808 - exit ;;
7.809 - i*:PW*:*)
7.810 - echo ${UNAME_MACHINE}-pc-pw32
7.811 - exit ;;
7.812 - *:Interix*:[3456]*)
7.813 - case ${UNAME_MACHINE} in
7.814 - x86)
7.815 - echo i586-pc-interix${UNAME_RELEASE}
7.816 - exit ;;
7.817 - EM64T | authenticamd | genuineintel)
7.818 - echo x86_64-unknown-interix${UNAME_RELEASE}
7.819 - exit ;;
7.820 - IA64)
7.821 - echo ia64-unknown-interix${UNAME_RELEASE}
7.822 - exit ;;
7.823 - esac ;;
7.824 - [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
7.825 - echo i${UNAME_MACHINE}-pc-mks
7.826 - exit ;;
7.827 - i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
7.828 - # How do we know it's Interix rather than the generic POSIX subsystem?
7.829 - # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
7.830 - # UNAME_MACHINE based on the output of uname instead of i386?
7.831 - echo i586-pc-interix
7.832 - exit ;;
7.833 - i*:UWIN*:*)
7.834 - echo ${UNAME_MACHINE}-pc-uwin
7.835 - exit ;;
7.836 - amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
7.837 - echo x86_64-unknown-cygwin
7.838 - exit ;;
7.839 - p*:CYGWIN*:*)
7.840 - echo powerpcle-unknown-cygwin
7.841 - exit ;;
7.842 - prep*:SunOS:5.*:*)
7.843 - echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
7.844 - exit ;;
7.845 - *:GNU:*:*)
7.846 - # the GNU system
7.847 - echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
7.848 - exit ;;
7.849 - *:GNU/*:*:*)
7.850 - # other systems with GNU libc and userland
7.851 - echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
7.852 - exit ;;
7.853 - i*86:Minix:*:*)
7.854 - echo ${UNAME_MACHINE}-pc-minix
7.855 - exit ;;
7.856 - arm*:Linux:*:*)
7.857 - eval $set_cc_for_build
7.858 - if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
7.859 - | grep -q __ARM_EABI__
7.860 - then
7.861 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.862 - else
7.863 - echo ${UNAME_MACHINE}-unknown-linux-gnueabi
7.864 - fi
7.865 - exit ;;
7.866 - avr32*:Linux:*:*)
7.867 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.868 - exit ;;
7.869 - cris:Linux:*:*)
7.870 - echo cris-axis-linux-gnu
7.871 - exit ;;
7.872 - crisv32:Linux:*:*)
7.873 - echo crisv32-axis-linux-gnu
7.874 - exit ;;
7.875 - frv:Linux:*:*)
7.876 - echo frv-unknown-linux-gnu
7.877 - exit ;;
7.878 - ia64:Linux:*:*)
7.879 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.880 - exit ;;
7.881 - m32r*:Linux:*:*)
7.882 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.883 - exit ;;
7.884 - m68*:Linux:*:*)
7.885 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.886 - exit ;;
7.887 - mips:Linux:*:*)
7.888 - eval $set_cc_for_build
7.889 - sed 's/^ //' << EOF >$dummy.c
7.890 - #undef CPU
7.891 - #undef mips
7.892 - #undef mipsel
7.893 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
7.894 - CPU=mipsel
7.895 - #else
7.896 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
7.897 - CPU=mips
7.898 - #else
7.899 - CPU=
7.900 - #endif
7.901 - #endif
7.902 -EOF
7.903 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
7.904 - /^CPU/{
7.905 - s: ::g
7.906 - p
7.907 - }'`"
7.908 - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
7.909 - ;;
7.910 - mips64:Linux:*:*)
7.911 - eval $set_cc_for_build
7.912 - sed 's/^ //' << EOF >$dummy.c
7.913 - #undef CPU
7.914 - #undef mips64
7.915 - #undef mips64el
7.916 - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
7.917 - CPU=mips64el
7.918 - #else
7.919 - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
7.920 - CPU=mips64
7.921 - #else
7.922 - CPU=
7.923 - #endif
7.924 - #endif
7.925 -EOF
7.926 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
7.927 - /^CPU/{
7.928 - s: ::g
7.929 - p
7.930 - }'`"
7.931 - test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
7.932 - ;;
7.933 - or32:Linux:*:*)
7.934 - echo or32-unknown-linux-gnu
7.935 - exit ;;
7.936 - ppc:Linux:*:*)
7.937 - echo powerpc-unknown-linux-gnu
7.938 - exit ;;
7.939 - ppc64:Linux:*:*)
7.940 - echo powerpc64-unknown-linux-gnu
7.941 - exit ;;
7.942 - alpha:Linux:*:*)
7.943 - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
7.944 - EV5) UNAME_MACHINE=alphaev5 ;;
7.945 - EV56) UNAME_MACHINE=alphaev56 ;;
7.946 - PCA56) UNAME_MACHINE=alphapca56 ;;
7.947 - PCA57) UNAME_MACHINE=alphapca56 ;;
7.948 - EV6) UNAME_MACHINE=alphaev6 ;;
7.949 - EV67) UNAME_MACHINE=alphaev67 ;;
7.950 - EV68*) UNAME_MACHINE=alphaev68 ;;
7.951 - esac
7.952 - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
7.953 - if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
7.954 - echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
7.955 - exit ;;
7.956 - padre:Linux:*:*)
7.957 - echo sparc-unknown-linux-gnu
7.958 - exit ;;
7.959 - parisc:Linux:*:* | hppa:Linux:*:*)
7.960 - # Look for CPU level
7.961 - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
7.962 - PA7*) echo hppa1.1-unknown-linux-gnu ;;
7.963 - PA8*) echo hppa2.0-unknown-linux-gnu ;;
7.964 - *) echo hppa-unknown-linux-gnu ;;
7.965 - esac
7.966 - exit ;;
7.967 - parisc64:Linux:*:* | hppa64:Linux:*:*)
7.968 - echo hppa64-unknown-linux-gnu
7.969 - exit ;;
7.970 - s390:Linux:*:* | s390x:Linux:*:*)
7.971 - echo ${UNAME_MACHINE}-ibm-linux
7.972 - exit ;;
7.973 - sh64*:Linux:*:*)
7.974 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.975 - exit ;;
7.976 - sh*:Linux:*:*)
7.977 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.978 - exit ;;
7.979 - sparc:Linux:*:* | sparc64:Linux:*:*)
7.980 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.981 - exit ;;
7.982 - vax:Linux:*:*)
7.983 - echo ${UNAME_MACHINE}-dec-linux-gnu
7.984 - exit ;;
7.985 - x86_64:Linux:*:*)
7.986 - echo x86_64-unknown-linux-gnu
7.987 - exit ;;
7.988 - xtensa*:Linux:*:*)
7.989 - echo ${UNAME_MACHINE}-unknown-linux-gnu
7.990 - exit ;;
7.991 - i*86:Linux:*:*)
7.992 - # The BFD linker knows what the default object file format is, so
7.993 - # first see if it will tell us. cd to the root directory to prevent
7.994 - # problems with other programs or directories called `ld' in the path.
7.995 - # Set LC_ALL=C to ensure ld outputs messages in English.
7.996 - ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
7.997 - | sed -ne '/supported targets:/!d
7.998 - s/[ ][ ]*/ /g
7.999 - s/.*supported targets: *//
7.1000 - s/ .*//
7.1001 - p'`
7.1002 - case "$ld_supported_targets" in
7.1003 - elf32-i386)
7.1004 - TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
7.1005 - ;;
7.1006 - a.out-i386-linux)
7.1007 - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
7.1008 - exit ;;
7.1009 - "")
7.1010 - # Either a pre-BFD a.out linker (linux-gnuoldld) or
7.1011 - # one that does not give us useful --help.
7.1012 - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
7.1013 - exit ;;
7.1014 - esac
7.1015 - # Determine whether the default compiler is a.out or elf
7.1016 - eval $set_cc_for_build
7.1017 - sed 's/^ //' << EOF >$dummy.c
7.1018 - #include <features.h>
7.1019 - #ifdef __ELF__
7.1020 - # ifdef __GLIBC__
7.1021 - # if __GLIBC__ >= 2
7.1022 - LIBC=gnu
7.1023 - # else
7.1024 - LIBC=gnulibc1
7.1025 - # endif
7.1026 - # else
7.1027 - LIBC=gnulibc1
7.1028 - # endif
7.1029 - #else
7.1030 - #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
7.1031 - LIBC=gnu
7.1032 - #else
7.1033 - LIBC=gnuaout
7.1034 - #endif
7.1035 - #endif
7.1036 - #ifdef __dietlibc__
7.1037 - LIBC=dietlibc
7.1038 - #endif
7.1039 -EOF
7.1040 - eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
7.1041 - /^LIBC/{
7.1042 - s: ::g
7.1043 - p
7.1044 - }'`"
7.1045 - test x"${LIBC}" != x && {
7.1046 - echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
7.1047 - exit
7.1048 - }
7.1049 - test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
7.1050 - ;;
7.1051 - i*86:DYNIX/ptx:4*:*)
7.1052 - # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
7.1053 - # earlier versions are messed up and put the nodename in both
7.1054 - # sysname and nodename.
7.1055 - echo i386-sequent-sysv4
7.1056 - exit ;;
7.1057 - i*86:UNIX_SV:4.2MP:2.*)
7.1058 - # Unixware is an offshoot of SVR4, but it has its own version
7.1059 - # number series starting with 2...
7.1060 - # I am not positive that other SVR4 systems won't match this,
7.1061 - # I just have to hope. -- rms.
7.1062 - # Use sysv4.2uw... so that sysv4* matches it.
7.1063 - echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
7.1064 - exit ;;
7.1065 - i*86:OS/2:*:*)
7.1066 - # If we were able to find `uname', then EMX Unix compatibility
7.1067 - # is probably installed.
7.1068 - echo ${UNAME_MACHINE}-pc-os2-emx
7.1069 - exit ;;
7.1070 - i*86:XTS-300:*:STOP)
7.1071 - echo ${UNAME_MACHINE}-unknown-stop
7.1072 - exit ;;
7.1073 - i*86:atheos:*:*)
7.1074 - echo ${UNAME_MACHINE}-unknown-atheos
7.1075 - exit ;;
7.1076 - i*86:syllable:*:*)
7.1077 - echo ${UNAME_MACHINE}-pc-syllable
7.1078 - exit ;;
7.1079 - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
7.1080 - echo i386-unknown-lynxos${UNAME_RELEASE}
7.1081 - exit ;;
7.1082 - i*86:*DOS:*:*)
7.1083 - echo ${UNAME_MACHINE}-pc-msdosdjgpp
7.1084 - exit ;;
7.1085 - i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
7.1086 - UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
7.1087 - if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
7.1088 - echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
7.1089 - else
7.1090 - echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
7.1091 - fi
7.1092 - exit ;;
7.1093 - i*86:*:5:[678]*)
7.1094 - # UnixWare 7.x, OpenUNIX and OpenServer 6.
7.1095 - case `/bin/uname -X | grep "^Machine"` in
7.1096 - *486*) UNAME_MACHINE=i486 ;;
7.1097 - *Pentium) UNAME_MACHINE=i586 ;;
7.1098 - *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
7.1099 - esac
7.1100 - echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
7.1101 - exit ;;
7.1102 - i*86:*:3.2:*)
7.1103 - if test -f /usr/options/cb.name; then
7.1104 - UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
7.1105 - echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
7.1106 - elif /bin/uname -X 2>/dev/null >/dev/null ; then
7.1107 - UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
7.1108 - (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
7.1109 - (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
7.1110 - && UNAME_MACHINE=i586
7.1111 - (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
7.1112 - && UNAME_MACHINE=i686
7.1113 - (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
7.1114 - && UNAME_MACHINE=i686
7.1115 - echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
7.1116 - else
7.1117 - echo ${UNAME_MACHINE}-pc-sysv32
7.1118 - fi
7.1119 - exit ;;
7.1120 - pc:*:*:*)
7.1121 - # Left here for compatibility:
7.1122 - # uname -m prints for DJGPP always 'pc', but it prints nothing about
7.1123 - # the processor, so we play safe by assuming i386.
7.1124 - echo i386-pc-msdosdjgpp
7.1125 - exit ;;
7.1126 - Intel:Mach:3*:*)
7.1127 - echo i386-pc-mach3
7.1128 - exit ;;
7.1129 - paragon:*:*:*)
7.1130 - echo i860-intel-osf1
7.1131 - exit ;;
7.1132 - i860:*:4.*:*) # i860-SVR4
7.1133 - if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
7.1134 - echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
7.1135 - else # Add other i860-SVR4 vendors below as they are discovered.
7.1136 - echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
7.1137 - fi
7.1138 - exit ;;
7.1139 - mini*:CTIX:SYS*5:*)
7.1140 - # "miniframe"
7.1141 - echo m68010-convergent-sysv
7.1142 - exit ;;
7.1143 - mc68k:UNIX:SYSTEM5:3.51m)
7.1144 - echo m68k-convergent-sysv
7.1145 - exit ;;
7.1146 - M680?0:D-NIX:5.3:*)
7.1147 - echo m68k-diab-dnix
7.1148 - exit ;;
7.1149 - M68*:*:R3V[5678]*:*)
7.1150 - test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
7.1151 - 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)
7.1152 - OS_REL=''
7.1153 - test -r /etc/.relid \
7.1154 - && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
7.1155 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
7.1156 - && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
7.1157 - /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
7.1158 - && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
7.1159 - 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
7.1160 - /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
7.1161 - && { echo i486-ncr-sysv4; exit; } ;;
7.1162 - m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
7.1163 - echo m68k-unknown-lynxos${UNAME_RELEASE}
7.1164 - exit ;;
7.1165 - mc68030:UNIX_System_V:4.*:*)
7.1166 - echo m68k-atari-sysv4
7.1167 - exit ;;
7.1168 - TSUNAMI:LynxOS:2.*:*)
7.1169 - echo sparc-unknown-lynxos${UNAME_RELEASE}
7.1170 - exit ;;
7.1171 - rs6000:LynxOS:2.*:*)
7.1172 - echo rs6000-unknown-lynxos${UNAME_RELEASE}
7.1173 - exit ;;
7.1174 - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
7.1175 - echo powerpc-unknown-lynxos${UNAME_RELEASE}
7.1176 - exit ;;
7.1177 - SM[BE]S:UNIX_SV:*:*)
7.1178 - echo mips-dde-sysv${UNAME_RELEASE}
7.1179 - exit ;;
7.1180 - RM*:ReliantUNIX-*:*:*)
7.1181 - echo mips-sni-sysv4
7.1182 - exit ;;
7.1183 - RM*:SINIX-*:*:*)
7.1184 - echo mips-sni-sysv4
7.1185 - exit ;;
7.1186 - *:SINIX-*:*:*)
7.1187 - if uname -p 2>/dev/null >/dev/null ; then
7.1188 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
7.1189 - echo ${UNAME_MACHINE}-sni-sysv4
7.1190 - else
7.1191 - echo ns32k-sni-sysv
7.1192 - fi
7.1193 - exit ;;
7.1194 - PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
7.1195 - # says <Richard.M.Bartel@ccMail.Census.GOV>
7.1196 - echo i586-unisys-sysv4
7.1197 - exit ;;
7.1198 - *:UNIX_System_V:4*:FTX*)
7.1199 - # From Gerald Hewes <hewes@openmarket.com>.
7.1200 - # How about differentiating between stratus architectures? -djm
7.1201 - echo hppa1.1-stratus-sysv4
7.1202 - exit ;;
7.1203 - *:*:*:FTX*)
7.1204 - # From seanf@swdc.stratus.com.
7.1205 - echo i860-stratus-sysv4
7.1206 - exit ;;
7.1207 - i*86:VOS:*:*)
7.1208 - # From Paul.Green@stratus.com.
7.1209 - echo ${UNAME_MACHINE}-stratus-vos
7.1210 - exit ;;
7.1211 - *:VOS:*:*)
7.1212 - # From Paul.Green@stratus.com.
7.1213 - echo hppa1.1-stratus-vos
7.1214 - exit ;;
7.1215 - mc68*:A/UX:*:*)
7.1216 - echo m68k-apple-aux${UNAME_RELEASE}
7.1217 - exit ;;
7.1218 - news*:NEWS-OS:6*:*)
7.1219 - echo mips-sony-newsos6
7.1220 - exit ;;
7.1221 - R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
7.1222 - if [ -d /usr/nec ]; then
7.1223 - echo mips-nec-sysv${UNAME_RELEASE}
7.1224 - else
7.1225 - echo mips-unknown-sysv${UNAME_RELEASE}
7.1226 - fi
7.1227 - exit ;;
7.1228 - BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
7.1229 - echo powerpc-be-beos
7.1230 - exit ;;
7.1231 - BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
7.1232 - echo powerpc-apple-beos
7.1233 - exit ;;
7.1234 - BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
7.1235 - echo i586-pc-beos
7.1236 - exit ;;
7.1237 - BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
7.1238 - echo i586-pc-haiku
7.1239 - exit ;;
7.1240 - SX-4:SUPER-UX:*:*)
7.1241 - echo sx4-nec-superux${UNAME_RELEASE}
7.1242 - exit ;;
7.1243 - SX-5:SUPER-UX:*:*)
7.1244 - echo sx5-nec-superux${UNAME_RELEASE}
7.1245 - exit ;;
7.1246 - SX-6:SUPER-UX:*:*)
7.1247 - echo sx6-nec-superux${UNAME_RELEASE}
7.1248 - exit ;;
7.1249 - SX-7:SUPER-UX:*:*)
7.1250 - echo sx7-nec-superux${UNAME_RELEASE}
7.1251 - exit ;;
7.1252 - SX-8:SUPER-UX:*:*)
7.1253 - echo sx8-nec-superux${UNAME_RELEASE}
7.1254 - exit ;;
7.1255 - SX-8R:SUPER-UX:*:*)
7.1256 - echo sx8r-nec-superux${UNAME_RELEASE}
7.1257 - exit ;;
7.1258 - Power*:Rhapsody:*:*)
7.1259 - echo powerpc-apple-rhapsody${UNAME_RELEASE}
7.1260 - exit ;;
7.1261 - *:Rhapsody:*:*)
7.1262 - echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
7.1263 - exit ;;
7.1264 - *:Darwin:*:*)
7.1265 - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
7.1266 - case $UNAME_PROCESSOR in
7.1267 - unknown) UNAME_PROCESSOR=powerpc ;;
7.1268 - esac
7.1269 - echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
7.1270 - exit ;;
7.1271 - *:procnto*:*:* | *:QNX:[0123456789]*:*)
7.1272 - UNAME_PROCESSOR=`uname -p`
7.1273 - if test "$UNAME_PROCESSOR" = "x86"; then
7.1274 - UNAME_PROCESSOR=i386
7.1275 - UNAME_MACHINE=pc
7.1276 - fi
7.1277 - echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
7.1278 - exit ;;
7.1279 - *:QNX:*:4*)
7.1280 - echo i386-pc-qnx
7.1281 - exit ;;
7.1282 - NSE-?:NONSTOP_KERNEL:*:*)
7.1283 - echo nse-tandem-nsk${UNAME_RELEASE}
7.1284 - exit ;;
7.1285 - NSR-?:NONSTOP_KERNEL:*:*)
7.1286 - echo nsr-tandem-nsk${UNAME_RELEASE}
7.1287 - exit ;;
7.1288 - *:NonStop-UX:*:*)
7.1289 - echo mips-compaq-nonstopux
7.1290 - exit ;;
7.1291 - BS2000:POSIX*:*:*)
7.1292 - echo bs2000-siemens-sysv
7.1293 - exit ;;
7.1294 - DS/*:UNIX_System_V:*:*)
7.1295 - echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
7.1296 - exit ;;
7.1297 - *:Plan9:*:*)
7.1298 - # "uname -m" is not consistent, so use $cputype instead. 386
7.1299 - # is converted to i386 for consistency with other x86
7.1300 - # operating systems.
7.1301 - if test "$cputype" = "386"; then
7.1302 - UNAME_MACHINE=i386
7.1303 - else
7.1304 - UNAME_MACHINE="$cputype"
7.1305 - fi
7.1306 - echo ${UNAME_MACHINE}-unknown-plan9
7.1307 - exit ;;
7.1308 - *:TOPS-10:*:*)
7.1309 - echo pdp10-unknown-tops10
7.1310 - exit ;;
7.1311 - *:TENEX:*:*)
7.1312 - echo pdp10-unknown-tenex
7.1313 - exit ;;
7.1314 - KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
7.1315 - echo pdp10-dec-tops20
7.1316 - exit ;;
7.1317 - XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
7.1318 - echo pdp10-xkl-tops20
7.1319 - exit ;;
7.1320 - *:TOPS-20:*:*)
7.1321 - echo pdp10-unknown-tops20
7.1322 - exit ;;
7.1323 - *:ITS:*:*)
7.1324 - echo pdp10-unknown-its
7.1325 - exit ;;
7.1326 - SEI:*:*:SEIUX)
7.1327 - echo mips-sei-seiux${UNAME_RELEASE}
7.1328 - exit ;;
7.1329 - *:DragonFly:*:*)
7.1330 - echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
7.1331 - exit ;;
7.1332 - *:*VMS:*:*)
7.1333 - UNAME_MACHINE=`(uname -p) 2>/dev/null`
7.1334 - case "${UNAME_MACHINE}" in
7.1335 - A*) echo alpha-dec-vms ; exit ;;
7.1336 - I*) echo ia64-dec-vms ; exit ;;
7.1337 - V*) echo vax-dec-vms ; exit ;;
7.1338 - esac ;;
7.1339 - *:XENIX:*:SysV)
7.1340 - echo i386-pc-xenix
7.1341 - exit ;;
7.1342 - i*86:skyos:*:*)
7.1343 - echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
7.1344 - exit ;;
7.1345 - i*86:rdos:*:*)
7.1346 - echo ${UNAME_MACHINE}-pc-rdos
7.1347 - exit ;;
7.1348 -esac
7.1349 -
7.1350 -#echo '(No uname command or uname output not recognized.)' 1>&2
7.1351 -#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
7.1352 -
7.1353 -eval $set_cc_for_build
7.1354 -cat >$dummy.c <<EOF
7.1355 -#ifdef _SEQUENT_
7.1356 -# include <sys/types.h>
7.1357 -# include <sys/utsname.h>
7.1358 -#endif
7.1359 -main ()
7.1360 -{
7.1361 -#if defined (sony)
7.1362 -#if defined (MIPSEB)
7.1363 - /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
7.1364 - I don't know.... */
7.1365 - printf ("mips-sony-bsd\n"); exit (0);
7.1366 -#else
7.1367 -#include <sys/param.h>
7.1368 - printf ("m68k-sony-newsos%s\n",
7.1369 -#ifdef NEWSOS4
7.1370 - "4"
7.1371 -#else
7.1372 - ""
7.1373 -#endif
7.1374 - ); exit (0);
7.1375 -#endif
7.1376 -#endif
7.1377 -
7.1378 -#if defined (__arm) && defined (__acorn) && defined (__unix)
7.1379 - printf ("arm-acorn-riscix\n"); exit (0);
7.1380 -#endif
7.1381 -
7.1382 -#if defined (hp300) && !defined (hpux)
7.1383 - printf ("m68k-hp-bsd\n"); exit (0);
7.1384 -#endif
7.1385 -
7.1386 -#if defined (NeXT)
7.1387 -#if !defined (__ARCHITECTURE__)
7.1388 -#define __ARCHITECTURE__ "m68k"
7.1389 -#endif
7.1390 - int version;
7.1391 - version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
7.1392 - if (version < 4)
7.1393 - printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
7.1394 - else
7.1395 - printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
7.1396 - exit (0);
7.1397 -#endif
7.1398 -
7.1399 -#if defined (MULTIMAX) || defined (n16)
7.1400 -#if defined (UMAXV)
7.1401 - printf ("ns32k-encore-sysv\n"); exit (0);
7.1402 -#else
7.1403 -#if defined (CMU)
7.1404 - printf ("ns32k-encore-mach\n"); exit (0);
7.1405 -#else
7.1406 - printf ("ns32k-encore-bsd\n"); exit (0);
7.1407 -#endif
7.1408 -#endif
7.1409 -#endif
7.1410 -
7.1411 -#if defined (__386BSD__)
7.1412 - printf ("i386-pc-bsd\n"); exit (0);
7.1413 -#endif
7.1414 -
7.1415 -#if defined (sequent)
7.1416 -#if defined (i386)
7.1417 - printf ("i386-sequent-dynix\n"); exit (0);
7.1418 -#endif
7.1419 -#if defined (ns32000)
7.1420 - printf ("ns32k-sequent-dynix\n"); exit (0);
7.1421 -#endif
7.1422 -#endif
7.1423 -
7.1424 -#if defined (_SEQUENT_)
7.1425 - struct utsname un;
7.1426 -
7.1427 - uname(&un);
7.1428 -
7.1429 - if (strncmp(un.version, "V2", 2) == 0) {
7.1430 - printf ("i386-sequent-ptx2\n"); exit (0);
7.1431 - }
7.1432 - if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
7.1433 - printf ("i386-sequent-ptx1\n"); exit (0);
7.1434 - }
7.1435 - printf ("i386-sequent-ptx\n"); exit (0);
7.1436 -
7.1437 -#endif
7.1438 -
7.1439 -#if defined (vax)
7.1440 -# if !defined (ultrix)
7.1441 -# include <sys/param.h>
7.1442 -# if defined (BSD)
7.1443 -# if BSD == 43
7.1444 - printf ("vax-dec-bsd4.3\n"); exit (0);
7.1445 -# else
7.1446 -# if BSD == 199006
7.1447 - printf ("vax-dec-bsd4.3reno\n"); exit (0);
7.1448 -# else
7.1449 - printf ("vax-dec-bsd\n"); exit (0);
7.1450 -# endif
7.1451 -# endif
7.1452 -# else
7.1453 - printf ("vax-dec-bsd\n"); exit (0);
7.1454 -# endif
7.1455 -# else
7.1456 - printf ("vax-dec-ultrix\n"); exit (0);
7.1457 -# endif
7.1458 -#endif
7.1459 -
7.1460 -#if defined (alliant) && defined (i860)
7.1461 - printf ("i860-alliant-bsd\n"); exit (0);
7.1462 -#endif
7.1463 -
7.1464 - exit (1);
7.1465 -}
7.1466 -EOF
7.1467 -
7.1468 -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
7.1469 - { echo "$SYSTEM_NAME"; exit; }
7.1470 -
7.1471 -# Apollos put the system type in the environment.
7.1472 -
7.1473 -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
7.1474 -
7.1475 -# Convex versions that predate uname can use getsysinfo(1)
7.1476 -
7.1477 -if [ -x /usr/convex/getsysinfo ]
7.1478 -then
7.1479 - case `getsysinfo -f cpu_type` in
7.1480 - c1*)
7.1481 - echo c1-convex-bsd
7.1482 - exit ;;
7.1483 - c2*)
7.1484 - if getsysinfo -f scalar_acc
7.1485 - then echo c32-convex-bsd
7.1486 - else echo c2-convex-bsd
7.1487 - fi
7.1488 - exit ;;
7.1489 - c34*)
7.1490 - echo c34-convex-bsd
7.1491 - exit ;;
7.1492 - c38*)
7.1493 - echo c38-convex-bsd
7.1494 - exit ;;
7.1495 - c4*)
7.1496 - echo c4-convex-bsd
7.1497 - exit ;;
7.1498 - esac
7.1499 -fi
7.1500 -
7.1501 -cat >&2 <<EOF
7.1502 -$0: unable to guess system type
7.1503 -
7.1504 -This script, last modified $timestamp, has failed to recognize
7.1505 -the operating system you are using. It is advised that you
7.1506 -download the most up to date version of the config scripts from
7.1507 -
7.1508 - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
7.1509 -and
7.1510 - http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
7.1511 -
7.1512 -If the version you run ($0) is already up to date, please
7.1513 -send the following data and any information you think might be
7.1514 -pertinent to <config-patches@gnu.org> in order to provide the needed
7.1515 -information to handle your system.
7.1516 -
7.1517 -config.guess timestamp = $timestamp
7.1518 -
7.1519 -uname -m = `(uname -m) 2>/dev/null || echo unknown`
7.1520 -uname -r = `(uname -r) 2>/dev/null || echo unknown`
7.1521 -uname -s = `(uname -s) 2>/dev/null || echo unknown`
7.1522 -uname -v = `(uname -v) 2>/dev/null || echo unknown`
7.1523 -
7.1524 -/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
7.1525 -/bin/uname -X = `(/bin/uname -X) 2>/dev/null`
7.1526 -
7.1527 -hostinfo = `(hostinfo) 2>/dev/null`
7.1528 -/bin/universe = `(/bin/universe) 2>/dev/null`
7.1529 -/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null`
7.1530 -/bin/arch = `(/bin/arch) 2>/dev/null`
7.1531 -/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null`
7.1532 -/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
7.1533 -
7.1534 -UNAME_MACHINE = ${UNAME_MACHINE}
7.1535 -UNAME_RELEASE = ${UNAME_RELEASE}
7.1536 -UNAME_SYSTEM = ${UNAME_SYSTEM}
7.1537 -UNAME_VERSION = ${UNAME_VERSION}
7.1538 -EOF
7.1539 -
7.1540 -exit 1
7.1541 -
7.1542 -# Local variables:
7.1543 -# eval: (add-hook 'write-file-hooks 'time-stamp)
7.1544 -# time-stamp-start: "timestamp='"
7.1545 -# time-stamp-format: "%:y-%02m-%02d"
7.1546 -# time-stamp-end: "'"
7.1547 -# End:
8.1 --- a/tools/config.sub Tue Dec 16 18:03:28 2008 +0000
8.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
8.3 @@ -1,1679 +0,0 @@
8.4 -#! /bin/sh
8.5 -# Configuration validation subroutine script.
8.6 -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
8.7 -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
8.8 -# Free Software Foundation, Inc.
8.9 -
8.10 -timestamp='2008-12-11'
8.11 -
8.12 -# This file is (in principle) common to ALL GNU software.
8.13 -# The presence of a machine in this file suggests that SOME GNU software
8.14 -# can handle that machine. It does not imply ALL GNU software can.
8.15 -#
8.16 -# This file is free software; you can redistribute it and/or modify
8.17 -# it under the terms of the GNU General Public License as published by
8.18 -# the Free Software Foundation; either version 2 of the License, or
8.19 -# (at your option) any later version.
8.20 -#
8.21 -# This program is distributed in the hope that it will be useful,
8.22 -# but WITHOUT ANY WARRANTY; without even the implied warranty of
8.23 -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
8.24 -# GNU General Public License for more details.
8.25 -#
8.26 -# You should have received a copy of the GNU General Public License
8.27 -# along with this program; if not, write to the Free Software
8.28 -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
8.29 -# 02110-1301, USA.
8.30 -#
8.31 -# As a special exception to the GNU General Public License, if you
8.32 -# distribute this file as part of a program that contains a
8.33 -# configuration script generated by Autoconf, you may include it under
8.34 -# the same distribution terms that you use for the rest of that program.
8.35 -
8.36 -
8.37 -# Please send patches to <config-patches@gnu.org>. Submit a context
8.38 -# diff and a properly formatted ChangeLog entry.
8.39 -#
8.40 -# Configuration subroutine to validate and canonicalize a configuration type.
8.41 -# Supply the specified configuration type as an argument.
8.42 -# If it is invalid, we print an error message on stderr and exit with code 1.
8.43 -# Otherwise, we print the canonical config type on stdout and succeed.
8.44 -
8.45 -# This file is supposed to be the same for all GNU packages
8.46 -# and recognize all the CPU types, system types and aliases
8.47 -# that are meaningful with *any* GNU software.
8.48 -# Each package is responsible for reporting which valid configurations
8.49 -# it does not support. The user should be able to distinguish
8.50 -# a failure to support a valid configuration from a meaningless
8.51 -# configuration.
8.52 -
8.53 -# The goal of this file is to map all the various variations of a given
8.54 -# machine specification into a single specification in the form:
8.55 -# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM
8.56 -# or in some cases, the newer four-part form:
8.57 -# CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM
8.58 -# It is wrong to echo any other type of specification.
8.59 -
8.60 -me=`echo "$0" | sed -e 's,.*/,,'`
8.61 -
8.62 -usage="\
8.63 -Usage: $0 [OPTION] CPU-MFR-OPSYS
8.64 - $0 [OPTION] ALIAS
8.65 -
8.66 -Canonicalize a configuration name.
8.67 -
8.68 -Operation modes:
8.69 - -h, --help print this help, then exit
8.70 - -t, --time-stamp print date of last modification, then exit
8.71 - -v, --version print version number, then exit
8.72 -
8.73 -Report bugs and patches to <config-patches@gnu.org>."
8.74 -
8.75 -version="\
8.76 -GNU config.sub ($timestamp)
8.77 -
8.78 -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
8.79 -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8.80 -
8.81 -This is free software; see the source for copying conditions. There is NO
8.82 -warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
8.83 -
8.84 -help="
8.85 -Try \`$me --help' for more information."
8.86 -
8.87 -# Parse command line
8.88 -while test $# -gt 0 ; do
8.89 - case $1 in
8.90 - --time-stamp | --time* | -t )
8.91 - echo "$timestamp" ; exit ;;
8.92 - --version | -v )
8.93 - echo "$version" ; exit ;;
8.94 - --help | --h* | -h )
8.95 - echo "$usage"; exit ;;
8.96 - -- ) # Stop option processing
8.97 - shift; break ;;
8.98 - - ) # Use stdin as input.
8.99 - break ;;
8.100 - -* )
8.101 - echo "$me: invalid option $1$help"
8.102 - exit 1 ;;
8.103 -
8.104 - *local*)
8.105 - # First pass through any local machine types.
8.106 - echo $1
8.107 - exit ;;
8.108 -
8.109 - * )
8.110 - break ;;
8.111 - esac
8.112 -done
8.113 -
8.114 -case $# in
8.115 - 0) echo "$me: missing argument$help" >&2
8.116 - exit 1;;
8.117 - 1) ;;
8.118 - *) echo "$me: too many arguments$help" >&2
8.119 - exit 1;;
8.120 -esac
8.121 -
8.122 -# Separate what the user gave into CPU-COMPANY and OS or KERNEL-OS (if any).
8.123 -# Here we must recognize all the valid KERNEL-OS combinations.
8.124 -maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
8.125 -case $maybe_os in
8.126 - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
8.127 - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
8.128 - storm-chaos* | os2-emx* | rtmk-nova*)
8.129 - os=-$maybe_os
8.130 - basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
8.131 - ;;
8.132 - *)
8.133 - basic_machine=`echo $1 | sed 's/-[^-]*$//'`
8.134 - if [ $basic_machine != $1 ]
8.135 - then os=`echo $1 | sed 's/.*-/-/'`
8.136 - else os=; fi
8.137 - ;;
8.138 -esac
8.139 -
8.140 -### Let's recognize common machines as not being operating systems so
8.141 -### that things like config.sub decstation-3100 work. We also
8.142 -### recognize some manufacturers as not being operating systems, so we
8.143 -### can provide default operating systems below.
8.144 -case $os in
8.145 - -sun*os*)
8.146 - # Prevent following clause from handling this invalid input.
8.147 - ;;
8.148 - -dec* | -mips* | -sequent* | -encore* | -pc532* | -sgi* | -sony* | \
8.149 - -att* | -7300* | -3300* | -delta* | -motorola* | -sun[234]* | \
8.150 - -unicom* | -ibm* | -next | -hp | -isi* | -apollo | -altos* | \
8.151 - -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
8.152 - -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
8.153 - -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
8.154 - -apple | -axis | -knuth | -cray)
8.155 - os=
8.156 - basic_machine=$1
8.157 - ;;
8.158 - -sim | -cisco | -oki | -wec | -winbond)
8.159 - os=
8.160 - basic_machine=$1
8.161 - ;;
8.162 - -scout)
8.163 - ;;
8.164 - -wrs)
8.165 - os=-vxworks
8.166 - basic_machine=$1
8.167 - ;;
8.168 - -chorusos*)
8.169 - os=-chorusos
8.170 - basic_machine=$1
8.171 - ;;
8.172 - -chorusrdb)
8.173 - os=-chorusrdb
8.174 - basic_machine=$1
8.175 - ;;
8.176 - -hiux*)
8.177 - os=-hiuxwe2
8.178 - ;;
8.179 - -sco6)
8.180 - os=-sco5v6
8.181 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.182 - ;;
8.183 - -sco5)
8.184 - os=-sco3.2v5
8.185 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.186 - ;;
8.187 - -sco4)
8.188 - os=-sco3.2v4
8.189 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.190 - ;;
8.191 - -sco3.2.[4-9]*)
8.192 - os=`echo $os | sed -e 's/sco3.2./sco3.2v/'`
8.193 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.194 - ;;
8.195 - -sco3.2v[4-9]*)
8.196 - # Don't forget version if it is 3.2v4 or newer.
8.197 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.198 - ;;
8.199 - -sco5v6*)
8.200 - # Don't forget version if it is 3.2v4 or newer.
8.201 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.202 - ;;
8.203 - -sco*)
8.204 - os=-sco3.2v2
8.205 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.206 - ;;
8.207 - -udk*)
8.208 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.209 - ;;
8.210 - -isc)
8.211 - os=-isc2.2
8.212 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.213 - ;;
8.214 - -clix*)
8.215 - basic_machine=clipper-intergraph
8.216 - ;;
8.217 - -isc*)
8.218 - basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
8.219 - ;;
8.220 - -lynx*)
8.221 - os=-lynxos
8.222 - ;;
8.223 - -ptx*)
8.224 - basic_machine=`echo $1 | sed -e 's/86-.*/86-sequent/'`
8.225 - ;;
8.226 - -windowsnt*)
8.227 - os=`echo $os | sed -e 's/windowsnt/winnt/'`
8.228 - ;;
8.229 - -psos*)
8.230 - os=-psos
8.231 - ;;
8.232 - -mint | -mint[0-9]*)
8.233 - basic_machine=m68k-atari
8.234 - os=-mint
8.235 - ;;
8.236 -esac
8.237 -
8.238 -# Decode aliases for certain CPU-COMPANY combinations.
8.239 -case $basic_machine in
8.240 - # Recognize the basic CPU types without company name.
8.241 - # Some are omitted here because they have special meanings below.
8.242 - 1750a | 580 \
8.243 - | a29k \
8.244 - | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
8.245 - | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
8.246 - | am33_2.0 \
8.247 - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
8.248 - | bfin \
8.249 - | c4x | clipper \
8.250 - | d10v | d30v | dlx | dsp16xx \
8.251 - | fido | fr30 | frv \
8.252 - | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
8.253 - | i370 | i860 | i960 | ia64 \
8.254 - | ip2k | iq2000 \
8.255 - | lm32 \
8.256 - | m32c | m32r | m32rle | m68000 | m68k | m88k \
8.257 - | maxq | mb | microblaze | mcore | mep | metag \
8.258 - | mips | mipsbe | mipseb | mipsel | mipsle \
8.259 - | mips16 \
8.260 - | mips64 | mips64el \
8.261 - | mips64octeon | mips64octeonel \
8.262 - | mips64orion | mips64orionel \
8.263 - | mips64r5900 | mips64r5900el \
8.264 - | mips64vr | mips64vrel \
8.265 - | mips64vr4100 | mips64vr4100el \
8.266 - | mips64vr4300 | mips64vr4300el \
8.267 - | mips64vr5000 | mips64vr5000el \
8.268 - | mips64vr5900 | mips64vr5900el \
8.269 - | mipsisa32 | mipsisa32el \
8.270 - | mipsisa32r2 | mipsisa32r2el \
8.271 - | mipsisa64 | mipsisa64el \
8.272 - | mipsisa64r2 | mipsisa64r2el \
8.273 - | mipsisa64sb1 | mipsisa64sb1el \
8.274 - | mipsisa64sr71k | mipsisa64sr71kel \
8.275 - | mipstx39 | mipstx39el \
8.276 - | mn10200 | mn10300 \
8.277 - | mt \
8.278 - | msp430 \
8.279 - | nios | nios2 \
8.280 - | ns16k | ns32k \
8.281 - | or32 \
8.282 - | pdp10 | pdp11 | pj | pjl \
8.283 - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
8.284 - | pyramid \
8.285 - | score \
8.286 - | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
8.287 - | sh64 | sh64le \
8.288 - | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
8.289 - | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
8.290 - | spu | strongarm \
8.291 - | tahoe | thumb | tic4x | tic80 | tron \
8.292 - | v850 | v850e \
8.293 - | we32k \
8.294 - | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
8.295 - | z8k | z80)
8.296 - basic_machine=$basic_machine-unknown
8.297 - ;;
8.298 - m6811 | m68hc11 | m6812 | m68hc12)
8.299 - # Motorola 68HC11/12.
8.300 - basic_machine=$basic_machine-unknown
8.301 - os=-none
8.302 - ;;
8.303 - m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
8.304 - ;;
8.305 - ms1)
8.306 - basic_machine=mt-unknown
8.307 - ;;
8.308 -
8.309 - # We use `pc' rather than `unknown'
8.310 - # because (1) that's what they normally are, and
8.311 - # (2) the word "unknown" tends to confuse beginning users.
8.312 - i*86 | x86_64)
8.313 - basic_machine=$basic_machine-pc
8.314 - ;;
8.315 - # Object if more than one company name word.
8.316 - *-*-*)
8.317 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
8.318 - exit 1
8.319 - ;;
8.320 - # Recognize the basic CPU types with company name.
8.321 - 580-* \
8.322 - | a29k-* \
8.323 - | alpha-* | alphaev[4-8]-* | alphaev56-* | alphaev6[78]-* \
8.324 - | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
8.325 - | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
8.326 - | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
8.327 - | avr-* | avr32-* \
8.328 - | bfin-* | bs2000-* \
8.329 - | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
8.330 - | clipper-* | craynv-* | cydra-* \
8.331 - | d10v-* | d30v-* | dlx-* \
8.332 - | elxsi-* \
8.333 - | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
8.334 - | h8300-* | h8500-* \
8.335 - | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
8.336 - | i*86-* | i860-* | i960-* | ia64-* \
8.337 - | ip2k-* | iq2000-* \
8.338 - | lm32-* \
8.339 - | m32c-* | m32r-* | m32rle-* \
8.340 - | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
8.341 - | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
8.342 - | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
8.343 - | mips16-* \
8.344 - | mips64-* | mips64el-* \
8.345 - | mips64octeon-* | mips64octeonel-* \
8.346 - | mips64orion-* | mips64orionel-* \
8.347 - | mips64r5900-* | mips64r5900el-* \
8.348 - | mips64vr-* | mips64vrel-* \
8.349 - | mips64vr4100-* | mips64vr4100el-* \
8.350 - | mips64vr4300-* | mips64vr4300el-* \
8.351 - | mips64vr5000-* | mips64vr5000el-* \
8.352 - | mips64vr5900-* | mips64vr5900el-* \
8.353 - | mipsisa32-* | mipsisa32el-* \
8.354 - | mipsisa32r2-* | mipsisa32r2el-* \
8.355 - | mipsisa64-* | mipsisa64el-* \
8.356 - | mipsisa64r2-* | mipsisa64r2el-* \
8.357 - | mipsisa64sb1-* | mipsisa64sb1el-* \
8.358 - | mipsisa64sr71k-* | mipsisa64sr71kel-* \
8.359 - | mipstx39-* | mipstx39el-* \
8.360 - | mmix-* \
8.361 - | mt-* \
8.362 - | msp430-* \
8.363 - | nios-* | nios2-* \
8.364 - | none-* | np1-* | ns16k-* | ns32k-* \
8.365 - | orion-* \
8.366 - | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
8.367 - | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
8.368 - | pyramid-* \
8.369 - | romp-* | rs6000-* \
8.370 - | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
8.371 - | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
8.372 - | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
8.373 - | sparclite-* \
8.374 - | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
8.375 - | tahoe-* | thumb-* \
8.376 - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
8.377 - | tron-* \
8.378 - | v850-* | v850e-* | vax-* \
8.379 - | we32k-* \
8.380 - | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
8.381 - | xstormy16-* | xtensa*-* \
8.382 - | ymp-* \
8.383 - | z8k-* | z80-*)
8.384 - ;;
8.385 - # Recognize the basic CPU types without company name, with glob match.
8.386 - xtensa*)
8.387 - basic_machine=$basic_machine-unknown
8.388 - ;;
8.389 - # Recognize the various machine names and aliases which stand
8.390 - # for a CPU type and a company and sometimes even an OS.
8.391 - 386bsd)
8.392 - basic_machine=i386-unknown
8.393 - os=-bsd
8.394 - ;;
8.395 - 3b1 | 7300 | 7300-att | att-7300 | pc7300 | safari | unixpc)
8.396 - basic_machine=m68000-att
8.397 - ;;
8.398 - 3b*)
8.399 - basic_machine=we32k-att
8.400 - ;;
8.401 - a29khif)
8.402 - basic_machine=a29k-amd
8.403 - os=-udi
8.404 - ;;
8.405 - abacus)
8.406 - basic_machine=abacus-unknown
8.407 - ;;
8.408 - adobe68k)
8.409 - basic_machine=m68010-adobe
8.410 - os=-scout
8.411 - ;;
8.412 - alliant | fx80)
8.413 - basic_machine=fx80-alliant
8.414 - ;;
8.415 - altos | altos3068)
8.416 - basic_machine=m68k-altos
8.417 - ;;
8.418 - am29k)
8.419 - basic_machine=a29k-none
8.420 - os=-bsd
8.421 - ;;
8.422 - amd64)
8.423 - basic_machine=x86_64-pc
8.424 - ;;
8.425 - amd64-*)
8.426 - basic_machine=x86_64-`echo $basic_machine | sed 's/^[^-]*-//'`
8.427 - ;;
8.428 - amdahl)
8.429 - basic_machine=580-amdahl
8.430 - os=-sysv
8.431 - ;;
8.432 - amiga | amiga-*)
8.433 - basic_machine=m68k-unknown
8.434 - ;;
8.435 - amigaos | amigados)
8.436 - basic_machine=m68k-unknown
8.437 - os=-amigaos
8.438 - ;;
8.439 - amigaunix | amix)
8.440 - basic_machine=m68k-unknown
8.441 - os=-sysv4
8.442 - ;;
8.443 - apollo68)
8.444 - basic_machine=m68k-apollo
8.445 - os=-sysv
8.446 - ;;
8.447 - apollo68bsd)
8.448 - basic_machine=m68k-apollo
8.449 - os=-bsd
8.450 - ;;
8.451 - aux)
8.452 - basic_machine=m68k-apple
8.453 - os=-aux
8.454 - ;;
8.455 - balance)
8.456 - basic_machine=ns32k-sequent
8.457 - os=-dynix
8.458 - ;;
8.459 - blackfin)
8.460 - basic_machine=bfin-unknown
8.461 - os=-linux
8.462 - ;;
8.463 - blackfin-*)
8.464 - basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
8.465 - os=-linux
8.466 - ;;
8.467 - c90)
8.468 - basic_machine=c90-cray
8.469 - os=-unicos
8.470 - ;;
8.471 - cegcc)
8.472 - basic_machine=arm-unknown
8.473 - os=-cegcc
8.474 - ;;
8.475 - convex-c1)
8.476 - basic_machine=c1-convex
8.477 - os=-bsd
8.478 - ;;
8.479 - convex-c2)
8.480 - basic_machine=c2-convex
8.481 - os=-bsd
8.482 - ;;
8.483 - convex-c32)
8.484 - basic_machine=c32-convex
8.485 - os=-bsd
8.486 - ;;
8.487 - convex-c34)
8.488 - basic_machine=c34-convex
8.489 - os=-bsd
8.490 - ;;
8.491 - convex-c38)
8.492 - basic_machine=c38-convex
8.493 - os=-bsd
8.494 - ;;
8.495 - cray | j90)
8.496 - basic_machine=j90-cray
8.497 - os=-unicos
8.498 - ;;
8.499 - craynv)
8.500 - basic_machine=craynv-cray
8.501 - os=-unicosmp
8.502 - ;;
8.503 - cr16)
8.504 - basic_machine=cr16-unknown
8.505 - os=-elf
8.506 - ;;
8.507 - crds | unos)
8.508 - basic_machine=m68k-crds
8.509 - ;;
8.510 - crisv32 | crisv32-* | etraxfs*)
8.511 - basic_machine=crisv32-axis
8.512 - ;;
8.513 - cris | cris-* | etrax*)
8.514 - basic_machine=cris-axis
8.515 - ;;
8.516 - crx)
8.517 - basic_machine=crx-unknown
8.518 - os=-elf
8.519 - ;;
8.520 - da30 | da30-*)
8.521 - basic_machine=m68k-da30
8.522 - ;;
8.523 - decstation | decstation-3100 | pmax | pmax-* | pmin | dec3100 | decstatn)
8.524 - basic_machine=mips-dec
8.525 - ;;
8.526 - decsystem10* | dec10*)
8.527 - basic_machine=pdp10-dec
8.528 - os=-tops10
8.529 - ;;
8.530 - decsystem20* | dec20*)
8.531 - basic_machine=pdp10-dec
8.532 - os=-tops20
8.533 - ;;
8.534 - delta | 3300 | motorola-3300 | motorola-delta \
8.535 - | 3300-motorola | delta-motorola)
8.536 - basic_machine=m68k-motorola
8.537 - ;;
8.538 - delta88)
8.539 - basic_machine=m88k-motorola
8.540 - os=-sysv3
8.541 - ;;
8.542 - dicos)
8.543 - basic_machine=i686-pc
8.544 - os=-dicos
8.545 - ;;
8.546 - djgpp)
8.547 - basic_machine=i586-pc
8.548 - os=-msdosdjgpp
8.549 - ;;
8.550 - dpx20 | dpx20-*)
8.551 - basic_machine=rs6000-bull
8.552 - os=-bosx
8.553 - ;;
8.554 - dpx2* | dpx2*-bull)
8.555 - basic_machine=m68k-bull
8.556 - os=-sysv3
8.557 - ;;
8.558 - ebmon29k)
8.559 - basic_machine=a29k-amd
8.560 - os=-ebmon
8.561 - ;;
8.562 - elxsi)
8.563 - basic_machine=elxsi-elxsi
8.564 - os=-bsd
8.565 - ;;
8.566 - encore | umax | mmax)
8.567 - basic_machine=ns32k-encore
8.568 - ;;
8.569 - es1800 | OSE68k | ose68k | ose | OSE)
8.570 - basic_machine=m68k-ericsson
8.571 - os=-ose
8.572 - ;;
8.573 - fx2800)
8.574 - basic_machine=i860-alliant
8.575 - ;;
8.576 - genix)
8.577 - basic_machine=ns32k-ns
8.578 - ;;
8.579 - gmicro)
8.580 - basic_machine=tron-gmicro
8.581 - os=-sysv
8.582 - ;;
8.583 - go32)
8.584 - basic_machine=i386-pc
8.585 - os=-go32
8.586 - ;;
8.587 - h3050r* | hiux*)
8.588 - basic_machine=hppa1.1-hitachi
8.589 - os=-hiuxwe2
8.590 - ;;
8.591 - h8300hms)
8.592 - basic_machine=h8300-hitachi
8.593 - os=-hms
8.594 - ;;
8.595 - h8300xray)
8.596 - basic_machine=h8300-hitachi
8.597 - os=-xray
8.598 - ;;
8.599 - h8500hms)
8.600 - basic_machine=h8500-hitachi
8.601 - os=-hms
8.602 - ;;
8.603 - harris)
8.604 - basic_machine=m88k-harris
8.605 - os=-sysv3
8.606 - ;;
8.607 - hp300-*)
8.608 - basic_machine=m68k-hp
8.609 - ;;
8.610 - hp300bsd)
8.611 - basic_machine=m68k-hp
8.612 - os=-bsd
8.613 - ;;
8.614 - hp300hpux)
8.615 - basic_machine=m68k-hp
8.616 - os=-hpux
8.617 - ;;
8.618 - hp3k9[0-9][0-9] | hp9[0-9][0-9])
8.619 - basic_machine=hppa1.0-hp
8.620 - ;;
8.621 - hp9k2[0-9][0-9] | hp9k31[0-9])
8.622 - basic_machine=m68000-hp
8.623 - ;;
8.624 - hp9k3[2-9][0-9])
8.625 - basic_machine=m68k-hp
8.626 - ;;
8.627 - hp9k6[0-9][0-9] | hp6[0-9][0-9])
8.628 - basic_machine=hppa1.0-hp
8.629 - ;;
8.630 - hp9k7[0-79][0-9] | hp7[0-79][0-9])
8.631 - basic_machine=hppa1.1-hp
8.632 - ;;
8.633 - hp9k78[0-9] | hp78[0-9])
8.634 - # FIXME: really hppa2.0-hp
8.635 - basic_machine=hppa1.1-hp
8.636 - ;;
8.637 - hp9k8[67]1 | hp8[67]1 | hp9k80[24] | hp80[24] | hp9k8[78]9 | hp8[78]9 | hp9k893 | hp893)
8.638 - # FIXME: really hppa2.0-hp
8.639 - basic_machine=hppa1.1-hp
8.640 - ;;
8.641 - hp9k8[0-9][13679] | hp8[0-9][13679])
8.642 - basic_machine=hppa1.1-hp
8.643 - ;;
8.644 - hp9k8[0-9][0-9] | hp8[0-9][0-9])
8.645 - basic_machine=hppa1.0-hp
8.646 - ;;
8.647 - hppa-next)
8.648 - os=-nextstep3
8.649 - ;;
8.650 - hppaosf)
8.651 - basic_machine=hppa1.1-hp
8.652 - os=-osf
8.653 - ;;
8.654 - hppro)
8.655 - basic_machine=hppa1.1-hp
8.656 - os=-proelf
8.657 - ;;
8.658 - i370-ibm* | ibm*)
8.659 - basic_machine=i370-ibm
8.660 - ;;
8.661 -# I'm not sure what "Sysv32" means. Should this be sysv3.2?
8.662 - i*86v32)
8.663 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
8.664 - os=-sysv32
8.665 - ;;
8.666 - i*86v4*)
8.667 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
8.668 - os=-sysv4
8.669 - ;;
8.670 - i*86v)
8.671 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
8.672 - os=-sysv
8.673 - ;;
8.674 - i*86sol2)
8.675 - basic_machine=`echo $1 | sed -e 's/86.*/86-pc/'`
8.676 - os=-solaris2
8.677 - ;;
8.678 - i386mach)
8.679 - basic_machine=i386-mach
8.680 - os=-mach
8.681 - ;;
8.682 - i386-vsta | vsta)
8.683 - basic_machine=i386-unknown
8.684 - os=-vsta
8.685 - ;;
8.686 - iris | iris4d)
8.687 - basic_machine=mips-sgi
8.688 - case $os in
8.689 - -irix*)
8.690 - ;;
8.691 - *)
8.692 - os=-irix4
8.693 - ;;
8.694 - esac
8.695 - ;;
8.696 - isi68 | isi)
8.697 - basic_machine=m68k-isi
8.698 - os=-sysv
8.699 - ;;
8.700 - m68knommu)
8.701 - basic_machine=m68k-unknown
8.702 - os=-linux
8.703 - ;;
8.704 - m68knommu-*)
8.705 - basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
8.706 - os=-linux
8.707 - ;;
8.708 - m88k-omron*)
8.709 - basic_machine=m88k-omron
8.710 - ;;
8.711 - magnum | m3230)
8.712 - basic_machine=mips-mips
8.713 - os=-sysv
8.714 - ;;
8.715 - merlin)
8.716 - basic_machine=ns32k-utek
8.717 - os=-sysv
8.718 - ;;
8.719 - mingw32)
8.720 - basic_machine=i386-pc
8.721 - os=-mingw32
8.722 - ;;
8.723 - mingw32ce)
8.724 - basic_machine=arm-unknown
8.725 - os=-mingw32ce
8.726 - ;;
8.727 - miniframe)
8.728 - basic_machine=m68000-convergent
8.729 - ;;
8.730 - *mint | -mint[0-9]* | *MiNT | *MiNT[0-9]*)
8.731 - basic_machine=m68k-atari
8.732 - os=-mint
8.733 - ;;
8.734 - mips3*-*)
8.735 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`
8.736 - ;;
8.737 - mips3*)
8.738 - basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
8.739 - ;;
8.740 - monitor)
8.741 - basic_machine=m68k-rom68k
8.742 - os=-coff
8.743 - ;;
8.744 - morphos)
8.745 - basic_machine=powerpc-unknown
8.746 - os=-morphos
8.747 - ;;
8.748 - msdos)
8.749 - basic_machine=i386-pc
8.750 - os=-msdos
8.751 - ;;
8.752 - ms1-*)
8.753 - basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
8.754 - ;;
8.755 - mvs)
8.756 - basic_machine=i370-ibm
8.757 - os=-mvs
8.758 - ;;
8.759 - ncr3000)
8.760 - basic_machine=i486-ncr
8.761 - os=-sysv4
8.762 - ;;
8.763 - netbsd386)
8.764 - basic_machine=i386-unknown
8.765 - os=-netbsd
8.766 - ;;
8.767 - netwinder)
8.768 - basic_machine=armv4l-rebel
8.769 - os=-linux
8.770 - ;;
8.771 - news | news700 | news800 | news900)
8.772 - basic_machine=m68k-sony
8.773 - os=-newsos
8.774 - ;;
8.775 - news1000)
8.776 - basic_machine=m68030-sony
8.777 - os=-newsos
8.778 - ;;
8.779 - news-3600 | risc-news)
8.780 - basic_machine=mips-sony
8.781 - os=-newsos
8.782 - ;;
8.783 - necv70)
8.784 - basic_machine=v70-nec
8.785 - os=-sysv
8.786 - ;;
8.787 - next | m*-next )
8.788 - basic_machine=m68k-next
8.789 - case $os in
8.790 - -nextstep* )
8.791 - ;;
8.792 - -ns2*)
8.793 - os=-nextstep2
8.794 - ;;
8.795 - *)
8.796 - os=-nextstep3
8.797 - ;;
8.798 - esac
8.799 - ;;
8.800 - nh3000)
8.801 - basic_machine=m68k-harris
8.802 - os=-cxux
8.803 - ;;
8.804 - nh[45]000)
8.805 - basic_machine=m88k-harris
8.806 - os=-cxux
8.807 - ;;
8.808 - nindy960)
8.809 - basic_machine=i960-intel
8.810 - os=-nindy
8.811 - ;;
8.812 - mon960)
8.813 - basic_machine=i960-intel
8.814 - os=-mon960
8.815 - ;;
8.816 - nonstopux)
8.817 - basic_machine=mips-compaq
8.818 - os=-nonstopux
8.819 - ;;
8.820 - np1)
8.821 - basic_machine=np1-gould
8.822 - ;;
8.823 - nsr-tandem)
8.824 - basic_machine=nsr-tandem
8.825 - ;;
8.826 - op50n-* | op60c-*)
8.827 - basic_machine=hppa1.1-oki
8.828 - os=-proelf
8.829 - ;;
8.830 - openrisc | openrisc-*)
8.831 - basic_machine=or32-unknown
8.832 - ;;
8.833 - os400)
8.834 - basic_machine=powerpc-ibm
8.835 - os=-os400
8.836 - ;;
8.837 - OSE68000 | ose68000)
8.838 - basic_machine=m68000-ericsson
8.839 - os=-ose
8.840 - ;;
8.841 - os68k)
8.842 - basic_machine=m68k-none
8.843 - os=-os68k
8.844 - ;;
8.845 - pa-hitachi)
8.846 - basic_machine=hppa1.1-hitachi
8.847 - os=-hiuxwe2
8.848 - ;;
8.849 - paragon)
8.850 - basic_machine=i860-intel
8.851 - os=-osf
8.852 - ;;
8.853 - parisc)
8.854 - basic_machine=hppa-unknown
8.855 - os=-linux
8.856 - ;;
8.857 - parisc-*)
8.858 - basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
8.859 - os=-linux
8.860 - ;;
8.861 - pbd)
8.862 - basic_machine=sparc-tti
8.863 - ;;
8.864 - pbb)
8.865 - basic_machine=m68k-tti
8.866 - ;;
8.867 - pc532 | pc532-*)
8.868 - basic_machine=ns32k-pc532
8.869 - ;;
8.870 - pc98)
8.871 - basic_machine=i386-pc
8.872 - ;;
8.873 - pc98-*)
8.874 - basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
8.875 - ;;
8.876 - pentium | p5 | k5 | k6 | nexgen | viac3)
8.877 - basic_machine=i586-pc
8.878 - ;;
8.879 - pentiumpro | p6 | 6x86 | athlon | athlon_*)
8.880 - basic_machine=i686-pc
8.881 - ;;
8.882 - pentiumii | pentium2 | pentiumiii | pentium3)
8.883 - basic_machine=i686-pc
8.884 - ;;
8.885 - pentium4)
8.886 - basic_machine=i786-pc
8.887 - ;;
8.888 - pentium-* | p5-* | k5-* | k6-* | nexgen-* | viac3-*)
8.889 - basic_machine=i586-`echo $basic_machine | sed 's/^[^-]*-//'`
8.890 - ;;
8.891 - pentiumpro-* | p6-* | 6x86-* | athlon-*)
8.892 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
8.893 - ;;
8.894 - pentiumii-* | pentium2-* | pentiumiii-* | pentium3-*)
8.895 - basic_machine=i686-`echo $basic_machine | sed 's/^[^-]*-//'`
8.896 - ;;
8.897 - pentium4-*)
8.898 - basic_machine=i786-`echo $basic_machine | sed 's/^[^-]*-//'`
8.899 - ;;
8.900 - pn)
8.901 - basic_machine=pn-gould
8.902 - ;;
8.903 - power) basic_machine=power-ibm
8.904 - ;;
8.905 - ppc) basic_machine=powerpc-unknown
8.906 - ;;
8.907 - ppc-*) basic_machine=powerpc-`echo $basic_machine | sed 's/^[^-]*-//'`
8.908 - ;;
8.909 - ppcle | powerpclittle | ppc-le | powerpc-little)
8.910 - basic_machine=powerpcle-unknown
8.911 - ;;
8.912 - ppcle-* | powerpclittle-*)
8.913 - basic_machine=powerpcle-`echo $basic_machine | sed 's/^[^-]*-//'`
8.914 - ;;
8.915 - ppc64) basic_machine=powerpc64-unknown
8.916 - ;;
8.917 - ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
8.918 - ;;
8.919 - ppc64le | powerpc64little | ppc64-le | powerpc64-little)
8.920 - basic_machine=powerpc64le-unknown
8.921 - ;;
8.922 - ppc64le-* | powerpc64little-*)
8.923 - basic_machine=powerpc64le-`echo $basic_machine | sed 's/^[^-]*-//'`
8.924 - ;;
8.925 - ps2)
8.926 - basic_machine=i386-ibm
8.927 - ;;
8.928 - pw32)
8.929 - basic_machine=i586-unknown
8.930 - os=-pw32
8.931 - ;;
8.932 - rdos)
8.933 - basic_machine=i386-pc
8.934 - os=-rdos
8.935 - ;;
8.936 - rom68k)
8.937 - basic_machine=m68k-rom68k
8.938 - os=-coff
8.939 - ;;
8.940 - rm[46]00)
8.941 - basic_machine=mips-siemens
8.942 - ;;
8.943 - rtpc | rtpc-*)
8.944 - basic_machine=romp-ibm
8.945 - ;;
8.946 - s390 | s390-*)
8.947 - basic_machine=s390-ibm
8.948 - ;;
8.949 - s390x | s390x-*)
8.950 - basic_machine=s390x-ibm
8.951 - ;;
8.952 - sa29200)
8.953 - basic_machine=a29k-amd
8.954 - os=-udi
8.955 - ;;
8.956 - sb1)
8.957 - basic_machine=mipsisa64sb1-unknown
8.958 - ;;
8.959 - sb1el)
8.960 - basic_machine=mipsisa64sb1el-unknown
8.961 - ;;
8.962 - sde)
8.963 - basic_machine=mipsisa32-sde
8.964 - os=-elf
8.965 - ;;
8.966 - sei)
8.967 - basic_machine=mips-sei
8.968 - os=-seiux
8.969 - ;;
8.970 - sequent)
8.971 - basic_machine=i386-sequent
8.972 - ;;
8.973 - sh)
8.974 - basic_machine=sh-hitachi
8.975 - os=-hms
8.976 - ;;
8.977 - sh5el)
8.978 - basic_machine=sh5le-unknown
8.979 - ;;
8.980 - sh64)
8.981 - basic_machine=sh64-unknown
8.982 - ;;
8.983 - sparclite-wrs | simso-wrs)
8.984 - basic_machine=sparclite-wrs
8.985 - os=-vxworks
8.986 - ;;
8.987 - sps7)
8.988 - basic_machine=m68k-bull
8.989 - os=-sysv2
8.990 - ;;
8.991 - spur)
8.992 - basic_machine=spur-unknown
8.993 - ;;
8.994 - st2000)
8.995 - basic_machine=m68k-tandem
8.996 - ;;
8.997 - stratus)
8.998 - basic_machine=i860-stratus
8.999 - os=-sysv4
8.1000 - ;;
8.1001 - sun2)
8.1002 - basic_machine=m68000-sun
8.1003 - ;;
8.1004 - sun2os3)
8.1005 - basic_machine=m68000-sun
8.1006 - os=-sunos3
8.1007 - ;;
8.1008 - sun2os4)
8.1009 - basic_machine=m68000-sun
8.1010 - os=-sunos4
8.1011 - ;;
8.1012 - sun3os3)
8.1013 - basic_machine=m68k-sun
8.1014 - os=-sunos3
8.1015 - ;;
8.1016 - sun3os4)
8.1017 - basic_machine=m68k-sun
8.1018 - os=-sunos4
8.1019 - ;;
8.1020 - sun4os3)
8.1021 - basic_machine=sparc-sun
8.1022 - os=-sunos3
8.1023 - ;;
8.1024 - sun4os4)
8.1025 - basic_machine=sparc-sun
8.1026 - os=-sunos4
8.1027 - ;;
8.1028 - sun4sol2)
8.1029 - basic_machine=sparc-sun
8.1030 - os=-solaris2
8.1031 - ;;
8.1032 - sun3 | sun3-*)
8.1033 - basic_machine=m68k-sun
8.1034 - ;;
8.1035 - sun4)
8.1036 - basic_machine=sparc-sun
8.1037 - ;;
8.1038 - sun386 | sun386i | roadrunner)
8.1039 - basic_machine=i386-sun
8.1040 - ;;
8.1041 - sv1)
8.1042 - basic_machine=sv1-cray
8.1043 - os=-unicos
8.1044 - ;;
8.1045 - symmetry)
8.1046 - basic_machine=i386-sequent
8.1047 - os=-dynix
8.1048 - ;;
8.1049 - t3e)
8.1050 - basic_machine=alphaev5-cray
8.1051 - os=-unicos
8.1052 - ;;
8.1053 - t90)
8.1054 - basic_machine=t90-cray
8.1055 - os=-unicos
8.1056 - ;;
8.1057 - tic54x | c54x*)
8.1058 - basic_machine=tic54x-unknown
8.1059 - os=-coff
8.1060 - ;;
8.1061 - tic55x | c55x*)
8.1062 - basic_machine=tic55x-unknown
8.1063 - os=-coff
8.1064 - ;;
8.1065 - tic6x | c6x*)
8.1066 - basic_machine=tic6x-unknown
8.1067 - os=-coff
8.1068 - ;;
8.1069 - tile*)
8.1070 - basic_machine=tile-unknown
8.1071 - os=-linux-gnu
8.1072 - ;;
8.1073 - tx39)
8.1074 - basic_machine=mipstx39-unknown
8.1075 - ;;
8.1076 - tx39el)
8.1077 - basic_machine=mipstx39el-unknown
8.1078 - ;;
8.1079 - toad1)
8.1080 - basic_machine=pdp10-xkl
8.1081 - os=-tops20
8.1082 - ;;
8.1083 - tower | tower-32)
8.1084 - basic_machine=m68k-ncr
8.1085 - ;;
8.1086 - tpf)
8.1087 - basic_machine=s390x-ibm
8.1088 - os=-tpf
8.1089 - ;;
8.1090 - udi29k)
8.1091 - basic_machine=a29k-amd
8.1092 - os=-udi
8.1093 - ;;
8.1094 - ultra3)
8.1095 - basic_machine=a29k-nyu
8.1096 - os=-sym1
8.1097 - ;;
8.1098 - v810 | necv810)
8.1099 - basic_machine=v810-nec
8.1100 - os=-none
8.1101 - ;;
8.1102 - vaxv)
8.1103 - basic_machine=vax-dec
8.1104 - os=-sysv
8.1105 - ;;
8.1106 - vms)
8.1107 - basic_machine=vax-dec
8.1108 - os=-vms
8.1109 - ;;
8.1110 - vpp*|vx|vx-*)
8.1111 - basic_machine=f301-fujitsu
8.1112 - ;;
8.1113 - vxworks960)
8.1114 - basic_machine=i960-wrs
8.1115 - os=-vxworks
8.1116 - ;;
8.1117 - vxworks68)
8.1118 - basic_machine=m68k-wrs
8.1119 - os=-vxworks
8.1120 - ;;
8.1121 - vxworks29k)
8.1122 - basic_machine=a29k-wrs
8.1123 - os=-vxworks
8.1124 - ;;
8.1125 - w65*)
8.1126 - basic_machine=w65-wdc
8.1127 - os=-none
8.1128 - ;;
8.1129 - w89k-*)
8.1130 - basic_machine=hppa1.1-winbond
8.1131 - os=-proelf
8.1132 - ;;
8.1133 - xbox)
8.1134 - basic_machine=i686-pc
8.1135 - os=-mingw32
8.1136 - ;;
8.1137 - xps | xps100)
8.1138 - basic_machine=xps100-honeywell
8.1139 - ;;
8.1140 - ymp)
8.1141 - basic_machine=ymp-cray
8.1142 - os=-unicos
8.1143 - ;;
8.1144 - z8k-*-coff)
8.1145 - basic_machine=z8k-unknown
8.1146 - os=-sim
8.1147 - ;;
8.1148 - z80-*-coff)
8.1149 - basic_machine=z80-unknown
8.1150 - os=-sim
8.1151 - ;;
8.1152 - none)
8.1153 - basic_machine=none-none
8.1154 - os=-none
8.1155 - ;;
8.1156 -
8.1157 -# Here we handle the default manufacturer of certain CPU types. It is in
8.1158 -# some cases the only manufacturer, in others, it is the most popular.
8.1159 - w89k)
8.1160 - basic_machine=hppa1.1-winbond
8.1161 - ;;
8.1162 - op50n)
8.1163 - basic_machine=hppa1.1-oki
8.1164 - ;;
8.1165 - op60c)
8.1166 - basic_machine=hppa1.1-oki
8.1167 - ;;
8.1168 - romp)
8.1169 - basic_machine=romp-ibm
8.1170 - ;;
8.1171 - mmix)
8.1172 - basic_machine=mmix-knuth
8.1173 - ;;
8.1174 - rs6000)
8.1175 - basic_machine=rs6000-ibm
8.1176 - ;;
8.1177 - vax)
8.1178 - basic_machine=vax-dec
8.1179 - ;;
8.1180 - pdp10)
8.1181 - # there are many clones, so DEC is not a safe bet
8.1182 - basic_machine=pdp10-unknown
8.1183 - ;;
8.1184 - pdp11)
8.1185 - basic_machine=pdp11-dec
8.1186 - ;;
8.1187 - we32k)
8.1188 - basic_machine=we32k-att
8.1189 - ;;
8.1190 - sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
8.1191 - basic_machine=sh-unknown
8.1192 - ;;
8.1193 - sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
8.1194 - basic_machine=sparc-sun
8.1195 - ;;
8.1196 - cydra)
8.1197 - basic_machine=cydra-cydrome
8.1198 - ;;
8.1199 - orion)
8.1200 - basic_machine=orion-highlevel
8.1201 - ;;
8.1202 - orion105)
8.1203 - basic_machine=clipper-highlevel
8.1204 - ;;
8.1205 - mac | mpw | mac-mpw)
8.1206 - basic_machine=m68k-apple
8.1207 - ;;
8.1208 - pmac | pmac-mpw)
8.1209 - basic_machine=powerpc-apple
8.1210 - ;;
8.1211 - *-unknown)
8.1212 - # Make sure to match an already-canonicalized machine name.
8.1213 - ;;
8.1214 - *)
8.1215 - echo Invalid configuration \`$1\': machine \`$basic_machine\' not recognized 1>&2
8.1216 - exit 1
8.1217 - ;;
8.1218 -esac
8.1219 -
8.1220 -# Here we canonicalize certain aliases for manufacturers.
8.1221 -case $basic_machine in
8.1222 - *-digital*)
8.1223 - basic_machine=`echo $basic_machine | sed 's/digital.*/dec/'`
8.1224 - ;;
8.1225 - *-commodore*)
8.1226 - basic_machine=`echo $basic_machine | sed 's/commodore.*/cbm/'`
8.1227 - ;;
8.1228 - *)
8.1229 - ;;
8.1230 -esac
8.1231 -
8.1232 -# Decode manufacturer-specific aliases for certain operating systems.
8.1233 -
8.1234 -if [ x"$os" != x"" ]
8.1235 -then
8.1236 -case $os in
8.1237 - # First match some system type aliases
8.1238 - # that might get confused with valid system types.
8.1239 - # -solaris* is a basic system type, with this one exception.
8.1240 - -solaris1 | -solaris1.*)
8.1241 - os=`echo $os | sed -e 's|solaris1|sunos4|'`
8.1242 - ;;
8.1243 - -solaris)
8.1244 - os=-solaris2
8.1245 - ;;
8.1246 - -svr4*)
8.1247 - os=-sysv4
8.1248 - ;;
8.1249 - -unixware*)
8.1250 - os=-sysv4.2uw
8.1251 - ;;
8.1252 - -gnu/linux*)
8.1253 - os=`echo $os | sed -e 's|gnu/linux|linux-gnu|'`
8.1254 - ;;
8.1255 - # First accept the basic system types.
8.1256 - # The portable systems comes first.
8.1257 - # Each alternative MUST END IN A *, to match a version number.
8.1258 - # -sysv* is not here because it comes later, after sysvr4.
8.1259 - -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
8.1260 - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
8.1261 - | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
8.1262 - | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
8.1263 - | -aos* \
8.1264 - | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
8.1265 - | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
8.1266 - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
8.1267 - | -openbsd* | -solidbsd* \
8.1268 - | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
8.1269 - | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
8.1270 - | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
8.1271 - | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
8.1272 - | -chorusos* | -chorusrdb* | -cegcc* \
8.1273 - | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
8.1274 - | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
8.1275 - | -uxpv* | -beos* | -mpeix* | -udk* \
8.1276 - | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
8.1277 - | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
8.1278 - | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
8.1279 - | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
8.1280 - | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
8.1281 - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
8.1282 - | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
8.1283 - # Remember, each alternative MUST END IN *, to match a version number.
8.1284 - ;;
8.1285 - -qnx*)
8.1286 - case $basic_machine in
8.1287 - x86-* | i*86-*)
8.1288 - ;;
8.1289 - *)
8.1290 - os=-nto$os
8.1291 - ;;
8.1292 - esac
8.1293 - ;;
8.1294 - -nto-qnx*)
8.1295 - ;;
8.1296 - -nto*)
8.1297 - os=`echo $os | sed -e 's|nto|nto-qnx|'`
8.1298 - ;;
8.1299 - -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
8.1300 - | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
8.1301 - | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
8.1302 - ;;
8.1303 - -mac*)
8.1304 - os=`echo $os | sed -e 's|mac|macos|'`
8.1305 - ;;
8.1306 - -linux-dietlibc)
8.1307 - os=-linux-dietlibc
8.1308 - ;;
8.1309 - -linux*)
8.1310 - os=`echo $os | sed -e 's|linux|linux-gnu|'`
8.1311 - ;;
8.1312 - -sunos5*)
8.1313 - os=`echo $os | sed -e 's|sunos5|solaris2|'`
8.1314 - ;;
8.1315 - -sunos6*)
8.1316 - os=`echo $os | sed -e 's|sunos6|solaris3|'`
8.1317 - ;;
8.1318 - -opened*)
8.1319 - os=-openedition
8.1320 - ;;
8.1321 - -os400*)
8.1322 - os=-os400
8.1323 - ;;
8.1324 - -wince*)
8.1325 - os=-wince
8.1326 - ;;
8.1327 - -osfrose*)
8.1328 - os=-osfrose
8.1329 - ;;
8.1330 - -osf*)
8.1331 - os=-osf
8.1332 - ;;
8.1333 - -utek*)
8.1334 - os=-bsd
8.1335 - ;;
8.1336 - -dynix*)
8.1337 - os=-bsd
8.1338 - ;;
8.1339 - -acis*)
8.1340 - os=-aos
8.1341 - ;;
8.1342 - -atheos*)
8.1343 - os=-atheos
8.1344 - ;;
8.1345 - -syllable*)
8.1346 - os=-syllable
8.1347 - ;;
8.1348 - -386bsd)
8.1349 - os=-bsd
8.1350 - ;;
8.1351 - -ctix* | -uts*)
8.1352 - os=-sysv
8.1353 - ;;
8.1354 - -nova*)
8.1355 - os=-rtmk-nova
8.1356 - ;;
8.1357 - -ns2 )
8.1358 - os=-nextstep2
8.1359 - ;;
8.1360 - -nsk*)
8.1361 - os=-nsk
8.1362 - ;;
8.1363 - # Preserve the version number of sinix5.
8.1364 - -sinix5.*)
8.1365 - os=`echo $os | sed -e 's|sinix|sysv|'`
8.1366 - ;;
8.1367 - -sinix*)
8.1368 - os=-sysv4
8.1369 - ;;
8.1370 - -tpf*)
8.1371 - os=-tpf
8.1372 - ;;
8.1373 - -triton*)
8.1374 - os=-sysv3
8.1375 - ;;
8.1376 - -oss*)
8.1377 - os=-sysv3
8.1378 - ;;
8.1379 - -svr4)
8.1380 - os=-sysv4
8.1381 - ;;
8.1382 - -svr3)
8.1383 - os=-sysv3
8.1384 - ;;
8.1385 - -sysvr4)
8.1386 - os=-sysv4
8.1387 - ;;
8.1388 - # This must come after -sysvr4.
8.1389 - -sysv*)
8.1390 - ;;
8.1391 - -ose*)
8.1392 - os=-ose
8.1393 - ;;
8.1394 - -es1800*)
8.1395 - os=-ose
8.1396 - ;;
8.1397 - -xenix)
8.1398 - os=-xenix
8.1399 - ;;
8.1400 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
8.1401 - os=-mint
8.1402 - ;;
8.1403 - -aros*)
8.1404 - os=-aros
8.1405 - ;;
8.1406 - -kaos*)
8.1407 - os=-kaos
8.1408 - ;;
8.1409 - -zvmoe)
8.1410 - os=-zvmoe
8.1411 - ;;
8.1412 - -dicos*)
8.1413 - os=-dicos
8.1414 - ;;
8.1415 - -none)
8.1416 - ;;
8.1417 - *)
8.1418 - # Get rid of the `-' at the beginning of $os.
8.1419 - os=`echo $os | sed 's/[^-]*-//'`
8.1420 - echo Invalid configuration \`$1\': system \`$os\' not recognized 1>&2
8.1421 - exit 1
8.1422 - ;;
8.1423 -esac
8.1424 -else
8.1425 -
8.1426 -# Here we handle the default operating systems that come with various machines.
8.1427 -# The value should be what the vendor currently ships out the door with their
8.1428 -# machine or put another way, the most popular os provided with the machine.
8.1429 -
8.1430 -# Note that if you're going to try to match "-MANUFACTURER" here (say,
8.1431 -# "-sun"), then you have to tell the case statement up towards the top
8.1432 -# that MANUFACTURER isn't an operating system. Otherwise, code above
8.1433 -# will signal an error saying that MANUFACTURER isn't an operating
8.1434 -# system, and we'll never get to this point.
8.1435 -
8.1436 -case $basic_machine in
8.1437 - score-*)
8.1438 - os=-elf
8.1439 - ;;
8.1440 - spu-*)
8.1441 - os=-elf
8.1442 - ;;
8.1443 - *-acorn)
8.1444 - os=-riscix1.2
8.1445 - ;;
8.1446 - arm*-rebel)
8.1447 - os=-linux
8.1448 - ;;
8.1449 - arm*-semi)
8.1450 - os=-aout
8.1451 - ;;
8.1452 - c4x-* | tic4x-*)
8.1453 - os=-coff
8.1454 - ;;
8.1455 - # This must come before the *-dec entry.
8.1456 - pdp10-*)
8.1457 - os=-tops20
8.1458 - ;;
8.1459 - pdp11-*)
8.1460 - os=-none
8.1461 - ;;
8.1462 - *-dec | vax-*)
8.1463 - os=-ultrix4.2
8.1464 - ;;
8.1465 - m68*-apollo)
8.1466 - os=-domain
8.1467 - ;;
8.1468 - i386-sun)
8.1469 - os=-sunos4.0.2
8.1470 - ;;
8.1471 - m68000-sun)
8.1472 - os=-sunos3
8.1473 - # This also exists in the configure program, but was not the
8.1474 - # default.
8.1475 - # os=-sunos4
8.1476 - ;;
8.1477 - m68*-cisco)
8.1478 - os=-aout
8.1479 - ;;
8.1480 - mep-*)
8.1481 - os=-elf
8.1482 - ;;
8.1483 - mips*-cisco)
8.1484 - os=-elf
8.1485 - ;;
8.1486 - mips*-*)
8.1487 - os=-elf
8.1488 - ;;
8.1489 - or32-*)
8.1490 - os=-coff
8.1491 - ;;
8.1492 - *-tti) # must be before sparc entry or we get the wrong os.
8.1493 - os=-sysv3
8.1494 - ;;
8.1495 - sparc-* | *-sun)
8.1496 - os=-sunos4.1.1
8.1497 - ;;
8.1498 - *-be)
8.1499 - os=-beos
8.1500 - ;;
8.1501 - *-haiku)
8.1502 - os=-haiku
8.1503 - ;;
8.1504 - *-ibm)
8.1505 - os=-aix
8.1506 - ;;
8.1507 - *-knuth)
8.1508 - os=-mmixware
8.1509 - ;;
8.1510 - *-wec)
8.1511 - os=-proelf
8.1512 - ;;
8.1513 - *-winbond)
8.1514 - os=-proelf
8.1515 - ;;
8.1516 - *-oki)
8.1517 - os=-proelf
8.1518 - ;;
8.1519 - *-hp)
8.1520 - os=-hpux
8.1521 - ;;
8.1522 - *-hitachi)
8.1523 - os=-hiux
8.1524 - ;;
8.1525 - i860-* | *-att | *-ncr | *-altos | *-motorola | *-convergent)
8.1526 - os=-sysv
8.1527 - ;;
8.1528 - *-cbm)
8.1529 - os=-amigaos
8.1530 - ;;
8.1531 - *-dg)
8.1532 - os=-dgux
8.1533 - ;;
8.1534 - *-dolphin)
8.1535 - os=-sysv3
8.1536 - ;;
8.1537 - m68k-ccur)
8.1538 - os=-rtu
8.1539 - ;;
8.1540 - m88k-omron*)
8.1541 - os=-luna
8.1542 - ;;
8.1543 - *-next )
8.1544 - os=-nextstep
8.1545 - ;;
8.1546 - *-sequent)
8.1547 - os=-ptx
8.1548 - ;;
8.1549 - *-crds)
8.1550 - os=-unos
8.1551 - ;;
8.1552 - *-ns)
8.1553 - os=-genix
8.1554 - ;;
8.1555 - i370-*)
8.1556 - os=-mvs
8.1557 - ;;
8.1558 - *-next)
8.1559 - os=-nextstep3
8.1560 - ;;
8.1561 - *-gould)
8.1562 - os=-sysv
8.1563 - ;;
8.1564 - *-highlevel)
8.1565 - os=-bsd
8.1566 - ;;
8.1567 - *-encore)
8.1568 - os=-bsd
8.1569 - ;;
8.1570 - *-sgi)
8.1571 - os=-irix
8.1572 - ;;
8.1573 - *-siemens)
8.1574 - os=-sysv4
8.1575 - ;;
8.1576 - *-masscomp)
8.1577 - os=-rtu
8.1578 - ;;
8.1579 - f30[01]-fujitsu | f700-fujitsu)
8.1580 - os=-uxpv
8.1581 - ;;
8.1582 - *-rom68k)
8.1583 - os=-coff
8.1584 - ;;
8.1585 - *-*bug)
8.1586 - os=-coff
8.1587 - ;;
8.1588 - *-apple)
8.1589 - os=-macos
8.1590 - ;;
8.1591 - *-atari*)
8.1592 - os=-mint
8.1593 - ;;
8.1594 - *)
8.1595 - os=-none
8.1596 - ;;
8.1597 -esac
8.1598 -fi
8.1599 -
8.1600 -# Here we handle the case where we know the os, and the CPU type, but not the
8.1601 -# manufacturer. We pick the logical manufacturer.
8.1602 -vendor=unknown
8.1603 -case $basic_machine in
8.1604 - *-unknown)
8.1605 - case $os in
8.1606 - -riscix*)
8.1607 - vendor=acorn
8.1608 - ;;
8.1609 - -sunos*)
8.1610 - vendor=sun
8.1611 - ;;
8.1612 - -aix*)
8.1613 - vendor=ibm
8.1614 - ;;
8.1615 - -beos*)
8.1616 - vendor=be
8.1617 - ;;
8.1618 - -hpux*)
8.1619 - vendor=hp
8.1620 - ;;
8.1621 - -mpeix*)
8.1622 - vendor=hp
8.1623 - ;;
8.1624 - -hiux*)
8.1625 - vendor=hitachi
8.1626 - ;;
8.1627 - -unos*)
8.1628 - vendor=crds
8.1629 - ;;
8.1630 - -dgux*)
8.1631 - vendor=dg
8.1632 - ;;
8.1633 - -luna*)
8.1634 - vendor=omron
8.1635 - ;;
8.1636 - -genix*)
8.1637 - vendor=ns
8.1638 - ;;
8.1639 - -mvs* | -opened*)
8.1640 - vendor=ibm
8.1641 - ;;
8.1642 - -os400*)
8.1643 - vendor=ibm
8.1644 - ;;
8.1645 - -ptx*)
8.1646 - vendor=sequent
8.1647 - ;;
8.1648 - -tpf*)
8.1649 - vendor=ibm
8.1650 - ;;
8.1651 - -vxsim* | -vxworks* | -windiss*)
8.1652 - vendor=wrs
8.1653 - ;;
8.1654 - -aux*)
8.1655 - vendor=apple
8.1656 - ;;
8.1657 - -hms*)
8.1658 - vendor=hitachi
8.1659 - ;;
8.1660 - -mpw* | -macos*)
8.1661 - vendor=apple
8.1662 - ;;
8.1663 - -*mint | -mint[0-9]* | -*MiNT | -MiNT[0-9]*)
8.1664 - vendor=atari
8.1665 - ;;
8.1666 - -vos*)
8.1667 - vendor=stratus
8.1668 - ;;
8.1669 - esac
8.1670 - basic_machine=`echo $basic_machine | sed "s/unknown/$vendor/"`
8.1671 - ;;
8.1672 -esac
8.1673 -
8.1674 -echo $basic_machine$os
8.1675 -exit
8.1676 -
8.1677 -# Local variables:
8.1678 -# eval: (add-hook 'write-file-hooks 'time-stamp)
8.1679 -# time-stamp-start: "timestamp='"
8.1680 -# time-stamp-format: "%:y-%02m-%02d"
8.1681 -# time-stamp-end: "'"
8.1682 -# End:
9.1 --- a/tools/tools.mk Tue Dec 16 18:03:28 2008 +0000
9.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
9.3 @@ -1,57 +0,0 @@
9.4 -# Makefile for the tools/ sub-directory
9.5 -
9.6 -# Here, we can update the config.* scripts.
9.7 -# If we're in CT_LIB_DIR, then CT_LIB_DIR == CT_TOP_DIR, and we can update those
9.8 -# scripts for later inclusion mainline. If CT_LIB_DIR != CT_TOP_DIR, then those
9.9 -# scripts are downloaded only for use in CT_TOP_DIR.
9.10 -
9.11 -# ----------------------------------------------------------
9.12 -# The tools help entry
9.13 -
9.14 -help-distrib::
9.15 - @echo ' updatetools - Update the config tools'
9.16 -
9.17 -# ----------------------------------------------------------
9.18 -# Where to get tools from, and where to store them into
9.19 -# The tools are: config.guess and config.sub
9.20 -
9.21 -CONFIG_SUB_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD"
9.22 -CONFIG_SUB_DEST=tools/config.sub
9.23 -CONFIG_GUESS_SRC="http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD"
9.24 -CONFIG_GUESS_DEST=tools/config.guess
9.25 -
9.26 -# Kludge: we have a step that is called 'tools', and thus we can not define a
9.27 -# rule here that is named 'tools'. Naming it 'tools/' does not help either.
9.28 -# Thus, prepend the top directory to have a single rule description. This is
9.29 -# not as bad as it seems, because it is only refered to by teo rules in this
9.30 -# file, but still it is a kludge...
9.31 -$(CT_TOP_DIR)/tools:
9.32 - $(SILENT)mkdir -p tools
9.33 -
9.34 -PHONY += updatetools
9.35 -updatetools: $(CONFIG_SUB_DEST) $(CONFIG_GUESS_DEST)
9.36 -
9.37 -# ----------------------------------------------------------
9.38 -# How to retrieve the tools
9.39 -
9.40 -wget_opt=-o /dev/null
9.41 -ifeq ($(strip $(V)),2)
9.42 - wget_opt=
9.43 -endif
9.44 -
9.45 -$(CONFIG_SUB_DEST): .FORCE $(CT_TOP_DIR)/tools
9.46 - @$(ECHO) ' WGET $@'
9.47 - $(SILENT)wget $(wget_opt) -O $@ $(CONFIG_SUB_SRC)
9.48 - $(SILENT)chmod u+rwx,go+rx-w $@
9.49 -
9.50 -$(CONFIG_GUESS_DEST): .FORCE $(CT_TOP_DIR)/tools
9.51 - @$(ECHO) ' WGET $@'
9.52 - $(SILENT)wget $(wget_opt) -O $@ $(CONFIG_GUESS_SRC)
9.53 - $(SILENT)chmod u+rwx,go+rx-w $@
9.54 -
9.55 -# ----------------------------------------------------------
9.56 -# Clean up the mess
9.57 -
9.58 -distclean::
9.59 - @$(ECHO) " CLEAN tools"
9.60 - $(SILENT)[ $(CT_TOP_DIR) = $(CT_LIB_DIR) ] || rm -rf $(CT_TOP_DIR)/tools