config.guess revision 3bfa90b6
16df26cacSmrg#! /bin/sh 26df26cacSmrg# Attempt to guess a canonical system name. 36df26cacSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 43bfa90b6Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 53bfa90b6Smrg# 2011, 2012 Free Software Foundation, Inc. 66df26cacSmrg 73bfa90b6Smrgtimestamp='2012-02-10' 86df26cacSmrg 96df26cacSmrg# This file is free software; you can redistribute it and/or modify it 106df26cacSmrg# under the terms of the GNU General Public License as published by 116df26cacSmrg# the Free Software Foundation; either version 2 of the License, or 126df26cacSmrg# (at your option) any later version. 136df26cacSmrg# 146df26cacSmrg# This program is distributed in the hope that it will be useful, but 156df26cacSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 166df26cacSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 176df26cacSmrg# General Public License for more details. 186df26cacSmrg# 196df26cacSmrg# You should have received a copy of the GNU General Public License 203bfa90b6Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 216df26cacSmrg# 226df26cacSmrg# As a special exception to the GNU General Public License, if you 236df26cacSmrg# distribute this file as part of a program that contains a 246df26cacSmrg# configuration script generated by Autoconf, you may include it under 256df26cacSmrg# the same distribution terms that you use for the rest of that program. 266df26cacSmrg 276df26cacSmrg 283bfa90b6Smrg# Originally written by Per Bothner. Please send patches (context 293bfa90b6Smrg# diff format) to <config-patches@gnu.org> and include a ChangeLog 303bfa90b6Smrg# entry. 316df26cacSmrg# 326df26cacSmrg# This script attempts to guess a canonical system name similar to 336df26cacSmrg# config.sub. If it succeeds, it prints the system name on stdout, and 346df26cacSmrg# exits with 0. Otherwise, it exits with 1. 356df26cacSmrg# 363bfa90b6Smrg# You can get the latest version of this script from: 373bfa90b6Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 386df26cacSmrg 396df26cacSmrgme=`echo "$0" | sed -e 's,.*/,,'` 406df26cacSmrg 416df26cacSmrgusage="\ 426df26cacSmrgUsage: $0 [OPTION] 436df26cacSmrg 446df26cacSmrgOutput the configuration name of the system \`$me' is run on. 456df26cacSmrg 466df26cacSmrgOperation modes: 476df26cacSmrg -h, --help print this help, then exit 486df26cacSmrg -t, --time-stamp print date of last modification, then exit 496df26cacSmrg -v, --version print version number, then exit 506df26cacSmrg 516df26cacSmrgReport bugs and patches to <config-patches@gnu.org>." 526df26cacSmrg 536df26cacSmrgversion="\ 546df26cacSmrgGNU config.guess ($timestamp) 556df26cacSmrg 566df26cacSmrgOriginally written by Per Bothner. 573bfa90b6SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 583bfa90b6Smrg2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 593bfa90b6SmrgFree Software Foundation, Inc. 606df26cacSmrg 616df26cacSmrgThis is free software; see the source for copying conditions. There is NO 626df26cacSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 636df26cacSmrg 646df26cacSmrghelp=" 656df26cacSmrgTry \`$me --help' for more information." 666df26cacSmrg 676df26cacSmrg# Parse command line 686df26cacSmrgwhile test $# -gt 0 ; do 696df26cacSmrg case $1 in 706df26cacSmrg --time-stamp | --time* | -t ) 716df26cacSmrg echo "$timestamp" ; exit ;; 726df26cacSmrg --version | -v ) 736df26cacSmrg echo "$version" ; exit ;; 746df26cacSmrg --help | --h* | -h ) 756df26cacSmrg echo "$usage"; exit ;; 766df26cacSmrg -- ) # Stop option processing 776df26cacSmrg shift; break ;; 786df26cacSmrg - ) # Use stdin as input. 796df26cacSmrg break ;; 806df26cacSmrg -* ) 816df26cacSmrg echo "$me: invalid option $1$help" >&2 826df26cacSmrg exit 1 ;; 836df26cacSmrg * ) 846df26cacSmrg break ;; 856df26cacSmrg esac 866df26cacSmrgdone 876df26cacSmrg 886df26cacSmrgif test $# != 0; then 896df26cacSmrg echo "$me: too many arguments$help" >&2 906df26cacSmrg exit 1 916df26cacSmrgfi 926df26cacSmrg 936df26cacSmrgtrap 'exit 1' 1 2 15 946df26cacSmrg 956df26cacSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 966df26cacSmrg# compiler to aid in system detection is discouraged as it requires 976df26cacSmrg# temporary files to be created and, as you can see below, it is a 986df26cacSmrg# headache to deal with in a portable fashion. 996df26cacSmrg 1006df26cacSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 1016df26cacSmrg# use `HOST_CC' if defined, but it is deprecated. 1026df26cacSmrg 1036df26cacSmrg# Portable tmp directory creation inspired by the Autoconf team. 1046df26cacSmrg 1056df26cacSmrgset_cc_for_build=' 1066df26cacSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 1076df26cacSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 1086df26cacSmrg: ${TMPDIR=/tmp} ; 1096df26cacSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 1106df26cacSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 1116df26cacSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 1126df26cacSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 1136df26cacSmrgdummy=$tmp/dummy ; 1146df26cacSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 1156df26cacSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 1166df26cacSmrg ,,) echo "int x;" > $dummy.c ; 1176df26cacSmrg for c in cc gcc c89 c99 ; do 1186df26cacSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 1196df26cacSmrg CC_FOR_BUILD="$c"; break ; 1206df26cacSmrg fi ; 1216df26cacSmrg done ; 1226df26cacSmrg if test x"$CC_FOR_BUILD" = x ; then 1236df26cacSmrg CC_FOR_BUILD=no_compiler_found ; 1246df26cacSmrg fi 1256df26cacSmrg ;; 1266df26cacSmrg ,,*) CC_FOR_BUILD=$CC ;; 1276df26cacSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 1286df26cacSmrgesac ; set_cc_for_build= ;' 1296df26cacSmrg 1306df26cacSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 1316df26cacSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 1326df26cacSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 1336df26cacSmrg PATH=$PATH:/.attbin ; export PATH 1346df26cacSmrgfi 1356df26cacSmrg 1366df26cacSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 1376df26cacSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 1386df26cacSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 1396df26cacSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 1406df26cacSmrg 1416df26cacSmrg# Note: order is significant - the case branches are not exclusive. 1426df26cacSmrg 1436df26cacSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 1446df26cacSmrg *:NetBSD:*:*) 1456df26cacSmrg # NetBSD (nbsd) targets should (where applicable) match one or 1463bfa90b6Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 1476df26cacSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 1486df26cacSmrg # switched to ELF, *-*-netbsd* would select the old 1496df26cacSmrg # object file format. This provides both forward 1506df26cacSmrg # compatibility and a consistent mechanism for selecting the 1516df26cacSmrg # object file format. 1526df26cacSmrg # 1536df26cacSmrg # Note: NetBSD doesn't particularly care about the vendor 1546df26cacSmrg # portion of the name. We always set it to "unknown". 1556df26cacSmrg sysctl="sysctl -n hw.machine_arch" 1566df26cacSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 1576df26cacSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 1586df26cacSmrg case "${UNAME_MACHINE_ARCH}" in 1596df26cacSmrg armeb) machine=armeb-unknown ;; 1606df26cacSmrg arm*) machine=arm-unknown ;; 1616df26cacSmrg sh3el) machine=shl-unknown ;; 1626df26cacSmrg sh3eb) machine=sh-unknown ;; 16316fd1166Smrg sh5el) machine=sh5le-unknown ;; 1646df26cacSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 1656df26cacSmrg esac 1666df26cacSmrg # The Operating System including object format, if it has switched 1676df26cacSmrg # to ELF recently, or will in the future. 1686df26cacSmrg case "${UNAME_MACHINE_ARCH}" in 1696df26cacSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 1706df26cacSmrg eval $set_cc_for_build 1716df26cacSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 1723bfa90b6Smrg | grep -q __ELF__ 1736df26cacSmrg then 1746df26cacSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 1756df26cacSmrg # Return netbsd for either. FIX? 1766df26cacSmrg os=netbsd 1776df26cacSmrg else 1786df26cacSmrg os=netbsdelf 1796df26cacSmrg fi 1806df26cacSmrg ;; 1816df26cacSmrg *) 1823bfa90b6Smrg os=netbsd 1836df26cacSmrg ;; 1846df26cacSmrg esac 1856df26cacSmrg # The OS release 1866df26cacSmrg # Debian GNU/NetBSD machines have a different userland, and 1876df26cacSmrg # thus, need a distinct triplet. However, they do not need 1886df26cacSmrg # kernel version information, so it can be replaced with a 1896df26cacSmrg # suitable tag, in the style of linux-gnu. 1906df26cacSmrg case "${UNAME_VERSION}" in 1916df26cacSmrg Debian*) 1926df26cacSmrg release='-gnu' 1936df26cacSmrg ;; 1946df26cacSmrg *) 1956df26cacSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 1966df26cacSmrg ;; 1976df26cacSmrg esac 1986df26cacSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 1996df26cacSmrg # contains redundant information, the shorter form: 2006df26cacSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 2016df26cacSmrg echo "${machine}-${os}${release}" 2026df26cacSmrg exit ;; 2036df26cacSmrg *:OpenBSD:*:*) 2046df26cacSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 2056df26cacSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 2066df26cacSmrg exit ;; 2076df26cacSmrg *:ekkoBSD:*:*) 2086df26cacSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 2096df26cacSmrg exit ;; 2106df26cacSmrg *:SolidBSD:*:*) 2116df26cacSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 2126df26cacSmrg exit ;; 2136df26cacSmrg macppc:MirBSD:*:*) 2146df26cacSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 2156df26cacSmrg exit ;; 2166df26cacSmrg *:MirBSD:*:*) 2176df26cacSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 2186df26cacSmrg exit ;; 2196df26cacSmrg alpha:OSF1:*:*) 2206df26cacSmrg case $UNAME_RELEASE in 2216df26cacSmrg *4.0) 2226df26cacSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 2236df26cacSmrg ;; 2246df26cacSmrg *5.*) 2253bfa90b6Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 2266df26cacSmrg ;; 2276df26cacSmrg esac 2286df26cacSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 2296df26cacSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 2306df26cacSmrg # covers most systems running today. This code pipes the CPU 2316df26cacSmrg # types through head -n 1, so we only detect the type of CPU 0. 2326df26cacSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 2336df26cacSmrg case "$ALPHA_CPU_TYPE" in 2346df26cacSmrg "EV4 (21064)") 2356df26cacSmrg UNAME_MACHINE="alpha" ;; 2366df26cacSmrg "EV4.5 (21064)") 2376df26cacSmrg UNAME_MACHINE="alpha" ;; 2386df26cacSmrg "LCA4 (21066/21068)") 2396df26cacSmrg UNAME_MACHINE="alpha" ;; 2406df26cacSmrg "EV5 (21164)") 2416df26cacSmrg UNAME_MACHINE="alphaev5" ;; 2426df26cacSmrg "EV5.6 (21164A)") 2436df26cacSmrg UNAME_MACHINE="alphaev56" ;; 2446df26cacSmrg "EV5.6 (21164PC)") 2456df26cacSmrg UNAME_MACHINE="alphapca56" ;; 2466df26cacSmrg "EV5.7 (21164PC)") 2476df26cacSmrg UNAME_MACHINE="alphapca57" ;; 2486df26cacSmrg "EV6 (21264)") 2496df26cacSmrg UNAME_MACHINE="alphaev6" ;; 2506df26cacSmrg "EV6.7 (21264A)") 2516df26cacSmrg UNAME_MACHINE="alphaev67" ;; 2526df26cacSmrg "EV6.8CB (21264C)") 2536df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2546df26cacSmrg "EV6.8AL (21264B)") 2556df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2566df26cacSmrg "EV6.8CX (21264D)") 2576df26cacSmrg UNAME_MACHINE="alphaev68" ;; 2586df26cacSmrg "EV6.9A (21264/EV69A)") 2596df26cacSmrg UNAME_MACHINE="alphaev69" ;; 2606df26cacSmrg "EV7 (21364)") 2616df26cacSmrg UNAME_MACHINE="alphaev7" ;; 2626df26cacSmrg "EV7.9 (21364A)") 2636df26cacSmrg UNAME_MACHINE="alphaev79" ;; 2646df26cacSmrg esac 2656df26cacSmrg # A Pn.n version is a patched version. 2666df26cacSmrg # A Vn.n version is a released version. 2676df26cacSmrg # A Tn.n version is a released field test version. 2686df26cacSmrg # A Xn.n version is an unreleased experimental baselevel. 2696df26cacSmrg # 1.2 uses "1.2" for uname -r. 2706df26cacSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 2713bfa90b6Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 2723bfa90b6Smrg exitcode=$? 2733bfa90b6Smrg trap '' 0 2743bfa90b6Smrg exit $exitcode ;; 2756df26cacSmrg Alpha\ *:Windows_NT*:*) 2766df26cacSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 2776df26cacSmrg # Should we change UNAME_MACHINE based on the output of uname instead 2786df26cacSmrg # of the specific Alpha model? 2796df26cacSmrg echo alpha-pc-interix 2806df26cacSmrg exit ;; 2816df26cacSmrg 21064:Windows_NT:50:3) 2826df26cacSmrg echo alpha-dec-winnt3.5 2836df26cacSmrg exit ;; 2846df26cacSmrg Amiga*:UNIX_System_V:4.0:*) 2856df26cacSmrg echo m68k-unknown-sysv4 2866df26cacSmrg exit ;; 2876df26cacSmrg *:[Aa]miga[Oo][Ss]:*:*) 2886df26cacSmrg echo ${UNAME_MACHINE}-unknown-amigaos 2896df26cacSmrg exit ;; 2906df26cacSmrg *:[Mm]orph[Oo][Ss]:*:*) 2916df26cacSmrg echo ${UNAME_MACHINE}-unknown-morphos 2926df26cacSmrg exit ;; 2936df26cacSmrg *:OS/390:*:*) 2946df26cacSmrg echo i370-ibm-openedition 2956df26cacSmrg exit ;; 2966df26cacSmrg *:z/VM:*:*) 2976df26cacSmrg echo s390-ibm-zvmoe 2986df26cacSmrg exit ;; 2996df26cacSmrg *:OS400:*:*) 3003bfa90b6Smrg echo powerpc-ibm-os400 3016df26cacSmrg exit ;; 3026df26cacSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 3036df26cacSmrg echo arm-acorn-riscix${UNAME_RELEASE} 3046df26cacSmrg exit ;; 3056df26cacSmrg arm:riscos:*:*|arm:RISCOS:*:*) 3066df26cacSmrg echo arm-unknown-riscos 3076df26cacSmrg exit ;; 3086df26cacSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 3096df26cacSmrg echo hppa1.1-hitachi-hiuxmpp 3106df26cacSmrg exit ;; 3116df26cacSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 3126df26cacSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 3136df26cacSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 3146df26cacSmrg echo pyramid-pyramid-sysv3 3156df26cacSmrg else 3166df26cacSmrg echo pyramid-pyramid-bsd 3176df26cacSmrg fi 3186df26cacSmrg exit ;; 3196df26cacSmrg NILE*:*:*:dcosx) 3206df26cacSmrg echo pyramid-pyramid-svr4 3216df26cacSmrg exit ;; 3226df26cacSmrg DRS?6000:unix:4.0:6*) 3236df26cacSmrg echo sparc-icl-nx6 3246df26cacSmrg exit ;; 3256df26cacSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 3266df26cacSmrg case `/usr/bin/uname -p` in 3276df26cacSmrg sparc) echo sparc-icl-nx7; exit ;; 3286df26cacSmrg esac ;; 3293bfa90b6Smrg s390x:SunOS:*:*) 3303bfa90b6Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3313bfa90b6Smrg exit ;; 3326df26cacSmrg sun4H:SunOS:5.*:*) 3336df26cacSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3346df26cacSmrg exit ;; 3356df26cacSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 3366df26cacSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3376df26cacSmrg exit ;; 3383bfa90b6Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 3393bfa90b6Smrg echo i386-pc-auroraux${UNAME_RELEASE} 3403bfa90b6Smrg exit ;; 341b68e1f86Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 3421f27ce9aSmrg eval $set_cc_for_build 3431f27ce9aSmrg SUN_ARCH="i386" 3441f27ce9aSmrg # If there is a compiler, see if it is configured for 64-bit objects. 3451f27ce9aSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 3461f27ce9aSmrg # This test works for both compilers. 3471f27ce9aSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 3483bfa90b6Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 3491f27ce9aSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 3501f27ce9aSmrg grep IS_64BIT_ARCH >/dev/null 3511f27ce9aSmrg then 3521f27ce9aSmrg SUN_ARCH="x86_64" 3531f27ce9aSmrg fi 3541f27ce9aSmrg fi 3551f27ce9aSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3566df26cacSmrg exit ;; 3576df26cacSmrg sun4*:SunOS:6*:*) 3586df26cacSmrg # According to config.sub, this is the proper way to canonicalize 3596df26cacSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 3606df26cacSmrg # it's likely to be more like Solaris than SunOS4. 3616df26cacSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 3626df26cacSmrg exit ;; 3636df26cacSmrg sun4*:SunOS:*:*) 3646df26cacSmrg case "`/usr/bin/arch -k`" in 3656df26cacSmrg Series*|S4*) 3666df26cacSmrg UNAME_RELEASE=`uname -v` 3676df26cacSmrg ;; 3686df26cacSmrg esac 3696df26cacSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 3706df26cacSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 3716df26cacSmrg exit ;; 3726df26cacSmrg sun3*:SunOS:*:*) 3736df26cacSmrg echo m68k-sun-sunos${UNAME_RELEASE} 3746df26cacSmrg exit ;; 3756df26cacSmrg sun*:*:4.2BSD:*) 3766df26cacSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 3776df26cacSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 3786df26cacSmrg case "`/bin/arch`" in 3796df26cacSmrg sun3) 3806df26cacSmrg echo m68k-sun-sunos${UNAME_RELEASE} 3816df26cacSmrg ;; 3826df26cacSmrg sun4) 3836df26cacSmrg echo sparc-sun-sunos${UNAME_RELEASE} 3846df26cacSmrg ;; 3856df26cacSmrg esac 3866df26cacSmrg exit ;; 3876df26cacSmrg aushp:SunOS:*:*) 3886df26cacSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 3896df26cacSmrg exit ;; 3906df26cacSmrg # The situation for MiNT is a little confusing. The machine name 3916df26cacSmrg # can be virtually everything (everything which is not 3926df26cacSmrg # "atarist" or "atariste" at least should have a processor 3936df26cacSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 3946df26cacSmrg # to the lowercase version "mint" (or "freemint"). Finally 3956df26cacSmrg # the system name "TOS" denotes a system which is actually not 3966df26cacSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 3976df26cacSmrg # be no problem. 3986df26cacSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 3993bfa90b6Smrg echo m68k-atari-mint${UNAME_RELEASE} 4006df26cacSmrg exit ;; 4016df26cacSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 4026df26cacSmrg echo m68k-atari-mint${UNAME_RELEASE} 4033bfa90b6Smrg exit ;; 4046df26cacSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 4053bfa90b6Smrg echo m68k-atari-mint${UNAME_RELEASE} 4066df26cacSmrg exit ;; 4076df26cacSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 4083bfa90b6Smrg echo m68k-milan-mint${UNAME_RELEASE} 4093bfa90b6Smrg exit ;; 4106df26cacSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 4113bfa90b6Smrg echo m68k-hades-mint${UNAME_RELEASE} 4123bfa90b6Smrg exit ;; 4136df26cacSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 4143bfa90b6Smrg echo m68k-unknown-mint${UNAME_RELEASE} 4153bfa90b6Smrg exit ;; 4166df26cacSmrg m68k:machten:*:*) 4176df26cacSmrg echo m68k-apple-machten${UNAME_RELEASE} 4186df26cacSmrg exit ;; 4196df26cacSmrg powerpc:machten:*:*) 4206df26cacSmrg echo powerpc-apple-machten${UNAME_RELEASE} 4216df26cacSmrg exit ;; 4226df26cacSmrg RISC*:Mach:*:*) 4236df26cacSmrg echo mips-dec-mach_bsd4.3 4246df26cacSmrg exit ;; 4256df26cacSmrg RISC*:ULTRIX:*:*) 4266df26cacSmrg echo mips-dec-ultrix${UNAME_RELEASE} 4276df26cacSmrg exit ;; 4286df26cacSmrg VAX*:ULTRIX*:*:*) 4296df26cacSmrg echo vax-dec-ultrix${UNAME_RELEASE} 4306df26cacSmrg exit ;; 4316df26cacSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 4326df26cacSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 4336df26cacSmrg exit ;; 4346df26cacSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 4356df26cacSmrg eval $set_cc_for_build 4366df26cacSmrg sed 's/^ //' << EOF >$dummy.c 4376df26cacSmrg#ifdef __cplusplus 4386df26cacSmrg#include <stdio.h> /* for printf() prototype */ 4396df26cacSmrg int main (int argc, char *argv[]) { 4406df26cacSmrg#else 4416df26cacSmrg int main (argc, argv) int argc; char *argv[]; { 4426df26cacSmrg#endif 4436df26cacSmrg #if defined (host_mips) && defined (MIPSEB) 4446df26cacSmrg #if defined (SYSTYPE_SYSV) 4456df26cacSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 4466df26cacSmrg #endif 4476df26cacSmrg #if defined (SYSTYPE_SVR4) 4486df26cacSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 4496df26cacSmrg #endif 4506df26cacSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 4516df26cacSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 4526df26cacSmrg #endif 4536df26cacSmrg #endif 4546df26cacSmrg exit (-1); 4556df26cacSmrg } 4566df26cacSmrgEOF 4576df26cacSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 4586df26cacSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 4596df26cacSmrg SYSTEM_NAME=`$dummy $dummyarg` && 4606df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 4616df26cacSmrg echo mips-mips-riscos${UNAME_RELEASE} 4626df26cacSmrg exit ;; 4636df26cacSmrg Motorola:PowerMAX_OS:*:*) 4646df26cacSmrg echo powerpc-motorola-powermax 4656df26cacSmrg exit ;; 4666df26cacSmrg Motorola:*:4.3:PL8-*) 4676df26cacSmrg echo powerpc-harris-powermax 4686df26cacSmrg exit ;; 4696df26cacSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 4706df26cacSmrg echo powerpc-harris-powermax 4716df26cacSmrg exit ;; 4726df26cacSmrg Night_Hawk:Power_UNIX:*:*) 4736df26cacSmrg echo powerpc-harris-powerunix 4746df26cacSmrg exit ;; 4756df26cacSmrg m88k:CX/UX:7*:*) 4766df26cacSmrg echo m88k-harris-cxux7 4776df26cacSmrg exit ;; 4786df26cacSmrg m88k:*:4*:R4*) 4796df26cacSmrg echo m88k-motorola-sysv4 4806df26cacSmrg exit ;; 4816df26cacSmrg m88k:*:3*:R3*) 4826df26cacSmrg echo m88k-motorola-sysv3 4836df26cacSmrg exit ;; 4846df26cacSmrg AViiON:dgux:*:*) 4853bfa90b6Smrg # DG/UX returns AViiON for all architectures 4863bfa90b6Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 4876df26cacSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 4886df26cacSmrg then 4896df26cacSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 4906df26cacSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 4916df26cacSmrg then 4926df26cacSmrg echo m88k-dg-dgux${UNAME_RELEASE} 4936df26cacSmrg else 4946df26cacSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 4956df26cacSmrg fi 4966df26cacSmrg else 4976df26cacSmrg echo i586-dg-dgux${UNAME_RELEASE} 4986df26cacSmrg fi 4993bfa90b6Smrg exit ;; 5006df26cacSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 5016df26cacSmrg echo m88k-dolphin-sysv3 5026df26cacSmrg exit ;; 5036df26cacSmrg M88*:*:R3*:*) 5046df26cacSmrg # Delta 88k system running SVR3 5056df26cacSmrg echo m88k-motorola-sysv3 5066df26cacSmrg exit ;; 5076df26cacSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 5086df26cacSmrg echo m88k-tektronix-sysv3 5096df26cacSmrg exit ;; 5106df26cacSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 5116df26cacSmrg echo m68k-tektronix-bsd 5126df26cacSmrg exit ;; 5136df26cacSmrg *:IRIX*:*:*) 5146df26cacSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 5156df26cacSmrg exit ;; 5166df26cacSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 5176df26cacSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 5186df26cacSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 5196df26cacSmrg i*86:AIX:*:*) 5206df26cacSmrg echo i386-ibm-aix 5216df26cacSmrg exit ;; 5226df26cacSmrg ia64:AIX:*:*) 5236df26cacSmrg if [ -x /usr/bin/oslevel ] ; then 5246df26cacSmrg IBM_REV=`/usr/bin/oslevel` 5256df26cacSmrg else 5266df26cacSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5276df26cacSmrg fi 5286df26cacSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 5296df26cacSmrg exit ;; 5306df26cacSmrg *:AIX:2:3) 5316df26cacSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 5326df26cacSmrg eval $set_cc_for_build 5336df26cacSmrg sed 's/^ //' << EOF >$dummy.c 5346df26cacSmrg #include <sys/systemcfg.h> 5356df26cacSmrg 5366df26cacSmrg main() 5376df26cacSmrg { 5386df26cacSmrg if (!__power_pc()) 5396df26cacSmrg exit(1); 5406df26cacSmrg puts("powerpc-ibm-aix3.2.5"); 5416df26cacSmrg exit(0); 5426df26cacSmrg } 5436df26cacSmrgEOF 5446df26cacSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 5456df26cacSmrg then 5466df26cacSmrg echo "$SYSTEM_NAME" 5476df26cacSmrg else 5486df26cacSmrg echo rs6000-ibm-aix3.2.5 5496df26cacSmrg fi 5506df26cacSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 5516df26cacSmrg echo rs6000-ibm-aix3.2.4 5526df26cacSmrg else 5536df26cacSmrg echo rs6000-ibm-aix3.2 5546df26cacSmrg fi 5556df26cacSmrg exit ;; 5563bfa90b6Smrg *:AIX:*:[4567]) 5576df26cacSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 5586df26cacSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 5596df26cacSmrg IBM_ARCH=rs6000 5606df26cacSmrg else 5616df26cacSmrg IBM_ARCH=powerpc 5626df26cacSmrg fi 5636df26cacSmrg if [ -x /usr/bin/oslevel ] ; then 5646df26cacSmrg IBM_REV=`/usr/bin/oslevel` 5656df26cacSmrg else 5666df26cacSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 5676df26cacSmrg fi 5686df26cacSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 5696df26cacSmrg exit ;; 5706df26cacSmrg *:AIX:*:*) 5716df26cacSmrg echo rs6000-ibm-aix 5726df26cacSmrg exit ;; 5736df26cacSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 5746df26cacSmrg echo romp-ibm-bsd4.4 5756df26cacSmrg exit ;; 5766df26cacSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 5776df26cacSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 5786df26cacSmrg exit ;; # report: romp-ibm BSD 4.3 5796df26cacSmrg *:BOSX:*:*) 5806df26cacSmrg echo rs6000-bull-bosx 5816df26cacSmrg exit ;; 5826df26cacSmrg DPX/2?00:B.O.S.:*:*) 5836df26cacSmrg echo m68k-bull-sysv3 5846df26cacSmrg exit ;; 5856df26cacSmrg 9000/[34]??:4.3bsd:1.*:*) 5866df26cacSmrg echo m68k-hp-bsd 5876df26cacSmrg exit ;; 5886df26cacSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 5896df26cacSmrg echo m68k-hp-bsd4.4 5906df26cacSmrg exit ;; 5916df26cacSmrg 9000/[34678]??:HP-UX:*:*) 5926df26cacSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 5936df26cacSmrg case "${UNAME_MACHINE}" in 5946df26cacSmrg 9000/31? ) HP_ARCH=m68000 ;; 5956df26cacSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 5966df26cacSmrg 9000/[678][0-9][0-9]) 5976df26cacSmrg if [ -x /usr/bin/getconf ]; then 5986df26cacSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 5993bfa90b6Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 6003bfa90b6Smrg case "${sc_cpu_version}" in 6013bfa90b6Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 6023bfa90b6Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 6033bfa90b6Smrg 532) # CPU_PA_RISC2_0 6043bfa90b6Smrg case "${sc_kernel_bits}" in 6053bfa90b6Smrg 32) HP_ARCH="hppa2.0n" ;; 6063bfa90b6Smrg 64) HP_ARCH="hppa2.0w" ;; 6076df26cacSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 6083bfa90b6Smrg esac ;; 6093bfa90b6Smrg esac 6106df26cacSmrg fi 6116df26cacSmrg if [ "${HP_ARCH}" = "" ]; then 6126df26cacSmrg eval $set_cc_for_build 6133bfa90b6Smrg sed 's/^ //' << EOF >$dummy.c 6146df26cacSmrg 6153bfa90b6Smrg #define _HPUX_SOURCE 6163bfa90b6Smrg #include <stdlib.h> 6173bfa90b6Smrg #include <unistd.h> 6186df26cacSmrg 6193bfa90b6Smrg int main () 6203bfa90b6Smrg { 6213bfa90b6Smrg #if defined(_SC_KERNEL_BITS) 6223bfa90b6Smrg long bits = sysconf(_SC_KERNEL_BITS); 6233bfa90b6Smrg #endif 6243bfa90b6Smrg long cpu = sysconf (_SC_CPU_VERSION); 6256df26cacSmrg 6263bfa90b6Smrg switch (cpu) 6273bfa90b6Smrg { 6283bfa90b6Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 6293bfa90b6Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 6303bfa90b6Smrg case CPU_PA_RISC2_0: 6313bfa90b6Smrg #if defined(_SC_KERNEL_BITS) 6323bfa90b6Smrg switch (bits) 6333bfa90b6Smrg { 6343bfa90b6Smrg case 64: puts ("hppa2.0w"); break; 6353bfa90b6Smrg case 32: puts ("hppa2.0n"); break; 6363bfa90b6Smrg default: puts ("hppa2.0"); break; 6373bfa90b6Smrg } break; 6383bfa90b6Smrg #else /* !defined(_SC_KERNEL_BITS) */ 6393bfa90b6Smrg puts ("hppa2.0"); break; 6403bfa90b6Smrg #endif 6413bfa90b6Smrg default: puts ("hppa1.0"); break; 6423bfa90b6Smrg } 6433bfa90b6Smrg exit (0); 6443bfa90b6Smrg } 6456df26cacSmrgEOF 6466df26cacSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 6476df26cacSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 6486df26cacSmrg fi ;; 6496df26cacSmrg esac 6506df26cacSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 6516df26cacSmrg then 6526df26cacSmrg eval $set_cc_for_build 6536df26cacSmrg 6546df26cacSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 6556df26cacSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 6566df26cacSmrg # generating 64-bit code. GNU and HP use different nomenclature: 6576df26cacSmrg # 6586df26cacSmrg # $ CC_FOR_BUILD=cc ./config.guess 6596df26cacSmrg # => hppa2.0w-hp-hpux11.23 6606df26cacSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 6616df26cacSmrg # => hppa64-hp-hpux11.23 6626df26cacSmrg 6636df26cacSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 6643bfa90b6Smrg grep -q __LP64__ 6656df26cacSmrg then 6666df26cacSmrg HP_ARCH="hppa2.0w" 6676df26cacSmrg else 6686df26cacSmrg HP_ARCH="hppa64" 6696df26cacSmrg fi 6706df26cacSmrg fi 6716df26cacSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 6726df26cacSmrg exit ;; 6736df26cacSmrg ia64:HP-UX:*:*) 6746df26cacSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 6756df26cacSmrg echo ia64-hp-hpux${HPUX_REV} 6766df26cacSmrg exit ;; 6776df26cacSmrg 3050*:HI-UX:*:*) 6786df26cacSmrg eval $set_cc_for_build 6796df26cacSmrg sed 's/^ //' << EOF >$dummy.c 6806df26cacSmrg #include <unistd.h> 6816df26cacSmrg int 6826df26cacSmrg main () 6836df26cacSmrg { 6846df26cacSmrg long cpu = sysconf (_SC_CPU_VERSION); 6856df26cacSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 6866df26cacSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 6876df26cacSmrg results, however. */ 6886df26cacSmrg if (CPU_IS_PA_RISC (cpu)) 6896df26cacSmrg { 6906df26cacSmrg switch (cpu) 6916df26cacSmrg { 6926df26cacSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 6936df26cacSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 6946df26cacSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 6956df26cacSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 6966df26cacSmrg } 6976df26cacSmrg } 6986df26cacSmrg else if (CPU_IS_HP_MC68K (cpu)) 6996df26cacSmrg puts ("m68k-hitachi-hiuxwe2"); 7006df26cacSmrg else puts ("unknown-hitachi-hiuxwe2"); 7016df26cacSmrg exit (0); 7026df26cacSmrg } 7036df26cacSmrgEOF 7046df26cacSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 7056df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 7066df26cacSmrg echo unknown-hitachi-hiuxwe2 7076df26cacSmrg exit ;; 7086df26cacSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 7096df26cacSmrg echo hppa1.1-hp-bsd 7106df26cacSmrg exit ;; 7116df26cacSmrg 9000/8??:4.3bsd:*:*) 7126df26cacSmrg echo hppa1.0-hp-bsd 7136df26cacSmrg exit ;; 7146df26cacSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 7156df26cacSmrg echo hppa1.0-hp-mpeix 7166df26cacSmrg exit ;; 7176df26cacSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 7186df26cacSmrg echo hppa1.1-hp-osf 7196df26cacSmrg exit ;; 7206df26cacSmrg hp8??:OSF1:*:*) 7216df26cacSmrg echo hppa1.0-hp-osf 7226df26cacSmrg exit ;; 7236df26cacSmrg i*86:OSF1:*:*) 7246df26cacSmrg if [ -x /usr/sbin/sysversion ] ; then 7256df26cacSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 7266df26cacSmrg else 7276df26cacSmrg echo ${UNAME_MACHINE}-unknown-osf1 7286df26cacSmrg fi 7296df26cacSmrg exit ;; 7306df26cacSmrg parisc*:Lites*:*:*) 7316df26cacSmrg echo hppa1.1-hp-lites 7326df26cacSmrg exit ;; 7336df26cacSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 7346df26cacSmrg echo c1-convex-bsd 7353bfa90b6Smrg exit ;; 7366df26cacSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 7376df26cacSmrg if getsysinfo -f scalar_acc 7386df26cacSmrg then echo c32-convex-bsd 7396df26cacSmrg else echo c2-convex-bsd 7406df26cacSmrg fi 7413bfa90b6Smrg exit ;; 7426df26cacSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 7436df26cacSmrg echo c34-convex-bsd 7443bfa90b6Smrg exit ;; 7456df26cacSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 7466df26cacSmrg echo c38-convex-bsd 7473bfa90b6Smrg exit ;; 7486df26cacSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 7496df26cacSmrg echo c4-convex-bsd 7503bfa90b6Smrg exit ;; 7516df26cacSmrg CRAY*Y-MP:*:*:*) 7526df26cacSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7536df26cacSmrg exit ;; 7546df26cacSmrg CRAY*[A-Z]90:*:*:*) 7556df26cacSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 7566df26cacSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 7576df26cacSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 7586df26cacSmrg -e 's/\.[^.]*$/.X/' 7596df26cacSmrg exit ;; 7606df26cacSmrg CRAY*TS:*:*:*) 7616df26cacSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7626df26cacSmrg exit ;; 7636df26cacSmrg CRAY*T3E:*:*:*) 7646df26cacSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7656df26cacSmrg exit ;; 7666df26cacSmrg CRAY*SV1:*:*:*) 7676df26cacSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7686df26cacSmrg exit ;; 7696df26cacSmrg *:UNICOS/mp:*:*) 7706df26cacSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 7716df26cacSmrg exit ;; 7726df26cacSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 7736df26cacSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 7743bfa90b6Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7753bfa90b6Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 7763bfa90b6Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7773bfa90b6Smrg exit ;; 7786df26cacSmrg 5000:UNIX_System_V:4.*:*) 7793bfa90b6Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 7803bfa90b6Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 7813bfa90b6Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 7826df26cacSmrg exit ;; 7836df26cacSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 7846df26cacSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 7856df26cacSmrg exit ;; 7866df26cacSmrg sparc*:BSD/OS:*:*) 7876df26cacSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 7886df26cacSmrg exit ;; 7896df26cacSmrg *:BSD/OS:*:*) 7906df26cacSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 7916df26cacSmrg exit ;; 7926df26cacSmrg *:FreeBSD:*:*) 7933bfa90b6Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 7943bfa90b6Smrg case ${UNAME_PROCESSOR} in 7956df26cacSmrg amd64) 7966df26cacSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7976df26cacSmrg *) 7983bfa90b6Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7996df26cacSmrg esac 8006df26cacSmrg exit ;; 8016df26cacSmrg i*:CYGWIN*:*) 8026df26cacSmrg echo ${UNAME_MACHINE}-pc-cygwin 8036df26cacSmrg exit ;; 80416fd1166Smrg *:MINGW*:*) 8056df26cacSmrg echo ${UNAME_MACHINE}-pc-mingw32 8066df26cacSmrg exit ;; 8073bfa90b6Smrg i*:MSYS*:*) 8083bfa90b6Smrg echo ${UNAME_MACHINE}-pc-msys 8093bfa90b6Smrg exit ;; 8106df26cacSmrg i*:windows32*:*) 8113bfa90b6Smrg # uname -m includes "-pc" on this system. 8123bfa90b6Smrg echo ${UNAME_MACHINE}-mingw32 8136df26cacSmrg exit ;; 8146df26cacSmrg i*:PW*:*) 8156df26cacSmrg echo ${UNAME_MACHINE}-pc-pw32 8166df26cacSmrg exit ;; 8173bfa90b6Smrg *:Interix*:*) 8183bfa90b6Smrg case ${UNAME_MACHINE} in 819b68e1f86Smrg x86) 82016fd1166Smrg echo i586-pc-interix${UNAME_RELEASE} 82116fd1166Smrg exit ;; 8223bfa90b6Smrg authenticamd | genuineintel | EM64T) 82316fd1166Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 82416fd1166Smrg exit ;; 825b68e1f86Smrg IA64) 826b68e1f86Smrg echo ia64-unknown-interix${UNAME_RELEASE} 827b68e1f86Smrg exit ;; 82816fd1166Smrg esac ;; 8296df26cacSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 8306df26cacSmrg echo i${UNAME_MACHINE}-pc-mks 8316df26cacSmrg exit ;; 8323bfa90b6Smrg 8664:Windows_NT:*) 8333bfa90b6Smrg echo x86_64-pc-mks 8343bfa90b6Smrg exit ;; 8356df26cacSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 8366df26cacSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 8376df26cacSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 8386df26cacSmrg # UNAME_MACHINE based on the output of uname instead of i386? 8396df26cacSmrg echo i586-pc-interix 8406df26cacSmrg exit ;; 8416df26cacSmrg i*:UWIN*:*) 8426df26cacSmrg echo ${UNAME_MACHINE}-pc-uwin 8436df26cacSmrg exit ;; 8446df26cacSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 8456df26cacSmrg echo x86_64-unknown-cygwin 8466df26cacSmrg exit ;; 8476df26cacSmrg p*:CYGWIN*:*) 8486df26cacSmrg echo powerpcle-unknown-cygwin 8496df26cacSmrg exit ;; 8506df26cacSmrg prep*:SunOS:5.*:*) 8516df26cacSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 8526df26cacSmrg exit ;; 8536df26cacSmrg *:GNU:*:*) 8546df26cacSmrg # the GNU system 8556df26cacSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 8566df26cacSmrg exit ;; 8576df26cacSmrg *:GNU/*:*:*) 8586df26cacSmrg # other systems with GNU libc and userland 8596df26cacSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 8606df26cacSmrg exit ;; 8616df26cacSmrg i*86:Minix:*:*) 8626df26cacSmrg echo ${UNAME_MACHINE}-pc-minix 8636df26cacSmrg exit ;; 8643bfa90b6Smrg aarch64:Linux:*:*) 8653bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8663bfa90b6Smrg exit ;; 8673bfa90b6Smrg aarch64_be:Linux:*:*) 8683bfa90b6Smrg UNAME_MACHINE=aarch64_be 8693bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8703bfa90b6Smrg exit ;; 8713bfa90b6Smrg alpha:Linux:*:*) 8723bfa90b6Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 8733bfa90b6Smrg EV5) UNAME_MACHINE=alphaev5 ;; 8743bfa90b6Smrg EV56) UNAME_MACHINE=alphaev56 ;; 8753bfa90b6Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 8763bfa90b6Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 8773bfa90b6Smrg EV6) UNAME_MACHINE=alphaev6 ;; 8783bfa90b6Smrg EV67) UNAME_MACHINE=alphaev67 ;; 8793bfa90b6Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 8803bfa90b6Smrg esac 8813bfa90b6Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 8823bfa90b6Smrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 8833bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 8843bfa90b6Smrg exit ;; 8856df26cacSmrg arm*:Linux:*:*) 886b68e1f86Smrg eval $set_cc_for_build 887b68e1f86Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 888b68e1f86Smrg | grep -q __ARM_EABI__ 889b68e1f86Smrg then 890b68e1f86Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 891b68e1f86Smrg else 8923bfa90b6Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 8933bfa90b6Smrg | grep -q __ARM_PCS_VFP 8943bfa90b6Smrg then 8953bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 8963bfa90b6Smrg else 8973bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 8983bfa90b6Smrg fi 899b68e1f86Smrg fi 9006df26cacSmrg exit ;; 9016df26cacSmrg avr32*:Linux:*:*) 9026df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9036df26cacSmrg exit ;; 9046df26cacSmrg cris:Linux:*:*) 9053bfa90b6Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 9066df26cacSmrg exit ;; 9076df26cacSmrg crisv32:Linux:*:*) 9083bfa90b6Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 9096df26cacSmrg exit ;; 9106df26cacSmrg frv:Linux:*:*) 9113bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9123bfa90b6Smrg exit ;; 9133bfa90b6Smrg hexagon:Linux:*:*) 9143bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9153bfa90b6Smrg exit ;; 9163bfa90b6Smrg i*86:Linux:*:*) 9173bfa90b6Smrg LIBC=gnu 9183bfa90b6Smrg eval $set_cc_for_build 9193bfa90b6Smrg sed 's/^ //' << EOF >$dummy.c 9203bfa90b6Smrg #ifdef __dietlibc__ 9213bfa90b6Smrg LIBC=dietlibc 9223bfa90b6Smrg #endif 9233bfa90b6SmrgEOF 9243bfa90b6Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 9253bfa90b6Smrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 9266df26cacSmrg exit ;; 9276df26cacSmrg ia64:Linux:*:*) 9286df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9296df26cacSmrg exit ;; 9306df26cacSmrg m32r*:Linux:*:*) 9316df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9326df26cacSmrg exit ;; 9336df26cacSmrg m68*:Linux:*:*) 9346df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9356df26cacSmrg exit ;; 9363bfa90b6Smrg mips:Linux:*:* | mips64:Linux:*:*) 937a241306cSmrg eval $set_cc_for_build 938a241306cSmrg sed 's/^ //' << EOF >$dummy.c 939a241306cSmrg #undef CPU 9403bfa90b6Smrg #undef ${UNAME_MACHINE} 9413bfa90b6Smrg #undef ${UNAME_MACHINE}el 942a241306cSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 9433bfa90b6Smrg CPU=${UNAME_MACHINE}el 944a241306cSmrg #else 945a241306cSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 9463bfa90b6Smrg CPU=${UNAME_MACHINE} 947a241306cSmrg #else 948a241306cSmrg CPU= 949a241306cSmrg #endif 950a241306cSmrg #endif 951a241306cSmrgEOF 9523bfa90b6Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 9536df26cacSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 9546df26cacSmrg ;; 9556df26cacSmrg or32:Linux:*:*) 9563bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 957a241306cSmrg exit ;; 9581f27ce9aSmrg padre:Linux:*:*) 9591f27ce9aSmrg echo sparc-unknown-linux-gnu 9606df26cacSmrg exit ;; 9613bfa90b6Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 9623bfa90b6Smrg echo hppa64-unknown-linux-gnu 9633bfa90b6Smrg exit ;; 9646df26cacSmrg parisc:Linux:*:* | hppa:Linux:*:*) 9656df26cacSmrg # Look for CPU level 9666df26cacSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 9676df26cacSmrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 9686df26cacSmrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 9696df26cacSmrg *) echo hppa-unknown-linux-gnu ;; 9706df26cacSmrg esac 9716df26cacSmrg exit ;; 9723bfa90b6Smrg ppc64:Linux:*:*) 9733bfa90b6Smrg echo powerpc64-unknown-linux-gnu 9743bfa90b6Smrg exit ;; 9753bfa90b6Smrg ppc:Linux:*:*) 9763bfa90b6Smrg echo powerpc-unknown-linux-gnu 9776df26cacSmrg exit ;; 9786df26cacSmrg s390:Linux:*:* | s390x:Linux:*:*) 9796df26cacSmrg echo ${UNAME_MACHINE}-ibm-linux 9806df26cacSmrg exit ;; 9816df26cacSmrg sh64*:Linux:*:*) 9823bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9836df26cacSmrg exit ;; 9846df26cacSmrg sh*:Linux:*:*) 9856df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9866df26cacSmrg exit ;; 9876df26cacSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 9886df26cacSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9896df26cacSmrg exit ;; 9903bfa90b6Smrg tile*:Linux:*:*) 9913bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9923bfa90b6Smrg exit ;; 9936df26cacSmrg vax:Linux:*:*) 9946df26cacSmrg echo ${UNAME_MACHINE}-dec-linux-gnu 9956df26cacSmrg exit ;; 9966df26cacSmrg x86_64:Linux:*:*) 9973bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9986df26cacSmrg exit ;; 999b68e1f86Smrg xtensa*:Linux:*:*) 10003bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 100116fd1166Smrg exit ;; 10026df26cacSmrg i*86:DYNIX/ptx:4*:*) 10036df26cacSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 10046df26cacSmrg # earlier versions are messed up and put the nodename in both 10056df26cacSmrg # sysname and nodename. 10066df26cacSmrg echo i386-sequent-sysv4 10076df26cacSmrg exit ;; 10086df26cacSmrg i*86:UNIX_SV:4.2MP:2.*) 10093bfa90b6Smrg # Unixware is an offshoot of SVR4, but it has its own version 10103bfa90b6Smrg # number series starting with 2... 10113bfa90b6Smrg # I am not positive that other SVR4 systems won't match this, 10126df26cacSmrg # I just have to hope. -- rms. 10133bfa90b6Smrg # Use sysv4.2uw... so that sysv4* matches it. 10146df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 10156df26cacSmrg exit ;; 10166df26cacSmrg i*86:OS/2:*:*) 10176df26cacSmrg # If we were able to find `uname', then EMX Unix compatibility 10186df26cacSmrg # is probably installed. 10196df26cacSmrg echo ${UNAME_MACHINE}-pc-os2-emx 10206df26cacSmrg exit ;; 10216df26cacSmrg i*86:XTS-300:*:STOP) 10226df26cacSmrg echo ${UNAME_MACHINE}-unknown-stop 10236df26cacSmrg exit ;; 10246df26cacSmrg i*86:atheos:*:*) 10256df26cacSmrg echo ${UNAME_MACHINE}-unknown-atheos 10266df26cacSmrg exit ;; 10276df26cacSmrg i*86:syllable:*:*) 10286df26cacSmrg echo ${UNAME_MACHINE}-pc-syllable 10296df26cacSmrg exit ;; 10303bfa90b6Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 10316df26cacSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 10326df26cacSmrg exit ;; 10336df26cacSmrg i*86:*DOS:*:*) 10346df26cacSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 10356df26cacSmrg exit ;; 10366df26cacSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 10376df26cacSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 10386df26cacSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 10396df26cacSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 10406df26cacSmrg else 10416df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 10426df26cacSmrg fi 10436df26cacSmrg exit ;; 10446df26cacSmrg i*86:*:5:[678]*) 10453bfa90b6Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 10466df26cacSmrg case `/bin/uname -X | grep "^Machine"` in 10476df26cacSmrg *486*) UNAME_MACHINE=i486 ;; 10486df26cacSmrg *Pentium) UNAME_MACHINE=i586 ;; 10496df26cacSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 10506df26cacSmrg esac 10516df26cacSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 10526df26cacSmrg exit ;; 10536df26cacSmrg i*86:*:3.2:*) 10546df26cacSmrg if test -f /usr/options/cb.name; then 10556df26cacSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 10566df26cacSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 10576df26cacSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 10586df26cacSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 10596df26cacSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 10606df26cacSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 10616df26cacSmrg && UNAME_MACHINE=i586 10626df26cacSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 10636df26cacSmrg && UNAME_MACHINE=i686 10646df26cacSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 10656df26cacSmrg && UNAME_MACHINE=i686 10666df26cacSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 10676df26cacSmrg else 10686df26cacSmrg echo ${UNAME_MACHINE}-pc-sysv32 10696df26cacSmrg fi 10706df26cacSmrg exit ;; 10716df26cacSmrg pc:*:*:*) 10726df26cacSmrg # Left here for compatibility: 10733bfa90b6Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 10743bfa90b6Smrg # the processor, so we play safe by assuming i586. 10753bfa90b6Smrg # Note: whatever this is, it MUST be the same as what config.sub 10763bfa90b6Smrg # prints for the "djgpp" host, or else GDB configury will decide that 10773bfa90b6Smrg # this is a cross-build. 10783bfa90b6Smrg echo i586-pc-msdosdjgpp 10793bfa90b6Smrg exit ;; 10806df26cacSmrg Intel:Mach:3*:*) 10816df26cacSmrg echo i386-pc-mach3 10826df26cacSmrg exit ;; 10836df26cacSmrg paragon:*:*:*) 10846df26cacSmrg echo i860-intel-osf1 10856df26cacSmrg exit ;; 10866df26cacSmrg i860:*:4.*:*) # i860-SVR4 10876df26cacSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 10886df26cacSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 10896df26cacSmrg else # Add other i860-SVR4 vendors below as they are discovered. 10906df26cacSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 10916df26cacSmrg fi 10926df26cacSmrg exit ;; 10936df26cacSmrg mini*:CTIX:SYS*5:*) 10946df26cacSmrg # "miniframe" 10956df26cacSmrg echo m68010-convergent-sysv 10966df26cacSmrg exit ;; 10976df26cacSmrg mc68k:UNIX:SYSTEM5:3.51m) 10986df26cacSmrg echo m68k-convergent-sysv 10996df26cacSmrg exit ;; 11006df26cacSmrg M680?0:D-NIX:5.3:*) 11016df26cacSmrg echo m68k-diab-dnix 11026df26cacSmrg exit ;; 11036df26cacSmrg M68*:*:R3V[5678]*:*) 11046df26cacSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 11056df26cacSmrg 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) 11066df26cacSmrg OS_REL='' 11076df26cacSmrg test -r /etc/.relid \ 11086df26cacSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11096df26cacSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11106df26cacSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11116df26cacSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11126df26cacSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11136df26cacSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 11143bfa90b6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11153bfa90b6Smrg && { echo i486-ncr-sysv4; exit; } ;; 11163bfa90b6Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 11173bfa90b6Smrg OS_REL='.3' 11183bfa90b6Smrg test -r /etc/.relid \ 11193bfa90b6Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 11203bfa90b6Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 11213bfa90b6Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 11223bfa90b6Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 11233bfa90b6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 11243bfa90b6Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 11253bfa90b6Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 11266df26cacSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 11276df26cacSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 11286df26cacSmrg exit ;; 11296df26cacSmrg mc68030:UNIX_System_V:4.*:*) 11306df26cacSmrg echo m68k-atari-sysv4 11316df26cacSmrg exit ;; 11326df26cacSmrg TSUNAMI:LynxOS:2.*:*) 11336df26cacSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 11346df26cacSmrg exit ;; 11356df26cacSmrg rs6000:LynxOS:2.*:*) 11366df26cacSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 11376df26cacSmrg exit ;; 11383bfa90b6Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 11396df26cacSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 11406df26cacSmrg exit ;; 11416df26cacSmrg SM[BE]S:UNIX_SV:*:*) 11426df26cacSmrg echo mips-dde-sysv${UNAME_RELEASE} 11436df26cacSmrg exit ;; 11446df26cacSmrg RM*:ReliantUNIX-*:*:*) 11456df26cacSmrg echo mips-sni-sysv4 11466df26cacSmrg exit ;; 11476df26cacSmrg RM*:SINIX-*:*:*) 11486df26cacSmrg echo mips-sni-sysv4 11496df26cacSmrg exit ;; 11506df26cacSmrg *:SINIX-*:*:*) 11516df26cacSmrg if uname -p 2>/dev/null >/dev/null ; then 11526df26cacSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 11536df26cacSmrg echo ${UNAME_MACHINE}-sni-sysv4 11546df26cacSmrg else 11556df26cacSmrg echo ns32k-sni-sysv 11566df26cacSmrg fi 11576df26cacSmrg exit ;; 11583bfa90b6Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 11593bfa90b6Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 11603bfa90b6Smrg echo i586-unisys-sysv4 11613bfa90b6Smrg exit ;; 11626df26cacSmrg *:UNIX_System_V:4*:FTX*) 11636df26cacSmrg # From Gerald Hewes <hewes@openmarket.com>. 11646df26cacSmrg # How about differentiating between stratus architectures? -djm 11656df26cacSmrg echo hppa1.1-stratus-sysv4 11666df26cacSmrg exit ;; 11676df26cacSmrg *:*:*:FTX*) 11686df26cacSmrg # From seanf@swdc.stratus.com. 11696df26cacSmrg echo i860-stratus-sysv4 11706df26cacSmrg exit ;; 11716df26cacSmrg i*86:VOS:*:*) 11726df26cacSmrg # From Paul.Green@stratus.com. 11736df26cacSmrg echo ${UNAME_MACHINE}-stratus-vos 11746df26cacSmrg exit ;; 11756df26cacSmrg *:VOS:*:*) 11766df26cacSmrg # From Paul.Green@stratus.com. 11776df26cacSmrg echo hppa1.1-stratus-vos 11786df26cacSmrg exit ;; 11796df26cacSmrg mc68*:A/UX:*:*) 11806df26cacSmrg echo m68k-apple-aux${UNAME_RELEASE} 11816df26cacSmrg exit ;; 11826df26cacSmrg news*:NEWS-OS:6*:*) 11836df26cacSmrg echo mips-sony-newsos6 11846df26cacSmrg exit ;; 11856df26cacSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 11866df26cacSmrg if [ -d /usr/nec ]; then 11873bfa90b6Smrg echo mips-nec-sysv${UNAME_RELEASE} 11886df26cacSmrg else 11893bfa90b6Smrg echo mips-unknown-sysv${UNAME_RELEASE} 11906df26cacSmrg fi 11913bfa90b6Smrg exit ;; 11926df26cacSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 11936df26cacSmrg echo powerpc-be-beos 11946df26cacSmrg exit ;; 11956df26cacSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 11966df26cacSmrg echo powerpc-apple-beos 11976df26cacSmrg exit ;; 11986df26cacSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 11996df26cacSmrg echo i586-pc-beos 12006df26cacSmrg exit ;; 12011f27ce9aSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 12021f27ce9aSmrg echo i586-pc-haiku 12031f27ce9aSmrg exit ;; 12046df26cacSmrg SX-4:SUPER-UX:*:*) 12056df26cacSmrg echo sx4-nec-superux${UNAME_RELEASE} 12066df26cacSmrg exit ;; 12076df26cacSmrg SX-5:SUPER-UX:*:*) 12086df26cacSmrg echo sx5-nec-superux${UNAME_RELEASE} 12096df26cacSmrg exit ;; 12106df26cacSmrg SX-6:SUPER-UX:*:*) 12116df26cacSmrg echo sx6-nec-superux${UNAME_RELEASE} 12126df26cacSmrg exit ;; 121316fd1166Smrg SX-7:SUPER-UX:*:*) 121416fd1166Smrg echo sx7-nec-superux${UNAME_RELEASE} 121516fd1166Smrg exit ;; 121616fd1166Smrg SX-8:SUPER-UX:*:*) 121716fd1166Smrg echo sx8-nec-superux${UNAME_RELEASE} 121816fd1166Smrg exit ;; 121916fd1166Smrg SX-8R:SUPER-UX:*:*) 122016fd1166Smrg echo sx8r-nec-superux${UNAME_RELEASE} 122116fd1166Smrg exit ;; 12226df26cacSmrg Power*:Rhapsody:*:*) 12236df26cacSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 12246df26cacSmrg exit ;; 12256df26cacSmrg *:Rhapsody:*:*) 12266df26cacSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 12276df26cacSmrg exit ;; 12286df26cacSmrg *:Darwin:*:*) 12296df26cacSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 12306df26cacSmrg case $UNAME_PROCESSOR in 12313bfa90b6Smrg i386) 12323bfa90b6Smrg eval $set_cc_for_build 12333bfa90b6Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 12343bfa90b6Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 12353bfa90b6Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 12363bfa90b6Smrg grep IS_64BIT_ARCH >/dev/null 12373bfa90b6Smrg then 12383bfa90b6Smrg UNAME_PROCESSOR="x86_64" 12393bfa90b6Smrg fi 12403bfa90b6Smrg fi ;; 12416df26cacSmrg unknown) UNAME_PROCESSOR=powerpc ;; 12426df26cacSmrg esac 12436df26cacSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 12446df26cacSmrg exit ;; 12456df26cacSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 12466df26cacSmrg UNAME_PROCESSOR=`uname -p` 12476df26cacSmrg if test "$UNAME_PROCESSOR" = "x86"; then 12486df26cacSmrg UNAME_PROCESSOR=i386 12496df26cacSmrg UNAME_MACHINE=pc 12506df26cacSmrg fi 12516df26cacSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 12526df26cacSmrg exit ;; 12536df26cacSmrg *:QNX:*:4*) 12546df26cacSmrg echo i386-pc-qnx 12556df26cacSmrg exit ;; 12563bfa90b6Smrg NEO-?:NONSTOP_KERNEL:*:*) 12573bfa90b6Smrg echo neo-tandem-nsk${UNAME_RELEASE} 12583bfa90b6Smrg exit ;; 12596df26cacSmrg NSE-?:NONSTOP_KERNEL:*:*) 12606df26cacSmrg echo nse-tandem-nsk${UNAME_RELEASE} 12616df26cacSmrg exit ;; 12626df26cacSmrg NSR-?:NONSTOP_KERNEL:*:*) 12636df26cacSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 12646df26cacSmrg exit ;; 12656df26cacSmrg *:NonStop-UX:*:*) 12666df26cacSmrg echo mips-compaq-nonstopux 12676df26cacSmrg exit ;; 12686df26cacSmrg BS2000:POSIX*:*:*) 12696df26cacSmrg echo bs2000-siemens-sysv 12706df26cacSmrg exit ;; 12716df26cacSmrg DS/*:UNIX_System_V:*:*) 12726df26cacSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 12736df26cacSmrg exit ;; 12746df26cacSmrg *:Plan9:*:*) 12756df26cacSmrg # "uname -m" is not consistent, so use $cputype instead. 386 12766df26cacSmrg # is converted to i386 for consistency with other x86 12776df26cacSmrg # operating systems. 12786df26cacSmrg if test "$cputype" = "386"; then 12796df26cacSmrg UNAME_MACHINE=i386 12806df26cacSmrg else 12816df26cacSmrg UNAME_MACHINE="$cputype" 12826df26cacSmrg fi 12836df26cacSmrg echo ${UNAME_MACHINE}-unknown-plan9 12846df26cacSmrg exit ;; 12856df26cacSmrg *:TOPS-10:*:*) 12866df26cacSmrg echo pdp10-unknown-tops10 12876df26cacSmrg exit ;; 12886df26cacSmrg *:TENEX:*:*) 12896df26cacSmrg echo pdp10-unknown-tenex 12906df26cacSmrg exit ;; 12916df26cacSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 12926df26cacSmrg echo pdp10-dec-tops20 12936df26cacSmrg exit ;; 12946df26cacSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 12956df26cacSmrg echo pdp10-xkl-tops20 12966df26cacSmrg exit ;; 12976df26cacSmrg *:TOPS-20:*:*) 12986df26cacSmrg echo pdp10-unknown-tops20 12996df26cacSmrg exit ;; 13006df26cacSmrg *:ITS:*:*) 13016df26cacSmrg echo pdp10-unknown-its 13026df26cacSmrg exit ;; 13036df26cacSmrg SEI:*:*:SEIUX) 13043bfa90b6Smrg echo mips-sei-seiux${UNAME_RELEASE} 13056df26cacSmrg exit ;; 13066df26cacSmrg *:DragonFly:*:*) 13076df26cacSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 13086df26cacSmrg exit ;; 13096df26cacSmrg *:*VMS:*:*) 13103bfa90b6Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 13116df26cacSmrg case "${UNAME_MACHINE}" in 13126df26cacSmrg A*) echo alpha-dec-vms ; exit ;; 13136df26cacSmrg I*) echo ia64-dec-vms ; exit ;; 13146df26cacSmrg V*) echo vax-dec-vms ; exit ;; 13156df26cacSmrg esac ;; 13166df26cacSmrg *:XENIX:*:SysV) 13176df26cacSmrg echo i386-pc-xenix 13186df26cacSmrg exit ;; 13196df26cacSmrg i*86:skyos:*:*) 13206df26cacSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 13216df26cacSmrg exit ;; 13226df26cacSmrg i*86:rdos:*:*) 13236df26cacSmrg echo ${UNAME_MACHINE}-pc-rdos 13246df26cacSmrg exit ;; 13253bfa90b6Smrg i*86:AROS:*:*) 13263bfa90b6Smrg echo ${UNAME_MACHINE}-pc-aros 13273bfa90b6Smrg exit ;; 13283bfa90b6Smrg x86_64:VMkernel:*:*) 13293bfa90b6Smrg echo ${UNAME_MACHINE}-unknown-esx 13303bfa90b6Smrg exit ;; 13316df26cacSmrgesac 13326df26cacSmrg 13336df26cacSmrg#echo '(No uname command or uname output not recognized.)' 1>&2 13346df26cacSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 13356df26cacSmrg 13366df26cacSmrgeval $set_cc_for_build 13376df26cacSmrgcat >$dummy.c <<EOF 13386df26cacSmrg#ifdef _SEQUENT_ 13396df26cacSmrg# include <sys/types.h> 13406df26cacSmrg# include <sys/utsname.h> 13416df26cacSmrg#endif 13426df26cacSmrgmain () 13436df26cacSmrg{ 13446df26cacSmrg#if defined (sony) 13456df26cacSmrg#if defined (MIPSEB) 13466df26cacSmrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 13476df26cacSmrg I don't know.... */ 13486df26cacSmrg printf ("mips-sony-bsd\n"); exit (0); 13496df26cacSmrg#else 13506df26cacSmrg#include <sys/param.h> 13516df26cacSmrg printf ("m68k-sony-newsos%s\n", 13526df26cacSmrg#ifdef NEWSOS4 13533bfa90b6Smrg "4" 13546df26cacSmrg#else 13553bfa90b6Smrg "" 13566df26cacSmrg#endif 13573bfa90b6Smrg ); exit (0); 13586df26cacSmrg#endif 13596df26cacSmrg#endif 13606df26cacSmrg 13616df26cacSmrg#if defined (__arm) && defined (__acorn) && defined (__unix) 13626df26cacSmrg printf ("arm-acorn-riscix\n"); exit (0); 13636df26cacSmrg#endif 13646df26cacSmrg 13656df26cacSmrg#if defined (hp300) && !defined (hpux) 13666df26cacSmrg printf ("m68k-hp-bsd\n"); exit (0); 13676df26cacSmrg#endif 13686df26cacSmrg 13696df26cacSmrg#if defined (NeXT) 13706df26cacSmrg#if !defined (__ARCHITECTURE__) 13716df26cacSmrg#define __ARCHITECTURE__ "m68k" 13726df26cacSmrg#endif 13736df26cacSmrg int version; 13746df26cacSmrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 13756df26cacSmrg if (version < 4) 13766df26cacSmrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 13776df26cacSmrg else 13786df26cacSmrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 13796df26cacSmrg exit (0); 13806df26cacSmrg#endif 13816df26cacSmrg 13826df26cacSmrg#if defined (MULTIMAX) || defined (n16) 13836df26cacSmrg#if defined (UMAXV) 13846df26cacSmrg printf ("ns32k-encore-sysv\n"); exit (0); 13856df26cacSmrg#else 13866df26cacSmrg#if defined (CMU) 13876df26cacSmrg printf ("ns32k-encore-mach\n"); exit (0); 13886df26cacSmrg#else 13896df26cacSmrg printf ("ns32k-encore-bsd\n"); exit (0); 13906df26cacSmrg#endif 13916df26cacSmrg#endif 13926df26cacSmrg#endif 13936df26cacSmrg 13946df26cacSmrg#if defined (__386BSD__) 13956df26cacSmrg printf ("i386-pc-bsd\n"); exit (0); 13966df26cacSmrg#endif 13976df26cacSmrg 13986df26cacSmrg#if defined (sequent) 13996df26cacSmrg#if defined (i386) 14006df26cacSmrg printf ("i386-sequent-dynix\n"); exit (0); 14016df26cacSmrg#endif 14026df26cacSmrg#if defined (ns32000) 14036df26cacSmrg printf ("ns32k-sequent-dynix\n"); exit (0); 14046df26cacSmrg#endif 14056df26cacSmrg#endif 14066df26cacSmrg 14076df26cacSmrg#if defined (_SEQUENT_) 14086df26cacSmrg struct utsname un; 14096df26cacSmrg 14106df26cacSmrg uname(&un); 14116df26cacSmrg 14126df26cacSmrg if (strncmp(un.version, "V2", 2) == 0) { 14136df26cacSmrg printf ("i386-sequent-ptx2\n"); exit (0); 14146df26cacSmrg } 14156df26cacSmrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 14166df26cacSmrg printf ("i386-sequent-ptx1\n"); exit (0); 14176df26cacSmrg } 14186df26cacSmrg printf ("i386-sequent-ptx\n"); exit (0); 14196df26cacSmrg 14206df26cacSmrg#endif 14216df26cacSmrg 14226df26cacSmrg#if defined (vax) 14236df26cacSmrg# if !defined (ultrix) 14246df26cacSmrg# include <sys/param.h> 14256df26cacSmrg# if defined (BSD) 14266df26cacSmrg# if BSD == 43 14276df26cacSmrg printf ("vax-dec-bsd4.3\n"); exit (0); 14286df26cacSmrg# else 14296df26cacSmrg# if BSD == 199006 14306df26cacSmrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 14316df26cacSmrg# else 14326df26cacSmrg printf ("vax-dec-bsd\n"); exit (0); 14336df26cacSmrg# endif 14346df26cacSmrg# endif 14356df26cacSmrg# else 14366df26cacSmrg printf ("vax-dec-bsd\n"); exit (0); 14376df26cacSmrg# endif 14386df26cacSmrg# else 14396df26cacSmrg printf ("vax-dec-ultrix\n"); exit (0); 14406df26cacSmrg# endif 14416df26cacSmrg#endif 14426df26cacSmrg 14436df26cacSmrg#if defined (alliant) && defined (i860) 14446df26cacSmrg printf ("i860-alliant-bsd\n"); exit (0); 14456df26cacSmrg#endif 14466df26cacSmrg 14476df26cacSmrg exit (1); 14486df26cacSmrg} 14496df26cacSmrgEOF 14506df26cacSmrg 14516df26cacSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 14526df26cacSmrg { echo "$SYSTEM_NAME"; exit; } 14536df26cacSmrg 14546df26cacSmrg# Apollos put the system type in the environment. 14556df26cacSmrg 14566df26cacSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 14576df26cacSmrg 14586df26cacSmrg# Convex versions that predate uname can use getsysinfo(1) 14596df26cacSmrg 14606df26cacSmrgif [ -x /usr/convex/getsysinfo ] 14616df26cacSmrgthen 14626df26cacSmrg case `getsysinfo -f cpu_type` in 14636df26cacSmrg c1*) 14646df26cacSmrg echo c1-convex-bsd 14656df26cacSmrg exit ;; 14666df26cacSmrg c2*) 14676df26cacSmrg if getsysinfo -f scalar_acc 14686df26cacSmrg then echo c32-convex-bsd 14696df26cacSmrg else echo c2-convex-bsd 14706df26cacSmrg fi 14716df26cacSmrg exit ;; 14726df26cacSmrg c34*) 14736df26cacSmrg echo c34-convex-bsd 14746df26cacSmrg exit ;; 14756df26cacSmrg c38*) 14766df26cacSmrg echo c38-convex-bsd 14776df26cacSmrg exit ;; 14786df26cacSmrg c4*) 14796df26cacSmrg echo c4-convex-bsd 14806df26cacSmrg exit ;; 14816df26cacSmrg esac 14826df26cacSmrgfi 14836df26cacSmrg 14846df26cacSmrgcat >&2 <<EOF 14856df26cacSmrg$0: unable to guess system type 14866df26cacSmrg 14876df26cacSmrgThis script, last modified $timestamp, has failed to recognize 14886df26cacSmrgthe operating system you are using. It is advised that you 14896df26cacSmrgdownload the most up to date version of the config scripts from 14906df26cacSmrg 1491b68e1f86Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 14926df26cacSmrgand 1493b68e1f86Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 14946df26cacSmrg 14956df26cacSmrgIf the version you run ($0) is already up to date, please 14966df26cacSmrgsend the following data and any information you think might be 14976df26cacSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 14986df26cacSmrginformation to handle your system. 14996df26cacSmrg 15006df26cacSmrgconfig.guess timestamp = $timestamp 15016df26cacSmrg 15026df26cacSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 15036df26cacSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 15046df26cacSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 15056df26cacSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 15066df26cacSmrg 15076df26cacSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 15086df26cacSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 15096df26cacSmrg 15106df26cacSmrghostinfo = `(hostinfo) 2>/dev/null` 15116df26cacSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 15126df26cacSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 15136df26cacSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 15146df26cacSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 15156df26cacSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 15166df26cacSmrg 15176df26cacSmrgUNAME_MACHINE = ${UNAME_MACHINE} 15186df26cacSmrgUNAME_RELEASE = ${UNAME_RELEASE} 15196df26cacSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 15206df26cacSmrgUNAME_VERSION = ${UNAME_VERSION} 15216df26cacSmrgEOF 15226df26cacSmrg 15236df26cacSmrgexit 1 15246df26cacSmrg 15256df26cacSmrg# Local variables: 15266df26cacSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 15276df26cacSmrg# time-stamp-start: "timestamp='" 15286df26cacSmrg# time-stamp-format: "%:y-%02m-%02d" 15296df26cacSmrg# time-stamp-end: "'" 15306df26cacSmrg# End: 1531