1a4f78defSmrg#! /bin/sh 2a4f78defSmrg# Attempt to guess a canonical system name. 3fb570538Smrg# Copyright 1992-2018 Free Software Foundation, Inc. 4a4f78defSmrg 5fb570538Smrgtimestamp='2018-03-08' 6a4f78defSmrg 7a4f78defSmrg# This file is free software; you can redistribute it and/or modify it 8a4f78defSmrg# under the terms of the GNU General Public License as published by 9a4f78defSmrg# the Free Software Foundation; either version 3 of the License, or 10a4f78defSmrg# (at your option) any later version. 11a4f78defSmrg# 12a4f78defSmrg# This program is distributed in the hope that it will be useful, but 13a4f78defSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 14a4f78defSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15a4f78defSmrg# General Public License for more details. 16a4f78defSmrg# 17a4f78defSmrg# You should have received a copy of the GNU General Public License 18fb570538Smrg# along with this program; if not, see <https://www.gnu.org/licenses/>. 19a4f78defSmrg# 20a4f78defSmrg# As a special exception to the GNU General Public License, if you 21a4f78defSmrg# distribute this file as part of a program that contains a 22a4f78defSmrg# configuration script generated by Autoconf, you may include it under 23a4f78defSmrg# the same distribution terms that you use for the rest of that 24a4f78defSmrg# program. This Exception is an additional permission under section 7 25a4f78defSmrg# of the GNU General Public License, version 3 ("GPLv3"). 26a4f78defSmrg# 27a4f78defSmrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 28a4f78defSmrg# 29a4f78defSmrg# You can get the latest version of this script from: 30fb570538Smrg# https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 31a4f78defSmrg# 32a4f78defSmrg# Please send patches to <config-patches@gnu.org>. 33a4f78defSmrg 34a4f78defSmrg 35a4f78defSmrgme=`echo "$0" | sed -e 's,.*/,,'` 36a4f78defSmrg 37a4f78defSmrgusage="\ 38a4f78defSmrgUsage: $0 [OPTION] 39a4f78defSmrg 40a4f78defSmrgOutput the configuration name of the system \`$me' is run on. 41a4f78defSmrg 42fb570538SmrgOptions: 43a4f78defSmrg -h, --help print this help, then exit 44a4f78defSmrg -t, --time-stamp print date of last modification, then exit 45a4f78defSmrg -v, --version print version number, then exit 46a4f78defSmrg 47a4f78defSmrgReport bugs and patches to <config-patches@gnu.org>." 48a4f78defSmrg 49a4f78defSmrgversion="\ 50a4f78defSmrgGNU config.guess ($timestamp) 51a4f78defSmrg 52a4f78defSmrgOriginally written by Per Bothner. 53fb570538SmrgCopyright 1992-2018 Free Software Foundation, Inc. 54a4f78defSmrg 55a4f78defSmrgThis is free software; see the source for copying conditions. There is NO 56a4f78defSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 57a4f78defSmrg 58a4f78defSmrghelp=" 59a4f78defSmrgTry \`$me --help' for more information." 60a4f78defSmrg 61a4f78defSmrg# Parse command line 62a4f78defSmrgwhile test $# -gt 0 ; do 63a4f78defSmrg case $1 in 64a4f78defSmrg --time-stamp | --time* | -t ) 65a4f78defSmrg echo "$timestamp" ; exit ;; 66a4f78defSmrg --version | -v ) 67a4f78defSmrg echo "$version" ; exit ;; 68a4f78defSmrg --help | --h* | -h ) 69a4f78defSmrg echo "$usage"; exit ;; 70a4f78defSmrg -- ) # Stop option processing 71a4f78defSmrg shift; break ;; 72a4f78defSmrg - ) # Use stdin as input. 73a4f78defSmrg break ;; 74a4f78defSmrg -* ) 75a4f78defSmrg echo "$me: invalid option $1$help" >&2 76a4f78defSmrg exit 1 ;; 77a4f78defSmrg * ) 78a4f78defSmrg break ;; 79a4f78defSmrg esac 80a4f78defSmrgdone 81a4f78defSmrg 82a4f78defSmrgif test $# != 0; then 83a4f78defSmrg echo "$me: too many arguments$help" >&2 84a4f78defSmrg exit 1 85a4f78defSmrgfi 86a4f78defSmrg 87a4f78defSmrgtrap 'exit 1' 1 2 15 88a4f78defSmrg 89a4f78defSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 90a4f78defSmrg# compiler to aid in system detection is discouraged as it requires 91a4f78defSmrg# temporary files to be created and, as you can see below, it is a 92a4f78defSmrg# headache to deal with in a portable fashion. 93a4f78defSmrg 94a4f78defSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 95a4f78defSmrg# use `HOST_CC' if defined, but it is deprecated. 96a4f78defSmrg 97a4f78defSmrg# Portable tmp directory creation inspired by the Autoconf team. 98a4f78defSmrg 99a4f78defSmrgset_cc_for_build=' 100a4f78defSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 101a4f78defSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 102a4f78defSmrg: ${TMPDIR=/tmp} ; 103a4f78defSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 104a4f78defSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 105a4f78defSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 106a4f78defSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 107a4f78defSmrgdummy=$tmp/dummy ; 108a4f78defSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109a4f78defSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 110fb570538Smrg ,,) echo "int x;" > "$dummy.c" ; 111a4f78defSmrg for c in cc gcc c89 c99 ; do 112fb570538Smrg if ($c -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then 113a4f78defSmrg CC_FOR_BUILD="$c"; break ; 114a4f78defSmrg fi ; 115a4f78defSmrg done ; 116a4f78defSmrg if test x"$CC_FOR_BUILD" = x ; then 117a4f78defSmrg CC_FOR_BUILD=no_compiler_found ; 118a4f78defSmrg fi 119a4f78defSmrg ;; 120a4f78defSmrg ,,*) CC_FOR_BUILD=$CC ;; 121a4f78defSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122a4f78defSmrgesac ; set_cc_for_build= ;' 123a4f78defSmrg 124a4f78defSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125a4f78defSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 126a4f78defSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 127a4f78defSmrg PATH=$PATH:/.attbin ; export PATH 128a4f78defSmrgfi 129a4f78defSmrg 130a4f78defSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 131a4f78defSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 132a4f78defSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 133a4f78defSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 134a4f78defSmrg 135fb570538Smrgcase "$UNAME_SYSTEM" in 136a4f78defSmrgLinux|GNU|GNU/*) 137a4f78defSmrg # If the system lacks a compiler, then just pick glibc. 138a4f78defSmrg # We could probably try harder. 139a4f78defSmrg LIBC=gnu 140a4f78defSmrg 141fb570538Smrg eval "$set_cc_for_build" 142fb570538Smrg cat <<-EOF > "$dummy.c" 143a4f78defSmrg #include <features.h> 144a4f78defSmrg #if defined(__UCLIBC__) 145a4f78defSmrg LIBC=uclibc 146a4f78defSmrg #elif defined(__dietlibc__) 147a4f78defSmrg LIBC=dietlibc 148a4f78defSmrg #else 149a4f78defSmrg LIBC=gnu 150a4f78defSmrg #endif 151a4f78defSmrg EOF 152fb570538Smrg eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" 153fb570538Smrg 154fb570538Smrg # If ldd exists, use it to detect musl libc. 155fb570538Smrg if command -v ldd >/dev/null && \ 156fb570538Smrg ldd --version 2>&1 | grep -q ^musl 157fb570538Smrg then 158fb570538Smrg LIBC=musl 159fb570538Smrg fi 160a4f78defSmrg ;; 161a4f78defSmrgesac 162a4f78defSmrg 163a4f78defSmrg# Note: order is significant - the case branches are not exclusive. 164a4f78defSmrg 165fb570538Smrgcase "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in 166a4f78defSmrg *:NetBSD:*:*) 167a4f78defSmrg # NetBSD (nbsd) targets should (where applicable) match one or 168a4f78defSmrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 169a4f78defSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 170a4f78defSmrg # switched to ELF, *-*-netbsd* would select the old 171a4f78defSmrg # object file format. This provides both forward 172a4f78defSmrg # compatibility and a consistent mechanism for selecting the 173a4f78defSmrg # object file format. 174a4f78defSmrg # 175a4f78defSmrg # Note: NetBSD doesn't particularly care about the vendor 176a4f78defSmrg # portion of the name. We always set it to "unknown". 177a4f78defSmrg sysctl="sysctl -n hw.machine_arch" 178fb570538Smrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 179fb570538Smrg "/sbin/$sysctl" 2>/dev/null || \ 180fb570538Smrg "/usr/sbin/$sysctl" 2>/dev/null || \ 181fb570538Smrg echo unknown)` 182fb570538Smrg case "$UNAME_MACHINE_ARCH" in 183a4f78defSmrg armeb) machine=armeb-unknown ;; 184a4f78defSmrg arm*) machine=arm-unknown ;; 185a4f78defSmrg sh3el) machine=shl-unknown ;; 186a4f78defSmrg sh3eb) machine=sh-unknown ;; 187a4f78defSmrg sh5el) machine=sh5le-unknown ;; 188fb570538Smrg earmv*) 189fb570538Smrg arch=`echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 190fb570538Smrg endian=`echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p'` 191fb570538Smrg machine="${arch}${endian}"-unknown 192fb570538Smrg ;; 193fb570538Smrg *) machine="$UNAME_MACHINE_ARCH"-unknown ;; 194a4f78defSmrg esac 195a4f78defSmrg # The Operating System including object format, if it has switched 196fb570538Smrg # to ELF recently (or will in the future) and ABI. 197fb570538Smrg case "$UNAME_MACHINE_ARCH" in 198fb570538Smrg earm*) 199fb570538Smrg os=netbsdelf 200fb570538Smrg ;; 201a4f78defSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 202fb570538Smrg eval "$set_cc_for_build" 203a4f78defSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 204a4f78defSmrg | grep -q __ELF__ 205a4f78defSmrg then 206a4f78defSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 207a4f78defSmrg # Return netbsd for either. FIX? 208a4f78defSmrg os=netbsd 209a4f78defSmrg else 210a4f78defSmrg os=netbsdelf 211a4f78defSmrg fi 212a4f78defSmrg ;; 213a4f78defSmrg *) 214a4f78defSmrg os=netbsd 215a4f78defSmrg ;; 216a4f78defSmrg esac 217fb570538Smrg # Determine ABI tags. 218fb570538Smrg case "$UNAME_MACHINE_ARCH" in 219fb570538Smrg earm*) 220fb570538Smrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 221fb570538Smrg abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` 222fb570538Smrg ;; 223fb570538Smrg esac 224a4f78defSmrg # The OS release 225a4f78defSmrg # Debian GNU/NetBSD machines have a different userland, and 226a4f78defSmrg # thus, need a distinct triplet. However, they do not need 227a4f78defSmrg # kernel version information, so it can be replaced with a 228a4f78defSmrg # suitable tag, in the style of linux-gnu. 229fb570538Smrg case "$UNAME_VERSION" in 230a4f78defSmrg Debian*) 231a4f78defSmrg release='-gnu' 232a4f78defSmrg ;; 233a4f78defSmrg *) 234fb570538Smrg release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` 235a4f78defSmrg ;; 236a4f78defSmrg esac 237a4f78defSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 238a4f78defSmrg # contains redundant information, the shorter form: 239a4f78defSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 240fb570538Smrg echo "$machine-${os}${release}${abi}" 241a4f78defSmrg exit ;; 242a4f78defSmrg *:Bitrig:*:*) 243a4f78defSmrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 244fb570538Smrg echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" 245a4f78defSmrg exit ;; 246a4f78defSmrg *:OpenBSD:*:*) 247a4f78defSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 248fb570538Smrg echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" 249fb570538Smrg exit ;; 250fb570538Smrg *:LibertyBSD:*:*) 251fb570538Smrg UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 252fb570538Smrg echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" 253fb570538Smrg exit ;; 254fb570538Smrg *:MidnightBSD:*:*) 255fb570538Smrg echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE" 256a4f78defSmrg exit ;; 257a4f78defSmrg *:ekkoBSD:*:*) 258fb570538Smrg echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE" 259a4f78defSmrg exit ;; 260a4f78defSmrg *:SolidBSD:*:*) 261fb570538Smrg echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" 262a4f78defSmrg exit ;; 263a4f78defSmrg macppc:MirBSD:*:*) 264fb570538Smrg echo powerpc-unknown-mirbsd"$UNAME_RELEASE" 265a4f78defSmrg exit ;; 266a4f78defSmrg *:MirBSD:*:*) 267fb570538Smrg echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE" 268a4f78defSmrg exit ;; 269fb570538Smrg *:Sortix:*:*) 270fb570538Smrg echo "$UNAME_MACHINE"-unknown-sortix 271fb570538Smrg exit ;; 272fb570538Smrg *:Redox:*:*) 273fb570538Smrg echo "$UNAME_MACHINE"-unknown-redox 274fb570538Smrg exit ;; 275fb570538Smrg mips:OSF1:*.*) 276fb570538Smrg echo mips-dec-osf1 277fb570538Smrg exit ;; 278a4f78defSmrg alpha:OSF1:*:*) 279a4f78defSmrg case $UNAME_RELEASE in 280a4f78defSmrg *4.0) 281a4f78defSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 282a4f78defSmrg ;; 283a4f78defSmrg *5.*) 284a4f78defSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 285a4f78defSmrg ;; 286a4f78defSmrg esac 287a4f78defSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 288a4f78defSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 289a4f78defSmrg # covers most systems running today. This code pipes the CPU 290a4f78defSmrg # types through head -n 1, so we only detect the type of CPU 0. 291a4f78defSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 292a4f78defSmrg case "$ALPHA_CPU_TYPE" in 293a4f78defSmrg "EV4 (21064)") 294fb570538Smrg UNAME_MACHINE=alpha ;; 295a4f78defSmrg "EV4.5 (21064)") 296fb570538Smrg UNAME_MACHINE=alpha ;; 297a4f78defSmrg "LCA4 (21066/21068)") 298fb570538Smrg UNAME_MACHINE=alpha ;; 299a4f78defSmrg "EV5 (21164)") 300fb570538Smrg UNAME_MACHINE=alphaev5 ;; 301a4f78defSmrg "EV5.6 (21164A)") 302fb570538Smrg UNAME_MACHINE=alphaev56 ;; 303a4f78defSmrg "EV5.6 (21164PC)") 304fb570538Smrg UNAME_MACHINE=alphapca56 ;; 305a4f78defSmrg "EV5.7 (21164PC)") 306fb570538Smrg UNAME_MACHINE=alphapca57 ;; 307a4f78defSmrg "EV6 (21264)") 308fb570538Smrg UNAME_MACHINE=alphaev6 ;; 309a4f78defSmrg "EV6.7 (21264A)") 310fb570538Smrg UNAME_MACHINE=alphaev67 ;; 311a4f78defSmrg "EV6.8CB (21264C)") 312fb570538Smrg UNAME_MACHINE=alphaev68 ;; 313a4f78defSmrg "EV6.8AL (21264B)") 314fb570538Smrg UNAME_MACHINE=alphaev68 ;; 315a4f78defSmrg "EV6.8CX (21264D)") 316fb570538Smrg UNAME_MACHINE=alphaev68 ;; 317a4f78defSmrg "EV6.9A (21264/EV69A)") 318fb570538Smrg UNAME_MACHINE=alphaev69 ;; 319a4f78defSmrg "EV7 (21364)") 320fb570538Smrg UNAME_MACHINE=alphaev7 ;; 321a4f78defSmrg "EV7.9 (21364A)") 322fb570538Smrg UNAME_MACHINE=alphaev79 ;; 323a4f78defSmrg esac 324a4f78defSmrg # A Pn.n version is a patched version. 325a4f78defSmrg # A Vn.n version is a released version. 326a4f78defSmrg # A Tn.n version is a released field test version. 327a4f78defSmrg # A Xn.n version is an unreleased experimental baselevel. 328a4f78defSmrg # 1.2 uses "1.2" for uname -r. 329fb570538Smrg echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" 330a4f78defSmrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 331a4f78defSmrg exitcode=$? 332a4f78defSmrg trap '' 0 333a4f78defSmrg exit $exitcode ;; 334a4f78defSmrg Amiga*:UNIX_System_V:4.0:*) 335a4f78defSmrg echo m68k-unknown-sysv4 336a4f78defSmrg exit ;; 337a4f78defSmrg *:[Aa]miga[Oo][Ss]:*:*) 338fb570538Smrg echo "$UNAME_MACHINE"-unknown-amigaos 339a4f78defSmrg exit ;; 340a4f78defSmrg *:[Mm]orph[Oo][Ss]:*:*) 341fb570538Smrg echo "$UNAME_MACHINE"-unknown-morphos 342a4f78defSmrg exit ;; 343a4f78defSmrg *:OS/390:*:*) 344a4f78defSmrg echo i370-ibm-openedition 345a4f78defSmrg exit ;; 346a4f78defSmrg *:z/VM:*:*) 347a4f78defSmrg echo s390-ibm-zvmoe 348a4f78defSmrg exit ;; 349a4f78defSmrg *:OS400:*:*) 350a4f78defSmrg echo powerpc-ibm-os400 351a4f78defSmrg exit ;; 352a4f78defSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 353fb570538Smrg echo arm-acorn-riscix"$UNAME_RELEASE" 354a4f78defSmrg exit ;; 355a4f78defSmrg arm*:riscos:*:*|arm*:RISCOS:*:*) 356a4f78defSmrg echo arm-unknown-riscos 357a4f78defSmrg exit ;; 358a4f78defSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 359a4f78defSmrg echo hppa1.1-hitachi-hiuxmpp 360a4f78defSmrg exit ;; 361a4f78defSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 362a4f78defSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 363a4f78defSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 364a4f78defSmrg echo pyramid-pyramid-sysv3 365a4f78defSmrg else 366a4f78defSmrg echo pyramid-pyramid-bsd 367a4f78defSmrg fi 368a4f78defSmrg exit ;; 369a4f78defSmrg NILE*:*:*:dcosx) 370a4f78defSmrg echo pyramid-pyramid-svr4 371a4f78defSmrg exit ;; 372a4f78defSmrg DRS?6000:unix:4.0:6*) 373a4f78defSmrg echo sparc-icl-nx6 374a4f78defSmrg exit ;; 375a4f78defSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 376a4f78defSmrg case `/usr/bin/uname -p` in 377a4f78defSmrg sparc) echo sparc-icl-nx7; exit ;; 378a4f78defSmrg esac ;; 379a4f78defSmrg s390x:SunOS:*:*) 380fb570538Smrg echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 381a4f78defSmrg exit ;; 382a4f78defSmrg sun4H:SunOS:5.*:*) 383fb570538Smrg echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 384a4f78defSmrg exit ;; 385a4f78defSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 386fb570538Smrg echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" 387a4f78defSmrg exit ;; 388a4f78defSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 389fb570538Smrg echo i386-pc-auroraux"$UNAME_RELEASE" 390a4f78defSmrg exit ;; 391a4f78defSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 392fb570538Smrg eval "$set_cc_for_build" 393fb570538Smrg SUN_ARCH=i386 394a4f78defSmrg # If there is a compiler, see if it is configured for 64-bit objects. 395a4f78defSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 396a4f78defSmrg # This test works for both compilers. 397fb570538Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 398a4f78defSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 399fb570538Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 400a4f78defSmrg grep IS_64BIT_ARCH >/dev/null 401a4f78defSmrg then 402fb570538Smrg SUN_ARCH=x86_64 403a4f78defSmrg fi 404a4f78defSmrg fi 405fb570538Smrg echo "$SUN_ARCH"-pc-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 406a4f78defSmrg exit ;; 407a4f78defSmrg sun4*:SunOS:6*:*) 408a4f78defSmrg # According to config.sub, this is the proper way to canonicalize 409a4f78defSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 410a4f78defSmrg # it's likely to be more like Solaris than SunOS4. 411fb570538Smrg echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 412a4f78defSmrg exit ;; 413a4f78defSmrg sun4*:SunOS:*:*) 414a4f78defSmrg case "`/usr/bin/arch -k`" in 415a4f78defSmrg Series*|S4*) 416a4f78defSmrg UNAME_RELEASE=`uname -v` 417a4f78defSmrg ;; 418a4f78defSmrg esac 419a4f78defSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 420fb570538Smrg echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" 421a4f78defSmrg exit ;; 422a4f78defSmrg sun3*:SunOS:*:*) 423fb570538Smrg echo m68k-sun-sunos"$UNAME_RELEASE" 424a4f78defSmrg exit ;; 425a4f78defSmrg sun*:*:4.2BSD:*) 426a4f78defSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 427fb570538Smrg test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3 428a4f78defSmrg case "`/bin/arch`" in 429a4f78defSmrg sun3) 430fb570538Smrg echo m68k-sun-sunos"$UNAME_RELEASE" 431a4f78defSmrg ;; 432a4f78defSmrg sun4) 433fb570538Smrg echo sparc-sun-sunos"$UNAME_RELEASE" 434a4f78defSmrg ;; 435a4f78defSmrg esac 436a4f78defSmrg exit ;; 437a4f78defSmrg aushp:SunOS:*:*) 438fb570538Smrg echo sparc-auspex-sunos"$UNAME_RELEASE" 439a4f78defSmrg exit ;; 440a4f78defSmrg # The situation for MiNT is a little confusing. The machine name 441a4f78defSmrg # can be virtually everything (everything which is not 442a4f78defSmrg # "atarist" or "atariste" at least should have a processor 443a4f78defSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 444a4f78defSmrg # to the lowercase version "mint" (or "freemint"). Finally 445a4f78defSmrg # the system name "TOS" denotes a system which is actually not 446a4f78defSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 447a4f78defSmrg # be no problem. 448a4f78defSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 449fb570538Smrg echo m68k-atari-mint"$UNAME_RELEASE" 450a4f78defSmrg exit ;; 451a4f78defSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 452fb570538Smrg echo m68k-atari-mint"$UNAME_RELEASE" 453a4f78defSmrg exit ;; 454a4f78defSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 455fb570538Smrg echo m68k-atari-mint"$UNAME_RELEASE" 456a4f78defSmrg exit ;; 457a4f78defSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 458fb570538Smrg echo m68k-milan-mint"$UNAME_RELEASE" 459a4f78defSmrg exit ;; 460a4f78defSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 461fb570538Smrg echo m68k-hades-mint"$UNAME_RELEASE" 462a4f78defSmrg exit ;; 463a4f78defSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 464fb570538Smrg echo m68k-unknown-mint"$UNAME_RELEASE" 465a4f78defSmrg exit ;; 466a4f78defSmrg m68k:machten:*:*) 467fb570538Smrg echo m68k-apple-machten"$UNAME_RELEASE" 468a4f78defSmrg exit ;; 469a4f78defSmrg powerpc:machten:*:*) 470fb570538Smrg echo powerpc-apple-machten"$UNAME_RELEASE" 471a4f78defSmrg exit ;; 472a4f78defSmrg RISC*:Mach:*:*) 473a4f78defSmrg echo mips-dec-mach_bsd4.3 474a4f78defSmrg exit ;; 475a4f78defSmrg RISC*:ULTRIX:*:*) 476fb570538Smrg echo mips-dec-ultrix"$UNAME_RELEASE" 477a4f78defSmrg exit ;; 478a4f78defSmrg VAX*:ULTRIX*:*:*) 479fb570538Smrg echo vax-dec-ultrix"$UNAME_RELEASE" 480a4f78defSmrg exit ;; 481a4f78defSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 482fb570538Smrg echo clipper-intergraph-clix"$UNAME_RELEASE" 483a4f78defSmrg exit ;; 484a4f78defSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 485fb570538Smrg eval "$set_cc_for_build" 486fb570538Smrg sed 's/^ //' << EOF > "$dummy.c" 487a4f78defSmrg#ifdef __cplusplus 488a4f78defSmrg#include <stdio.h> /* for printf() prototype */ 489a4f78defSmrg int main (int argc, char *argv[]) { 490a4f78defSmrg#else 491a4f78defSmrg int main (argc, argv) int argc; char *argv[]; { 492a4f78defSmrg#endif 493a4f78defSmrg #if defined (host_mips) && defined (MIPSEB) 494a4f78defSmrg #if defined (SYSTYPE_SYSV) 495fb570538Smrg printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0); 496a4f78defSmrg #endif 497a4f78defSmrg #if defined (SYSTYPE_SVR4) 498fb570538Smrg printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0); 499a4f78defSmrg #endif 500a4f78defSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 501fb570538Smrg printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0); 502a4f78defSmrg #endif 503a4f78defSmrg #endif 504a4f78defSmrg exit (-1); 505a4f78defSmrg } 506a4f78defSmrgEOF 507fb570538Smrg $CC_FOR_BUILD -o "$dummy" "$dummy.c" && 508fb570538Smrg dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && 509fb570538Smrg SYSTEM_NAME=`"$dummy" "$dummyarg"` && 510a4f78defSmrg { echo "$SYSTEM_NAME"; exit; } 511fb570538Smrg echo mips-mips-riscos"$UNAME_RELEASE" 512a4f78defSmrg exit ;; 513a4f78defSmrg Motorola:PowerMAX_OS:*:*) 514a4f78defSmrg echo powerpc-motorola-powermax 515a4f78defSmrg exit ;; 516a4f78defSmrg Motorola:*:4.3:PL8-*) 517a4f78defSmrg echo powerpc-harris-powermax 518a4f78defSmrg exit ;; 519a4f78defSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 520a4f78defSmrg echo powerpc-harris-powermax 521a4f78defSmrg exit ;; 522a4f78defSmrg Night_Hawk:Power_UNIX:*:*) 523a4f78defSmrg echo powerpc-harris-powerunix 524a4f78defSmrg exit ;; 525a4f78defSmrg m88k:CX/UX:7*:*) 526a4f78defSmrg echo m88k-harris-cxux7 527a4f78defSmrg exit ;; 528a4f78defSmrg m88k:*:4*:R4*) 529a4f78defSmrg echo m88k-motorola-sysv4 530a4f78defSmrg exit ;; 531a4f78defSmrg m88k:*:3*:R3*) 532a4f78defSmrg echo m88k-motorola-sysv3 533a4f78defSmrg exit ;; 534a4f78defSmrg AViiON:dgux:*:*) 535a4f78defSmrg # DG/UX returns AViiON for all architectures 536a4f78defSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 537fb570538Smrg if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] 538a4f78defSmrg then 539fb570538Smrg if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ 540fb570538Smrg [ "$TARGET_BINARY_INTERFACE"x = x ] 541a4f78defSmrg then 542fb570538Smrg echo m88k-dg-dgux"$UNAME_RELEASE" 543a4f78defSmrg else 544fb570538Smrg echo m88k-dg-dguxbcs"$UNAME_RELEASE" 545a4f78defSmrg fi 546a4f78defSmrg else 547fb570538Smrg echo i586-dg-dgux"$UNAME_RELEASE" 548a4f78defSmrg fi 549a4f78defSmrg exit ;; 550a4f78defSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 551a4f78defSmrg echo m88k-dolphin-sysv3 552a4f78defSmrg exit ;; 553a4f78defSmrg M88*:*:R3*:*) 554a4f78defSmrg # Delta 88k system running SVR3 555a4f78defSmrg echo m88k-motorola-sysv3 556a4f78defSmrg exit ;; 557a4f78defSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 558a4f78defSmrg echo m88k-tektronix-sysv3 559a4f78defSmrg exit ;; 560a4f78defSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 561a4f78defSmrg echo m68k-tektronix-bsd 562a4f78defSmrg exit ;; 563a4f78defSmrg *:IRIX*:*:*) 564fb570538Smrg echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" 565a4f78defSmrg exit ;; 566a4f78defSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 567a4f78defSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 568a4f78defSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 569a4f78defSmrg i*86:AIX:*:*) 570a4f78defSmrg echo i386-ibm-aix 571a4f78defSmrg exit ;; 572a4f78defSmrg ia64:AIX:*:*) 573a4f78defSmrg if [ -x /usr/bin/oslevel ] ; then 574a4f78defSmrg IBM_REV=`/usr/bin/oslevel` 575a4f78defSmrg else 576fb570538Smrg IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 577a4f78defSmrg fi 578fb570538Smrg echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV" 579a4f78defSmrg exit ;; 580a4f78defSmrg *:AIX:2:3) 581a4f78defSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 582fb570538Smrg eval "$set_cc_for_build" 583fb570538Smrg sed 's/^ //' << EOF > "$dummy.c" 584a4f78defSmrg #include <sys/systemcfg.h> 585a4f78defSmrg 586a4f78defSmrg main() 587a4f78defSmrg { 588a4f78defSmrg if (!__power_pc()) 589a4f78defSmrg exit(1); 590a4f78defSmrg puts("powerpc-ibm-aix3.2.5"); 591a4f78defSmrg exit(0); 592a4f78defSmrg } 593a4f78defSmrgEOF 594fb570538Smrg if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` 595a4f78defSmrg then 596a4f78defSmrg echo "$SYSTEM_NAME" 597a4f78defSmrg else 598a4f78defSmrg echo rs6000-ibm-aix3.2.5 599a4f78defSmrg fi 600a4f78defSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 601a4f78defSmrg echo rs6000-ibm-aix3.2.4 602a4f78defSmrg else 603a4f78defSmrg echo rs6000-ibm-aix3.2 604a4f78defSmrg fi 605a4f78defSmrg exit ;; 606a4f78defSmrg *:AIX:*:[4567]) 607a4f78defSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 608fb570538Smrg if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then 609a4f78defSmrg IBM_ARCH=rs6000 610a4f78defSmrg else 611a4f78defSmrg IBM_ARCH=powerpc 612a4f78defSmrg fi 613a4f78defSmrg if [ -x /usr/bin/lslpp ] ; then 614a4f78defSmrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 615a4f78defSmrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 616a4f78defSmrg else 617fb570538Smrg IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" 618a4f78defSmrg fi 619fb570538Smrg echo "$IBM_ARCH"-ibm-aix"$IBM_REV" 620a4f78defSmrg exit ;; 621a4f78defSmrg *:AIX:*:*) 622a4f78defSmrg echo rs6000-ibm-aix 623a4f78defSmrg exit ;; 624fb570538Smrg ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*) 625a4f78defSmrg echo romp-ibm-bsd4.4 626a4f78defSmrg exit ;; 627a4f78defSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 628fb570538Smrg echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to 629a4f78defSmrg exit ;; # report: romp-ibm BSD 4.3 630a4f78defSmrg *:BOSX:*:*) 631a4f78defSmrg echo rs6000-bull-bosx 632a4f78defSmrg exit ;; 633a4f78defSmrg DPX/2?00:B.O.S.:*:*) 634a4f78defSmrg echo m68k-bull-sysv3 635a4f78defSmrg exit ;; 636a4f78defSmrg 9000/[34]??:4.3bsd:1.*:*) 637a4f78defSmrg echo m68k-hp-bsd 638a4f78defSmrg exit ;; 639a4f78defSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 640a4f78defSmrg echo m68k-hp-bsd4.4 641a4f78defSmrg exit ;; 642a4f78defSmrg 9000/[34678]??:HP-UX:*:*) 643fb570538Smrg HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 644fb570538Smrg case "$UNAME_MACHINE" in 645fb570538Smrg 9000/31?) HP_ARCH=m68000 ;; 646fb570538Smrg 9000/[34]??) HP_ARCH=m68k ;; 647a4f78defSmrg 9000/[678][0-9][0-9]) 648a4f78defSmrg if [ -x /usr/bin/getconf ]; then 649a4f78defSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 650a4f78defSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 651fb570538Smrg case "$sc_cpu_version" in 652fb570538Smrg 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 653fb570538Smrg 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 654a4f78defSmrg 532) # CPU_PA_RISC2_0 655fb570538Smrg case "$sc_kernel_bits" in 656fb570538Smrg 32) HP_ARCH=hppa2.0n ;; 657fb570538Smrg 64) HP_ARCH=hppa2.0w ;; 658fb570538Smrg '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 659a4f78defSmrg esac ;; 660a4f78defSmrg esac 661a4f78defSmrg fi 662fb570538Smrg if [ "$HP_ARCH" = "" ]; then 663fb570538Smrg eval "$set_cc_for_build" 664fb570538Smrg sed 's/^ //' << EOF > "$dummy.c" 665a4f78defSmrg 666a4f78defSmrg #define _HPUX_SOURCE 667a4f78defSmrg #include <stdlib.h> 668a4f78defSmrg #include <unistd.h> 669a4f78defSmrg 670a4f78defSmrg int main () 671a4f78defSmrg { 672a4f78defSmrg #if defined(_SC_KERNEL_BITS) 673a4f78defSmrg long bits = sysconf(_SC_KERNEL_BITS); 674a4f78defSmrg #endif 675a4f78defSmrg long cpu = sysconf (_SC_CPU_VERSION); 676a4f78defSmrg 677a4f78defSmrg switch (cpu) 678a4f78defSmrg { 679a4f78defSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 680a4f78defSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 681a4f78defSmrg case CPU_PA_RISC2_0: 682a4f78defSmrg #if defined(_SC_KERNEL_BITS) 683a4f78defSmrg switch (bits) 684a4f78defSmrg { 685a4f78defSmrg case 64: puts ("hppa2.0w"); break; 686a4f78defSmrg case 32: puts ("hppa2.0n"); break; 687a4f78defSmrg default: puts ("hppa2.0"); break; 688a4f78defSmrg } break; 689a4f78defSmrg #else /* !defined(_SC_KERNEL_BITS) */ 690a4f78defSmrg puts ("hppa2.0"); break; 691a4f78defSmrg #endif 692a4f78defSmrg default: puts ("hppa1.0"); break; 693a4f78defSmrg } 694a4f78defSmrg exit (0); 695a4f78defSmrg } 696a4f78defSmrgEOF 697fb570538Smrg (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` 698a4f78defSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 699a4f78defSmrg fi ;; 700a4f78defSmrg esac 701fb570538Smrg if [ "$HP_ARCH" = hppa2.0w ] 702a4f78defSmrg then 703fb570538Smrg eval "$set_cc_for_build" 704a4f78defSmrg 705a4f78defSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 706a4f78defSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 707a4f78defSmrg # generating 64-bit code. GNU and HP use different nomenclature: 708a4f78defSmrg # 709a4f78defSmrg # $ CC_FOR_BUILD=cc ./config.guess 710a4f78defSmrg # => hppa2.0w-hp-hpux11.23 711a4f78defSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 712a4f78defSmrg # => hppa64-hp-hpux11.23 713a4f78defSmrg 714fb570538Smrg if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 715a4f78defSmrg grep -q __LP64__ 716a4f78defSmrg then 717fb570538Smrg HP_ARCH=hppa2.0w 718a4f78defSmrg else 719fb570538Smrg HP_ARCH=hppa64 720a4f78defSmrg fi 721a4f78defSmrg fi 722fb570538Smrg echo "$HP_ARCH"-hp-hpux"$HPUX_REV" 723a4f78defSmrg exit ;; 724a4f78defSmrg ia64:HP-UX:*:*) 725fb570538Smrg HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` 726fb570538Smrg echo ia64-hp-hpux"$HPUX_REV" 727a4f78defSmrg exit ;; 728a4f78defSmrg 3050*:HI-UX:*:*) 729fb570538Smrg eval "$set_cc_for_build" 730fb570538Smrg sed 's/^ //' << EOF > "$dummy.c" 731a4f78defSmrg #include <unistd.h> 732a4f78defSmrg int 733a4f78defSmrg main () 734a4f78defSmrg { 735a4f78defSmrg long cpu = sysconf (_SC_CPU_VERSION); 736a4f78defSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 737a4f78defSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 738a4f78defSmrg results, however. */ 739a4f78defSmrg if (CPU_IS_PA_RISC (cpu)) 740a4f78defSmrg { 741a4f78defSmrg switch (cpu) 742a4f78defSmrg { 743a4f78defSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 744a4f78defSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 745a4f78defSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 746a4f78defSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 747a4f78defSmrg } 748a4f78defSmrg } 749a4f78defSmrg else if (CPU_IS_HP_MC68K (cpu)) 750a4f78defSmrg puts ("m68k-hitachi-hiuxwe2"); 751a4f78defSmrg else puts ("unknown-hitachi-hiuxwe2"); 752a4f78defSmrg exit (0); 753a4f78defSmrg } 754a4f78defSmrgEOF 755fb570538Smrg $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && 756a4f78defSmrg { echo "$SYSTEM_NAME"; exit; } 757a4f78defSmrg echo unknown-hitachi-hiuxwe2 758a4f78defSmrg exit ;; 759fb570538Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*) 760a4f78defSmrg echo hppa1.1-hp-bsd 761a4f78defSmrg exit ;; 762a4f78defSmrg 9000/8??:4.3bsd:*:*) 763a4f78defSmrg echo hppa1.0-hp-bsd 764a4f78defSmrg exit ;; 765a4f78defSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 766a4f78defSmrg echo hppa1.0-hp-mpeix 767a4f78defSmrg exit ;; 768fb570538Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*) 769a4f78defSmrg echo hppa1.1-hp-osf 770a4f78defSmrg exit ;; 771a4f78defSmrg hp8??:OSF1:*:*) 772a4f78defSmrg echo hppa1.0-hp-osf 773a4f78defSmrg exit ;; 774a4f78defSmrg i*86:OSF1:*:*) 775a4f78defSmrg if [ -x /usr/sbin/sysversion ] ; then 776fb570538Smrg echo "$UNAME_MACHINE"-unknown-osf1mk 777a4f78defSmrg else 778fb570538Smrg echo "$UNAME_MACHINE"-unknown-osf1 779a4f78defSmrg fi 780a4f78defSmrg exit ;; 781a4f78defSmrg parisc*:Lites*:*:*) 782a4f78defSmrg echo hppa1.1-hp-lites 783a4f78defSmrg exit ;; 784a4f78defSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 785a4f78defSmrg echo c1-convex-bsd 786a4f78defSmrg exit ;; 787a4f78defSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 788a4f78defSmrg if getsysinfo -f scalar_acc 789a4f78defSmrg then echo c32-convex-bsd 790a4f78defSmrg else echo c2-convex-bsd 791a4f78defSmrg fi 792a4f78defSmrg exit ;; 793a4f78defSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 794a4f78defSmrg echo c34-convex-bsd 795a4f78defSmrg exit ;; 796a4f78defSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 797a4f78defSmrg echo c38-convex-bsd 798a4f78defSmrg exit ;; 799a4f78defSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 800a4f78defSmrg echo c4-convex-bsd 801a4f78defSmrg exit ;; 802a4f78defSmrg CRAY*Y-MP:*:*:*) 803fb570538Smrg echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 804a4f78defSmrg exit ;; 805a4f78defSmrg CRAY*[A-Z]90:*:*:*) 806fb570538Smrg echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \ 807a4f78defSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 808a4f78defSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 809a4f78defSmrg -e 's/\.[^.]*$/.X/' 810a4f78defSmrg exit ;; 811a4f78defSmrg CRAY*TS:*:*:*) 812fb570538Smrg echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 813a4f78defSmrg exit ;; 814a4f78defSmrg CRAY*T3E:*:*:*) 815fb570538Smrg echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 816a4f78defSmrg exit ;; 817a4f78defSmrg CRAY*SV1:*:*:*) 818fb570538Smrg echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 819a4f78defSmrg exit ;; 820a4f78defSmrg *:UNICOS/mp:*:*) 821fb570538Smrg echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' 822a4f78defSmrg exit ;; 823a4f78defSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 824fb570538Smrg FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 825fb570538Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 826fb570538Smrg FUJITSU_REL=`echo "$UNAME_RELEASE" | sed -e 's/ /_/'` 827a4f78defSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 828a4f78defSmrg exit ;; 829a4f78defSmrg 5000:UNIX_System_V:4.*:*) 830fb570538Smrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 831fb570538Smrg FUJITSU_REL=`echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 832a4f78defSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 833a4f78defSmrg exit ;; 834a4f78defSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 835fb570538Smrg echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE" 836a4f78defSmrg exit ;; 837a4f78defSmrg sparc*:BSD/OS:*:*) 838fb570538Smrg echo sparc-unknown-bsdi"$UNAME_RELEASE" 839a4f78defSmrg exit ;; 840a4f78defSmrg *:BSD/OS:*:*) 841fb570538Smrg echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" 842a4f78defSmrg exit ;; 843a4f78defSmrg *:FreeBSD:*:*) 844a4f78defSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 845fb570538Smrg case "$UNAME_PROCESSOR" in 846a4f78defSmrg amd64) 847fb570538Smrg UNAME_PROCESSOR=x86_64 ;; 848fb570538Smrg i386) 849fb570538Smrg UNAME_PROCESSOR=i586 ;; 850a4f78defSmrg esac 851fb570538Smrg echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 852a4f78defSmrg exit ;; 853a4f78defSmrg i*:CYGWIN*:*) 854fb570538Smrg echo "$UNAME_MACHINE"-pc-cygwin 855a4f78defSmrg exit ;; 856a4f78defSmrg *:MINGW64*:*) 857fb570538Smrg echo "$UNAME_MACHINE"-pc-mingw64 858a4f78defSmrg exit ;; 859a4f78defSmrg *:MINGW*:*) 860fb570538Smrg echo "$UNAME_MACHINE"-pc-mingw32 861a4f78defSmrg exit ;; 862a4f78defSmrg *:MSYS*:*) 863fb570538Smrg echo "$UNAME_MACHINE"-pc-msys 864a4f78defSmrg exit ;; 865a4f78defSmrg i*:PW*:*) 866fb570538Smrg echo "$UNAME_MACHINE"-pc-pw32 867a4f78defSmrg exit ;; 868a4f78defSmrg *:Interix*:*) 869fb570538Smrg case "$UNAME_MACHINE" in 870a4f78defSmrg x86) 871fb570538Smrg echo i586-pc-interix"$UNAME_RELEASE" 872a4f78defSmrg exit ;; 873a4f78defSmrg authenticamd | genuineintel | EM64T) 874fb570538Smrg echo x86_64-unknown-interix"$UNAME_RELEASE" 875a4f78defSmrg exit ;; 876a4f78defSmrg IA64) 877fb570538Smrg echo ia64-unknown-interix"$UNAME_RELEASE" 878a4f78defSmrg exit ;; 879a4f78defSmrg esac ;; 880a4f78defSmrg i*:UWIN*:*) 881fb570538Smrg echo "$UNAME_MACHINE"-pc-uwin 882a4f78defSmrg exit ;; 883a4f78defSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 884a4f78defSmrg echo x86_64-unknown-cygwin 885a4f78defSmrg exit ;; 886a4f78defSmrg prep*:SunOS:5.*:*) 887fb570538Smrg echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" 888a4f78defSmrg exit ;; 889a4f78defSmrg *:GNU:*:*) 890a4f78defSmrg # the GNU system 891fb570538Smrg echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" 892a4f78defSmrg exit ;; 893a4f78defSmrg *:GNU/*:*:*) 894a4f78defSmrg # other systems with GNU libc and userland 895fb570538Smrg echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" 896a4f78defSmrg exit ;; 897a4f78defSmrg i*86:Minix:*:*) 898fb570538Smrg echo "$UNAME_MACHINE"-pc-minix 899a4f78defSmrg exit ;; 900a4f78defSmrg aarch64:Linux:*:*) 901fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 902a4f78defSmrg exit ;; 903a4f78defSmrg aarch64_be:Linux:*:*) 904a4f78defSmrg UNAME_MACHINE=aarch64_be 905fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 906a4f78defSmrg exit ;; 907a4f78defSmrg alpha:Linux:*:*) 908a4f78defSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 909a4f78defSmrg EV5) UNAME_MACHINE=alphaev5 ;; 910a4f78defSmrg EV56) UNAME_MACHINE=alphaev56 ;; 911a4f78defSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 912a4f78defSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 913a4f78defSmrg EV6) UNAME_MACHINE=alphaev6 ;; 914a4f78defSmrg EV67) UNAME_MACHINE=alphaev67 ;; 915a4f78defSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 916a4f78defSmrg esac 917a4f78defSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 918fb570538Smrg if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 919fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 920a4f78defSmrg exit ;; 921a4f78defSmrg arc:Linux:*:* | arceb:Linux:*:*) 922fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 923a4f78defSmrg exit ;; 924a4f78defSmrg arm*:Linux:*:*) 925fb570538Smrg eval "$set_cc_for_build" 926a4f78defSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 927a4f78defSmrg | grep -q __ARM_EABI__ 928a4f78defSmrg then 929fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 930a4f78defSmrg else 931a4f78defSmrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 932a4f78defSmrg | grep -q __ARM_PCS_VFP 933a4f78defSmrg then 934fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi 935a4f78defSmrg else 936fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf 937a4f78defSmrg fi 938a4f78defSmrg fi 939a4f78defSmrg exit ;; 940a4f78defSmrg avr32*:Linux:*:*) 941fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 942a4f78defSmrg exit ;; 943a4f78defSmrg cris:Linux:*:*) 944fb570538Smrg echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 945a4f78defSmrg exit ;; 946a4f78defSmrg crisv32:Linux:*:*) 947fb570538Smrg echo "$UNAME_MACHINE"-axis-linux-"$LIBC" 948fb570538Smrg exit ;; 949fb570538Smrg e2k:Linux:*:*) 950fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 951a4f78defSmrg exit ;; 952a4f78defSmrg frv:Linux:*:*) 953fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 954a4f78defSmrg exit ;; 955a4f78defSmrg hexagon:Linux:*:*) 956fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 957a4f78defSmrg exit ;; 958a4f78defSmrg i*86:Linux:*:*) 959fb570538Smrg echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 960a4f78defSmrg exit ;; 961a4f78defSmrg ia64:Linux:*:*) 962fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 963fb570538Smrg exit ;; 964fb570538Smrg k1om:Linux:*:*) 965fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 966a4f78defSmrg exit ;; 967a4f78defSmrg m32r*:Linux:*:*) 968fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 969a4f78defSmrg exit ;; 970a4f78defSmrg m68*:Linux:*:*) 971fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 972a4f78defSmrg exit ;; 973a4f78defSmrg mips:Linux:*:* | mips64:Linux:*:*) 974fb570538Smrg eval "$set_cc_for_build" 975fb570538Smrg sed 's/^ //' << EOF > "$dummy.c" 976a4f78defSmrg #undef CPU 977a4f78defSmrg #undef ${UNAME_MACHINE} 978a4f78defSmrg #undef ${UNAME_MACHINE}el 979a4f78defSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 980a4f78defSmrg CPU=${UNAME_MACHINE}el 981a4f78defSmrg #else 982a4f78defSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 983a4f78defSmrg CPU=${UNAME_MACHINE} 984a4f78defSmrg #else 985a4f78defSmrg CPU= 986a4f78defSmrg #endif 987a4f78defSmrg #endif 988a4f78defSmrgEOF 989fb570538Smrg eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" 990fb570538Smrg test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } 991a4f78defSmrg ;; 992fb570538Smrg mips64el:Linux:*:*) 993fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 994fb570538Smrg exit ;; 995a4f78defSmrg openrisc*:Linux:*:*) 996fb570538Smrg echo or1k-unknown-linux-"$LIBC" 997a4f78defSmrg exit ;; 998a4f78defSmrg or32:Linux:*:* | or1k*:Linux:*:*) 999fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1000a4f78defSmrg exit ;; 1001a4f78defSmrg padre:Linux:*:*) 1002fb570538Smrg echo sparc-unknown-linux-"$LIBC" 1003a4f78defSmrg exit ;; 1004a4f78defSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 1005fb570538Smrg echo hppa64-unknown-linux-"$LIBC" 1006a4f78defSmrg exit ;; 1007a4f78defSmrg parisc:Linux:*:* | hppa:Linux:*:*) 1008a4f78defSmrg # Look for CPU level 1009a4f78defSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 1010fb570538Smrg PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; 1011fb570538Smrg PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; 1012fb570538Smrg *) echo hppa-unknown-linux-"$LIBC" ;; 1013a4f78defSmrg esac 1014a4f78defSmrg exit ;; 1015a4f78defSmrg ppc64:Linux:*:*) 1016fb570538Smrg echo powerpc64-unknown-linux-"$LIBC" 1017a4f78defSmrg exit ;; 1018a4f78defSmrg ppc:Linux:*:*) 1019fb570538Smrg echo powerpc-unknown-linux-"$LIBC" 1020a4f78defSmrg exit ;; 1021a4f78defSmrg ppc64le:Linux:*:*) 1022fb570538Smrg echo powerpc64le-unknown-linux-"$LIBC" 1023a4f78defSmrg exit ;; 1024a4f78defSmrg ppcle:Linux:*:*) 1025fb570538Smrg echo powerpcle-unknown-linux-"$LIBC" 1026fb570538Smrg exit ;; 1027fb570538Smrg riscv32:Linux:*:* | riscv64:Linux:*:*) 1028fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1029a4f78defSmrg exit ;; 1030a4f78defSmrg s390:Linux:*:* | s390x:Linux:*:*) 1031fb570538Smrg echo "$UNAME_MACHINE"-ibm-linux-"$LIBC" 1032a4f78defSmrg exit ;; 1033a4f78defSmrg sh64*:Linux:*:*) 1034fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1035a4f78defSmrg exit ;; 1036a4f78defSmrg sh*:Linux:*:*) 1037fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1038a4f78defSmrg exit ;; 1039a4f78defSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 1040fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1041a4f78defSmrg exit ;; 1042a4f78defSmrg tile*:Linux:*:*) 1043fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1044a4f78defSmrg exit ;; 1045a4f78defSmrg vax:Linux:*:*) 1046fb570538Smrg echo "$UNAME_MACHINE"-dec-linux-"$LIBC" 1047a4f78defSmrg exit ;; 1048a4f78defSmrg x86_64:Linux:*:*) 1049fb570538Smrg echo "$UNAME_MACHINE"-pc-linux-"$LIBC" 1050a4f78defSmrg exit ;; 1051a4f78defSmrg xtensa*:Linux:*:*) 1052fb570538Smrg echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" 1053a4f78defSmrg exit ;; 1054a4f78defSmrg i*86:DYNIX/ptx:4*:*) 1055a4f78defSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1056a4f78defSmrg # earlier versions are messed up and put the nodename in both 1057a4f78defSmrg # sysname and nodename. 1058a4f78defSmrg echo i386-sequent-sysv4 1059a4f78defSmrg exit ;; 1060a4f78defSmrg i*86:UNIX_SV:4.2MP:2.*) 1061a4f78defSmrg # Unixware is an offshoot of SVR4, but it has its own version 1062a4f78defSmrg # number series starting with 2... 1063a4f78defSmrg # I am not positive that other SVR4 systems won't match this, 1064a4f78defSmrg # I just have to hope. -- rms. 1065a4f78defSmrg # Use sysv4.2uw... so that sysv4* matches it. 1066fb570538Smrg echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION" 1067a4f78defSmrg exit ;; 1068a4f78defSmrg i*86:OS/2:*:*) 1069a4f78defSmrg # If we were able to find `uname', then EMX Unix compatibility 1070a4f78defSmrg # is probably installed. 1071fb570538Smrg echo "$UNAME_MACHINE"-pc-os2-emx 1072a4f78defSmrg exit ;; 1073a4f78defSmrg i*86:XTS-300:*:STOP) 1074fb570538Smrg echo "$UNAME_MACHINE"-unknown-stop 1075a4f78defSmrg exit ;; 1076a4f78defSmrg i*86:atheos:*:*) 1077fb570538Smrg echo "$UNAME_MACHINE"-unknown-atheos 1078a4f78defSmrg exit ;; 1079a4f78defSmrg i*86:syllable:*:*) 1080fb570538Smrg echo "$UNAME_MACHINE"-pc-syllable 1081a4f78defSmrg exit ;; 1082a4f78defSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1083fb570538Smrg echo i386-unknown-lynxos"$UNAME_RELEASE" 1084a4f78defSmrg exit ;; 1085a4f78defSmrg i*86:*DOS:*:*) 1086fb570538Smrg echo "$UNAME_MACHINE"-pc-msdosdjgpp 1087a4f78defSmrg exit ;; 1088fb570538Smrg i*86:*:4.*:*) 1089fb570538Smrg UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` 1090a4f78defSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1091fb570538Smrg echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" 1092a4f78defSmrg else 1093fb570538Smrg echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL" 1094a4f78defSmrg fi 1095a4f78defSmrg exit ;; 1096a4f78defSmrg i*86:*:5:[678]*) 1097a4f78defSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 1098a4f78defSmrg case `/bin/uname -X | grep "^Machine"` in 1099a4f78defSmrg *486*) UNAME_MACHINE=i486 ;; 1100a4f78defSmrg *Pentium) UNAME_MACHINE=i586 ;; 1101a4f78defSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1102a4f78defSmrg esac 1103fb570538Smrg echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" 1104a4f78defSmrg exit ;; 1105a4f78defSmrg i*86:*:3.2:*) 1106a4f78defSmrg if test -f /usr/options/cb.name; then 1107a4f78defSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1108fb570538Smrg echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL" 1109a4f78defSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 1110a4f78defSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1111a4f78defSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1112a4f78defSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 1113a4f78defSmrg && UNAME_MACHINE=i586 1114a4f78defSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 1115a4f78defSmrg && UNAME_MACHINE=i686 1116a4f78defSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1117a4f78defSmrg && UNAME_MACHINE=i686 1118fb570538Smrg echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL" 1119a4f78defSmrg else 1120fb570538Smrg echo "$UNAME_MACHINE"-pc-sysv32 1121a4f78defSmrg fi 1122a4f78defSmrg exit ;; 1123a4f78defSmrg pc:*:*:*) 1124a4f78defSmrg # Left here for compatibility: 1125a4f78defSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 1126a4f78defSmrg # the processor, so we play safe by assuming i586. 1127a4f78defSmrg # Note: whatever this is, it MUST be the same as what config.sub 1128fb570538Smrg # prints for the "djgpp" host, or else GDB configure will decide that 1129a4f78defSmrg # this is a cross-build. 1130a4f78defSmrg echo i586-pc-msdosdjgpp 1131a4f78defSmrg exit ;; 1132a4f78defSmrg Intel:Mach:3*:*) 1133a4f78defSmrg echo i386-pc-mach3 1134a4f78defSmrg exit ;; 1135a4f78defSmrg paragon:*:*:*) 1136a4f78defSmrg echo i860-intel-osf1 1137a4f78defSmrg exit ;; 1138a4f78defSmrg i860:*:4.*:*) # i860-SVR4 1139a4f78defSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1140fb570538Smrg echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4 1141a4f78defSmrg else # Add other i860-SVR4 vendors below as they are discovered. 1142fb570538Smrg echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4 1143a4f78defSmrg fi 1144a4f78defSmrg exit ;; 1145a4f78defSmrg mini*:CTIX:SYS*5:*) 1146a4f78defSmrg # "miniframe" 1147a4f78defSmrg echo m68010-convergent-sysv 1148a4f78defSmrg exit ;; 1149a4f78defSmrg mc68k:UNIX:SYSTEM5:3.51m) 1150a4f78defSmrg echo m68k-convergent-sysv 1151a4f78defSmrg exit ;; 1152a4f78defSmrg M680?0:D-NIX:5.3:*) 1153a4f78defSmrg echo m68k-diab-dnix 1154a4f78defSmrg exit ;; 1155a4f78defSmrg M68*:*:R3V[5678]*:*) 1156a4f78defSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1157a4f78defSmrg 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) 1158a4f78defSmrg OS_REL='' 1159a4f78defSmrg test -r /etc/.relid \ 1160a4f78defSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1161a4f78defSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1162fb570538Smrg && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 1163a4f78defSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1164fb570538Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 1165a4f78defSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1166a4f78defSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1167a4f78defSmrg && { echo i486-ncr-sysv4; exit; } ;; 1168a4f78defSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1169a4f78defSmrg OS_REL='.3' 1170a4f78defSmrg test -r /etc/.relid \ 1171a4f78defSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1172a4f78defSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1173fb570538Smrg && { echo i486-ncr-sysv4.3"$OS_REL"; exit; } 1174a4f78defSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1175fb570538Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } 1176a4f78defSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1177fb570538Smrg && { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;; 1178a4f78defSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1179fb570538Smrg echo m68k-unknown-lynxos"$UNAME_RELEASE" 1180a4f78defSmrg exit ;; 1181a4f78defSmrg mc68030:UNIX_System_V:4.*:*) 1182a4f78defSmrg echo m68k-atari-sysv4 1183a4f78defSmrg exit ;; 1184a4f78defSmrg TSUNAMI:LynxOS:2.*:*) 1185fb570538Smrg echo sparc-unknown-lynxos"$UNAME_RELEASE" 1186a4f78defSmrg exit ;; 1187a4f78defSmrg rs6000:LynxOS:2.*:*) 1188fb570538Smrg echo rs6000-unknown-lynxos"$UNAME_RELEASE" 1189a4f78defSmrg exit ;; 1190a4f78defSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1191fb570538Smrg echo powerpc-unknown-lynxos"$UNAME_RELEASE" 1192a4f78defSmrg exit ;; 1193a4f78defSmrg SM[BE]S:UNIX_SV:*:*) 1194fb570538Smrg echo mips-dde-sysv"$UNAME_RELEASE" 1195a4f78defSmrg exit ;; 1196a4f78defSmrg RM*:ReliantUNIX-*:*:*) 1197a4f78defSmrg echo mips-sni-sysv4 1198a4f78defSmrg exit ;; 1199a4f78defSmrg RM*:SINIX-*:*:*) 1200a4f78defSmrg echo mips-sni-sysv4 1201a4f78defSmrg exit ;; 1202a4f78defSmrg *:SINIX-*:*:*) 1203a4f78defSmrg if uname -p 2>/dev/null >/dev/null ; then 1204a4f78defSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1205fb570538Smrg echo "$UNAME_MACHINE"-sni-sysv4 1206a4f78defSmrg else 1207a4f78defSmrg echo ns32k-sni-sysv 1208a4f78defSmrg fi 1209a4f78defSmrg exit ;; 1210a4f78defSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1211a4f78defSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 1212a4f78defSmrg echo i586-unisys-sysv4 1213a4f78defSmrg exit ;; 1214a4f78defSmrg *:UNIX_System_V:4*:FTX*) 1215a4f78defSmrg # From Gerald Hewes <hewes@openmarket.com>. 1216a4f78defSmrg # How about differentiating between stratus architectures? -djm 1217a4f78defSmrg echo hppa1.1-stratus-sysv4 1218a4f78defSmrg exit ;; 1219a4f78defSmrg *:*:*:FTX*) 1220a4f78defSmrg # From seanf@swdc.stratus.com. 1221a4f78defSmrg echo i860-stratus-sysv4 1222a4f78defSmrg exit ;; 1223a4f78defSmrg i*86:VOS:*:*) 1224a4f78defSmrg # From Paul.Green@stratus.com. 1225fb570538Smrg echo "$UNAME_MACHINE"-stratus-vos 1226a4f78defSmrg exit ;; 1227a4f78defSmrg *:VOS:*:*) 1228a4f78defSmrg # From Paul.Green@stratus.com. 1229a4f78defSmrg echo hppa1.1-stratus-vos 1230a4f78defSmrg exit ;; 1231a4f78defSmrg mc68*:A/UX:*:*) 1232fb570538Smrg echo m68k-apple-aux"$UNAME_RELEASE" 1233a4f78defSmrg exit ;; 1234a4f78defSmrg news*:NEWS-OS:6*:*) 1235a4f78defSmrg echo mips-sony-newsos6 1236a4f78defSmrg exit ;; 1237a4f78defSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1238a4f78defSmrg if [ -d /usr/nec ]; then 1239fb570538Smrg echo mips-nec-sysv"$UNAME_RELEASE" 1240a4f78defSmrg else 1241fb570538Smrg echo mips-unknown-sysv"$UNAME_RELEASE" 1242a4f78defSmrg fi 1243a4f78defSmrg exit ;; 1244a4f78defSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1245a4f78defSmrg echo powerpc-be-beos 1246a4f78defSmrg exit ;; 1247a4f78defSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1248a4f78defSmrg echo powerpc-apple-beos 1249a4f78defSmrg exit ;; 1250a4f78defSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1251a4f78defSmrg echo i586-pc-beos 1252a4f78defSmrg exit ;; 1253a4f78defSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1254a4f78defSmrg echo i586-pc-haiku 1255a4f78defSmrg exit ;; 1256a4f78defSmrg x86_64:Haiku:*:*) 1257a4f78defSmrg echo x86_64-unknown-haiku 1258a4f78defSmrg exit ;; 1259a4f78defSmrg SX-4:SUPER-UX:*:*) 1260fb570538Smrg echo sx4-nec-superux"$UNAME_RELEASE" 1261a4f78defSmrg exit ;; 1262a4f78defSmrg SX-5:SUPER-UX:*:*) 1263fb570538Smrg echo sx5-nec-superux"$UNAME_RELEASE" 1264a4f78defSmrg exit ;; 1265a4f78defSmrg SX-6:SUPER-UX:*:*) 1266fb570538Smrg echo sx6-nec-superux"$UNAME_RELEASE" 1267a4f78defSmrg exit ;; 1268a4f78defSmrg SX-7:SUPER-UX:*:*) 1269fb570538Smrg echo sx7-nec-superux"$UNAME_RELEASE" 1270a4f78defSmrg exit ;; 1271a4f78defSmrg SX-8:SUPER-UX:*:*) 1272fb570538Smrg echo sx8-nec-superux"$UNAME_RELEASE" 1273a4f78defSmrg exit ;; 1274a4f78defSmrg SX-8R:SUPER-UX:*:*) 1275fb570538Smrg echo sx8r-nec-superux"$UNAME_RELEASE" 1276fb570538Smrg exit ;; 1277fb570538Smrg SX-ACE:SUPER-UX:*:*) 1278fb570538Smrg echo sxace-nec-superux"$UNAME_RELEASE" 1279a4f78defSmrg exit ;; 1280a4f78defSmrg Power*:Rhapsody:*:*) 1281fb570538Smrg echo powerpc-apple-rhapsody"$UNAME_RELEASE" 1282a4f78defSmrg exit ;; 1283a4f78defSmrg *:Rhapsody:*:*) 1284fb570538Smrg echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" 1285a4f78defSmrg exit ;; 1286a4f78defSmrg *:Darwin:*:*) 1287a4f78defSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1288fb570538Smrg eval "$set_cc_for_build" 1289a4f78defSmrg if test "$UNAME_PROCESSOR" = unknown ; then 1290a4f78defSmrg UNAME_PROCESSOR=powerpc 1291a4f78defSmrg fi 1292fb570538Smrg if test "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then 1293fb570538Smrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1294a4f78defSmrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1295fb570538Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1296fb570538Smrg grep IS_64BIT_ARCH >/dev/null 1297a4f78defSmrg then 1298a4f78defSmrg case $UNAME_PROCESSOR in 1299a4f78defSmrg i386) UNAME_PROCESSOR=x86_64 ;; 1300a4f78defSmrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 1301a4f78defSmrg esac 1302a4f78defSmrg fi 1303fb570538Smrg # On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc 1304fb570538Smrg if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \ 1305fb570538Smrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1306fb570538Smrg grep IS_PPC >/dev/null 1307fb570538Smrg then 1308fb570538Smrg UNAME_PROCESSOR=powerpc 1309fb570538Smrg fi 1310a4f78defSmrg fi 1311a4f78defSmrg elif test "$UNAME_PROCESSOR" = i386 ; then 1312a4f78defSmrg # Avoid executing cc on OS X 10.9, as it ships with a stub 1313a4f78defSmrg # that puts up a graphical alert prompting to install 1314a4f78defSmrg # developer tools. Any system running Mac OS X 10.7 or 1315a4f78defSmrg # later (Darwin 11 and later) is required to have a 64-bit 1316a4f78defSmrg # processor. This is not true of the ARM version of Darwin 1317a4f78defSmrg # that Apple uses in portable devices. 1318a4f78defSmrg UNAME_PROCESSOR=x86_64 1319a4f78defSmrg fi 1320fb570538Smrg echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" 1321a4f78defSmrg exit ;; 1322a4f78defSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 1323a4f78defSmrg UNAME_PROCESSOR=`uname -p` 1324fb570538Smrg if test "$UNAME_PROCESSOR" = x86; then 1325a4f78defSmrg UNAME_PROCESSOR=i386 1326a4f78defSmrg UNAME_MACHINE=pc 1327a4f78defSmrg fi 1328fb570538Smrg echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE" 1329a4f78defSmrg exit ;; 1330a4f78defSmrg *:QNX:*:4*) 1331a4f78defSmrg echo i386-pc-qnx 1332a4f78defSmrg exit ;; 1333fb570538Smrg NEO-*:NONSTOP_KERNEL:*:*) 1334fb570538Smrg echo neo-tandem-nsk"$UNAME_RELEASE" 1335a4f78defSmrg exit ;; 1336a4f78defSmrg NSE-*:NONSTOP_KERNEL:*:*) 1337fb570538Smrg echo nse-tandem-nsk"$UNAME_RELEASE" 1338fb570538Smrg exit ;; 1339fb570538Smrg NSR-*:NONSTOP_KERNEL:*:*) 1340fb570538Smrg echo nsr-tandem-nsk"$UNAME_RELEASE" 1341a4f78defSmrg exit ;; 1342fb570538Smrg NSV-*:NONSTOP_KERNEL:*:*) 1343fb570538Smrg echo nsv-tandem-nsk"$UNAME_RELEASE" 1344fb570538Smrg exit ;; 1345fb570538Smrg NSX-*:NONSTOP_KERNEL:*:*) 1346fb570538Smrg echo nsx-tandem-nsk"$UNAME_RELEASE" 1347a4f78defSmrg exit ;; 1348a4f78defSmrg *:NonStop-UX:*:*) 1349a4f78defSmrg echo mips-compaq-nonstopux 1350a4f78defSmrg exit ;; 1351a4f78defSmrg BS2000:POSIX*:*:*) 1352a4f78defSmrg echo bs2000-siemens-sysv 1353a4f78defSmrg exit ;; 1354a4f78defSmrg DS/*:UNIX_System_V:*:*) 1355fb570538Smrg echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE" 1356a4f78defSmrg exit ;; 1357a4f78defSmrg *:Plan9:*:*) 1358a4f78defSmrg # "uname -m" is not consistent, so use $cputype instead. 386 1359a4f78defSmrg # is converted to i386 for consistency with other x86 1360a4f78defSmrg # operating systems. 1361fb570538Smrg if test "$cputype" = 386; then 1362a4f78defSmrg UNAME_MACHINE=i386 1363a4f78defSmrg else 1364a4f78defSmrg UNAME_MACHINE="$cputype" 1365a4f78defSmrg fi 1366fb570538Smrg echo "$UNAME_MACHINE"-unknown-plan9 1367a4f78defSmrg exit ;; 1368a4f78defSmrg *:TOPS-10:*:*) 1369a4f78defSmrg echo pdp10-unknown-tops10 1370a4f78defSmrg exit ;; 1371a4f78defSmrg *:TENEX:*:*) 1372a4f78defSmrg echo pdp10-unknown-tenex 1373a4f78defSmrg exit ;; 1374a4f78defSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1375a4f78defSmrg echo pdp10-dec-tops20 1376a4f78defSmrg exit ;; 1377a4f78defSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1378a4f78defSmrg echo pdp10-xkl-tops20 1379a4f78defSmrg exit ;; 1380a4f78defSmrg *:TOPS-20:*:*) 1381a4f78defSmrg echo pdp10-unknown-tops20 1382a4f78defSmrg exit ;; 1383a4f78defSmrg *:ITS:*:*) 1384a4f78defSmrg echo pdp10-unknown-its 1385a4f78defSmrg exit ;; 1386a4f78defSmrg SEI:*:*:SEIUX) 1387fb570538Smrg echo mips-sei-seiux"$UNAME_RELEASE" 1388a4f78defSmrg exit ;; 1389a4f78defSmrg *:DragonFly:*:*) 1390fb570538Smrg echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" 1391a4f78defSmrg exit ;; 1392a4f78defSmrg *:*VMS:*:*) 1393a4f78defSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1394fb570538Smrg case "$UNAME_MACHINE" in 1395a4f78defSmrg A*) echo alpha-dec-vms ; exit ;; 1396a4f78defSmrg I*) echo ia64-dec-vms ; exit ;; 1397a4f78defSmrg V*) echo vax-dec-vms ; exit ;; 1398a4f78defSmrg esac ;; 1399a4f78defSmrg *:XENIX:*:SysV) 1400a4f78defSmrg echo i386-pc-xenix 1401a4f78defSmrg exit ;; 1402a4f78defSmrg i*86:skyos:*:*) 1403fb570538Smrg echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" 1404a4f78defSmrg exit ;; 1405a4f78defSmrg i*86:rdos:*:*) 1406fb570538Smrg echo "$UNAME_MACHINE"-pc-rdos 1407a4f78defSmrg exit ;; 1408a4f78defSmrg i*86:AROS:*:*) 1409fb570538Smrg echo "$UNAME_MACHINE"-pc-aros 1410a4f78defSmrg exit ;; 1411a4f78defSmrg x86_64:VMkernel:*:*) 1412fb570538Smrg echo "$UNAME_MACHINE"-unknown-esx 1413fb570538Smrg exit ;; 1414fb570538Smrg amd64:Isilon\ OneFS:*:*) 1415fb570538Smrg echo x86_64-unknown-onefs 1416a4f78defSmrg exit ;; 1417a4f78defSmrgesac 1418a4f78defSmrg 1419fb570538Smrgecho "$0: unable to guess system type" >&2 1420fb570538Smrg 1421fb570538Smrgcase "$UNAME_MACHINE:$UNAME_SYSTEM" in 1422fb570538Smrg mips:Linux | mips64:Linux) 1423fb570538Smrg # If we got here on MIPS GNU/Linux, output extra information. 1424fb570538Smrg cat >&2 <<EOF 1425fb570538Smrg 1426fb570538SmrgNOTE: MIPS GNU/Linux systems require a C compiler to fully recognize 1427fb570538Smrgthe system type. Please install a C compiler and try again. 1428fb570538SmrgEOF 1429fb570538Smrg ;; 1430fb570538Smrgesac 1431fb570538Smrg 1432a4f78defSmrgcat >&2 <<EOF 1433a4f78defSmrg 1434fb570538SmrgThis script (version $timestamp), has failed to recognize the 1435fb570538Smrgoperating system you are using. If your script is old, overwrite *all* 1436fb570538Smrgcopies of config.guess and config.sub with the latest versions from: 1437a4f78defSmrg 1438fb570538Smrg https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 1439a4f78defSmrgand 1440fb570538Smrg https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 1441a4f78defSmrg 1442fb570538SmrgIf $0 has already been updated, send the following data and any 1443fb570538Smrginformation you think might be pertinent to config-patches@gnu.org to 1444fb570538Smrgprovide the necessary information to handle your system. 1445a4f78defSmrg 1446a4f78defSmrgconfig.guess timestamp = $timestamp 1447a4f78defSmrg 1448a4f78defSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1449a4f78defSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1450a4f78defSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1451a4f78defSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1452a4f78defSmrg 1453a4f78defSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1454a4f78defSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1455a4f78defSmrg 1456a4f78defSmrghostinfo = `(hostinfo) 2>/dev/null` 1457a4f78defSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 1458a4f78defSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1459a4f78defSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 1460a4f78defSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1461a4f78defSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1462a4f78defSmrg 1463fb570538SmrgUNAME_MACHINE = "$UNAME_MACHINE" 1464fb570538SmrgUNAME_RELEASE = "$UNAME_RELEASE" 1465fb570538SmrgUNAME_SYSTEM = "$UNAME_SYSTEM" 1466fb570538SmrgUNAME_VERSION = "$UNAME_VERSION" 1467a4f78defSmrgEOF 1468a4f78defSmrg 1469a4f78defSmrgexit 1 1470a4f78defSmrg 1471a4f78defSmrg# Local variables: 1472fb570538Smrg# eval: (add-hook 'before-save-hook 'time-stamp) 1473a4f78defSmrg# time-stamp-start: "timestamp='" 1474a4f78defSmrg# time-stamp-format: "%:y-%02m-%02d" 1475a4f78defSmrg# time-stamp-end: "'" 1476a4f78defSmrg# End: 1477