config.guess revision 2becc446
12c7c4e3dSmrg#! /bin/sh 22c7c4e3dSmrg# Attempt to guess a canonical system name. 32becc446Smrg# Copyright 1992-2014 Free Software Foundation, Inc. 42c7c4e3dSmrg 52becc446Smrgtimestamp='2014-11-04' 62c7c4e3dSmrg 72c7c4e3dSmrg# This file is free software; you can redistribute it and/or modify it 82c7c4e3dSmrg# under the terms of the GNU General Public License as published by 92becc446Smrg# the Free Software Foundation; either version 3 of the License, or 102c7c4e3dSmrg# (at your option) any later version. 112c7c4e3dSmrg# 122c7c4e3dSmrg# This program is distributed in the hope that it will be useful, but 132c7c4e3dSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 142c7c4e3dSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 152c7c4e3dSmrg# General Public License for more details. 162c7c4e3dSmrg# 172c7c4e3dSmrg# You should have received a copy of the GNU General Public License 182becc446Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 192c7c4e3dSmrg# 202c7c4e3dSmrg# As a special exception to the GNU General Public License, if you 212c7c4e3dSmrg# distribute this file as part of a program that contains a 222c7c4e3dSmrg# configuration script generated by Autoconf, you may include it under 232becc446Smrg# the same distribution terms that you use for the rest of that 242becc446Smrg# program. This Exception is an additional permission under section 7 252becc446Smrg# of the GNU General Public License, version 3 ("GPLv3"). 262c7c4e3dSmrg# 272becc446Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 282c7c4e3dSmrg# 2916d7e2f1Smrg# You can get the latest version of this script from: 3016d7e2f1Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 312becc446Smrg# 322becc446Smrg# Please send patches to <config-patches@gnu.org>. 332becc446Smrg 342c7c4e3dSmrg 352c7c4e3dSmrgme=`echo "$0" | sed -e 's,.*/,,'` 362c7c4e3dSmrg 372c7c4e3dSmrgusage="\ 382c7c4e3dSmrgUsage: $0 [OPTION] 392c7c4e3dSmrg 402c7c4e3dSmrgOutput the configuration name of the system \`$me' is run on. 412c7c4e3dSmrg 422c7c4e3dSmrgOperation modes: 432c7c4e3dSmrg -h, --help print this help, then exit 442c7c4e3dSmrg -t, --time-stamp print date of last modification, then exit 452c7c4e3dSmrg -v, --version print version number, then exit 462c7c4e3dSmrg 472c7c4e3dSmrgReport bugs and patches to <config-patches@gnu.org>." 482c7c4e3dSmrg 492c7c4e3dSmrgversion="\ 502c7c4e3dSmrgGNU config.guess ($timestamp) 512c7c4e3dSmrg 522c7c4e3dSmrgOriginally written by Per Bothner. 532becc446SmrgCopyright 1992-2014 Free Software Foundation, Inc. 542c7c4e3dSmrg 552c7c4e3dSmrgThis is free software; see the source for copying conditions. There is NO 562c7c4e3dSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 572c7c4e3dSmrg 582c7c4e3dSmrghelp=" 592c7c4e3dSmrgTry \`$me --help' for more information." 602c7c4e3dSmrg 612c7c4e3dSmrg# Parse command line 622c7c4e3dSmrgwhile test $# -gt 0 ; do 632c7c4e3dSmrg case $1 in 642c7c4e3dSmrg --time-stamp | --time* | -t ) 658650bb69Smrg echo "$timestamp" ; exit ;; 662c7c4e3dSmrg --version | -v ) 678650bb69Smrg echo "$version" ; exit ;; 682c7c4e3dSmrg --help | --h* | -h ) 698650bb69Smrg echo "$usage"; exit ;; 702c7c4e3dSmrg -- ) # Stop option processing 712c7c4e3dSmrg shift; break ;; 722c7c4e3dSmrg - ) # Use stdin as input. 732c7c4e3dSmrg break ;; 742c7c4e3dSmrg -* ) 752c7c4e3dSmrg echo "$me: invalid option $1$help" >&2 762c7c4e3dSmrg exit 1 ;; 772c7c4e3dSmrg * ) 782c7c4e3dSmrg break ;; 792c7c4e3dSmrg esac 802c7c4e3dSmrgdone 812c7c4e3dSmrg 822c7c4e3dSmrgif test $# != 0; then 832c7c4e3dSmrg echo "$me: too many arguments$help" >&2 842c7c4e3dSmrg exit 1 852c7c4e3dSmrgfi 862c7c4e3dSmrg 872becc446Smrgtrap 'exit 1' 1 2 15 882c7c4e3dSmrg 892c7c4e3dSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 902c7c4e3dSmrg# compiler to aid in system detection is discouraged as it requires 912c7c4e3dSmrg# temporary files to be created and, as you can see below, it is a 922c7c4e3dSmrg# headache to deal with in a portable fashion. 932c7c4e3dSmrg 942c7c4e3dSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 952c7c4e3dSmrg# use `HOST_CC' if defined, but it is deprecated. 962c7c4e3dSmrg 972c7c4e3dSmrg# Portable tmp directory creation inspired by the Autoconf team. 982c7c4e3dSmrg 992c7c4e3dSmrgset_cc_for_build=' 1002c7c4e3dSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 1012becc446Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1022c7c4e3dSmrg: ${TMPDIR=/tmp} ; 1038650bb69Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1042c7c4e3dSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1052c7c4e3dSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1062c7c4e3dSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1072c7c4e3dSmrgdummy=$tmp/dummy ; 1082c7c4e3dSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1092c7c4e3dSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 1102c7c4e3dSmrg ,,) echo "int x;" > $dummy.c ; 1112c7c4e3dSmrg for c in cc gcc c89 c99 ; do 1122c7c4e3dSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 1132c7c4e3dSmrg CC_FOR_BUILD="$c"; break ; 1142c7c4e3dSmrg fi ; 1152c7c4e3dSmrg done ; 1162c7c4e3dSmrg if test x"$CC_FOR_BUILD" = x ; then 1172c7c4e3dSmrg CC_FOR_BUILD=no_compiler_found ; 1182c7c4e3dSmrg fi 1192c7c4e3dSmrg ;; 1202c7c4e3dSmrg ,,*) CC_FOR_BUILD=$CC ;; 1212c7c4e3dSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1228650bb69Smrgesac ; set_cc_for_build= ;' 1232c7c4e3dSmrg 1242c7c4e3dSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1252c7c4e3dSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 1262c7c4e3dSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1272c7c4e3dSmrg PATH=$PATH:/.attbin ; export PATH 1282c7c4e3dSmrgfi 1292c7c4e3dSmrg 1302c7c4e3dSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1312c7c4e3dSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1322c7c4e3dSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1332c7c4e3dSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1342c7c4e3dSmrg 1352becc446Smrgcase "${UNAME_SYSTEM}" in 1362becc446SmrgLinux|GNU|GNU/*) 1372becc446Smrg # If the system lacks a compiler, then just pick glibc. 1382becc446Smrg # We could probably try harder. 1392becc446Smrg LIBC=gnu 1402becc446Smrg 1412becc446Smrg eval $set_cc_for_build 1422becc446Smrg cat <<-EOF > $dummy.c 1432becc446Smrg #include <features.h> 1442becc446Smrg #if defined(__UCLIBC__) 1452becc446Smrg LIBC=uclibc 1462becc446Smrg #elif defined(__dietlibc__) 1472becc446Smrg LIBC=dietlibc 1482becc446Smrg #else 1492becc446Smrg LIBC=gnu 1502becc446Smrg #endif 1512becc446Smrg EOF 1522becc446Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 1532becc446Smrg ;; 1542becc446Smrgesac 1552becc446Smrg 1562c7c4e3dSmrg# Note: order is significant - the case branches are not exclusive. 1572c7c4e3dSmrg 1582c7c4e3dSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 1592c7c4e3dSmrg *:NetBSD:*:*) 1602c7c4e3dSmrg # NetBSD (nbsd) targets should (where applicable) match one or 1612becc446Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 1622c7c4e3dSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1632c7c4e3dSmrg # switched to ELF, *-*-netbsd* would select the old 1642c7c4e3dSmrg # object file format. This provides both forward 1652c7c4e3dSmrg # compatibility and a consistent mechanism for selecting the 1662c7c4e3dSmrg # object file format. 1672c7c4e3dSmrg # 1682c7c4e3dSmrg # Note: NetBSD doesn't particularly care about the vendor 1692c7c4e3dSmrg # portion of the name. We always set it to "unknown". 1702c7c4e3dSmrg sysctl="sysctl -n hw.machine_arch" 1712c7c4e3dSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 1722c7c4e3dSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 1732c7c4e3dSmrg case "${UNAME_MACHINE_ARCH}" in 1742c7c4e3dSmrg armeb) machine=armeb-unknown ;; 1752c7c4e3dSmrg arm*) machine=arm-unknown ;; 1762c7c4e3dSmrg sh3el) machine=shl-unknown ;; 1772c7c4e3dSmrg sh3eb) machine=sh-unknown ;; 1788650bb69Smrg sh5el) machine=sh5le-unknown ;; 1792c7c4e3dSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 1802c7c4e3dSmrg esac 1812c7c4e3dSmrg # The Operating System including object format, if it has switched 1822c7c4e3dSmrg # to ELF recently, or will in the future. 1832c7c4e3dSmrg case "${UNAME_MACHINE_ARCH}" in 1842c7c4e3dSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 1852c7c4e3dSmrg eval $set_cc_for_build 1862c7c4e3dSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 18716d7e2f1Smrg | grep -q __ELF__ 1882c7c4e3dSmrg then 1892c7c4e3dSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 1902c7c4e3dSmrg # Return netbsd for either. FIX? 1912c7c4e3dSmrg os=netbsd 1922c7c4e3dSmrg else 1932c7c4e3dSmrg os=netbsdelf 1942c7c4e3dSmrg fi 1952c7c4e3dSmrg ;; 1962c7c4e3dSmrg *) 1972becc446Smrg os=netbsd 1982c7c4e3dSmrg ;; 1992c7c4e3dSmrg esac 2002c7c4e3dSmrg # The OS release 2012c7c4e3dSmrg # Debian GNU/NetBSD machines have a different userland, and 2022c7c4e3dSmrg # thus, need a distinct triplet. However, they do not need 2032c7c4e3dSmrg # kernel version information, so it can be replaced with a 2042c7c4e3dSmrg # suitable tag, in the style of linux-gnu. 2052c7c4e3dSmrg case "${UNAME_VERSION}" in 2062c7c4e3dSmrg Debian*) 2072c7c4e3dSmrg release='-gnu' 2082c7c4e3dSmrg ;; 2092c7c4e3dSmrg *) 2102c7c4e3dSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 2112c7c4e3dSmrg ;; 2122c7c4e3dSmrg esac 2132c7c4e3dSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 2142c7c4e3dSmrg # contains redundant information, the shorter form: 2152c7c4e3dSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2162c7c4e3dSmrg echo "${machine}-${os}${release}" 2178650bb69Smrg exit ;; 2182becc446Smrg *:Bitrig:*:*) 2192becc446Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 2202becc446Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 2212becc446Smrg exit ;; 2222c7c4e3dSmrg *:OpenBSD:*:*) 2238650bb69Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 2248650bb69Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 2258650bb69Smrg exit ;; 2268650bb69Smrg *:ekkoBSD:*:*) 2278650bb69Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 2288650bb69Smrg exit ;; 2298650bb69Smrg *:SolidBSD:*:*) 2308650bb69Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 2318650bb69Smrg exit ;; 2328650bb69Smrg macppc:MirBSD:*:*) 2338650bb69Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 2348650bb69Smrg exit ;; 2358650bb69Smrg *:MirBSD:*:*) 2368650bb69Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 2378650bb69Smrg exit ;; 2382c7c4e3dSmrg alpha:OSF1:*:*) 2398650bb69Smrg case $UNAME_RELEASE in 2408650bb69Smrg *4.0) 2412c7c4e3dSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2428650bb69Smrg ;; 2438650bb69Smrg *5.*) 2442becc446Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2458650bb69Smrg ;; 2468650bb69Smrg esac 2472c7c4e3dSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 2482c7c4e3dSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2492c7c4e3dSmrg # covers most systems running today. This code pipes the CPU 2502c7c4e3dSmrg # types through head -n 1, so we only detect the type of CPU 0. 2512c7c4e3dSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2522c7c4e3dSmrg case "$ALPHA_CPU_TYPE" in 2532c7c4e3dSmrg "EV4 (21064)") 2542c7c4e3dSmrg UNAME_MACHINE="alpha" ;; 2552c7c4e3dSmrg "EV4.5 (21064)") 2562c7c4e3dSmrg UNAME_MACHINE="alpha" ;; 2572c7c4e3dSmrg "LCA4 (21066/21068)") 2582c7c4e3dSmrg UNAME_MACHINE="alpha" ;; 2592c7c4e3dSmrg "EV5 (21164)") 2602c7c4e3dSmrg UNAME_MACHINE="alphaev5" ;; 2612c7c4e3dSmrg "EV5.6 (21164A)") 2622c7c4e3dSmrg UNAME_MACHINE="alphaev56" ;; 2632c7c4e3dSmrg "EV5.6 (21164PC)") 2642c7c4e3dSmrg UNAME_MACHINE="alphapca56" ;; 2652c7c4e3dSmrg "EV5.7 (21164PC)") 2662c7c4e3dSmrg UNAME_MACHINE="alphapca57" ;; 2672c7c4e3dSmrg "EV6 (21264)") 2682c7c4e3dSmrg UNAME_MACHINE="alphaev6" ;; 2692c7c4e3dSmrg "EV6.7 (21264A)") 2702c7c4e3dSmrg UNAME_MACHINE="alphaev67" ;; 2712c7c4e3dSmrg "EV6.8CB (21264C)") 2722c7c4e3dSmrg UNAME_MACHINE="alphaev68" ;; 2732c7c4e3dSmrg "EV6.8AL (21264B)") 2742c7c4e3dSmrg UNAME_MACHINE="alphaev68" ;; 2752c7c4e3dSmrg "EV6.8CX (21264D)") 2762c7c4e3dSmrg UNAME_MACHINE="alphaev68" ;; 2772c7c4e3dSmrg "EV6.9A (21264/EV69A)") 2782c7c4e3dSmrg UNAME_MACHINE="alphaev69" ;; 2792c7c4e3dSmrg "EV7 (21364)") 2802c7c4e3dSmrg UNAME_MACHINE="alphaev7" ;; 2812c7c4e3dSmrg "EV7.9 (21364A)") 2822c7c4e3dSmrg UNAME_MACHINE="alphaev79" ;; 2832c7c4e3dSmrg esac 2848650bb69Smrg # A Pn.n version is a patched version. 2852c7c4e3dSmrg # A Vn.n version is a released version. 2862c7c4e3dSmrg # A Tn.n version is a released field test version. 2872c7c4e3dSmrg # A Xn.n version is an unreleased experimental baselevel. 2882c7c4e3dSmrg # 1.2 uses "1.2" for uname -r. 2898650bb69Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 2902becc446Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 2912becc446Smrg exitcode=$? 2922becc446Smrg trap '' 0 2932becc446Smrg exit $exitcode ;; 2942c7c4e3dSmrg Alpha\ *:Windows_NT*:*) 2952c7c4e3dSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 2962c7c4e3dSmrg # Should we change UNAME_MACHINE based on the output of uname instead 2972c7c4e3dSmrg # of the specific Alpha model? 2982c7c4e3dSmrg echo alpha-pc-interix 2998650bb69Smrg exit ;; 3002c7c4e3dSmrg 21064:Windows_NT:50:3) 3012c7c4e3dSmrg echo alpha-dec-winnt3.5 3028650bb69Smrg exit ;; 3032c7c4e3dSmrg Amiga*:UNIX_System_V:4.0:*) 3042c7c4e3dSmrg echo m68k-unknown-sysv4 3058650bb69Smrg exit ;; 3062c7c4e3dSmrg *:[Aa]miga[Oo][Ss]:*:*) 3072c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-amigaos 3088650bb69Smrg exit ;; 3092c7c4e3dSmrg *:[Mm]orph[Oo][Ss]:*:*) 3102c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-morphos 3118650bb69Smrg exit ;; 3122c7c4e3dSmrg *:OS/390:*:*) 3132c7c4e3dSmrg echo i370-ibm-openedition 3148650bb69Smrg exit ;; 3158650bb69Smrg *:z/VM:*:*) 3168650bb69Smrg echo s390-ibm-zvmoe 3178650bb69Smrg exit ;; 3188650bb69Smrg *:OS400:*:*) 3192becc446Smrg echo powerpc-ibm-os400 3208650bb69Smrg exit ;; 3212c7c4e3dSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 3222c7c4e3dSmrg echo arm-acorn-riscix${UNAME_RELEASE} 3238650bb69Smrg exit ;; 3242becc446Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 3258650bb69Smrg echo arm-unknown-riscos 3268650bb69Smrg exit ;; 3272c7c4e3dSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3282c7c4e3dSmrg echo hppa1.1-hitachi-hiuxmpp 3298650bb69Smrg exit ;; 3302c7c4e3dSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3312c7c4e3dSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3322c7c4e3dSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3332c7c4e3dSmrg echo pyramid-pyramid-sysv3 3342c7c4e3dSmrg else 3352c7c4e3dSmrg echo pyramid-pyramid-bsd 3362c7c4e3dSmrg fi 3378650bb69Smrg exit ;; 3382c7c4e3dSmrg NILE*:*:*:dcosx) 3392c7c4e3dSmrg echo pyramid-pyramid-svr4 3408650bb69Smrg exit ;; 3412c7c4e3dSmrg DRS?6000:unix:4.0:6*) 3422c7c4e3dSmrg echo sparc-icl-nx6 3438650bb69Smrg exit ;; 3448650bb69Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3452c7c4e3dSmrg case `/usr/bin/uname -p` in 3468650bb69Smrg sparc) echo sparc-icl-nx7; exit ;; 3472c7c4e3dSmrg esac ;; 3488650bb69Smrg s390x:SunOS:*:*) 3498650bb69Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3508650bb69Smrg exit ;; 3512c7c4e3dSmrg sun4H:SunOS:5.*:*) 3522c7c4e3dSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3538650bb69Smrg exit ;; 3542c7c4e3dSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 3552c7c4e3dSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3568650bb69Smrg exit ;; 35716d7e2f1Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 35816d7e2f1Smrg echo i386-pc-auroraux${UNAME_RELEASE} 35916d7e2f1Smrg exit ;; 3608650bb69Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 3618650bb69Smrg eval $set_cc_for_build 3628650bb69Smrg SUN_ARCH="i386" 3638650bb69Smrg # If there is a compiler, see if it is configured for 64-bit objects. 3648650bb69Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 3658650bb69Smrg # This test works for both compilers. 3668650bb69Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 3678650bb69Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 3688650bb69Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 3698650bb69Smrg grep IS_64BIT_ARCH >/dev/null 3708650bb69Smrg then 3718650bb69Smrg SUN_ARCH="x86_64" 3728650bb69Smrg fi 3738650bb69Smrg fi 3748650bb69Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3758650bb69Smrg exit ;; 3762c7c4e3dSmrg sun4*:SunOS:6*:*) 3772c7c4e3dSmrg # According to config.sub, this is the proper way to canonicalize 3782c7c4e3dSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 3792c7c4e3dSmrg # it's likely to be more like Solaris than SunOS4. 3802c7c4e3dSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3818650bb69Smrg exit ;; 3822c7c4e3dSmrg sun4*:SunOS:*:*) 3832c7c4e3dSmrg case "`/usr/bin/arch -k`" in 3842c7c4e3dSmrg Series*|S4*) 3852c7c4e3dSmrg UNAME_RELEASE=`uname -v` 3862c7c4e3dSmrg ;; 3872c7c4e3dSmrg esac 3882c7c4e3dSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 3892c7c4e3dSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 3908650bb69Smrg exit ;; 3912c7c4e3dSmrg sun3*:SunOS:*:*) 3922c7c4e3dSmrg echo m68k-sun-sunos${UNAME_RELEASE} 3938650bb69Smrg exit ;; 3942c7c4e3dSmrg sun*:*:4.2BSD:*) 3952c7c4e3dSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 3962c7c4e3dSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 3972c7c4e3dSmrg case "`/bin/arch`" in 3982c7c4e3dSmrg sun3) 3992c7c4e3dSmrg echo m68k-sun-sunos${UNAME_RELEASE} 4002c7c4e3dSmrg ;; 4012c7c4e3dSmrg sun4) 4022c7c4e3dSmrg echo sparc-sun-sunos${UNAME_RELEASE} 4032c7c4e3dSmrg ;; 4042c7c4e3dSmrg esac 4058650bb69Smrg exit ;; 4062c7c4e3dSmrg aushp:SunOS:*:*) 4072c7c4e3dSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 4088650bb69Smrg exit ;; 4092c7c4e3dSmrg # The situation for MiNT is a little confusing. The machine name 4102c7c4e3dSmrg # can be virtually everything (everything which is not 4112c7c4e3dSmrg # "atarist" or "atariste" at least should have a processor 4122c7c4e3dSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 4132c7c4e3dSmrg # to the lowercase version "mint" (or "freemint"). Finally 4142c7c4e3dSmrg # the system name "TOS" denotes a system which is actually not 4152c7c4e3dSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 4162c7c4e3dSmrg # be no problem. 4172c7c4e3dSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 4182becc446Smrg echo m68k-atari-mint${UNAME_RELEASE} 4198650bb69Smrg exit ;; 4202c7c4e3dSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 4212c7c4e3dSmrg echo m68k-atari-mint${UNAME_RELEASE} 4222becc446Smrg exit ;; 4232c7c4e3dSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 4242becc446Smrg echo m68k-atari-mint${UNAME_RELEASE} 4258650bb69Smrg exit ;; 4262c7c4e3dSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 4272becc446Smrg echo m68k-milan-mint${UNAME_RELEASE} 4282becc446Smrg exit ;; 4292c7c4e3dSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 4302becc446Smrg echo m68k-hades-mint${UNAME_RELEASE} 4312becc446Smrg exit ;; 4322c7c4e3dSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 4332becc446Smrg echo m68k-unknown-mint${UNAME_RELEASE} 4342becc446Smrg exit ;; 4358650bb69Smrg m68k:machten:*:*) 4368650bb69Smrg echo m68k-apple-machten${UNAME_RELEASE} 4378650bb69Smrg exit ;; 4382c7c4e3dSmrg powerpc:machten:*:*) 4392c7c4e3dSmrg echo powerpc-apple-machten${UNAME_RELEASE} 4408650bb69Smrg exit ;; 4412c7c4e3dSmrg RISC*:Mach:*:*) 4422c7c4e3dSmrg echo mips-dec-mach_bsd4.3 4438650bb69Smrg exit ;; 4442c7c4e3dSmrg RISC*:ULTRIX:*:*) 4452c7c4e3dSmrg echo mips-dec-ultrix${UNAME_RELEASE} 4468650bb69Smrg exit ;; 4472c7c4e3dSmrg VAX*:ULTRIX*:*:*) 4482c7c4e3dSmrg echo vax-dec-ultrix${UNAME_RELEASE} 4498650bb69Smrg exit ;; 4502c7c4e3dSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 4512c7c4e3dSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 4528650bb69Smrg exit ;; 4532c7c4e3dSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 4542c7c4e3dSmrg eval $set_cc_for_build 4552c7c4e3dSmrg sed 's/^ //' << EOF >$dummy.c 4562c7c4e3dSmrg#ifdef __cplusplus 4572c7c4e3dSmrg#include <stdio.h> /* for printf() prototype */ 4582c7c4e3dSmrg int main (int argc, char *argv[]) { 4592c7c4e3dSmrg#else 4602c7c4e3dSmrg int main (argc, argv) int argc; char *argv[]; { 4612c7c4e3dSmrg#endif 4622c7c4e3dSmrg #if defined (host_mips) && defined (MIPSEB) 4632c7c4e3dSmrg #if defined (SYSTYPE_SYSV) 4642c7c4e3dSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 4652c7c4e3dSmrg #endif 4662c7c4e3dSmrg #if defined (SYSTYPE_SVR4) 4672c7c4e3dSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 4682c7c4e3dSmrg #endif 4692c7c4e3dSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 4702c7c4e3dSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 4712c7c4e3dSmrg #endif 4722c7c4e3dSmrg #endif 4732c7c4e3dSmrg exit (-1); 4742c7c4e3dSmrg } 4752c7c4e3dSmrgEOF 4768650bb69Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 4778650bb69Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 4788650bb69Smrg SYSTEM_NAME=`$dummy $dummyarg` && 4798650bb69Smrg { echo "$SYSTEM_NAME"; exit; } 4802c7c4e3dSmrg echo mips-mips-riscos${UNAME_RELEASE} 4818650bb69Smrg exit ;; 4822c7c4e3dSmrg Motorola:PowerMAX_OS:*:*) 4832c7c4e3dSmrg echo powerpc-motorola-powermax 4848650bb69Smrg exit ;; 4852c7c4e3dSmrg Motorola:*:4.3:PL8-*) 4862c7c4e3dSmrg echo powerpc-harris-powermax 4878650bb69Smrg exit ;; 4882c7c4e3dSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 4892c7c4e3dSmrg echo powerpc-harris-powermax 4908650bb69Smrg exit ;; 4912c7c4e3dSmrg Night_Hawk:Power_UNIX:*:*) 4922c7c4e3dSmrg echo powerpc-harris-powerunix 4938650bb69Smrg exit ;; 4942c7c4e3dSmrg m88k:CX/UX:7*:*) 4952c7c4e3dSmrg echo m88k-harris-cxux7 4968650bb69Smrg exit ;; 4972c7c4e3dSmrg m88k:*:4*:R4*) 4982c7c4e3dSmrg echo m88k-motorola-sysv4 4998650bb69Smrg exit ;; 5002c7c4e3dSmrg m88k:*:3*:R3*) 5012c7c4e3dSmrg echo m88k-motorola-sysv3 5028650bb69Smrg exit ;; 5032c7c4e3dSmrg AViiON:dgux:*:*) 5042becc446Smrg # DG/UX returns AViiON for all architectures 5052becc446Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 5062c7c4e3dSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 5072c7c4e3dSmrg then 5082c7c4e3dSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 5092c7c4e3dSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 5102c7c4e3dSmrg then 5112c7c4e3dSmrg echo m88k-dg-dgux${UNAME_RELEASE} 5122c7c4e3dSmrg else 5132c7c4e3dSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 5142c7c4e3dSmrg fi 5152c7c4e3dSmrg else 5162c7c4e3dSmrg echo i586-dg-dgux${UNAME_RELEASE} 5172c7c4e3dSmrg fi 5182becc446Smrg exit ;; 5192c7c4e3dSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 5202c7c4e3dSmrg echo m88k-dolphin-sysv3 5218650bb69Smrg exit ;; 5222c7c4e3dSmrg M88*:*:R3*:*) 5232c7c4e3dSmrg # Delta 88k system running SVR3 5242c7c4e3dSmrg echo m88k-motorola-sysv3 5258650bb69Smrg exit ;; 5262c7c4e3dSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 5272c7c4e3dSmrg echo m88k-tektronix-sysv3 5288650bb69Smrg exit ;; 5292c7c4e3dSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 5302c7c4e3dSmrg echo m68k-tektronix-bsd 5318650bb69Smrg exit ;; 5322c7c4e3dSmrg *:IRIX*:*:*) 5332c7c4e3dSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 5348650bb69Smrg exit ;; 5352c7c4e3dSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 5368650bb69Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 5378650bb69Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 5382c7c4e3dSmrg i*86:AIX:*:*) 5392c7c4e3dSmrg echo i386-ibm-aix 5408650bb69Smrg exit ;; 5412c7c4e3dSmrg ia64:AIX:*:*) 5422c7c4e3dSmrg if [ -x /usr/bin/oslevel ] ; then 5432c7c4e3dSmrg IBM_REV=`/usr/bin/oslevel` 5442c7c4e3dSmrg else 5452c7c4e3dSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5462c7c4e3dSmrg fi 5472c7c4e3dSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 5488650bb69Smrg exit ;; 5492c7c4e3dSmrg *:AIX:2:3) 5502c7c4e3dSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 5512c7c4e3dSmrg eval $set_cc_for_build 5522c7c4e3dSmrg sed 's/^ //' << EOF >$dummy.c 5532c7c4e3dSmrg #include <sys/systemcfg.h> 5542c7c4e3dSmrg 5552c7c4e3dSmrg main() 5562c7c4e3dSmrg { 5572c7c4e3dSmrg if (!__power_pc()) 5582c7c4e3dSmrg exit(1); 5592c7c4e3dSmrg puts("powerpc-ibm-aix3.2.5"); 5602c7c4e3dSmrg exit(0); 5612c7c4e3dSmrg } 5622c7c4e3dSmrgEOF 5638650bb69Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 5648650bb69Smrg then 5658650bb69Smrg echo "$SYSTEM_NAME" 5668650bb69Smrg else 5678650bb69Smrg echo rs6000-ibm-aix3.2.5 5688650bb69Smrg fi 5692c7c4e3dSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 5702c7c4e3dSmrg echo rs6000-ibm-aix3.2.4 5712c7c4e3dSmrg else 5722c7c4e3dSmrg echo rs6000-ibm-aix3.2 5732c7c4e3dSmrg fi 5748650bb69Smrg exit ;; 57516d7e2f1Smrg *:AIX:*:[4567]) 5762c7c4e3dSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 5772c7c4e3dSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 5782c7c4e3dSmrg IBM_ARCH=rs6000 5792c7c4e3dSmrg else 5802c7c4e3dSmrg IBM_ARCH=powerpc 5812c7c4e3dSmrg fi 5822becc446Smrg if [ -x /usr/bin/lslpp ] ; then 5832becc446Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 5842becc446Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 5852c7c4e3dSmrg else 5862c7c4e3dSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5872c7c4e3dSmrg fi 5882c7c4e3dSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 5898650bb69Smrg exit ;; 5902c7c4e3dSmrg *:AIX:*:*) 5912c7c4e3dSmrg echo rs6000-ibm-aix 5928650bb69Smrg exit ;; 5932c7c4e3dSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 5942c7c4e3dSmrg echo romp-ibm-bsd4.4 5958650bb69Smrg exit ;; 5962c7c4e3dSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 5972c7c4e3dSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 5988650bb69Smrg exit ;; # report: romp-ibm BSD 4.3 5992c7c4e3dSmrg *:BOSX:*:*) 6002c7c4e3dSmrg echo rs6000-bull-bosx 6018650bb69Smrg exit ;; 6022c7c4e3dSmrg DPX/2?00:B.O.S.:*:*) 6032c7c4e3dSmrg echo m68k-bull-sysv3 6048650bb69Smrg exit ;; 6052c7c4e3dSmrg 9000/[34]??:4.3bsd:1.*:*) 6062c7c4e3dSmrg echo m68k-hp-bsd 6078650bb69Smrg exit ;; 6082c7c4e3dSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 6092c7c4e3dSmrg echo m68k-hp-bsd4.4 6108650bb69Smrg exit ;; 6112c7c4e3dSmrg 9000/[34678]??:HP-UX:*:*) 6122c7c4e3dSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6132c7c4e3dSmrg case "${UNAME_MACHINE}" in 6142c7c4e3dSmrg 9000/31? ) HP_ARCH=m68000 ;; 6152c7c4e3dSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 6162c7c4e3dSmrg 9000/[678][0-9][0-9]) 6172c7c4e3dSmrg if [ -x /usr/bin/getconf ]; then 6182c7c4e3dSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 6192becc446Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 6202becc446Smrg case "${sc_cpu_version}" in 6212becc446Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 6222becc446Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 6232becc446Smrg 532) # CPU_PA_RISC2_0 6242becc446Smrg case "${sc_kernel_bits}" in 6252becc446Smrg 32) HP_ARCH="hppa2.0n" ;; 6262becc446Smrg 64) HP_ARCH="hppa2.0w" ;; 6272c7c4e3dSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 6282becc446Smrg esac ;; 6292becc446Smrg esac 6302c7c4e3dSmrg fi 6312c7c4e3dSmrg if [ "${HP_ARCH}" = "" ]; then 6322c7c4e3dSmrg eval $set_cc_for_build 6332becc446Smrg sed 's/^ //' << EOF >$dummy.c 6342c7c4e3dSmrg 6352becc446Smrg #define _HPUX_SOURCE 6362becc446Smrg #include <stdlib.h> 6372becc446Smrg #include <unistd.h> 6382c7c4e3dSmrg 6392becc446Smrg int main () 6402becc446Smrg { 6412becc446Smrg #if defined(_SC_KERNEL_BITS) 6422becc446Smrg long bits = sysconf(_SC_KERNEL_BITS); 6432becc446Smrg #endif 6442becc446Smrg long cpu = sysconf (_SC_CPU_VERSION); 6452c7c4e3dSmrg 6462becc446Smrg switch (cpu) 6472becc446Smrg { 6482becc446Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 6492becc446Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 6502becc446Smrg case CPU_PA_RISC2_0: 6512becc446Smrg #if defined(_SC_KERNEL_BITS) 6522becc446Smrg switch (bits) 6532becc446Smrg { 6542becc446Smrg case 64: puts ("hppa2.0w"); break; 6552becc446Smrg case 32: puts ("hppa2.0n"); break; 6562becc446Smrg default: puts ("hppa2.0"); break; 6572becc446Smrg } break; 6582becc446Smrg #else /* !defined(_SC_KERNEL_BITS) */ 6592becc446Smrg puts ("hppa2.0"); break; 6602becc446Smrg #endif 6612becc446Smrg default: puts ("hppa1.0"); break; 6622becc446Smrg } 6632becc446Smrg exit (0); 6642becc446Smrg } 6652c7c4e3dSmrgEOF 6662c7c4e3dSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 6672c7c4e3dSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 6682c7c4e3dSmrg fi ;; 6692c7c4e3dSmrg esac 6702c7c4e3dSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 6712c7c4e3dSmrg then 6728650bb69Smrg eval $set_cc_for_build 6738650bb69Smrg 6748650bb69Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 6758650bb69Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 6768650bb69Smrg # generating 64-bit code. GNU and HP use different nomenclature: 6778650bb69Smrg # 6788650bb69Smrg # $ CC_FOR_BUILD=cc ./config.guess 6798650bb69Smrg # => hppa2.0w-hp-hpux11.23 6808650bb69Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 6818650bb69Smrg # => hppa64-hp-hpux11.23 6828650bb69Smrg 6838650bb69Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 68416d7e2f1Smrg grep -q __LP64__ 6852c7c4e3dSmrg then 6862c7c4e3dSmrg HP_ARCH="hppa2.0w" 6872c7c4e3dSmrg else 6882c7c4e3dSmrg HP_ARCH="hppa64" 6892c7c4e3dSmrg fi 6902c7c4e3dSmrg fi 6912c7c4e3dSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 6928650bb69Smrg exit ;; 6932c7c4e3dSmrg ia64:HP-UX:*:*) 6942c7c4e3dSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6952c7c4e3dSmrg echo ia64-hp-hpux${HPUX_REV} 6968650bb69Smrg exit ;; 6972c7c4e3dSmrg 3050*:HI-UX:*:*) 6982c7c4e3dSmrg eval $set_cc_for_build 6992c7c4e3dSmrg sed 's/^ //' << EOF >$dummy.c 7002c7c4e3dSmrg #include <unistd.h> 7012c7c4e3dSmrg int 7022c7c4e3dSmrg main () 7032c7c4e3dSmrg { 7042c7c4e3dSmrg long cpu = sysconf (_SC_CPU_VERSION); 7052c7c4e3dSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 7062c7c4e3dSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 7072c7c4e3dSmrg results, however. */ 7082c7c4e3dSmrg if (CPU_IS_PA_RISC (cpu)) 7092c7c4e3dSmrg { 7102c7c4e3dSmrg switch (cpu) 7112c7c4e3dSmrg { 7122c7c4e3dSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 7132c7c4e3dSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 7142c7c4e3dSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 7152c7c4e3dSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 7162c7c4e3dSmrg } 7172c7c4e3dSmrg } 7182c7c4e3dSmrg else if (CPU_IS_HP_MC68K (cpu)) 7192c7c4e3dSmrg puts ("m68k-hitachi-hiuxwe2"); 7202c7c4e3dSmrg else puts ("unknown-hitachi-hiuxwe2"); 7212c7c4e3dSmrg exit (0); 7222c7c4e3dSmrg } 7232c7c4e3dSmrgEOF 7248650bb69Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 7258650bb69Smrg { echo "$SYSTEM_NAME"; exit; } 7262c7c4e3dSmrg echo unknown-hitachi-hiuxwe2 7278650bb69Smrg exit ;; 7282c7c4e3dSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 7292c7c4e3dSmrg echo hppa1.1-hp-bsd 7308650bb69Smrg exit ;; 7312c7c4e3dSmrg 9000/8??:4.3bsd:*:*) 7322c7c4e3dSmrg echo hppa1.0-hp-bsd 7338650bb69Smrg exit ;; 7342c7c4e3dSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 7352c7c4e3dSmrg echo hppa1.0-hp-mpeix 7368650bb69Smrg exit ;; 7372c7c4e3dSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 7382c7c4e3dSmrg echo hppa1.1-hp-osf 7398650bb69Smrg exit ;; 7402c7c4e3dSmrg hp8??:OSF1:*:*) 7412c7c4e3dSmrg echo hppa1.0-hp-osf 7428650bb69Smrg exit ;; 7432c7c4e3dSmrg i*86:OSF1:*:*) 7442c7c4e3dSmrg if [ -x /usr/sbin/sysversion ] ; then 7452c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 7462c7c4e3dSmrg else 7472c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-osf1 7482c7c4e3dSmrg fi 7498650bb69Smrg exit ;; 7502c7c4e3dSmrg parisc*:Lites*:*:*) 7512c7c4e3dSmrg echo hppa1.1-hp-lites 7528650bb69Smrg exit ;; 7532c7c4e3dSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7542c7c4e3dSmrg echo c1-convex-bsd 7552becc446Smrg exit ;; 7562c7c4e3dSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7572c7c4e3dSmrg if getsysinfo -f scalar_acc 7582c7c4e3dSmrg then echo c32-convex-bsd 7592c7c4e3dSmrg else echo c2-convex-bsd 7602c7c4e3dSmrg fi 7612becc446Smrg exit ;; 7622c7c4e3dSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7632c7c4e3dSmrg echo c34-convex-bsd 7642becc446Smrg exit ;; 7652c7c4e3dSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7662c7c4e3dSmrg echo c38-convex-bsd 7672becc446Smrg exit ;; 7682c7c4e3dSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 7692c7c4e3dSmrg echo c4-convex-bsd 7702becc446Smrg exit ;; 7712c7c4e3dSmrg CRAY*Y-MP:*:*:*) 7722c7c4e3dSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7738650bb69Smrg exit ;; 7742c7c4e3dSmrg CRAY*[A-Z]90:*:*:*) 7752c7c4e3dSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 7762c7c4e3dSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 7772c7c4e3dSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 7782c7c4e3dSmrg -e 's/\.[^.]*$/.X/' 7798650bb69Smrg exit ;; 7802c7c4e3dSmrg CRAY*TS:*:*:*) 7812c7c4e3dSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7828650bb69Smrg exit ;; 7832c7c4e3dSmrg CRAY*T3E:*:*:*) 7842c7c4e3dSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7858650bb69Smrg exit ;; 7862c7c4e3dSmrg CRAY*SV1:*:*:*) 7872c7c4e3dSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7888650bb69Smrg exit ;; 7892c7c4e3dSmrg *:UNICOS/mp:*:*) 7908650bb69Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7918650bb69Smrg exit ;; 7922c7c4e3dSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 7932c7c4e3dSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7942becc446Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7952becc446Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 7962becc446Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7972becc446Smrg exit ;; 7988650bb69Smrg 5000:UNIX_System_V:4.*:*) 7992becc446Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 8002becc446Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 8012becc446Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 8028650bb69Smrg exit ;; 8032c7c4e3dSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 8042c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 8058650bb69Smrg exit ;; 8062c7c4e3dSmrg sparc*:BSD/OS:*:*) 8072c7c4e3dSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 8088650bb69Smrg exit ;; 8092c7c4e3dSmrg *:BSD/OS:*:*) 8102c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 8118650bb69Smrg exit ;; 8128650bb69Smrg *:FreeBSD:*:*) 8132becc446Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 8142becc446Smrg case ${UNAME_PROCESSOR} in 8158650bb69Smrg amd64) 8168650bb69Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8178650bb69Smrg *) 8182becc446Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8198650bb69Smrg esac 8208650bb69Smrg exit ;; 8212c7c4e3dSmrg i*:CYGWIN*:*) 8222c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-cygwin 8238650bb69Smrg exit ;; 8242becc446Smrg *:MINGW64*:*) 8252becc446Smrg echo ${UNAME_MACHINE}-pc-mingw64 8262becc446Smrg exit ;; 8278650bb69Smrg *:MINGW*:*) 8282c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-mingw32 8298650bb69Smrg exit ;; 8302becc446Smrg *:MSYS*:*) 8312becc446Smrg echo ${UNAME_MACHINE}-pc-msys 8322becc446Smrg exit ;; 8338650bb69Smrg i*:windows32*:*) 8342becc446Smrg # uname -m includes "-pc" on this system. 8352becc446Smrg echo ${UNAME_MACHINE}-mingw32 8368650bb69Smrg exit ;; 8372c7c4e3dSmrg i*:PW*:*) 8382c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-pw32 8398650bb69Smrg exit ;; 84016d7e2f1Smrg *:Interix*:*) 8412becc446Smrg case ${UNAME_MACHINE} in 8428650bb69Smrg x86) 8438650bb69Smrg echo i586-pc-interix${UNAME_RELEASE} 8448650bb69Smrg exit ;; 84516d7e2f1Smrg authenticamd | genuineintel | EM64T) 8468650bb69Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 8478650bb69Smrg exit ;; 8488650bb69Smrg IA64) 8498650bb69Smrg echo ia64-unknown-interix${UNAME_RELEASE} 8508650bb69Smrg exit ;; 8518650bb69Smrg esac ;; 8522c7c4e3dSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 8532c7c4e3dSmrg echo i${UNAME_MACHINE}-pc-mks 8548650bb69Smrg exit ;; 85516d7e2f1Smrg 8664:Windows_NT:*) 85616d7e2f1Smrg echo x86_64-pc-mks 85716d7e2f1Smrg exit ;; 8582c7c4e3dSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 8592c7c4e3dSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 8602c7c4e3dSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 8612c7c4e3dSmrg # UNAME_MACHINE based on the output of uname instead of i386? 8622c7c4e3dSmrg echo i586-pc-interix 8638650bb69Smrg exit ;; 8642c7c4e3dSmrg i*:UWIN*:*) 8652c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-uwin 8668650bb69Smrg exit ;; 8678650bb69Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8688650bb69Smrg echo x86_64-unknown-cygwin 8698650bb69Smrg exit ;; 8702c7c4e3dSmrg p*:CYGWIN*:*) 8712c7c4e3dSmrg echo powerpcle-unknown-cygwin 8728650bb69Smrg exit ;; 8732c7c4e3dSmrg prep*:SunOS:5.*:*) 8742c7c4e3dSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 8758650bb69Smrg exit ;; 8762c7c4e3dSmrg *:GNU:*:*) 8778650bb69Smrg # the GNU system 8782becc446Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 8798650bb69Smrg exit ;; 8808650bb69Smrg *:GNU/*:*:*) 8818650bb69Smrg # other systems with GNU libc and userland 8822becc446Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 8838650bb69Smrg exit ;; 8842c7c4e3dSmrg i*86:Minix:*:*) 8852c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-minix 8868650bb69Smrg exit ;; 8872becc446Smrg aarch64:Linux:*:*) 8882becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 8892becc446Smrg exit ;; 8902becc446Smrg aarch64_be:Linux:*:*) 8912becc446Smrg UNAME_MACHINE=aarch64_be 8922becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 8932becc446Smrg exit ;; 89416d7e2f1Smrg alpha:Linux:*:*) 89516d7e2f1Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 89616d7e2f1Smrg EV5) UNAME_MACHINE=alphaev5 ;; 89716d7e2f1Smrg EV56) UNAME_MACHINE=alphaev56 ;; 89816d7e2f1Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 89916d7e2f1Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 90016d7e2f1Smrg EV6) UNAME_MACHINE=alphaev6 ;; 90116d7e2f1Smrg EV67) UNAME_MACHINE=alphaev67 ;; 90216d7e2f1Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 9032becc446Smrg esac 90416d7e2f1Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 9052becc446Smrg if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 9062becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9072becc446Smrg exit ;; 9082becc446Smrg arc:Linux:*:* | arceb:Linux:*:*) 9092becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 91016d7e2f1Smrg exit ;; 9112c7c4e3dSmrg arm*:Linux:*:*) 9128650bb69Smrg eval $set_cc_for_build 9138650bb69Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 9148650bb69Smrg | grep -q __ARM_EABI__ 9158650bb69Smrg then 9162becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9178650bb69Smrg else 9182becc446Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 9192becc446Smrg | grep -q __ARM_PCS_VFP 9202becc446Smrg then 9212becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 9222becc446Smrg else 9232becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 9242becc446Smrg fi 9258650bb69Smrg fi 9268650bb69Smrg exit ;; 9278650bb69Smrg avr32*:Linux:*:*) 9282becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9298650bb69Smrg exit ;; 9302c7c4e3dSmrg cris:Linux:*:*) 9312becc446Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9328650bb69Smrg exit ;; 9338650bb69Smrg crisv32:Linux:*:*) 9342becc446Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9358650bb69Smrg exit ;; 9368650bb69Smrg frv:Linux:*:*) 9372becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9382becc446Smrg exit ;; 9392becc446Smrg hexagon:Linux:*:*) 9402becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9418650bb69Smrg exit ;; 94216d7e2f1Smrg i*86:Linux:*:*) 9432becc446Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 94416d7e2f1Smrg exit ;; 9452c7c4e3dSmrg ia64:Linux:*:*) 9462becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9478650bb69Smrg exit ;; 9488650bb69Smrg m32r*:Linux:*:*) 9492becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9508650bb69Smrg exit ;; 9512c7c4e3dSmrg m68*:Linux:*:*) 9522becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9538650bb69Smrg exit ;; 95416d7e2f1Smrg mips:Linux:*:* | mips64:Linux:*:*) 9552c7c4e3dSmrg eval $set_cc_for_build 9562c7c4e3dSmrg sed 's/^ //' << EOF >$dummy.c 9572c7c4e3dSmrg #undef CPU 95816d7e2f1Smrg #undef ${UNAME_MACHINE} 95916d7e2f1Smrg #undef ${UNAME_MACHINE}el 9602c7c4e3dSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 96116d7e2f1Smrg CPU=${UNAME_MACHINE}el 9622c7c4e3dSmrg #else 9632c7c4e3dSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 96416d7e2f1Smrg CPU=${UNAME_MACHINE} 9652c7c4e3dSmrg #else 9662c7c4e3dSmrg CPU= 9672c7c4e3dSmrg #endif 9682c7c4e3dSmrg #endif 9692c7c4e3dSmrgEOF 97016d7e2f1Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 9712becc446Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 9722c7c4e3dSmrg ;; 9732becc446Smrg openrisc*:Linux:*:*) 9742becc446Smrg echo or1k-unknown-linux-${LIBC} 9752becc446Smrg exit ;; 9762becc446Smrg or32:Linux:*:* | or1k*:Linux:*:*) 9772becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9788650bb69Smrg exit ;; 9798650bb69Smrg padre:Linux:*:*) 9802becc446Smrg echo sparc-unknown-linux-${LIBC} 9818650bb69Smrg exit ;; 98216d7e2f1Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 9832becc446Smrg echo hppa64-unknown-linux-${LIBC} 98416d7e2f1Smrg exit ;; 9852c7c4e3dSmrg parisc:Linux:*:* | hppa:Linux:*:*) 9862c7c4e3dSmrg # Look for CPU level 9872c7c4e3dSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 9882becc446Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 9892becc446Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 9902becc446Smrg *) echo hppa-unknown-linux-${LIBC} ;; 9912c7c4e3dSmrg esac 9928650bb69Smrg exit ;; 99316d7e2f1Smrg ppc64:Linux:*:*) 9942becc446Smrg echo powerpc64-unknown-linux-${LIBC} 99516d7e2f1Smrg exit ;; 99616d7e2f1Smrg ppc:Linux:*:*) 9972becc446Smrg echo powerpc-unknown-linux-${LIBC} 9982becc446Smrg exit ;; 9992becc446Smrg ppc64le:Linux:*:*) 10002becc446Smrg echo powerpc64le-unknown-linux-${LIBC} 10012becc446Smrg exit ;; 10022becc446Smrg ppcle:Linux:*:*) 10032becc446Smrg echo powerpcle-unknown-linux-${LIBC} 10048650bb69Smrg exit ;; 10052c7c4e3dSmrg s390:Linux:*:* | s390x:Linux:*:*) 10062becc446Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 10078650bb69Smrg exit ;; 10082c7c4e3dSmrg sh64*:Linux:*:*) 10092becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10108650bb69Smrg exit ;; 10112c7c4e3dSmrg sh*:Linux:*:*) 10122becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10138650bb69Smrg exit ;; 10142c7c4e3dSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 10152becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10168650bb69Smrg exit ;; 101716d7e2f1Smrg tile*:Linux:*:*) 10182becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 101916d7e2f1Smrg exit ;; 10208650bb69Smrg vax:Linux:*:*) 10212becc446Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 10228650bb69Smrg exit ;; 10232c7c4e3dSmrg x86_64:Linux:*:*) 10242becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10258650bb69Smrg exit ;; 10268650bb69Smrg xtensa*:Linux:*:*) 10272becc446Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10288650bb69Smrg exit ;; 10292c7c4e3dSmrg i*86:DYNIX/ptx:4*:*) 10302c7c4e3dSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10312c7c4e3dSmrg # earlier versions are messed up and put the nodename in both 10322c7c4e3dSmrg # sysname and nodename. 10332c7c4e3dSmrg echo i386-sequent-sysv4 10348650bb69Smrg exit ;; 10352c7c4e3dSmrg i*86:UNIX_SV:4.2MP:2.*) 10362becc446Smrg # Unixware is an offshoot of SVR4, but it has its own version 10372becc446Smrg # number series starting with 2... 10382becc446Smrg # I am not positive that other SVR4 systems won't match this, 10392c7c4e3dSmrg # I just have to hope. -- rms. 10402becc446Smrg # Use sysv4.2uw... so that sysv4* matches it. 10412c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 10428650bb69Smrg exit ;; 10432c7c4e3dSmrg i*86:OS/2:*:*) 10442c7c4e3dSmrg # If we were able to find `uname', then EMX Unix compatibility 10452c7c4e3dSmrg # is probably installed. 10462c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-os2-emx 10478650bb69Smrg exit ;; 10482c7c4e3dSmrg i*86:XTS-300:*:STOP) 10492c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-stop 10508650bb69Smrg exit ;; 10512c7c4e3dSmrg i*86:atheos:*:*) 10522c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-atheos 10538650bb69Smrg exit ;; 10548650bb69Smrg i*86:syllable:*:*) 10558650bb69Smrg echo ${UNAME_MACHINE}-pc-syllable 10568650bb69Smrg exit ;; 105716d7e2f1Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 10582c7c4e3dSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 10598650bb69Smrg exit ;; 10602c7c4e3dSmrg i*86:*DOS:*:*) 10612c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 10628650bb69Smrg exit ;; 10632c7c4e3dSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 10642c7c4e3dSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 10652c7c4e3dSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 10662c7c4e3dSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 10672c7c4e3dSmrg else 10682c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 10692c7c4e3dSmrg fi 10708650bb69Smrg exit ;; 10718650bb69Smrg i*86:*:5:[678]*) 10722becc446Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10732c7c4e3dSmrg case `/bin/uname -X | grep "^Machine"` in 10742c7c4e3dSmrg *486*) UNAME_MACHINE=i486 ;; 10752c7c4e3dSmrg *Pentium) UNAME_MACHINE=i586 ;; 10762c7c4e3dSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 10772c7c4e3dSmrg esac 10782c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 10798650bb69Smrg exit ;; 10802c7c4e3dSmrg i*86:*:3.2:*) 10812c7c4e3dSmrg if test -f /usr/options/cb.name; then 10822c7c4e3dSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 10832c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 10842c7c4e3dSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 10852c7c4e3dSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 10862c7c4e3dSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 10872c7c4e3dSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 10882c7c4e3dSmrg && UNAME_MACHINE=i586 10892c7c4e3dSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 10902c7c4e3dSmrg && UNAME_MACHINE=i686 10912c7c4e3dSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 10922c7c4e3dSmrg && UNAME_MACHINE=i686 10932c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 10942c7c4e3dSmrg else 10952c7c4e3dSmrg echo ${UNAME_MACHINE}-pc-sysv32 10962c7c4e3dSmrg fi 10978650bb69Smrg exit ;; 10982c7c4e3dSmrg pc:*:*:*) 10992c7c4e3dSmrg # Left here for compatibility: 11002becc446Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 11012becc446Smrg # the processor, so we play safe by assuming i586. 11028650bb69Smrg # Note: whatever this is, it MUST be the same as what config.sub 11038650bb69Smrg # prints for the "djgpp" host, or else GDB configury will decide that 11048650bb69Smrg # this is a cross-build. 11058650bb69Smrg echo i586-pc-msdosdjgpp 11062becc446Smrg exit ;; 11072c7c4e3dSmrg Intel:Mach:3*:*) 11082c7c4e3dSmrg echo i386-pc-mach3 11098650bb69Smrg exit ;; 11102c7c4e3dSmrg paragon:*:*:*) 11112c7c4e3dSmrg echo i860-intel-osf1 11128650bb69Smrg exit ;; 11132c7c4e3dSmrg i860:*:4.*:*) # i860-SVR4 11142c7c4e3dSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 11152c7c4e3dSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 11162c7c4e3dSmrg else # Add other i860-SVR4 vendors below as they are discovered. 11172c7c4e3dSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 11182c7c4e3dSmrg fi 11198650bb69Smrg exit ;; 11202c7c4e3dSmrg mini*:CTIX:SYS*5:*) 11212c7c4e3dSmrg # "miniframe" 11222c7c4e3dSmrg echo m68010-convergent-sysv 11238650bb69Smrg exit ;; 11242c7c4e3dSmrg mc68k:UNIX:SYSTEM5:3.51m) 11252c7c4e3dSmrg echo m68k-convergent-sysv 11268650bb69Smrg exit ;; 11272c7c4e3dSmrg M680?0:D-NIX:5.3:*) 11282c7c4e3dSmrg echo m68k-diab-dnix 11298650bb69Smrg exit ;; 11308650bb69Smrg M68*:*:R3V[5678]*:*) 11318650bb69Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11328650bb69Smrg 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) 11332c7c4e3dSmrg OS_REL='' 11342c7c4e3dSmrg test -r /etc/.relid \ 11352c7c4e3dSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11362c7c4e3dSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11378650bb69Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11382c7c4e3dSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11398650bb69Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11402c7c4e3dSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 11412becc446Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11422becc446Smrg && { echo i486-ncr-sysv4; exit; } ;; 11438650bb69Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 11448650bb69Smrg OS_REL='.3' 11458650bb69Smrg test -r /etc/.relid \ 11468650bb69Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11478650bb69Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11488650bb69Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11498650bb69Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11508650bb69Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 11518650bb69Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 11528650bb69Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11532c7c4e3dSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 11542c7c4e3dSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 11558650bb69Smrg exit ;; 11562c7c4e3dSmrg mc68030:UNIX_System_V:4.*:*) 11572c7c4e3dSmrg echo m68k-atari-sysv4 11588650bb69Smrg exit ;; 11592c7c4e3dSmrg TSUNAMI:LynxOS:2.*:*) 11602c7c4e3dSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 11618650bb69Smrg exit ;; 11622c7c4e3dSmrg rs6000:LynxOS:2.*:*) 11632c7c4e3dSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 11648650bb69Smrg exit ;; 116516d7e2f1Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 11662c7c4e3dSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 11678650bb69Smrg exit ;; 11682c7c4e3dSmrg SM[BE]S:UNIX_SV:*:*) 11692c7c4e3dSmrg echo mips-dde-sysv${UNAME_RELEASE} 11708650bb69Smrg exit ;; 11712c7c4e3dSmrg RM*:ReliantUNIX-*:*:*) 11722c7c4e3dSmrg echo mips-sni-sysv4 11738650bb69Smrg exit ;; 11742c7c4e3dSmrg RM*:SINIX-*:*:*) 11752c7c4e3dSmrg echo mips-sni-sysv4 11768650bb69Smrg exit ;; 11772c7c4e3dSmrg *:SINIX-*:*:*) 11782c7c4e3dSmrg if uname -p 2>/dev/null >/dev/null ; then 11792c7c4e3dSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 11802c7c4e3dSmrg echo ${UNAME_MACHINE}-sni-sysv4 11812c7c4e3dSmrg else 11822c7c4e3dSmrg echo ns32k-sni-sysv 11832c7c4e3dSmrg fi 11848650bb69Smrg exit ;; 11852becc446Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 11862becc446Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 11872becc446Smrg echo i586-unisys-sysv4 11882becc446Smrg exit ;; 11892c7c4e3dSmrg *:UNIX_System_V:4*:FTX*) 11902c7c4e3dSmrg # From Gerald Hewes <hewes@openmarket.com>. 11912c7c4e3dSmrg # How about differentiating between stratus architectures? -djm 11922c7c4e3dSmrg echo hppa1.1-stratus-sysv4 11938650bb69Smrg exit ;; 11942c7c4e3dSmrg *:*:*:FTX*) 11952c7c4e3dSmrg # From seanf@swdc.stratus.com. 11962c7c4e3dSmrg echo i860-stratus-sysv4 11978650bb69Smrg exit ;; 11988650bb69Smrg i*86:VOS:*:*) 11998650bb69Smrg # From Paul.Green@stratus.com. 12008650bb69Smrg echo ${UNAME_MACHINE}-stratus-vos 12018650bb69Smrg exit ;; 12022c7c4e3dSmrg *:VOS:*:*) 12032c7c4e3dSmrg # From Paul.Green@stratus.com. 12042c7c4e3dSmrg echo hppa1.1-stratus-vos 12058650bb69Smrg exit ;; 12062c7c4e3dSmrg mc68*:A/UX:*:*) 12072c7c4e3dSmrg echo m68k-apple-aux${UNAME_RELEASE} 12088650bb69Smrg exit ;; 12092c7c4e3dSmrg news*:NEWS-OS:6*:*) 12102c7c4e3dSmrg echo mips-sony-newsos6 12118650bb69Smrg exit ;; 12122c7c4e3dSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12132c7c4e3dSmrg if [ -d /usr/nec ]; then 12142becc446Smrg echo mips-nec-sysv${UNAME_RELEASE} 12152c7c4e3dSmrg else 12162becc446Smrg echo mips-unknown-sysv${UNAME_RELEASE} 12172c7c4e3dSmrg fi 12182becc446Smrg exit ;; 12192c7c4e3dSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12202c7c4e3dSmrg echo powerpc-be-beos 12218650bb69Smrg exit ;; 12222c7c4e3dSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12232c7c4e3dSmrg echo powerpc-apple-beos 12248650bb69Smrg exit ;; 12252c7c4e3dSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12262c7c4e3dSmrg echo i586-pc-beos 12278650bb69Smrg exit ;; 12288650bb69Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 12298650bb69Smrg echo i586-pc-haiku 12308650bb69Smrg exit ;; 12312becc446Smrg x86_64:Haiku:*:*) 12322becc446Smrg echo x86_64-unknown-haiku 12332becc446Smrg exit ;; 12342c7c4e3dSmrg SX-4:SUPER-UX:*:*) 12352c7c4e3dSmrg echo sx4-nec-superux${UNAME_RELEASE} 12368650bb69Smrg exit ;; 12372c7c4e3dSmrg SX-5:SUPER-UX:*:*) 12382c7c4e3dSmrg echo sx5-nec-superux${UNAME_RELEASE} 12398650bb69Smrg exit ;; 12402c7c4e3dSmrg SX-6:SUPER-UX:*:*) 12412c7c4e3dSmrg echo sx6-nec-superux${UNAME_RELEASE} 12428650bb69Smrg exit ;; 12438650bb69Smrg SX-7:SUPER-UX:*:*) 12448650bb69Smrg echo sx7-nec-superux${UNAME_RELEASE} 12458650bb69Smrg exit ;; 12468650bb69Smrg SX-8:SUPER-UX:*:*) 12478650bb69Smrg echo sx8-nec-superux${UNAME_RELEASE} 12488650bb69Smrg exit ;; 12498650bb69Smrg SX-8R:SUPER-UX:*:*) 12508650bb69Smrg echo sx8r-nec-superux${UNAME_RELEASE} 12518650bb69Smrg exit ;; 12522c7c4e3dSmrg Power*:Rhapsody:*:*) 12532c7c4e3dSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 12548650bb69Smrg exit ;; 12552c7c4e3dSmrg *:Rhapsody:*:*) 12562c7c4e3dSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12578650bb69Smrg exit ;; 12582c7c4e3dSmrg *:Darwin:*:*) 12598650bb69Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 12602becc446Smrg eval $set_cc_for_build 12612becc446Smrg if test "$UNAME_PROCESSOR" = unknown ; then 12622becc446Smrg UNAME_PROCESSOR=powerpc 12632becc446Smrg fi 12642becc446Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 12652becc446Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 12662becc446Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 12672becc446Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 12682becc446Smrg grep IS_64BIT_ARCH >/dev/null 12692becc446Smrg then 12702becc446Smrg case $UNAME_PROCESSOR in 12712becc446Smrg i386) UNAME_PROCESSOR=x86_64 ;; 12722becc446Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 12732becc446Smrg esac 12742becc446Smrg fi 12752becc446Smrg fi 12762becc446Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 12772becc446Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 12782becc446Smrg # that puts up a graphical alert prompting to install 12792becc446Smrg # developer tools. Any system running Mac OS X 10.7 or 12802becc446Smrg # later (Darwin 11 and later) is required to have a 64-bit 12812becc446Smrg # processor. This is not true of the ARM version of Darwin 12822becc446Smrg # that Apple uses in portable devices. 12832becc446Smrg UNAME_PROCESSOR=x86_64 12842becc446Smrg fi 12852c7c4e3dSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 12868650bb69Smrg exit ;; 12872c7c4e3dSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 12882c7c4e3dSmrg UNAME_PROCESSOR=`uname -p` 12892c7c4e3dSmrg if test "$UNAME_PROCESSOR" = "x86"; then 12902c7c4e3dSmrg UNAME_PROCESSOR=i386 12912c7c4e3dSmrg UNAME_MACHINE=pc 12922c7c4e3dSmrg fi 12932c7c4e3dSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 12948650bb69Smrg exit ;; 12952c7c4e3dSmrg *:QNX:*:4*) 12962c7c4e3dSmrg echo i386-pc-qnx 12978650bb69Smrg exit ;; 12982becc446Smrg NEO-?:NONSTOP_KERNEL:*:*) 12992becc446Smrg echo neo-tandem-nsk${UNAME_RELEASE} 13002becc446Smrg exit ;; 13012becc446Smrg NSE-*:NONSTOP_KERNEL:*:*) 13028650bb69Smrg echo nse-tandem-nsk${UNAME_RELEASE} 13038650bb69Smrg exit ;; 13048650bb69Smrg NSR-?:NONSTOP_KERNEL:*:*) 13052c7c4e3dSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 13068650bb69Smrg exit ;; 13072c7c4e3dSmrg *:NonStop-UX:*:*) 13082c7c4e3dSmrg echo mips-compaq-nonstopux 13098650bb69Smrg exit ;; 13102c7c4e3dSmrg BS2000:POSIX*:*:*) 13112c7c4e3dSmrg echo bs2000-siemens-sysv 13128650bb69Smrg exit ;; 13132c7c4e3dSmrg DS/*:UNIX_System_V:*:*) 13142c7c4e3dSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 13158650bb69Smrg exit ;; 13162c7c4e3dSmrg *:Plan9:*:*) 13172c7c4e3dSmrg # "uname -m" is not consistent, so use $cputype instead. 386 13182c7c4e3dSmrg # is converted to i386 for consistency with other x86 13192c7c4e3dSmrg # operating systems. 13202c7c4e3dSmrg if test "$cputype" = "386"; then 13212c7c4e3dSmrg UNAME_MACHINE=i386 13222c7c4e3dSmrg else 13232c7c4e3dSmrg UNAME_MACHINE="$cputype" 13242c7c4e3dSmrg fi 13252c7c4e3dSmrg echo ${UNAME_MACHINE}-unknown-plan9 13268650bb69Smrg exit ;; 13272c7c4e3dSmrg *:TOPS-10:*:*) 13282c7c4e3dSmrg echo pdp10-unknown-tops10 13298650bb69Smrg exit ;; 13302c7c4e3dSmrg *:TENEX:*:*) 13312c7c4e3dSmrg echo pdp10-unknown-tenex 13328650bb69Smrg exit ;; 13332c7c4e3dSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 13342c7c4e3dSmrg echo pdp10-dec-tops20 13358650bb69Smrg exit ;; 13362c7c4e3dSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 13372c7c4e3dSmrg echo pdp10-xkl-tops20 13388650bb69Smrg exit ;; 13392c7c4e3dSmrg *:TOPS-20:*:*) 13402c7c4e3dSmrg echo pdp10-unknown-tops20 13418650bb69Smrg exit ;; 13422c7c4e3dSmrg *:ITS:*:*) 13432c7c4e3dSmrg echo pdp10-unknown-its 13448650bb69Smrg exit ;; 13452c7c4e3dSmrg SEI:*:*:SEIUX) 13462becc446Smrg echo mips-sei-seiux${UNAME_RELEASE} 13478650bb69Smrg exit ;; 13488650bb69Smrg *:DragonFly:*:*) 13498650bb69Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 13508650bb69Smrg exit ;; 13518650bb69Smrg *:*VMS:*:*) 13522becc446Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 13538650bb69Smrg case "${UNAME_MACHINE}" in 13548650bb69Smrg A*) echo alpha-dec-vms ; exit ;; 13558650bb69Smrg I*) echo ia64-dec-vms ; exit ;; 13568650bb69Smrg V*) echo vax-dec-vms ; exit ;; 13578650bb69Smrg esac ;; 13588650bb69Smrg *:XENIX:*:SysV) 13598650bb69Smrg echo i386-pc-xenix 13608650bb69Smrg exit ;; 13618650bb69Smrg i*86:skyos:*:*) 13628650bb69Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 13638650bb69Smrg exit ;; 13648650bb69Smrg i*86:rdos:*:*) 13658650bb69Smrg echo ${UNAME_MACHINE}-pc-rdos 13668650bb69Smrg exit ;; 13678650bb69Smrg i*86:AROS:*:*) 13688650bb69Smrg echo ${UNAME_MACHINE}-pc-aros 13698650bb69Smrg exit ;; 13702becc446Smrg x86_64:VMkernel:*:*) 13712becc446Smrg echo ${UNAME_MACHINE}-unknown-esx 13728650bb69Smrg exit ;; 13732becc446Smrgesac 13742c7c4e3dSmrg 13752c7c4e3dSmrgcat >&2 <<EOF 13762c7c4e3dSmrg$0: unable to guess system type 13772c7c4e3dSmrg 13782c7c4e3dSmrgThis script, last modified $timestamp, has failed to recognize 13792c7c4e3dSmrgthe operating system you are using. It is advised that you 13802c7c4e3dSmrgdownload the most up to date version of the config scripts from 13812c7c4e3dSmrg 13828650bb69Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 13838650bb69Smrgand 13848650bb69Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 13852c7c4e3dSmrg 13862c7c4e3dSmrgIf the version you run ($0) is already up to date, please 13872c7c4e3dSmrgsend the following data and any information you think might be 13882c7c4e3dSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 13892c7c4e3dSmrginformation to handle your system. 13902c7c4e3dSmrg 13912c7c4e3dSmrgconfig.guess timestamp = $timestamp 13922c7c4e3dSmrg 13932c7c4e3dSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 13942c7c4e3dSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 13952c7c4e3dSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 13962c7c4e3dSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 13972c7c4e3dSmrg 13982c7c4e3dSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 13992c7c4e3dSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 14002c7c4e3dSmrg 14012c7c4e3dSmrghostinfo = `(hostinfo) 2>/dev/null` 14022c7c4e3dSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 14032c7c4e3dSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 14042c7c4e3dSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 14052c7c4e3dSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 14062c7c4e3dSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 14072c7c4e3dSmrg 14082c7c4e3dSmrgUNAME_MACHINE = ${UNAME_MACHINE} 14092c7c4e3dSmrgUNAME_RELEASE = ${UNAME_RELEASE} 14102c7c4e3dSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 14112c7c4e3dSmrgUNAME_VERSION = ${UNAME_VERSION} 14122c7c4e3dSmrgEOF 14132c7c4e3dSmrg 14142c7c4e3dSmrgexit 1 14152c7c4e3dSmrg 14162c7c4e3dSmrg# Local variables: 14172c7c4e3dSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 14182c7c4e3dSmrg# time-stamp-start: "timestamp='" 14192c7c4e3dSmrg# time-stamp-format: "%:y-%02m-%02d" 14202c7c4e3dSmrg# time-stamp-end: "'" 14212c7c4e3dSmrg# End: 1422