config.guess revision 70f7c90c
1a850946eSmrg#! /bin/sh 2a850946eSmrg# Attempt to guess a canonical system name. 3a850946eSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 470f7c90cSmrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 570f7c90cSmrg# Free Software Foundation, Inc. 6a850946eSmrg 770f7c90cSmrgtimestamp='2009-04-27' 8a850946eSmrg 9a850946eSmrg# This file is free software; you can redistribute it and/or modify it 10a850946eSmrg# under the terms of the GNU General Public License as published by 11a850946eSmrg# the Free Software Foundation; either version 2 of the License, or 12a850946eSmrg# (at your option) any later version. 13a850946eSmrg# 14a850946eSmrg# This program is distributed in the hope that it will be useful, but 15a850946eSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 16a850946eSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17a850946eSmrg# General Public License for more details. 18a850946eSmrg# 19a850946eSmrg# You should have received a copy of the GNU General Public License 20a850946eSmrg# along with this program; if not, write to the Free Software 2170f7c90cSmrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2270f7c90cSmrg# 02110-1301, USA. 23a850946eSmrg# 24a850946eSmrg# As a special exception to the GNU General Public License, if you 25a850946eSmrg# distribute this file as part of a program that contains a 26a850946eSmrg# configuration script generated by Autoconf, you may include it under 27a850946eSmrg# the same distribution terms that you use for the rest of that program. 28a850946eSmrg 2970f7c90cSmrg 30a850946eSmrg# Originally written by Per Bothner <per@bothner.com>. 31a850946eSmrg# Please send patches to <config-patches@gnu.org>. Submit a context 32a850946eSmrg# diff and a properly formatted ChangeLog entry. 33a850946eSmrg# 34a850946eSmrg# This script attempts to guess a canonical system name similar to 35a850946eSmrg# config.sub. If it succeeds, it prints the system name on stdout, and 36a850946eSmrg# exits with 0. Otherwise, it exits with 1. 37a850946eSmrg# 38a850946eSmrg# The plan is that this can be called by configure scripts if you 39a850946eSmrg# don't specify an explicit build system type. 40a850946eSmrg 41a850946eSmrgme=`echo "$0" | sed -e 's,.*/,,'` 42a850946eSmrg 43a850946eSmrgusage="\ 44a850946eSmrgUsage: $0 [OPTION] 45a850946eSmrg 46a850946eSmrgOutput the configuration name of the system \`$me' is run on. 47a850946eSmrg 48a850946eSmrgOperation modes: 49a850946eSmrg -h, --help print this help, then exit 50a850946eSmrg -t, --time-stamp print date of last modification, then exit 51a850946eSmrg -v, --version print version number, then exit 52a850946eSmrg 53a850946eSmrgReport bugs and patches to <config-patches@gnu.org>." 54a850946eSmrg 55a850946eSmrgversion="\ 56a850946eSmrgGNU config.guess ($timestamp) 57a850946eSmrg 58a850946eSmrgOriginally written by Per Bothner. 5970f7c90cSmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 6070f7c90cSmrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 61a850946eSmrg 62a850946eSmrgThis is free software; see the source for copying conditions. There is NO 63a850946eSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 64a850946eSmrg 65a850946eSmrghelp=" 66a850946eSmrgTry \`$me --help' for more information." 67a850946eSmrg 68a850946eSmrg# Parse command line 69a850946eSmrgwhile test $# -gt 0 ; do 70a850946eSmrg case $1 in 71a850946eSmrg --time-stamp | --time* | -t ) 7270f7c90cSmrg echo "$timestamp" ; exit ;; 73a850946eSmrg --version | -v ) 7470f7c90cSmrg echo "$version" ; exit ;; 75a850946eSmrg --help | --h* | -h ) 7670f7c90cSmrg echo "$usage"; exit ;; 77a850946eSmrg -- ) # Stop option processing 78a850946eSmrg shift; break ;; 79a850946eSmrg - ) # Use stdin as input. 80a850946eSmrg break ;; 81a850946eSmrg -* ) 82a850946eSmrg echo "$me: invalid option $1$help" >&2 83a850946eSmrg exit 1 ;; 84a850946eSmrg * ) 85a850946eSmrg break ;; 86a850946eSmrg esac 87a850946eSmrgdone 88a850946eSmrg 89a850946eSmrgif test $# != 0; then 90a850946eSmrg echo "$me: too many arguments$help" >&2 91a850946eSmrg exit 1 92a850946eSmrgfi 93a850946eSmrg 94a850946eSmrgtrap 'exit 1' 1 2 15 95a850946eSmrg 96a850946eSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 97a850946eSmrg# compiler to aid in system detection is discouraged as it requires 98a850946eSmrg# temporary files to be created and, as you can see below, it is a 99a850946eSmrg# headache to deal with in a portable fashion. 100a850946eSmrg 101a850946eSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 102a850946eSmrg# use `HOST_CC' if defined, but it is deprecated. 103a850946eSmrg 104a850946eSmrg# Portable tmp directory creation inspired by the Autoconf team. 105a850946eSmrg 106a850946eSmrgset_cc_for_build=' 107a850946eSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 108a850946eSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 109a850946eSmrg: ${TMPDIR=/tmp} ; 11070f7c90cSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 111a850946eSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 112a850946eSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 113a850946eSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 114a850946eSmrgdummy=$tmp/dummy ; 115a850946eSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 116a850946eSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 117a850946eSmrg ,,) echo "int x;" > $dummy.c ; 118a850946eSmrg for c in cc gcc c89 c99 ; do 119a850946eSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 120a850946eSmrg CC_FOR_BUILD="$c"; break ; 121a850946eSmrg fi ; 122a850946eSmrg done ; 123a850946eSmrg if test x"$CC_FOR_BUILD" = x ; then 124a850946eSmrg CC_FOR_BUILD=no_compiler_found ; 125a850946eSmrg fi 126a850946eSmrg ;; 127a850946eSmrg ,,*) CC_FOR_BUILD=$CC ;; 128a850946eSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12970f7c90cSmrgesac ; set_cc_for_build= ;' 130a850946eSmrg 131a850946eSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 132a850946eSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 133a850946eSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 134a850946eSmrg PATH=$PATH:/.attbin ; export PATH 135a850946eSmrgfi 136a850946eSmrg 137a850946eSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 138a850946eSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 139a850946eSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 140a850946eSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 141a850946eSmrg 142a850946eSmrg# Note: order is significant - the case branches are not exclusive. 143a850946eSmrg 144a850946eSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 145a850946eSmrg *:NetBSD:*:*) 146a850946eSmrg # NetBSD (nbsd) targets should (where applicable) match one or 147a850946eSmrg # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 148a850946eSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 149a850946eSmrg # switched to ELF, *-*-netbsd* would select the old 150a850946eSmrg # object file format. This provides both forward 151a850946eSmrg # compatibility and a consistent mechanism for selecting the 152a850946eSmrg # object file format. 153a850946eSmrg # 154a850946eSmrg # Note: NetBSD doesn't particularly care about the vendor 155a850946eSmrg # portion of the name. We always set it to "unknown". 156a850946eSmrg sysctl="sysctl -n hw.machine_arch" 157a850946eSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 158a850946eSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 159a850946eSmrg case "${UNAME_MACHINE_ARCH}" in 160a850946eSmrg armeb) machine=armeb-unknown ;; 161a850946eSmrg arm*) machine=arm-unknown ;; 162a850946eSmrg sh3el) machine=shl-unknown ;; 163a850946eSmrg sh3eb) machine=sh-unknown ;; 16470f7c90cSmrg sh5el) machine=sh5le-unknown ;; 165a850946eSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 166a850946eSmrg esac 167a850946eSmrg # The Operating System including object format, if it has switched 168a850946eSmrg # to ELF recently, or will in the future. 169a850946eSmrg case "${UNAME_MACHINE_ARCH}" in 170a850946eSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 171a850946eSmrg eval $set_cc_for_build 172a850946eSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 173a850946eSmrg | grep __ELF__ >/dev/null 174a850946eSmrg then 175a850946eSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 176a850946eSmrg # Return netbsd for either. FIX? 177a850946eSmrg os=netbsd 178a850946eSmrg else 179a850946eSmrg os=netbsdelf 180a850946eSmrg fi 181a850946eSmrg ;; 182a850946eSmrg *) 183a850946eSmrg os=netbsd 184a850946eSmrg ;; 185a850946eSmrg esac 186a850946eSmrg # The OS release 187a850946eSmrg # Debian GNU/NetBSD machines have a different userland, and 188a850946eSmrg # thus, need a distinct triplet. However, they do not need 189a850946eSmrg # kernel version information, so it can be replaced with a 190a850946eSmrg # suitable tag, in the style of linux-gnu. 191a850946eSmrg case "${UNAME_VERSION}" in 192a850946eSmrg Debian*) 193a850946eSmrg release='-gnu' 194a850946eSmrg ;; 195a850946eSmrg *) 196a850946eSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 197a850946eSmrg ;; 198a850946eSmrg esac 199a850946eSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 200a850946eSmrg # contains redundant information, the shorter form: 201a850946eSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 202a850946eSmrg echo "${machine}-${os}${release}" 20370f7c90cSmrg exit ;; 204a850946eSmrg *:OpenBSD:*:*) 20570f7c90cSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 20670f7c90cSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 20770f7c90cSmrg exit ;; 20870f7c90cSmrg *:ekkoBSD:*:*) 20970f7c90cSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 21070f7c90cSmrg exit ;; 21170f7c90cSmrg *:SolidBSD:*:*) 21270f7c90cSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 21370f7c90cSmrg exit ;; 21470f7c90cSmrg macppc:MirBSD:*:*) 21570f7c90cSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 21670f7c90cSmrg exit ;; 21770f7c90cSmrg *:MirBSD:*:*) 21870f7c90cSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 21970f7c90cSmrg exit ;; 220a850946eSmrg alpha:OSF1:*:*) 22170f7c90cSmrg case $UNAME_RELEASE in 22270f7c90cSmrg *4.0) 223a850946eSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 22470f7c90cSmrg ;; 22570f7c90cSmrg *5.*) 22670f7c90cSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 22770f7c90cSmrg ;; 22870f7c90cSmrg esac 229a850946eSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 230a850946eSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 231a850946eSmrg # covers most systems running today. This code pipes the CPU 232a850946eSmrg # types through head -n 1, so we only detect the type of CPU 0. 233a850946eSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 234a850946eSmrg case "$ALPHA_CPU_TYPE" in 235a850946eSmrg "EV4 (21064)") 236a850946eSmrg UNAME_MACHINE="alpha" ;; 237a850946eSmrg "EV4.5 (21064)") 238a850946eSmrg UNAME_MACHINE="alpha" ;; 239a850946eSmrg "LCA4 (21066/21068)") 240a850946eSmrg UNAME_MACHINE="alpha" ;; 241a850946eSmrg "EV5 (21164)") 242a850946eSmrg UNAME_MACHINE="alphaev5" ;; 243a850946eSmrg "EV5.6 (21164A)") 244a850946eSmrg UNAME_MACHINE="alphaev56" ;; 245a850946eSmrg "EV5.6 (21164PC)") 246a850946eSmrg UNAME_MACHINE="alphapca56" ;; 247a850946eSmrg "EV5.7 (21164PC)") 248a850946eSmrg UNAME_MACHINE="alphapca57" ;; 249a850946eSmrg "EV6 (21264)") 250a850946eSmrg UNAME_MACHINE="alphaev6" ;; 251a850946eSmrg "EV6.7 (21264A)") 252a850946eSmrg UNAME_MACHINE="alphaev67" ;; 253a850946eSmrg "EV6.8CB (21264C)") 254a850946eSmrg UNAME_MACHINE="alphaev68" ;; 255a850946eSmrg "EV6.8AL (21264B)") 256a850946eSmrg UNAME_MACHINE="alphaev68" ;; 257a850946eSmrg "EV6.8CX (21264D)") 258a850946eSmrg UNAME_MACHINE="alphaev68" ;; 259a850946eSmrg "EV6.9A (21264/EV69A)") 260a850946eSmrg UNAME_MACHINE="alphaev69" ;; 261a850946eSmrg "EV7 (21364)") 262a850946eSmrg UNAME_MACHINE="alphaev7" ;; 263a850946eSmrg "EV7.9 (21364A)") 264a850946eSmrg UNAME_MACHINE="alphaev79" ;; 265a850946eSmrg esac 26670f7c90cSmrg # A Pn.n version is a patched version. 267a850946eSmrg # A Vn.n version is a released version. 268a850946eSmrg # A Tn.n version is a released field test version. 269a850946eSmrg # A Xn.n version is an unreleased experimental baselevel. 270a850946eSmrg # 1.2 uses "1.2" for uname -r. 27170f7c90cSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27270f7c90cSmrg exit ;; 273a850946eSmrg Alpha\ *:Windows_NT*:*) 274a850946eSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 275a850946eSmrg # Should we change UNAME_MACHINE based on the output of uname instead 276a850946eSmrg # of the specific Alpha model? 277a850946eSmrg echo alpha-pc-interix 27870f7c90cSmrg exit ;; 279a850946eSmrg 21064:Windows_NT:50:3) 280a850946eSmrg echo alpha-dec-winnt3.5 28170f7c90cSmrg exit ;; 282a850946eSmrg Amiga*:UNIX_System_V:4.0:*) 283a850946eSmrg echo m68k-unknown-sysv4 28470f7c90cSmrg exit ;; 285a850946eSmrg *:[Aa]miga[Oo][Ss]:*:*) 286a850946eSmrg echo ${UNAME_MACHINE}-unknown-amigaos 28770f7c90cSmrg exit ;; 288a850946eSmrg *:[Mm]orph[Oo][Ss]:*:*) 289a850946eSmrg echo ${UNAME_MACHINE}-unknown-morphos 29070f7c90cSmrg exit ;; 291a850946eSmrg *:OS/390:*:*) 292a850946eSmrg echo i370-ibm-openedition 29370f7c90cSmrg exit ;; 29470f7c90cSmrg *:z/VM:*:*) 29570f7c90cSmrg echo s390-ibm-zvmoe 29670f7c90cSmrg exit ;; 29770f7c90cSmrg *:OS400:*:*) 29870f7c90cSmrg echo powerpc-ibm-os400 29970f7c90cSmrg exit ;; 300a850946eSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 301a850946eSmrg echo arm-acorn-riscix${UNAME_RELEASE} 30270f7c90cSmrg exit ;; 30370f7c90cSmrg arm:riscos:*:*|arm:RISCOS:*:*) 30470f7c90cSmrg echo arm-unknown-riscos 30570f7c90cSmrg exit ;; 306a850946eSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 307a850946eSmrg echo hppa1.1-hitachi-hiuxmpp 30870f7c90cSmrg exit ;; 309a850946eSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 310a850946eSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 311a850946eSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 312a850946eSmrg echo pyramid-pyramid-sysv3 313a850946eSmrg else 314a850946eSmrg echo pyramid-pyramid-bsd 315a850946eSmrg fi 31670f7c90cSmrg exit ;; 317a850946eSmrg NILE*:*:*:dcosx) 318a850946eSmrg echo pyramid-pyramid-svr4 31970f7c90cSmrg exit ;; 320a850946eSmrg DRS?6000:unix:4.0:6*) 321a850946eSmrg echo sparc-icl-nx6 32270f7c90cSmrg exit ;; 32370f7c90cSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 324a850946eSmrg case `/usr/bin/uname -p` in 32570f7c90cSmrg sparc) echo sparc-icl-nx7; exit ;; 326a850946eSmrg esac ;; 32770f7c90cSmrg s390x:SunOS:*:*) 32870f7c90cSmrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 32970f7c90cSmrg exit ;; 330a850946eSmrg sun4H:SunOS:5.*:*) 331a850946eSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33270f7c90cSmrg exit ;; 333a850946eSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 334a850946eSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33570f7c90cSmrg exit ;; 33670f7c90cSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 33770f7c90cSmrg eval $set_cc_for_build 33870f7c90cSmrg SUN_ARCH="i386" 33970f7c90cSmrg # If there is a compiler, see if it is configured for 64-bit objects. 34070f7c90cSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 34170f7c90cSmrg # This test works for both compilers. 34270f7c90cSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 34370f7c90cSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 34470f7c90cSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 34570f7c90cSmrg grep IS_64BIT_ARCH >/dev/null 34670f7c90cSmrg then 34770f7c90cSmrg SUN_ARCH="x86_64" 34870f7c90cSmrg fi 34970f7c90cSmrg fi 35070f7c90cSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35170f7c90cSmrg exit ;; 352a850946eSmrg sun4*:SunOS:6*:*) 353a850946eSmrg # According to config.sub, this is the proper way to canonicalize 354a850946eSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 355a850946eSmrg # it's likely to be more like Solaris than SunOS4. 356a850946eSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35770f7c90cSmrg exit ;; 358a850946eSmrg sun4*:SunOS:*:*) 359a850946eSmrg case "`/usr/bin/arch -k`" in 360a850946eSmrg Series*|S4*) 361a850946eSmrg UNAME_RELEASE=`uname -v` 362a850946eSmrg ;; 363a850946eSmrg esac 364a850946eSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 365a850946eSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 36670f7c90cSmrg exit ;; 367a850946eSmrg sun3*:SunOS:*:*) 368a850946eSmrg echo m68k-sun-sunos${UNAME_RELEASE} 36970f7c90cSmrg exit ;; 370a850946eSmrg sun*:*:4.2BSD:*) 371a850946eSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 372a850946eSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 373a850946eSmrg case "`/bin/arch`" in 374a850946eSmrg sun3) 375a850946eSmrg echo m68k-sun-sunos${UNAME_RELEASE} 376a850946eSmrg ;; 377a850946eSmrg sun4) 378a850946eSmrg echo sparc-sun-sunos${UNAME_RELEASE} 379a850946eSmrg ;; 380a850946eSmrg esac 38170f7c90cSmrg exit ;; 382a850946eSmrg aushp:SunOS:*:*) 383a850946eSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 38470f7c90cSmrg exit ;; 385a850946eSmrg # The situation for MiNT is a little confusing. The machine name 386a850946eSmrg # can be virtually everything (everything which is not 387a850946eSmrg # "atarist" or "atariste" at least should have a processor 388a850946eSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 389a850946eSmrg # to the lowercase version "mint" (or "freemint"). Finally 390a850946eSmrg # the system name "TOS" denotes a system which is actually not 391a850946eSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 392a850946eSmrg # be no problem. 393a850946eSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 394a850946eSmrg echo m68k-atari-mint${UNAME_RELEASE} 39570f7c90cSmrg exit ;; 396a850946eSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 397a850946eSmrg echo m68k-atari-mint${UNAME_RELEASE} 39870f7c90cSmrg exit ;; 399a850946eSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 400a850946eSmrg echo m68k-atari-mint${UNAME_RELEASE} 40170f7c90cSmrg exit ;; 402a850946eSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 403a850946eSmrg echo m68k-milan-mint${UNAME_RELEASE} 40470f7c90cSmrg exit ;; 405a850946eSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 406a850946eSmrg echo m68k-hades-mint${UNAME_RELEASE} 40770f7c90cSmrg exit ;; 408a850946eSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 409a850946eSmrg echo m68k-unknown-mint${UNAME_RELEASE} 41070f7c90cSmrg exit ;; 41170f7c90cSmrg m68k:machten:*:*) 41270f7c90cSmrg echo m68k-apple-machten${UNAME_RELEASE} 41370f7c90cSmrg exit ;; 414a850946eSmrg powerpc:machten:*:*) 415a850946eSmrg echo powerpc-apple-machten${UNAME_RELEASE} 41670f7c90cSmrg exit ;; 417a850946eSmrg RISC*:Mach:*:*) 418a850946eSmrg echo mips-dec-mach_bsd4.3 41970f7c90cSmrg exit ;; 420a850946eSmrg RISC*:ULTRIX:*:*) 421a850946eSmrg echo mips-dec-ultrix${UNAME_RELEASE} 42270f7c90cSmrg exit ;; 423a850946eSmrg VAX*:ULTRIX*:*:*) 424a850946eSmrg echo vax-dec-ultrix${UNAME_RELEASE} 42570f7c90cSmrg exit ;; 426a850946eSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 427a850946eSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 42870f7c90cSmrg exit ;; 429a850946eSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 430a850946eSmrg eval $set_cc_for_build 431a850946eSmrg sed 's/^ //' << EOF >$dummy.c 432a850946eSmrg#ifdef __cplusplus 433a850946eSmrg#include <stdio.h> /* for printf() prototype */ 434a850946eSmrg int main (int argc, char *argv[]) { 435a850946eSmrg#else 436a850946eSmrg int main (argc, argv) int argc; char *argv[]; { 437a850946eSmrg#endif 438a850946eSmrg #if defined (host_mips) && defined (MIPSEB) 439a850946eSmrg #if defined (SYSTYPE_SYSV) 440a850946eSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 441a850946eSmrg #endif 442a850946eSmrg #if defined (SYSTYPE_SVR4) 443a850946eSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 444a850946eSmrg #endif 445a850946eSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 446a850946eSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 447a850946eSmrg #endif 448a850946eSmrg #endif 449a850946eSmrg exit (-1); 450a850946eSmrg } 451a850946eSmrgEOF 45270f7c90cSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 45370f7c90cSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 45470f7c90cSmrg SYSTEM_NAME=`$dummy $dummyarg` && 45570f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 456a850946eSmrg echo mips-mips-riscos${UNAME_RELEASE} 45770f7c90cSmrg exit ;; 458a850946eSmrg Motorola:PowerMAX_OS:*:*) 459a850946eSmrg echo powerpc-motorola-powermax 46070f7c90cSmrg exit ;; 461a850946eSmrg Motorola:*:4.3:PL8-*) 462a850946eSmrg echo powerpc-harris-powermax 46370f7c90cSmrg exit ;; 464a850946eSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 465a850946eSmrg echo powerpc-harris-powermax 46670f7c90cSmrg exit ;; 467a850946eSmrg Night_Hawk:Power_UNIX:*:*) 468a850946eSmrg echo powerpc-harris-powerunix 46970f7c90cSmrg exit ;; 470a850946eSmrg m88k:CX/UX:7*:*) 471a850946eSmrg echo m88k-harris-cxux7 47270f7c90cSmrg exit ;; 473a850946eSmrg m88k:*:4*:R4*) 474a850946eSmrg echo m88k-motorola-sysv4 47570f7c90cSmrg exit ;; 476a850946eSmrg m88k:*:3*:R3*) 477a850946eSmrg echo m88k-motorola-sysv3 47870f7c90cSmrg exit ;; 479a850946eSmrg AViiON:dgux:*:*) 480a850946eSmrg # DG/UX returns AViiON for all architectures 481a850946eSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 482a850946eSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 483a850946eSmrg then 484a850946eSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 485a850946eSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 486a850946eSmrg then 487a850946eSmrg echo m88k-dg-dgux${UNAME_RELEASE} 488a850946eSmrg else 489a850946eSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 490a850946eSmrg fi 491a850946eSmrg else 492a850946eSmrg echo i586-dg-dgux${UNAME_RELEASE} 493a850946eSmrg fi 49470f7c90cSmrg exit ;; 495a850946eSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 496a850946eSmrg echo m88k-dolphin-sysv3 49770f7c90cSmrg exit ;; 498a850946eSmrg M88*:*:R3*:*) 499a850946eSmrg # Delta 88k system running SVR3 500a850946eSmrg echo m88k-motorola-sysv3 50170f7c90cSmrg exit ;; 502a850946eSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 503a850946eSmrg echo m88k-tektronix-sysv3 50470f7c90cSmrg exit ;; 505a850946eSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 506a850946eSmrg echo m68k-tektronix-bsd 50770f7c90cSmrg exit ;; 508a850946eSmrg *:IRIX*:*:*) 509a850946eSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 51070f7c90cSmrg exit ;; 511a850946eSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 51270f7c90cSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 51370f7c90cSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 514a850946eSmrg i*86:AIX:*:*) 515a850946eSmrg echo i386-ibm-aix 51670f7c90cSmrg exit ;; 517a850946eSmrg ia64:AIX:*:*) 518a850946eSmrg if [ -x /usr/bin/oslevel ] ; then 519a850946eSmrg IBM_REV=`/usr/bin/oslevel` 520a850946eSmrg else 521a850946eSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 522a850946eSmrg fi 523a850946eSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 52470f7c90cSmrg exit ;; 525a850946eSmrg *:AIX:2:3) 526a850946eSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 527a850946eSmrg eval $set_cc_for_build 528a850946eSmrg sed 's/^ //' << EOF >$dummy.c 529a850946eSmrg #include <sys/systemcfg.h> 530a850946eSmrg 531a850946eSmrg main() 532a850946eSmrg { 533a850946eSmrg if (!__power_pc()) 534a850946eSmrg exit(1); 535a850946eSmrg puts("powerpc-ibm-aix3.2.5"); 536a850946eSmrg exit(0); 537a850946eSmrg } 538a850946eSmrgEOF 53970f7c90cSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 54070f7c90cSmrg then 54170f7c90cSmrg echo "$SYSTEM_NAME" 54270f7c90cSmrg else 54370f7c90cSmrg echo rs6000-ibm-aix3.2.5 54470f7c90cSmrg fi 545a850946eSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 546a850946eSmrg echo rs6000-ibm-aix3.2.4 547a850946eSmrg else 548a850946eSmrg echo rs6000-ibm-aix3.2 549a850946eSmrg fi 55070f7c90cSmrg exit ;; 55170f7c90cSmrg *:AIX:*:[456]) 552a850946eSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 553a850946eSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 554a850946eSmrg IBM_ARCH=rs6000 555a850946eSmrg else 556a850946eSmrg IBM_ARCH=powerpc 557a850946eSmrg fi 558a850946eSmrg if [ -x /usr/bin/oslevel ] ; then 559a850946eSmrg IBM_REV=`/usr/bin/oslevel` 560a850946eSmrg else 561a850946eSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 562a850946eSmrg fi 563a850946eSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 56470f7c90cSmrg exit ;; 565a850946eSmrg *:AIX:*:*) 566a850946eSmrg echo rs6000-ibm-aix 56770f7c90cSmrg exit ;; 568a850946eSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 569a850946eSmrg echo romp-ibm-bsd4.4 57070f7c90cSmrg exit ;; 571a850946eSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 572a850946eSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 57370f7c90cSmrg exit ;; # report: romp-ibm BSD 4.3 574a850946eSmrg *:BOSX:*:*) 575a850946eSmrg echo rs6000-bull-bosx 57670f7c90cSmrg exit ;; 577a850946eSmrg DPX/2?00:B.O.S.:*:*) 578a850946eSmrg echo m68k-bull-sysv3 57970f7c90cSmrg exit ;; 580a850946eSmrg 9000/[34]??:4.3bsd:1.*:*) 581a850946eSmrg echo m68k-hp-bsd 58270f7c90cSmrg exit ;; 583a850946eSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 584a850946eSmrg echo m68k-hp-bsd4.4 58570f7c90cSmrg exit ;; 586a850946eSmrg 9000/[34678]??:HP-UX:*:*) 587a850946eSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 588a850946eSmrg case "${UNAME_MACHINE}" in 589a850946eSmrg 9000/31? ) HP_ARCH=m68000 ;; 590a850946eSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 591a850946eSmrg 9000/[678][0-9][0-9]) 592a850946eSmrg if [ -x /usr/bin/getconf ]; then 593a850946eSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 594a850946eSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 595a850946eSmrg case "${sc_cpu_version}" in 596a850946eSmrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 597a850946eSmrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 598a850946eSmrg 532) # CPU_PA_RISC2_0 599a850946eSmrg case "${sc_kernel_bits}" in 600a850946eSmrg 32) HP_ARCH="hppa2.0n" ;; 601a850946eSmrg 64) HP_ARCH="hppa2.0w" ;; 602a850946eSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 603a850946eSmrg esac ;; 604a850946eSmrg esac 605a850946eSmrg fi 606a850946eSmrg if [ "${HP_ARCH}" = "" ]; then 607a850946eSmrg eval $set_cc_for_build 608a850946eSmrg sed 's/^ //' << EOF >$dummy.c 609a850946eSmrg 610a850946eSmrg #define _HPUX_SOURCE 611a850946eSmrg #include <stdlib.h> 612a850946eSmrg #include <unistd.h> 613a850946eSmrg 614a850946eSmrg int main () 615a850946eSmrg { 616a850946eSmrg #if defined(_SC_KERNEL_BITS) 617a850946eSmrg long bits = sysconf(_SC_KERNEL_BITS); 618a850946eSmrg #endif 619a850946eSmrg long cpu = sysconf (_SC_CPU_VERSION); 620a850946eSmrg 621a850946eSmrg switch (cpu) 622a850946eSmrg { 623a850946eSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 624a850946eSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 625a850946eSmrg case CPU_PA_RISC2_0: 626a850946eSmrg #if defined(_SC_KERNEL_BITS) 627a850946eSmrg switch (bits) 628a850946eSmrg { 629a850946eSmrg case 64: puts ("hppa2.0w"); break; 630a850946eSmrg case 32: puts ("hppa2.0n"); break; 631a850946eSmrg default: puts ("hppa2.0"); break; 632a850946eSmrg } break; 633a850946eSmrg #else /* !defined(_SC_KERNEL_BITS) */ 634a850946eSmrg puts ("hppa2.0"); break; 635a850946eSmrg #endif 636a850946eSmrg default: puts ("hppa1.0"); break; 637a850946eSmrg } 638a850946eSmrg exit (0); 639a850946eSmrg } 640a850946eSmrgEOF 641a850946eSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 642a850946eSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 643a850946eSmrg fi ;; 644a850946eSmrg esac 645a850946eSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 646a850946eSmrg then 64770f7c90cSmrg eval $set_cc_for_build 64870f7c90cSmrg 64970f7c90cSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 65070f7c90cSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 65170f7c90cSmrg # generating 64-bit code. GNU and HP use different nomenclature: 65270f7c90cSmrg # 65370f7c90cSmrg # $ CC_FOR_BUILD=cc ./config.guess 65470f7c90cSmrg # => hppa2.0w-hp-hpux11.23 65570f7c90cSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 65670f7c90cSmrg # => hppa64-hp-hpux11.23 65770f7c90cSmrg 65870f7c90cSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 65970f7c90cSmrg grep __LP64__ >/dev/null 660a850946eSmrg then 661a850946eSmrg HP_ARCH="hppa2.0w" 662a850946eSmrg else 663a850946eSmrg HP_ARCH="hppa64" 664a850946eSmrg fi 665a850946eSmrg fi 666a850946eSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 66770f7c90cSmrg exit ;; 668a850946eSmrg ia64:HP-UX:*:*) 669a850946eSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 670a850946eSmrg echo ia64-hp-hpux${HPUX_REV} 67170f7c90cSmrg exit ;; 672a850946eSmrg 3050*:HI-UX:*:*) 673a850946eSmrg eval $set_cc_for_build 674a850946eSmrg sed 's/^ //' << EOF >$dummy.c 675a850946eSmrg #include <unistd.h> 676a850946eSmrg int 677a850946eSmrg main () 678a850946eSmrg { 679a850946eSmrg long cpu = sysconf (_SC_CPU_VERSION); 680a850946eSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 681a850946eSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 682a850946eSmrg results, however. */ 683a850946eSmrg if (CPU_IS_PA_RISC (cpu)) 684a850946eSmrg { 685a850946eSmrg switch (cpu) 686a850946eSmrg { 687a850946eSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 688a850946eSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 689a850946eSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 690a850946eSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 691a850946eSmrg } 692a850946eSmrg } 693a850946eSmrg else if (CPU_IS_HP_MC68K (cpu)) 694a850946eSmrg puts ("m68k-hitachi-hiuxwe2"); 695a850946eSmrg else puts ("unknown-hitachi-hiuxwe2"); 696a850946eSmrg exit (0); 697a850946eSmrg } 698a850946eSmrgEOF 69970f7c90cSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 70070f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 701a850946eSmrg echo unknown-hitachi-hiuxwe2 70270f7c90cSmrg exit ;; 703a850946eSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 704a850946eSmrg echo hppa1.1-hp-bsd 70570f7c90cSmrg exit ;; 706a850946eSmrg 9000/8??:4.3bsd:*:*) 707a850946eSmrg echo hppa1.0-hp-bsd 70870f7c90cSmrg exit ;; 709a850946eSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 710a850946eSmrg echo hppa1.0-hp-mpeix 71170f7c90cSmrg exit ;; 712a850946eSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 713a850946eSmrg echo hppa1.1-hp-osf 71470f7c90cSmrg exit ;; 715a850946eSmrg hp8??:OSF1:*:*) 716a850946eSmrg echo hppa1.0-hp-osf 71770f7c90cSmrg exit ;; 718a850946eSmrg i*86:OSF1:*:*) 719a850946eSmrg if [ -x /usr/sbin/sysversion ] ; then 720a850946eSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 721a850946eSmrg else 722a850946eSmrg echo ${UNAME_MACHINE}-unknown-osf1 723a850946eSmrg fi 72470f7c90cSmrg exit ;; 725a850946eSmrg parisc*:Lites*:*:*) 726a850946eSmrg echo hppa1.1-hp-lites 72770f7c90cSmrg exit ;; 728a850946eSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 729a850946eSmrg echo c1-convex-bsd 73070f7c90cSmrg exit ;; 731a850946eSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 732a850946eSmrg if getsysinfo -f scalar_acc 733a850946eSmrg then echo c32-convex-bsd 734a850946eSmrg else echo c2-convex-bsd 735a850946eSmrg fi 73670f7c90cSmrg exit ;; 737a850946eSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 738a850946eSmrg echo c34-convex-bsd 73970f7c90cSmrg exit ;; 740a850946eSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 741a850946eSmrg echo c38-convex-bsd 74270f7c90cSmrg exit ;; 743a850946eSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 744a850946eSmrg echo c4-convex-bsd 74570f7c90cSmrg exit ;; 746a850946eSmrg CRAY*Y-MP:*:*:*) 747a850946eSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74870f7c90cSmrg exit ;; 749a850946eSmrg CRAY*[A-Z]90:*:*:*) 750a850946eSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 751a850946eSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 752a850946eSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 753a850946eSmrg -e 's/\.[^.]*$/.X/' 75470f7c90cSmrg exit ;; 755a850946eSmrg CRAY*TS:*:*:*) 756a850946eSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 75770f7c90cSmrg exit ;; 758a850946eSmrg CRAY*T3E:*:*:*) 759a850946eSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 76070f7c90cSmrg exit ;; 761a850946eSmrg CRAY*SV1:*:*:*) 762a850946eSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 76370f7c90cSmrg exit ;; 764a850946eSmrg *:UNICOS/mp:*:*) 76570f7c90cSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 76670f7c90cSmrg exit ;; 767a850946eSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 768a850946eSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 769a850946eSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 770a850946eSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 771a850946eSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 77270f7c90cSmrg exit ;; 77370f7c90cSmrg 5000:UNIX_System_V:4.*:*) 77470f7c90cSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 77570f7c90cSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 77670f7c90cSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 77770f7c90cSmrg exit ;; 778a850946eSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 779a850946eSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 78070f7c90cSmrg exit ;; 781a850946eSmrg sparc*:BSD/OS:*:*) 782a850946eSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 78370f7c90cSmrg exit ;; 784a850946eSmrg *:BSD/OS:*:*) 785a850946eSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 78670f7c90cSmrg exit ;; 78770f7c90cSmrg *:FreeBSD:*:*) 78870f7c90cSmrg case ${UNAME_MACHINE} in 78970f7c90cSmrg pc98) 79070f7c90cSmrg echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 79170f7c90cSmrg amd64) 79270f7c90cSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 79370f7c90cSmrg *) 79470f7c90cSmrg echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 79570f7c90cSmrg esac 79670f7c90cSmrg exit ;; 797a850946eSmrg i*:CYGWIN*:*) 798a850946eSmrg echo ${UNAME_MACHINE}-pc-cygwin 79970f7c90cSmrg exit ;; 80070f7c90cSmrg *:MINGW*:*) 801a850946eSmrg echo ${UNAME_MACHINE}-pc-mingw32 80270f7c90cSmrg exit ;; 80370f7c90cSmrg i*:windows32*:*) 80470f7c90cSmrg # uname -m includes "-pc" on this system. 80570f7c90cSmrg echo ${UNAME_MACHINE}-mingw32 80670f7c90cSmrg exit ;; 807a850946eSmrg i*:PW*:*) 808a850946eSmrg echo ${UNAME_MACHINE}-pc-pw32 80970f7c90cSmrg exit ;; 81070f7c90cSmrg *:Interix*:[3456]*) 81170f7c90cSmrg case ${UNAME_MACHINE} in 81270f7c90cSmrg x86) 81370f7c90cSmrg echo i586-pc-interix${UNAME_RELEASE} 81470f7c90cSmrg exit ;; 81570f7c90cSmrg EM64T | authenticamd | genuineintel) 81670f7c90cSmrg echo x86_64-unknown-interix${UNAME_RELEASE} 81770f7c90cSmrg exit ;; 81870f7c90cSmrg IA64) 81970f7c90cSmrg echo ia64-unknown-interix${UNAME_RELEASE} 82070f7c90cSmrg exit ;; 82170f7c90cSmrg esac ;; 822a850946eSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 823a850946eSmrg echo i${UNAME_MACHINE}-pc-mks 82470f7c90cSmrg exit ;; 825a850946eSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 826a850946eSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 827a850946eSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 828a850946eSmrg # UNAME_MACHINE based on the output of uname instead of i386? 829a850946eSmrg echo i586-pc-interix 83070f7c90cSmrg exit ;; 831a850946eSmrg i*:UWIN*:*) 832a850946eSmrg echo ${UNAME_MACHINE}-pc-uwin 83370f7c90cSmrg exit ;; 83470f7c90cSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 83570f7c90cSmrg echo x86_64-unknown-cygwin 83670f7c90cSmrg exit ;; 837a850946eSmrg p*:CYGWIN*:*) 838a850946eSmrg echo powerpcle-unknown-cygwin 83970f7c90cSmrg exit ;; 840a850946eSmrg prep*:SunOS:5.*:*) 841a850946eSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 84270f7c90cSmrg exit ;; 843a850946eSmrg *:GNU:*:*) 84470f7c90cSmrg # the GNU system 845a850946eSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 84670f7c90cSmrg exit ;; 84770f7c90cSmrg *:GNU/*:*:*) 84870f7c90cSmrg # other systems with GNU libc and userland 84970f7c90cSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 85070f7c90cSmrg exit ;; 851a850946eSmrg i*86:Minix:*:*) 852a850946eSmrg echo ${UNAME_MACHINE}-pc-minix 85370f7c90cSmrg exit ;; 854a850946eSmrg arm*:Linux:*:*) 85570f7c90cSmrg eval $set_cc_for_build 85670f7c90cSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 85770f7c90cSmrg | grep -q __ARM_EABI__ 85870f7c90cSmrg then 85970f7c90cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86070f7c90cSmrg else 86170f7c90cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 86270f7c90cSmrg fi 86370f7c90cSmrg exit ;; 86470f7c90cSmrg avr32*:Linux:*:*) 865a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86670f7c90cSmrg exit ;; 867a850946eSmrg cris:Linux:*:*) 868a850946eSmrg echo cris-axis-linux-gnu 86970f7c90cSmrg exit ;; 87070f7c90cSmrg crisv32:Linux:*:*) 87170f7c90cSmrg echo crisv32-axis-linux-gnu 87270f7c90cSmrg exit ;; 87370f7c90cSmrg frv:Linux:*:*) 87470f7c90cSmrg echo frv-unknown-linux-gnu 87570f7c90cSmrg exit ;; 876a850946eSmrg ia64:Linux:*:*) 87770f7c90cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 87870f7c90cSmrg exit ;; 87970f7c90cSmrg m32r*:Linux:*:*) 88070f7c90cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 88170f7c90cSmrg exit ;; 882a850946eSmrg m68*:Linux:*:*) 883a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 88470f7c90cSmrg exit ;; 885a850946eSmrg mips:Linux:*:*) 886a850946eSmrg eval $set_cc_for_build 887a850946eSmrg sed 's/^ //' << EOF >$dummy.c 888a850946eSmrg #undef CPU 889a850946eSmrg #undef mips 890a850946eSmrg #undef mipsel 891a850946eSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 892a850946eSmrg CPU=mipsel 893a850946eSmrg #else 894a850946eSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 895a850946eSmrg CPU=mips 896a850946eSmrg #else 897a850946eSmrg CPU= 898a850946eSmrg #endif 899a850946eSmrg #endif 900a850946eSmrgEOF 90170f7c90cSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 90270f7c90cSmrg /^CPU/{ 90370f7c90cSmrg s: ::g 90470f7c90cSmrg p 90570f7c90cSmrg }'`" 90670f7c90cSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 907a850946eSmrg ;; 908a850946eSmrg mips64:Linux:*:*) 909a850946eSmrg eval $set_cc_for_build 910a850946eSmrg sed 's/^ //' << EOF >$dummy.c 911a850946eSmrg #undef CPU 912a850946eSmrg #undef mips64 913a850946eSmrg #undef mips64el 914a850946eSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 915a850946eSmrg CPU=mips64el 916a850946eSmrg #else 917a850946eSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 918a850946eSmrg CPU=mips64 919a850946eSmrg #else 920a850946eSmrg CPU= 921a850946eSmrg #endif 922a850946eSmrg #endif 923a850946eSmrgEOF 92470f7c90cSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 92570f7c90cSmrg /^CPU/{ 92670f7c90cSmrg s: ::g 92770f7c90cSmrg p 92870f7c90cSmrg }'`" 92970f7c90cSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 930a850946eSmrg ;; 93170f7c90cSmrg or32:Linux:*:*) 93270f7c90cSmrg echo or32-unknown-linux-gnu 93370f7c90cSmrg exit ;; 934a850946eSmrg ppc:Linux:*:*) 93570f7c90cSmrg echo powerpc-unknown-linux-gnu 93670f7c90cSmrg exit ;; 937a850946eSmrg ppc64:Linux:*:*) 93870f7c90cSmrg echo powerpc64-unknown-linux-gnu 93970f7c90cSmrg exit ;; 940a850946eSmrg alpha:Linux:*:*) 941a850946eSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 942a850946eSmrg EV5) UNAME_MACHINE=alphaev5 ;; 943a850946eSmrg EV56) UNAME_MACHINE=alphaev56 ;; 944a850946eSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 945a850946eSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 946a850946eSmrg EV6) UNAME_MACHINE=alphaev6 ;; 947a850946eSmrg EV67) UNAME_MACHINE=alphaev67 ;; 948a850946eSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 949a850946eSmrg esac 950a850946eSmrg objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 951a850946eSmrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 952a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 95370f7c90cSmrg exit ;; 95470f7c90cSmrg padre:Linux:*:*) 95570f7c90cSmrg echo sparc-unknown-linux-gnu 95670f7c90cSmrg exit ;; 957a850946eSmrg parisc:Linux:*:* | hppa:Linux:*:*) 958a850946eSmrg # Look for CPU level 959a850946eSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 960a850946eSmrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 961a850946eSmrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 962a850946eSmrg *) echo hppa-unknown-linux-gnu ;; 963a850946eSmrg esac 96470f7c90cSmrg exit ;; 965a850946eSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 966a850946eSmrg echo hppa64-unknown-linux-gnu 96770f7c90cSmrg exit ;; 968a850946eSmrg s390:Linux:*:* | s390x:Linux:*:*) 96970f7c90cSmrg echo ${UNAME_MACHINE}-ibm-linux 97070f7c90cSmrg exit ;; 971a850946eSmrg sh64*:Linux:*:*) 972a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 97370f7c90cSmrg exit ;; 974a850946eSmrg sh*:Linux:*:*) 975a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 97670f7c90cSmrg exit ;; 977a850946eSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 978a850946eSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 97970f7c90cSmrg exit ;; 98070f7c90cSmrg vax:Linux:*:*) 98170f7c90cSmrg echo ${UNAME_MACHINE}-dec-linux-gnu 98270f7c90cSmrg exit ;; 983a850946eSmrg x86_64:Linux:*:*) 98470f7c90cSmrg echo x86_64-unknown-linux-gnu 98570f7c90cSmrg exit ;; 98670f7c90cSmrg xtensa*:Linux:*:*) 98770f7c90cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 98870f7c90cSmrg exit ;; 989a850946eSmrg i*86:Linux:*:*) 990a850946eSmrg # The BFD linker knows what the default object file format is, so 991a850946eSmrg # first see if it will tell us. cd to the root directory to prevent 992a850946eSmrg # problems with other programs or directories called `ld' in the path. 993a850946eSmrg # Set LC_ALL=C to ensure ld outputs messages in English. 994a850946eSmrg ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 995a850946eSmrg | sed -ne '/supported targets:/!d 996a850946eSmrg s/[ ][ ]*/ /g 997a850946eSmrg s/.*supported targets: *// 998a850946eSmrg s/ .*// 999a850946eSmrg p'` 1000a850946eSmrg case "$ld_supported_targets" in 1001a850946eSmrg elf32-i386) 1002a850946eSmrg TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 1003a850946eSmrg ;; 1004a850946eSmrg a.out-i386-linux) 1005a850946eSmrg echo "${UNAME_MACHINE}-pc-linux-gnuaout" 100670f7c90cSmrg exit ;; 1007a850946eSmrg "") 1008a850946eSmrg # Either a pre-BFD a.out linker (linux-gnuoldld) or 1009a850946eSmrg # one that does not give us useful --help. 1010a850946eSmrg echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 101170f7c90cSmrg exit ;; 1012a850946eSmrg esac 1013a850946eSmrg # Determine whether the default compiler is a.out or elf 1014a850946eSmrg eval $set_cc_for_build 1015a850946eSmrg sed 's/^ //' << EOF >$dummy.c 1016a850946eSmrg #include <features.h> 1017a850946eSmrg #ifdef __ELF__ 1018a850946eSmrg # ifdef __GLIBC__ 1019a850946eSmrg # if __GLIBC__ >= 2 1020a850946eSmrg LIBC=gnu 1021a850946eSmrg # else 1022a850946eSmrg LIBC=gnulibc1 1023a850946eSmrg # endif 1024a850946eSmrg # else 1025a850946eSmrg LIBC=gnulibc1 1026a850946eSmrg # endif 1027a850946eSmrg #else 102870f7c90cSmrg #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 1029a850946eSmrg LIBC=gnu 1030a850946eSmrg #else 1031a850946eSmrg LIBC=gnuaout 1032a850946eSmrg #endif 1033a850946eSmrg #endif 103470f7c90cSmrg #ifdef __dietlibc__ 103570f7c90cSmrg LIBC=dietlibc 103670f7c90cSmrg #endif 1037a850946eSmrgEOF 103870f7c90cSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 103970f7c90cSmrg /^LIBC/{ 104070f7c90cSmrg s: ::g 104170f7c90cSmrg p 104270f7c90cSmrg }'`" 104370f7c90cSmrg test x"${LIBC}" != x && { 104470f7c90cSmrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 104570f7c90cSmrg exit 104670f7c90cSmrg } 104770f7c90cSmrg test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 1048a850946eSmrg ;; 1049a850946eSmrg i*86:DYNIX/ptx:4*:*) 1050a850946eSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1051a850946eSmrg # earlier versions are messed up and put the nodename in both 1052a850946eSmrg # sysname and nodename. 1053a850946eSmrg echo i386-sequent-sysv4 105470f7c90cSmrg exit ;; 1055a850946eSmrg i*86:UNIX_SV:4.2MP:2.*) 1056a850946eSmrg # Unixware is an offshoot of SVR4, but it has its own version 1057a850946eSmrg # number series starting with 2... 1058a850946eSmrg # I am not positive that other SVR4 systems won't match this, 1059a850946eSmrg # I just have to hope. -- rms. 1060a850946eSmrg # Use sysv4.2uw... so that sysv4* matches it. 1061a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 106270f7c90cSmrg exit ;; 1063a850946eSmrg i*86:OS/2:*:*) 1064a850946eSmrg # If we were able to find `uname', then EMX Unix compatibility 1065a850946eSmrg # is probably installed. 1066a850946eSmrg echo ${UNAME_MACHINE}-pc-os2-emx 106770f7c90cSmrg exit ;; 1068a850946eSmrg i*86:XTS-300:*:STOP) 1069a850946eSmrg echo ${UNAME_MACHINE}-unknown-stop 107070f7c90cSmrg exit ;; 1071a850946eSmrg i*86:atheos:*:*) 1072a850946eSmrg echo ${UNAME_MACHINE}-unknown-atheos 107370f7c90cSmrg exit ;; 107470f7c90cSmrg i*86:syllable:*:*) 107570f7c90cSmrg echo ${UNAME_MACHINE}-pc-syllable 107670f7c90cSmrg exit ;; 1077a850946eSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1078a850946eSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 107970f7c90cSmrg exit ;; 1080a850946eSmrg i*86:*DOS:*:*) 1081a850946eSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 108270f7c90cSmrg exit ;; 1083a850946eSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1084a850946eSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1085a850946eSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1086a850946eSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1087a850946eSmrg else 1088a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1089a850946eSmrg fi 109070f7c90cSmrg exit ;; 109170f7c90cSmrg i*86:*:5:[678]*) 109270f7c90cSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 1093a850946eSmrg case `/bin/uname -X | grep "^Machine"` in 1094a850946eSmrg *486*) UNAME_MACHINE=i486 ;; 1095a850946eSmrg *Pentium) UNAME_MACHINE=i586 ;; 1096a850946eSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1097a850946eSmrg esac 1098a850946eSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 109970f7c90cSmrg exit ;; 1100a850946eSmrg i*86:*:3.2:*) 1101a850946eSmrg if test -f /usr/options/cb.name; then 1102a850946eSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1103a850946eSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1104a850946eSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 1105a850946eSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1106a850946eSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1107a850946eSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 1108a850946eSmrg && UNAME_MACHINE=i586 1109a850946eSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 1110a850946eSmrg && UNAME_MACHINE=i686 1111a850946eSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1112a850946eSmrg && UNAME_MACHINE=i686 1113a850946eSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1114a850946eSmrg else 1115a850946eSmrg echo ${UNAME_MACHINE}-pc-sysv32 1116a850946eSmrg fi 111770f7c90cSmrg exit ;; 1118a850946eSmrg pc:*:*:*) 1119a850946eSmrg # Left here for compatibility: 1120a850946eSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 112170f7c90cSmrg # the processor, so we play safe by assuming i586. 112270f7c90cSmrg # Note: whatever this is, it MUST be the same as what config.sub 112370f7c90cSmrg # prints for the "djgpp" host, or else GDB configury will decide that 112470f7c90cSmrg # this is a cross-build. 112570f7c90cSmrg echo i586-pc-msdosdjgpp 112670f7c90cSmrg exit ;; 1127a850946eSmrg Intel:Mach:3*:*) 1128a850946eSmrg echo i386-pc-mach3 112970f7c90cSmrg exit ;; 1130a850946eSmrg paragon:*:*:*) 1131a850946eSmrg echo i860-intel-osf1 113270f7c90cSmrg exit ;; 1133a850946eSmrg i860:*:4.*:*) # i860-SVR4 1134a850946eSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1135a850946eSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1136a850946eSmrg else # Add other i860-SVR4 vendors below as they are discovered. 1137a850946eSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1138a850946eSmrg fi 113970f7c90cSmrg exit ;; 1140a850946eSmrg mini*:CTIX:SYS*5:*) 1141a850946eSmrg # "miniframe" 1142a850946eSmrg echo m68010-convergent-sysv 114370f7c90cSmrg exit ;; 1144a850946eSmrg mc68k:UNIX:SYSTEM5:3.51m) 1145a850946eSmrg echo m68k-convergent-sysv 114670f7c90cSmrg exit ;; 1147a850946eSmrg M680?0:D-NIX:5.3:*) 1148a850946eSmrg echo m68k-diab-dnix 114970f7c90cSmrg exit ;; 115070f7c90cSmrg M68*:*:R3V[5678]*:*) 115170f7c90cSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 115270f7c90cSmrg 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) 1153a850946eSmrg OS_REL='' 1154a850946eSmrg test -r /etc/.relid \ 1155a850946eSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1156a850946eSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 115770f7c90cSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1158a850946eSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 115970f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1160a850946eSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1161a850946eSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 116270f7c90cSmrg && { echo i486-ncr-sysv4; exit; } ;; 116370f7c90cSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 116470f7c90cSmrg OS_REL='.3' 116570f7c90cSmrg test -r /etc/.relid \ 116670f7c90cSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 116770f7c90cSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 116870f7c90cSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 116970f7c90cSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 117070f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 117170f7c90cSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 117270f7c90cSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1173a850946eSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1174a850946eSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 117570f7c90cSmrg exit ;; 1176a850946eSmrg mc68030:UNIX_System_V:4.*:*) 1177a850946eSmrg echo m68k-atari-sysv4 117870f7c90cSmrg exit ;; 1179a850946eSmrg TSUNAMI:LynxOS:2.*:*) 1180a850946eSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 118170f7c90cSmrg exit ;; 1182a850946eSmrg rs6000:LynxOS:2.*:*) 1183a850946eSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 118470f7c90cSmrg exit ;; 1185a850946eSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1186a850946eSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 118770f7c90cSmrg exit ;; 1188a850946eSmrg SM[BE]S:UNIX_SV:*:*) 1189a850946eSmrg echo mips-dde-sysv${UNAME_RELEASE} 119070f7c90cSmrg exit ;; 1191a850946eSmrg RM*:ReliantUNIX-*:*:*) 1192a850946eSmrg echo mips-sni-sysv4 119370f7c90cSmrg exit ;; 1194a850946eSmrg RM*:SINIX-*:*:*) 1195a850946eSmrg echo mips-sni-sysv4 119670f7c90cSmrg exit ;; 1197a850946eSmrg *:SINIX-*:*:*) 1198a850946eSmrg if uname -p 2>/dev/null >/dev/null ; then 1199a850946eSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1200a850946eSmrg echo ${UNAME_MACHINE}-sni-sysv4 1201a850946eSmrg else 1202a850946eSmrg echo ns32k-sni-sysv 1203a850946eSmrg fi 120470f7c90cSmrg exit ;; 1205a850946eSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1206a850946eSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 1207a850946eSmrg echo i586-unisys-sysv4 120870f7c90cSmrg exit ;; 1209a850946eSmrg *:UNIX_System_V:4*:FTX*) 1210a850946eSmrg # From Gerald Hewes <hewes@openmarket.com>. 1211a850946eSmrg # How about differentiating between stratus architectures? -djm 1212a850946eSmrg echo hppa1.1-stratus-sysv4 121370f7c90cSmrg exit ;; 1214a850946eSmrg *:*:*:FTX*) 1215a850946eSmrg # From seanf@swdc.stratus.com. 1216a850946eSmrg echo i860-stratus-sysv4 121770f7c90cSmrg exit ;; 121870f7c90cSmrg i*86:VOS:*:*) 121970f7c90cSmrg # From Paul.Green@stratus.com. 122070f7c90cSmrg echo ${UNAME_MACHINE}-stratus-vos 122170f7c90cSmrg exit ;; 1222a850946eSmrg *:VOS:*:*) 1223a850946eSmrg # From Paul.Green@stratus.com. 1224a850946eSmrg echo hppa1.1-stratus-vos 122570f7c90cSmrg exit ;; 1226a850946eSmrg mc68*:A/UX:*:*) 1227a850946eSmrg echo m68k-apple-aux${UNAME_RELEASE} 122870f7c90cSmrg exit ;; 1229a850946eSmrg news*:NEWS-OS:6*:*) 1230a850946eSmrg echo mips-sony-newsos6 123170f7c90cSmrg exit ;; 1232a850946eSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1233a850946eSmrg if [ -d /usr/nec ]; then 1234a850946eSmrg echo mips-nec-sysv${UNAME_RELEASE} 1235a850946eSmrg else 1236a850946eSmrg echo mips-unknown-sysv${UNAME_RELEASE} 1237a850946eSmrg fi 123870f7c90cSmrg exit ;; 1239a850946eSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1240a850946eSmrg echo powerpc-be-beos 124170f7c90cSmrg exit ;; 1242a850946eSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1243a850946eSmrg echo powerpc-apple-beos 124470f7c90cSmrg exit ;; 1245a850946eSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1246a850946eSmrg echo i586-pc-beos 124770f7c90cSmrg exit ;; 124870f7c90cSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 124970f7c90cSmrg echo i586-pc-haiku 125070f7c90cSmrg exit ;; 1251a850946eSmrg SX-4:SUPER-UX:*:*) 1252a850946eSmrg echo sx4-nec-superux${UNAME_RELEASE} 125370f7c90cSmrg exit ;; 1254a850946eSmrg SX-5:SUPER-UX:*:*) 1255a850946eSmrg echo sx5-nec-superux${UNAME_RELEASE} 125670f7c90cSmrg exit ;; 1257a850946eSmrg SX-6:SUPER-UX:*:*) 1258a850946eSmrg echo sx6-nec-superux${UNAME_RELEASE} 125970f7c90cSmrg exit ;; 126070f7c90cSmrg SX-7:SUPER-UX:*:*) 126170f7c90cSmrg echo sx7-nec-superux${UNAME_RELEASE} 126270f7c90cSmrg exit ;; 126370f7c90cSmrg SX-8:SUPER-UX:*:*) 126470f7c90cSmrg echo sx8-nec-superux${UNAME_RELEASE} 126570f7c90cSmrg exit ;; 126670f7c90cSmrg SX-8R:SUPER-UX:*:*) 126770f7c90cSmrg echo sx8r-nec-superux${UNAME_RELEASE} 126870f7c90cSmrg exit ;; 1269a850946eSmrg Power*:Rhapsody:*:*) 1270a850946eSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 127170f7c90cSmrg exit ;; 1272a850946eSmrg *:Rhapsody:*:*) 1273a850946eSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 127470f7c90cSmrg exit ;; 1275a850946eSmrg *:Darwin:*:*) 127670f7c90cSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 127770f7c90cSmrg case $UNAME_PROCESSOR in 127870f7c90cSmrg unknown) UNAME_PROCESSOR=powerpc ;; 1279a850946eSmrg esac 1280a850946eSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 128170f7c90cSmrg exit ;; 1282a850946eSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 1283a850946eSmrg UNAME_PROCESSOR=`uname -p` 1284a850946eSmrg if test "$UNAME_PROCESSOR" = "x86"; then 1285a850946eSmrg UNAME_PROCESSOR=i386 1286a850946eSmrg UNAME_MACHINE=pc 1287a850946eSmrg fi 1288a850946eSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 128970f7c90cSmrg exit ;; 1290a850946eSmrg *:QNX:*:4*) 1291a850946eSmrg echo i386-pc-qnx 129270f7c90cSmrg exit ;; 129370f7c90cSmrg NSE-?:NONSTOP_KERNEL:*:*) 129470f7c90cSmrg echo nse-tandem-nsk${UNAME_RELEASE} 129570f7c90cSmrg exit ;; 129670f7c90cSmrg NSR-?:NONSTOP_KERNEL:*:*) 1297a850946eSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 129870f7c90cSmrg exit ;; 1299a850946eSmrg *:NonStop-UX:*:*) 1300a850946eSmrg echo mips-compaq-nonstopux 130170f7c90cSmrg exit ;; 1302a850946eSmrg BS2000:POSIX*:*:*) 1303a850946eSmrg echo bs2000-siemens-sysv 130470f7c90cSmrg exit ;; 1305a850946eSmrg DS/*:UNIX_System_V:*:*) 1306a850946eSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 130770f7c90cSmrg exit ;; 1308a850946eSmrg *:Plan9:*:*) 1309a850946eSmrg # "uname -m" is not consistent, so use $cputype instead. 386 1310a850946eSmrg # is converted to i386 for consistency with other x86 1311a850946eSmrg # operating systems. 1312a850946eSmrg if test "$cputype" = "386"; then 1313a850946eSmrg UNAME_MACHINE=i386 1314a850946eSmrg else 1315a850946eSmrg UNAME_MACHINE="$cputype" 1316a850946eSmrg fi 1317a850946eSmrg echo ${UNAME_MACHINE}-unknown-plan9 131870f7c90cSmrg exit ;; 1319a850946eSmrg *:TOPS-10:*:*) 1320a850946eSmrg echo pdp10-unknown-tops10 132170f7c90cSmrg exit ;; 1322a850946eSmrg *:TENEX:*:*) 1323a850946eSmrg echo pdp10-unknown-tenex 132470f7c90cSmrg exit ;; 1325a850946eSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1326a850946eSmrg echo pdp10-dec-tops20 132770f7c90cSmrg exit ;; 1328a850946eSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1329a850946eSmrg echo pdp10-xkl-tops20 133070f7c90cSmrg exit ;; 1331a850946eSmrg *:TOPS-20:*:*) 1332a850946eSmrg echo pdp10-unknown-tops20 133370f7c90cSmrg exit ;; 1334a850946eSmrg *:ITS:*:*) 1335a850946eSmrg echo pdp10-unknown-its 133670f7c90cSmrg exit ;; 1337a850946eSmrg SEI:*:*:SEIUX) 1338a850946eSmrg echo mips-sei-seiux${UNAME_RELEASE} 133970f7c90cSmrg exit ;; 134070f7c90cSmrg *:DragonFly:*:*) 134170f7c90cSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 134270f7c90cSmrg exit ;; 134370f7c90cSmrg *:*VMS:*:*) 134470f7c90cSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 134570f7c90cSmrg case "${UNAME_MACHINE}" in 134670f7c90cSmrg A*) echo alpha-dec-vms ; exit ;; 134770f7c90cSmrg I*) echo ia64-dec-vms ; exit ;; 134870f7c90cSmrg V*) echo vax-dec-vms ; exit ;; 134970f7c90cSmrg esac ;; 135070f7c90cSmrg *:XENIX:*:SysV) 135170f7c90cSmrg echo i386-pc-xenix 135270f7c90cSmrg exit ;; 135370f7c90cSmrg i*86:skyos:*:*) 135470f7c90cSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 135570f7c90cSmrg exit ;; 135670f7c90cSmrg i*86:rdos:*:*) 135770f7c90cSmrg echo ${UNAME_MACHINE}-pc-rdos 135870f7c90cSmrg exit ;; 135970f7c90cSmrg i*86:AROS:*:*) 136070f7c90cSmrg echo ${UNAME_MACHINE}-pc-aros 136170f7c90cSmrg exit ;; 1362a850946eSmrgesac 1363a850946eSmrg 1364a850946eSmrg#echo '(No uname command or uname output not recognized.)' 1>&2 1365a850946eSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1366a850946eSmrg 1367a850946eSmrgeval $set_cc_for_build 1368a850946eSmrgcat >$dummy.c <<EOF 1369a850946eSmrg#ifdef _SEQUENT_ 1370a850946eSmrg# include <sys/types.h> 1371a850946eSmrg# include <sys/utsname.h> 1372a850946eSmrg#endif 1373a850946eSmrgmain () 1374a850946eSmrg{ 1375a850946eSmrg#if defined (sony) 1376a850946eSmrg#if defined (MIPSEB) 1377a850946eSmrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1378a850946eSmrg I don't know.... */ 1379a850946eSmrg printf ("mips-sony-bsd\n"); exit (0); 1380a850946eSmrg#else 1381a850946eSmrg#include <sys/param.h> 1382a850946eSmrg printf ("m68k-sony-newsos%s\n", 1383a850946eSmrg#ifdef NEWSOS4 1384a850946eSmrg "4" 1385a850946eSmrg#else 1386a850946eSmrg "" 1387a850946eSmrg#endif 1388a850946eSmrg ); exit (0); 1389a850946eSmrg#endif 1390a850946eSmrg#endif 1391a850946eSmrg 1392a850946eSmrg#if defined (__arm) && defined (__acorn) && defined (__unix) 139370f7c90cSmrg printf ("arm-acorn-riscix\n"); exit (0); 1394a850946eSmrg#endif 1395a850946eSmrg 1396a850946eSmrg#if defined (hp300) && !defined (hpux) 1397a850946eSmrg printf ("m68k-hp-bsd\n"); exit (0); 1398a850946eSmrg#endif 1399a850946eSmrg 1400a850946eSmrg#if defined (NeXT) 1401a850946eSmrg#if !defined (__ARCHITECTURE__) 1402a850946eSmrg#define __ARCHITECTURE__ "m68k" 1403a850946eSmrg#endif 1404a850946eSmrg int version; 1405a850946eSmrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1406a850946eSmrg if (version < 4) 1407a850946eSmrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1408a850946eSmrg else 1409a850946eSmrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1410a850946eSmrg exit (0); 1411a850946eSmrg#endif 1412a850946eSmrg 1413a850946eSmrg#if defined (MULTIMAX) || defined (n16) 1414a850946eSmrg#if defined (UMAXV) 1415a850946eSmrg printf ("ns32k-encore-sysv\n"); exit (0); 1416a850946eSmrg#else 1417a850946eSmrg#if defined (CMU) 1418a850946eSmrg printf ("ns32k-encore-mach\n"); exit (0); 1419a850946eSmrg#else 1420a850946eSmrg printf ("ns32k-encore-bsd\n"); exit (0); 1421a850946eSmrg#endif 1422a850946eSmrg#endif 1423a850946eSmrg#endif 1424a850946eSmrg 1425a850946eSmrg#if defined (__386BSD__) 1426a850946eSmrg printf ("i386-pc-bsd\n"); exit (0); 1427a850946eSmrg#endif 1428a850946eSmrg 1429a850946eSmrg#if defined (sequent) 1430a850946eSmrg#if defined (i386) 1431a850946eSmrg printf ("i386-sequent-dynix\n"); exit (0); 1432a850946eSmrg#endif 1433a850946eSmrg#if defined (ns32000) 1434a850946eSmrg printf ("ns32k-sequent-dynix\n"); exit (0); 1435a850946eSmrg#endif 1436a850946eSmrg#endif 1437a850946eSmrg 1438a850946eSmrg#if defined (_SEQUENT_) 1439a850946eSmrg struct utsname un; 1440a850946eSmrg 1441a850946eSmrg uname(&un); 1442a850946eSmrg 1443a850946eSmrg if (strncmp(un.version, "V2", 2) == 0) { 1444a850946eSmrg printf ("i386-sequent-ptx2\n"); exit (0); 1445a850946eSmrg } 1446a850946eSmrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1447a850946eSmrg printf ("i386-sequent-ptx1\n"); exit (0); 1448a850946eSmrg } 1449a850946eSmrg printf ("i386-sequent-ptx\n"); exit (0); 1450a850946eSmrg 1451a850946eSmrg#endif 1452a850946eSmrg 1453a850946eSmrg#if defined (vax) 1454a850946eSmrg# if !defined (ultrix) 1455a850946eSmrg# include <sys/param.h> 1456a850946eSmrg# if defined (BSD) 1457a850946eSmrg# if BSD == 43 1458a850946eSmrg printf ("vax-dec-bsd4.3\n"); exit (0); 1459a850946eSmrg# else 1460a850946eSmrg# if BSD == 199006 1461a850946eSmrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 1462a850946eSmrg# else 1463a850946eSmrg printf ("vax-dec-bsd\n"); exit (0); 1464a850946eSmrg# endif 1465a850946eSmrg# endif 1466a850946eSmrg# else 1467a850946eSmrg printf ("vax-dec-bsd\n"); exit (0); 1468a850946eSmrg# endif 1469a850946eSmrg# else 1470a850946eSmrg printf ("vax-dec-ultrix\n"); exit (0); 1471a850946eSmrg# endif 1472a850946eSmrg#endif 1473a850946eSmrg 1474a850946eSmrg#if defined (alliant) && defined (i860) 1475a850946eSmrg printf ("i860-alliant-bsd\n"); exit (0); 1476a850946eSmrg#endif 1477a850946eSmrg 1478a850946eSmrg exit (1); 1479a850946eSmrg} 1480a850946eSmrgEOF 1481a850946eSmrg 148270f7c90cSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 148370f7c90cSmrg { echo "$SYSTEM_NAME"; exit; } 1484a850946eSmrg 1485a850946eSmrg# Apollos put the system type in the environment. 1486a850946eSmrg 148770f7c90cSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1488a850946eSmrg 1489a850946eSmrg# Convex versions that predate uname can use getsysinfo(1) 1490a850946eSmrg 1491a850946eSmrgif [ -x /usr/convex/getsysinfo ] 1492a850946eSmrgthen 1493a850946eSmrg case `getsysinfo -f cpu_type` in 1494a850946eSmrg c1*) 1495a850946eSmrg echo c1-convex-bsd 149670f7c90cSmrg exit ;; 1497a850946eSmrg c2*) 1498a850946eSmrg if getsysinfo -f scalar_acc 1499a850946eSmrg then echo c32-convex-bsd 1500a850946eSmrg else echo c2-convex-bsd 1501a850946eSmrg fi 150270f7c90cSmrg exit ;; 1503a850946eSmrg c34*) 1504a850946eSmrg echo c34-convex-bsd 150570f7c90cSmrg exit ;; 1506a850946eSmrg c38*) 1507a850946eSmrg echo c38-convex-bsd 150870f7c90cSmrg exit ;; 1509a850946eSmrg c4*) 1510a850946eSmrg echo c4-convex-bsd 151170f7c90cSmrg exit ;; 1512a850946eSmrg esac 1513a850946eSmrgfi 1514a850946eSmrg 1515a850946eSmrgcat >&2 <<EOF 1516a850946eSmrg$0: unable to guess system type 1517a850946eSmrg 1518a850946eSmrgThis script, last modified $timestamp, has failed to recognize 1519a850946eSmrgthe operating system you are using. It is advised that you 1520a850946eSmrgdownload the most up to date version of the config scripts from 1521a850946eSmrg 152270f7c90cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 152370f7c90cSmrgand 152470f7c90cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1525a850946eSmrg 1526a850946eSmrgIf the version you run ($0) is already up to date, please 1527a850946eSmrgsend the following data and any information you think might be 1528a850946eSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 1529a850946eSmrginformation to handle your system. 1530a850946eSmrg 1531a850946eSmrgconfig.guess timestamp = $timestamp 1532a850946eSmrg 1533a850946eSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1534a850946eSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1535a850946eSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1536a850946eSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1537a850946eSmrg 1538a850946eSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1539a850946eSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1540a850946eSmrg 1541a850946eSmrghostinfo = `(hostinfo) 2>/dev/null` 1542a850946eSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 1543a850946eSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1544a850946eSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 1545a850946eSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1546a850946eSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1547a850946eSmrg 1548a850946eSmrgUNAME_MACHINE = ${UNAME_MACHINE} 1549a850946eSmrgUNAME_RELEASE = ${UNAME_RELEASE} 1550a850946eSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 1551a850946eSmrgUNAME_VERSION = ${UNAME_VERSION} 1552a850946eSmrgEOF 1553a850946eSmrg 1554a850946eSmrgexit 1 1555a850946eSmrg 1556a850946eSmrg# Local variables: 1557a850946eSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 1558a850946eSmrg# time-stamp-start: "timestamp='" 1559a850946eSmrg# time-stamp-format: "%:y-%02m-%02d" 1560a850946eSmrg# time-stamp-end: "'" 1561a850946eSmrg# End: 1562