config.guess revision 74c14cd6
172b676d7Smrg#! /bin/sh 272b676d7Smrg# Attempt to guess a canonical system name. 372b676d7Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 474c14cd6Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 574c14cd6Smrg# 2011, 2012 Free Software Foundation, Inc. 672b676d7Smrg 774c14cd6Smrgtimestamp='2012-01-01' 872b676d7Smrg 972b676d7Smrg# This file is free software; you can redistribute it and/or modify it 1072b676d7Smrg# under the terms of the GNU General Public License as published by 1172b676d7Smrg# the Free Software Foundation; either version 2 of the License, or 1272b676d7Smrg# (at your option) any later version. 1372b676d7Smrg# 1472b676d7Smrg# This program is distributed in the hope that it will be useful, but 1572b676d7Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1672b676d7Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1772b676d7Smrg# General Public License for more details. 1872b676d7Smrg# 1972b676d7Smrg# You should have received a copy of the GNU General Public License 2072b676d7Smrg# along with this program; if not, write to the Free Software 2172b676d7Smrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2272b676d7Smrg# 02110-1301, USA. 2372b676d7Smrg# 2472b676d7Smrg# As a special exception to the GNU General Public License, if you 2572b676d7Smrg# distribute this file as part of a program that contains a 2672b676d7Smrg# configuration script generated by Autoconf, you may include it under 2772b676d7Smrg# the same distribution terms that you use for the rest of that program. 2872b676d7Smrg 2972b676d7Smrg 3074c14cd6Smrg# Originally written by Per Bothner. Please send patches (context 3174c14cd6Smrg# diff format) to <config-patches@gnu.org> and include a ChangeLog 3274c14cd6Smrg# entry. 3372b676d7Smrg# 3472b676d7Smrg# This script attempts to guess a canonical system name similar to 3572b676d7Smrg# config.sub. If it succeeds, it prints the system name on stdout, and 3672b676d7Smrg# exits with 0. Otherwise, it exits with 1. 3772b676d7Smrg# 3874c14cd6Smrg# You can get the latest version of this script from: 3974c14cd6Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 4072b676d7Smrg 4172b676d7Smrgme=`echo "$0" | sed -e 's,.*/,,'` 4272b676d7Smrg 4372b676d7Smrgusage="\ 4472b676d7SmrgUsage: $0 [OPTION] 4572b676d7Smrg 4672b676d7SmrgOutput the configuration name of the system \`$me' is run on. 4772b676d7Smrg 4872b676d7SmrgOperation modes: 4972b676d7Smrg -h, --help print this help, then exit 5072b676d7Smrg -t, --time-stamp print date of last modification, then exit 5172b676d7Smrg -v, --version print version number, then exit 5272b676d7Smrg 5372b676d7SmrgReport bugs and patches to <config-patches@gnu.org>." 5472b676d7Smrg 5572b676d7Smrgversion="\ 5672b676d7SmrgGNU config.guess ($timestamp) 5772b676d7Smrg 5872b676d7SmrgOriginally written by Per Bothner. 5974c14cd6SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 6074c14cd6Smrg2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 6174c14cd6SmrgFree Software Foundation, Inc. 6272b676d7Smrg 6372b676d7SmrgThis is free software; see the source for copying conditions. There is NO 6472b676d7Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 6572b676d7Smrg 6672b676d7Smrghelp=" 6772b676d7SmrgTry \`$me --help' for more information." 6872b676d7Smrg 6972b676d7Smrg# Parse command line 7072b676d7Smrgwhile test $# -gt 0 ; do 7172b676d7Smrg case $1 in 7272b676d7Smrg --time-stamp | --time* | -t ) 7372b676d7Smrg echo "$timestamp" ; exit ;; 7472b676d7Smrg --version | -v ) 7572b676d7Smrg echo "$version" ; exit ;; 7672b676d7Smrg --help | --h* | -h ) 7772b676d7Smrg echo "$usage"; exit ;; 7872b676d7Smrg -- ) # Stop option processing 7972b676d7Smrg shift; break ;; 8072b676d7Smrg - ) # Use stdin as input. 8172b676d7Smrg break ;; 8272b676d7Smrg -* ) 8372b676d7Smrg echo "$me: invalid option $1$help" >&2 8472b676d7Smrg exit 1 ;; 8572b676d7Smrg * ) 8672b676d7Smrg break ;; 8772b676d7Smrg esac 8872b676d7Smrgdone 8972b676d7Smrg 9072b676d7Smrgif test $# != 0; then 9172b676d7Smrg echo "$me: too many arguments$help" >&2 9272b676d7Smrg exit 1 9372b676d7Smrgfi 9472b676d7Smrg 9572b676d7Smrgtrap 'exit 1' 1 2 15 9672b676d7Smrg 9772b676d7Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9872b676d7Smrg# compiler to aid in system detection is discouraged as it requires 9972b676d7Smrg# temporary files to be created and, as you can see below, it is a 10072b676d7Smrg# headache to deal with in a portable fashion. 10172b676d7Smrg 10272b676d7Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 10372b676d7Smrg# use `HOST_CC' if defined, but it is deprecated. 10472b676d7Smrg 10572b676d7Smrg# Portable tmp directory creation inspired by the Autoconf team. 10672b676d7Smrg 10772b676d7Smrgset_cc_for_build=' 10872b676d7Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10972b676d7Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 11072b676d7Smrg: ${TMPDIR=/tmp} ; 11172b676d7Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 11272b676d7Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 11372b676d7Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 11472b676d7Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 11572b676d7Smrgdummy=$tmp/dummy ; 11672b676d7Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 11772b676d7Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11872b676d7Smrg ,,) echo "int x;" > $dummy.c ; 11972b676d7Smrg for c in cc gcc c89 c99 ; do 12072b676d7Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 12172b676d7Smrg CC_FOR_BUILD="$c"; break ; 12272b676d7Smrg fi ; 12372b676d7Smrg done ; 12472b676d7Smrg if test x"$CC_FOR_BUILD" = x ; then 12572b676d7Smrg CC_FOR_BUILD=no_compiler_found ; 12672b676d7Smrg fi 12772b676d7Smrg ;; 12872b676d7Smrg ,,*) CC_FOR_BUILD=$CC ;; 12972b676d7Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 13072b676d7Smrgesac ; set_cc_for_build= ;' 13172b676d7Smrg 13272b676d7Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 13372b676d7Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 13472b676d7Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 13572b676d7Smrg PATH=$PATH:/.attbin ; export PATH 13672b676d7Smrgfi 13772b676d7Smrg 13872b676d7SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13972b676d7SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 14072b676d7SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 14172b676d7SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 14272b676d7Smrg 14372b676d7Smrg# Note: order is significant - the case branches are not exclusive. 14472b676d7Smrg 14572b676d7Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 14672b676d7Smrg *:NetBSD:*:*) 14772b676d7Smrg # NetBSD (nbsd) targets should (where applicable) match one or 14874c14cd6Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 14972b676d7Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 15072b676d7Smrg # switched to ELF, *-*-netbsd* would select the old 15172b676d7Smrg # object file format. This provides both forward 15272b676d7Smrg # compatibility and a consistent mechanism for selecting the 15372b676d7Smrg # object file format. 15472b676d7Smrg # 15572b676d7Smrg # Note: NetBSD doesn't particularly care about the vendor 15672b676d7Smrg # portion of the name. We always set it to "unknown". 15772b676d7Smrg sysctl="sysctl -n hw.machine_arch" 15872b676d7Smrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 15972b676d7Smrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 16072b676d7Smrg case "${UNAME_MACHINE_ARCH}" in 16172b676d7Smrg armeb) machine=armeb-unknown ;; 16272b676d7Smrg arm*) machine=arm-unknown ;; 16372b676d7Smrg sh3el) machine=shl-unknown ;; 16472b676d7Smrg sh3eb) machine=sh-unknown ;; 1651fd23544Smrg sh5el) machine=sh5le-unknown ;; 16672b676d7Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 16772b676d7Smrg esac 16872b676d7Smrg # The Operating System including object format, if it has switched 16972b676d7Smrg # to ELF recently, or will in the future. 17072b676d7Smrg case "${UNAME_MACHINE_ARCH}" in 17172b676d7Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 17272b676d7Smrg eval $set_cc_for_build 17372b676d7Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 17474c14cd6Smrg | grep -q __ELF__ 17572b676d7Smrg then 17672b676d7Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 17772b676d7Smrg # Return netbsd for either. FIX? 17872b676d7Smrg os=netbsd 17972b676d7Smrg else 18072b676d7Smrg os=netbsdelf 18172b676d7Smrg fi 18272b676d7Smrg ;; 18372b676d7Smrg *) 18474c14cd6Smrg os=netbsd 18572b676d7Smrg ;; 18672b676d7Smrg esac 18772b676d7Smrg # The OS release 18872b676d7Smrg # Debian GNU/NetBSD machines have a different userland, and 18972b676d7Smrg # thus, need a distinct triplet. However, they do not need 19072b676d7Smrg # kernel version information, so it can be replaced with a 19172b676d7Smrg # suitable tag, in the style of linux-gnu. 19272b676d7Smrg case "${UNAME_VERSION}" in 19372b676d7Smrg Debian*) 19472b676d7Smrg release='-gnu' 19572b676d7Smrg ;; 19672b676d7Smrg *) 19772b676d7Smrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 19872b676d7Smrg ;; 19972b676d7Smrg esac 20072b676d7Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 20172b676d7Smrg # contains redundant information, the shorter form: 20272b676d7Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 20372b676d7Smrg echo "${machine}-${os}${release}" 20472b676d7Smrg exit ;; 20572b676d7Smrg *:OpenBSD:*:*) 20672b676d7Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 20772b676d7Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 20872b676d7Smrg exit ;; 20972b676d7Smrg *:ekkoBSD:*:*) 21072b676d7Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 21172b676d7Smrg exit ;; 21272b676d7Smrg *:SolidBSD:*:*) 21372b676d7Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 21472b676d7Smrg exit ;; 21572b676d7Smrg macppc:MirBSD:*:*) 2161fd23544Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 21772b676d7Smrg exit ;; 21872b676d7Smrg *:MirBSD:*:*) 21972b676d7Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 22072b676d7Smrg exit ;; 22172b676d7Smrg alpha:OSF1:*:*) 22272b676d7Smrg case $UNAME_RELEASE in 22372b676d7Smrg *4.0) 22472b676d7Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 22572b676d7Smrg ;; 22672b676d7Smrg *5.*) 22774c14cd6Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 22872b676d7Smrg ;; 22972b676d7Smrg esac 23072b676d7Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 23172b676d7Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 23272b676d7Smrg # covers most systems running today. This code pipes the CPU 23372b676d7Smrg # types through head -n 1, so we only detect the type of CPU 0. 23472b676d7Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 23572b676d7Smrg case "$ALPHA_CPU_TYPE" in 23672b676d7Smrg "EV4 (21064)") 23772b676d7Smrg UNAME_MACHINE="alpha" ;; 23872b676d7Smrg "EV4.5 (21064)") 23972b676d7Smrg UNAME_MACHINE="alpha" ;; 24072b676d7Smrg "LCA4 (21066/21068)") 24172b676d7Smrg UNAME_MACHINE="alpha" ;; 24272b676d7Smrg "EV5 (21164)") 24372b676d7Smrg UNAME_MACHINE="alphaev5" ;; 24472b676d7Smrg "EV5.6 (21164A)") 24572b676d7Smrg UNAME_MACHINE="alphaev56" ;; 24672b676d7Smrg "EV5.6 (21164PC)") 24772b676d7Smrg UNAME_MACHINE="alphapca56" ;; 24872b676d7Smrg "EV5.7 (21164PC)") 24972b676d7Smrg UNAME_MACHINE="alphapca57" ;; 25072b676d7Smrg "EV6 (21264)") 25172b676d7Smrg UNAME_MACHINE="alphaev6" ;; 25272b676d7Smrg "EV6.7 (21264A)") 25372b676d7Smrg UNAME_MACHINE="alphaev67" ;; 25472b676d7Smrg "EV6.8CB (21264C)") 25572b676d7Smrg UNAME_MACHINE="alphaev68" ;; 25672b676d7Smrg "EV6.8AL (21264B)") 25772b676d7Smrg UNAME_MACHINE="alphaev68" ;; 25872b676d7Smrg "EV6.8CX (21264D)") 25972b676d7Smrg UNAME_MACHINE="alphaev68" ;; 26072b676d7Smrg "EV6.9A (21264/EV69A)") 26172b676d7Smrg UNAME_MACHINE="alphaev69" ;; 26272b676d7Smrg "EV7 (21364)") 26372b676d7Smrg UNAME_MACHINE="alphaev7" ;; 26472b676d7Smrg "EV7.9 (21364A)") 26572b676d7Smrg UNAME_MACHINE="alphaev79" ;; 26672b676d7Smrg esac 26772b676d7Smrg # A Pn.n version is a patched version. 26872b676d7Smrg # A Vn.n version is a released version. 26972b676d7Smrg # A Tn.n version is a released field test version. 27072b676d7Smrg # A Xn.n version is an unreleased experimental baselevel. 27172b676d7Smrg # 1.2 uses "1.2" for uname -r. 27272b676d7Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27374c14cd6Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 27474c14cd6Smrg exitcode=$? 27574c14cd6Smrg trap '' 0 27674c14cd6Smrg exit $exitcode ;; 27772b676d7Smrg Alpha\ *:Windows_NT*:*) 27872b676d7Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 27972b676d7Smrg # Should we change UNAME_MACHINE based on the output of uname instead 28072b676d7Smrg # of the specific Alpha model? 28172b676d7Smrg echo alpha-pc-interix 28272b676d7Smrg exit ;; 28372b676d7Smrg 21064:Windows_NT:50:3) 28472b676d7Smrg echo alpha-dec-winnt3.5 28572b676d7Smrg exit ;; 28672b676d7Smrg Amiga*:UNIX_System_V:4.0:*) 28772b676d7Smrg echo m68k-unknown-sysv4 28872b676d7Smrg exit ;; 28972b676d7Smrg *:[Aa]miga[Oo][Ss]:*:*) 29072b676d7Smrg echo ${UNAME_MACHINE}-unknown-amigaos 29172b676d7Smrg exit ;; 29272b676d7Smrg *:[Mm]orph[Oo][Ss]:*:*) 29372b676d7Smrg echo ${UNAME_MACHINE}-unknown-morphos 29472b676d7Smrg exit ;; 29572b676d7Smrg *:OS/390:*:*) 29672b676d7Smrg echo i370-ibm-openedition 29772b676d7Smrg exit ;; 29872b676d7Smrg *:z/VM:*:*) 29972b676d7Smrg echo s390-ibm-zvmoe 30072b676d7Smrg exit ;; 30172b676d7Smrg *:OS400:*:*) 30274c14cd6Smrg echo powerpc-ibm-os400 30372b676d7Smrg exit ;; 30472b676d7Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 30572b676d7Smrg echo arm-acorn-riscix${UNAME_RELEASE} 30672b676d7Smrg exit ;; 30772b676d7Smrg arm:riscos:*:*|arm:RISCOS:*:*) 30872b676d7Smrg echo arm-unknown-riscos 30972b676d7Smrg exit ;; 31072b676d7Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 31172b676d7Smrg echo hppa1.1-hitachi-hiuxmpp 31272b676d7Smrg exit ;; 31372b676d7Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 31472b676d7Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 31572b676d7Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 31672b676d7Smrg echo pyramid-pyramid-sysv3 31772b676d7Smrg else 31872b676d7Smrg echo pyramid-pyramid-bsd 31972b676d7Smrg fi 32072b676d7Smrg exit ;; 32172b676d7Smrg NILE*:*:*:dcosx) 32272b676d7Smrg echo pyramid-pyramid-svr4 32372b676d7Smrg exit ;; 32472b676d7Smrg DRS?6000:unix:4.0:6*) 32572b676d7Smrg echo sparc-icl-nx6 32672b676d7Smrg exit ;; 32772b676d7Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 32872b676d7Smrg case `/usr/bin/uname -p` in 32972b676d7Smrg sparc) echo sparc-icl-nx7; exit ;; 33072b676d7Smrg esac ;; 33174c14cd6Smrg s390x:SunOS:*:*) 33274c14cd6Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33374c14cd6Smrg exit ;; 33472b676d7Smrg sun4H:SunOS:5.*:*) 33572b676d7Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33672b676d7Smrg exit ;; 33772b676d7Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 33872b676d7Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33972b676d7Smrg exit ;; 34074c14cd6Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 34174c14cd6Smrg echo i386-pc-auroraux${UNAME_RELEASE} 34274c14cd6Smrg exit ;; 3431fd23544Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 34474c14cd6Smrg eval $set_cc_for_build 34574c14cd6Smrg SUN_ARCH="i386" 34674c14cd6Smrg # If there is a compiler, see if it is configured for 64-bit objects. 34774c14cd6Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 34874c14cd6Smrg # This test works for both compilers. 34974c14cd6Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 35074c14cd6Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 35174c14cd6Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 35274c14cd6Smrg grep IS_64BIT_ARCH >/dev/null 35374c14cd6Smrg then 35474c14cd6Smrg SUN_ARCH="x86_64" 35574c14cd6Smrg fi 35674c14cd6Smrg fi 35774c14cd6Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35872b676d7Smrg exit ;; 35972b676d7Smrg sun4*:SunOS:6*:*) 36072b676d7Smrg # According to config.sub, this is the proper way to canonicalize 36172b676d7Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 36272b676d7Smrg # it's likely to be more like Solaris than SunOS4. 36372b676d7Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 36472b676d7Smrg exit ;; 36572b676d7Smrg sun4*:SunOS:*:*) 36672b676d7Smrg case "`/usr/bin/arch -k`" in 36772b676d7Smrg Series*|S4*) 36872b676d7Smrg UNAME_RELEASE=`uname -v` 36972b676d7Smrg ;; 37072b676d7Smrg esac 37172b676d7Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 37272b676d7Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 37372b676d7Smrg exit ;; 37472b676d7Smrg sun3*:SunOS:*:*) 37572b676d7Smrg echo m68k-sun-sunos${UNAME_RELEASE} 37672b676d7Smrg exit ;; 37772b676d7Smrg sun*:*:4.2BSD:*) 37872b676d7Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 37972b676d7Smrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 38072b676d7Smrg case "`/bin/arch`" in 38172b676d7Smrg sun3) 38272b676d7Smrg echo m68k-sun-sunos${UNAME_RELEASE} 38372b676d7Smrg ;; 38472b676d7Smrg sun4) 38572b676d7Smrg echo sparc-sun-sunos${UNAME_RELEASE} 38672b676d7Smrg ;; 38772b676d7Smrg esac 38872b676d7Smrg exit ;; 38972b676d7Smrg aushp:SunOS:*:*) 39072b676d7Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 39172b676d7Smrg exit ;; 39272b676d7Smrg # The situation for MiNT is a little confusing. The machine name 39372b676d7Smrg # can be virtually everything (everything which is not 39472b676d7Smrg # "atarist" or "atariste" at least should have a processor 39572b676d7Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 39672b676d7Smrg # to the lowercase version "mint" (or "freemint"). Finally 39772b676d7Smrg # the system name "TOS" denotes a system which is actually not 39872b676d7Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 39972b676d7Smrg # be no problem. 40072b676d7Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 40174c14cd6Smrg echo m68k-atari-mint${UNAME_RELEASE} 40272b676d7Smrg exit ;; 40372b676d7Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 40472b676d7Smrg echo m68k-atari-mint${UNAME_RELEASE} 40574c14cd6Smrg exit ;; 40672b676d7Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 40774c14cd6Smrg echo m68k-atari-mint${UNAME_RELEASE} 40872b676d7Smrg exit ;; 40972b676d7Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 41074c14cd6Smrg echo m68k-milan-mint${UNAME_RELEASE} 41174c14cd6Smrg exit ;; 41272b676d7Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 41374c14cd6Smrg echo m68k-hades-mint${UNAME_RELEASE} 41474c14cd6Smrg exit ;; 41572b676d7Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 41674c14cd6Smrg echo m68k-unknown-mint${UNAME_RELEASE} 41774c14cd6Smrg exit ;; 41872b676d7Smrg m68k:machten:*:*) 41972b676d7Smrg echo m68k-apple-machten${UNAME_RELEASE} 42072b676d7Smrg exit ;; 42172b676d7Smrg powerpc:machten:*:*) 42272b676d7Smrg echo powerpc-apple-machten${UNAME_RELEASE} 42372b676d7Smrg exit ;; 42472b676d7Smrg RISC*:Mach:*:*) 42572b676d7Smrg echo mips-dec-mach_bsd4.3 42672b676d7Smrg exit ;; 42772b676d7Smrg RISC*:ULTRIX:*:*) 42872b676d7Smrg echo mips-dec-ultrix${UNAME_RELEASE} 42972b676d7Smrg exit ;; 43072b676d7Smrg VAX*:ULTRIX*:*:*) 43172b676d7Smrg echo vax-dec-ultrix${UNAME_RELEASE} 43272b676d7Smrg exit ;; 43372b676d7Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 43472b676d7Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 43572b676d7Smrg exit ;; 43672b676d7Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 43772b676d7Smrg eval $set_cc_for_build 43872b676d7Smrg sed 's/^ //' << EOF >$dummy.c 43972b676d7Smrg#ifdef __cplusplus 44072b676d7Smrg#include <stdio.h> /* for printf() prototype */ 44172b676d7Smrg int main (int argc, char *argv[]) { 44272b676d7Smrg#else 44372b676d7Smrg int main (argc, argv) int argc; char *argv[]; { 44472b676d7Smrg#endif 44572b676d7Smrg #if defined (host_mips) && defined (MIPSEB) 44672b676d7Smrg #if defined (SYSTYPE_SYSV) 44772b676d7Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 44872b676d7Smrg #endif 44972b676d7Smrg #if defined (SYSTYPE_SVR4) 45072b676d7Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 45172b676d7Smrg #endif 45272b676d7Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 45372b676d7Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 45472b676d7Smrg #endif 45572b676d7Smrg #endif 45672b676d7Smrg exit (-1); 45772b676d7Smrg } 45872b676d7SmrgEOF 45972b676d7Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 46072b676d7Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 46172b676d7Smrg SYSTEM_NAME=`$dummy $dummyarg` && 46272b676d7Smrg { echo "$SYSTEM_NAME"; exit; } 46372b676d7Smrg echo mips-mips-riscos${UNAME_RELEASE} 46472b676d7Smrg exit ;; 46572b676d7Smrg Motorola:PowerMAX_OS:*:*) 46672b676d7Smrg echo powerpc-motorola-powermax 46772b676d7Smrg exit ;; 46872b676d7Smrg Motorola:*:4.3:PL8-*) 46972b676d7Smrg echo powerpc-harris-powermax 47072b676d7Smrg exit ;; 47172b676d7Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 47272b676d7Smrg echo powerpc-harris-powermax 47372b676d7Smrg exit ;; 47472b676d7Smrg Night_Hawk:Power_UNIX:*:*) 47572b676d7Smrg echo powerpc-harris-powerunix 47672b676d7Smrg exit ;; 47772b676d7Smrg m88k:CX/UX:7*:*) 47872b676d7Smrg echo m88k-harris-cxux7 47972b676d7Smrg exit ;; 48072b676d7Smrg m88k:*:4*:R4*) 48172b676d7Smrg echo m88k-motorola-sysv4 48272b676d7Smrg exit ;; 48372b676d7Smrg m88k:*:3*:R3*) 48472b676d7Smrg echo m88k-motorola-sysv3 48572b676d7Smrg exit ;; 48672b676d7Smrg AViiON:dgux:*:*) 48774c14cd6Smrg # DG/UX returns AViiON for all architectures 48874c14cd6Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 48972b676d7Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 49072b676d7Smrg then 49172b676d7Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 49272b676d7Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 49372b676d7Smrg then 49472b676d7Smrg echo m88k-dg-dgux${UNAME_RELEASE} 49572b676d7Smrg else 49672b676d7Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 49772b676d7Smrg fi 49872b676d7Smrg else 49972b676d7Smrg echo i586-dg-dgux${UNAME_RELEASE} 50072b676d7Smrg fi 50174c14cd6Smrg exit ;; 50272b676d7Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 50372b676d7Smrg echo m88k-dolphin-sysv3 50472b676d7Smrg exit ;; 50572b676d7Smrg M88*:*:R3*:*) 50672b676d7Smrg # Delta 88k system running SVR3 50772b676d7Smrg echo m88k-motorola-sysv3 50872b676d7Smrg exit ;; 50972b676d7Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 51072b676d7Smrg echo m88k-tektronix-sysv3 51172b676d7Smrg exit ;; 51272b676d7Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 51372b676d7Smrg echo m68k-tektronix-bsd 51472b676d7Smrg exit ;; 51572b676d7Smrg *:IRIX*:*:*) 51672b676d7Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 51772b676d7Smrg exit ;; 51872b676d7Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 51972b676d7Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 52072b676d7Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 52172b676d7Smrg i*86:AIX:*:*) 52272b676d7Smrg echo i386-ibm-aix 52372b676d7Smrg exit ;; 52472b676d7Smrg ia64:AIX:*:*) 52572b676d7Smrg if [ -x /usr/bin/oslevel ] ; then 52672b676d7Smrg IBM_REV=`/usr/bin/oslevel` 52772b676d7Smrg else 52872b676d7Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 52972b676d7Smrg fi 53072b676d7Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 53172b676d7Smrg exit ;; 53272b676d7Smrg *:AIX:2:3) 53372b676d7Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 53472b676d7Smrg eval $set_cc_for_build 53572b676d7Smrg sed 's/^ //' << EOF >$dummy.c 53672b676d7Smrg #include <sys/systemcfg.h> 53772b676d7Smrg 53872b676d7Smrg main() 53972b676d7Smrg { 54072b676d7Smrg if (!__power_pc()) 54172b676d7Smrg exit(1); 54272b676d7Smrg puts("powerpc-ibm-aix3.2.5"); 54372b676d7Smrg exit(0); 54472b676d7Smrg } 54572b676d7SmrgEOF 54672b676d7Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 54772b676d7Smrg then 54872b676d7Smrg echo "$SYSTEM_NAME" 54972b676d7Smrg else 55072b676d7Smrg echo rs6000-ibm-aix3.2.5 55172b676d7Smrg fi 55272b676d7Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 55372b676d7Smrg echo rs6000-ibm-aix3.2.4 55472b676d7Smrg else 55572b676d7Smrg echo rs6000-ibm-aix3.2 55672b676d7Smrg fi 55772b676d7Smrg exit ;; 55874c14cd6Smrg *:AIX:*:[4567]) 55972b676d7Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 56072b676d7Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 56172b676d7Smrg IBM_ARCH=rs6000 56272b676d7Smrg else 56372b676d7Smrg IBM_ARCH=powerpc 56472b676d7Smrg fi 56572b676d7Smrg if [ -x /usr/bin/oslevel ] ; then 56672b676d7Smrg IBM_REV=`/usr/bin/oslevel` 56772b676d7Smrg else 56872b676d7Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 56972b676d7Smrg fi 57072b676d7Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 57172b676d7Smrg exit ;; 57272b676d7Smrg *:AIX:*:*) 57372b676d7Smrg echo rs6000-ibm-aix 57472b676d7Smrg exit ;; 57572b676d7Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 57672b676d7Smrg echo romp-ibm-bsd4.4 57772b676d7Smrg exit ;; 57872b676d7Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 57972b676d7Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 58072b676d7Smrg exit ;; # report: romp-ibm BSD 4.3 58172b676d7Smrg *:BOSX:*:*) 58272b676d7Smrg echo rs6000-bull-bosx 58372b676d7Smrg exit ;; 58472b676d7Smrg DPX/2?00:B.O.S.:*:*) 58572b676d7Smrg echo m68k-bull-sysv3 58672b676d7Smrg exit ;; 58772b676d7Smrg 9000/[34]??:4.3bsd:1.*:*) 58872b676d7Smrg echo m68k-hp-bsd 58972b676d7Smrg exit ;; 59072b676d7Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 59172b676d7Smrg echo m68k-hp-bsd4.4 59272b676d7Smrg exit ;; 59372b676d7Smrg 9000/[34678]??:HP-UX:*:*) 59472b676d7Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 59572b676d7Smrg case "${UNAME_MACHINE}" in 59672b676d7Smrg 9000/31? ) HP_ARCH=m68000 ;; 59772b676d7Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 59872b676d7Smrg 9000/[678][0-9][0-9]) 59972b676d7Smrg if [ -x /usr/bin/getconf ]; then 60072b676d7Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 60174c14cd6Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 60274c14cd6Smrg case "${sc_cpu_version}" in 60374c14cd6Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 60474c14cd6Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 60574c14cd6Smrg 532) # CPU_PA_RISC2_0 60674c14cd6Smrg case "${sc_kernel_bits}" in 60774c14cd6Smrg 32) HP_ARCH="hppa2.0n" ;; 60874c14cd6Smrg 64) HP_ARCH="hppa2.0w" ;; 60972b676d7Smrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 61074c14cd6Smrg esac ;; 61174c14cd6Smrg esac 61272b676d7Smrg fi 61372b676d7Smrg if [ "${HP_ARCH}" = "" ]; then 61472b676d7Smrg eval $set_cc_for_build 61574c14cd6Smrg sed 's/^ //' << EOF >$dummy.c 61672b676d7Smrg 61774c14cd6Smrg #define _HPUX_SOURCE 61874c14cd6Smrg #include <stdlib.h> 61974c14cd6Smrg #include <unistd.h> 62072b676d7Smrg 62174c14cd6Smrg int main () 62274c14cd6Smrg { 62374c14cd6Smrg #if defined(_SC_KERNEL_BITS) 62474c14cd6Smrg long bits = sysconf(_SC_KERNEL_BITS); 62574c14cd6Smrg #endif 62674c14cd6Smrg long cpu = sysconf (_SC_CPU_VERSION); 62772b676d7Smrg 62874c14cd6Smrg switch (cpu) 62974c14cd6Smrg { 63074c14cd6Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 63174c14cd6Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 63274c14cd6Smrg case CPU_PA_RISC2_0: 63374c14cd6Smrg #if defined(_SC_KERNEL_BITS) 63474c14cd6Smrg switch (bits) 63574c14cd6Smrg { 63674c14cd6Smrg case 64: puts ("hppa2.0w"); break; 63774c14cd6Smrg case 32: puts ("hppa2.0n"); break; 63874c14cd6Smrg default: puts ("hppa2.0"); break; 63974c14cd6Smrg } break; 64074c14cd6Smrg #else /* !defined(_SC_KERNEL_BITS) */ 64174c14cd6Smrg puts ("hppa2.0"); break; 64274c14cd6Smrg #endif 64374c14cd6Smrg default: puts ("hppa1.0"); break; 64474c14cd6Smrg } 64574c14cd6Smrg exit (0); 64674c14cd6Smrg } 64772b676d7SmrgEOF 64872b676d7Smrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 64972b676d7Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 65072b676d7Smrg fi ;; 65172b676d7Smrg esac 65272b676d7Smrg if [ ${HP_ARCH} = "hppa2.0w" ] 65372b676d7Smrg then 65472b676d7Smrg eval $set_cc_for_build 65572b676d7Smrg 65672b676d7Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 65772b676d7Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 65872b676d7Smrg # generating 64-bit code. GNU and HP use different nomenclature: 65972b676d7Smrg # 66072b676d7Smrg # $ CC_FOR_BUILD=cc ./config.guess 66172b676d7Smrg # => hppa2.0w-hp-hpux11.23 66272b676d7Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 66372b676d7Smrg # => hppa64-hp-hpux11.23 66472b676d7Smrg 66572b676d7Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 66674c14cd6Smrg grep -q __LP64__ 66772b676d7Smrg then 66872b676d7Smrg HP_ARCH="hppa2.0w" 66972b676d7Smrg else 67072b676d7Smrg HP_ARCH="hppa64" 67172b676d7Smrg fi 67272b676d7Smrg fi 67372b676d7Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 67472b676d7Smrg exit ;; 67572b676d7Smrg ia64:HP-UX:*:*) 67672b676d7Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 67772b676d7Smrg echo ia64-hp-hpux${HPUX_REV} 67872b676d7Smrg exit ;; 67972b676d7Smrg 3050*:HI-UX:*:*) 68072b676d7Smrg eval $set_cc_for_build 68172b676d7Smrg sed 's/^ //' << EOF >$dummy.c 68272b676d7Smrg #include <unistd.h> 68372b676d7Smrg int 68472b676d7Smrg main () 68572b676d7Smrg { 68672b676d7Smrg long cpu = sysconf (_SC_CPU_VERSION); 68772b676d7Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 68872b676d7Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 68972b676d7Smrg results, however. */ 69072b676d7Smrg if (CPU_IS_PA_RISC (cpu)) 69172b676d7Smrg { 69272b676d7Smrg switch (cpu) 69372b676d7Smrg { 69472b676d7Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 69572b676d7Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 69672b676d7Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 69772b676d7Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 69872b676d7Smrg } 69972b676d7Smrg } 70072b676d7Smrg else if (CPU_IS_HP_MC68K (cpu)) 70172b676d7Smrg puts ("m68k-hitachi-hiuxwe2"); 70272b676d7Smrg else puts ("unknown-hitachi-hiuxwe2"); 70372b676d7Smrg exit (0); 70472b676d7Smrg } 70572b676d7SmrgEOF 70672b676d7Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 70772b676d7Smrg { echo "$SYSTEM_NAME"; exit; } 70872b676d7Smrg echo unknown-hitachi-hiuxwe2 70972b676d7Smrg exit ;; 71072b676d7Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 71172b676d7Smrg echo hppa1.1-hp-bsd 71272b676d7Smrg exit ;; 71372b676d7Smrg 9000/8??:4.3bsd:*:*) 71472b676d7Smrg echo hppa1.0-hp-bsd 71572b676d7Smrg exit ;; 71672b676d7Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 71772b676d7Smrg echo hppa1.0-hp-mpeix 71872b676d7Smrg exit ;; 71972b676d7Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 72072b676d7Smrg echo hppa1.1-hp-osf 72172b676d7Smrg exit ;; 72272b676d7Smrg hp8??:OSF1:*:*) 72372b676d7Smrg echo hppa1.0-hp-osf 72472b676d7Smrg exit ;; 72572b676d7Smrg i*86:OSF1:*:*) 72672b676d7Smrg if [ -x /usr/sbin/sysversion ] ; then 72772b676d7Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 72872b676d7Smrg else 72972b676d7Smrg echo ${UNAME_MACHINE}-unknown-osf1 73072b676d7Smrg fi 73172b676d7Smrg exit ;; 73272b676d7Smrg parisc*:Lites*:*:*) 73372b676d7Smrg echo hppa1.1-hp-lites 73472b676d7Smrg exit ;; 73572b676d7Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 73672b676d7Smrg echo c1-convex-bsd 73774c14cd6Smrg exit ;; 73872b676d7Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 73972b676d7Smrg if getsysinfo -f scalar_acc 74072b676d7Smrg then echo c32-convex-bsd 74172b676d7Smrg else echo c2-convex-bsd 74272b676d7Smrg fi 74374c14cd6Smrg exit ;; 74472b676d7Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 74572b676d7Smrg echo c34-convex-bsd 74674c14cd6Smrg exit ;; 74772b676d7Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 74872b676d7Smrg echo c38-convex-bsd 74974c14cd6Smrg exit ;; 75072b676d7Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 75172b676d7Smrg echo c4-convex-bsd 75274c14cd6Smrg exit ;; 75372b676d7Smrg CRAY*Y-MP:*:*:*) 75472b676d7Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 75572b676d7Smrg exit ;; 75672b676d7Smrg CRAY*[A-Z]90:*:*:*) 75772b676d7Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 75872b676d7Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 75972b676d7Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 76072b676d7Smrg -e 's/\.[^.]*$/.X/' 76172b676d7Smrg exit ;; 76272b676d7Smrg CRAY*TS:*:*:*) 76372b676d7Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 76472b676d7Smrg exit ;; 76572b676d7Smrg CRAY*T3E:*:*:*) 76672b676d7Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 76772b676d7Smrg exit ;; 76872b676d7Smrg CRAY*SV1:*:*:*) 76972b676d7Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 77072b676d7Smrg exit ;; 77172b676d7Smrg *:UNICOS/mp:*:*) 77272b676d7Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 77372b676d7Smrg exit ;; 77472b676d7Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 77572b676d7Smrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 77674c14cd6Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 77774c14cd6Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 77874c14cd6Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 77974c14cd6Smrg exit ;; 78072b676d7Smrg 5000:UNIX_System_V:4.*:*) 78174c14cd6Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 78274c14cd6Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 78374c14cd6Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 78472b676d7Smrg exit ;; 78572b676d7Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 78672b676d7Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 78772b676d7Smrg exit ;; 78872b676d7Smrg sparc*:BSD/OS:*:*) 78972b676d7Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 79072b676d7Smrg exit ;; 79172b676d7Smrg *:BSD/OS:*:*) 79272b676d7Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 79372b676d7Smrg exit ;; 79472b676d7Smrg *:FreeBSD:*:*) 79574c14cd6Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 79674c14cd6Smrg case ${UNAME_PROCESSOR} in 7971fd23544Smrg amd64) 7981fd23544Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 79972b676d7Smrg *) 80074c14cd6Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 80172b676d7Smrg esac 80272b676d7Smrg exit ;; 80372b676d7Smrg i*:CYGWIN*:*) 80472b676d7Smrg echo ${UNAME_MACHINE}-pc-cygwin 80572b676d7Smrg exit ;; 8061fd23544Smrg *:MINGW*:*) 80772b676d7Smrg echo ${UNAME_MACHINE}-pc-mingw32 80872b676d7Smrg exit ;; 80974c14cd6Smrg i*:MSYS*:*) 81074c14cd6Smrg echo ${UNAME_MACHINE}-pc-msys 81174c14cd6Smrg exit ;; 81272b676d7Smrg i*:windows32*:*) 81374c14cd6Smrg # uname -m includes "-pc" on this system. 81474c14cd6Smrg echo ${UNAME_MACHINE}-mingw32 81572b676d7Smrg exit ;; 81672b676d7Smrg i*:PW*:*) 81772b676d7Smrg echo ${UNAME_MACHINE}-pc-pw32 81872b676d7Smrg exit ;; 81974c14cd6Smrg *:Interix*:*) 82074c14cd6Smrg case ${UNAME_MACHINE} in 8211fd23544Smrg x86) 8221fd23544Smrg echo i586-pc-interix${UNAME_RELEASE} 8231fd23544Smrg exit ;; 82474c14cd6Smrg authenticamd | genuineintel | EM64T) 8251fd23544Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 8261fd23544Smrg exit ;; 8271fd23544Smrg IA64) 8281fd23544Smrg echo ia64-unknown-interix${UNAME_RELEASE} 8291fd23544Smrg exit ;; 8301fd23544Smrg esac ;; 83172b676d7Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 83272b676d7Smrg echo i${UNAME_MACHINE}-pc-mks 83372b676d7Smrg exit ;; 83474c14cd6Smrg 8664:Windows_NT:*) 83574c14cd6Smrg echo x86_64-pc-mks 83674c14cd6Smrg exit ;; 83772b676d7Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 83872b676d7Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 83972b676d7Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 84072b676d7Smrg # UNAME_MACHINE based on the output of uname instead of i386? 84172b676d7Smrg echo i586-pc-interix 84272b676d7Smrg exit ;; 84372b676d7Smrg i*:UWIN*:*) 84472b676d7Smrg echo ${UNAME_MACHINE}-pc-uwin 84572b676d7Smrg exit ;; 84672b676d7Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 84772b676d7Smrg echo x86_64-unknown-cygwin 84872b676d7Smrg exit ;; 84972b676d7Smrg p*:CYGWIN*:*) 85072b676d7Smrg echo powerpcle-unknown-cygwin 85172b676d7Smrg exit ;; 85272b676d7Smrg prep*:SunOS:5.*:*) 85372b676d7Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 85472b676d7Smrg exit ;; 85572b676d7Smrg *:GNU:*:*) 85672b676d7Smrg # the GNU system 85772b676d7Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 85872b676d7Smrg exit ;; 85972b676d7Smrg *:GNU/*:*:*) 86072b676d7Smrg # other systems with GNU libc and userland 86172b676d7Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 86272b676d7Smrg exit ;; 86372b676d7Smrg i*86:Minix:*:*) 86472b676d7Smrg echo ${UNAME_MACHINE}-pc-minix 86572b676d7Smrg exit ;; 86674c14cd6Smrg alpha:Linux:*:*) 86774c14cd6Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 86874c14cd6Smrg EV5) UNAME_MACHINE=alphaev5 ;; 86974c14cd6Smrg EV56) UNAME_MACHINE=alphaev56 ;; 87074c14cd6Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 87174c14cd6Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 87274c14cd6Smrg EV6) UNAME_MACHINE=alphaev6 ;; 87374c14cd6Smrg EV67) UNAME_MACHINE=alphaev67 ;; 87474c14cd6Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 87574c14cd6Smrg esac 87674c14cd6Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 87774c14cd6Smrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 87874c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 87974c14cd6Smrg exit ;; 88072b676d7Smrg arm*:Linux:*:*) 8811fd23544Smrg eval $set_cc_for_build 8821fd23544Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 8831fd23544Smrg | grep -q __ARM_EABI__ 8841fd23544Smrg then 8851fd23544Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8861fd23544Smrg else 88774c14cd6Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 88874c14cd6Smrg | grep -q __ARM_PCS_VFP 88974c14cd6Smrg then 89074c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 89174c14cd6Smrg else 89274c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 89374c14cd6Smrg fi 8941fd23544Smrg fi 8951fd23544Smrg exit ;; 8961fd23544Smrg avr32*:Linux:*:*) 89772b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 89872b676d7Smrg exit ;; 89972b676d7Smrg cris:Linux:*:*) 90074c14cd6Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 90172b676d7Smrg exit ;; 90272b676d7Smrg crisv32:Linux:*:*) 90374c14cd6Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 90472b676d7Smrg exit ;; 90572b676d7Smrg frv:Linux:*:*) 90674c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 90774c14cd6Smrg exit ;; 90874c14cd6Smrg hexagon:Linux:*:*) 90974c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 91074c14cd6Smrg exit ;; 91174c14cd6Smrg i*86:Linux:*:*) 91274c14cd6Smrg LIBC=gnu 91374c14cd6Smrg eval $set_cc_for_build 91474c14cd6Smrg sed 's/^ //' << EOF >$dummy.c 91574c14cd6Smrg #ifdef __dietlibc__ 91674c14cd6Smrg LIBC=dietlibc 91774c14cd6Smrg #endif 91874c14cd6SmrgEOF 91974c14cd6Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 92074c14cd6Smrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 92172b676d7Smrg exit ;; 92272b676d7Smrg ia64:Linux:*:*) 92372b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 92472b676d7Smrg exit ;; 92572b676d7Smrg m32r*:Linux:*:*) 92672b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 92772b676d7Smrg exit ;; 92872b676d7Smrg m68*:Linux:*:*) 92972b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 93072b676d7Smrg exit ;; 93174c14cd6Smrg mips:Linux:*:* | mips64:Linux:*:*) 93272b676d7Smrg eval $set_cc_for_build 93372b676d7Smrg sed 's/^ //' << EOF >$dummy.c 93472b676d7Smrg #undef CPU 93574c14cd6Smrg #undef ${UNAME_MACHINE} 93674c14cd6Smrg #undef ${UNAME_MACHINE}el 93772b676d7Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 93874c14cd6Smrg CPU=${UNAME_MACHINE}el 93972b676d7Smrg #else 94072b676d7Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 94174c14cd6Smrg CPU=${UNAME_MACHINE} 94272b676d7Smrg #else 94372b676d7Smrg CPU= 94472b676d7Smrg #endif 94572b676d7Smrg #endif 94672b676d7SmrgEOF 94774c14cd6Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 94872b676d7Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 94972b676d7Smrg ;; 95072b676d7Smrg or32:Linux:*:*) 95174c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 95272b676d7Smrg exit ;; 95374c14cd6Smrg padre:Linux:*:*) 95474c14cd6Smrg echo sparc-unknown-linux-gnu 95572b676d7Smrg exit ;; 95674c14cd6Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 95774c14cd6Smrg echo hppa64-unknown-linux-gnu 95872b676d7Smrg exit ;; 95972b676d7Smrg parisc:Linux:*:* | hppa:Linux:*:*) 96072b676d7Smrg # Look for CPU level 96172b676d7Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 96272b676d7Smrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 96372b676d7Smrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 96472b676d7Smrg *) echo hppa-unknown-linux-gnu ;; 96572b676d7Smrg esac 96672b676d7Smrg exit ;; 96774c14cd6Smrg ppc64:Linux:*:*) 96874c14cd6Smrg echo powerpc64-unknown-linux-gnu 96974c14cd6Smrg exit ;; 97074c14cd6Smrg ppc:Linux:*:*) 97174c14cd6Smrg echo powerpc-unknown-linux-gnu 97272b676d7Smrg exit ;; 97372b676d7Smrg s390:Linux:*:* | s390x:Linux:*:*) 97472b676d7Smrg echo ${UNAME_MACHINE}-ibm-linux 97572b676d7Smrg exit ;; 97672b676d7Smrg sh64*:Linux:*:*) 97774c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 97872b676d7Smrg exit ;; 97972b676d7Smrg sh*:Linux:*:*) 98072b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 98172b676d7Smrg exit ;; 98272b676d7Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 98372b676d7Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 98472b676d7Smrg exit ;; 98574c14cd6Smrg tile*:Linux:*:*) 98674c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 98774c14cd6Smrg exit ;; 98872b676d7Smrg vax:Linux:*:*) 98972b676d7Smrg echo ${UNAME_MACHINE}-dec-linux-gnu 99072b676d7Smrg exit ;; 99172b676d7Smrg x86_64:Linux:*:*) 99274c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 99372b676d7Smrg exit ;; 9941fd23544Smrg xtensa*:Linux:*:*) 99574c14cd6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9961fd23544Smrg exit ;; 99772b676d7Smrg i*86:DYNIX/ptx:4*:*) 99872b676d7Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 99972b676d7Smrg # earlier versions are messed up and put the nodename in both 100072b676d7Smrg # sysname and nodename. 100172b676d7Smrg echo i386-sequent-sysv4 100272b676d7Smrg exit ;; 100372b676d7Smrg i*86:UNIX_SV:4.2MP:2.*) 100474c14cd6Smrg # Unixware is an offshoot of SVR4, but it has its own version 100574c14cd6Smrg # number series starting with 2... 100674c14cd6Smrg # I am not positive that other SVR4 systems won't match this, 100772b676d7Smrg # I just have to hope. -- rms. 100874c14cd6Smrg # Use sysv4.2uw... so that sysv4* matches it. 100972b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 101072b676d7Smrg exit ;; 101172b676d7Smrg i*86:OS/2:*:*) 101272b676d7Smrg # If we were able to find `uname', then EMX Unix compatibility 101372b676d7Smrg # is probably installed. 101472b676d7Smrg echo ${UNAME_MACHINE}-pc-os2-emx 101572b676d7Smrg exit ;; 101672b676d7Smrg i*86:XTS-300:*:STOP) 101772b676d7Smrg echo ${UNAME_MACHINE}-unknown-stop 101872b676d7Smrg exit ;; 101972b676d7Smrg i*86:atheos:*:*) 102072b676d7Smrg echo ${UNAME_MACHINE}-unknown-atheos 102172b676d7Smrg exit ;; 102272b676d7Smrg i*86:syllable:*:*) 102372b676d7Smrg echo ${UNAME_MACHINE}-pc-syllable 102472b676d7Smrg exit ;; 102574c14cd6Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 102672b676d7Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 102772b676d7Smrg exit ;; 102872b676d7Smrg i*86:*DOS:*:*) 102972b676d7Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 103072b676d7Smrg exit ;; 103172b676d7Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 103272b676d7Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 103372b676d7Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 103472b676d7Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 103572b676d7Smrg else 103672b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 103772b676d7Smrg fi 103872b676d7Smrg exit ;; 103972b676d7Smrg i*86:*:5:[678]*) 104074c14cd6Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 104172b676d7Smrg case `/bin/uname -X | grep "^Machine"` in 104272b676d7Smrg *486*) UNAME_MACHINE=i486 ;; 104372b676d7Smrg *Pentium) UNAME_MACHINE=i586 ;; 104472b676d7Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 104572b676d7Smrg esac 104672b676d7Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 104772b676d7Smrg exit ;; 104872b676d7Smrg i*86:*:3.2:*) 104972b676d7Smrg if test -f /usr/options/cb.name; then 105072b676d7Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 105172b676d7Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 105272b676d7Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 105372b676d7Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 105472b676d7Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 105572b676d7Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 105672b676d7Smrg && UNAME_MACHINE=i586 105772b676d7Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 105872b676d7Smrg && UNAME_MACHINE=i686 105972b676d7Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 106072b676d7Smrg && UNAME_MACHINE=i686 106172b676d7Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 106272b676d7Smrg else 106372b676d7Smrg echo ${UNAME_MACHINE}-pc-sysv32 106472b676d7Smrg fi 106572b676d7Smrg exit ;; 106672b676d7Smrg pc:*:*:*) 106772b676d7Smrg # Left here for compatibility: 106874c14cd6Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 106974c14cd6Smrg # the processor, so we play safe by assuming i586. 107074c14cd6Smrg # Note: whatever this is, it MUST be the same as what config.sub 107174c14cd6Smrg # prints for the "djgpp" host, or else GDB configury will decide that 107274c14cd6Smrg # this is a cross-build. 107374c14cd6Smrg echo i586-pc-msdosdjgpp 107474c14cd6Smrg exit ;; 107572b676d7Smrg Intel:Mach:3*:*) 107672b676d7Smrg echo i386-pc-mach3 107772b676d7Smrg exit ;; 107872b676d7Smrg paragon:*:*:*) 107972b676d7Smrg echo i860-intel-osf1 108072b676d7Smrg exit ;; 108172b676d7Smrg i860:*:4.*:*) # i860-SVR4 108272b676d7Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 108372b676d7Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 108472b676d7Smrg else # Add other i860-SVR4 vendors below as they are discovered. 108572b676d7Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 108672b676d7Smrg fi 108772b676d7Smrg exit ;; 108872b676d7Smrg mini*:CTIX:SYS*5:*) 108972b676d7Smrg # "miniframe" 109072b676d7Smrg echo m68010-convergent-sysv 109172b676d7Smrg exit ;; 109272b676d7Smrg mc68k:UNIX:SYSTEM5:3.51m) 109372b676d7Smrg echo m68k-convergent-sysv 109472b676d7Smrg exit ;; 109572b676d7Smrg M680?0:D-NIX:5.3:*) 109672b676d7Smrg echo m68k-diab-dnix 109772b676d7Smrg exit ;; 109872b676d7Smrg M68*:*:R3V[5678]*:*) 109972b676d7Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 110072b676d7Smrg 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) 110172b676d7Smrg OS_REL='' 110272b676d7Smrg test -r /etc/.relid \ 110372b676d7Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 110472b676d7Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 110572b676d7Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 110672b676d7Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 110772b676d7Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 110872b676d7Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 110974c14cd6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 111074c14cd6Smrg && { echo i486-ncr-sysv4; exit; } ;; 111174c14cd6Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 111274c14cd6Smrg OS_REL='.3' 111374c14cd6Smrg test -r /etc/.relid \ 111474c14cd6Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 111574c14cd6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 111674c14cd6Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 111774c14cd6Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 111874c14cd6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 111974c14cd6Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 112074c14cd6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 112172b676d7Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 112272b676d7Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 112372b676d7Smrg exit ;; 112472b676d7Smrg mc68030:UNIX_System_V:4.*:*) 112572b676d7Smrg echo m68k-atari-sysv4 112672b676d7Smrg exit ;; 112772b676d7Smrg TSUNAMI:LynxOS:2.*:*) 112872b676d7Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 112972b676d7Smrg exit ;; 113072b676d7Smrg rs6000:LynxOS:2.*:*) 113172b676d7Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 113272b676d7Smrg exit ;; 113374c14cd6Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 113472b676d7Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 113572b676d7Smrg exit ;; 113672b676d7Smrg SM[BE]S:UNIX_SV:*:*) 113772b676d7Smrg echo mips-dde-sysv${UNAME_RELEASE} 113872b676d7Smrg exit ;; 113972b676d7Smrg RM*:ReliantUNIX-*:*:*) 114072b676d7Smrg echo mips-sni-sysv4 114172b676d7Smrg exit ;; 114272b676d7Smrg RM*:SINIX-*:*:*) 114372b676d7Smrg echo mips-sni-sysv4 114472b676d7Smrg exit ;; 114572b676d7Smrg *:SINIX-*:*:*) 114672b676d7Smrg if uname -p 2>/dev/null >/dev/null ; then 114772b676d7Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 114872b676d7Smrg echo ${UNAME_MACHINE}-sni-sysv4 114972b676d7Smrg else 115072b676d7Smrg echo ns32k-sni-sysv 115172b676d7Smrg fi 115272b676d7Smrg exit ;; 115374c14cd6Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 115474c14cd6Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 115574c14cd6Smrg echo i586-unisys-sysv4 115674c14cd6Smrg exit ;; 115772b676d7Smrg *:UNIX_System_V:4*:FTX*) 115872b676d7Smrg # From Gerald Hewes <hewes@openmarket.com>. 115972b676d7Smrg # How about differentiating between stratus architectures? -djm 116072b676d7Smrg echo hppa1.1-stratus-sysv4 116172b676d7Smrg exit ;; 116272b676d7Smrg *:*:*:FTX*) 116372b676d7Smrg # From seanf@swdc.stratus.com. 116472b676d7Smrg echo i860-stratus-sysv4 116572b676d7Smrg exit ;; 116672b676d7Smrg i*86:VOS:*:*) 116772b676d7Smrg # From Paul.Green@stratus.com. 116872b676d7Smrg echo ${UNAME_MACHINE}-stratus-vos 116972b676d7Smrg exit ;; 117072b676d7Smrg *:VOS:*:*) 117172b676d7Smrg # From Paul.Green@stratus.com. 117272b676d7Smrg echo hppa1.1-stratus-vos 117372b676d7Smrg exit ;; 117472b676d7Smrg mc68*:A/UX:*:*) 117572b676d7Smrg echo m68k-apple-aux${UNAME_RELEASE} 117672b676d7Smrg exit ;; 117772b676d7Smrg news*:NEWS-OS:6*:*) 117872b676d7Smrg echo mips-sony-newsos6 117972b676d7Smrg exit ;; 118072b676d7Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 118172b676d7Smrg if [ -d /usr/nec ]; then 118274c14cd6Smrg echo mips-nec-sysv${UNAME_RELEASE} 118372b676d7Smrg else 118474c14cd6Smrg echo mips-unknown-sysv${UNAME_RELEASE} 118572b676d7Smrg fi 118674c14cd6Smrg exit ;; 118772b676d7Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 118872b676d7Smrg echo powerpc-be-beos 118972b676d7Smrg exit ;; 119072b676d7Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 119172b676d7Smrg echo powerpc-apple-beos 119272b676d7Smrg exit ;; 119372b676d7Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 119472b676d7Smrg echo i586-pc-beos 119572b676d7Smrg exit ;; 119674c14cd6Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 119774c14cd6Smrg echo i586-pc-haiku 119874c14cd6Smrg exit ;; 119972b676d7Smrg SX-4:SUPER-UX:*:*) 120072b676d7Smrg echo sx4-nec-superux${UNAME_RELEASE} 120172b676d7Smrg exit ;; 120272b676d7Smrg SX-5:SUPER-UX:*:*) 120372b676d7Smrg echo sx5-nec-superux${UNAME_RELEASE} 120472b676d7Smrg exit ;; 120572b676d7Smrg SX-6:SUPER-UX:*:*) 120672b676d7Smrg echo sx6-nec-superux${UNAME_RELEASE} 120772b676d7Smrg exit ;; 12081fd23544Smrg SX-7:SUPER-UX:*:*) 12091fd23544Smrg echo sx7-nec-superux${UNAME_RELEASE} 12101fd23544Smrg exit ;; 12111fd23544Smrg SX-8:SUPER-UX:*:*) 12121fd23544Smrg echo sx8-nec-superux${UNAME_RELEASE} 12131fd23544Smrg exit ;; 12141fd23544Smrg SX-8R:SUPER-UX:*:*) 12151fd23544Smrg echo sx8r-nec-superux${UNAME_RELEASE} 12161fd23544Smrg exit ;; 121772b676d7Smrg Power*:Rhapsody:*:*) 121872b676d7Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 121972b676d7Smrg exit ;; 122072b676d7Smrg *:Rhapsody:*:*) 122172b676d7Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 122272b676d7Smrg exit ;; 122372b676d7Smrg *:Darwin:*:*) 122472b676d7Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 122572b676d7Smrg case $UNAME_PROCESSOR in 122674c14cd6Smrg i386) 122774c14cd6Smrg eval $set_cc_for_build 122874c14cd6Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 122974c14cd6Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 123074c14cd6Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 123174c14cd6Smrg grep IS_64BIT_ARCH >/dev/null 123274c14cd6Smrg then 123374c14cd6Smrg UNAME_PROCESSOR="x86_64" 123474c14cd6Smrg fi 123574c14cd6Smrg fi ;; 123672b676d7Smrg unknown) UNAME_PROCESSOR=powerpc ;; 123772b676d7Smrg esac 123872b676d7Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 123972b676d7Smrg exit ;; 124072b676d7Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 124172b676d7Smrg UNAME_PROCESSOR=`uname -p` 124272b676d7Smrg if test "$UNAME_PROCESSOR" = "x86"; then 124372b676d7Smrg UNAME_PROCESSOR=i386 124472b676d7Smrg UNAME_MACHINE=pc 124572b676d7Smrg fi 124672b676d7Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 124772b676d7Smrg exit ;; 124872b676d7Smrg *:QNX:*:4*) 124972b676d7Smrg echo i386-pc-qnx 125072b676d7Smrg exit ;; 125174c14cd6Smrg NEO-?:NONSTOP_KERNEL:*:*) 125274c14cd6Smrg echo neo-tandem-nsk${UNAME_RELEASE} 125374c14cd6Smrg exit ;; 125472b676d7Smrg NSE-?:NONSTOP_KERNEL:*:*) 125572b676d7Smrg echo nse-tandem-nsk${UNAME_RELEASE} 125672b676d7Smrg exit ;; 125772b676d7Smrg NSR-?:NONSTOP_KERNEL:*:*) 125872b676d7Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 125972b676d7Smrg exit ;; 126072b676d7Smrg *:NonStop-UX:*:*) 126172b676d7Smrg echo mips-compaq-nonstopux 126272b676d7Smrg exit ;; 126372b676d7Smrg BS2000:POSIX*:*:*) 126472b676d7Smrg echo bs2000-siemens-sysv 126572b676d7Smrg exit ;; 126672b676d7Smrg DS/*:UNIX_System_V:*:*) 126772b676d7Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 126872b676d7Smrg exit ;; 126972b676d7Smrg *:Plan9:*:*) 127072b676d7Smrg # "uname -m" is not consistent, so use $cputype instead. 386 127172b676d7Smrg # is converted to i386 for consistency with other x86 127272b676d7Smrg # operating systems. 127372b676d7Smrg if test "$cputype" = "386"; then 127472b676d7Smrg UNAME_MACHINE=i386 127572b676d7Smrg else 127672b676d7Smrg UNAME_MACHINE="$cputype" 127772b676d7Smrg fi 127872b676d7Smrg echo ${UNAME_MACHINE}-unknown-plan9 127972b676d7Smrg exit ;; 128072b676d7Smrg *:TOPS-10:*:*) 128172b676d7Smrg echo pdp10-unknown-tops10 128272b676d7Smrg exit ;; 128372b676d7Smrg *:TENEX:*:*) 128472b676d7Smrg echo pdp10-unknown-tenex 128572b676d7Smrg exit ;; 128672b676d7Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 128772b676d7Smrg echo pdp10-dec-tops20 128872b676d7Smrg exit ;; 128972b676d7Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 129072b676d7Smrg echo pdp10-xkl-tops20 129172b676d7Smrg exit ;; 129272b676d7Smrg *:TOPS-20:*:*) 129372b676d7Smrg echo pdp10-unknown-tops20 129472b676d7Smrg exit ;; 129572b676d7Smrg *:ITS:*:*) 129672b676d7Smrg echo pdp10-unknown-its 129772b676d7Smrg exit ;; 129872b676d7Smrg SEI:*:*:SEIUX) 129974c14cd6Smrg echo mips-sei-seiux${UNAME_RELEASE} 130072b676d7Smrg exit ;; 130172b676d7Smrg *:DragonFly:*:*) 130272b676d7Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 130372b676d7Smrg exit ;; 130472b676d7Smrg *:*VMS:*:*) 130574c14cd6Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 130672b676d7Smrg case "${UNAME_MACHINE}" in 130772b676d7Smrg A*) echo alpha-dec-vms ; exit ;; 130872b676d7Smrg I*) echo ia64-dec-vms ; exit ;; 130972b676d7Smrg V*) echo vax-dec-vms ; exit ;; 131072b676d7Smrg esac ;; 131172b676d7Smrg *:XENIX:*:SysV) 131272b676d7Smrg echo i386-pc-xenix 131372b676d7Smrg exit ;; 131472b676d7Smrg i*86:skyos:*:*) 131572b676d7Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 131672b676d7Smrg exit ;; 131772b676d7Smrg i*86:rdos:*:*) 131872b676d7Smrg echo ${UNAME_MACHINE}-pc-rdos 131972b676d7Smrg exit ;; 132074c14cd6Smrg i*86:AROS:*:*) 132174c14cd6Smrg echo ${UNAME_MACHINE}-pc-aros 132274c14cd6Smrg exit ;; 132372b676d7Smrgesac 132472b676d7Smrg 132572b676d7Smrg#echo '(No uname command or uname output not recognized.)' 1>&2 132672b676d7Smrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 132772b676d7Smrg 132872b676d7Smrgeval $set_cc_for_build 132972b676d7Smrgcat >$dummy.c <<EOF 133072b676d7Smrg#ifdef _SEQUENT_ 133172b676d7Smrg# include <sys/types.h> 133272b676d7Smrg# include <sys/utsname.h> 133372b676d7Smrg#endif 133472b676d7Smrgmain () 133572b676d7Smrg{ 133672b676d7Smrg#if defined (sony) 133772b676d7Smrg#if defined (MIPSEB) 133872b676d7Smrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 133972b676d7Smrg I don't know.... */ 134072b676d7Smrg printf ("mips-sony-bsd\n"); exit (0); 134172b676d7Smrg#else 134272b676d7Smrg#include <sys/param.h> 134372b676d7Smrg printf ("m68k-sony-newsos%s\n", 134472b676d7Smrg#ifdef NEWSOS4 134574c14cd6Smrg "4" 134672b676d7Smrg#else 134774c14cd6Smrg "" 134872b676d7Smrg#endif 134974c14cd6Smrg ); exit (0); 135072b676d7Smrg#endif 135172b676d7Smrg#endif 135272b676d7Smrg 135372b676d7Smrg#if defined (__arm) && defined (__acorn) && defined (__unix) 135472b676d7Smrg printf ("arm-acorn-riscix\n"); exit (0); 135572b676d7Smrg#endif 135672b676d7Smrg 135772b676d7Smrg#if defined (hp300) && !defined (hpux) 135872b676d7Smrg printf ("m68k-hp-bsd\n"); exit (0); 135972b676d7Smrg#endif 136072b676d7Smrg 136172b676d7Smrg#if defined (NeXT) 136272b676d7Smrg#if !defined (__ARCHITECTURE__) 136372b676d7Smrg#define __ARCHITECTURE__ "m68k" 136472b676d7Smrg#endif 136572b676d7Smrg int version; 136672b676d7Smrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 136772b676d7Smrg if (version < 4) 136872b676d7Smrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 136972b676d7Smrg else 137072b676d7Smrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 137172b676d7Smrg exit (0); 137272b676d7Smrg#endif 137372b676d7Smrg 137472b676d7Smrg#if defined (MULTIMAX) || defined (n16) 137572b676d7Smrg#if defined (UMAXV) 137672b676d7Smrg printf ("ns32k-encore-sysv\n"); exit (0); 137772b676d7Smrg#else 137872b676d7Smrg#if defined (CMU) 137972b676d7Smrg printf ("ns32k-encore-mach\n"); exit (0); 138072b676d7Smrg#else 138172b676d7Smrg printf ("ns32k-encore-bsd\n"); exit (0); 138272b676d7Smrg#endif 138372b676d7Smrg#endif 138472b676d7Smrg#endif 138572b676d7Smrg 138672b676d7Smrg#if defined (__386BSD__) 138772b676d7Smrg printf ("i386-pc-bsd\n"); exit (0); 138872b676d7Smrg#endif 138972b676d7Smrg 139072b676d7Smrg#if defined (sequent) 139172b676d7Smrg#if defined (i386) 139272b676d7Smrg printf ("i386-sequent-dynix\n"); exit (0); 139372b676d7Smrg#endif 139472b676d7Smrg#if defined (ns32000) 139572b676d7Smrg printf ("ns32k-sequent-dynix\n"); exit (0); 139672b676d7Smrg#endif 139772b676d7Smrg#endif 139872b676d7Smrg 139972b676d7Smrg#if defined (_SEQUENT_) 140072b676d7Smrg struct utsname un; 140172b676d7Smrg 140272b676d7Smrg uname(&un); 140372b676d7Smrg 140472b676d7Smrg if (strncmp(un.version, "V2", 2) == 0) { 140572b676d7Smrg printf ("i386-sequent-ptx2\n"); exit (0); 140672b676d7Smrg } 140772b676d7Smrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 140872b676d7Smrg printf ("i386-sequent-ptx1\n"); exit (0); 140972b676d7Smrg } 141072b676d7Smrg printf ("i386-sequent-ptx\n"); exit (0); 141172b676d7Smrg 141272b676d7Smrg#endif 141372b676d7Smrg 141472b676d7Smrg#if defined (vax) 141572b676d7Smrg# if !defined (ultrix) 141672b676d7Smrg# include <sys/param.h> 141772b676d7Smrg# if defined (BSD) 141872b676d7Smrg# if BSD == 43 141972b676d7Smrg printf ("vax-dec-bsd4.3\n"); exit (0); 142072b676d7Smrg# else 142172b676d7Smrg# if BSD == 199006 142272b676d7Smrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 142372b676d7Smrg# else 142472b676d7Smrg printf ("vax-dec-bsd\n"); exit (0); 142572b676d7Smrg# endif 142672b676d7Smrg# endif 142772b676d7Smrg# else 142872b676d7Smrg printf ("vax-dec-bsd\n"); exit (0); 142972b676d7Smrg# endif 143072b676d7Smrg# else 143172b676d7Smrg printf ("vax-dec-ultrix\n"); exit (0); 143272b676d7Smrg# endif 143372b676d7Smrg#endif 143472b676d7Smrg 143572b676d7Smrg#if defined (alliant) && defined (i860) 143672b676d7Smrg printf ("i860-alliant-bsd\n"); exit (0); 143772b676d7Smrg#endif 143872b676d7Smrg 143972b676d7Smrg exit (1); 144072b676d7Smrg} 144172b676d7SmrgEOF 144272b676d7Smrg 144372b676d7Smrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 144472b676d7Smrg { echo "$SYSTEM_NAME"; exit; } 144572b676d7Smrg 144672b676d7Smrg# Apollos put the system type in the environment. 144772b676d7Smrg 144872b676d7Smrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 144972b676d7Smrg 145072b676d7Smrg# Convex versions that predate uname can use getsysinfo(1) 145172b676d7Smrg 145272b676d7Smrgif [ -x /usr/convex/getsysinfo ] 145372b676d7Smrgthen 145472b676d7Smrg case `getsysinfo -f cpu_type` in 145572b676d7Smrg c1*) 145672b676d7Smrg echo c1-convex-bsd 145772b676d7Smrg exit ;; 145872b676d7Smrg c2*) 145972b676d7Smrg if getsysinfo -f scalar_acc 146072b676d7Smrg then echo c32-convex-bsd 146172b676d7Smrg else echo c2-convex-bsd 146272b676d7Smrg fi 146372b676d7Smrg exit ;; 146472b676d7Smrg c34*) 146572b676d7Smrg echo c34-convex-bsd 146672b676d7Smrg exit ;; 146772b676d7Smrg c38*) 146872b676d7Smrg echo c38-convex-bsd 146972b676d7Smrg exit ;; 147072b676d7Smrg c4*) 147172b676d7Smrg echo c4-convex-bsd 147272b676d7Smrg exit ;; 147372b676d7Smrg esac 147472b676d7Smrgfi 147572b676d7Smrg 147672b676d7Smrgcat >&2 <<EOF 147772b676d7Smrg$0: unable to guess system type 147872b676d7Smrg 147972b676d7SmrgThis script, last modified $timestamp, has failed to recognize 148072b676d7Smrgthe operating system you are using. It is advised that you 148172b676d7Smrgdownload the most up to date version of the config scripts from 148272b676d7Smrg 14831fd23544Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 148472b676d7Smrgand 14851fd23544Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 148672b676d7Smrg 148772b676d7SmrgIf the version you run ($0) is already up to date, please 148872b676d7Smrgsend the following data and any information you think might be 148972b676d7Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 149072b676d7Smrginformation to handle your system. 149172b676d7Smrg 149272b676d7Smrgconfig.guess timestamp = $timestamp 149372b676d7Smrg 149472b676d7Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 149572b676d7Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 149672b676d7Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 149772b676d7Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 149872b676d7Smrg 149972b676d7Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 150072b676d7Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 150172b676d7Smrg 150272b676d7Smrghostinfo = `(hostinfo) 2>/dev/null` 150372b676d7Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 150472b676d7Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 150572b676d7Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 150672b676d7Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 150772b676d7Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 150872b676d7Smrg 150972b676d7SmrgUNAME_MACHINE = ${UNAME_MACHINE} 151072b676d7SmrgUNAME_RELEASE = ${UNAME_RELEASE} 151172b676d7SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 151272b676d7SmrgUNAME_VERSION = ${UNAME_VERSION} 151372b676d7SmrgEOF 151472b676d7Smrg 151572b676d7Smrgexit 1 151672b676d7Smrg 151772b676d7Smrg# Local variables: 151872b676d7Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 151972b676d7Smrg# time-stamp-start: "timestamp='" 152072b676d7Smrg# time-stamp-format: "%:y-%02m-%02d" 152172b676d7Smrg# time-stamp-end: "'" 152272b676d7Smrg# End: 1523