152f9793fSmrg#! /bin/sh 252f9793fSmrg# Attempt to guess a canonical system name. 352f9793fSmrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 42faa96e0Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 52faa96e0Smrg# Free Software Foundation, Inc. 652f9793fSmrg 72faa96e0Smrgtimestamp='2008-01-23' 852f9793fSmrg 952f9793fSmrg# This file is free software; you can redistribute it and/or modify it 1052f9793fSmrg# under the terms of the GNU General Public License as published by 1152f9793fSmrg# the Free Software Foundation; either version 2 of the License, or 1252f9793fSmrg# (at your option) any later version. 1352f9793fSmrg# 1452f9793fSmrg# This program is distributed in the hope that it will be useful, but 1552f9793fSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 1652f9793fSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 1752f9793fSmrg# General Public License for more details. 1852f9793fSmrg# 1952f9793fSmrg# You should have received a copy of the GNU General Public License 2052f9793fSmrg# along with this program; if not, write to the Free Software 2152f9793fSmrg# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 2252f9793fSmrg# 02110-1301, USA. 2352f9793fSmrg# 2452f9793fSmrg# As a special exception to the GNU General Public License, if you 2552f9793fSmrg# distribute this file as part of a program that contains a 2652f9793fSmrg# configuration script generated by Autoconf, you may include it under 2752f9793fSmrg# the same distribution terms that you use for the rest of that program. 2852f9793fSmrg 2952f9793fSmrg 3052f9793fSmrg# Originally written by Per Bothner <per@bothner.com>. 3152f9793fSmrg# Please send patches to <config-patches@gnu.org>. Submit a context 3252f9793fSmrg# diff and a properly formatted ChangeLog entry. 3352f9793fSmrg# 3452f9793fSmrg# This script attempts to guess a canonical system name similar to 3552f9793fSmrg# config.sub. If it succeeds, it prints the system name on stdout, and 3652f9793fSmrg# exits with 0. Otherwise, it exits with 1. 3752f9793fSmrg# 3852f9793fSmrg# The plan is that this can be called by configure scripts if you 3952f9793fSmrg# don't specify an explicit build system type. 4052f9793fSmrg 4152f9793fSmrgme=`echo "$0" | sed -e 's,.*/,,'` 4252f9793fSmrg 4352f9793fSmrgusage="\ 4452f9793fSmrgUsage: $0 [OPTION] 4552f9793fSmrg 4652f9793fSmrgOutput the configuration name of the system \`$me' is run on. 4752f9793fSmrg 4852f9793fSmrgOperation modes: 4952f9793fSmrg -h, --help print this help, then exit 5052f9793fSmrg -t, --time-stamp print date of last modification, then exit 5152f9793fSmrg -v, --version print version number, then exit 5252f9793fSmrg 5352f9793fSmrgReport bugs and patches to <config-patches@gnu.org>." 5452f9793fSmrg 5552f9793fSmrgversion="\ 5652f9793fSmrgGNU config.guess ($timestamp) 5752f9793fSmrg 5852f9793fSmrgOriginally written by Per Bothner. 592faa96e0SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 602faa96e0Smrg2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 6152f9793fSmrg 6252f9793fSmrgThis is free software; see the source for copying conditions. There is NO 6352f9793fSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 6452f9793fSmrg 6552f9793fSmrghelp=" 6652f9793fSmrgTry \`$me --help' for more information." 6752f9793fSmrg 6852f9793fSmrg# Parse command line 6952f9793fSmrgwhile test $# -gt 0 ; do 7052f9793fSmrg case $1 in 7152f9793fSmrg --time-stamp | --time* | -t ) 7252f9793fSmrg echo "$timestamp" ; exit ;; 7352f9793fSmrg --version | -v ) 7452f9793fSmrg echo "$version" ; exit ;; 7552f9793fSmrg --help | --h* | -h ) 7652f9793fSmrg echo "$usage"; exit ;; 7752f9793fSmrg -- ) # Stop option processing 7852f9793fSmrg shift; break ;; 7952f9793fSmrg - ) # Use stdin as input. 8052f9793fSmrg break ;; 8152f9793fSmrg -* ) 8252f9793fSmrg echo "$me: invalid option $1$help" >&2 8352f9793fSmrg exit 1 ;; 8452f9793fSmrg * ) 8552f9793fSmrg break ;; 8652f9793fSmrg esac 8752f9793fSmrgdone 8852f9793fSmrg 8952f9793fSmrgif test $# != 0; then 9052f9793fSmrg echo "$me: too many arguments$help" >&2 9152f9793fSmrg exit 1 9252f9793fSmrgfi 9352f9793fSmrg 9452f9793fSmrgtrap 'exit 1' 1 2 15 9552f9793fSmrg 9652f9793fSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 9752f9793fSmrg# compiler to aid in system detection is discouraged as it requires 9852f9793fSmrg# temporary files to be created and, as you can see below, it is a 9952f9793fSmrg# headache to deal with in a portable fashion. 10052f9793fSmrg 10152f9793fSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 10252f9793fSmrg# use `HOST_CC' if defined, but it is deprecated. 10352f9793fSmrg 10452f9793fSmrg# Portable tmp directory creation inspired by the Autoconf team. 10552f9793fSmrg 10652f9793fSmrgset_cc_for_build=' 10752f9793fSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 10852f9793fSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 10952f9793fSmrg: ${TMPDIR=/tmp} ; 11052f9793fSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 11152f9793fSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 11252f9793fSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 11352f9793fSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 11452f9793fSmrgdummy=$tmp/dummy ; 11552f9793fSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 11652f9793fSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 11752f9793fSmrg ,,) echo "int x;" > $dummy.c ; 11852f9793fSmrg for c in cc gcc c89 c99 ; do 11952f9793fSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 12052f9793fSmrg CC_FOR_BUILD="$c"; break ; 12152f9793fSmrg fi ; 12252f9793fSmrg done ; 12352f9793fSmrg if test x"$CC_FOR_BUILD" = x ; then 12452f9793fSmrg CC_FOR_BUILD=no_compiler_found ; 12552f9793fSmrg fi 12652f9793fSmrg ;; 12752f9793fSmrg ,,*) CC_FOR_BUILD=$CC ;; 12852f9793fSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 12952f9793fSmrgesac ; set_cc_for_build= ;' 13052f9793fSmrg 13152f9793fSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 13252f9793fSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 13352f9793fSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 13452f9793fSmrg PATH=$PATH:/.attbin ; export PATH 13552f9793fSmrgfi 13652f9793fSmrg 13752f9793fSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 13852f9793fSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 13952f9793fSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 14052f9793fSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 14152f9793fSmrg 14252f9793fSmrg# Note: order is significant - the case branches are not exclusive. 14352f9793fSmrg 14452f9793fSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 14552f9793fSmrg *:NetBSD:*:*) 14652f9793fSmrg # NetBSD (nbsd) targets should (where applicable) match one or 14752f9793fSmrg # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, 14852f9793fSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 14952f9793fSmrg # switched to ELF, *-*-netbsd* would select the old 15052f9793fSmrg # object file format. This provides both forward 15152f9793fSmrg # compatibility and a consistent mechanism for selecting the 15252f9793fSmrg # object file format. 15352f9793fSmrg # 15452f9793fSmrg # Note: NetBSD doesn't particularly care about the vendor 15552f9793fSmrg # portion of the name. We always set it to "unknown". 15652f9793fSmrg sysctl="sysctl -n hw.machine_arch" 15752f9793fSmrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 15852f9793fSmrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 15952f9793fSmrg case "${UNAME_MACHINE_ARCH}" in 16052f9793fSmrg armeb) machine=armeb-unknown ;; 16152f9793fSmrg arm*) machine=arm-unknown ;; 16252f9793fSmrg sh3el) machine=shl-unknown ;; 16352f9793fSmrg sh3eb) machine=sh-unknown ;; 1642faa96e0Smrg sh5el) machine=sh5le-unknown ;; 16552f9793fSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 16652f9793fSmrg esac 16752f9793fSmrg # The Operating System including object format, if it has switched 16852f9793fSmrg # to ELF recently, or will in the future. 16952f9793fSmrg case "${UNAME_MACHINE_ARCH}" in 17052f9793fSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 17152f9793fSmrg eval $set_cc_for_build 17252f9793fSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 17352f9793fSmrg | grep __ELF__ >/dev/null 17452f9793fSmrg then 17552f9793fSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 17652f9793fSmrg # Return netbsd for either. FIX? 17752f9793fSmrg os=netbsd 17852f9793fSmrg else 17952f9793fSmrg os=netbsdelf 18052f9793fSmrg fi 18152f9793fSmrg ;; 18252f9793fSmrg *) 18352f9793fSmrg os=netbsd 18452f9793fSmrg ;; 18552f9793fSmrg esac 18652f9793fSmrg # The OS release 18752f9793fSmrg # Debian GNU/NetBSD machines have a different userland, and 18852f9793fSmrg # thus, need a distinct triplet. However, they do not need 18952f9793fSmrg # kernel version information, so it can be replaced with a 19052f9793fSmrg # suitable tag, in the style of linux-gnu. 19152f9793fSmrg case "${UNAME_VERSION}" in 19252f9793fSmrg Debian*) 19352f9793fSmrg release='-gnu' 19452f9793fSmrg ;; 19552f9793fSmrg *) 19652f9793fSmrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 19752f9793fSmrg ;; 19852f9793fSmrg esac 19952f9793fSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 20052f9793fSmrg # contains redundant information, the shorter form: 20152f9793fSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 20252f9793fSmrg echo "${machine}-${os}${release}" 20352f9793fSmrg exit ;; 20452f9793fSmrg *:OpenBSD:*:*) 20552f9793fSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 20652f9793fSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 20752f9793fSmrg exit ;; 20852f9793fSmrg *:ekkoBSD:*:*) 20952f9793fSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 21052f9793fSmrg exit ;; 21152f9793fSmrg *:SolidBSD:*:*) 21252f9793fSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 21352f9793fSmrg exit ;; 21452f9793fSmrg macppc:MirBSD:*:*) 2152faa96e0Smrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 21652f9793fSmrg exit ;; 21752f9793fSmrg *:MirBSD:*:*) 21852f9793fSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 21952f9793fSmrg exit ;; 22052f9793fSmrg alpha:OSF1:*:*) 22152f9793fSmrg case $UNAME_RELEASE in 22252f9793fSmrg *4.0) 22352f9793fSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 22452f9793fSmrg ;; 22552f9793fSmrg *5.*) 22652f9793fSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 22752f9793fSmrg ;; 22852f9793fSmrg esac 22952f9793fSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 23052f9793fSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 23152f9793fSmrg # covers most systems running today. This code pipes the CPU 23252f9793fSmrg # types through head -n 1, so we only detect the type of CPU 0. 23352f9793fSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 23452f9793fSmrg case "$ALPHA_CPU_TYPE" in 23552f9793fSmrg "EV4 (21064)") 23652f9793fSmrg UNAME_MACHINE="alpha" ;; 23752f9793fSmrg "EV4.5 (21064)") 23852f9793fSmrg UNAME_MACHINE="alpha" ;; 23952f9793fSmrg "LCA4 (21066/21068)") 24052f9793fSmrg UNAME_MACHINE="alpha" ;; 24152f9793fSmrg "EV5 (21164)") 24252f9793fSmrg UNAME_MACHINE="alphaev5" ;; 24352f9793fSmrg "EV5.6 (21164A)") 24452f9793fSmrg UNAME_MACHINE="alphaev56" ;; 24552f9793fSmrg "EV5.6 (21164PC)") 24652f9793fSmrg UNAME_MACHINE="alphapca56" ;; 24752f9793fSmrg "EV5.7 (21164PC)") 24852f9793fSmrg UNAME_MACHINE="alphapca57" ;; 24952f9793fSmrg "EV6 (21264)") 25052f9793fSmrg UNAME_MACHINE="alphaev6" ;; 25152f9793fSmrg "EV6.7 (21264A)") 25252f9793fSmrg UNAME_MACHINE="alphaev67" ;; 25352f9793fSmrg "EV6.8CB (21264C)") 25452f9793fSmrg UNAME_MACHINE="alphaev68" ;; 25552f9793fSmrg "EV6.8AL (21264B)") 25652f9793fSmrg UNAME_MACHINE="alphaev68" ;; 25752f9793fSmrg "EV6.8CX (21264D)") 25852f9793fSmrg UNAME_MACHINE="alphaev68" ;; 25952f9793fSmrg "EV6.9A (21264/EV69A)") 26052f9793fSmrg UNAME_MACHINE="alphaev69" ;; 26152f9793fSmrg "EV7 (21364)") 26252f9793fSmrg UNAME_MACHINE="alphaev7" ;; 26352f9793fSmrg "EV7.9 (21364A)") 26452f9793fSmrg UNAME_MACHINE="alphaev79" ;; 26552f9793fSmrg esac 26652f9793fSmrg # A Pn.n version is a patched version. 26752f9793fSmrg # A Vn.n version is a released version. 26852f9793fSmrg # A Tn.n version is a released field test version. 26952f9793fSmrg # A Xn.n version is an unreleased experimental baselevel. 27052f9793fSmrg # 1.2 uses "1.2" for uname -r. 27152f9793fSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27252f9793fSmrg exit ;; 27352f9793fSmrg Alpha\ *:Windows_NT*:*) 27452f9793fSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 27552f9793fSmrg # Should we change UNAME_MACHINE based on the output of uname instead 27652f9793fSmrg # of the specific Alpha model? 27752f9793fSmrg echo alpha-pc-interix 27852f9793fSmrg exit ;; 27952f9793fSmrg 21064:Windows_NT:50:3) 28052f9793fSmrg echo alpha-dec-winnt3.5 28152f9793fSmrg exit ;; 28252f9793fSmrg Amiga*:UNIX_System_V:4.0:*) 28352f9793fSmrg echo m68k-unknown-sysv4 28452f9793fSmrg exit ;; 28552f9793fSmrg *:[Aa]miga[Oo][Ss]:*:*) 28652f9793fSmrg echo ${UNAME_MACHINE}-unknown-amigaos 28752f9793fSmrg exit ;; 28852f9793fSmrg *:[Mm]orph[Oo][Ss]:*:*) 28952f9793fSmrg echo ${UNAME_MACHINE}-unknown-morphos 29052f9793fSmrg exit ;; 29152f9793fSmrg *:OS/390:*:*) 29252f9793fSmrg echo i370-ibm-openedition 29352f9793fSmrg exit ;; 29452f9793fSmrg *:z/VM:*:*) 29552f9793fSmrg echo s390-ibm-zvmoe 29652f9793fSmrg exit ;; 29752f9793fSmrg *:OS400:*:*) 29852f9793fSmrg echo powerpc-ibm-os400 29952f9793fSmrg exit ;; 30052f9793fSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 30152f9793fSmrg echo arm-acorn-riscix${UNAME_RELEASE} 30252f9793fSmrg exit ;; 30352f9793fSmrg arm:riscos:*:*|arm:RISCOS:*:*) 30452f9793fSmrg echo arm-unknown-riscos 30552f9793fSmrg exit ;; 30652f9793fSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 30752f9793fSmrg echo hppa1.1-hitachi-hiuxmpp 30852f9793fSmrg exit ;; 30952f9793fSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 31052f9793fSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 31152f9793fSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 31252f9793fSmrg echo pyramid-pyramid-sysv3 31352f9793fSmrg else 31452f9793fSmrg echo pyramid-pyramid-bsd 31552f9793fSmrg fi 31652f9793fSmrg exit ;; 31752f9793fSmrg NILE*:*:*:dcosx) 31852f9793fSmrg echo pyramid-pyramid-svr4 31952f9793fSmrg exit ;; 32052f9793fSmrg DRS?6000:unix:4.0:6*) 32152f9793fSmrg echo sparc-icl-nx6 32252f9793fSmrg exit ;; 32352f9793fSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 32452f9793fSmrg case `/usr/bin/uname -p` in 32552f9793fSmrg sparc) echo sparc-icl-nx7; exit ;; 32652f9793fSmrg esac ;; 32752f9793fSmrg sun4H:SunOS:5.*:*) 32852f9793fSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 32952f9793fSmrg exit ;; 33052f9793fSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 33152f9793fSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33252f9793fSmrg exit ;; 3332faa96e0Smrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 33452f9793fSmrg echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 33552f9793fSmrg exit ;; 33652f9793fSmrg sun4*:SunOS:6*:*) 33752f9793fSmrg # According to config.sub, this is the proper way to canonicalize 33852f9793fSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 33952f9793fSmrg # it's likely to be more like Solaris than SunOS4. 34052f9793fSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 34152f9793fSmrg exit ;; 34252f9793fSmrg sun4*:SunOS:*:*) 34352f9793fSmrg case "`/usr/bin/arch -k`" in 34452f9793fSmrg Series*|S4*) 34552f9793fSmrg UNAME_RELEASE=`uname -v` 34652f9793fSmrg ;; 34752f9793fSmrg esac 34852f9793fSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 34952f9793fSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 35052f9793fSmrg exit ;; 35152f9793fSmrg sun3*:SunOS:*:*) 35252f9793fSmrg echo m68k-sun-sunos${UNAME_RELEASE} 35352f9793fSmrg exit ;; 35452f9793fSmrg sun*:*:4.2BSD:*) 35552f9793fSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 35652f9793fSmrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 35752f9793fSmrg case "`/bin/arch`" in 35852f9793fSmrg sun3) 35952f9793fSmrg echo m68k-sun-sunos${UNAME_RELEASE} 36052f9793fSmrg ;; 36152f9793fSmrg sun4) 36252f9793fSmrg echo sparc-sun-sunos${UNAME_RELEASE} 36352f9793fSmrg ;; 36452f9793fSmrg esac 36552f9793fSmrg exit ;; 36652f9793fSmrg aushp:SunOS:*:*) 36752f9793fSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 36852f9793fSmrg exit ;; 36952f9793fSmrg # The situation for MiNT is a little confusing. The machine name 37052f9793fSmrg # can be virtually everything (everything which is not 37152f9793fSmrg # "atarist" or "atariste" at least should have a processor 37252f9793fSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 37352f9793fSmrg # to the lowercase version "mint" (or "freemint"). Finally 37452f9793fSmrg # the system name "TOS" denotes a system which is actually not 37552f9793fSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 37652f9793fSmrg # be no problem. 37752f9793fSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 37852f9793fSmrg echo m68k-atari-mint${UNAME_RELEASE} 37952f9793fSmrg exit ;; 38052f9793fSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 38152f9793fSmrg echo m68k-atari-mint${UNAME_RELEASE} 38252f9793fSmrg exit ;; 38352f9793fSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 38452f9793fSmrg echo m68k-atari-mint${UNAME_RELEASE} 38552f9793fSmrg exit ;; 38652f9793fSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 38752f9793fSmrg echo m68k-milan-mint${UNAME_RELEASE} 38852f9793fSmrg exit ;; 38952f9793fSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 39052f9793fSmrg echo m68k-hades-mint${UNAME_RELEASE} 39152f9793fSmrg exit ;; 39252f9793fSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 39352f9793fSmrg echo m68k-unknown-mint${UNAME_RELEASE} 39452f9793fSmrg exit ;; 39552f9793fSmrg m68k:machten:*:*) 39652f9793fSmrg echo m68k-apple-machten${UNAME_RELEASE} 39752f9793fSmrg exit ;; 39852f9793fSmrg powerpc:machten:*:*) 39952f9793fSmrg echo powerpc-apple-machten${UNAME_RELEASE} 40052f9793fSmrg exit ;; 40152f9793fSmrg RISC*:Mach:*:*) 40252f9793fSmrg echo mips-dec-mach_bsd4.3 40352f9793fSmrg exit ;; 40452f9793fSmrg RISC*:ULTRIX:*:*) 40552f9793fSmrg echo mips-dec-ultrix${UNAME_RELEASE} 40652f9793fSmrg exit ;; 40752f9793fSmrg VAX*:ULTRIX*:*:*) 40852f9793fSmrg echo vax-dec-ultrix${UNAME_RELEASE} 40952f9793fSmrg exit ;; 41052f9793fSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 41152f9793fSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 41252f9793fSmrg exit ;; 41352f9793fSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 41452f9793fSmrg eval $set_cc_for_build 41552f9793fSmrg sed 's/^ //' << EOF >$dummy.c 41652f9793fSmrg#ifdef __cplusplus 41752f9793fSmrg#include <stdio.h> /* for printf() prototype */ 41852f9793fSmrg int main (int argc, char *argv[]) { 41952f9793fSmrg#else 42052f9793fSmrg int main (argc, argv) int argc; char *argv[]; { 42152f9793fSmrg#endif 42252f9793fSmrg #if defined (host_mips) && defined (MIPSEB) 42352f9793fSmrg #if defined (SYSTYPE_SYSV) 42452f9793fSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 42552f9793fSmrg #endif 42652f9793fSmrg #if defined (SYSTYPE_SVR4) 42752f9793fSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 42852f9793fSmrg #endif 42952f9793fSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 43052f9793fSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 43152f9793fSmrg #endif 43252f9793fSmrg #endif 43352f9793fSmrg exit (-1); 43452f9793fSmrg } 43552f9793fSmrgEOF 43652f9793fSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 43752f9793fSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 43852f9793fSmrg SYSTEM_NAME=`$dummy $dummyarg` && 43952f9793fSmrg { echo "$SYSTEM_NAME"; exit; } 44052f9793fSmrg echo mips-mips-riscos${UNAME_RELEASE} 44152f9793fSmrg exit ;; 44252f9793fSmrg Motorola:PowerMAX_OS:*:*) 44352f9793fSmrg echo powerpc-motorola-powermax 44452f9793fSmrg exit ;; 44552f9793fSmrg Motorola:*:4.3:PL8-*) 44652f9793fSmrg echo powerpc-harris-powermax 44752f9793fSmrg exit ;; 44852f9793fSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 44952f9793fSmrg echo powerpc-harris-powermax 45052f9793fSmrg exit ;; 45152f9793fSmrg Night_Hawk:Power_UNIX:*:*) 45252f9793fSmrg echo powerpc-harris-powerunix 45352f9793fSmrg exit ;; 45452f9793fSmrg m88k:CX/UX:7*:*) 45552f9793fSmrg echo m88k-harris-cxux7 45652f9793fSmrg exit ;; 45752f9793fSmrg m88k:*:4*:R4*) 45852f9793fSmrg echo m88k-motorola-sysv4 45952f9793fSmrg exit ;; 46052f9793fSmrg m88k:*:3*:R3*) 46152f9793fSmrg echo m88k-motorola-sysv3 46252f9793fSmrg exit ;; 46352f9793fSmrg AViiON:dgux:*:*) 46452f9793fSmrg # DG/UX returns AViiON for all architectures 46552f9793fSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 46652f9793fSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 46752f9793fSmrg then 46852f9793fSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 46952f9793fSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 47052f9793fSmrg then 47152f9793fSmrg echo m88k-dg-dgux${UNAME_RELEASE} 47252f9793fSmrg else 47352f9793fSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 47452f9793fSmrg fi 47552f9793fSmrg else 47652f9793fSmrg echo i586-dg-dgux${UNAME_RELEASE} 47752f9793fSmrg fi 47852f9793fSmrg exit ;; 47952f9793fSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 48052f9793fSmrg echo m88k-dolphin-sysv3 48152f9793fSmrg exit ;; 48252f9793fSmrg M88*:*:R3*:*) 48352f9793fSmrg # Delta 88k system running SVR3 48452f9793fSmrg echo m88k-motorola-sysv3 48552f9793fSmrg exit ;; 48652f9793fSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 48752f9793fSmrg echo m88k-tektronix-sysv3 48852f9793fSmrg exit ;; 48952f9793fSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 49052f9793fSmrg echo m68k-tektronix-bsd 49152f9793fSmrg exit ;; 49252f9793fSmrg *:IRIX*:*:*) 49352f9793fSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 49452f9793fSmrg exit ;; 49552f9793fSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 49652f9793fSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 49752f9793fSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 49852f9793fSmrg i*86:AIX:*:*) 49952f9793fSmrg echo i386-ibm-aix 50052f9793fSmrg exit ;; 50152f9793fSmrg ia64:AIX:*:*) 50252f9793fSmrg if [ -x /usr/bin/oslevel ] ; then 50352f9793fSmrg IBM_REV=`/usr/bin/oslevel` 50452f9793fSmrg else 50552f9793fSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 50652f9793fSmrg fi 50752f9793fSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 50852f9793fSmrg exit ;; 50952f9793fSmrg *:AIX:2:3) 51052f9793fSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 51152f9793fSmrg eval $set_cc_for_build 51252f9793fSmrg sed 's/^ //' << EOF >$dummy.c 51352f9793fSmrg #include <sys/systemcfg.h> 51452f9793fSmrg 51552f9793fSmrg main() 51652f9793fSmrg { 51752f9793fSmrg if (!__power_pc()) 51852f9793fSmrg exit(1); 51952f9793fSmrg puts("powerpc-ibm-aix3.2.5"); 52052f9793fSmrg exit(0); 52152f9793fSmrg } 52252f9793fSmrgEOF 52352f9793fSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 52452f9793fSmrg then 52552f9793fSmrg echo "$SYSTEM_NAME" 52652f9793fSmrg else 52752f9793fSmrg echo rs6000-ibm-aix3.2.5 52852f9793fSmrg fi 52952f9793fSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 53052f9793fSmrg echo rs6000-ibm-aix3.2.4 53152f9793fSmrg else 53252f9793fSmrg echo rs6000-ibm-aix3.2 53352f9793fSmrg fi 53452f9793fSmrg exit ;; 5352faa96e0Smrg *:AIX:*:[456]) 53652f9793fSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 53752f9793fSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 53852f9793fSmrg IBM_ARCH=rs6000 53952f9793fSmrg else 54052f9793fSmrg IBM_ARCH=powerpc 54152f9793fSmrg fi 54252f9793fSmrg if [ -x /usr/bin/oslevel ] ; then 54352f9793fSmrg IBM_REV=`/usr/bin/oslevel` 54452f9793fSmrg else 54552f9793fSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 54652f9793fSmrg fi 54752f9793fSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 54852f9793fSmrg exit ;; 54952f9793fSmrg *:AIX:*:*) 55052f9793fSmrg echo rs6000-ibm-aix 55152f9793fSmrg exit ;; 55252f9793fSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 55352f9793fSmrg echo romp-ibm-bsd4.4 55452f9793fSmrg exit ;; 55552f9793fSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 55652f9793fSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 55752f9793fSmrg exit ;; # report: romp-ibm BSD 4.3 55852f9793fSmrg *:BOSX:*:*) 55952f9793fSmrg echo rs6000-bull-bosx 56052f9793fSmrg exit ;; 56152f9793fSmrg DPX/2?00:B.O.S.:*:*) 56252f9793fSmrg echo m68k-bull-sysv3 56352f9793fSmrg exit ;; 56452f9793fSmrg 9000/[34]??:4.3bsd:1.*:*) 56552f9793fSmrg echo m68k-hp-bsd 56652f9793fSmrg exit ;; 56752f9793fSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 56852f9793fSmrg echo m68k-hp-bsd4.4 56952f9793fSmrg exit ;; 57052f9793fSmrg 9000/[34678]??:HP-UX:*:*) 57152f9793fSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 57252f9793fSmrg case "${UNAME_MACHINE}" in 57352f9793fSmrg 9000/31? ) HP_ARCH=m68000 ;; 57452f9793fSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 57552f9793fSmrg 9000/[678][0-9][0-9]) 57652f9793fSmrg if [ -x /usr/bin/getconf ]; then 57752f9793fSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 57852f9793fSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 57952f9793fSmrg case "${sc_cpu_version}" in 58052f9793fSmrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 58152f9793fSmrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 58252f9793fSmrg 532) # CPU_PA_RISC2_0 58352f9793fSmrg case "${sc_kernel_bits}" in 58452f9793fSmrg 32) HP_ARCH="hppa2.0n" ;; 58552f9793fSmrg 64) HP_ARCH="hppa2.0w" ;; 58652f9793fSmrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 58752f9793fSmrg esac ;; 58852f9793fSmrg esac 58952f9793fSmrg fi 59052f9793fSmrg if [ "${HP_ARCH}" = "" ]; then 59152f9793fSmrg eval $set_cc_for_build 59252f9793fSmrg sed 's/^ //' << EOF >$dummy.c 59352f9793fSmrg 59452f9793fSmrg #define _HPUX_SOURCE 59552f9793fSmrg #include <stdlib.h> 59652f9793fSmrg #include <unistd.h> 59752f9793fSmrg 59852f9793fSmrg int main () 59952f9793fSmrg { 60052f9793fSmrg #if defined(_SC_KERNEL_BITS) 60152f9793fSmrg long bits = sysconf(_SC_KERNEL_BITS); 60252f9793fSmrg #endif 60352f9793fSmrg long cpu = sysconf (_SC_CPU_VERSION); 60452f9793fSmrg 60552f9793fSmrg switch (cpu) 60652f9793fSmrg { 60752f9793fSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 60852f9793fSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 60952f9793fSmrg case CPU_PA_RISC2_0: 61052f9793fSmrg #if defined(_SC_KERNEL_BITS) 61152f9793fSmrg switch (bits) 61252f9793fSmrg { 61352f9793fSmrg case 64: puts ("hppa2.0w"); break; 61452f9793fSmrg case 32: puts ("hppa2.0n"); break; 61552f9793fSmrg default: puts ("hppa2.0"); break; 61652f9793fSmrg } break; 61752f9793fSmrg #else /* !defined(_SC_KERNEL_BITS) */ 61852f9793fSmrg puts ("hppa2.0"); break; 61952f9793fSmrg #endif 62052f9793fSmrg default: puts ("hppa1.0"); break; 62152f9793fSmrg } 62252f9793fSmrg exit (0); 62352f9793fSmrg } 62452f9793fSmrgEOF 62552f9793fSmrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 62652f9793fSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 62752f9793fSmrg fi ;; 62852f9793fSmrg esac 62952f9793fSmrg if [ ${HP_ARCH} = "hppa2.0w" ] 63052f9793fSmrg then 63152f9793fSmrg eval $set_cc_for_build 63252f9793fSmrg 63352f9793fSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 63452f9793fSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 63552f9793fSmrg # generating 64-bit code. GNU and HP use different nomenclature: 63652f9793fSmrg # 63752f9793fSmrg # $ CC_FOR_BUILD=cc ./config.guess 63852f9793fSmrg # => hppa2.0w-hp-hpux11.23 63952f9793fSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 64052f9793fSmrg # => hppa64-hp-hpux11.23 64152f9793fSmrg 64252f9793fSmrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 64352f9793fSmrg grep __LP64__ >/dev/null 64452f9793fSmrg then 64552f9793fSmrg HP_ARCH="hppa2.0w" 64652f9793fSmrg else 64752f9793fSmrg HP_ARCH="hppa64" 64852f9793fSmrg fi 64952f9793fSmrg fi 65052f9793fSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 65152f9793fSmrg exit ;; 65252f9793fSmrg ia64:HP-UX:*:*) 65352f9793fSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 65452f9793fSmrg echo ia64-hp-hpux${HPUX_REV} 65552f9793fSmrg exit ;; 65652f9793fSmrg 3050*:HI-UX:*:*) 65752f9793fSmrg eval $set_cc_for_build 65852f9793fSmrg sed 's/^ //' << EOF >$dummy.c 65952f9793fSmrg #include <unistd.h> 66052f9793fSmrg int 66152f9793fSmrg main () 66252f9793fSmrg { 66352f9793fSmrg long cpu = sysconf (_SC_CPU_VERSION); 66452f9793fSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 66552f9793fSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 66652f9793fSmrg results, however. */ 66752f9793fSmrg if (CPU_IS_PA_RISC (cpu)) 66852f9793fSmrg { 66952f9793fSmrg switch (cpu) 67052f9793fSmrg { 67152f9793fSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 67252f9793fSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 67352f9793fSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 67452f9793fSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 67552f9793fSmrg } 67652f9793fSmrg } 67752f9793fSmrg else if (CPU_IS_HP_MC68K (cpu)) 67852f9793fSmrg puts ("m68k-hitachi-hiuxwe2"); 67952f9793fSmrg else puts ("unknown-hitachi-hiuxwe2"); 68052f9793fSmrg exit (0); 68152f9793fSmrg } 68252f9793fSmrgEOF 68352f9793fSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 68452f9793fSmrg { echo "$SYSTEM_NAME"; exit; } 68552f9793fSmrg echo unknown-hitachi-hiuxwe2 68652f9793fSmrg exit ;; 68752f9793fSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 68852f9793fSmrg echo hppa1.1-hp-bsd 68952f9793fSmrg exit ;; 69052f9793fSmrg 9000/8??:4.3bsd:*:*) 69152f9793fSmrg echo hppa1.0-hp-bsd 69252f9793fSmrg exit ;; 69352f9793fSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 69452f9793fSmrg echo hppa1.0-hp-mpeix 69552f9793fSmrg exit ;; 69652f9793fSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 69752f9793fSmrg echo hppa1.1-hp-osf 69852f9793fSmrg exit ;; 69952f9793fSmrg hp8??:OSF1:*:*) 70052f9793fSmrg echo hppa1.0-hp-osf 70152f9793fSmrg exit ;; 70252f9793fSmrg i*86:OSF1:*:*) 70352f9793fSmrg if [ -x /usr/sbin/sysversion ] ; then 70452f9793fSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 70552f9793fSmrg else 70652f9793fSmrg echo ${UNAME_MACHINE}-unknown-osf1 70752f9793fSmrg fi 70852f9793fSmrg exit ;; 70952f9793fSmrg parisc*:Lites*:*:*) 71052f9793fSmrg echo hppa1.1-hp-lites 71152f9793fSmrg exit ;; 71252f9793fSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 71352f9793fSmrg echo c1-convex-bsd 71452f9793fSmrg exit ;; 71552f9793fSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 71652f9793fSmrg if getsysinfo -f scalar_acc 71752f9793fSmrg then echo c32-convex-bsd 71852f9793fSmrg else echo c2-convex-bsd 71952f9793fSmrg fi 72052f9793fSmrg exit ;; 72152f9793fSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 72252f9793fSmrg echo c34-convex-bsd 72352f9793fSmrg exit ;; 72452f9793fSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 72552f9793fSmrg echo c38-convex-bsd 72652f9793fSmrg exit ;; 72752f9793fSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 72852f9793fSmrg echo c4-convex-bsd 72952f9793fSmrg exit ;; 73052f9793fSmrg CRAY*Y-MP:*:*:*) 73152f9793fSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 73252f9793fSmrg exit ;; 73352f9793fSmrg CRAY*[A-Z]90:*:*:*) 73452f9793fSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 73552f9793fSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 73652f9793fSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 73752f9793fSmrg -e 's/\.[^.]*$/.X/' 73852f9793fSmrg exit ;; 73952f9793fSmrg CRAY*TS:*:*:*) 74052f9793fSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74152f9793fSmrg exit ;; 74252f9793fSmrg CRAY*T3E:*:*:*) 74352f9793fSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74452f9793fSmrg exit ;; 74552f9793fSmrg CRAY*SV1:*:*:*) 74652f9793fSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 74752f9793fSmrg exit ;; 74852f9793fSmrg *:UNICOS/mp:*:*) 74952f9793fSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 75052f9793fSmrg exit ;; 75152f9793fSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 75252f9793fSmrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 75352f9793fSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 75452f9793fSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 75552f9793fSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 75652f9793fSmrg exit ;; 75752f9793fSmrg 5000:UNIX_System_V:4.*:*) 75852f9793fSmrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 75952f9793fSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 76052f9793fSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 76152f9793fSmrg exit ;; 76252f9793fSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 76352f9793fSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 76452f9793fSmrg exit ;; 76552f9793fSmrg sparc*:BSD/OS:*:*) 76652f9793fSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 76752f9793fSmrg exit ;; 76852f9793fSmrg *:BSD/OS:*:*) 76952f9793fSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 77052f9793fSmrg exit ;; 77152f9793fSmrg *:FreeBSD:*:*) 77252f9793fSmrg case ${UNAME_MACHINE} in 77352f9793fSmrg pc98) 77452f9793fSmrg echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 7752faa96e0Smrg amd64) 7762faa96e0Smrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 77752f9793fSmrg *) 77852f9793fSmrg echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 77952f9793fSmrg esac 78052f9793fSmrg exit ;; 78152f9793fSmrg i*:CYGWIN*:*) 78252f9793fSmrg echo ${UNAME_MACHINE}-pc-cygwin 78352f9793fSmrg exit ;; 7842faa96e0Smrg *:MINGW*:*) 78552f9793fSmrg echo ${UNAME_MACHINE}-pc-mingw32 78652f9793fSmrg exit ;; 78752f9793fSmrg i*:windows32*:*) 78852f9793fSmrg # uname -m includes "-pc" on this system. 78952f9793fSmrg echo ${UNAME_MACHINE}-mingw32 79052f9793fSmrg exit ;; 79152f9793fSmrg i*:PW*:*) 79252f9793fSmrg echo ${UNAME_MACHINE}-pc-pw32 79352f9793fSmrg exit ;; 7942faa96e0Smrg *:Interix*:[3456]*) 7952faa96e0Smrg case ${UNAME_MACHINE} in 7962faa96e0Smrg x86) 7972faa96e0Smrg echo i586-pc-interix${UNAME_RELEASE} 7982faa96e0Smrg exit ;; 7992faa96e0Smrg EM64T | authenticamd) 8002faa96e0Smrg echo x86_64-unknown-interix${UNAME_RELEASE} 8012faa96e0Smrg exit ;; 8022faa96e0Smrg IA64) 8032faa96e0Smrg echo ia64-unknown-interix${UNAME_RELEASE} 8042faa96e0Smrg exit ;; 8052faa96e0Smrg esac ;; 80652f9793fSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 80752f9793fSmrg echo i${UNAME_MACHINE}-pc-mks 80852f9793fSmrg exit ;; 80952f9793fSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 81052f9793fSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 81152f9793fSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 81252f9793fSmrg # UNAME_MACHINE based on the output of uname instead of i386? 81352f9793fSmrg echo i586-pc-interix 81452f9793fSmrg exit ;; 81552f9793fSmrg i*:UWIN*:*) 81652f9793fSmrg echo ${UNAME_MACHINE}-pc-uwin 81752f9793fSmrg exit ;; 81852f9793fSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 81952f9793fSmrg echo x86_64-unknown-cygwin 82052f9793fSmrg exit ;; 82152f9793fSmrg p*:CYGWIN*:*) 82252f9793fSmrg echo powerpcle-unknown-cygwin 82352f9793fSmrg exit ;; 82452f9793fSmrg prep*:SunOS:5.*:*) 82552f9793fSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 82652f9793fSmrg exit ;; 82752f9793fSmrg *:GNU:*:*) 82852f9793fSmrg # the GNU system 82952f9793fSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 83052f9793fSmrg exit ;; 83152f9793fSmrg *:GNU/*:*:*) 83252f9793fSmrg # other systems with GNU libc and userland 83352f9793fSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 83452f9793fSmrg exit ;; 83552f9793fSmrg i*86:Minix:*:*) 83652f9793fSmrg echo ${UNAME_MACHINE}-pc-minix 83752f9793fSmrg exit ;; 83852f9793fSmrg arm*:Linux:*:*) 8392faa96e0Smrg eval $set_cc_for_build 8402faa96e0Smrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 8412faa96e0Smrg | grep -q __ARM_EABI__ 8422faa96e0Smrg then 8432faa96e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 8442faa96e0Smrg else 8452faa96e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 8462faa96e0Smrg fi 8472faa96e0Smrg exit ;; 8482faa96e0Smrg avr32*:Linux:*:*) 84952f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 85052f9793fSmrg exit ;; 85152f9793fSmrg cris:Linux:*:*) 85252f9793fSmrg echo cris-axis-linux-gnu 85352f9793fSmrg exit ;; 85452f9793fSmrg crisv32:Linux:*:*) 85552f9793fSmrg echo crisv32-axis-linux-gnu 85652f9793fSmrg exit ;; 85752f9793fSmrg frv:Linux:*:*) 85852f9793fSmrg echo frv-unknown-linux-gnu 85952f9793fSmrg exit ;; 86052f9793fSmrg ia64:Linux:*:*) 86152f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86252f9793fSmrg exit ;; 86352f9793fSmrg m32r*:Linux:*:*) 86452f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86552f9793fSmrg exit ;; 86652f9793fSmrg m68*:Linux:*:*) 86752f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 86852f9793fSmrg exit ;; 86952f9793fSmrg mips:Linux:*:*) 87052f9793fSmrg eval $set_cc_for_build 87152f9793fSmrg sed 's/^ //' << EOF >$dummy.c 87252f9793fSmrg #undef CPU 87352f9793fSmrg #undef mips 87452f9793fSmrg #undef mipsel 87552f9793fSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 87652f9793fSmrg CPU=mipsel 87752f9793fSmrg #else 87852f9793fSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 87952f9793fSmrg CPU=mips 88052f9793fSmrg #else 88152f9793fSmrg CPU= 88252f9793fSmrg #endif 88352f9793fSmrg #endif 88452f9793fSmrgEOF 88552f9793fSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 88652f9793fSmrg /^CPU/{ 88752f9793fSmrg s: ::g 88852f9793fSmrg p 88952f9793fSmrg }'`" 89052f9793fSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 89152f9793fSmrg ;; 89252f9793fSmrg mips64:Linux:*:*) 89352f9793fSmrg eval $set_cc_for_build 89452f9793fSmrg sed 's/^ //' << EOF >$dummy.c 89552f9793fSmrg #undef CPU 89652f9793fSmrg #undef mips64 89752f9793fSmrg #undef mips64el 89852f9793fSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 89952f9793fSmrg CPU=mips64el 90052f9793fSmrg #else 90152f9793fSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 90252f9793fSmrg CPU=mips64 90352f9793fSmrg #else 90452f9793fSmrg CPU= 90552f9793fSmrg #endif 90652f9793fSmrg #endif 90752f9793fSmrgEOF 90852f9793fSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 90952f9793fSmrg /^CPU/{ 91052f9793fSmrg s: ::g 91152f9793fSmrg p 91252f9793fSmrg }'`" 91352f9793fSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 91452f9793fSmrg ;; 91552f9793fSmrg or32:Linux:*:*) 91652f9793fSmrg echo or32-unknown-linux-gnu 91752f9793fSmrg exit ;; 91852f9793fSmrg ppc:Linux:*:*) 91952f9793fSmrg echo powerpc-unknown-linux-gnu 92052f9793fSmrg exit ;; 92152f9793fSmrg ppc64:Linux:*:*) 92252f9793fSmrg echo powerpc64-unknown-linux-gnu 92352f9793fSmrg exit ;; 92452f9793fSmrg alpha:Linux:*:*) 92552f9793fSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 92652f9793fSmrg EV5) UNAME_MACHINE=alphaev5 ;; 92752f9793fSmrg EV56) UNAME_MACHINE=alphaev56 ;; 92852f9793fSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 92952f9793fSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 93052f9793fSmrg EV6) UNAME_MACHINE=alphaev6 ;; 93152f9793fSmrg EV67) UNAME_MACHINE=alphaev67 ;; 93252f9793fSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 93352f9793fSmrg esac 93452f9793fSmrg objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 93552f9793fSmrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 93652f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 93752f9793fSmrg exit ;; 93852f9793fSmrg parisc:Linux:*:* | hppa:Linux:*:*) 93952f9793fSmrg # Look for CPU level 94052f9793fSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 94152f9793fSmrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 94252f9793fSmrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 94352f9793fSmrg *) echo hppa-unknown-linux-gnu ;; 94452f9793fSmrg esac 94552f9793fSmrg exit ;; 94652f9793fSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 94752f9793fSmrg echo hppa64-unknown-linux-gnu 94852f9793fSmrg exit ;; 94952f9793fSmrg s390:Linux:*:* | s390x:Linux:*:*) 95052f9793fSmrg echo ${UNAME_MACHINE}-ibm-linux 95152f9793fSmrg exit ;; 95252f9793fSmrg sh64*:Linux:*:*) 95352f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 95452f9793fSmrg exit ;; 95552f9793fSmrg sh*:Linux:*:*) 95652f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 95752f9793fSmrg exit ;; 95852f9793fSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 95952f9793fSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 96052f9793fSmrg exit ;; 96152f9793fSmrg vax:Linux:*:*) 96252f9793fSmrg echo ${UNAME_MACHINE}-dec-linux-gnu 96352f9793fSmrg exit ;; 96452f9793fSmrg x86_64:Linux:*:*) 96552f9793fSmrg echo x86_64-unknown-linux-gnu 96652f9793fSmrg exit ;; 9672faa96e0Smrg xtensa*:Linux:*:*) 9682faa96e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 9692faa96e0Smrg exit ;; 97052f9793fSmrg i*86:Linux:*:*) 97152f9793fSmrg # The BFD linker knows what the default object file format is, so 97252f9793fSmrg # first see if it will tell us. cd to the root directory to prevent 97352f9793fSmrg # problems with other programs or directories called `ld' in the path. 97452f9793fSmrg # Set LC_ALL=C to ensure ld outputs messages in English. 97552f9793fSmrg ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ 97652f9793fSmrg | sed -ne '/supported targets:/!d 97752f9793fSmrg s/[ ][ ]*/ /g 97852f9793fSmrg s/.*supported targets: *// 97952f9793fSmrg s/ .*// 98052f9793fSmrg p'` 98152f9793fSmrg case "$ld_supported_targets" in 98252f9793fSmrg elf32-i386) 98352f9793fSmrg TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 98452f9793fSmrg ;; 98552f9793fSmrg a.out-i386-linux) 98652f9793fSmrg echo "${UNAME_MACHINE}-pc-linux-gnuaout" 98752f9793fSmrg exit ;; 98852f9793fSmrg coff-i386) 98952f9793fSmrg echo "${UNAME_MACHINE}-pc-linux-gnucoff" 99052f9793fSmrg exit ;; 99152f9793fSmrg "") 99252f9793fSmrg # Either a pre-BFD a.out linker (linux-gnuoldld) or 99352f9793fSmrg # one that does not give us useful --help. 99452f9793fSmrg echo "${UNAME_MACHINE}-pc-linux-gnuoldld" 99552f9793fSmrg exit ;; 99652f9793fSmrg esac 99752f9793fSmrg # Determine whether the default compiler is a.out or elf 99852f9793fSmrg eval $set_cc_for_build 99952f9793fSmrg sed 's/^ //' << EOF >$dummy.c 100052f9793fSmrg #include <features.h> 100152f9793fSmrg #ifdef __ELF__ 100252f9793fSmrg # ifdef __GLIBC__ 100352f9793fSmrg # if __GLIBC__ >= 2 100452f9793fSmrg LIBC=gnu 100552f9793fSmrg # else 100652f9793fSmrg LIBC=gnulibc1 100752f9793fSmrg # endif 100852f9793fSmrg # else 100952f9793fSmrg LIBC=gnulibc1 101052f9793fSmrg # endif 101152f9793fSmrg #else 10122faa96e0Smrg #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC) 101352f9793fSmrg LIBC=gnu 101452f9793fSmrg #else 101552f9793fSmrg LIBC=gnuaout 101652f9793fSmrg #endif 101752f9793fSmrg #endif 101852f9793fSmrg #ifdef __dietlibc__ 101952f9793fSmrg LIBC=dietlibc 102052f9793fSmrg #endif 102152f9793fSmrgEOF 102252f9793fSmrg eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' 102352f9793fSmrg /^LIBC/{ 102452f9793fSmrg s: ::g 102552f9793fSmrg p 102652f9793fSmrg }'`" 102752f9793fSmrg test x"${LIBC}" != x && { 102852f9793fSmrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 102952f9793fSmrg exit 103052f9793fSmrg } 103152f9793fSmrg test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } 103252f9793fSmrg ;; 103352f9793fSmrg i*86:DYNIX/ptx:4*:*) 103452f9793fSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 103552f9793fSmrg # earlier versions are messed up and put the nodename in both 103652f9793fSmrg # sysname and nodename. 103752f9793fSmrg echo i386-sequent-sysv4 103852f9793fSmrg exit ;; 103952f9793fSmrg i*86:UNIX_SV:4.2MP:2.*) 104052f9793fSmrg # Unixware is an offshoot of SVR4, but it has its own version 104152f9793fSmrg # number series starting with 2... 104252f9793fSmrg # I am not positive that other SVR4 systems won't match this, 104352f9793fSmrg # I just have to hope. -- rms. 104452f9793fSmrg # Use sysv4.2uw... so that sysv4* matches it. 104552f9793fSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 104652f9793fSmrg exit ;; 104752f9793fSmrg i*86:OS/2:*:*) 104852f9793fSmrg # If we were able to find `uname', then EMX Unix compatibility 104952f9793fSmrg # is probably installed. 105052f9793fSmrg echo ${UNAME_MACHINE}-pc-os2-emx 105152f9793fSmrg exit ;; 105252f9793fSmrg i*86:XTS-300:*:STOP) 105352f9793fSmrg echo ${UNAME_MACHINE}-unknown-stop 105452f9793fSmrg exit ;; 105552f9793fSmrg i*86:atheos:*:*) 105652f9793fSmrg echo ${UNAME_MACHINE}-unknown-atheos 105752f9793fSmrg exit ;; 105852f9793fSmrg i*86:syllable:*:*) 105952f9793fSmrg echo ${UNAME_MACHINE}-pc-syllable 106052f9793fSmrg exit ;; 106152f9793fSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 106252f9793fSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 106352f9793fSmrg exit ;; 106452f9793fSmrg i*86:*DOS:*:*) 106552f9793fSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 106652f9793fSmrg exit ;; 106752f9793fSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 106852f9793fSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 106952f9793fSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 107052f9793fSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 107152f9793fSmrg else 107252f9793fSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 107352f9793fSmrg fi 107452f9793fSmrg exit ;; 107552f9793fSmrg i*86:*:5:[678]*) 107652f9793fSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 107752f9793fSmrg case `/bin/uname -X | grep "^Machine"` in 107852f9793fSmrg *486*) UNAME_MACHINE=i486 ;; 107952f9793fSmrg *Pentium) UNAME_MACHINE=i586 ;; 108052f9793fSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 108152f9793fSmrg esac 108252f9793fSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 108352f9793fSmrg exit ;; 108452f9793fSmrg i*86:*:3.2:*) 108552f9793fSmrg if test -f /usr/options/cb.name; then 108652f9793fSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 108752f9793fSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 108852f9793fSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 108952f9793fSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 109052f9793fSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 109152f9793fSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 109252f9793fSmrg && UNAME_MACHINE=i586 109352f9793fSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 109452f9793fSmrg && UNAME_MACHINE=i686 109552f9793fSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 109652f9793fSmrg && UNAME_MACHINE=i686 109752f9793fSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 109852f9793fSmrg else 109952f9793fSmrg echo ${UNAME_MACHINE}-pc-sysv32 110052f9793fSmrg fi 110152f9793fSmrg exit ;; 110252f9793fSmrg pc:*:*:*) 110352f9793fSmrg # Left here for compatibility: 110452f9793fSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 110552f9793fSmrg # the processor, so we play safe by assuming i386. 110652f9793fSmrg echo i386-pc-msdosdjgpp 110752f9793fSmrg exit ;; 110852f9793fSmrg Intel:Mach:3*:*) 110952f9793fSmrg echo i386-pc-mach3 111052f9793fSmrg exit ;; 111152f9793fSmrg paragon:*:*:*) 111252f9793fSmrg echo i860-intel-osf1 111352f9793fSmrg exit ;; 111452f9793fSmrg i860:*:4.*:*) # i860-SVR4 111552f9793fSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 111652f9793fSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 111752f9793fSmrg else # Add other i860-SVR4 vendors below as they are discovered. 111852f9793fSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 111952f9793fSmrg fi 112052f9793fSmrg exit ;; 112152f9793fSmrg mini*:CTIX:SYS*5:*) 112252f9793fSmrg # "miniframe" 112352f9793fSmrg echo m68010-convergent-sysv 112452f9793fSmrg exit ;; 112552f9793fSmrg mc68k:UNIX:SYSTEM5:3.51m) 112652f9793fSmrg echo m68k-convergent-sysv 112752f9793fSmrg exit ;; 112852f9793fSmrg M680?0:D-NIX:5.3:*) 112952f9793fSmrg echo m68k-diab-dnix 113052f9793fSmrg exit ;; 113152f9793fSmrg M68*:*:R3V[5678]*:*) 113252f9793fSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 113352f9793fSmrg 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) 113452f9793fSmrg OS_REL='' 113552f9793fSmrg test -r /etc/.relid \ 113652f9793fSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 113752f9793fSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 113852f9793fSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 113952f9793fSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 114052f9793fSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 114152f9793fSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 114252f9793fSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 114352f9793fSmrg && { echo i486-ncr-sysv4; exit; } ;; 114452f9793fSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 114552f9793fSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 114652f9793fSmrg exit ;; 114752f9793fSmrg mc68030:UNIX_System_V:4.*:*) 114852f9793fSmrg echo m68k-atari-sysv4 114952f9793fSmrg exit ;; 115052f9793fSmrg TSUNAMI:LynxOS:2.*:*) 115152f9793fSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 115252f9793fSmrg exit ;; 115352f9793fSmrg rs6000:LynxOS:2.*:*) 115452f9793fSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 115552f9793fSmrg exit ;; 115652f9793fSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 115752f9793fSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 115852f9793fSmrg exit ;; 115952f9793fSmrg SM[BE]S:UNIX_SV:*:*) 116052f9793fSmrg echo mips-dde-sysv${UNAME_RELEASE} 116152f9793fSmrg exit ;; 116252f9793fSmrg RM*:ReliantUNIX-*:*:*) 116352f9793fSmrg echo mips-sni-sysv4 116452f9793fSmrg exit ;; 116552f9793fSmrg RM*:SINIX-*:*:*) 116652f9793fSmrg echo mips-sni-sysv4 116752f9793fSmrg exit ;; 116852f9793fSmrg *:SINIX-*:*:*) 116952f9793fSmrg if uname -p 2>/dev/null >/dev/null ; then 117052f9793fSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 117152f9793fSmrg echo ${UNAME_MACHINE}-sni-sysv4 117252f9793fSmrg else 117352f9793fSmrg echo ns32k-sni-sysv 117452f9793fSmrg fi 117552f9793fSmrg exit ;; 117652f9793fSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 117752f9793fSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 117852f9793fSmrg echo i586-unisys-sysv4 117952f9793fSmrg exit ;; 118052f9793fSmrg *:UNIX_System_V:4*:FTX*) 118152f9793fSmrg # From Gerald Hewes <hewes@openmarket.com>. 118252f9793fSmrg # How about differentiating between stratus architectures? -djm 118352f9793fSmrg echo hppa1.1-stratus-sysv4 118452f9793fSmrg exit ;; 118552f9793fSmrg *:*:*:FTX*) 118652f9793fSmrg # From seanf@swdc.stratus.com. 118752f9793fSmrg echo i860-stratus-sysv4 118852f9793fSmrg exit ;; 118952f9793fSmrg i*86:VOS:*:*) 119052f9793fSmrg # From Paul.Green@stratus.com. 119152f9793fSmrg echo ${UNAME_MACHINE}-stratus-vos 119252f9793fSmrg exit ;; 119352f9793fSmrg *:VOS:*:*) 119452f9793fSmrg # From Paul.Green@stratus.com. 119552f9793fSmrg echo hppa1.1-stratus-vos 119652f9793fSmrg exit ;; 119752f9793fSmrg mc68*:A/UX:*:*) 119852f9793fSmrg echo m68k-apple-aux${UNAME_RELEASE} 119952f9793fSmrg exit ;; 120052f9793fSmrg news*:NEWS-OS:6*:*) 120152f9793fSmrg echo mips-sony-newsos6 120252f9793fSmrg exit ;; 120352f9793fSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 120452f9793fSmrg if [ -d /usr/nec ]; then 120552f9793fSmrg echo mips-nec-sysv${UNAME_RELEASE} 120652f9793fSmrg else 120752f9793fSmrg echo mips-unknown-sysv${UNAME_RELEASE} 120852f9793fSmrg fi 120952f9793fSmrg exit ;; 121052f9793fSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 121152f9793fSmrg echo powerpc-be-beos 121252f9793fSmrg exit ;; 121352f9793fSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 121452f9793fSmrg echo powerpc-apple-beos 121552f9793fSmrg exit ;; 121652f9793fSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 121752f9793fSmrg echo i586-pc-beos 121852f9793fSmrg exit ;; 121952f9793fSmrg SX-4:SUPER-UX:*:*) 122052f9793fSmrg echo sx4-nec-superux${UNAME_RELEASE} 122152f9793fSmrg exit ;; 122252f9793fSmrg SX-5:SUPER-UX:*:*) 122352f9793fSmrg echo sx5-nec-superux${UNAME_RELEASE} 122452f9793fSmrg exit ;; 122552f9793fSmrg SX-6:SUPER-UX:*:*) 122652f9793fSmrg echo sx6-nec-superux${UNAME_RELEASE} 122752f9793fSmrg exit ;; 12282faa96e0Smrg SX-7:SUPER-UX:*:*) 12292faa96e0Smrg echo sx7-nec-superux${UNAME_RELEASE} 12302faa96e0Smrg exit ;; 12312faa96e0Smrg SX-8:SUPER-UX:*:*) 12322faa96e0Smrg echo sx8-nec-superux${UNAME_RELEASE} 12332faa96e0Smrg exit ;; 12342faa96e0Smrg SX-8R:SUPER-UX:*:*) 12352faa96e0Smrg echo sx8r-nec-superux${UNAME_RELEASE} 12362faa96e0Smrg exit ;; 123752f9793fSmrg Power*:Rhapsody:*:*) 123852f9793fSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 123952f9793fSmrg exit ;; 124052f9793fSmrg *:Rhapsody:*:*) 124152f9793fSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 124252f9793fSmrg exit ;; 124352f9793fSmrg *:Darwin:*:*) 124452f9793fSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 124552f9793fSmrg case $UNAME_PROCESSOR in 124652f9793fSmrg unknown) UNAME_PROCESSOR=powerpc ;; 124752f9793fSmrg esac 124852f9793fSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 124952f9793fSmrg exit ;; 125052f9793fSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 125152f9793fSmrg UNAME_PROCESSOR=`uname -p` 125252f9793fSmrg if test "$UNAME_PROCESSOR" = "x86"; then 125352f9793fSmrg UNAME_PROCESSOR=i386 125452f9793fSmrg UNAME_MACHINE=pc 125552f9793fSmrg fi 125652f9793fSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 125752f9793fSmrg exit ;; 125852f9793fSmrg *:QNX:*:4*) 125952f9793fSmrg echo i386-pc-qnx 126052f9793fSmrg exit ;; 126152f9793fSmrg NSE-?:NONSTOP_KERNEL:*:*) 126252f9793fSmrg echo nse-tandem-nsk${UNAME_RELEASE} 126352f9793fSmrg exit ;; 126452f9793fSmrg NSR-?:NONSTOP_KERNEL:*:*) 126552f9793fSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 126652f9793fSmrg exit ;; 126752f9793fSmrg *:NonStop-UX:*:*) 126852f9793fSmrg echo mips-compaq-nonstopux 126952f9793fSmrg exit ;; 127052f9793fSmrg BS2000:POSIX*:*:*) 127152f9793fSmrg echo bs2000-siemens-sysv 127252f9793fSmrg exit ;; 127352f9793fSmrg DS/*:UNIX_System_V:*:*) 127452f9793fSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 127552f9793fSmrg exit ;; 127652f9793fSmrg *:Plan9:*:*) 127752f9793fSmrg # "uname -m" is not consistent, so use $cputype instead. 386 127852f9793fSmrg # is converted to i386 for consistency with other x86 127952f9793fSmrg # operating systems. 128052f9793fSmrg if test "$cputype" = "386"; then 128152f9793fSmrg UNAME_MACHINE=i386 128252f9793fSmrg else 128352f9793fSmrg UNAME_MACHINE="$cputype" 128452f9793fSmrg fi 128552f9793fSmrg echo ${UNAME_MACHINE}-unknown-plan9 128652f9793fSmrg exit ;; 128752f9793fSmrg *:TOPS-10:*:*) 128852f9793fSmrg echo pdp10-unknown-tops10 128952f9793fSmrg exit ;; 129052f9793fSmrg *:TENEX:*:*) 129152f9793fSmrg echo pdp10-unknown-tenex 129252f9793fSmrg exit ;; 129352f9793fSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 129452f9793fSmrg echo pdp10-dec-tops20 129552f9793fSmrg exit ;; 129652f9793fSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 129752f9793fSmrg echo pdp10-xkl-tops20 129852f9793fSmrg exit ;; 129952f9793fSmrg *:TOPS-20:*:*) 130052f9793fSmrg echo pdp10-unknown-tops20 130152f9793fSmrg exit ;; 130252f9793fSmrg *:ITS:*:*) 130352f9793fSmrg echo pdp10-unknown-its 130452f9793fSmrg exit ;; 130552f9793fSmrg SEI:*:*:SEIUX) 130652f9793fSmrg echo mips-sei-seiux${UNAME_RELEASE} 130752f9793fSmrg exit ;; 130852f9793fSmrg *:DragonFly:*:*) 130952f9793fSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 131052f9793fSmrg exit ;; 131152f9793fSmrg *:*VMS:*:*) 131252f9793fSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 131352f9793fSmrg case "${UNAME_MACHINE}" in 131452f9793fSmrg A*) echo alpha-dec-vms ; exit ;; 131552f9793fSmrg I*) echo ia64-dec-vms ; exit ;; 131652f9793fSmrg V*) echo vax-dec-vms ; exit ;; 131752f9793fSmrg esac ;; 131852f9793fSmrg *:XENIX:*:SysV) 131952f9793fSmrg echo i386-pc-xenix 132052f9793fSmrg exit ;; 132152f9793fSmrg i*86:skyos:*:*) 132252f9793fSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 132352f9793fSmrg exit ;; 132452f9793fSmrg i*86:rdos:*:*) 132552f9793fSmrg echo ${UNAME_MACHINE}-pc-rdos 132652f9793fSmrg exit ;; 132752f9793fSmrgesac 132852f9793fSmrg 132952f9793fSmrg#echo '(No uname command or uname output not recognized.)' 1>&2 133052f9793fSmrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 133152f9793fSmrg 133252f9793fSmrgeval $set_cc_for_build 133352f9793fSmrgcat >$dummy.c <<EOF 133452f9793fSmrg#ifdef _SEQUENT_ 133552f9793fSmrg# include <sys/types.h> 133652f9793fSmrg# include <sys/utsname.h> 133752f9793fSmrg#endif 133852f9793fSmrgmain () 133952f9793fSmrg{ 134052f9793fSmrg#if defined (sony) 134152f9793fSmrg#if defined (MIPSEB) 134252f9793fSmrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 134352f9793fSmrg I don't know.... */ 134452f9793fSmrg printf ("mips-sony-bsd\n"); exit (0); 134552f9793fSmrg#else 134652f9793fSmrg#include <sys/param.h> 134752f9793fSmrg printf ("m68k-sony-newsos%s\n", 134852f9793fSmrg#ifdef NEWSOS4 134952f9793fSmrg "4" 135052f9793fSmrg#else 135152f9793fSmrg "" 135252f9793fSmrg#endif 135352f9793fSmrg ); exit (0); 135452f9793fSmrg#endif 135552f9793fSmrg#endif 135652f9793fSmrg 135752f9793fSmrg#if defined (__arm) && defined (__acorn) && defined (__unix) 135852f9793fSmrg printf ("arm-acorn-riscix\n"); exit (0); 135952f9793fSmrg#endif 136052f9793fSmrg 136152f9793fSmrg#if defined (hp300) && !defined (hpux) 136252f9793fSmrg printf ("m68k-hp-bsd\n"); exit (0); 136352f9793fSmrg#endif 136452f9793fSmrg 136552f9793fSmrg#if defined (NeXT) 136652f9793fSmrg#if !defined (__ARCHITECTURE__) 136752f9793fSmrg#define __ARCHITECTURE__ "m68k" 136852f9793fSmrg#endif 136952f9793fSmrg int version; 137052f9793fSmrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 137152f9793fSmrg if (version < 4) 137252f9793fSmrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 137352f9793fSmrg else 137452f9793fSmrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 137552f9793fSmrg exit (0); 137652f9793fSmrg#endif 137752f9793fSmrg 137852f9793fSmrg#if defined (MULTIMAX) || defined (n16) 137952f9793fSmrg#if defined (UMAXV) 138052f9793fSmrg printf ("ns32k-encore-sysv\n"); exit (0); 138152f9793fSmrg#else 138252f9793fSmrg#if defined (CMU) 138352f9793fSmrg printf ("ns32k-encore-mach\n"); exit (0); 138452f9793fSmrg#else 138552f9793fSmrg printf ("ns32k-encore-bsd\n"); exit (0); 138652f9793fSmrg#endif 138752f9793fSmrg#endif 138852f9793fSmrg#endif 138952f9793fSmrg 139052f9793fSmrg#if defined (__386BSD__) 139152f9793fSmrg printf ("i386-pc-bsd\n"); exit (0); 139252f9793fSmrg#endif 139352f9793fSmrg 139452f9793fSmrg#if defined (sequent) 139552f9793fSmrg#if defined (i386) 139652f9793fSmrg printf ("i386-sequent-dynix\n"); exit (0); 139752f9793fSmrg#endif 139852f9793fSmrg#if defined (ns32000) 139952f9793fSmrg printf ("ns32k-sequent-dynix\n"); exit (0); 140052f9793fSmrg#endif 140152f9793fSmrg#endif 140252f9793fSmrg 140352f9793fSmrg#if defined (_SEQUENT_) 140452f9793fSmrg struct utsname un; 140552f9793fSmrg 140652f9793fSmrg uname(&un); 140752f9793fSmrg 140852f9793fSmrg if (strncmp(un.version, "V2", 2) == 0) { 140952f9793fSmrg printf ("i386-sequent-ptx2\n"); exit (0); 141052f9793fSmrg } 141152f9793fSmrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 141252f9793fSmrg printf ("i386-sequent-ptx1\n"); exit (0); 141352f9793fSmrg } 141452f9793fSmrg printf ("i386-sequent-ptx\n"); exit (0); 141552f9793fSmrg 141652f9793fSmrg#endif 141752f9793fSmrg 141852f9793fSmrg#if defined (vax) 141952f9793fSmrg# if !defined (ultrix) 142052f9793fSmrg# include <sys/param.h> 142152f9793fSmrg# if defined (BSD) 142252f9793fSmrg# if BSD == 43 142352f9793fSmrg printf ("vax-dec-bsd4.3\n"); exit (0); 142452f9793fSmrg# else 142552f9793fSmrg# if BSD == 199006 142652f9793fSmrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 142752f9793fSmrg# else 142852f9793fSmrg printf ("vax-dec-bsd\n"); exit (0); 142952f9793fSmrg# endif 143052f9793fSmrg# endif 143152f9793fSmrg# else 143252f9793fSmrg printf ("vax-dec-bsd\n"); exit (0); 143352f9793fSmrg# endif 143452f9793fSmrg# else 143552f9793fSmrg printf ("vax-dec-ultrix\n"); exit (0); 143652f9793fSmrg# endif 143752f9793fSmrg#endif 143852f9793fSmrg 143952f9793fSmrg#if defined (alliant) && defined (i860) 144052f9793fSmrg printf ("i860-alliant-bsd\n"); exit (0); 144152f9793fSmrg#endif 144252f9793fSmrg 144352f9793fSmrg exit (1); 144452f9793fSmrg} 144552f9793fSmrgEOF 144652f9793fSmrg 144752f9793fSmrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 144852f9793fSmrg { echo "$SYSTEM_NAME"; exit; } 144952f9793fSmrg 145052f9793fSmrg# Apollos put the system type in the environment. 145152f9793fSmrg 145252f9793fSmrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 145352f9793fSmrg 145452f9793fSmrg# Convex versions that predate uname can use getsysinfo(1) 145552f9793fSmrg 145652f9793fSmrgif [ -x /usr/convex/getsysinfo ] 145752f9793fSmrgthen 145852f9793fSmrg case `getsysinfo -f cpu_type` in 145952f9793fSmrg c1*) 146052f9793fSmrg echo c1-convex-bsd 146152f9793fSmrg exit ;; 146252f9793fSmrg c2*) 146352f9793fSmrg if getsysinfo -f scalar_acc 146452f9793fSmrg then echo c32-convex-bsd 146552f9793fSmrg else echo c2-convex-bsd 146652f9793fSmrg fi 146752f9793fSmrg exit ;; 146852f9793fSmrg c34*) 146952f9793fSmrg echo c34-convex-bsd 147052f9793fSmrg exit ;; 147152f9793fSmrg c38*) 147252f9793fSmrg echo c38-convex-bsd 147352f9793fSmrg exit ;; 147452f9793fSmrg c4*) 147552f9793fSmrg echo c4-convex-bsd 147652f9793fSmrg exit ;; 147752f9793fSmrg esac 147852f9793fSmrgfi 147952f9793fSmrg 148052f9793fSmrgcat >&2 <<EOF 148152f9793fSmrg$0: unable to guess system type 148252f9793fSmrg 148352f9793fSmrgThis script, last modified $timestamp, has failed to recognize 148452f9793fSmrgthe operating system you are using. It is advised that you 148552f9793fSmrgdownload the most up to date version of the config scripts from 148652f9793fSmrg 14872faa96e0Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 148852f9793fSmrgand 14892faa96e0Smrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 149052f9793fSmrg 149152f9793fSmrgIf the version you run ($0) is already up to date, please 149252f9793fSmrgsend the following data and any information you think might be 149352f9793fSmrgpertinent to <config-patches@gnu.org> in order to provide the needed 149452f9793fSmrginformation to handle your system. 149552f9793fSmrg 149652f9793fSmrgconfig.guess timestamp = $timestamp 149752f9793fSmrg 149852f9793fSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 149952f9793fSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 150052f9793fSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 150152f9793fSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 150252f9793fSmrg 150352f9793fSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 150452f9793fSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 150552f9793fSmrg 150652f9793fSmrghostinfo = `(hostinfo) 2>/dev/null` 150752f9793fSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 150852f9793fSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 150952f9793fSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 151052f9793fSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 151152f9793fSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 151252f9793fSmrg 151352f9793fSmrgUNAME_MACHINE = ${UNAME_MACHINE} 151452f9793fSmrgUNAME_RELEASE = ${UNAME_RELEASE} 151552f9793fSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 151652f9793fSmrgUNAME_VERSION = ${UNAME_VERSION} 151752f9793fSmrgEOF 151852f9793fSmrg 151952f9793fSmrgexit 1 152052f9793fSmrg 152152f9793fSmrg# Local variables: 152252f9793fSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 152352f9793fSmrg# time-stamp-start: "timestamp='" 152452f9793fSmrg# time-stamp-format: "%:y-%02m-%02d" 152552f9793fSmrg# time-stamp-end: "'" 152652f9793fSmrg# End: 1527