config.guess revision 70728a38
18c9fbc29Smrg#! /bin/sh 28c9fbc29Smrg# Attempt to guess a canonical system name. 370728a38Smrg# Copyright 1992-2014 Free Software Foundation, Inc. 48c9fbc29Smrg 570728a38Smrgtimestamp='2014-11-04' 68c9fbc29Smrg 78c9fbc29Smrg# This file is free software; you can redistribute it and/or modify it 88c9fbc29Smrg# under the terms of the GNU General Public License as published by 970728a38Smrg# the Free Software Foundation; either version 3 of the License, or 108c9fbc29Smrg# (at your option) any later version. 118c9fbc29Smrg# 128c9fbc29Smrg# This program is distributed in the hope that it will be useful, but 138c9fbc29Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 148c9fbc29Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 158c9fbc29Smrg# General Public License for more details. 168c9fbc29Smrg# 178c9fbc29Smrg# You should have received a copy of the GNU General Public License 1870728a38Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 198c9fbc29Smrg# 208c9fbc29Smrg# As a special exception to the GNU General Public License, if you 218c9fbc29Smrg# distribute this file as part of a program that contains a 228c9fbc29Smrg# configuration script generated by Autoconf, you may include it under 2370728a38Smrg# the same distribution terms that you use for the rest of that 2470728a38Smrg# program. This Exception is an additional permission under section 7 2570728a38Smrg# of the GNU General Public License, version 3 ("GPLv3"). 268c9fbc29Smrg# 2770728a38Smrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 288c9fbc29Smrg# 294cd6a3aeSmrg# You can get the latest version of this script from: 304cd6a3aeSmrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 3170728a38Smrg# 3270728a38Smrg# Please send patches to <config-patches@gnu.org>. 3370728a38Smrg 348c9fbc29Smrg 358c9fbc29Smrgme=`echo "$0" | sed -e 's,.*/,,'` 368c9fbc29Smrg 378c9fbc29Smrgusage="\ 388c9fbc29SmrgUsage: $0 [OPTION] 398c9fbc29Smrg 408c9fbc29SmrgOutput the configuration name of the system \`$me' is run on. 418c9fbc29Smrg 428c9fbc29SmrgOperation modes: 438c9fbc29Smrg -h, --help print this help, then exit 448c9fbc29Smrg -t, --time-stamp print date of last modification, then exit 458c9fbc29Smrg -v, --version print version number, then exit 468c9fbc29Smrg 478c9fbc29SmrgReport bugs and patches to <config-patches@gnu.org>." 488c9fbc29Smrg 498c9fbc29Smrgversion="\ 508c9fbc29SmrgGNU config.guess ($timestamp) 518c9fbc29Smrg 528c9fbc29SmrgOriginally written by Per Bothner. 5370728a38SmrgCopyright 1992-2014 Free Software Foundation, Inc. 548c9fbc29Smrg 558c9fbc29SmrgThis is free software; see the source for copying conditions. There is NO 568c9fbc29Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 578c9fbc29Smrg 588c9fbc29Smrghelp=" 598c9fbc29SmrgTry \`$me --help' for more information." 608c9fbc29Smrg 618c9fbc29Smrg# Parse command line 628c9fbc29Smrgwhile test $# -gt 0 ; do 638c9fbc29Smrg case $1 in 648c9fbc29Smrg --time-stamp | --time* | -t ) 658c9fbc29Smrg echo "$timestamp" ; exit ;; 668c9fbc29Smrg --version | -v ) 678c9fbc29Smrg echo "$version" ; exit ;; 688c9fbc29Smrg --help | --h* | -h ) 698c9fbc29Smrg echo "$usage"; exit ;; 708c9fbc29Smrg -- ) # Stop option processing 718c9fbc29Smrg shift; break ;; 728c9fbc29Smrg - ) # Use stdin as input. 738c9fbc29Smrg break ;; 748c9fbc29Smrg -* ) 758c9fbc29Smrg echo "$me: invalid option $1$help" >&2 768c9fbc29Smrg exit 1 ;; 778c9fbc29Smrg * ) 788c9fbc29Smrg break ;; 798c9fbc29Smrg esac 808c9fbc29Smrgdone 818c9fbc29Smrg 828c9fbc29Smrgif test $# != 0; then 838c9fbc29Smrg echo "$me: too many arguments$help" >&2 848c9fbc29Smrg exit 1 858c9fbc29Smrgfi 868c9fbc29Smrg 8770728a38Smrgtrap 'exit 1' 1 2 15 888c9fbc29Smrg 898c9fbc29Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 908c9fbc29Smrg# compiler to aid in system detection is discouraged as it requires 918c9fbc29Smrg# temporary files to be created and, as you can see below, it is a 928c9fbc29Smrg# headache to deal with in a portable fashion. 938c9fbc29Smrg 948c9fbc29Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 958c9fbc29Smrg# use `HOST_CC' if defined, but it is deprecated. 968c9fbc29Smrg 978c9fbc29Smrg# Portable tmp directory creation inspired by the Autoconf team. 988c9fbc29Smrg 998c9fbc29Smrgset_cc_for_build=' 1008c9fbc29Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10170728a38Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1028c9fbc29Smrg: ${TMPDIR=/tmp} ; 1034e411241Smrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1048c9fbc29Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1058c9fbc29Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1068c9fbc29Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1078c9fbc29Smrgdummy=$tmp/dummy ; 1088c9fbc29Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1098c9fbc29Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 1108c9fbc29Smrg ,,) echo "int x;" > $dummy.c ; 1118c9fbc29Smrg for c in cc gcc c89 c99 ; do 1128c9fbc29Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 1138c9fbc29Smrg CC_FOR_BUILD="$c"; break ; 1148c9fbc29Smrg fi ; 1158c9fbc29Smrg done ; 1168c9fbc29Smrg if test x"$CC_FOR_BUILD" = x ; then 1178c9fbc29Smrg CC_FOR_BUILD=no_compiler_found ; 1188c9fbc29Smrg fi 1198c9fbc29Smrg ;; 1208c9fbc29Smrg ,,*) CC_FOR_BUILD=$CC ;; 1218c9fbc29Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1228c9fbc29Smrgesac ; set_cc_for_build= ;' 1238c9fbc29Smrg 1248c9fbc29Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1258c9fbc29Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 1268c9fbc29Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1278c9fbc29Smrg PATH=$PATH:/.attbin ; export PATH 1288c9fbc29Smrgfi 1298c9fbc29Smrg 1308c9fbc29SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1318c9fbc29SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1328c9fbc29SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1338c9fbc29SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1348c9fbc29Smrg 13570728a38Smrgcase "${UNAME_SYSTEM}" in 13670728a38SmrgLinux|GNU|GNU/*) 13770728a38Smrg # If the system lacks a compiler, then just pick glibc. 13870728a38Smrg # We could probably try harder. 13970728a38Smrg LIBC=gnu 14070728a38Smrg 14170728a38Smrg eval $set_cc_for_build 14270728a38Smrg cat <<-EOF > $dummy.c 14370728a38Smrg #include <features.h> 14470728a38Smrg #if defined(__UCLIBC__) 14570728a38Smrg LIBC=uclibc 14670728a38Smrg #elif defined(__dietlibc__) 14770728a38Smrg LIBC=dietlibc 14870728a38Smrg #else 14970728a38Smrg LIBC=gnu 15070728a38Smrg #endif 15170728a38Smrg EOF 15270728a38Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 15370728a38Smrg ;; 15470728a38Smrgesac 15570728a38Smrg 1568c9fbc29Smrg# Note: order is significant - the case branches are not exclusive. 1578c9fbc29Smrg 1588c9fbc29Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 1598c9fbc29Smrg *:NetBSD:*:*) 1608c9fbc29Smrg # NetBSD (nbsd) targets should (where applicable) match one or 16170728a38Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 1628c9fbc29Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1638c9fbc29Smrg # switched to ELF, *-*-netbsd* would select the old 1648c9fbc29Smrg # object file format. This provides both forward 1658c9fbc29Smrg # compatibility and a consistent mechanism for selecting the 1668c9fbc29Smrg # object file format. 1678c9fbc29Smrg # 1688c9fbc29Smrg # Note: NetBSD doesn't particularly care about the vendor 1698c9fbc29Smrg # portion of the name. We always set it to "unknown". 1708c9fbc29Smrg sysctl="sysctl -n hw.machine_arch" 1718c9fbc29Smrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 1728c9fbc29Smrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 1738c9fbc29Smrg case "${UNAME_MACHINE_ARCH}" in 1748c9fbc29Smrg armeb) machine=armeb-unknown ;; 1758c9fbc29Smrg arm*) machine=arm-unknown ;; 1768c9fbc29Smrg sh3el) machine=shl-unknown ;; 1778c9fbc29Smrg sh3eb) machine=sh-unknown ;; 1784e411241Smrg sh5el) machine=sh5le-unknown ;; 1798c9fbc29Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 1808c9fbc29Smrg esac 1818c9fbc29Smrg # The Operating System including object format, if it has switched 1828c9fbc29Smrg # to ELF recently, or will in the future. 1838c9fbc29Smrg case "${UNAME_MACHINE_ARCH}" in 1848c9fbc29Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 1858c9fbc29Smrg eval $set_cc_for_build 1868c9fbc29Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 1874cd6a3aeSmrg | grep -q __ELF__ 1888c9fbc29Smrg then 1898c9fbc29Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 1908c9fbc29Smrg # Return netbsd for either. FIX? 1918c9fbc29Smrg os=netbsd 1928c9fbc29Smrg else 1938c9fbc29Smrg os=netbsdelf 1948c9fbc29Smrg fi 1958c9fbc29Smrg ;; 1968c9fbc29Smrg *) 19770728a38Smrg os=netbsd 1988c9fbc29Smrg ;; 1998c9fbc29Smrg esac 2008c9fbc29Smrg # The OS release 2018c9fbc29Smrg # Debian GNU/NetBSD machines have a different userland, and 2028c9fbc29Smrg # thus, need a distinct triplet. However, they do not need 2038c9fbc29Smrg # kernel version information, so it can be replaced with a 2048c9fbc29Smrg # suitable tag, in the style of linux-gnu. 2058c9fbc29Smrg case "${UNAME_VERSION}" in 2068c9fbc29Smrg Debian*) 2078c9fbc29Smrg release='-gnu' 2088c9fbc29Smrg ;; 2098c9fbc29Smrg *) 2108c9fbc29Smrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 2118c9fbc29Smrg ;; 2128c9fbc29Smrg esac 2138c9fbc29Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 2148c9fbc29Smrg # contains redundant information, the shorter form: 2158c9fbc29Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2168c9fbc29Smrg echo "${machine}-${os}${release}" 2178c9fbc29Smrg exit ;; 21870728a38Smrg *:Bitrig:*:*) 21970728a38Smrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 22070728a38Smrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 22170728a38Smrg exit ;; 2228c9fbc29Smrg *:OpenBSD:*:*) 2238c9fbc29Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 2248c9fbc29Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 2258c9fbc29Smrg exit ;; 2268c9fbc29Smrg *:ekkoBSD:*:*) 2278c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 2288c9fbc29Smrg exit ;; 2294e411241Smrg *:SolidBSD:*:*) 2304e411241Smrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 2314e411241Smrg exit ;; 2328c9fbc29Smrg macppc:MirBSD:*:*) 2334e411241Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 2348c9fbc29Smrg exit ;; 2358c9fbc29Smrg *:MirBSD:*:*) 2368c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 2378c9fbc29Smrg exit ;; 2388c9fbc29Smrg alpha:OSF1:*:*) 2398c9fbc29Smrg case $UNAME_RELEASE in 2408c9fbc29Smrg *4.0) 2418c9fbc29Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2428c9fbc29Smrg ;; 2438c9fbc29Smrg *5.*) 24470728a38Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2458c9fbc29Smrg ;; 2468c9fbc29Smrg esac 2478c9fbc29Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 2488c9fbc29Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2498c9fbc29Smrg # covers most systems running today. This code pipes the CPU 2508c9fbc29Smrg # types through head -n 1, so we only detect the type of CPU 0. 2518c9fbc29Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2528c9fbc29Smrg case "$ALPHA_CPU_TYPE" in 2538c9fbc29Smrg "EV4 (21064)") 2548c9fbc29Smrg UNAME_MACHINE="alpha" ;; 2558c9fbc29Smrg "EV4.5 (21064)") 2568c9fbc29Smrg UNAME_MACHINE="alpha" ;; 2578c9fbc29Smrg "LCA4 (21066/21068)") 2588c9fbc29Smrg UNAME_MACHINE="alpha" ;; 2598c9fbc29Smrg "EV5 (21164)") 2608c9fbc29Smrg UNAME_MACHINE="alphaev5" ;; 2618c9fbc29Smrg "EV5.6 (21164A)") 2628c9fbc29Smrg UNAME_MACHINE="alphaev56" ;; 2638c9fbc29Smrg "EV5.6 (21164PC)") 2648c9fbc29Smrg UNAME_MACHINE="alphapca56" ;; 2658c9fbc29Smrg "EV5.7 (21164PC)") 2668c9fbc29Smrg UNAME_MACHINE="alphapca57" ;; 2678c9fbc29Smrg "EV6 (21264)") 2688c9fbc29Smrg UNAME_MACHINE="alphaev6" ;; 2698c9fbc29Smrg "EV6.7 (21264A)") 2708c9fbc29Smrg UNAME_MACHINE="alphaev67" ;; 2718c9fbc29Smrg "EV6.8CB (21264C)") 2728c9fbc29Smrg UNAME_MACHINE="alphaev68" ;; 2738c9fbc29Smrg "EV6.8AL (21264B)") 2748c9fbc29Smrg UNAME_MACHINE="alphaev68" ;; 2758c9fbc29Smrg "EV6.8CX (21264D)") 2768c9fbc29Smrg UNAME_MACHINE="alphaev68" ;; 2778c9fbc29Smrg "EV6.9A (21264/EV69A)") 2788c9fbc29Smrg UNAME_MACHINE="alphaev69" ;; 2798c9fbc29Smrg "EV7 (21364)") 2808c9fbc29Smrg UNAME_MACHINE="alphaev7" ;; 2818c9fbc29Smrg "EV7.9 (21364A)") 2828c9fbc29Smrg UNAME_MACHINE="alphaev79" ;; 2838c9fbc29Smrg esac 2848c9fbc29Smrg # A Pn.n version is a patched version. 2858c9fbc29Smrg # A Vn.n version is a released version. 2868c9fbc29Smrg # A Tn.n version is a released field test version. 2878c9fbc29Smrg # A Xn.n version is an unreleased experimental baselevel. 2888c9fbc29Smrg # 1.2 uses "1.2" for uname -r. 2898c9fbc29Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29070728a38Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 29170728a38Smrg exitcode=$? 29270728a38Smrg trap '' 0 29370728a38Smrg exit $exitcode ;; 2948c9fbc29Smrg Alpha\ *:Windows_NT*:*) 2958c9fbc29Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 2968c9fbc29Smrg # Should we change UNAME_MACHINE based on the output of uname instead 2978c9fbc29Smrg # of the specific Alpha model? 2988c9fbc29Smrg echo alpha-pc-interix 2998c9fbc29Smrg exit ;; 3008c9fbc29Smrg 21064:Windows_NT:50:3) 3018c9fbc29Smrg echo alpha-dec-winnt3.5 3028c9fbc29Smrg exit ;; 3038c9fbc29Smrg Amiga*:UNIX_System_V:4.0:*) 3048c9fbc29Smrg echo m68k-unknown-sysv4 3058c9fbc29Smrg exit ;; 3068c9fbc29Smrg *:[Aa]miga[Oo][Ss]:*:*) 3078c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-amigaos 3088c9fbc29Smrg exit ;; 3098c9fbc29Smrg *:[Mm]orph[Oo][Ss]:*:*) 3108c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-morphos 3118c9fbc29Smrg exit ;; 3128c9fbc29Smrg *:OS/390:*:*) 3138c9fbc29Smrg echo i370-ibm-openedition 3148c9fbc29Smrg exit ;; 3158c9fbc29Smrg *:z/VM:*:*) 3168c9fbc29Smrg echo s390-ibm-zvmoe 3178c9fbc29Smrg exit ;; 3188c9fbc29Smrg *:OS400:*:*) 31970728a38Smrg echo powerpc-ibm-os400 3208c9fbc29Smrg exit ;; 3218c9fbc29Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 3228c9fbc29Smrg echo arm-acorn-riscix${UNAME_RELEASE} 3238c9fbc29Smrg exit ;; 32470728a38Smrg arm*:riscos:*:*|arm*:RISCOS:*:*) 3258c9fbc29Smrg echo arm-unknown-riscos 3268c9fbc29Smrg exit ;; 3278c9fbc29Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3288c9fbc29Smrg echo hppa1.1-hitachi-hiuxmpp 3298c9fbc29Smrg exit ;; 3308c9fbc29Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3318c9fbc29Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3328c9fbc29Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3338c9fbc29Smrg echo pyramid-pyramid-sysv3 3348c9fbc29Smrg else 3358c9fbc29Smrg echo pyramid-pyramid-bsd 3368c9fbc29Smrg fi 3378c9fbc29Smrg exit ;; 3388c9fbc29Smrg NILE*:*:*:dcosx) 3398c9fbc29Smrg echo pyramid-pyramid-svr4 3408c9fbc29Smrg exit ;; 3418c9fbc29Smrg DRS?6000:unix:4.0:6*) 3428c9fbc29Smrg echo sparc-icl-nx6 3438c9fbc29Smrg exit ;; 3448c9fbc29Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3458c9fbc29Smrg case `/usr/bin/uname -p` in 3468c9fbc29Smrg sparc) echo sparc-icl-nx7; exit ;; 3478c9fbc29Smrg esac ;; 3484cd6a3aeSmrg s390x:SunOS:*:*) 3494cd6a3aeSmrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3504cd6a3aeSmrg exit ;; 3518c9fbc29Smrg sun4H:SunOS:5.*:*) 3528c9fbc29Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3538c9fbc29Smrg exit ;; 3548c9fbc29Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 3558c9fbc29Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3568c9fbc29Smrg exit ;; 3574cd6a3aeSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 3584cd6a3aeSmrg echo i386-pc-auroraux${UNAME_RELEASE} 3594cd6a3aeSmrg exit ;; 3604e411241Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 3614cd6a3aeSmrg eval $set_cc_for_build 3624cd6a3aeSmrg SUN_ARCH="i386" 3634cd6a3aeSmrg # If there is a compiler, see if it is configured for 64-bit objects. 3644cd6a3aeSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 3654cd6a3aeSmrg # This test works for both compilers. 3664cd6a3aeSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 3674cd6a3aeSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 3684cd6a3aeSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 3694cd6a3aeSmrg grep IS_64BIT_ARCH >/dev/null 3704cd6a3aeSmrg then 3714cd6a3aeSmrg SUN_ARCH="x86_64" 3724cd6a3aeSmrg fi 3734cd6a3aeSmrg fi 3744cd6a3aeSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3758c9fbc29Smrg exit ;; 3768c9fbc29Smrg sun4*:SunOS:6*:*) 3778c9fbc29Smrg # According to config.sub, this is the proper way to canonicalize 3788c9fbc29Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 3798c9fbc29Smrg # it's likely to be more like Solaris than SunOS4. 3808c9fbc29Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3818c9fbc29Smrg exit ;; 3828c9fbc29Smrg sun4*:SunOS:*:*) 3838c9fbc29Smrg case "`/usr/bin/arch -k`" in 3848c9fbc29Smrg Series*|S4*) 3858c9fbc29Smrg UNAME_RELEASE=`uname -v` 3868c9fbc29Smrg ;; 3878c9fbc29Smrg esac 3888c9fbc29Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 3898c9fbc29Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 3908c9fbc29Smrg exit ;; 3918c9fbc29Smrg sun3*:SunOS:*:*) 3928c9fbc29Smrg echo m68k-sun-sunos${UNAME_RELEASE} 3938c9fbc29Smrg exit ;; 3948c9fbc29Smrg sun*:*:4.2BSD:*) 3958c9fbc29Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 3968c9fbc29Smrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 3978c9fbc29Smrg case "`/bin/arch`" in 3988c9fbc29Smrg sun3) 3998c9fbc29Smrg echo m68k-sun-sunos${UNAME_RELEASE} 4008c9fbc29Smrg ;; 4018c9fbc29Smrg sun4) 4028c9fbc29Smrg echo sparc-sun-sunos${UNAME_RELEASE} 4038c9fbc29Smrg ;; 4048c9fbc29Smrg esac 4058c9fbc29Smrg exit ;; 4068c9fbc29Smrg aushp:SunOS:*:*) 4078c9fbc29Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 4088c9fbc29Smrg exit ;; 4098c9fbc29Smrg # The situation for MiNT is a little confusing. The machine name 4108c9fbc29Smrg # can be virtually everything (everything which is not 4118c9fbc29Smrg # "atarist" or "atariste" at least should have a processor 4128c9fbc29Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 4138c9fbc29Smrg # to the lowercase version "mint" (or "freemint"). Finally 4148c9fbc29Smrg # the system name "TOS" denotes a system which is actually not 4158c9fbc29Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 4168c9fbc29Smrg # be no problem. 4178c9fbc29Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 41870728a38Smrg echo m68k-atari-mint${UNAME_RELEASE} 4198c9fbc29Smrg exit ;; 4208c9fbc29Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 4218c9fbc29Smrg echo m68k-atari-mint${UNAME_RELEASE} 42270728a38Smrg exit ;; 4238c9fbc29Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 42470728a38Smrg echo m68k-atari-mint${UNAME_RELEASE} 4258c9fbc29Smrg exit ;; 4268c9fbc29Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 42770728a38Smrg echo m68k-milan-mint${UNAME_RELEASE} 42870728a38Smrg exit ;; 4298c9fbc29Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 43070728a38Smrg echo m68k-hades-mint${UNAME_RELEASE} 43170728a38Smrg exit ;; 4328c9fbc29Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 43370728a38Smrg echo m68k-unknown-mint${UNAME_RELEASE} 43470728a38Smrg exit ;; 4358c9fbc29Smrg m68k:machten:*:*) 4368c9fbc29Smrg echo m68k-apple-machten${UNAME_RELEASE} 4378c9fbc29Smrg exit ;; 4388c9fbc29Smrg powerpc:machten:*:*) 4398c9fbc29Smrg echo powerpc-apple-machten${UNAME_RELEASE} 4408c9fbc29Smrg exit ;; 4418c9fbc29Smrg RISC*:Mach:*:*) 4428c9fbc29Smrg echo mips-dec-mach_bsd4.3 4438c9fbc29Smrg exit ;; 4448c9fbc29Smrg RISC*:ULTRIX:*:*) 4458c9fbc29Smrg echo mips-dec-ultrix${UNAME_RELEASE} 4468c9fbc29Smrg exit ;; 4478c9fbc29Smrg VAX*:ULTRIX*:*:*) 4488c9fbc29Smrg echo vax-dec-ultrix${UNAME_RELEASE} 4498c9fbc29Smrg exit ;; 4508c9fbc29Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 4518c9fbc29Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 4528c9fbc29Smrg exit ;; 4538c9fbc29Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 4548c9fbc29Smrg eval $set_cc_for_build 4558c9fbc29Smrg sed 's/^ //' << EOF >$dummy.c 4568c9fbc29Smrg#ifdef __cplusplus 4578c9fbc29Smrg#include <stdio.h> /* for printf() prototype */ 4588c9fbc29Smrg int main (int argc, char *argv[]) { 4598c9fbc29Smrg#else 4608c9fbc29Smrg int main (argc, argv) int argc; char *argv[]; { 4618c9fbc29Smrg#endif 4628c9fbc29Smrg #if defined (host_mips) && defined (MIPSEB) 4638c9fbc29Smrg #if defined (SYSTYPE_SYSV) 4648c9fbc29Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 4658c9fbc29Smrg #endif 4668c9fbc29Smrg #if defined (SYSTYPE_SVR4) 4678c9fbc29Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 4688c9fbc29Smrg #endif 4698c9fbc29Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 4708c9fbc29Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 4718c9fbc29Smrg #endif 4728c9fbc29Smrg #endif 4738c9fbc29Smrg exit (-1); 4748c9fbc29Smrg } 4758c9fbc29SmrgEOF 4768c9fbc29Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 4778c9fbc29Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 4788c9fbc29Smrg SYSTEM_NAME=`$dummy $dummyarg` && 4798c9fbc29Smrg { echo "$SYSTEM_NAME"; exit; } 4808c9fbc29Smrg echo mips-mips-riscos${UNAME_RELEASE} 4818c9fbc29Smrg exit ;; 4828c9fbc29Smrg Motorola:PowerMAX_OS:*:*) 4838c9fbc29Smrg echo powerpc-motorola-powermax 4848c9fbc29Smrg exit ;; 4858c9fbc29Smrg Motorola:*:4.3:PL8-*) 4868c9fbc29Smrg echo powerpc-harris-powermax 4878c9fbc29Smrg exit ;; 4888c9fbc29Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 4898c9fbc29Smrg echo powerpc-harris-powermax 4908c9fbc29Smrg exit ;; 4918c9fbc29Smrg Night_Hawk:Power_UNIX:*:*) 4928c9fbc29Smrg echo powerpc-harris-powerunix 4938c9fbc29Smrg exit ;; 4948c9fbc29Smrg m88k:CX/UX:7*:*) 4958c9fbc29Smrg echo m88k-harris-cxux7 4968c9fbc29Smrg exit ;; 4978c9fbc29Smrg m88k:*:4*:R4*) 4988c9fbc29Smrg echo m88k-motorola-sysv4 4998c9fbc29Smrg exit ;; 5008c9fbc29Smrg m88k:*:3*:R3*) 5018c9fbc29Smrg echo m88k-motorola-sysv3 5028c9fbc29Smrg exit ;; 5038c9fbc29Smrg AViiON:dgux:*:*) 50470728a38Smrg # DG/UX returns AViiON for all architectures 50570728a38Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 5068c9fbc29Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 5078c9fbc29Smrg then 5088c9fbc29Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 5098c9fbc29Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 5108c9fbc29Smrg then 5118c9fbc29Smrg echo m88k-dg-dgux${UNAME_RELEASE} 5128c9fbc29Smrg else 5138c9fbc29Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 5148c9fbc29Smrg fi 5158c9fbc29Smrg else 5168c9fbc29Smrg echo i586-dg-dgux${UNAME_RELEASE} 5178c9fbc29Smrg fi 51870728a38Smrg exit ;; 5198c9fbc29Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 5208c9fbc29Smrg echo m88k-dolphin-sysv3 5218c9fbc29Smrg exit ;; 5228c9fbc29Smrg M88*:*:R3*:*) 5238c9fbc29Smrg # Delta 88k system running SVR3 5248c9fbc29Smrg echo m88k-motorola-sysv3 5258c9fbc29Smrg exit ;; 5268c9fbc29Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 5278c9fbc29Smrg echo m88k-tektronix-sysv3 5288c9fbc29Smrg exit ;; 5298c9fbc29Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 5308c9fbc29Smrg echo m68k-tektronix-bsd 5318c9fbc29Smrg exit ;; 5328c9fbc29Smrg *:IRIX*:*:*) 5338c9fbc29Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 5348c9fbc29Smrg exit ;; 5358c9fbc29Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 5368c9fbc29Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 5378c9fbc29Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 5388c9fbc29Smrg i*86:AIX:*:*) 5398c9fbc29Smrg echo i386-ibm-aix 5408c9fbc29Smrg exit ;; 5418c9fbc29Smrg ia64:AIX:*:*) 5428c9fbc29Smrg if [ -x /usr/bin/oslevel ] ; then 5438c9fbc29Smrg IBM_REV=`/usr/bin/oslevel` 5448c9fbc29Smrg else 5458c9fbc29Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5468c9fbc29Smrg fi 5478c9fbc29Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 5488c9fbc29Smrg exit ;; 5498c9fbc29Smrg *:AIX:2:3) 5508c9fbc29Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 5518c9fbc29Smrg eval $set_cc_for_build 5528c9fbc29Smrg sed 's/^ //' << EOF >$dummy.c 5538c9fbc29Smrg #include <sys/systemcfg.h> 5548c9fbc29Smrg 5558c9fbc29Smrg main() 5568c9fbc29Smrg { 5578c9fbc29Smrg if (!__power_pc()) 5588c9fbc29Smrg exit(1); 5598c9fbc29Smrg puts("powerpc-ibm-aix3.2.5"); 5608c9fbc29Smrg exit(0); 5618c9fbc29Smrg } 5628c9fbc29SmrgEOF 5638c9fbc29Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 5648c9fbc29Smrg then 5658c9fbc29Smrg echo "$SYSTEM_NAME" 5668c9fbc29Smrg else 5678c9fbc29Smrg echo rs6000-ibm-aix3.2.5 5688c9fbc29Smrg fi 5698c9fbc29Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 5708c9fbc29Smrg echo rs6000-ibm-aix3.2.4 5718c9fbc29Smrg else 5728c9fbc29Smrg echo rs6000-ibm-aix3.2 5738c9fbc29Smrg fi 5748c9fbc29Smrg exit ;; 5754cd6a3aeSmrg *:AIX:*:[4567]) 5768c9fbc29Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 5778c9fbc29Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 5788c9fbc29Smrg IBM_ARCH=rs6000 5798c9fbc29Smrg else 5808c9fbc29Smrg IBM_ARCH=powerpc 5818c9fbc29Smrg fi 58270728a38Smrg if [ -x /usr/bin/lslpp ] ; then 58370728a38Smrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 58470728a38Smrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 5858c9fbc29Smrg else 5868c9fbc29Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5878c9fbc29Smrg fi 5888c9fbc29Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 5898c9fbc29Smrg exit ;; 5908c9fbc29Smrg *:AIX:*:*) 5918c9fbc29Smrg echo rs6000-ibm-aix 5928c9fbc29Smrg exit ;; 5938c9fbc29Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 5948c9fbc29Smrg echo romp-ibm-bsd4.4 5958c9fbc29Smrg exit ;; 5968c9fbc29Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 5978c9fbc29Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 5988c9fbc29Smrg exit ;; # report: romp-ibm BSD 4.3 5998c9fbc29Smrg *:BOSX:*:*) 6008c9fbc29Smrg echo rs6000-bull-bosx 6018c9fbc29Smrg exit ;; 6028c9fbc29Smrg DPX/2?00:B.O.S.:*:*) 6038c9fbc29Smrg echo m68k-bull-sysv3 6048c9fbc29Smrg exit ;; 6058c9fbc29Smrg 9000/[34]??:4.3bsd:1.*:*) 6068c9fbc29Smrg echo m68k-hp-bsd 6078c9fbc29Smrg exit ;; 6088c9fbc29Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 6098c9fbc29Smrg echo m68k-hp-bsd4.4 6108c9fbc29Smrg exit ;; 6118c9fbc29Smrg 9000/[34678]??:HP-UX:*:*) 6128c9fbc29Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6138c9fbc29Smrg case "${UNAME_MACHINE}" in 6148c9fbc29Smrg 9000/31? ) HP_ARCH=m68000 ;; 6158c9fbc29Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 6168c9fbc29Smrg 9000/[678][0-9][0-9]) 6178c9fbc29Smrg if [ -x /usr/bin/getconf ]; then 6188c9fbc29Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 61970728a38Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 62070728a38Smrg case "${sc_cpu_version}" in 62170728a38Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 62270728a38Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 62370728a38Smrg 532) # CPU_PA_RISC2_0 62470728a38Smrg case "${sc_kernel_bits}" in 62570728a38Smrg 32) HP_ARCH="hppa2.0n" ;; 62670728a38Smrg 64) HP_ARCH="hppa2.0w" ;; 6278c9fbc29Smrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 62870728a38Smrg esac ;; 62970728a38Smrg esac 6308c9fbc29Smrg fi 6318c9fbc29Smrg if [ "${HP_ARCH}" = "" ]; then 6328c9fbc29Smrg eval $set_cc_for_build 63370728a38Smrg sed 's/^ //' << EOF >$dummy.c 6348c9fbc29Smrg 63570728a38Smrg #define _HPUX_SOURCE 63670728a38Smrg #include <stdlib.h> 63770728a38Smrg #include <unistd.h> 6388c9fbc29Smrg 63970728a38Smrg int main () 64070728a38Smrg { 64170728a38Smrg #if defined(_SC_KERNEL_BITS) 64270728a38Smrg long bits = sysconf(_SC_KERNEL_BITS); 64370728a38Smrg #endif 64470728a38Smrg long cpu = sysconf (_SC_CPU_VERSION); 6458c9fbc29Smrg 64670728a38Smrg switch (cpu) 64770728a38Smrg { 64870728a38Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 64970728a38Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 65070728a38Smrg case CPU_PA_RISC2_0: 65170728a38Smrg #if defined(_SC_KERNEL_BITS) 65270728a38Smrg switch (bits) 65370728a38Smrg { 65470728a38Smrg case 64: puts ("hppa2.0w"); break; 65570728a38Smrg case 32: puts ("hppa2.0n"); break; 65670728a38Smrg default: puts ("hppa2.0"); break; 65770728a38Smrg } break; 65870728a38Smrg #else /* !defined(_SC_KERNEL_BITS) */ 65970728a38Smrg puts ("hppa2.0"); break; 66070728a38Smrg #endif 66170728a38Smrg default: puts ("hppa1.0"); break; 66270728a38Smrg } 66370728a38Smrg exit (0); 66470728a38Smrg } 6658c9fbc29SmrgEOF 6668c9fbc29Smrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 6678c9fbc29Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 6688c9fbc29Smrg fi ;; 6698c9fbc29Smrg esac 6708c9fbc29Smrg if [ ${HP_ARCH} = "hppa2.0w" ] 6718c9fbc29Smrg then 6728c9fbc29Smrg eval $set_cc_for_build 6738c9fbc29Smrg 6748c9fbc29Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 6758c9fbc29Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 6768c9fbc29Smrg # generating 64-bit code. GNU and HP use different nomenclature: 6778c9fbc29Smrg # 6788c9fbc29Smrg # $ CC_FOR_BUILD=cc ./config.guess 6798c9fbc29Smrg # => hppa2.0w-hp-hpux11.23 6808c9fbc29Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 6818c9fbc29Smrg # => hppa64-hp-hpux11.23 6828c9fbc29Smrg 6838c9fbc29Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 6844cd6a3aeSmrg grep -q __LP64__ 6858c9fbc29Smrg then 6868c9fbc29Smrg HP_ARCH="hppa2.0w" 6878c9fbc29Smrg else 6888c9fbc29Smrg HP_ARCH="hppa64" 6898c9fbc29Smrg fi 6908c9fbc29Smrg fi 6918c9fbc29Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 6928c9fbc29Smrg exit ;; 6938c9fbc29Smrg ia64:HP-UX:*:*) 6948c9fbc29Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6958c9fbc29Smrg echo ia64-hp-hpux${HPUX_REV} 6968c9fbc29Smrg exit ;; 6978c9fbc29Smrg 3050*:HI-UX:*:*) 6988c9fbc29Smrg eval $set_cc_for_build 6998c9fbc29Smrg sed 's/^ //' << EOF >$dummy.c 7008c9fbc29Smrg #include <unistd.h> 7018c9fbc29Smrg int 7028c9fbc29Smrg main () 7038c9fbc29Smrg { 7048c9fbc29Smrg long cpu = sysconf (_SC_CPU_VERSION); 7058c9fbc29Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 7068c9fbc29Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 7078c9fbc29Smrg results, however. */ 7088c9fbc29Smrg if (CPU_IS_PA_RISC (cpu)) 7098c9fbc29Smrg { 7108c9fbc29Smrg switch (cpu) 7118c9fbc29Smrg { 7128c9fbc29Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 7138c9fbc29Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 7148c9fbc29Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 7158c9fbc29Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 7168c9fbc29Smrg } 7178c9fbc29Smrg } 7188c9fbc29Smrg else if (CPU_IS_HP_MC68K (cpu)) 7198c9fbc29Smrg puts ("m68k-hitachi-hiuxwe2"); 7208c9fbc29Smrg else puts ("unknown-hitachi-hiuxwe2"); 7218c9fbc29Smrg exit (0); 7228c9fbc29Smrg } 7238c9fbc29SmrgEOF 7248c9fbc29Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 7258c9fbc29Smrg { echo "$SYSTEM_NAME"; exit; } 7268c9fbc29Smrg echo unknown-hitachi-hiuxwe2 7278c9fbc29Smrg exit ;; 7288c9fbc29Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 7298c9fbc29Smrg echo hppa1.1-hp-bsd 7308c9fbc29Smrg exit ;; 7318c9fbc29Smrg 9000/8??:4.3bsd:*:*) 7328c9fbc29Smrg echo hppa1.0-hp-bsd 7338c9fbc29Smrg exit ;; 7348c9fbc29Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 7358c9fbc29Smrg echo hppa1.0-hp-mpeix 7368c9fbc29Smrg exit ;; 7378c9fbc29Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 7388c9fbc29Smrg echo hppa1.1-hp-osf 7398c9fbc29Smrg exit ;; 7408c9fbc29Smrg hp8??:OSF1:*:*) 7418c9fbc29Smrg echo hppa1.0-hp-osf 7428c9fbc29Smrg exit ;; 7438c9fbc29Smrg i*86:OSF1:*:*) 7448c9fbc29Smrg if [ -x /usr/sbin/sysversion ] ; then 7458c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 7468c9fbc29Smrg else 7478c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-osf1 7488c9fbc29Smrg fi 7498c9fbc29Smrg exit ;; 7508c9fbc29Smrg parisc*:Lites*:*:*) 7518c9fbc29Smrg echo hppa1.1-hp-lites 7528c9fbc29Smrg exit ;; 7538c9fbc29Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7548c9fbc29Smrg echo c1-convex-bsd 75570728a38Smrg exit ;; 7568c9fbc29Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7578c9fbc29Smrg if getsysinfo -f scalar_acc 7588c9fbc29Smrg then echo c32-convex-bsd 7598c9fbc29Smrg else echo c2-convex-bsd 7608c9fbc29Smrg fi 76170728a38Smrg exit ;; 7628c9fbc29Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7638c9fbc29Smrg echo c34-convex-bsd 76470728a38Smrg exit ;; 7658c9fbc29Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7668c9fbc29Smrg echo c38-convex-bsd 76770728a38Smrg exit ;; 7688c9fbc29Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 7698c9fbc29Smrg echo c4-convex-bsd 77070728a38Smrg exit ;; 7718c9fbc29Smrg CRAY*Y-MP:*:*:*) 7728c9fbc29Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7738c9fbc29Smrg exit ;; 7748c9fbc29Smrg CRAY*[A-Z]90:*:*:*) 7758c9fbc29Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 7768c9fbc29Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 7778c9fbc29Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 7788c9fbc29Smrg -e 's/\.[^.]*$/.X/' 7798c9fbc29Smrg exit ;; 7808c9fbc29Smrg CRAY*TS:*:*:*) 7818c9fbc29Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7828c9fbc29Smrg exit ;; 7838c9fbc29Smrg CRAY*T3E:*:*:*) 7848c9fbc29Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7858c9fbc29Smrg exit ;; 7868c9fbc29Smrg CRAY*SV1:*:*:*) 7878c9fbc29Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7888c9fbc29Smrg exit ;; 7898c9fbc29Smrg *:UNICOS/mp:*:*) 7908c9fbc29Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7918c9fbc29Smrg exit ;; 7928c9fbc29Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 7938c9fbc29Smrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 79470728a38Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 79570728a38Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 79670728a38Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 79770728a38Smrg exit ;; 7988c9fbc29Smrg 5000:UNIX_System_V:4.*:*) 79970728a38Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 80070728a38Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 80170728a38Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 8028c9fbc29Smrg exit ;; 8038c9fbc29Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 8048c9fbc29Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 8058c9fbc29Smrg exit ;; 8068c9fbc29Smrg sparc*:BSD/OS:*:*) 8078c9fbc29Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 8088c9fbc29Smrg exit ;; 8098c9fbc29Smrg *:BSD/OS:*:*) 8108c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 8118c9fbc29Smrg exit ;; 8128c9fbc29Smrg *:FreeBSD:*:*) 81370728a38Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 81470728a38Smrg case ${UNAME_PROCESSOR} in 8154e411241Smrg amd64) 8164e411241Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8174e411241Smrg *) 81870728a38Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 8194e411241Smrg esac 8208c9fbc29Smrg exit ;; 8218c9fbc29Smrg i*:CYGWIN*:*) 8228c9fbc29Smrg echo ${UNAME_MACHINE}-pc-cygwin 8238c9fbc29Smrg exit ;; 82470728a38Smrg *:MINGW64*:*) 82570728a38Smrg echo ${UNAME_MACHINE}-pc-mingw64 82670728a38Smrg exit ;; 8274e411241Smrg *:MINGW*:*) 8288c9fbc29Smrg echo ${UNAME_MACHINE}-pc-mingw32 8298c9fbc29Smrg exit ;; 83070728a38Smrg *:MSYS*:*) 83170728a38Smrg echo ${UNAME_MACHINE}-pc-msys 83270728a38Smrg exit ;; 8338c9fbc29Smrg i*:windows32*:*) 83470728a38Smrg # uname -m includes "-pc" on this system. 83570728a38Smrg echo ${UNAME_MACHINE}-mingw32 8368c9fbc29Smrg exit ;; 8378c9fbc29Smrg i*:PW*:*) 8388c9fbc29Smrg echo ${UNAME_MACHINE}-pc-pw32 8398c9fbc29Smrg exit ;; 8404cd6a3aeSmrg *:Interix*:*) 84170728a38Smrg case ${UNAME_MACHINE} in 8424e411241Smrg x86) 8434e411241Smrg echo i586-pc-interix${UNAME_RELEASE} 8444e411241Smrg exit ;; 8454cd6a3aeSmrg authenticamd | genuineintel | EM64T) 8464e411241Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 8474e411241Smrg exit ;; 8484e411241Smrg IA64) 8494e411241Smrg echo ia64-unknown-interix${UNAME_RELEASE} 8504e411241Smrg exit ;; 8514e411241Smrg esac ;; 8528c9fbc29Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 8538c9fbc29Smrg echo i${UNAME_MACHINE}-pc-mks 8548c9fbc29Smrg exit ;; 8554cd6a3aeSmrg 8664:Windows_NT:*) 8564cd6a3aeSmrg echo x86_64-pc-mks 8574cd6a3aeSmrg exit ;; 8588c9fbc29Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 8598c9fbc29Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 8608c9fbc29Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 8618c9fbc29Smrg # UNAME_MACHINE based on the output of uname instead of i386? 8628c9fbc29Smrg echo i586-pc-interix 8638c9fbc29Smrg exit ;; 8648c9fbc29Smrg i*:UWIN*:*) 8658c9fbc29Smrg echo ${UNAME_MACHINE}-pc-uwin 8668c9fbc29Smrg exit ;; 8678c9fbc29Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8688c9fbc29Smrg echo x86_64-unknown-cygwin 8698c9fbc29Smrg exit ;; 8708c9fbc29Smrg p*:CYGWIN*:*) 8718c9fbc29Smrg echo powerpcle-unknown-cygwin 8728c9fbc29Smrg exit ;; 8738c9fbc29Smrg prep*:SunOS:5.*:*) 8748c9fbc29Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 8758c9fbc29Smrg exit ;; 8768c9fbc29Smrg *:GNU:*:*) 8778c9fbc29Smrg # the GNU system 87870728a38Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 8798c9fbc29Smrg exit ;; 8808c9fbc29Smrg *:GNU/*:*:*) 8818c9fbc29Smrg # other systems with GNU libc and userland 88270728a38Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 8838c9fbc29Smrg exit ;; 8848c9fbc29Smrg i*86:Minix:*:*) 8858c9fbc29Smrg echo ${UNAME_MACHINE}-pc-minix 8868c9fbc29Smrg exit ;; 88770728a38Smrg aarch64:Linux:*:*) 88870728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 88970728a38Smrg exit ;; 89070728a38Smrg aarch64_be:Linux:*:*) 89170728a38Smrg UNAME_MACHINE=aarch64_be 89270728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 89370728a38Smrg exit ;; 8944cd6a3aeSmrg alpha:Linux:*:*) 8954cd6a3aeSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 8964cd6a3aeSmrg EV5) UNAME_MACHINE=alphaev5 ;; 8974cd6a3aeSmrg EV56) UNAME_MACHINE=alphaev56 ;; 8984cd6a3aeSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 8994cd6a3aeSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 9004cd6a3aeSmrg EV6) UNAME_MACHINE=alphaev6 ;; 9014cd6a3aeSmrg EV67) UNAME_MACHINE=alphaev67 ;; 9024cd6a3aeSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 90370728a38Smrg esac 9044cd6a3aeSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 90570728a38Smrg if test "$?" = 0 ; then LIBC="gnulibc1" ; fi 90670728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 90770728a38Smrg exit ;; 90870728a38Smrg arc:Linux:*:* | arceb:Linux:*:*) 90970728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9104cd6a3aeSmrg exit ;; 9118c9fbc29Smrg arm*:Linux:*:*) 9124e411241Smrg eval $set_cc_for_build 9134e411241Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 9144e411241Smrg | grep -q __ARM_EABI__ 9154e411241Smrg then 91670728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9174e411241Smrg else 91870728a38Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 91970728a38Smrg | grep -q __ARM_PCS_VFP 92070728a38Smrg then 92170728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 92270728a38Smrg else 92370728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 92470728a38Smrg fi 9254e411241Smrg fi 9264e411241Smrg exit ;; 9274e411241Smrg avr32*:Linux:*:*) 92870728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9298c9fbc29Smrg exit ;; 9308c9fbc29Smrg cris:Linux:*:*) 93170728a38Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9328c9fbc29Smrg exit ;; 9338c9fbc29Smrg crisv32:Linux:*:*) 93470728a38Smrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 9358c9fbc29Smrg exit ;; 9368c9fbc29Smrg frv:Linux:*:*) 93770728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 93870728a38Smrg exit ;; 93970728a38Smrg hexagon:Linux:*:*) 94070728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9418c9fbc29Smrg exit ;; 9424cd6a3aeSmrg i*86:Linux:*:*) 94370728a38Smrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 9444cd6a3aeSmrg exit ;; 9458c9fbc29Smrg ia64:Linux:*:*) 94670728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9478c9fbc29Smrg exit ;; 9488c9fbc29Smrg m32r*:Linux:*:*) 94970728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9508c9fbc29Smrg exit ;; 9518c9fbc29Smrg m68*:Linux:*:*) 95270728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9538c9fbc29Smrg exit ;; 9544cd6a3aeSmrg mips:Linux:*:* | mips64:Linux:*:*) 9558c9fbc29Smrg eval $set_cc_for_build 9568c9fbc29Smrg sed 's/^ //' << EOF >$dummy.c 9578c9fbc29Smrg #undef CPU 9584cd6a3aeSmrg #undef ${UNAME_MACHINE} 9594cd6a3aeSmrg #undef ${UNAME_MACHINE}el 9608c9fbc29Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 9614cd6a3aeSmrg CPU=${UNAME_MACHINE}el 9628c9fbc29Smrg #else 9638c9fbc29Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 9644cd6a3aeSmrg CPU=${UNAME_MACHINE} 9658c9fbc29Smrg #else 9668c9fbc29Smrg CPU= 9678c9fbc29Smrg #endif 9688c9fbc29Smrg #endif 9698c9fbc29SmrgEOF 9704cd6a3aeSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 97170728a38Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 9728c9fbc29Smrg ;; 97370728a38Smrg openrisc*:Linux:*:*) 97470728a38Smrg echo or1k-unknown-linux-${LIBC} 97570728a38Smrg exit ;; 97670728a38Smrg or32:Linux:*:* | or1k*:Linux:*:*) 97770728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 9788c9fbc29Smrg exit ;; 9794cd6a3aeSmrg padre:Linux:*:*) 98070728a38Smrg echo sparc-unknown-linux-${LIBC} 9818c9fbc29Smrg exit ;; 9824cd6a3aeSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 98370728a38Smrg echo hppa64-unknown-linux-${LIBC} 9848c9fbc29Smrg exit ;; 9858c9fbc29Smrg parisc:Linux:*:* | hppa:Linux:*:*) 9868c9fbc29Smrg # Look for CPU level 9878c9fbc29Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 98870728a38Smrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 98970728a38Smrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 99070728a38Smrg *) echo hppa-unknown-linux-${LIBC} ;; 9918c9fbc29Smrg esac 9928c9fbc29Smrg exit ;; 9934cd6a3aeSmrg ppc64:Linux:*:*) 99470728a38Smrg echo powerpc64-unknown-linux-${LIBC} 9954cd6a3aeSmrg exit ;; 9964cd6a3aeSmrg ppc:Linux:*:*) 99770728a38Smrg echo powerpc-unknown-linux-${LIBC} 99870728a38Smrg exit ;; 99970728a38Smrg ppc64le:Linux:*:*) 100070728a38Smrg echo powerpc64le-unknown-linux-${LIBC} 100170728a38Smrg exit ;; 100270728a38Smrg ppcle:Linux:*:*) 100370728a38Smrg echo powerpcle-unknown-linux-${LIBC} 10048c9fbc29Smrg exit ;; 10058c9fbc29Smrg s390:Linux:*:* | s390x:Linux:*:*) 100670728a38Smrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 10078c9fbc29Smrg exit ;; 10088c9fbc29Smrg sh64*:Linux:*:*) 100970728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10108c9fbc29Smrg exit ;; 10118c9fbc29Smrg sh*:Linux:*:*) 101270728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10138c9fbc29Smrg exit ;; 10148c9fbc29Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 101570728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10168c9fbc29Smrg exit ;; 10174cd6a3aeSmrg tile*:Linux:*:*) 101870728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10194cd6a3aeSmrg exit ;; 10208c9fbc29Smrg vax:Linux:*:*) 102170728a38Smrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 10228c9fbc29Smrg exit ;; 10238c9fbc29Smrg x86_64:Linux:*:*) 102470728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10258c9fbc29Smrg exit ;; 10264e411241Smrg xtensa*:Linux:*:*) 102770728a38Smrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 10284e411241Smrg exit ;; 10298c9fbc29Smrg i*86:DYNIX/ptx:4*:*) 10308c9fbc29Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10318c9fbc29Smrg # earlier versions are messed up and put the nodename in both 10328c9fbc29Smrg # sysname and nodename. 10338c9fbc29Smrg echo i386-sequent-sysv4 10348c9fbc29Smrg exit ;; 10358c9fbc29Smrg i*86:UNIX_SV:4.2MP:2.*) 103670728a38Smrg # Unixware is an offshoot of SVR4, but it has its own version 103770728a38Smrg # number series starting with 2... 103870728a38Smrg # I am not positive that other SVR4 systems won't match this, 10398c9fbc29Smrg # I just have to hope. -- rms. 104070728a38Smrg # Use sysv4.2uw... so that sysv4* matches it. 10418c9fbc29Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 10428c9fbc29Smrg exit ;; 10438c9fbc29Smrg i*86:OS/2:*:*) 10448c9fbc29Smrg # If we were able to find `uname', then EMX Unix compatibility 10458c9fbc29Smrg # is probably installed. 10468c9fbc29Smrg echo ${UNAME_MACHINE}-pc-os2-emx 10478c9fbc29Smrg exit ;; 10488c9fbc29Smrg i*86:XTS-300:*:STOP) 10498c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-stop 10508c9fbc29Smrg exit ;; 10518c9fbc29Smrg i*86:atheos:*:*) 10528c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-atheos 10538c9fbc29Smrg exit ;; 10548c9fbc29Smrg i*86:syllable:*:*) 10558c9fbc29Smrg echo ${UNAME_MACHINE}-pc-syllable 10568c9fbc29Smrg exit ;; 10574cd6a3aeSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 10588c9fbc29Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 10598c9fbc29Smrg exit ;; 10608c9fbc29Smrg i*86:*DOS:*:*) 10618c9fbc29Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 10628c9fbc29Smrg exit ;; 10638c9fbc29Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 10648c9fbc29Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 10658c9fbc29Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 10668c9fbc29Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 10678c9fbc29Smrg else 10688c9fbc29Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 10698c9fbc29Smrg fi 10708c9fbc29Smrg exit ;; 10718c9fbc29Smrg i*86:*:5:[678]*) 107270728a38Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10738c9fbc29Smrg case `/bin/uname -X | grep "^Machine"` in 10748c9fbc29Smrg *486*) UNAME_MACHINE=i486 ;; 10758c9fbc29Smrg *Pentium) UNAME_MACHINE=i586 ;; 10768c9fbc29Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 10778c9fbc29Smrg esac 10788c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 10798c9fbc29Smrg exit ;; 10808c9fbc29Smrg i*86:*:3.2:*) 10818c9fbc29Smrg if test -f /usr/options/cb.name; then 10828c9fbc29Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 10838c9fbc29Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 10848c9fbc29Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 10858c9fbc29Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 10868c9fbc29Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 10878c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 10888c9fbc29Smrg && UNAME_MACHINE=i586 10898c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 10908c9fbc29Smrg && UNAME_MACHINE=i686 10918c9fbc29Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 10928c9fbc29Smrg && UNAME_MACHINE=i686 10938c9fbc29Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 10948c9fbc29Smrg else 10958c9fbc29Smrg echo ${UNAME_MACHINE}-pc-sysv32 10968c9fbc29Smrg fi 10978c9fbc29Smrg exit ;; 10988c9fbc29Smrg pc:*:*:*) 10998c9fbc29Smrg # Left here for compatibility: 110070728a38Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 110170728a38Smrg # the processor, so we play safe by assuming i586. 11024cd6a3aeSmrg # Note: whatever this is, it MUST be the same as what config.sub 11034cd6a3aeSmrg # prints for the "djgpp" host, or else GDB configury will decide that 11044cd6a3aeSmrg # this is a cross-build. 11054cd6a3aeSmrg echo i586-pc-msdosdjgpp 110670728a38Smrg exit ;; 11078c9fbc29Smrg Intel:Mach:3*:*) 11088c9fbc29Smrg echo i386-pc-mach3 11098c9fbc29Smrg exit ;; 11108c9fbc29Smrg paragon:*:*:*) 11118c9fbc29Smrg echo i860-intel-osf1 11128c9fbc29Smrg exit ;; 11138c9fbc29Smrg i860:*:4.*:*) # i860-SVR4 11148c9fbc29Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 11158c9fbc29Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 11168c9fbc29Smrg else # Add other i860-SVR4 vendors below as they are discovered. 11178c9fbc29Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 11188c9fbc29Smrg fi 11198c9fbc29Smrg exit ;; 11208c9fbc29Smrg mini*:CTIX:SYS*5:*) 11218c9fbc29Smrg # "miniframe" 11228c9fbc29Smrg echo m68010-convergent-sysv 11238c9fbc29Smrg exit ;; 11248c9fbc29Smrg mc68k:UNIX:SYSTEM5:3.51m) 11258c9fbc29Smrg echo m68k-convergent-sysv 11268c9fbc29Smrg exit ;; 11278c9fbc29Smrg M680?0:D-NIX:5.3:*) 11288c9fbc29Smrg echo m68k-diab-dnix 11298c9fbc29Smrg exit ;; 11308c9fbc29Smrg M68*:*:R3V[5678]*:*) 11318c9fbc29Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11328c9fbc29Smrg 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) 11338c9fbc29Smrg OS_REL='' 11348c9fbc29Smrg test -r /etc/.relid \ 11358c9fbc29Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11368c9fbc29Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11378c9fbc29Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11388c9fbc29Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11398c9fbc29Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11408c9fbc29Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 114170728a38Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114270728a38Smrg && { echo i486-ncr-sysv4; exit; } ;; 11434cd6a3aeSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 11444cd6a3aeSmrg OS_REL='.3' 11454cd6a3aeSmrg test -r /etc/.relid \ 11464cd6a3aeSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11474cd6a3aeSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11484cd6a3aeSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11494cd6a3aeSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11504cd6a3aeSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 11514cd6a3aeSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 11524cd6a3aeSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11538c9fbc29Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 11548c9fbc29Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 11558c9fbc29Smrg exit ;; 11568c9fbc29Smrg mc68030:UNIX_System_V:4.*:*) 11578c9fbc29Smrg echo m68k-atari-sysv4 11588c9fbc29Smrg exit ;; 11598c9fbc29Smrg TSUNAMI:LynxOS:2.*:*) 11608c9fbc29Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 11618c9fbc29Smrg exit ;; 11628c9fbc29Smrg rs6000:LynxOS:2.*:*) 11638c9fbc29Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 11648c9fbc29Smrg exit ;; 11654cd6a3aeSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 11668c9fbc29Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 11678c9fbc29Smrg exit ;; 11688c9fbc29Smrg SM[BE]S:UNIX_SV:*:*) 11698c9fbc29Smrg echo mips-dde-sysv${UNAME_RELEASE} 11708c9fbc29Smrg exit ;; 11718c9fbc29Smrg RM*:ReliantUNIX-*:*:*) 11728c9fbc29Smrg echo mips-sni-sysv4 11738c9fbc29Smrg exit ;; 11748c9fbc29Smrg RM*:SINIX-*:*:*) 11758c9fbc29Smrg echo mips-sni-sysv4 11768c9fbc29Smrg exit ;; 11778c9fbc29Smrg *:SINIX-*:*:*) 11788c9fbc29Smrg if uname -p 2>/dev/null >/dev/null ; then 11798c9fbc29Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 11808c9fbc29Smrg echo ${UNAME_MACHINE}-sni-sysv4 11818c9fbc29Smrg else 11828c9fbc29Smrg echo ns32k-sni-sysv 11838c9fbc29Smrg fi 11848c9fbc29Smrg exit ;; 118570728a38Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 118670728a38Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 118770728a38Smrg echo i586-unisys-sysv4 118870728a38Smrg exit ;; 11898c9fbc29Smrg *:UNIX_System_V:4*:FTX*) 11908c9fbc29Smrg # From Gerald Hewes <hewes@openmarket.com>. 11918c9fbc29Smrg # How about differentiating between stratus architectures? -djm 11928c9fbc29Smrg echo hppa1.1-stratus-sysv4 11938c9fbc29Smrg exit ;; 11948c9fbc29Smrg *:*:*:FTX*) 11958c9fbc29Smrg # From seanf@swdc.stratus.com. 11968c9fbc29Smrg echo i860-stratus-sysv4 11978c9fbc29Smrg exit ;; 11988c9fbc29Smrg i*86:VOS:*:*) 11998c9fbc29Smrg # From Paul.Green@stratus.com. 12008c9fbc29Smrg echo ${UNAME_MACHINE}-stratus-vos 12018c9fbc29Smrg exit ;; 12028c9fbc29Smrg *:VOS:*:*) 12038c9fbc29Smrg # From Paul.Green@stratus.com. 12048c9fbc29Smrg echo hppa1.1-stratus-vos 12058c9fbc29Smrg exit ;; 12068c9fbc29Smrg mc68*:A/UX:*:*) 12078c9fbc29Smrg echo m68k-apple-aux${UNAME_RELEASE} 12088c9fbc29Smrg exit ;; 12098c9fbc29Smrg news*:NEWS-OS:6*:*) 12108c9fbc29Smrg echo mips-sony-newsos6 12118c9fbc29Smrg exit ;; 12128c9fbc29Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 12138c9fbc29Smrg if [ -d /usr/nec ]; then 121470728a38Smrg echo mips-nec-sysv${UNAME_RELEASE} 12158c9fbc29Smrg else 121670728a38Smrg echo mips-unknown-sysv${UNAME_RELEASE} 12178c9fbc29Smrg fi 121870728a38Smrg exit ;; 12198c9fbc29Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 12208c9fbc29Smrg echo powerpc-be-beos 12218c9fbc29Smrg exit ;; 12228c9fbc29Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 12238c9fbc29Smrg echo powerpc-apple-beos 12248c9fbc29Smrg exit ;; 12258c9fbc29Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 12268c9fbc29Smrg echo i586-pc-beos 12278c9fbc29Smrg exit ;; 12284cd6a3aeSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 12294cd6a3aeSmrg echo i586-pc-haiku 12304cd6a3aeSmrg exit ;; 123170728a38Smrg x86_64:Haiku:*:*) 123270728a38Smrg echo x86_64-unknown-haiku 123370728a38Smrg exit ;; 12348c9fbc29Smrg SX-4:SUPER-UX:*:*) 12358c9fbc29Smrg echo sx4-nec-superux${UNAME_RELEASE} 12368c9fbc29Smrg exit ;; 12378c9fbc29Smrg SX-5:SUPER-UX:*:*) 12388c9fbc29Smrg echo sx5-nec-superux${UNAME_RELEASE} 12398c9fbc29Smrg exit ;; 12408c9fbc29Smrg SX-6:SUPER-UX:*:*) 12418c9fbc29Smrg echo sx6-nec-superux${UNAME_RELEASE} 12428c9fbc29Smrg exit ;; 12434e411241Smrg SX-7:SUPER-UX:*:*) 12444e411241Smrg echo sx7-nec-superux${UNAME_RELEASE} 12454e411241Smrg exit ;; 12464e411241Smrg SX-8:SUPER-UX:*:*) 12474e411241Smrg echo sx8-nec-superux${UNAME_RELEASE} 12484e411241Smrg exit ;; 12494e411241Smrg SX-8R:SUPER-UX:*:*) 12504e411241Smrg echo sx8r-nec-superux${UNAME_RELEASE} 12514e411241Smrg exit ;; 12528c9fbc29Smrg Power*:Rhapsody:*:*) 12538c9fbc29Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 12548c9fbc29Smrg exit ;; 12558c9fbc29Smrg *:Rhapsody:*:*) 12568c9fbc29Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12578c9fbc29Smrg exit ;; 12588c9fbc29Smrg *:Darwin:*:*) 12598c9fbc29Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 126070728a38Smrg eval $set_cc_for_build 126170728a38Smrg if test "$UNAME_PROCESSOR" = unknown ; then 126270728a38Smrg UNAME_PROCESSOR=powerpc 126370728a38Smrg fi 126470728a38Smrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 126570728a38Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 126670728a38Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 126770728a38Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 126870728a38Smrg grep IS_64BIT_ARCH >/dev/null 126970728a38Smrg then 127070728a38Smrg case $UNAME_PROCESSOR in 127170728a38Smrg i386) UNAME_PROCESSOR=x86_64 ;; 127270728a38Smrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 127370728a38Smrg esac 127470728a38Smrg fi 127570728a38Smrg fi 127670728a38Smrg elif test "$UNAME_PROCESSOR" = i386 ; then 127770728a38Smrg # Avoid executing cc on OS X 10.9, as it ships with a stub 127870728a38Smrg # that puts up a graphical alert prompting to install 127970728a38Smrg # developer tools. Any system running Mac OS X 10.7 or 128070728a38Smrg # later (Darwin 11 and later) is required to have a 64-bit 128170728a38Smrg # processor. This is not true of the ARM version of Darwin 128270728a38Smrg # that Apple uses in portable devices. 128370728a38Smrg UNAME_PROCESSOR=x86_64 128470728a38Smrg fi 12858c9fbc29Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 12868c9fbc29Smrg exit ;; 12878c9fbc29Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 12888c9fbc29Smrg UNAME_PROCESSOR=`uname -p` 12898c9fbc29Smrg if test "$UNAME_PROCESSOR" = "x86"; then 12908c9fbc29Smrg UNAME_PROCESSOR=i386 12918c9fbc29Smrg UNAME_MACHINE=pc 12928c9fbc29Smrg fi 12938c9fbc29Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 12948c9fbc29Smrg exit ;; 12958c9fbc29Smrg *:QNX:*:4*) 12968c9fbc29Smrg echo i386-pc-qnx 12978c9fbc29Smrg exit ;; 129870728a38Smrg NEO-?:NONSTOP_KERNEL:*:*) 129970728a38Smrg echo neo-tandem-nsk${UNAME_RELEASE} 130070728a38Smrg exit ;; 130170728a38Smrg NSE-*:NONSTOP_KERNEL:*:*) 13028c9fbc29Smrg echo nse-tandem-nsk${UNAME_RELEASE} 13038c9fbc29Smrg exit ;; 13048c9fbc29Smrg NSR-?:NONSTOP_KERNEL:*:*) 13058c9fbc29Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 13068c9fbc29Smrg exit ;; 13078c9fbc29Smrg *:NonStop-UX:*:*) 13088c9fbc29Smrg echo mips-compaq-nonstopux 13098c9fbc29Smrg exit ;; 13108c9fbc29Smrg BS2000:POSIX*:*:*) 13118c9fbc29Smrg echo bs2000-siemens-sysv 13128c9fbc29Smrg exit ;; 13138c9fbc29Smrg DS/*:UNIX_System_V:*:*) 13148c9fbc29Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 13158c9fbc29Smrg exit ;; 13168c9fbc29Smrg *:Plan9:*:*) 13178c9fbc29Smrg # "uname -m" is not consistent, so use $cputype instead. 386 13188c9fbc29Smrg # is converted to i386 for consistency with other x86 13198c9fbc29Smrg # operating systems. 13208c9fbc29Smrg if test "$cputype" = "386"; then 13218c9fbc29Smrg UNAME_MACHINE=i386 13228c9fbc29Smrg else 13238c9fbc29Smrg UNAME_MACHINE="$cputype" 13248c9fbc29Smrg fi 13258c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-plan9 13268c9fbc29Smrg exit ;; 13278c9fbc29Smrg *:TOPS-10:*:*) 13288c9fbc29Smrg echo pdp10-unknown-tops10 13298c9fbc29Smrg exit ;; 13308c9fbc29Smrg *:TENEX:*:*) 13318c9fbc29Smrg echo pdp10-unknown-tenex 13328c9fbc29Smrg exit ;; 13338c9fbc29Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 13348c9fbc29Smrg echo pdp10-dec-tops20 13358c9fbc29Smrg exit ;; 13368c9fbc29Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 13378c9fbc29Smrg echo pdp10-xkl-tops20 13388c9fbc29Smrg exit ;; 13398c9fbc29Smrg *:TOPS-20:*:*) 13408c9fbc29Smrg echo pdp10-unknown-tops20 13418c9fbc29Smrg exit ;; 13428c9fbc29Smrg *:ITS:*:*) 13438c9fbc29Smrg echo pdp10-unknown-its 13448c9fbc29Smrg exit ;; 13458c9fbc29Smrg SEI:*:*:SEIUX) 134670728a38Smrg echo mips-sei-seiux${UNAME_RELEASE} 13478c9fbc29Smrg exit ;; 13488c9fbc29Smrg *:DragonFly:*:*) 13498c9fbc29Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 13508c9fbc29Smrg exit ;; 13518c9fbc29Smrg *:*VMS:*:*) 135270728a38Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 13538c9fbc29Smrg case "${UNAME_MACHINE}" in 13548c9fbc29Smrg A*) echo alpha-dec-vms ; exit ;; 13558c9fbc29Smrg I*) echo ia64-dec-vms ; exit ;; 13568c9fbc29Smrg V*) echo vax-dec-vms ; exit ;; 13578c9fbc29Smrg esac ;; 13588c9fbc29Smrg *:XENIX:*:SysV) 13598c9fbc29Smrg echo i386-pc-xenix 13608c9fbc29Smrg exit ;; 13618c9fbc29Smrg i*86:skyos:*:*) 13628c9fbc29Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 13638c9fbc29Smrg exit ;; 13648c9fbc29Smrg i*86:rdos:*:*) 13658c9fbc29Smrg echo ${UNAME_MACHINE}-pc-rdos 13668c9fbc29Smrg exit ;; 13674cd6a3aeSmrg i*86:AROS:*:*) 13684cd6a3aeSmrg echo ${UNAME_MACHINE}-pc-aros 13694cd6a3aeSmrg exit ;; 137070728a38Smrg x86_64:VMkernel:*:*) 137170728a38Smrg echo ${UNAME_MACHINE}-unknown-esx 13728c9fbc29Smrg exit ;; 137370728a38Smrgesac 13748c9fbc29Smrg 13758c9fbc29Smrgcat >&2 <<EOF 13768c9fbc29Smrg$0: unable to guess system type 13778c9fbc29Smrg 13788c9fbc29SmrgThis script, last modified $timestamp, has failed to recognize 13798c9fbc29Smrgthe operating system you are using. It is advised that you 13808c9fbc29Smrgdownload the most up to date version of the config scripts from 13818c9fbc29Smrg 13824e411241Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 13838c9fbc29Smrgand 13844e411241Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 13858c9fbc29Smrg 13868c9fbc29SmrgIf the version you run ($0) is already up to date, please 13878c9fbc29Smrgsend the following data and any information you think might be 13888c9fbc29Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 13898c9fbc29Smrginformation to handle your system. 13908c9fbc29Smrg 13918c9fbc29Smrgconfig.guess timestamp = $timestamp 13928c9fbc29Smrg 13938c9fbc29Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 13948c9fbc29Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 13958c9fbc29Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 13968c9fbc29Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 13978c9fbc29Smrg 13988c9fbc29Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 13998c9fbc29Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 14008c9fbc29Smrg 14018c9fbc29Smrghostinfo = `(hostinfo) 2>/dev/null` 14028c9fbc29Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 14038c9fbc29Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 14048c9fbc29Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 14058c9fbc29Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 14068c9fbc29Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 14078c9fbc29Smrg 14088c9fbc29SmrgUNAME_MACHINE = ${UNAME_MACHINE} 14098c9fbc29SmrgUNAME_RELEASE = ${UNAME_RELEASE} 14108c9fbc29SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 14118c9fbc29SmrgUNAME_VERSION = ${UNAME_VERSION} 14128c9fbc29SmrgEOF 14138c9fbc29Smrg 14148c9fbc29Smrgexit 1 14158c9fbc29Smrg 14168c9fbc29Smrg# Local variables: 14178c9fbc29Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 14188c9fbc29Smrg# time-stamp-start: "timestamp='" 14198c9fbc29Smrg# time-stamp-format: "%:y-%02m-%02d" 14208c9fbc29Smrg# time-stamp-end: "'" 14218c9fbc29Smrg# End: 1422