config.guess revision 88cd5fc2
188cd5fc2Smrg#! /bin/sh 288cd5fc2Smrg# Attempt to guess a canonical system name. 388cd5fc2Smrg# Copyright 1992-2014 Free Software Foundation, Inc. 488cd5fc2Smrg 588cd5fc2Smrgtimestamp='2014-03-23' 688cd5fc2Smrg 788cd5fc2Smrg# This file is free software; you can redistribute it and/or modify it 888cd5fc2Smrg# under the terms of the GNU General Public License as published by 988cd5fc2Smrg# the Free Software Foundation; either version 3 of the License, or 1088cd5fc2Smrg# (at your option) any later version. 1188cd5fc2Smrg# 1288cd5fc2Smrg# This program is distributed in the hope that it will be useful, but 1388cd5fc2Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1488cd5fc2Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1588cd5fc2Smrg# General Public License for more details. 1688cd5fc2Smrg# 1788cd5fc2Smrg# You should have received a copy of the GNU General Public License 1888cd5fc2Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 1988cd5fc2Smrg# 2088cd5fc2Smrg# As a special exception to the GNU General Public License, if you 2188cd5fc2Smrg# distribute this file as part of a program that contains a 2288cd5fc2Smrg# configuration script generated by Autoconf, you may include it under 2388cd5fc2Smrg# the same distribution terms that you use for the rest of that 2488cd5fc2Smrg# program. This Exception is an additional permission under section 7 2588cd5fc2Smrg# of the GNU General Public License, version 3 ("GPLv3"). 2688cd5fc2Smrg# 2788cd5fc2Smrg# Originally written by Per Bothner. 2888cd5fc2Smrg# 2988cd5fc2Smrg# You can get the latest version of this script from: 3088cd5fc2Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 3188cd5fc2Smrg# 3288cd5fc2Smrg# Please send patches with a ChangeLog entry to config-patches@gnu.org. 3388cd5fc2Smrg 3488cd5fc2Smrg 3588cd5fc2Smrgme=`echo "$0" | sed -e 's,.*/,,'` 3688cd5fc2Smrg 3788cd5fc2Smrgusage="\ 3888cd5fc2SmrgUsage: $0 [OPTION] 3988cd5fc2Smrg 4088cd5fc2SmrgOutput the configuration name of the system \`$me' is run on. 4188cd5fc2Smrg 4288cd5fc2SmrgOperation modes: 4388cd5fc2Smrg -h, --help print this help, then exit 4488cd5fc2Smrg -t, --time-stamp print date of last modification, then exit 4588cd5fc2Smrg -v, --version print version number, then exit 4688cd5fc2Smrg 4788cd5fc2SmrgReport bugs and patches to <config-patches@gnu.org>." 4888cd5fc2Smrg 4988cd5fc2Smrgversion="\ 5088cd5fc2SmrgGNU config.guess ($timestamp) 5188cd5fc2Smrg 5288cd5fc2SmrgOriginally written by Per Bothner. 5388cd5fc2SmrgCopyright 1992-2014 Free Software Foundation, Inc. 5488cd5fc2Smrg 5588cd5fc2SmrgThis is free software; see the source for copying conditions. There is NO 5688cd5fc2Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 5788cd5fc2Smrg 5888cd5fc2Smrghelp=" 5988cd5fc2SmrgTry \`$me --help' for more information." 6088cd5fc2Smrg 6188cd5fc2Smrg# Parse command line 6288cd5fc2Smrgwhile test $# -gt 0 ; do 6388cd5fc2Smrg case $1 in 6488cd5fc2Smrg --time-stamp | --time* | -t ) 6588cd5fc2Smrg echo "$timestamp" ; exit ;; 6688cd5fc2Smrg --version | -v ) 6788cd5fc2Smrg echo "$version" ; exit ;; 6888cd5fc2Smrg --help | --h* | -h ) 6988cd5fc2Smrg echo "$usage"; exit ;; 7088cd5fc2Smrg -- ) # Stop option processing 7188cd5fc2Smrg shift; break ;; 7288cd5fc2Smrg - ) # Use stdin as input. 7388cd5fc2Smrg break ;; 7488cd5fc2Smrg -* ) 7588cd5fc2Smrg echo "$me: invalid option $1$help" >&2 7688cd5fc2Smrg exit 1 ;; 7788cd5fc2Smrg * ) 7888cd5fc2Smrg break ;; 7988cd5fc2Smrg esac 8088cd5fc2Smrgdone 8188cd5fc2Smrg 8288cd5fc2Smrgif test $# != 0; then 8388cd5fc2Smrg echo "$me: too many arguments$help" >&2 8488cd5fc2Smrg exit 1 8588cd5fc2Smrgfi 8688cd5fc2Smrg 8788cd5fc2Smrgtrap 'exit 1' 1 2 15 8888cd5fc2Smrg 8988cd5fc2Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9088cd5fc2Smrg# compiler to aid in system detection is discouraged as it requires 9188cd5fc2Smrg# temporary files to be created and, as you can see below, it is a 9288cd5fc2Smrg# headache to deal with in a portable fashion. 9388cd5fc2Smrg 9488cd5fc2Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 9588cd5fc2Smrg# use `HOST_CC' if defined, but it is deprecated. 9688cd5fc2Smrg 9788cd5fc2Smrg# Portable tmp directory creation inspired by the Autoconf team. 9888cd5fc2Smrg 9988cd5fc2Smrgset_cc_for_build=' 10088cd5fc2Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10188cd5fc2Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 10288cd5fc2Smrg: ${TMPDIR=/tmp} ; 10388cd5fc2Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 10488cd5fc2Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 10588cd5fc2Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 10688cd5fc2Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 10788cd5fc2Smrgdummy=$tmp/dummy ; 10888cd5fc2Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 10988cd5fc2Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11088cd5fc2Smrg ,,) echo "int x;" > $dummy.c ; 11188cd5fc2Smrg for c in cc gcc c89 c99 ; do 11288cd5fc2Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 11388cd5fc2Smrg CC_FOR_BUILD="$c"; break ; 11488cd5fc2Smrg fi ; 11588cd5fc2Smrg done ; 11688cd5fc2Smrg if test x"$CC_FOR_BUILD" = x ; then 11788cd5fc2Smrg CC_FOR_BUILD=no_compiler_found ; 11888cd5fc2Smrg fi 11988cd5fc2Smrg ;; 12088cd5fc2Smrg ,,*) CC_FOR_BUILD=$CC ;; 12188cd5fc2Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12288cd5fc2Smrgesac ; set_cc_for_build= ;' 12388cd5fc2Smrg 12488cd5fc2Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 12588cd5fc2Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 12688cd5fc2Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 12788cd5fc2Smrg PATH=$PATH:/.attbin ; export PATH 12888cd5fc2Smrgfi 12988cd5fc2Smrg 13088cd5fc2SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13188cd5fc2SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13288cd5fc2SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 13388cd5fc2SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 13488cd5fc2Smrg 13588cd5fc2Smrgcase "${UNAME_SYSTEM}" in 13688cd5fc2SmrgLinux|GNU|GNU/*) 13788cd5fc2Smrg # If the system lacks a compiler, then just pick glibc. 13888cd5fc2Smrg # We could probably try harder. 13988cd5fc2Smrg LIBC=gnu 14088cd5fc2Smrg 14188cd5fc2Smrg eval $set_cc_for_build 14288cd5fc2Smrg cat <<-EOF > $dummy.c 14388cd5fc2Smrg #include <features.h> 14488cd5fc2Smrg #if defined(__UCLIBC__) 14588cd5fc2Smrg LIBC=uclibc 14688cd5fc2Smrg #elif defined(__dietlibc__) 14788cd5fc2Smrg LIBC=dietlibc 14888cd5fc2Smrg #else 14988cd5fc2Smrg LIBC=gnu 15088cd5fc2Smrg #endif 15188cd5fc2Smrg EOF 15288cd5fc2Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 15388cd5fc2Smrg ;; 15488cd5fc2Smrgesac 15588cd5fc2Smrg 15688cd5fc2Smrg# Note: order is significant - the case branches are not exclusive. 15788cd5fc2Smrg 15888cd5fc2Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 15988cd5fc2Smrg *:NetBSD:*:*) 16088cd5fc2Smrg # NetBSD (nbsd) targets should (where applicable) match one or 16188cd5fc2Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 16288cd5fc2Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 16388cd5fc2Smrg # switched to ELF, *-*-netbsd* would select the old 16488cd5fc2Smrg # object file format. This provides both forward 16588cd5fc2Smrg # compatibility and a consistent mechanism for selecting the 16688cd5fc2Smrg # object file format. 16788cd5fc2Smrg # 16888cd5fc2Smrg # Note: NetBSD doesn't particularly care about the vendor 16988cd5fc2Smrg # portion of the name. We always set it to "unknown". 17088cd5fc2Smrg sysctl="sysctl -n hw.machine_arch" 17188cd5fc2Smrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 17288cd5fc2Smrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 17388cd5fc2Smrg case "${UNAME_MACHINE_ARCH}" in 17488cd5fc2Smrg armeb) machine=armeb-unknown ;; 17588cd5fc2Smrg arm*) machine=arm-unknown ;; 17688cd5fc2Smrg sh3el) machine=shl-unknown ;; 17788cd5fc2Smrg sh3eb) machine=sh-unknown ;; 17888cd5fc2Smrg sh5el) machine=sh5le-unknown ;; 17988cd5fc2Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 18088cd5fc2Smrg esac 18188cd5fc2Smrg # The Operating System including object format, if it has switched 18288cd5fc2Smrg # to ELF recently, or will in the future. 18388cd5fc2Smrg case "${UNAME_MACHINE_ARCH}" in 18488cd5fc2Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 18588cd5fc2Smrg eval $set_cc_for_build 18688cd5fc2Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 18788cd5fc2Smrg | grep -q __ELF__ 18888cd5fc2Smrg then 18988cd5fc2Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 19088cd5fc2Smrg # Return netbsd for either. FIX? 19188cd5fc2Smrg os=netbsd 19288cd5fc2Smrg else 19388cd5fc2Smrg os=netbsdelf 19488cd5fc2Smrg fi 19588cd5fc2Smrg ;; 19688cd5fc2Smrg *) 19788cd5fc2Smrg os=netbsd 19888cd5fc2Smrg ;; 19988cd5fc2Smrg esac 20088cd5fc2Smrg # The OS release 20188cd5fc2Smrg # Debian GNU/NetBSD machines have a different userland, and 20288cd5fc2Smrg # thus, need a distinct triplet. However, they do not need 20388cd5fc2Smrg # kernel version information, so it can be replaced with a 20488cd5fc2Smrg # suitable tag, in the style of linux-gnu. 20588cd5fc2Smrg case "${UNAME_VERSION}" in 20688cd5fc2Smrg Debian*) 20788cd5fc2Smrg release='-gnu' 20888cd5fc2Smrg ;; 20988cd5fc2Smrg *) 21088cd5fc2Smrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 21188cd5fc2Smrg ;; 21288cd5fc2Smrg esac 21388cd5fc2Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 21488cd5fc2Smrg # contains redundant information, the shorter form: 21588cd5fc2Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 21688cd5fc2Smrg echo "${machine}-${os}${release}" 21788cd5fc2Smrg exit ;; 21888cd5fc2Smrg *:Bitrig:*:*) 21988cd5fc2Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 22088cd5fc2Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 22188cd5fc2Smrg exit ;; 22288cd5fc2Smrg *:OpenBSD:*:*) 22388cd5fc2Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 22488cd5fc2Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 22588cd5fc2Smrg exit ;; 22688cd5fc2Smrg *:ekkoBSD:*:*) 22788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 22888cd5fc2Smrg exit ;; 22988cd5fc2Smrg *:SolidBSD:*:*) 23088cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 23188cd5fc2Smrg exit ;; 23288cd5fc2Smrg macppc:MirBSD:*:*) 23388cd5fc2Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 23488cd5fc2Smrg exit ;; 23588cd5fc2Smrg *:MirBSD:*:*) 23688cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 23788cd5fc2Smrg exit ;; 23888cd5fc2Smrg alpha:OSF1:*:*) 23988cd5fc2Smrg case $UNAME_RELEASE in 24088cd5fc2Smrg *4.0) 24188cd5fc2Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 24288cd5fc2Smrg ;; 24388cd5fc2Smrg *5.*) 24488cd5fc2Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 24588cd5fc2Smrg ;; 24688cd5fc2Smrg esac 24788cd5fc2Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 24888cd5fc2Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 24988cd5fc2Smrg # covers most systems running today. This code pipes the CPU 25088cd5fc2Smrg # types through head -n 1, so we only detect the type of CPU 0. 25188cd5fc2Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 25288cd5fc2Smrg case "$ALPHA_CPU_TYPE" in 25388cd5fc2Smrg "EV4 (21064)") 25488cd5fc2Smrg UNAME_MACHINE="alpha" ;; 25588cd5fc2Smrg "EV4.5 (21064)") 25688cd5fc2Smrg UNAME_MACHINE="alpha" ;; 25788cd5fc2Smrg "LCA4 (21066/21068)") 25888cd5fc2Smrg UNAME_MACHINE="alpha" ;; 25988cd5fc2Smrg "EV5 (21164)") 26088cd5fc2Smrg UNAME_MACHINE="alphaev5" ;; 26188cd5fc2Smrg "EV5.6 (21164A)") 26288cd5fc2Smrg UNAME_MACHINE="alphaev56" ;; 26388cd5fc2Smrg "EV5.6 (21164PC)") 26488cd5fc2Smrg UNAME_MACHINE="alphapca56" ;; 26588cd5fc2Smrg "EV5.7 (21164PC)") 26688cd5fc2Smrg UNAME_MACHINE="alphapca57" ;; 26788cd5fc2Smrg "EV6 (21264)") 26888cd5fc2Smrg UNAME_MACHINE="alphaev6" ;; 26988cd5fc2Smrg "EV6.7 (21264A)") 27088cd5fc2Smrg UNAME_MACHINE="alphaev67" ;; 27188cd5fc2Smrg "EV6.8CB (21264C)") 27288cd5fc2Smrg UNAME_MACHINE="alphaev68" ;; 27388cd5fc2Smrg "EV6.8AL (21264B)") 27488cd5fc2Smrg UNAME_MACHINE="alphaev68" ;; 27588cd5fc2Smrg "EV6.8CX (21264D)") 27688cd5fc2Smrg UNAME_MACHINE="alphaev68" ;; 27788cd5fc2Smrg "EV6.9A (21264/EV69A)") 27888cd5fc2Smrg UNAME_MACHINE="alphaev69" ;; 27988cd5fc2Smrg "EV7 (21364)") 28088cd5fc2Smrg UNAME_MACHINE="alphaev7" ;; 28188cd5fc2Smrg "EV7.9 (21364A)") 28288cd5fc2Smrg UNAME_MACHINE="alphaev79" ;; 28388cd5fc2Smrg esac 28488cd5fc2Smrg # A Pn.n version is a patched version. 28588cd5fc2Smrg # A Vn.n version is a released version. 28688cd5fc2Smrg # A Tn.n version is a released field test version. 28788cd5fc2Smrg # A Xn.n version is an unreleased experimental baselevel. 28888cd5fc2Smrg # 1.2 uses "1.2" for uname -r. 28988cd5fc2Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29088cd5fc2Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 29188cd5fc2Smrg exitcode=$? 29288cd5fc2Smrg trap '' 0 29388cd5fc2Smrg exit $exitcode ;; 29488cd5fc2Smrg Alpha\ *:Windows_NT*:*) 29588cd5fc2Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 29688cd5fc2Smrg # Should we change UNAME_MACHINE based on the output of uname instead 29788cd5fc2Smrg # of the specific Alpha model? 29888cd5fc2Smrg echo alpha-pc-interix 29988cd5fc2Smrg exit ;; 30088cd5fc2Smrg 21064:Windows_NT:50:3) 30188cd5fc2Smrg echo alpha-dec-winnt3.5 30288cd5fc2Smrg exit ;; 30388cd5fc2Smrg Amiga*:UNIX_System_V:4.0:*) 30488cd5fc2Smrg echo m68k-unknown-sysv4 30588cd5fc2Smrg exit ;; 30688cd5fc2Smrg *:[Aa]miga[Oo][Ss]:*:*) 30788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-amigaos 30888cd5fc2Smrg exit ;; 30988cd5fc2Smrg *:[Mm]orph[Oo][Ss]:*:*) 31088cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-morphos 31188cd5fc2Smrg exit ;; 31288cd5fc2Smrg *:OS/390:*:*) 31388cd5fc2Smrg echo i370-ibm-openedition 31488cd5fc2Smrg exit ;; 31588cd5fc2Smrg *:z/VM:*:*) 31688cd5fc2Smrg echo s390-ibm-zvmoe 31788cd5fc2Smrg exit ;; 31888cd5fc2Smrg *:OS400:*:*) 31988cd5fc2Smrg echo powerpc-ibm-os400 32088cd5fc2Smrg exit ;; 32188cd5fc2Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 32288cd5fc2Smrg echo arm-acorn-riscix${UNAME_RELEASE} 32388cd5fc2Smrg exit ;; 32488cd5fc2Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 32588cd5fc2Smrg echo arm-unknown-riscos 32688cd5fc2Smrg exit ;; 32788cd5fc2Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 32888cd5fc2Smrg echo hppa1.1-hitachi-hiuxmpp 32988cd5fc2Smrg exit ;; 33088cd5fc2Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 33188cd5fc2Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 33288cd5fc2Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 33388cd5fc2Smrg echo pyramid-pyramid-sysv3 33488cd5fc2Smrg else 33588cd5fc2Smrg echo pyramid-pyramid-bsd 33688cd5fc2Smrg fi 33788cd5fc2Smrg exit ;; 33888cd5fc2Smrg NILE*:*:*:dcosx) 33988cd5fc2Smrg echo pyramid-pyramid-svr4 34088cd5fc2Smrg exit ;; 34188cd5fc2Smrg DRS?6000:unix:4.0:6*) 34288cd5fc2Smrg echo sparc-icl-nx6 34388cd5fc2Smrg exit ;; 34488cd5fc2Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 34588cd5fc2Smrg case `/usr/bin/uname -p` in 34688cd5fc2Smrg sparc) echo sparc-icl-nx7; exit ;; 34788cd5fc2Smrg esac ;; 34888cd5fc2Smrg s390x:SunOS:*:*) 34988cd5fc2Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35088cd5fc2Smrg exit ;; 35188cd5fc2Smrg sun4H:SunOS:5.*:*) 35288cd5fc2Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35388cd5fc2Smrg exit ;; 35488cd5fc2Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 35588cd5fc2Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 35688cd5fc2Smrg exit ;; 35788cd5fc2Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 35888cd5fc2Smrg echo i386-pc-auroraux${UNAME_RELEASE} 35988cd5fc2Smrg exit ;; 36088cd5fc2Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 36188cd5fc2Smrg eval $set_cc_for_build 36288cd5fc2Smrg SUN_ARCH="i386" 36388cd5fc2Smrg # If there is a compiler, see if it is configured for 64-bit objects. 36488cd5fc2Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 36588cd5fc2Smrg # This test works for both compilers. 36688cd5fc2Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 36788cd5fc2Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 36888cd5fc2Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 36988cd5fc2Smrg grep IS_64BIT_ARCH >/dev/null 37088cd5fc2Smrg then 37188cd5fc2Smrg SUN_ARCH="x86_64" 37288cd5fc2Smrg fi 37388cd5fc2Smrg fi 37488cd5fc2Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 37588cd5fc2Smrg exit ;; 37688cd5fc2Smrg sun4*:SunOS:6*:*) 37788cd5fc2Smrg # According to config.sub, this is the proper way to canonicalize 37888cd5fc2Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 37988cd5fc2Smrg # it's likely to be more like Solaris than SunOS4. 38088cd5fc2Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 38188cd5fc2Smrg exit ;; 38288cd5fc2Smrg sun4*:SunOS:*:*) 38388cd5fc2Smrg case "`/usr/bin/arch -k`" in 38488cd5fc2Smrg Series*|S4*) 38588cd5fc2Smrg UNAME_RELEASE=`uname -v` 38688cd5fc2Smrg ;; 38788cd5fc2Smrg esac 38888cd5fc2Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 38988cd5fc2Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 39088cd5fc2Smrg exit ;; 39188cd5fc2Smrg sun3*:SunOS:*:*) 39288cd5fc2Smrg echo m68k-sun-sunos${UNAME_RELEASE} 39388cd5fc2Smrg exit ;; 39488cd5fc2Smrg sun*:*:4.2BSD:*) 39588cd5fc2Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 39688cd5fc2Smrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 39788cd5fc2Smrg case "`/bin/arch`" in 39888cd5fc2Smrg sun3) 39988cd5fc2Smrg echo m68k-sun-sunos${UNAME_RELEASE} 40088cd5fc2Smrg ;; 40188cd5fc2Smrg sun4) 40288cd5fc2Smrg echo sparc-sun-sunos${UNAME_RELEASE} 40388cd5fc2Smrg ;; 40488cd5fc2Smrg esac 40588cd5fc2Smrg exit ;; 40688cd5fc2Smrg aushp:SunOS:*:*) 40788cd5fc2Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 40888cd5fc2Smrg exit ;; 40988cd5fc2Smrg # The situation for MiNT is a little confusing. The machine name 41088cd5fc2Smrg # can be virtually everything (everything which is not 41188cd5fc2Smrg # "atarist" or "atariste" at least should have a processor 41288cd5fc2Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 41388cd5fc2Smrg # to the lowercase version "mint" (or "freemint"). Finally 41488cd5fc2Smrg # the system name "TOS" denotes a system which is actually not 41588cd5fc2Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 41688cd5fc2Smrg # be no problem. 41788cd5fc2Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 41888cd5fc2Smrg echo m68k-atari-mint${UNAME_RELEASE} 41988cd5fc2Smrg exit ;; 42088cd5fc2Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 42188cd5fc2Smrg echo m68k-atari-mint${UNAME_RELEASE} 42288cd5fc2Smrg exit ;; 42388cd5fc2Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 42488cd5fc2Smrg echo m68k-atari-mint${UNAME_RELEASE} 42588cd5fc2Smrg exit ;; 42688cd5fc2Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 42788cd5fc2Smrg echo m68k-milan-mint${UNAME_RELEASE} 42888cd5fc2Smrg exit ;; 42988cd5fc2Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 43088cd5fc2Smrg echo m68k-hades-mint${UNAME_RELEASE} 43188cd5fc2Smrg exit ;; 43288cd5fc2Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 43388cd5fc2Smrg echo m68k-unknown-mint${UNAME_RELEASE} 43488cd5fc2Smrg exit ;; 43588cd5fc2Smrg m68k:machten:*:*) 43688cd5fc2Smrg echo m68k-apple-machten${UNAME_RELEASE} 43788cd5fc2Smrg exit ;; 43888cd5fc2Smrg powerpc:machten:*:*) 43988cd5fc2Smrg echo powerpc-apple-machten${UNAME_RELEASE} 44088cd5fc2Smrg exit ;; 44188cd5fc2Smrg RISC*:Mach:*:*) 44288cd5fc2Smrg echo mips-dec-mach_bsd4.3 44388cd5fc2Smrg exit ;; 44488cd5fc2Smrg RISC*:ULTRIX:*:*) 44588cd5fc2Smrg echo mips-dec-ultrix${UNAME_RELEASE} 44688cd5fc2Smrg exit ;; 44788cd5fc2Smrg VAX*:ULTRIX*:*:*) 44888cd5fc2Smrg echo vax-dec-ultrix${UNAME_RELEASE} 44988cd5fc2Smrg exit ;; 45088cd5fc2Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 45188cd5fc2Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 45288cd5fc2Smrg exit ;; 45388cd5fc2Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 45488cd5fc2Smrg eval $set_cc_for_build 45588cd5fc2Smrg sed 's/^ //' << EOF >$dummy.c 45688cd5fc2Smrg#ifdef __cplusplus 45788cd5fc2Smrg#include <stdio.h> /* for printf() prototype */ 45888cd5fc2Smrg int main (int argc, char *argv[]) { 45988cd5fc2Smrg#else 46088cd5fc2Smrg int main (argc, argv) int argc; char *argv[]; { 46188cd5fc2Smrg#endif 46288cd5fc2Smrg #if defined (host_mips) && defined (MIPSEB) 46388cd5fc2Smrg #if defined (SYSTYPE_SYSV) 46488cd5fc2Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 46588cd5fc2Smrg #endif 46688cd5fc2Smrg #if defined (SYSTYPE_SVR4) 46788cd5fc2Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 46888cd5fc2Smrg #endif 46988cd5fc2Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 47088cd5fc2Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 47188cd5fc2Smrg #endif 47288cd5fc2Smrg #endif 47388cd5fc2Smrg exit (-1); 47488cd5fc2Smrg } 47588cd5fc2SmrgEOF 47688cd5fc2Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 47788cd5fc2Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 47888cd5fc2Smrg SYSTEM_NAME=`$dummy $dummyarg` && 47988cd5fc2Smrg { echo "$SYSTEM_NAME"; exit; } 48088cd5fc2Smrg echo mips-mips-riscos${UNAME_RELEASE} 48188cd5fc2Smrg exit ;; 48288cd5fc2Smrg Motorola:PowerMAX_OS:*:*) 48388cd5fc2Smrg echo powerpc-motorola-powermax 48488cd5fc2Smrg exit ;; 48588cd5fc2Smrg Motorola:*:4.3:PL8-*) 48688cd5fc2Smrg echo powerpc-harris-powermax 48788cd5fc2Smrg exit ;; 48888cd5fc2Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 48988cd5fc2Smrg echo powerpc-harris-powermax 49088cd5fc2Smrg exit ;; 49188cd5fc2Smrg Night_Hawk:Power_UNIX:*:*) 49288cd5fc2Smrg echo powerpc-harris-powerunix 49388cd5fc2Smrg exit ;; 49488cd5fc2Smrg m88k:CX/UX:7*:*) 49588cd5fc2Smrg echo m88k-harris-cxux7 49688cd5fc2Smrg exit ;; 49788cd5fc2Smrg m88k:*:4*:R4*) 49888cd5fc2Smrg echo m88k-motorola-sysv4 49988cd5fc2Smrg exit ;; 50088cd5fc2Smrg m88k:*:3*:R3*) 50188cd5fc2Smrg echo m88k-motorola-sysv3 50288cd5fc2Smrg exit ;; 50388cd5fc2Smrg AViiON:dgux:*:*) 50488cd5fc2Smrg # DG/UX returns AViiON for all architectures 50588cd5fc2Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 50688cd5fc2Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 50788cd5fc2Smrg then 50888cd5fc2Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 50988cd5fc2Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 51088cd5fc2Smrg then 51188cd5fc2Smrg echo m88k-dg-dgux${UNAME_RELEASE} 51288cd5fc2Smrg else 51388cd5fc2Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 51488cd5fc2Smrg fi 51588cd5fc2Smrg else 51688cd5fc2Smrg echo i586-dg-dgux${UNAME_RELEASE} 51788cd5fc2Smrg fi 51888cd5fc2Smrg exit ;; 51988cd5fc2Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 52088cd5fc2Smrg echo m88k-dolphin-sysv3 52188cd5fc2Smrg exit ;; 52288cd5fc2Smrg M88*:*:R3*:*) 52388cd5fc2Smrg # Delta 88k system running SVR3 52488cd5fc2Smrg echo m88k-motorola-sysv3 52588cd5fc2Smrg exit ;; 52688cd5fc2Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 52788cd5fc2Smrg echo m88k-tektronix-sysv3 52888cd5fc2Smrg exit ;; 52988cd5fc2Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 53088cd5fc2Smrg echo m68k-tektronix-bsd 53188cd5fc2Smrg exit ;; 53288cd5fc2Smrg *:IRIX*:*:*) 53388cd5fc2Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 53488cd5fc2Smrg exit ;; 53588cd5fc2Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 53688cd5fc2Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 53788cd5fc2Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 53888cd5fc2Smrg i*86:AIX:*:*) 53988cd5fc2Smrg echo i386-ibm-aix 54088cd5fc2Smrg exit ;; 54188cd5fc2Smrg ia64:AIX:*:*) 54288cd5fc2Smrg if [ -x /usr/bin/oslevel ] ; then 54388cd5fc2Smrg IBM_REV=`/usr/bin/oslevel` 54488cd5fc2Smrg else 54588cd5fc2Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 54688cd5fc2Smrg fi 54788cd5fc2Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 54888cd5fc2Smrg exit ;; 54988cd5fc2Smrg *:AIX:2:3) 55088cd5fc2Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 55188cd5fc2Smrg eval $set_cc_for_build 55288cd5fc2Smrg sed 's/^ //' << EOF >$dummy.c 55388cd5fc2Smrg #include <sys/systemcfg.h> 55488cd5fc2Smrg 55588cd5fc2Smrg main() 55688cd5fc2Smrg { 55788cd5fc2Smrg if (!__power_pc()) 55888cd5fc2Smrg exit(1); 55988cd5fc2Smrg puts("powerpc-ibm-aix3.2.5"); 56088cd5fc2Smrg exit(0); 56188cd5fc2Smrg } 56288cd5fc2SmrgEOF 56388cd5fc2Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 56488cd5fc2Smrg then 56588cd5fc2Smrg echo "$SYSTEM_NAME" 56688cd5fc2Smrg else 56788cd5fc2Smrg echo rs6000-ibm-aix3.2.5 56888cd5fc2Smrg fi 56988cd5fc2Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 57088cd5fc2Smrg echo rs6000-ibm-aix3.2.4 57188cd5fc2Smrg else 57288cd5fc2Smrg echo rs6000-ibm-aix3.2 57388cd5fc2Smrg fi 57488cd5fc2Smrg exit ;; 57588cd5fc2Smrg *:AIX:*:[4567]) 57688cd5fc2Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 57788cd5fc2Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 57888cd5fc2Smrg IBM_ARCH=rs6000 57988cd5fc2Smrg else 58088cd5fc2Smrg IBM_ARCH=powerpc 58188cd5fc2Smrg fi 58288cd5fc2Smrg if [ -x /usr/bin/oslevel ] ; then 58388cd5fc2Smrg IBM_REV=`/usr/bin/oslevel` 58488cd5fc2Smrg else 58588cd5fc2Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 58688cd5fc2Smrg fi 58788cd5fc2Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 58888cd5fc2Smrg exit ;; 58988cd5fc2Smrg *:AIX:*:*) 59088cd5fc2Smrg echo rs6000-ibm-aix 59188cd5fc2Smrg exit ;; 59288cd5fc2Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 59388cd5fc2Smrg echo romp-ibm-bsd4.4 59488cd5fc2Smrg exit ;; 59588cd5fc2Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 59688cd5fc2Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 59788cd5fc2Smrg exit ;; # report: romp-ibm BSD 4.3 59888cd5fc2Smrg *:BOSX:*:*) 59988cd5fc2Smrg echo rs6000-bull-bosx 60088cd5fc2Smrg exit ;; 60188cd5fc2Smrg DPX/2?00:B.O.S.:*:*) 60288cd5fc2Smrg echo m68k-bull-sysv3 60388cd5fc2Smrg exit ;; 60488cd5fc2Smrg 9000/[34]??:4.3bsd:1.*:*) 60588cd5fc2Smrg echo m68k-hp-bsd 60688cd5fc2Smrg exit ;; 60788cd5fc2Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 60888cd5fc2Smrg echo m68k-hp-bsd4.4 60988cd5fc2Smrg exit ;; 61088cd5fc2Smrg 9000/[34678]??:HP-UX:*:*) 61188cd5fc2Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 61288cd5fc2Smrg case "${UNAME_MACHINE}" in 61388cd5fc2Smrg 9000/31? ) HP_ARCH=m68000 ;; 61488cd5fc2Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 61588cd5fc2Smrg 9000/[678][0-9][0-9]) 61688cd5fc2Smrg if [ -x /usr/bin/getconf ]; then 61788cd5fc2Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 61888cd5fc2Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 61988cd5fc2Smrg case "${sc_cpu_version}" in 62088cd5fc2Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 62188cd5fc2Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 62288cd5fc2Smrg 532) # CPU_PA_RISC2_0 62388cd5fc2Smrg case "${sc_kernel_bits}" in 62488cd5fc2Smrg 32) HP_ARCH="hppa2.0n" ;; 62588cd5fc2Smrg 64) HP_ARCH="hppa2.0w" ;; 62688cd5fc2Smrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 62788cd5fc2Smrg esac ;; 62888cd5fc2Smrg esac 62988cd5fc2Smrg fi 63088cd5fc2Smrg if [ "${HP_ARCH}" = "" ]; then 63188cd5fc2Smrg eval $set_cc_for_build 63288cd5fc2Smrg sed 's/^ //' << EOF >$dummy.c 63388cd5fc2Smrg 63488cd5fc2Smrg #define _HPUX_SOURCE 63588cd5fc2Smrg #include <stdlib.h> 63688cd5fc2Smrg #include <unistd.h> 63788cd5fc2Smrg 63888cd5fc2Smrg int main () 63988cd5fc2Smrg { 64088cd5fc2Smrg #if defined(_SC_KERNEL_BITS) 64188cd5fc2Smrg long bits = sysconf(_SC_KERNEL_BITS); 64288cd5fc2Smrg #endif 64388cd5fc2Smrg long cpu = sysconf (_SC_CPU_VERSION); 64488cd5fc2Smrg 64588cd5fc2Smrg switch (cpu) 64688cd5fc2Smrg { 64788cd5fc2Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 64888cd5fc2Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 64988cd5fc2Smrg case CPU_PA_RISC2_0: 65088cd5fc2Smrg #if defined(_SC_KERNEL_BITS) 65188cd5fc2Smrg switch (bits) 65288cd5fc2Smrg { 65388cd5fc2Smrg case 64: puts ("hppa2.0w"); break; 65488cd5fc2Smrg case 32: puts ("hppa2.0n"); break; 65588cd5fc2Smrg default: puts ("hppa2.0"); break; 65688cd5fc2Smrg } break; 65788cd5fc2Smrg #else /* !defined(_SC_KERNEL_BITS) */ 65888cd5fc2Smrg puts ("hppa2.0"); break; 65988cd5fc2Smrg #endif 66088cd5fc2Smrg default: puts ("hppa1.0"); break; 66188cd5fc2Smrg } 66288cd5fc2Smrg exit (0); 66388cd5fc2Smrg } 66488cd5fc2SmrgEOF 66588cd5fc2Smrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 66688cd5fc2Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 66788cd5fc2Smrg fi ;; 66888cd5fc2Smrg esac 66988cd5fc2Smrg if [ ${HP_ARCH} = "hppa2.0w" ] 67088cd5fc2Smrg then 67188cd5fc2Smrg eval $set_cc_for_build 67288cd5fc2Smrg 67388cd5fc2Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 67488cd5fc2Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 67588cd5fc2Smrg # generating 64-bit code. GNU and HP use different nomenclature: 67688cd5fc2Smrg # 67788cd5fc2Smrg # $ CC_FOR_BUILD=cc ./config.guess 67888cd5fc2Smrg # => hppa2.0w-hp-hpux11.23 67988cd5fc2Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 68088cd5fc2Smrg # => hppa64-hp-hpux11.23 68188cd5fc2Smrg 68288cd5fc2Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 68388cd5fc2Smrg grep -q __LP64__ 68488cd5fc2Smrg then 68588cd5fc2Smrg HP_ARCH="hppa2.0w" 68688cd5fc2Smrg else 68788cd5fc2Smrg HP_ARCH="hppa64" 68888cd5fc2Smrg fi 68988cd5fc2Smrg fi 69088cd5fc2Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 69188cd5fc2Smrg exit ;; 69288cd5fc2Smrg ia64:HP-UX:*:*) 69388cd5fc2Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 69488cd5fc2Smrg echo ia64-hp-hpux${HPUX_REV} 69588cd5fc2Smrg exit ;; 69688cd5fc2Smrg 3050*:HI-UX:*:*) 69788cd5fc2Smrg eval $set_cc_for_build 69888cd5fc2Smrg sed 's/^ //' << EOF >$dummy.c 69988cd5fc2Smrg #include <unistd.h> 70088cd5fc2Smrg int 70188cd5fc2Smrg main () 70288cd5fc2Smrg { 70388cd5fc2Smrg long cpu = sysconf (_SC_CPU_VERSION); 70488cd5fc2Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 70588cd5fc2Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 70688cd5fc2Smrg results, however. */ 70788cd5fc2Smrg if (CPU_IS_PA_RISC (cpu)) 70888cd5fc2Smrg { 70988cd5fc2Smrg switch (cpu) 71088cd5fc2Smrg { 71188cd5fc2Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 71288cd5fc2Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 71388cd5fc2Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 71488cd5fc2Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 71588cd5fc2Smrg } 71688cd5fc2Smrg } 71788cd5fc2Smrg else if (CPU_IS_HP_MC68K (cpu)) 71888cd5fc2Smrg puts ("m68k-hitachi-hiuxwe2"); 71988cd5fc2Smrg else puts ("unknown-hitachi-hiuxwe2"); 72088cd5fc2Smrg exit (0); 72188cd5fc2Smrg } 72288cd5fc2SmrgEOF 72388cd5fc2Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 72488cd5fc2Smrg { echo "$SYSTEM_NAME"; exit; } 72588cd5fc2Smrg echo unknown-hitachi-hiuxwe2 72688cd5fc2Smrg exit ;; 72788cd5fc2Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 72888cd5fc2Smrg echo hppa1.1-hp-bsd 72988cd5fc2Smrg exit ;; 73088cd5fc2Smrg 9000/8??:4.3bsd:*:*) 73188cd5fc2Smrg echo hppa1.0-hp-bsd 73288cd5fc2Smrg exit ;; 73388cd5fc2Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 73488cd5fc2Smrg echo hppa1.0-hp-mpeix 73588cd5fc2Smrg exit ;; 73688cd5fc2Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 73788cd5fc2Smrg echo hppa1.1-hp-osf 73888cd5fc2Smrg exit ;; 73988cd5fc2Smrg hp8??:OSF1:*:*) 74088cd5fc2Smrg echo hppa1.0-hp-osf 74188cd5fc2Smrg exit ;; 74288cd5fc2Smrg i*86:OSF1:*:*) 74388cd5fc2Smrg if [ -x /usr/sbin/sysversion ] ; then 74488cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 74588cd5fc2Smrg else 74688cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-osf1 74788cd5fc2Smrg fi 74888cd5fc2Smrg exit ;; 74988cd5fc2Smrg parisc*:Lites*:*:*) 75088cd5fc2Smrg echo hppa1.1-hp-lites 75188cd5fc2Smrg exit ;; 75288cd5fc2Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 75388cd5fc2Smrg echo c1-convex-bsd 75488cd5fc2Smrg exit ;; 75588cd5fc2Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 75688cd5fc2Smrg if getsysinfo -f scalar_acc 75788cd5fc2Smrg then echo c32-convex-bsd 75888cd5fc2Smrg else echo c2-convex-bsd 75988cd5fc2Smrg fi 76088cd5fc2Smrg exit ;; 76188cd5fc2Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 76288cd5fc2Smrg echo c34-convex-bsd 76388cd5fc2Smrg exit ;; 76488cd5fc2Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 76588cd5fc2Smrg echo c38-convex-bsd 76688cd5fc2Smrg exit ;; 76788cd5fc2Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 76888cd5fc2Smrg echo c4-convex-bsd 76988cd5fc2Smrg exit ;; 77088cd5fc2Smrg CRAY*Y-MP:*:*:*) 77188cd5fc2Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 77288cd5fc2Smrg exit ;; 77388cd5fc2Smrg CRAY*[A-Z]90:*:*:*) 77488cd5fc2Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 77588cd5fc2Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 77688cd5fc2Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 77788cd5fc2Smrg -e 's/\.[^.]*$/.X/' 77888cd5fc2Smrg exit ;; 77988cd5fc2Smrg CRAY*TS:*:*:*) 78088cd5fc2Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78188cd5fc2Smrg exit ;; 78288cd5fc2Smrg CRAY*T3E:*:*:*) 78388cd5fc2Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78488cd5fc2Smrg exit ;; 78588cd5fc2Smrg CRAY*SV1:*:*:*) 78688cd5fc2Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 78788cd5fc2Smrg exit ;; 78888cd5fc2Smrg *:UNICOS/mp:*:*) 78988cd5fc2Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 79088cd5fc2Smrg exit ;; 79188cd5fc2Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 79288cd5fc2Smrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 79388cd5fc2Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 79488cd5fc2Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 79588cd5fc2Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 79688cd5fc2Smrg exit ;; 79788cd5fc2Smrg 5000:UNIX_System_V:4.*:*) 79888cd5fc2Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 79988cd5fc2Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 80088cd5fc2Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 80188cd5fc2Smrg exit ;; 80288cd5fc2Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 80388cd5fc2Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 80488cd5fc2Smrg exit ;; 80588cd5fc2Smrg sparc*:BSD/OS:*:*) 80688cd5fc2Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 80788cd5fc2Smrg exit ;; 80888cd5fc2Smrg *:BSD/OS:*:*) 80988cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 81088cd5fc2Smrg exit ;; 81188cd5fc2Smrg *:FreeBSD:*:*) 81288cd5fc2Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 81388cd5fc2Smrg case ${UNAME_PROCESSOR} in 81488cd5fc2Smrg amd64) 81588cd5fc2Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 81688cd5fc2Smrg *) 81788cd5fc2Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 81888cd5fc2Smrg esac 81988cd5fc2Smrg exit ;; 82088cd5fc2Smrg i*:CYGWIN*:*) 82188cd5fc2Smrg echo ${UNAME_MACHINE}-pc-cygwin 82288cd5fc2Smrg exit ;; 82388cd5fc2Smrg *:MINGW64*:*) 82488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-mingw64 82588cd5fc2Smrg exit ;; 82688cd5fc2Smrg *:MINGW*:*) 82788cd5fc2Smrg echo ${UNAME_MACHINE}-pc-mingw32 82888cd5fc2Smrg exit ;; 82988cd5fc2Smrg *:MSYS*:*) 83088cd5fc2Smrg echo ${UNAME_MACHINE}-pc-msys 83188cd5fc2Smrg exit ;; 83288cd5fc2Smrg i*:windows32*:*) 83388cd5fc2Smrg # uname -m includes "-pc" on this system. 83488cd5fc2Smrg echo ${UNAME_MACHINE}-mingw32 83588cd5fc2Smrg exit ;; 83688cd5fc2Smrg i*:PW*:*) 83788cd5fc2Smrg echo ${UNAME_MACHINE}-pc-pw32 83888cd5fc2Smrg exit ;; 83988cd5fc2Smrg *:Interix*:*) 84088cd5fc2Smrg case ${UNAME_MACHINE} in 84188cd5fc2Smrg x86) 84288cd5fc2Smrg echo i586-pc-interix${UNAME_RELEASE} 84388cd5fc2Smrg exit ;; 84488cd5fc2Smrg authenticamd | genuineintel | EM64T) 84588cd5fc2Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 84688cd5fc2Smrg exit ;; 84788cd5fc2Smrg IA64) 84888cd5fc2Smrg echo ia64-unknown-interix${UNAME_RELEASE} 84988cd5fc2Smrg exit ;; 85088cd5fc2Smrg esac ;; 85188cd5fc2Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 85288cd5fc2Smrg echo i${UNAME_MACHINE}-pc-mks 85388cd5fc2Smrg exit ;; 85488cd5fc2Smrg 8664:Windows_NT:*) 85588cd5fc2Smrg echo x86_64-pc-mks 85688cd5fc2Smrg exit ;; 85788cd5fc2Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 85888cd5fc2Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 85988cd5fc2Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 86088cd5fc2Smrg # UNAME_MACHINE based on the output of uname instead of i386? 86188cd5fc2Smrg echo i586-pc-interix 86288cd5fc2Smrg exit ;; 86388cd5fc2Smrg i*:UWIN*:*) 86488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-uwin 86588cd5fc2Smrg exit ;; 86688cd5fc2Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 86788cd5fc2Smrg echo x86_64-unknown-cygwin 86888cd5fc2Smrg exit ;; 86988cd5fc2Smrg p*:CYGWIN*:*) 87088cd5fc2Smrg echo powerpcle-unknown-cygwin 87188cd5fc2Smrg exit ;; 87288cd5fc2Smrg prep*:SunOS:5.*:*) 87388cd5fc2Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 87488cd5fc2Smrg exit ;; 87588cd5fc2Smrg *:GNU:*:*) 87688cd5fc2Smrg # the GNU system 87788cd5fc2Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 87888cd5fc2Smrg exit ;; 87988cd5fc2Smrg *:GNU/*:*:*) 88088cd5fc2Smrg # other systems with GNU libc and userland 88188cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 88288cd5fc2Smrg exit ;; 88388cd5fc2Smrg i*86:Minix:*:*) 88488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-minix 88588cd5fc2Smrg exit ;; 88688cd5fc2Smrg aarch64:Linux:*:*) 88788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 88888cd5fc2Smrg exit ;; 88988cd5fc2Smrg aarch64_be:Linux:*:*) 89088cd5fc2Smrg UNAME_MACHINE=aarch64_be 89188cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 89288cd5fc2Smrg exit ;; 89388cd5fc2Smrg alpha:Linux:*:*) 89488cd5fc2Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 89588cd5fc2Smrg EV5) UNAME_MACHINE=alphaev5 ;; 89688cd5fc2Smrg EV56) UNAME_MACHINE=alphaev56 ;; 89788cd5fc2Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 89888cd5fc2Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 89988cd5fc2Smrg EV6) UNAME_MACHINE=alphaev6 ;; 90088cd5fc2Smrg EV67) UNAME_MACHINE=alphaev67 ;; 90188cd5fc2Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 90288cd5fc2Smrg esac 90388cd5fc2Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 90488cd5fc2Smrg if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 90588cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 90688cd5fc2Smrg exit ;; 90788cd5fc2Smrg arc:Linux:*:* | arceb:Linux:*:*) 90888cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 90988cd5fc2Smrg exit ;; 91088cd5fc2Smrg arm*:Linux:*:*) 91188cd5fc2Smrg eval $set_cc_for_build 91288cd5fc2Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 91388cd5fc2Smrg | grep -q __ARM_EABI__ 91488cd5fc2Smrg then 91588cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 91688cd5fc2Smrg else 91788cd5fc2Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 91888cd5fc2Smrg | grep -q __ARM_PCS_VFP 91988cd5fc2Smrg then 92088cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 92188cd5fc2Smrg else 92288cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 92388cd5fc2Smrg fi 92488cd5fc2Smrg fi 92588cd5fc2Smrg exit ;; 92688cd5fc2Smrg avr32*:Linux:*:*) 92788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 92888cd5fc2Smrg exit ;; 92988cd5fc2Smrg cris:Linux:*:*) 93088cd5fc2Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 93188cd5fc2Smrg exit ;; 93288cd5fc2Smrg crisv32:Linux:*:*) 93388cd5fc2Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 93488cd5fc2Smrg exit ;; 93588cd5fc2Smrg frv:Linux:*:*) 93688cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 93788cd5fc2Smrg exit ;; 93888cd5fc2Smrg hexagon:Linux:*:*) 93988cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94088cd5fc2Smrg exit ;; 94188cd5fc2Smrg i*86:Linux:*:*) 94288cd5fc2Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 94388cd5fc2Smrg exit ;; 94488cd5fc2Smrg ia64:Linux:*:*) 94588cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94688cd5fc2Smrg exit ;; 94788cd5fc2Smrg m32r*:Linux:*:*) 94888cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 94988cd5fc2Smrg exit ;; 95088cd5fc2Smrg m68*:Linux:*:*) 95188cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 95288cd5fc2Smrg exit ;; 95388cd5fc2Smrg mips:Linux:*:* | mips64:Linux:*:*) 95488cd5fc2Smrg eval $set_cc_for_build 95588cd5fc2Smrg sed 's/^ //' << EOF >$dummy.c 95688cd5fc2Smrg #undef CPU 95788cd5fc2Smrg #undef ${UNAME_MACHINE} 95888cd5fc2Smrg #undef ${UNAME_MACHINE}el 95988cd5fc2Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 96088cd5fc2Smrg CPU=${UNAME_MACHINE}el 96188cd5fc2Smrg #else 96288cd5fc2Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 96388cd5fc2Smrg CPU=${UNAME_MACHINE} 96488cd5fc2Smrg #else 96588cd5fc2Smrg CPU= 96688cd5fc2Smrg #endif 96788cd5fc2Smrg #endif 96888cd5fc2SmrgEOF 96988cd5fc2Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 97088cd5fc2Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 97188cd5fc2Smrg ;; 97288cd5fc2Smrg openrisc*:Linux:*:*) 97388cd5fc2Smrg echo or1k-unknown-linux-${LIBC} 97488cd5fc2Smrg exit ;; 97588cd5fc2Smrg or32:Linux:*:* | or1k*:Linux:*:*) 97688cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 97788cd5fc2Smrg exit ;; 97888cd5fc2Smrg padre:Linux:*:*) 97988cd5fc2Smrg echo sparc-unknown-linux-${LIBC} 98088cd5fc2Smrg exit ;; 98188cd5fc2Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 98288cd5fc2Smrg echo hppa64-unknown-linux-${LIBC} 98388cd5fc2Smrg exit ;; 98488cd5fc2Smrg parisc:Linux:*:* | hppa:Linux:*:*) 98588cd5fc2Smrg # Look for CPU level 98688cd5fc2Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 98788cd5fc2Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 98888cd5fc2Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 98988cd5fc2Smrg *) echo hppa-unknown-linux-${LIBC} ;; 99088cd5fc2Smrg esac 99188cd5fc2Smrg exit ;; 99288cd5fc2Smrg ppc64:Linux:*:*) 99388cd5fc2Smrg echo powerpc64-unknown-linux-${LIBC} 99488cd5fc2Smrg exit ;; 99588cd5fc2Smrg ppc:Linux:*:*) 99688cd5fc2Smrg echo powerpc-unknown-linux-${LIBC} 99788cd5fc2Smrg exit ;; 99888cd5fc2Smrg ppc64le:Linux:*:*) 99988cd5fc2Smrg echo powerpc64le-unknown-linux-${LIBC} 100088cd5fc2Smrg exit ;; 100188cd5fc2Smrg ppcle:Linux:*:*) 100288cd5fc2Smrg echo powerpcle-unknown-linux-${LIBC} 100388cd5fc2Smrg exit ;; 100488cd5fc2Smrg s390:Linux:*:* | s390x:Linux:*:*) 100588cd5fc2Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 100688cd5fc2Smrg exit ;; 100788cd5fc2Smrg sh64*:Linux:*:*) 100888cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 100988cd5fc2Smrg exit ;; 101088cd5fc2Smrg sh*:Linux:*:*) 101188cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101288cd5fc2Smrg exit ;; 101388cd5fc2Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 101488cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101588cd5fc2Smrg exit ;; 101688cd5fc2Smrg tile*:Linux:*:*) 101788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101888cd5fc2Smrg exit ;; 101988cd5fc2Smrg vax:Linux:*:*) 102088cd5fc2Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 102188cd5fc2Smrg exit ;; 102288cd5fc2Smrg x86_64:Linux:*:*) 102388cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 102488cd5fc2Smrg exit ;; 102588cd5fc2Smrg xtensa*:Linux:*:*) 102688cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 102788cd5fc2Smrg exit ;; 102888cd5fc2Smrg i*86:DYNIX/ptx:4*:*) 102988cd5fc2Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 103088cd5fc2Smrg # earlier versions are messed up and put the nodename in both 103188cd5fc2Smrg # sysname and nodename. 103288cd5fc2Smrg echo i386-sequent-sysv4 103388cd5fc2Smrg exit ;; 103488cd5fc2Smrg i*86:UNIX_SV:4.2MP:2.*) 103588cd5fc2Smrg # Unixware is an offshoot of SVR4, but it has its own version 103688cd5fc2Smrg # number series starting with 2... 103788cd5fc2Smrg # I am not positive that other SVR4 systems won't match this, 103888cd5fc2Smrg # I just have to hope. -- rms. 103988cd5fc2Smrg # Use sysv4.2uw... so that sysv4* matches it. 104088cd5fc2Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 104188cd5fc2Smrg exit ;; 104288cd5fc2Smrg i*86:OS/2:*:*) 104388cd5fc2Smrg # If we were able to find `uname', then EMX Unix compatibility 104488cd5fc2Smrg # is probably installed. 104588cd5fc2Smrg echo ${UNAME_MACHINE}-pc-os2-emx 104688cd5fc2Smrg exit ;; 104788cd5fc2Smrg i*86:XTS-300:*:STOP) 104888cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-stop 104988cd5fc2Smrg exit ;; 105088cd5fc2Smrg i*86:atheos:*:*) 105188cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-atheos 105288cd5fc2Smrg exit ;; 105388cd5fc2Smrg i*86:syllable:*:*) 105488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-syllable 105588cd5fc2Smrg exit ;; 105688cd5fc2Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 105788cd5fc2Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 105888cd5fc2Smrg exit ;; 105988cd5fc2Smrg i*86:*DOS:*:*) 106088cd5fc2Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 106188cd5fc2Smrg exit ;; 106288cd5fc2Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 106388cd5fc2Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 106488cd5fc2Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 106588cd5fc2Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 106688cd5fc2Smrg else 106788cd5fc2Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 106888cd5fc2Smrg fi 106988cd5fc2Smrg exit ;; 107088cd5fc2Smrg i*86:*:5:[678]*) 107188cd5fc2Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 107288cd5fc2Smrg case `/bin/uname -X | grep "^Machine"` in 107388cd5fc2Smrg *486*) UNAME_MACHINE=i486 ;; 107488cd5fc2Smrg *Pentium) UNAME_MACHINE=i586 ;; 107588cd5fc2Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 107688cd5fc2Smrg esac 107788cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 107888cd5fc2Smrg exit ;; 107988cd5fc2Smrg i*86:*:3.2:*) 108088cd5fc2Smrg if test -f /usr/options/cb.name; then 108188cd5fc2Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 108288cd5fc2Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 108388cd5fc2Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 108488cd5fc2Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 108588cd5fc2Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 108688cd5fc2Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 108788cd5fc2Smrg && UNAME_MACHINE=i586 108888cd5fc2Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 108988cd5fc2Smrg && UNAME_MACHINE=i686 109088cd5fc2Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 109188cd5fc2Smrg && UNAME_MACHINE=i686 109288cd5fc2Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 109388cd5fc2Smrg else 109488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-sysv32 109588cd5fc2Smrg fi 109688cd5fc2Smrg exit ;; 109788cd5fc2Smrg pc:*:*:*) 109888cd5fc2Smrg # Left here for compatibility: 109988cd5fc2Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 110088cd5fc2Smrg # the processor, so we play safe by assuming i586. 110188cd5fc2Smrg # Note: whatever this is, it MUST be the same as what config.sub 110288cd5fc2Smrg # prints for the "djgpp" host, or else GDB configury will decide that 110388cd5fc2Smrg # this is a cross-build. 110488cd5fc2Smrg echo i586-pc-msdosdjgpp 110588cd5fc2Smrg exit ;; 110688cd5fc2Smrg Intel:Mach:3*:*) 110788cd5fc2Smrg echo i386-pc-mach3 110888cd5fc2Smrg exit ;; 110988cd5fc2Smrg paragon:*:*:*) 111088cd5fc2Smrg echo i860-intel-osf1 111188cd5fc2Smrg exit ;; 111288cd5fc2Smrg i860:*:4.*:*) # i860-SVR4 111388cd5fc2Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 111488cd5fc2Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 111588cd5fc2Smrg else # Add other i860-SVR4 vendors below as they are discovered. 111688cd5fc2Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 111788cd5fc2Smrg fi 111888cd5fc2Smrg exit ;; 111988cd5fc2Smrg mini*:CTIX:SYS*5:*) 112088cd5fc2Smrg # "miniframe" 112188cd5fc2Smrg echo m68010-convergent-sysv 112288cd5fc2Smrg exit ;; 112388cd5fc2Smrg mc68k:UNIX:SYSTEM5:3.51m) 112488cd5fc2Smrg echo m68k-convergent-sysv 112588cd5fc2Smrg exit ;; 112688cd5fc2Smrg M680?0:D-NIX:5.3:*) 112788cd5fc2Smrg echo m68k-diab-dnix 112888cd5fc2Smrg exit ;; 112988cd5fc2Smrg M68*:*:R3V[5678]*:*) 113088cd5fc2Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 113188cd5fc2Smrg 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) 113288cd5fc2Smrg OS_REL='' 113388cd5fc2Smrg test -r /etc/.relid \ 113488cd5fc2Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 113588cd5fc2Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 113688cd5fc2Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 113788cd5fc2Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 113888cd5fc2Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 113988cd5fc2Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 114088cd5fc2Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114188cd5fc2Smrg && { echo i486-ncr-sysv4; exit; } ;; 114288cd5fc2Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 114388cd5fc2Smrg OS_REL='.3' 114488cd5fc2Smrg test -r /etc/.relid \ 114588cd5fc2Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 114688cd5fc2Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114788cd5fc2Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 114888cd5fc2Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 114988cd5fc2Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 115088cd5fc2Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 115188cd5fc2Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 115288cd5fc2Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 115388cd5fc2Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 115488cd5fc2Smrg exit ;; 115588cd5fc2Smrg mc68030:UNIX_System_V:4.*:*) 115688cd5fc2Smrg echo m68k-atari-sysv4 115788cd5fc2Smrg exit ;; 115888cd5fc2Smrg TSUNAMI:LynxOS:2.*:*) 115988cd5fc2Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 116088cd5fc2Smrg exit ;; 116188cd5fc2Smrg rs6000:LynxOS:2.*:*) 116288cd5fc2Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 116388cd5fc2Smrg exit ;; 116488cd5fc2Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 116588cd5fc2Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 116688cd5fc2Smrg exit ;; 116788cd5fc2Smrg SM[BE]S:UNIX_SV:*:*) 116888cd5fc2Smrg echo mips-dde-sysv${UNAME_RELEASE} 116988cd5fc2Smrg exit ;; 117088cd5fc2Smrg RM*:ReliantUNIX-*:*:*) 117188cd5fc2Smrg echo mips-sni-sysv4 117288cd5fc2Smrg exit ;; 117388cd5fc2Smrg RM*:SINIX-*:*:*) 117488cd5fc2Smrg echo mips-sni-sysv4 117588cd5fc2Smrg exit ;; 117688cd5fc2Smrg *:SINIX-*:*:*) 117788cd5fc2Smrg if uname -p 2>/dev/null >/dev/null ; then 117888cd5fc2Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 117988cd5fc2Smrg echo ${UNAME_MACHINE}-sni-sysv4 118088cd5fc2Smrg else 118188cd5fc2Smrg echo ns32k-sni-sysv 118288cd5fc2Smrg fi 118388cd5fc2Smrg exit ;; 118488cd5fc2Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 118588cd5fc2Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 118688cd5fc2Smrg echo i586-unisys-sysv4 118788cd5fc2Smrg exit ;; 118888cd5fc2Smrg *:UNIX_System_V:4*:FTX*) 118988cd5fc2Smrg # From Gerald Hewes <hewes@openmarket.com>. 119088cd5fc2Smrg # How about differentiating between stratus architectures? -djm 119188cd5fc2Smrg echo hppa1.1-stratus-sysv4 119288cd5fc2Smrg exit ;; 119388cd5fc2Smrg *:*:*:FTX*) 119488cd5fc2Smrg # From seanf@swdc.stratus.com. 119588cd5fc2Smrg echo i860-stratus-sysv4 119688cd5fc2Smrg exit ;; 119788cd5fc2Smrg i*86:VOS:*:*) 119888cd5fc2Smrg # From Paul.Green@stratus.com. 119988cd5fc2Smrg echo ${UNAME_MACHINE}-stratus-vos 120088cd5fc2Smrg exit ;; 120188cd5fc2Smrg *:VOS:*:*) 120288cd5fc2Smrg # From Paul.Green@stratus.com. 120388cd5fc2Smrg echo hppa1.1-stratus-vos 120488cd5fc2Smrg exit ;; 120588cd5fc2Smrg mc68*:A/UX:*:*) 120688cd5fc2Smrg echo m68k-apple-aux${UNAME_RELEASE} 120788cd5fc2Smrg exit ;; 120888cd5fc2Smrg news*:NEWS-OS:6*:*) 120988cd5fc2Smrg echo mips-sony-newsos6 121088cd5fc2Smrg exit ;; 121188cd5fc2Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 121288cd5fc2Smrg if [ -d /usr/nec ]; then 121388cd5fc2Smrg echo mips-nec-sysv${UNAME_RELEASE} 121488cd5fc2Smrg else 121588cd5fc2Smrg echo mips-unknown-sysv${UNAME_RELEASE} 121688cd5fc2Smrg fi 121788cd5fc2Smrg exit ;; 121888cd5fc2Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 121988cd5fc2Smrg echo powerpc-be-beos 122088cd5fc2Smrg exit ;; 122188cd5fc2Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 122288cd5fc2Smrg echo powerpc-apple-beos 122388cd5fc2Smrg exit ;; 122488cd5fc2Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 122588cd5fc2Smrg echo i586-pc-beos 122688cd5fc2Smrg exit ;; 122788cd5fc2Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 122888cd5fc2Smrg echo i586-pc-haiku 122988cd5fc2Smrg exit ;; 123088cd5fc2Smrg x86_64:Haiku:*:*) 123188cd5fc2Smrg echo x86_64-unknown-haiku 123288cd5fc2Smrg exit ;; 123388cd5fc2Smrg SX-4:SUPER-UX:*:*) 123488cd5fc2Smrg echo sx4-nec-superux${UNAME_RELEASE} 123588cd5fc2Smrg exit ;; 123688cd5fc2Smrg SX-5:SUPER-UX:*:*) 123788cd5fc2Smrg echo sx5-nec-superux${UNAME_RELEASE} 123888cd5fc2Smrg exit ;; 123988cd5fc2Smrg SX-6:SUPER-UX:*:*) 124088cd5fc2Smrg echo sx6-nec-superux${UNAME_RELEASE} 124188cd5fc2Smrg exit ;; 124288cd5fc2Smrg SX-7:SUPER-UX:*:*) 124388cd5fc2Smrg echo sx7-nec-superux${UNAME_RELEASE} 124488cd5fc2Smrg exit ;; 124588cd5fc2Smrg SX-8:SUPER-UX:*:*) 124688cd5fc2Smrg echo sx8-nec-superux${UNAME_RELEASE} 124788cd5fc2Smrg exit ;; 124888cd5fc2Smrg SX-8R:SUPER-UX:*:*) 124988cd5fc2Smrg echo sx8r-nec-superux${UNAME_RELEASE} 125088cd5fc2Smrg exit ;; 125188cd5fc2Smrg Power*:Rhapsody:*:*) 125288cd5fc2Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 125388cd5fc2Smrg exit ;; 125488cd5fc2Smrg *:Rhapsody:*:*) 125588cd5fc2Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 125688cd5fc2Smrg exit ;; 125788cd5fc2Smrg *:Darwin:*:*) 125888cd5fc2Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 125988cd5fc2Smrg eval $set_cc_for_build 126088cd5fc2Smrg if test "$UNAME_PROCESSOR" = unknown ; then 126188cd5fc2Smrg UNAME_PROCESSOR=powerpc 126288cd5fc2Smrg fi 126388cd5fc2Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 126488cd5fc2Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 126588cd5fc2Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 126688cd5fc2Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 126788cd5fc2Smrg grep IS_64BIT_ARCH >/dev/null 126888cd5fc2Smrg then 126988cd5fc2Smrg case $UNAME_PROCESSOR in 127088cd5fc2Smrg i386) UNAME_PROCESSOR=x86_64 ;; 127188cd5fc2Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 127288cd5fc2Smrg esac 127388cd5fc2Smrg fi 127488cd5fc2Smrg fi 127588cd5fc2Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 127688cd5fc2Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 127788cd5fc2Smrg # that puts up a graphical alert prompting to install 127888cd5fc2Smrg # developer tools. Any system running Mac OS X 10.7 or 127988cd5fc2Smrg # later (Darwin 11 and later) is required to have a 64-bit 128088cd5fc2Smrg # processor. This is not true of the ARM version of Darwin 128188cd5fc2Smrg # that Apple uses in portable devices. 128288cd5fc2Smrg UNAME_PROCESSOR=x86_64 128388cd5fc2Smrg fi 128488cd5fc2Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 128588cd5fc2Smrg exit ;; 128688cd5fc2Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 128788cd5fc2Smrg UNAME_PROCESSOR=`uname -p` 128888cd5fc2Smrg if test "$UNAME_PROCESSOR" = "x86"; then 128988cd5fc2Smrg UNAME_PROCESSOR=i386 129088cd5fc2Smrg UNAME_MACHINE=pc 129188cd5fc2Smrg fi 129288cd5fc2Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 129388cd5fc2Smrg exit ;; 129488cd5fc2Smrg *:QNX:*:4*) 129588cd5fc2Smrg echo i386-pc-qnx 129688cd5fc2Smrg exit ;; 129788cd5fc2Smrg NEO-?:NONSTOP_KERNEL:*:*) 129888cd5fc2Smrg echo neo-tandem-nsk${UNAME_RELEASE} 129988cd5fc2Smrg exit ;; 130088cd5fc2Smrg NSE-*:NONSTOP_KERNEL:*:*) 130188cd5fc2Smrg echo nse-tandem-nsk${UNAME_RELEASE} 130288cd5fc2Smrg exit ;; 130388cd5fc2Smrg NSR-?:NONSTOP_KERNEL:*:*) 130488cd5fc2Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 130588cd5fc2Smrg exit ;; 130688cd5fc2Smrg *:NonStop-UX:*:*) 130788cd5fc2Smrg echo mips-compaq-nonstopux 130888cd5fc2Smrg exit ;; 130988cd5fc2Smrg BS2000:POSIX*:*:*) 131088cd5fc2Smrg echo bs2000-siemens-sysv 131188cd5fc2Smrg exit ;; 131288cd5fc2Smrg DS/*:UNIX_System_V:*:*) 131388cd5fc2Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 131488cd5fc2Smrg exit ;; 131588cd5fc2Smrg *:Plan9:*:*) 131688cd5fc2Smrg # "uname -m" is not consistent, so use $cputype instead. 386 131788cd5fc2Smrg # is converted to i386 for consistency with other x86 131888cd5fc2Smrg # operating systems. 131988cd5fc2Smrg if test "$cputype" = "386"; then 132088cd5fc2Smrg UNAME_MACHINE=i386 132188cd5fc2Smrg else 132288cd5fc2Smrg UNAME_MACHINE="$cputype" 132388cd5fc2Smrg fi 132488cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-plan9 132588cd5fc2Smrg exit ;; 132688cd5fc2Smrg *:TOPS-10:*:*) 132788cd5fc2Smrg echo pdp10-unknown-tops10 132888cd5fc2Smrg exit ;; 132988cd5fc2Smrg *:TENEX:*:*) 133088cd5fc2Smrg echo pdp10-unknown-tenex 133188cd5fc2Smrg exit ;; 133288cd5fc2Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 133388cd5fc2Smrg echo pdp10-dec-tops20 133488cd5fc2Smrg exit ;; 133588cd5fc2Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 133688cd5fc2Smrg echo pdp10-xkl-tops20 133788cd5fc2Smrg exit ;; 133888cd5fc2Smrg *:TOPS-20:*:*) 133988cd5fc2Smrg echo pdp10-unknown-tops20 134088cd5fc2Smrg exit ;; 134188cd5fc2Smrg *:ITS:*:*) 134288cd5fc2Smrg echo pdp10-unknown-its 134388cd5fc2Smrg exit ;; 134488cd5fc2Smrg SEI:*:*:SEIUX) 134588cd5fc2Smrg echo mips-sei-seiux${UNAME_RELEASE} 134688cd5fc2Smrg exit ;; 134788cd5fc2Smrg *:DragonFly:*:*) 134888cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 134988cd5fc2Smrg exit ;; 135088cd5fc2Smrg *:*VMS:*:*) 135188cd5fc2Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 135288cd5fc2Smrg case "${UNAME_MACHINE}" in 135388cd5fc2Smrg A*) echo alpha-dec-vms ; exit ;; 135488cd5fc2Smrg I*) echo ia64-dec-vms ; exit ;; 135588cd5fc2Smrg V*) echo vax-dec-vms ; exit ;; 135688cd5fc2Smrg esac ;; 135788cd5fc2Smrg *:XENIX:*:SysV) 135888cd5fc2Smrg echo i386-pc-xenix 135988cd5fc2Smrg exit ;; 136088cd5fc2Smrg i*86:skyos:*:*) 136188cd5fc2Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 136288cd5fc2Smrg exit ;; 136388cd5fc2Smrg i*86:rdos:*:*) 136488cd5fc2Smrg echo ${UNAME_MACHINE}-pc-rdos 136588cd5fc2Smrg exit ;; 136688cd5fc2Smrg i*86:AROS:*:*) 136788cd5fc2Smrg echo ${UNAME_MACHINE}-pc-aros 136888cd5fc2Smrg exit ;; 136988cd5fc2Smrg x86_64:VMkernel:*:*) 137088cd5fc2Smrg echo ${UNAME_MACHINE}-unknown-esx 137188cd5fc2Smrg exit ;; 137288cd5fc2Smrgesac 137388cd5fc2Smrg 137488cd5fc2Smrgcat >&2 <<EOF 137588cd5fc2Smrg$0: unable to guess system type 137688cd5fc2Smrg 137788cd5fc2SmrgThis script, last modified $timestamp, has failed to recognize 137888cd5fc2Smrgthe operating system you are using. It is advised that you 137988cd5fc2Smrgdownload the most up to date version of the config scripts from 138088cd5fc2Smrg 138188cd5fc2Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 138288cd5fc2Smrgand 138388cd5fc2Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 138488cd5fc2Smrg 138588cd5fc2SmrgIf the version you run ($0) is already up to date, please 138688cd5fc2Smrgsend the following data and any information you think might be 138788cd5fc2Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 138888cd5fc2Smrginformation to handle your system. 138988cd5fc2Smrg 139088cd5fc2Smrgconfig.guess timestamp = $timestamp 139188cd5fc2Smrg 139288cd5fc2Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 139388cd5fc2Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 139488cd5fc2Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 139588cd5fc2Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 139688cd5fc2Smrg 139788cd5fc2Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 139888cd5fc2Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 139988cd5fc2Smrg 140088cd5fc2Smrghostinfo = `(hostinfo) 2>/dev/null` 140188cd5fc2Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 140288cd5fc2Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 140388cd5fc2Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 140488cd5fc2Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 140588cd5fc2Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 140688cd5fc2Smrg 140788cd5fc2SmrgUNAME_MACHINE = ${UNAME_MACHINE} 140888cd5fc2SmrgUNAME_RELEASE = ${UNAME_RELEASE} 140988cd5fc2SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 141088cd5fc2SmrgUNAME_VERSION = ${UNAME_VERSION} 141188cd5fc2SmrgEOF 141288cd5fc2Smrg 141388cd5fc2Smrgexit 1 141488cd5fc2Smrg 141588cd5fc2Smrg# Local variables: 141688cd5fc2Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 141788cd5fc2Smrg# time-stamp-start: "timestamp='" 141888cd5fc2Smrg# time-stamp-format: "%:y-%02m-%02d" 141988cd5fc2Smrg# time-stamp-end: "'" 142088cd5fc2Smrg# End: 1421