1876ff6feSmrg#! /bin/sh 2876ff6feSmrg# Attempt to guess a canonical system name. 3d41660beSmrg# Copyright 1992-2017 Free Software Foundation, Inc. 4876ff6feSmrg 5d41660beSmrgtimestamp='2017-01-01' 6876ff6feSmrg 7876ff6feSmrg# This file is free software; you can redistribute it and/or modify it 8876ff6feSmrg# under the terms of the GNU General Public License as published by 9d41660beSmrg# the Free Software Foundation; either version 3 of the License, or 10876ff6feSmrg# (at your option) any later version. 11876ff6feSmrg# 12876ff6feSmrg# This program is distributed in the hope that it will be useful, but 13876ff6feSmrg# WITHOUT ANY WARRANTY; without even the implied warranty of 14876ff6feSmrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15876ff6feSmrg# General Public License for more details. 16876ff6feSmrg# 17876ff6feSmrg# You should have received a copy of the GNU General Public License 18d41660beSmrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 19876ff6feSmrg# 20876ff6feSmrg# As a special exception to the GNU General Public License, if you 21876ff6feSmrg# distribute this file as part of a program that contains a 22876ff6feSmrg# configuration script generated by Autoconf, you may include it under 23d41660beSmrg# the same distribution terms that you use for the rest of that 24d41660beSmrg# program. This Exception is an additional permission under section 7 25d41660beSmrg# of the GNU General Public License, version 3 ("GPLv3"). 26876ff6feSmrg# 27d41660beSmrg# Originally written by Per Bothner; maintained since 2000 by Ben Elliston. 28876ff6feSmrg# 29d41660beSmrg# You can get the latest version of this script from: 30d41660beSmrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 31d41660beSmrg# 32d41660beSmrg# Please send patches to <config-patches@gnu.org>. 33d41660beSmrg 34876ff6feSmrg 35876ff6feSmrgme=`echo "$0" | sed -e 's,.*/,,'` 36876ff6feSmrg 37876ff6feSmrgusage="\ 38876ff6feSmrgUsage: $0 [OPTION] 39876ff6feSmrg 40876ff6feSmrgOutput the configuration name of the system \`$me' is run on. 41876ff6feSmrg 42876ff6feSmrgOperation modes: 43876ff6feSmrg -h, --help print this help, then exit 44876ff6feSmrg -t, --time-stamp print date of last modification, then exit 45876ff6feSmrg -v, --version print version number, then exit 46876ff6feSmrg 47876ff6feSmrgReport bugs and patches to <config-patches@gnu.org>." 48876ff6feSmrg 49876ff6feSmrgversion="\ 50876ff6feSmrgGNU config.guess ($timestamp) 51876ff6feSmrg 52876ff6feSmrgOriginally written by Per Bothner. 53d41660beSmrgCopyright 1992-2017 Free Software Foundation, Inc. 54876ff6feSmrg 55876ff6feSmrgThis is free software; see the source for copying conditions. There is NO 56876ff6feSmrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 57876ff6feSmrg 58876ff6feSmrghelp=" 59876ff6feSmrgTry \`$me --help' for more information." 60876ff6feSmrg 61876ff6feSmrg# Parse command line 62876ff6feSmrgwhile test $# -gt 0 ; do 63876ff6feSmrg case $1 in 64876ff6feSmrg --time-stamp | --time* | -t ) 65876ff6feSmrg echo "$timestamp" ; exit ;; 66876ff6feSmrg --version | -v ) 67876ff6feSmrg echo "$version" ; exit ;; 68876ff6feSmrg --help | --h* | -h ) 69876ff6feSmrg echo "$usage"; exit ;; 70876ff6feSmrg -- ) # Stop option processing 71876ff6feSmrg shift; break ;; 72876ff6feSmrg - ) # Use stdin as input. 73876ff6feSmrg break ;; 74876ff6feSmrg -* ) 75876ff6feSmrg echo "$me: invalid option $1$help" >&2 76876ff6feSmrg exit 1 ;; 77876ff6feSmrg * ) 78876ff6feSmrg break ;; 79876ff6feSmrg esac 80876ff6feSmrgdone 81876ff6feSmrg 82876ff6feSmrgif test $# != 0; then 83876ff6feSmrg echo "$me: too many arguments$help" >&2 84876ff6feSmrg exit 1 85876ff6feSmrgfi 86876ff6feSmrg 87876ff6feSmrgtrap 'exit 1' 1 2 15 88876ff6feSmrg 89876ff6feSmrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 90876ff6feSmrg# compiler to aid in system detection is discouraged as it requires 91876ff6feSmrg# temporary files to be created and, as you can see below, it is a 92876ff6feSmrg# headache to deal with in a portable fashion. 93876ff6feSmrg 94876ff6feSmrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 95876ff6feSmrg# use `HOST_CC' if defined, but it is deprecated. 96876ff6feSmrg 97876ff6feSmrg# Portable tmp directory creation inspired by the Autoconf team. 98876ff6feSmrg 99876ff6feSmrgset_cc_for_build=' 100876ff6feSmrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 101876ff6feSmrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 102876ff6feSmrg: ${TMPDIR=/tmp} ; 103d41660beSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 104876ff6feSmrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 105876ff6feSmrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 106876ff6feSmrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 107876ff6feSmrgdummy=$tmp/dummy ; 108876ff6feSmrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 109876ff6feSmrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 110876ff6feSmrg ,,) echo "int x;" > $dummy.c ; 111876ff6feSmrg for c in cc gcc c89 c99 ; do 112876ff6feSmrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 113876ff6feSmrg CC_FOR_BUILD="$c"; break ; 114876ff6feSmrg fi ; 115876ff6feSmrg done ; 116876ff6feSmrg if test x"$CC_FOR_BUILD" = x ; then 117876ff6feSmrg CC_FOR_BUILD=no_compiler_found ; 118876ff6feSmrg fi 119876ff6feSmrg ;; 120876ff6feSmrg ,,*) CC_FOR_BUILD=$CC ;; 121876ff6feSmrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 122876ff6feSmrgesac ; set_cc_for_build= ;' 123876ff6feSmrg 124876ff6feSmrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 125876ff6feSmrg# (ghazi@noc.rutgers.edu 1994-08-24) 126876ff6feSmrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 127876ff6feSmrg PATH=$PATH:/.attbin ; export PATH 128876ff6feSmrgfi 129876ff6feSmrg 130876ff6feSmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 131876ff6feSmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 132876ff6feSmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 133876ff6feSmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 134876ff6feSmrg 135d41660beSmrgcase "${UNAME_SYSTEM}" in 136d41660beSmrgLinux|GNU|GNU/*) 137d41660beSmrg # If the system lacks a compiler, then just pick glibc. 138d41660beSmrg # We could probably try harder. 139d41660beSmrg LIBC=gnu 140d41660beSmrg 141d41660beSmrg eval $set_cc_for_build 142d41660beSmrg cat <<-EOF > $dummy.c 143d41660beSmrg #include <features.h> 144d41660beSmrg #if defined(__UCLIBC__) 145d41660beSmrg LIBC=uclibc 146d41660beSmrg #elif defined(__dietlibc__) 147d41660beSmrg LIBC=dietlibc 148d41660beSmrg #else 149d41660beSmrg LIBC=gnu 150d41660beSmrg #endif 151d41660beSmrg EOF 152d41660beSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC' | sed 's, ,,g'` 153d41660beSmrg ;; 154d41660beSmrgesac 155d41660beSmrg 156876ff6feSmrg# Note: order is significant - the case branches are not exclusive. 157876ff6feSmrg 158876ff6feSmrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 159876ff6feSmrg *:NetBSD:*:*) 160876ff6feSmrg # NetBSD (nbsd) targets should (where applicable) match one or 161d41660beSmrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 162876ff6feSmrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 163876ff6feSmrg # switched to ELF, *-*-netbsd* would select the old 164876ff6feSmrg # object file format. This provides both forward 165876ff6feSmrg # compatibility and a consistent mechanism for selecting the 166876ff6feSmrg # object file format. 167876ff6feSmrg # 168876ff6feSmrg # Note: NetBSD doesn't particularly care about the vendor 169876ff6feSmrg # portion of the name. We always set it to "unknown". 170876ff6feSmrg sysctl="sysctl -n hw.machine_arch" 171d41660beSmrg UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ 172d41660beSmrg /sbin/$sysctl 2>/dev/null || \ 173d41660beSmrg /usr/sbin/$sysctl 2>/dev/null || \ 174d41660beSmrg echo unknown)` 175876ff6feSmrg case "${UNAME_MACHINE_ARCH}" in 176876ff6feSmrg armeb) machine=armeb-unknown ;; 177876ff6feSmrg arm*) machine=arm-unknown ;; 178876ff6feSmrg sh3el) machine=shl-unknown ;; 179876ff6feSmrg sh3eb) machine=sh-unknown ;; 180d41660beSmrg sh5el) machine=sh5le-unknown ;; 181d41660beSmrg earmv*) 182d41660beSmrg arch=`echo ${UNAME_MACHINE_ARCH} | sed -e 's,^e\(armv[0-9]\).*$,\1,'` 183d41660beSmrg endian=`echo ${UNAME_MACHINE_ARCH} | sed -ne 's,^.*\(eb\)$,\1,p'` 184d41660beSmrg machine=${arch}${endian}-unknown 185d41660beSmrg ;; 186876ff6feSmrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 187876ff6feSmrg esac 188876ff6feSmrg # The Operating System including object format, if it has switched 189d41660beSmrg # to ELF recently (or will in the future) and ABI. 190876ff6feSmrg case "${UNAME_MACHINE_ARCH}" in 191d41660beSmrg earm*) 192d41660beSmrg os=netbsdelf 193d41660beSmrg ;; 194876ff6feSmrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 195876ff6feSmrg eval $set_cc_for_build 196876ff6feSmrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 197d41660beSmrg | grep -q __ELF__ 198876ff6feSmrg then 199876ff6feSmrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 200876ff6feSmrg # Return netbsd for either. FIX? 201876ff6feSmrg os=netbsd 202876ff6feSmrg else 203876ff6feSmrg os=netbsdelf 204876ff6feSmrg fi 205876ff6feSmrg ;; 206876ff6feSmrg *) 207d41660beSmrg os=netbsd 208d41660beSmrg ;; 209d41660beSmrg esac 210d41660beSmrg # Determine ABI tags. 211d41660beSmrg case "${UNAME_MACHINE_ARCH}" in 212d41660beSmrg earm*) 213d41660beSmrg expr='s/^earmv[0-9]/-eabi/;s/eb$//' 214d41660beSmrg abi=`echo ${UNAME_MACHINE_ARCH} | sed -e "$expr"` 215876ff6feSmrg ;; 216876ff6feSmrg esac 217876ff6feSmrg # The OS release 218876ff6feSmrg # Debian GNU/NetBSD machines have a different userland, and 219876ff6feSmrg # thus, need a distinct triplet. However, they do not need 220876ff6feSmrg # kernel version information, so it can be replaced with a 221876ff6feSmrg # suitable tag, in the style of linux-gnu. 222876ff6feSmrg case "${UNAME_VERSION}" in 223876ff6feSmrg Debian*) 224876ff6feSmrg release='-gnu' 225876ff6feSmrg ;; 226876ff6feSmrg *) 227d41660beSmrg release=`echo ${UNAME_RELEASE} | sed -e 's/[-_].*//' | cut -d. -f1,2` 228876ff6feSmrg ;; 229876ff6feSmrg esac 230876ff6feSmrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 231876ff6feSmrg # contains redundant information, the shorter form: 232876ff6feSmrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 233d41660beSmrg echo "${machine}-${os}${release}${abi}" 234d41660beSmrg exit ;; 235d41660beSmrg *:Bitrig:*:*) 236d41660beSmrg UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` 237d41660beSmrg echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} 238876ff6feSmrg exit ;; 239876ff6feSmrg *:OpenBSD:*:*) 240876ff6feSmrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 241876ff6feSmrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 242876ff6feSmrg exit ;; 243d41660beSmrg *:LibertyBSD:*:*) 244d41660beSmrg UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` 245d41660beSmrg echo ${UNAME_MACHINE_ARCH}-unknown-libertybsd${UNAME_RELEASE} 246d41660beSmrg exit ;; 247876ff6feSmrg *:ekkoBSD:*:*) 248876ff6feSmrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 249876ff6feSmrg exit ;; 250d41660beSmrg *:SolidBSD:*:*) 251d41660beSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 252d41660beSmrg exit ;; 253876ff6feSmrg macppc:MirBSD:*:*) 254d41660beSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 255876ff6feSmrg exit ;; 256876ff6feSmrg *:MirBSD:*:*) 257876ff6feSmrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 258876ff6feSmrg exit ;; 259d41660beSmrg *:Sortix:*:*) 260d41660beSmrg echo ${UNAME_MACHINE}-unknown-sortix 261d41660beSmrg exit ;; 262876ff6feSmrg alpha:OSF1:*:*) 263876ff6feSmrg case $UNAME_RELEASE in 264876ff6feSmrg *4.0) 265876ff6feSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 266876ff6feSmrg ;; 267876ff6feSmrg *5.*) 268d41660beSmrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 269876ff6feSmrg ;; 270876ff6feSmrg esac 271876ff6feSmrg # According to Compaq, /usr/sbin/psrinfo has been available on 272876ff6feSmrg # OSF/1 and Tru64 systems produced since 1995. I hope that 273876ff6feSmrg # covers most systems running today. This code pipes the CPU 274876ff6feSmrg # types through head -n 1, so we only detect the type of CPU 0. 275876ff6feSmrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 276876ff6feSmrg case "$ALPHA_CPU_TYPE" in 277876ff6feSmrg "EV4 (21064)") 278d41660beSmrg UNAME_MACHINE=alpha ;; 279876ff6feSmrg "EV4.5 (21064)") 280d41660beSmrg UNAME_MACHINE=alpha ;; 281876ff6feSmrg "LCA4 (21066/21068)") 282d41660beSmrg UNAME_MACHINE=alpha ;; 283876ff6feSmrg "EV5 (21164)") 284d41660beSmrg UNAME_MACHINE=alphaev5 ;; 285876ff6feSmrg "EV5.6 (21164A)") 286d41660beSmrg UNAME_MACHINE=alphaev56 ;; 287876ff6feSmrg "EV5.6 (21164PC)") 288d41660beSmrg UNAME_MACHINE=alphapca56 ;; 289876ff6feSmrg "EV5.7 (21164PC)") 290d41660beSmrg UNAME_MACHINE=alphapca57 ;; 291876ff6feSmrg "EV6 (21264)") 292d41660beSmrg UNAME_MACHINE=alphaev6 ;; 293876ff6feSmrg "EV6.7 (21264A)") 294d41660beSmrg UNAME_MACHINE=alphaev67 ;; 295876ff6feSmrg "EV6.8CB (21264C)") 296d41660beSmrg UNAME_MACHINE=alphaev68 ;; 297876ff6feSmrg "EV6.8AL (21264B)") 298d41660beSmrg UNAME_MACHINE=alphaev68 ;; 299876ff6feSmrg "EV6.8CX (21264D)") 300d41660beSmrg UNAME_MACHINE=alphaev68 ;; 301876ff6feSmrg "EV6.9A (21264/EV69A)") 302d41660beSmrg UNAME_MACHINE=alphaev69 ;; 303876ff6feSmrg "EV7 (21364)") 304d41660beSmrg UNAME_MACHINE=alphaev7 ;; 305876ff6feSmrg "EV7.9 (21364A)") 306d41660beSmrg UNAME_MACHINE=alphaev79 ;; 307876ff6feSmrg esac 308876ff6feSmrg # A Pn.n version is a patched version. 309876ff6feSmrg # A Vn.n version is a released version. 310876ff6feSmrg # A Tn.n version is a released field test version. 311876ff6feSmrg # A Xn.n version is an unreleased experimental baselevel. 312876ff6feSmrg # 1.2 uses "1.2" for uname -r. 313d41660beSmrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 314d41660beSmrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 315d41660beSmrg exitcode=$? 316d41660beSmrg trap '' 0 317d41660beSmrg exit $exitcode ;; 318876ff6feSmrg Alpha\ *:Windows_NT*:*) 319876ff6feSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 320876ff6feSmrg # Should we change UNAME_MACHINE based on the output of uname instead 321876ff6feSmrg # of the specific Alpha model? 322876ff6feSmrg echo alpha-pc-interix 323876ff6feSmrg exit ;; 324876ff6feSmrg 21064:Windows_NT:50:3) 325876ff6feSmrg echo alpha-dec-winnt3.5 326876ff6feSmrg exit ;; 327876ff6feSmrg Amiga*:UNIX_System_V:4.0:*) 328876ff6feSmrg echo m68k-unknown-sysv4 329876ff6feSmrg exit ;; 330876ff6feSmrg *:[Aa]miga[Oo][Ss]:*:*) 331876ff6feSmrg echo ${UNAME_MACHINE}-unknown-amigaos 332876ff6feSmrg exit ;; 333876ff6feSmrg *:[Mm]orph[Oo][Ss]:*:*) 334876ff6feSmrg echo ${UNAME_MACHINE}-unknown-morphos 335876ff6feSmrg exit ;; 336876ff6feSmrg *:OS/390:*:*) 337876ff6feSmrg echo i370-ibm-openedition 338876ff6feSmrg exit ;; 339876ff6feSmrg *:z/VM:*:*) 340876ff6feSmrg echo s390-ibm-zvmoe 341876ff6feSmrg exit ;; 342876ff6feSmrg *:OS400:*:*) 343d41660beSmrg echo powerpc-ibm-os400 344876ff6feSmrg exit ;; 345876ff6feSmrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 346876ff6feSmrg echo arm-acorn-riscix${UNAME_RELEASE} 347876ff6feSmrg exit ;; 348d41660beSmrg arm*:riscos:*:*|arm*:RISCOS:*:*) 349876ff6feSmrg echo arm-unknown-riscos 350876ff6feSmrg exit ;; 351876ff6feSmrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 352876ff6feSmrg echo hppa1.1-hitachi-hiuxmpp 353876ff6feSmrg exit ;; 354876ff6feSmrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 355876ff6feSmrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 356876ff6feSmrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 357876ff6feSmrg echo pyramid-pyramid-sysv3 358876ff6feSmrg else 359876ff6feSmrg echo pyramid-pyramid-bsd 360876ff6feSmrg fi 361876ff6feSmrg exit ;; 362876ff6feSmrg NILE*:*:*:dcosx) 363876ff6feSmrg echo pyramid-pyramid-svr4 364876ff6feSmrg exit ;; 365876ff6feSmrg DRS?6000:unix:4.0:6*) 366876ff6feSmrg echo sparc-icl-nx6 367876ff6feSmrg exit ;; 368876ff6feSmrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 369876ff6feSmrg case `/usr/bin/uname -p` in 370876ff6feSmrg sparc) echo sparc-icl-nx7; exit ;; 371876ff6feSmrg esac ;; 372d41660beSmrg s390x:SunOS:*:*) 373d41660beSmrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 374d41660beSmrg exit ;; 375876ff6feSmrg sun4H:SunOS:5.*:*) 376876ff6feSmrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 377876ff6feSmrg exit ;; 378876ff6feSmrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 379876ff6feSmrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 380876ff6feSmrg exit ;; 381d41660beSmrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 382d41660beSmrg echo i386-pc-auroraux${UNAME_RELEASE} 383d41660beSmrg exit ;; 384d41660beSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 385d41660beSmrg eval $set_cc_for_build 386d41660beSmrg SUN_ARCH=i386 387d41660beSmrg # If there is a compiler, see if it is configured for 64-bit objects. 388d41660beSmrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 389d41660beSmrg # This test works for both compilers. 390d41660beSmrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 391d41660beSmrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 392d41660beSmrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 393d41660beSmrg grep IS_64BIT_ARCH >/dev/null 394d41660beSmrg then 395d41660beSmrg SUN_ARCH=x86_64 396d41660beSmrg fi 397d41660beSmrg fi 398d41660beSmrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 399876ff6feSmrg exit ;; 400876ff6feSmrg sun4*:SunOS:6*:*) 401876ff6feSmrg # According to config.sub, this is the proper way to canonicalize 402876ff6feSmrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 403876ff6feSmrg # it's likely to be more like Solaris than SunOS4. 404876ff6feSmrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 405876ff6feSmrg exit ;; 406876ff6feSmrg sun4*:SunOS:*:*) 407876ff6feSmrg case "`/usr/bin/arch -k`" in 408876ff6feSmrg Series*|S4*) 409876ff6feSmrg UNAME_RELEASE=`uname -v` 410876ff6feSmrg ;; 411876ff6feSmrg esac 412876ff6feSmrg # Japanese Language versions have a version number like `4.1.3-JL'. 413876ff6feSmrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 414876ff6feSmrg exit ;; 415876ff6feSmrg sun3*:SunOS:*:*) 416876ff6feSmrg echo m68k-sun-sunos${UNAME_RELEASE} 417876ff6feSmrg exit ;; 418876ff6feSmrg sun*:*:4.2BSD:*) 419876ff6feSmrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 420d41660beSmrg test "x${UNAME_RELEASE}" = x && UNAME_RELEASE=3 421876ff6feSmrg case "`/bin/arch`" in 422876ff6feSmrg sun3) 423876ff6feSmrg echo m68k-sun-sunos${UNAME_RELEASE} 424876ff6feSmrg ;; 425876ff6feSmrg sun4) 426876ff6feSmrg echo sparc-sun-sunos${UNAME_RELEASE} 427876ff6feSmrg ;; 428876ff6feSmrg esac 429876ff6feSmrg exit ;; 430876ff6feSmrg aushp:SunOS:*:*) 431876ff6feSmrg echo sparc-auspex-sunos${UNAME_RELEASE} 432876ff6feSmrg exit ;; 433876ff6feSmrg # The situation for MiNT is a little confusing. The machine name 434876ff6feSmrg # can be virtually everything (everything which is not 435876ff6feSmrg # "atarist" or "atariste" at least should have a processor 436876ff6feSmrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 437876ff6feSmrg # to the lowercase version "mint" (or "freemint"). Finally 438876ff6feSmrg # the system name "TOS" denotes a system which is actually not 439876ff6feSmrg # MiNT. But MiNT is downward compatible to TOS, so this should 440876ff6feSmrg # be no problem. 441876ff6feSmrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 442d41660beSmrg echo m68k-atari-mint${UNAME_RELEASE} 443876ff6feSmrg exit ;; 444876ff6feSmrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 445876ff6feSmrg echo m68k-atari-mint${UNAME_RELEASE} 446d41660beSmrg exit ;; 447876ff6feSmrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 448d41660beSmrg echo m68k-atari-mint${UNAME_RELEASE} 449876ff6feSmrg exit ;; 450876ff6feSmrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 451d41660beSmrg echo m68k-milan-mint${UNAME_RELEASE} 452d41660beSmrg exit ;; 453876ff6feSmrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 454d41660beSmrg echo m68k-hades-mint${UNAME_RELEASE} 455d41660beSmrg exit ;; 456876ff6feSmrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 457d41660beSmrg echo m68k-unknown-mint${UNAME_RELEASE} 458d41660beSmrg exit ;; 459876ff6feSmrg m68k:machten:*:*) 460876ff6feSmrg echo m68k-apple-machten${UNAME_RELEASE} 461876ff6feSmrg exit ;; 462876ff6feSmrg powerpc:machten:*:*) 463876ff6feSmrg echo powerpc-apple-machten${UNAME_RELEASE} 464876ff6feSmrg exit ;; 465876ff6feSmrg RISC*:Mach:*:*) 466876ff6feSmrg echo mips-dec-mach_bsd4.3 467876ff6feSmrg exit ;; 468876ff6feSmrg RISC*:ULTRIX:*:*) 469876ff6feSmrg echo mips-dec-ultrix${UNAME_RELEASE} 470876ff6feSmrg exit ;; 471876ff6feSmrg VAX*:ULTRIX*:*:*) 472876ff6feSmrg echo vax-dec-ultrix${UNAME_RELEASE} 473876ff6feSmrg exit ;; 474876ff6feSmrg 2020:CLIX:*:* | 2430:CLIX:*:*) 475876ff6feSmrg echo clipper-intergraph-clix${UNAME_RELEASE} 476876ff6feSmrg exit ;; 477876ff6feSmrg mips:*:*:UMIPS | mips:*:*:RISCos) 478876ff6feSmrg eval $set_cc_for_build 479876ff6feSmrg sed 's/^ //' << EOF >$dummy.c 480876ff6feSmrg#ifdef __cplusplus 481876ff6feSmrg#include <stdio.h> /* for printf() prototype */ 482876ff6feSmrg int main (int argc, char *argv[]) { 483876ff6feSmrg#else 484876ff6feSmrg int main (argc, argv) int argc; char *argv[]; { 485876ff6feSmrg#endif 486876ff6feSmrg #if defined (host_mips) && defined (MIPSEB) 487876ff6feSmrg #if defined (SYSTYPE_SYSV) 488876ff6feSmrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 489876ff6feSmrg #endif 490876ff6feSmrg #if defined (SYSTYPE_SVR4) 491876ff6feSmrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 492876ff6feSmrg #endif 493876ff6feSmrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 494876ff6feSmrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 495876ff6feSmrg #endif 496876ff6feSmrg #endif 497876ff6feSmrg exit (-1); 498876ff6feSmrg } 499876ff6feSmrgEOF 500876ff6feSmrg $CC_FOR_BUILD -o $dummy $dummy.c && 501876ff6feSmrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 502876ff6feSmrg SYSTEM_NAME=`$dummy $dummyarg` && 503876ff6feSmrg { echo "$SYSTEM_NAME"; exit; } 504876ff6feSmrg echo mips-mips-riscos${UNAME_RELEASE} 505876ff6feSmrg exit ;; 506876ff6feSmrg Motorola:PowerMAX_OS:*:*) 507876ff6feSmrg echo powerpc-motorola-powermax 508876ff6feSmrg exit ;; 509876ff6feSmrg Motorola:*:4.3:PL8-*) 510876ff6feSmrg echo powerpc-harris-powermax 511876ff6feSmrg exit ;; 512876ff6feSmrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 513876ff6feSmrg echo powerpc-harris-powermax 514876ff6feSmrg exit ;; 515876ff6feSmrg Night_Hawk:Power_UNIX:*:*) 516876ff6feSmrg echo powerpc-harris-powerunix 517876ff6feSmrg exit ;; 518876ff6feSmrg m88k:CX/UX:7*:*) 519876ff6feSmrg echo m88k-harris-cxux7 520876ff6feSmrg exit ;; 521876ff6feSmrg m88k:*:4*:R4*) 522876ff6feSmrg echo m88k-motorola-sysv4 523876ff6feSmrg exit ;; 524876ff6feSmrg m88k:*:3*:R3*) 525876ff6feSmrg echo m88k-motorola-sysv3 526876ff6feSmrg exit ;; 527876ff6feSmrg AViiON:dgux:*:*) 528d41660beSmrg # DG/UX returns AViiON for all architectures 529d41660beSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 530876ff6feSmrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 531876ff6feSmrg then 532876ff6feSmrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 533876ff6feSmrg [ ${TARGET_BINARY_INTERFACE}x = x ] 534876ff6feSmrg then 535876ff6feSmrg echo m88k-dg-dgux${UNAME_RELEASE} 536876ff6feSmrg else 537876ff6feSmrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 538876ff6feSmrg fi 539876ff6feSmrg else 540876ff6feSmrg echo i586-dg-dgux${UNAME_RELEASE} 541876ff6feSmrg fi 542d41660beSmrg exit ;; 543876ff6feSmrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 544876ff6feSmrg echo m88k-dolphin-sysv3 545876ff6feSmrg exit ;; 546876ff6feSmrg M88*:*:R3*:*) 547876ff6feSmrg # Delta 88k system running SVR3 548876ff6feSmrg echo m88k-motorola-sysv3 549876ff6feSmrg exit ;; 550876ff6feSmrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 551876ff6feSmrg echo m88k-tektronix-sysv3 552876ff6feSmrg exit ;; 553876ff6feSmrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 554876ff6feSmrg echo m68k-tektronix-bsd 555876ff6feSmrg exit ;; 556876ff6feSmrg *:IRIX*:*:*) 557876ff6feSmrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 558876ff6feSmrg exit ;; 559876ff6feSmrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 560876ff6feSmrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 561876ff6feSmrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 562876ff6feSmrg i*86:AIX:*:*) 563876ff6feSmrg echo i386-ibm-aix 564876ff6feSmrg exit ;; 565876ff6feSmrg ia64:AIX:*:*) 566876ff6feSmrg if [ -x /usr/bin/oslevel ] ; then 567876ff6feSmrg IBM_REV=`/usr/bin/oslevel` 568876ff6feSmrg else 569876ff6feSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 570876ff6feSmrg fi 571876ff6feSmrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 572876ff6feSmrg exit ;; 573876ff6feSmrg *:AIX:2:3) 574876ff6feSmrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 575876ff6feSmrg eval $set_cc_for_build 576876ff6feSmrg sed 's/^ //' << EOF >$dummy.c 577876ff6feSmrg #include <sys/systemcfg.h> 578876ff6feSmrg 579876ff6feSmrg main() 580876ff6feSmrg { 581876ff6feSmrg if (!__power_pc()) 582876ff6feSmrg exit(1); 583876ff6feSmrg puts("powerpc-ibm-aix3.2.5"); 584876ff6feSmrg exit(0); 585876ff6feSmrg } 586876ff6feSmrgEOF 587876ff6feSmrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 588876ff6feSmrg then 589876ff6feSmrg echo "$SYSTEM_NAME" 590876ff6feSmrg else 591876ff6feSmrg echo rs6000-ibm-aix3.2.5 592876ff6feSmrg fi 593876ff6feSmrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 594876ff6feSmrg echo rs6000-ibm-aix3.2.4 595876ff6feSmrg else 596876ff6feSmrg echo rs6000-ibm-aix3.2 597876ff6feSmrg fi 598876ff6feSmrg exit ;; 599d41660beSmrg *:AIX:*:[4567]) 600876ff6feSmrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 601876ff6feSmrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 602876ff6feSmrg IBM_ARCH=rs6000 603876ff6feSmrg else 604876ff6feSmrg IBM_ARCH=powerpc 605876ff6feSmrg fi 606d41660beSmrg if [ -x /usr/bin/lslpp ] ; then 607d41660beSmrg IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | 608d41660beSmrg awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` 609876ff6feSmrg else 610876ff6feSmrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 611876ff6feSmrg fi 612876ff6feSmrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 613876ff6feSmrg exit ;; 614876ff6feSmrg *:AIX:*:*) 615876ff6feSmrg echo rs6000-ibm-aix 616876ff6feSmrg exit ;; 617876ff6feSmrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 618876ff6feSmrg echo romp-ibm-bsd4.4 619876ff6feSmrg exit ;; 620876ff6feSmrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 621876ff6feSmrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 622876ff6feSmrg exit ;; # report: romp-ibm BSD 4.3 623876ff6feSmrg *:BOSX:*:*) 624876ff6feSmrg echo rs6000-bull-bosx 625876ff6feSmrg exit ;; 626876ff6feSmrg DPX/2?00:B.O.S.:*:*) 627876ff6feSmrg echo m68k-bull-sysv3 628876ff6feSmrg exit ;; 629876ff6feSmrg 9000/[34]??:4.3bsd:1.*:*) 630876ff6feSmrg echo m68k-hp-bsd 631876ff6feSmrg exit ;; 632876ff6feSmrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 633876ff6feSmrg echo m68k-hp-bsd4.4 634876ff6feSmrg exit ;; 635876ff6feSmrg 9000/[34678]??:HP-UX:*:*) 636876ff6feSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 637876ff6feSmrg case "${UNAME_MACHINE}" in 638876ff6feSmrg 9000/31? ) HP_ARCH=m68000 ;; 639876ff6feSmrg 9000/[34]?? ) HP_ARCH=m68k ;; 640876ff6feSmrg 9000/[678][0-9][0-9]) 641876ff6feSmrg if [ -x /usr/bin/getconf ]; then 642876ff6feSmrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 643d41660beSmrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 644d41660beSmrg case "${sc_cpu_version}" in 645d41660beSmrg 523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0 646d41660beSmrg 528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1 647d41660beSmrg 532) # CPU_PA_RISC2_0 648d41660beSmrg case "${sc_kernel_bits}" in 649d41660beSmrg 32) HP_ARCH=hppa2.0n ;; 650d41660beSmrg 64) HP_ARCH=hppa2.0w ;; 651d41660beSmrg '') HP_ARCH=hppa2.0 ;; # HP-UX 10.20 652d41660beSmrg esac ;; 653d41660beSmrg esac 654876ff6feSmrg fi 655876ff6feSmrg if [ "${HP_ARCH}" = "" ]; then 656876ff6feSmrg eval $set_cc_for_build 657d41660beSmrg sed 's/^ //' << EOF >$dummy.c 658876ff6feSmrg 659d41660beSmrg #define _HPUX_SOURCE 660d41660beSmrg #include <stdlib.h> 661d41660beSmrg #include <unistd.h> 662876ff6feSmrg 663d41660beSmrg int main () 664d41660beSmrg { 665d41660beSmrg #if defined(_SC_KERNEL_BITS) 666d41660beSmrg long bits = sysconf(_SC_KERNEL_BITS); 667d41660beSmrg #endif 668d41660beSmrg long cpu = sysconf (_SC_CPU_VERSION); 669876ff6feSmrg 670d41660beSmrg switch (cpu) 671d41660beSmrg { 672d41660beSmrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 673d41660beSmrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 674d41660beSmrg case CPU_PA_RISC2_0: 675d41660beSmrg #if defined(_SC_KERNEL_BITS) 676d41660beSmrg switch (bits) 677d41660beSmrg { 678d41660beSmrg case 64: puts ("hppa2.0w"); break; 679d41660beSmrg case 32: puts ("hppa2.0n"); break; 680d41660beSmrg default: puts ("hppa2.0"); break; 681d41660beSmrg } break; 682d41660beSmrg #else /* !defined(_SC_KERNEL_BITS) */ 683d41660beSmrg puts ("hppa2.0"); break; 684d41660beSmrg #endif 685d41660beSmrg default: puts ("hppa1.0"); break; 686d41660beSmrg } 687d41660beSmrg exit (0); 688d41660beSmrg } 689876ff6feSmrgEOF 690d41660beSmrg (CCOPTS="" $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 691876ff6feSmrg test -z "$HP_ARCH" && HP_ARCH=hppa 692876ff6feSmrg fi ;; 693876ff6feSmrg esac 694d41660beSmrg if [ ${HP_ARCH} = hppa2.0w ] 695876ff6feSmrg then 696876ff6feSmrg eval $set_cc_for_build 697876ff6feSmrg 698876ff6feSmrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 699876ff6feSmrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 700876ff6feSmrg # generating 64-bit code. GNU and HP use different nomenclature: 701876ff6feSmrg # 702876ff6feSmrg # $ CC_FOR_BUILD=cc ./config.guess 703876ff6feSmrg # => hppa2.0w-hp-hpux11.23 704876ff6feSmrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 705876ff6feSmrg # => hppa64-hp-hpux11.23 706876ff6feSmrg 707d41660beSmrg if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | 708d41660beSmrg grep -q __LP64__ 709876ff6feSmrg then 710d41660beSmrg HP_ARCH=hppa2.0w 711876ff6feSmrg else 712d41660beSmrg HP_ARCH=hppa64 713876ff6feSmrg fi 714876ff6feSmrg fi 715876ff6feSmrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 716876ff6feSmrg exit ;; 717876ff6feSmrg ia64:HP-UX:*:*) 718876ff6feSmrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 719876ff6feSmrg echo ia64-hp-hpux${HPUX_REV} 720876ff6feSmrg exit ;; 721876ff6feSmrg 3050*:HI-UX:*:*) 722876ff6feSmrg eval $set_cc_for_build 723876ff6feSmrg sed 's/^ //' << EOF >$dummy.c 724876ff6feSmrg #include <unistd.h> 725876ff6feSmrg int 726876ff6feSmrg main () 727876ff6feSmrg { 728876ff6feSmrg long cpu = sysconf (_SC_CPU_VERSION); 729876ff6feSmrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 730876ff6feSmrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 731876ff6feSmrg results, however. */ 732876ff6feSmrg if (CPU_IS_PA_RISC (cpu)) 733876ff6feSmrg { 734876ff6feSmrg switch (cpu) 735876ff6feSmrg { 736876ff6feSmrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 737876ff6feSmrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 738876ff6feSmrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 739876ff6feSmrg default: puts ("hppa-hitachi-hiuxwe2"); break; 740876ff6feSmrg } 741876ff6feSmrg } 742876ff6feSmrg else if (CPU_IS_HP_MC68K (cpu)) 743876ff6feSmrg puts ("m68k-hitachi-hiuxwe2"); 744876ff6feSmrg else puts ("unknown-hitachi-hiuxwe2"); 745876ff6feSmrg exit (0); 746876ff6feSmrg } 747876ff6feSmrgEOF 748876ff6feSmrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 749876ff6feSmrg { echo "$SYSTEM_NAME"; exit; } 750876ff6feSmrg echo unknown-hitachi-hiuxwe2 751876ff6feSmrg exit ;; 752876ff6feSmrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 753876ff6feSmrg echo hppa1.1-hp-bsd 754876ff6feSmrg exit ;; 755876ff6feSmrg 9000/8??:4.3bsd:*:*) 756876ff6feSmrg echo hppa1.0-hp-bsd 757876ff6feSmrg exit ;; 758876ff6feSmrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 759876ff6feSmrg echo hppa1.0-hp-mpeix 760876ff6feSmrg exit ;; 761876ff6feSmrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 762876ff6feSmrg echo hppa1.1-hp-osf 763876ff6feSmrg exit ;; 764876ff6feSmrg hp8??:OSF1:*:*) 765876ff6feSmrg echo hppa1.0-hp-osf 766876ff6feSmrg exit ;; 767876ff6feSmrg i*86:OSF1:*:*) 768876ff6feSmrg if [ -x /usr/sbin/sysversion ] ; then 769876ff6feSmrg echo ${UNAME_MACHINE}-unknown-osf1mk 770876ff6feSmrg else 771876ff6feSmrg echo ${UNAME_MACHINE}-unknown-osf1 772876ff6feSmrg fi 773876ff6feSmrg exit ;; 774876ff6feSmrg parisc*:Lites*:*:*) 775876ff6feSmrg echo hppa1.1-hp-lites 776876ff6feSmrg exit ;; 777876ff6feSmrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 778876ff6feSmrg echo c1-convex-bsd 779d41660beSmrg exit ;; 780876ff6feSmrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 781876ff6feSmrg if getsysinfo -f scalar_acc 782876ff6feSmrg then echo c32-convex-bsd 783876ff6feSmrg else echo c2-convex-bsd 784876ff6feSmrg fi 785d41660beSmrg exit ;; 786876ff6feSmrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 787876ff6feSmrg echo c34-convex-bsd 788d41660beSmrg exit ;; 789876ff6feSmrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 790876ff6feSmrg echo c38-convex-bsd 791d41660beSmrg exit ;; 792876ff6feSmrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 793876ff6feSmrg echo c4-convex-bsd 794d41660beSmrg exit ;; 795876ff6feSmrg CRAY*Y-MP:*:*:*) 796876ff6feSmrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 797876ff6feSmrg exit ;; 798876ff6feSmrg CRAY*[A-Z]90:*:*:*) 799876ff6feSmrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 800876ff6feSmrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 801876ff6feSmrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 802876ff6feSmrg -e 's/\.[^.]*$/.X/' 803876ff6feSmrg exit ;; 804876ff6feSmrg CRAY*TS:*:*:*) 805876ff6feSmrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 806876ff6feSmrg exit ;; 807876ff6feSmrg CRAY*T3E:*:*:*) 808876ff6feSmrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 809876ff6feSmrg exit ;; 810876ff6feSmrg CRAY*SV1:*:*:*) 811876ff6feSmrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 812876ff6feSmrg exit ;; 813876ff6feSmrg *:UNICOS/mp:*:*) 814876ff6feSmrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 815876ff6feSmrg exit ;; 816876ff6feSmrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 817d41660beSmrg FUJITSU_PROC=`uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz` 818d41660beSmrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 819d41660beSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 820d41660beSmrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 821d41660beSmrg exit ;; 822876ff6feSmrg 5000:UNIX_System_V:4.*:*) 823d41660beSmrg FUJITSU_SYS=`uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///'` 824d41660beSmrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/'` 825d41660beSmrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 826876ff6feSmrg exit ;; 827876ff6feSmrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 828876ff6feSmrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 829876ff6feSmrg exit ;; 830876ff6feSmrg sparc*:BSD/OS:*:*) 831876ff6feSmrg echo sparc-unknown-bsdi${UNAME_RELEASE} 832876ff6feSmrg exit ;; 833876ff6feSmrg *:BSD/OS:*:*) 834876ff6feSmrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 835876ff6feSmrg exit ;; 836876ff6feSmrg *:FreeBSD:*:*) 837d41660beSmrg UNAME_PROCESSOR=`/usr/bin/uname -p` 838d41660beSmrg case ${UNAME_PROCESSOR} in 839d41660beSmrg amd64) 840d41660beSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 841d41660beSmrg *) 842d41660beSmrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 843d41660beSmrg esac 844876ff6feSmrg exit ;; 845876ff6feSmrg i*:CYGWIN*:*) 846876ff6feSmrg echo ${UNAME_MACHINE}-pc-cygwin 847876ff6feSmrg exit ;; 848d41660beSmrg *:MINGW64*:*) 849d41660beSmrg echo ${UNAME_MACHINE}-pc-mingw64 850d41660beSmrg exit ;; 851d41660beSmrg *:MINGW*:*) 852876ff6feSmrg echo ${UNAME_MACHINE}-pc-mingw32 853876ff6feSmrg exit ;; 854d41660beSmrg *:MSYS*:*) 855d41660beSmrg echo ${UNAME_MACHINE}-pc-msys 856d41660beSmrg exit ;; 857876ff6feSmrg i*:windows32*:*) 858d41660beSmrg # uname -m includes "-pc" on this system. 859d41660beSmrg echo ${UNAME_MACHINE}-mingw32 860876ff6feSmrg exit ;; 861876ff6feSmrg i*:PW*:*) 862876ff6feSmrg echo ${UNAME_MACHINE}-pc-pw32 863876ff6feSmrg exit ;; 864d41660beSmrg *:Interix*:*) 865d41660beSmrg case ${UNAME_MACHINE} in 866d41660beSmrg x86) 867d41660beSmrg echo i586-pc-interix${UNAME_RELEASE} 868d41660beSmrg exit ;; 869d41660beSmrg authenticamd | genuineintel | EM64T) 870d41660beSmrg echo x86_64-unknown-interix${UNAME_RELEASE} 871d41660beSmrg exit ;; 872d41660beSmrg IA64) 873d41660beSmrg echo ia64-unknown-interix${UNAME_RELEASE} 874d41660beSmrg exit ;; 875d41660beSmrg esac ;; 876876ff6feSmrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 877876ff6feSmrg echo i${UNAME_MACHINE}-pc-mks 878876ff6feSmrg exit ;; 879d41660beSmrg 8664:Windows_NT:*) 880d41660beSmrg echo x86_64-pc-mks 881d41660beSmrg exit ;; 882876ff6feSmrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 883876ff6feSmrg # How do we know it's Interix rather than the generic POSIX subsystem? 884876ff6feSmrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 885876ff6feSmrg # UNAME_MACHINE based on the output of uname instead of i386? 886876ff6feSmrg echo i586-pc-interix 887876ff6feSmrg exit ;; 888876ff6feSmrg i*:UWIN*:*) 889876ff6feSmrg echo ${UNAME_MACHINE}-pc-uwin 890876ff6feSmrg exit ;; 891d41660beSmrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 892876ff6feSmrg echo x86_64-unknown-cygwin 893876ff6feSmrg exit ;; 894876ff6feSmrg p*:CYGWIN*:*) 895876ff6feSmrg echo powerpcle-unknown-cygwin 896876ff6feSmrg exit ;; 897876ff6feSmrg prep*:SunOS:5.*:*) 898876ff6feSmrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 899876ff6feSmrg exit ;; 900876ff6feSmrg *:GNU:*:*) 901876ff6feSmrg # the GNU system 902d41660beSmrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 903876ff6feSmrg exit ;; 904876ff6feSmrg *:GNU/*:*:*) 905876ff6feSmrg # other systems with GNU libc and userland 906d41660beSmrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} 907876ff6feSmrg exit ;; 908876ff6feSmrg i*86:Minix:*:*) 909876ff6feSmrg echo ${UNAME_MACHINE}-pc-minix 910876ff6feSmrg exit ;; 911d41660beSmrg aarch64:Linux:*:*) 912d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 913d41660beSmrg exit ;; 914d41660beSmrg aarch64_be:Linux:*:*) 915d41660beSmrg UNAME_MACHINE=aarch64_be 916d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 917d41660beSmrg exit ;; 918d41660beSmrg alpha:Linux:*:*) 919d41660beSmrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 920d41660beSmrg EV5) UNAME_MACHINE=alphaev5 ;; 921d41660beSmrg EV56) UNAME_MACHINE=alphaev56 ;; 922d41660beSmrg PCA56) UNAME_MACHINE=alphapca56 ;; 923d41660beSmrg PCA57) UNAME_MACHINE=alphapca56 ;; 924d41660beSmrg EV6) UNAME_MACHINE=alphaev6 ;; 925d41660beSmrg EV67) UNAME_MACHINE=alphaev67 ;; 926d41660beSmrg EV68*) UNAME_MACHINE=alphaev68 ;; 927d41660beSmrg esac 928d41660beSmrg objdump --private-headers /bin/sh | grep -q ld.so.1 929d41660beSmrg if test "$?" = 0 ; then LIBC=gnulibc1 ; fi 930d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 931d41660beSmrg exit ;; 932d41660beSmrg arc:Linux:*:* | arceb:Linux:*:*) 933d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 934d41660beSmrg exit ;; 935876ff6feSmrg arm*:Linux:*:*) 936d41660beSmrg eval $set_cc_for_build 937d41660beSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 938d41660beSmrg | grep -q __ARM_EABI__ 939d41660beSmrg then 940d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 941d41660beSmrg else 942d41660beSmrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 943d41660beSmrg | grep -q __ARM_PCS_VFP 944d41660beSmrg then 945d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi 946d41660beSmrg else 947d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf 948d41660beSmrg fi 949d41660beSmrg fi 950d41660beSmrg exit ;; 951d41660beSmrg avr32*:Linux:*:*) 952d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 953876ff6feSmrg exit ;; 954876ff6feSmrg cris:Linux:*:*) 955d41660beSmrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 956876ff6feSmrg exit ;; 957876ff6feSmrg crisv32:Linux:*:*) 958d41660beSmrg echo ${UNAME_MACHINE}-axis-linux-${LIBC} 959d41660beSmrg exit ;; 960d41660beSmrg e2k:Linux:*:*) 961d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 962876ff6feSmrg exit ;; 963876ff6feSmrg frv:Linux:*:*) 964d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 965d41660beSmrg exit ;; 966d41660beSmrg hexagon:Linux:*:*) 967d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 968d41660beSmrg exit ;; 969d41660beSmrg i*86:Linux:*:*) 970d41660beSmrg echo ${UNAME_MACHINE}-pc-linux-${LIBC} 971876ff6feSmrg exit ;; 972876ff6feSmrg ia64:Linux:*:*) 973d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 974d41660beSmrg exit ;; 975d41660beSmrg k1om:Linux:*:*) 976d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 977876ff6feSmrg exit ;; 978876ff6feSmrg m32r*:Linux:*:*) 979d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 980876ff6feSmrg exit ;; 981876ff6feSmrg m68*:Linux:*:*) 982d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 983876ff6feSmrg exit ;; 984d41660beSmrg mips:Linux:*:* | mips64:Linux:*:*) 985876ff6feSmrg eval $set_cc_for_build 986876ff6feSmrg sed 's/^ //' << EOF >$dummy.c 987876ff6feSmrg #undef CPU 988d41660beSmrg #undef ${UNAME_MACHINE} 989d41660beSmrg #undef ${UNAME_MACHINE}el 990876ff6feSmrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 991d41660beSmrg CPU=${UNAME_MACHINE}el 992876ff6feSmrg #else 993876ff6feSmrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 994d41660beSmrg CPU=${UNAME_MACHINE} 995876ff6feSmrg #else 996876ff6feSmrg CPU= 997876ff6feSmrg #endif 998876ff6feSmrg #endif 999876ff6feSmrgEOF 1000d41660beSmrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 1001d41660beSmrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } 1002876ff6feSmrg ;; 1003d41660beSmrg mips64el:Linux:*:*) 1004d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1005876ff6feSmrg exit ;; 1006d41660beSmrg openrisc*:Linux:*:*) 1007d41660beSmrg echo or1k-unknown-linux-${LIBC} 1008876ff6feSmrg exit ;; 1009d41660beSmrg or32:Linux:*:* | or1k*:Linux:*:*) 1010d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1011d41660beSmrg exit ;; 1012d41660beSmrg padre:Linux:*:*) 1013d41660beSmrg echo sparc-unknown-linux-${LIBC} 1014d41660beSmrg exit ;; 1015d41660beSmrg parisc64:Linux:*:* | hppa64:Linux:*:*) 1016d41660beSmrg echo hppa64-unknown-linux-${LIBC} 1017876ff6feSmrg exit ;; 1018876ff6feSmrg parisc:Linux:*:* | hppa:Linux:*:*) 1019876ff6feSmrg # Look for CPU level 1020876ff6feSmrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 1021d41660beSmrg PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; 1022d41660beSmrg PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; 1023d41660beSmrg *) echo hppa-unknown-linux-${LIBC} ;; 1024876ff6feSmrg esac 1025876ff6feSmrg exit ;; 1026d41660beSmrg ppc64:Linux:*:*) 1027d41660beSmrg echo powerpc64-unknown-linux-${LIBC} 1028d41660beSmrg exit ;; 1029d41660beSmrg ppc:Linux:*:*) 1030d41660beSmrg echo powerpc-unknown-linux-${LIBC} 1031d41660beSmrg exit ;; 1032d41660beSmrg ppc64le:Linux:*:*) 1033d41660beSmrg echo powerpc64le-unknown-linux-${LIBC} 1034d41660beSmrg exit ;; 1035d41660beSmrg ppcle:Linux:*:*) 1036d41660beSmrg echo powerpcle-unknown-linux-${LIBC} 1037d41660beSmrg exit ;; 1038d41660beSmrg riscv32:Linux:*:* | riscv64:Linux:*:*) 1039d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1040876ff6feSmrg exit ;; 1041876ff6feSmrg s390:Linux:*:* | s390x:Linux:*:*) 1042d41660beSmrg echo ${UNAME_MACHINE}-ibm-linux-${LIBC} 1043876ff6feSmrg exit ;; 1044876ff6feSmrg sh64*:Linux:*:*) 1045d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1046876ff6feSmrg exit ;; 1047876ff6feSmrg sh*:Linux:*:*) 1048d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1049876ff6feSmrg exit ;; 1050876ff6feSmrg sparc:Linux:*:* | sparc64:Linux:*:*) 1051d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1052876ff6feSmrg exit ;; 1053d41660beSmrg tile*:Linux:*:*) 1054d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1055876ff6feSmrg exit ;; 1056d41660beSmrg vax:Linux:*:*) 1057d41660beSmrg echo ${UNAME_MACHINE}-dec-linux-${LIBC} 1058d41660beSmrg exit ;; 1059d41660beSmrg x86_64:Linux:*:*) 1060876ff6feSmrg eval $set_cc_for_build 1061d41660beSmrg X86_64_ABI= 1062d41660beSmrg # If there is a compiler, see if it is configured for 32-bit objects. 1063d41660beSmrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1064d41660beSmrg if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \ 1065d41660beSmrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1066d41660beSmrg grep IS_X32 >/dev/null 1067d41660beSmrg then 1068d41660beSmrg X86_64_ABI=x32 1069d41660beSmrg fi 1070d41660beSmrg fi 1071d41660beSmrg echo ${UNAME_MACHINE}-pc-linux-${LIBC}${X86_64_ABI} 1072d41660beSmrg exit ;; 1073d41660beSmrg xtensa*:Linux:*:*) 1074d41660beSmrg echo ${UNAME_MACHINE}-unknown-linux-${LIBC} 1075d41660beSmrg exit ;; 1076876ff6feSmrg i*86:DYNIX/ptx:4*:*) 1077876ff6feSmrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1078876ff6feSmrg # earlier versions are messed up and put the nodename in both 1079876ff6feSmrg # sysname and nodename. 1080876ff6feSmrg echo i386-sequent-sysv4 1081876ff6feSmrg exit ;; 1082876ff6feSmrg i*86:UNIX_SV:4.2MP:2.*) 1083d41660beSmrg # Unixware is an offshoot of SVR4, but it has its own version 1084d41660beSmrg # number series starting with 2... 1085d41660beSmrg # I am not positive that other SVR4 systems won't match this, 1086876ff6feSmrg # I just have to hope. -- rms. 1087d41660beSmrg # Use sysv4.2uw... so that sysv4* matches it. 1088876ff6feSmrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1089876ff6feSmrg exit ;; 1090876ff6feSmrg i*86:OS/2:*:*) 1091876ff6feSmrg # If we were able to find `uname', then EMX Unix compatibility 1092876ff6feSmrg # is probably installed. 1093876ff6feSmrg echo ${UNAME_MACHINE}-pc-os2-emx 1094876ff6feSmrg exit ;; 1095876ff6feSmrg i*86:XTS-300:*:STOP) 1096876ff6feSmrg echo ${UNAME_MACHINE}-unknown-stop 1097876ff6feSmrg exit ;; 1098876ff6feSmrg i*86:atheos:*:*) 1099876ff6feSmrg echo ${UNAME_MACHINE}-unknown-atheos 1100876ff6feSmrg exit ;; 1101876ff6feSmrg i*86:syllable:*:*) 1102876ff6feSmrg echo ${UNAME_MACHINE}-pc-syllable 1103876ff6feSmrg exit ;; 1104d41660beSmrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1105876ff6feSmrg echo i386-unknown-lynxos${UNAME_RELEASE} 1106876ff6feSmrg exit ;; 1107876ff6feSmrg i*86:*DOS:*:*) 1108876ff6feSmrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 1109876ff6feSmrg exit ;; 1110876ff6feSmrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1111876ff6feSmrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1112876ff6feSmrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1113876ff6feSmrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1114876ff6feSmrg else 1115876ff6feSmrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1116876ff6feSmrg fi 1117876ff6feSmrg exit ;; 1118876ff6feSmrg i*86:*:5:[678]*) 1119d41660beSmrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 1120876ff6feSmrg case `/bin/uname -X | grep "^Machine"` in 1121876ff6feSmrg *486*) UNAME_MACHINE=i486 ;; 1122876ff6feSmrg *Pentium) UNAME_MACHINE=i586 ;; 1123876ff6feSmrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1124876ff6feSmrg esac 1125876ff6feSmrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1126876ff6feSmrg exit ;; 1127876ff6feSmrg i*86:*:3.2:*) 1128876ff6feSmrg if test -f /usr/options/cb.name; then 1129876ff6feSmrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1130876ff6feSmrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1131876ff6feSmrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 1132876ff6feSmrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1133876ff6feSmrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1134876ff6feSmrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 1135876ff6feSmrg && UNAME_MACHINE=i586 1136876ff6feSmrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 1137876ff6feSmrg && UNAME_MACHINE=i686 1138876ff6feSmrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1139876ff6feSmrg && UNAME_MACHINE=i686 1140876ff6feSmrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1141876ff6feSmrg else 1142876ff6feSmrg echo ${UNAME_MACHINE}-pc-sysv32 1143876ff6feSmrg fi 1144876ff6feSmrg exit ;; 1145876ff6feSmrg pc:*:*:*) 1146876ff6feSmrg # Left here for compatibility: 1147d41660beSmrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 1148d41660beSmrg # the processor, so we play safe by assuming i586. 1149d41660beSmrg # Note: whatever this is, it MUST be the same as what config.sub 1150d41660beSmrg # prints for the "djgpp" host, or else GDB configure will decide that 1151d41660beSmrg # this is a cross-build. 1152d41660beSmrg echo i586-pc-msdosdjgpp 1153d41660beSmrg exit ;; 1154876ff6feSmrg Intel:Mach:3*:*) 1155876ff6feSmrg echo i386-pc-mach3 1156876ff6feSmrg exit ;; 1157876ff6feSmrg paragon:*:*:*) 1158876ff6feSmrg echo i860-intel-osf1 1159876ff6feSmrg exit ;; 1160876ff6feSmrg i860:*:4.*:*) # i860-SVR4 1161876ff6feSmrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1162876ff6feSmrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1163876ff6feSmrg else # Add other i860-SVR4 vendors below as they are discovered. 1164876ff6feSmrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1165876ff6feSmrg fi 1166876ff6feSmrg exit ;; 1167876ff6feSmrg mini*:CTIX:SYS*5:*) 1168876ff6feSmrg # "miniframe" 1169876ff6feSmrg echo m68010-convergent-sysv 1170876ff6feSmrg exit ;; 1171876ff6feSmrg mc68k:UNIX:SYSTEM5:3.51m) 1172876ff6feSmrg echo m68k-convergent-sysv 1173876ff6feSmrg exit ;; 1174876ff6feSmrg M680?0:D-NIX:5.3:*) 1175876ff6feSmrg echo m68k-diab-dnix 1176876ff6feSmrg exit ;; 1177876ff6feSmrg M68*:*:R3V[5678]*:*) 1178876ff6feSmrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1179876ff6feSmrg 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) 1180876ff6feSmrg OS_REL='' 1181876ff6feSmrg test -r /etc/.relid \ 1182876ff6feSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1183876ff6feSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1184876ff6feSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1185876ff6feSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1186876ff6feSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1187876ff6feSmrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1188d41660beSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1189d41660beSmrg && { echo i486-ncr-sysv4; exit; } ;; 1190d41660beSmrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1191d41660beSmrg OS_REL='.3' 1192d41660beSmrg test -r /etc/.relid \ 1193d41660beSmrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1194d41660beSmrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1195d41660beSmrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1196d41660beSmrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1197d41660beSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1198d41660beSmrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1199d41660beSmrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1200876ff6feSmrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1201876ff6feSmrg echo m68k-unknown-lynxos${UNAME_RELEASE} 1202876ff6feSmrg exit ;; 1203876ff6feSmrg mc68030:UNIX_System_V:4.*:*) 1204876ff6feSmrg echo m68k-atari-sysv4 1205876ff6feSmrg exit ;; 1206876ff6feSmrg TSUNAMI:LynxOS:2.*:*) 1207876ff6feSmrg echo sparc-unknown-lynxos${UNAME_RELEASE} 1208876ff6feSmrg exit ;; 1209876ff6feSmrg rs6000:LynxOS:2.*:*) 1210876ff6feSmrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 1211876ff6feSmrg exit ;; 1212d41660beSmrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1213876ff6feSmrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 1214876ff6feSmrg exit ;; 1215876ff6feSmrg SM[BE]S:UNIX_SV:*:*) 1216876ff6feSmrg echo mips-dde-sysv${UNAME_RELEASE} 1217876ff6feSmrg exit ;; 1218876ff6feSmrg RM*:ReliantUNIX-*:*:*) 1219876ff6feSmrg echo mips-sni-sysv4 1220876ff6feSmrg exit ;; 1221876ff6feSmrg RM*:SINIX-*:*:*) 1222876ff6feSmrg echo mips-sni-sysv4 1223876ff6feSmrg exit ;; 1224876ff6feSmrg *:SINIX-*:*:*) 1225876ff6feSmrg if uname -p 2>/dev/null >/dev/null ; then 1226876ff6feSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1227876ff6feSmrg echo ${UNAME_MACHINE}-sni-sysv4 1228876ff6feSmrg else 1229876ff6feSmrg echo ns32k-sni-sysv 1230876ff6feSmrg fi 1231876ff6feSmrg exit ;; 1232d41660beSmrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1233d41660beSmrg # says <Richard.M.Bartel@ccMail.Census.GOV> 1234d41660beSmrg echo i586-unisys-sysv4 1235d41660beSmrg exit ;; 1236876ff6feSmrg *:UNIX_System_V:4*:FTX*) 1237876ff6feSmrg # From Gerald Hewes <hewes@openmarket.com>. 1238876ff6feSmrg # How about differentiating between stratus architectures? -djm 1239876ff6feSmrg echo hppa1.1-stratus-sysv4 1240876ff6feSmrg exit ;; 1241876ff6feSmrg *:*:*:FTX*) 1242876ff6feSmrg # From seanf@swdc.stratus.com. 1243876ff6feSmrg echo i860-stratus-sysv4 1244876ff6feSmrg exit ;; 1245876ff6feSmrg i*86:VOS:*:*) 1246876ff6feSmrg # From Paul.Green@stratus.com. 1247876ff6feSmrg echo ${UNAME_MACHINE}-stratus-vos 1248876ff6feSmrg exit ;; 1249876ff6feSmrg *:VOS:*:*) 1250876ff6feSmrg # From Paul.Green@stratus.com. 1251876ff6feSmrg echo hppa1.1-stratus-vos 1252876ff6feSmrg exit ;; 1253876ff6feSmrg mc68*:A/UX:*:*) 1254876ff6feSmrg echo m68k-apple-aux${UNAME_RELEASE} 1255876ff6feSmrg exit ;; 1256876ff6feSmrg news*:NEWS-OS:6*:*) 1257876ff6feSmrg echo mips-sony-newsos6 1258876ff6feSmrg exit ;; 1259876ff6feSmrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1260876ff6feSmrg if [ -d /usr/nec ]; then 1261d41660beSmrg echo mips-nec-sysv${UNAME_RELEASE} 1262876ff6feSmrg else 1263d41660beSmrg echo mips-unknown-sysv${UNAME_RELEASE} 1264876ff6feSmrg fi 1265d41660beSmrg exit ;; 1266876ff6feSmrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1267876ff6feSmrg echo powerpc-be-beos 1268876ff6feSmrg exit ;; 1269876ff6feSmrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1270876ff6feSmrg echo powerpc-apple-beos 1271876ff6feSmrg exit ;; 1272876ff6feSmrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1273876ff6feSmrg echo i586-pc-beos 1274876ff6feSmrg exit ;; 1275d41660beSmrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1276d41660beSmrg echo i586-pc-haiku 1277d41660beSmrg exit ;; 1278d41660beSmrg x86_64:Haiku:*:*) 1279d41660beSmrg echo x86_64-unknown-haiku 1280d41660beSmrg exit ;; 1281876ff6feSmrg SX-4:SUPER-UX:*:*) 1282876ff6feSmrg echo sx4-nec-superux${UNAME_RELEASE} 1283876ff6feSmrg exit ;; 1284876ff6feSmrg SX-5:SUPER-UX:*:*) 1285876ff6feSmrg echo sx5-nec-superux${UNAME_RELEASE} 1286876ff6feSmrg exit ;; 1287876ff6feSmrg SX-6:SUPER-UX:*:*) 1288876ff6feSmrg echo sx6-nec-superux${UNAME_RELEASE} 1289876ff6feSmrg exit ;; 1290d41660beSmrg SX-7:SUPER-UX:*:*) 1291d41660beSmrg echo sx7-nec-superux${UNAME_RELEASE} 1292d41660beSmrg exit ;; 1293d41660beSmrg SX-8:SUPER-UX:*:*) 1294d41660beSmrg echo sx8-nec-superux${UNAME_RELEASE} 1295d41660beSmrg exit ;; 1296d41660beSmrg SX-8R:SUPER-UX:*:*) 1297d41660beSmrg echo sx8r-nec-superux${UNAME_RELEASE} 1298d41660beSmrg exit ;; 1299d41660beSmrg SX-ACE:SUPER-UX:*:*) 1300d41660beSmrg echo sxace-nec-superux${UNAME_RELEASE} 1301d41660beSmrg exit ;; 1302876ff6feSmrg Power*:Rhapsody:*:*) 1303876ff6feSmrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 1304876ff6feSmrg exit ;; 1305876ff6feSmrg *:Rhapsody:*:*) 1306876ff6feSmrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1307876ff6feSmrg exit ;; 1308876ff6feSmrg *:Darwin:*:*) 1309876ff6feSmrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1310d41660beSmrg eval $set_cc_for_build 1311d41660beSmrg if test "$UNAME_PROCESSOR" = unknown ; then 1312d41660beSmrg UNAME_PROCESSOR=powerpc 1313d41660beSmrg fi 1314d41660beSmrg if test `echo "$UNAME_RELEASE" | sed -e 's/\..*//'` -le 10 ; then 1315d41660beSmrg if [ "$CC_FOR_BUILD" != no_compiler_found ]; then 1316d41660beSmrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1317d41660beSmrg (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \ 1318d41660beSmrg grep IS_64BIT_ARCH >/dev/null 1319d41660beSmrg then 1320d41660beSmrg case $UNAME_PROCESSOR in 1321d41660beSmrg i386) UNAME_PROCESSOR=x86_64 ;; 1322d41660beSmrg powerpc) UNAME_PROCESSOR=powerpc64 ;; 1323d41660beSmrg esac 1324d41660beSmrg fi 1325d41660beSmrg fi 1326d41660beSmrg elif test "$UNAME_PROCESSOR" = i386 ; then 1327d41660beSmrg # Avoid executing cc on OS X 10.9, as it ships with a stub 1328d41660beSmrg # that puts up a graphical alert prompting to install 1329d41660beSmrg # developer tools. Any system running Mac OS X 10.7 or 1330d41660beSmrg # later (Darwin 11 and later) is required to have a 64-bit 1331d41660beSmrg # processor. This is not true of the ARM version of Darwin 1332d41660beSmrg # that Apple uses in portable devices. 1333d41660beSmrg UNAME_PROCESSOR=x86_64 1334d41660beSmrg fi 1335876ff6feSmrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1336876ff6feSmrg exit ;; 1337876ff6feSmrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 1338876ff6feSmrg UNAME_PROCESSOR=`uname -p` 1339d41660beSmrg if test "$UNAME_PROCESSOR" = x86; then 1340876ff6feSmrg UNAME_PROCESSOR=i386 1341876ff6feSmrg UNAME_MACHINE=pc 1342876ff6feSmrg fi 1343876ff6feSmrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1344876ff6feSmrg exit ;; 1345876ff6feSmrg *:QNX:*:4*) 1346876ff6feSmrg echo i386-pc-qnx 1347876ff6feSmrg exit ;; 1348d41660beSmrg NEO-?:NONSTOP_KERNEL:*:*) 1349d41660beSmrg echo neo-tandem-nsk${UNAME_RELEASE} 1350d41660beSmrg exit ;; 1351d41660beSmrg NSE-*:NONSTOP_KERNEL:*:*) 1352876ff6feSmrg echo nse-tandem-nsk${UNAME_RELEASE} 1353876ff6feSmrg exit ;; 1354876ff6feSmrg NSR-?:NONSTOP_KERNEL:*:*) 1355876ff6feSmrg echo nsr-tandem-nsk${UNAME_RELEASE} 1356876ff6feSmrg exit ;; 1357876ff6feSmrg *:NonStop-UX:*:*) 1358876ff6feSmrg echo mips-compaq-nonstopux 1359876ff6feSmrg exit ;; 1360876ff6feSmrg BS2000:POSIX*:*:*) 1361876ff6feSmrg echo bs2000-siemens-sysv 1362876ff6feSmrg exit ;; 1363876ff6feSmrg DS/*:UNIX_System_V:*:*) 1364876ff6feSmrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1365876ff6feSmrg exit ;; 1366876ff6feSmrg *:Plan9:*:*) 1367876ff6feSmrg # "uname -m" is not consistent, so use $cputype instead. 386 1368876ff6feSmrg # is converted to i386 for consistency with other x86 1369876ff6feSmrg # operating systems. 1370d41660beSmrg if test "$cputype" = 386; then 1371876ff6feSmrg UNAME_MACHINE=i386 1372876ff6feSmrg else 1373876ff6feSmrg UNAME_MACHINE="$cputype" 1374876ff6feSmrg fi 1375876ff6feSmrg echo ${UNAME_MACHINE}-unknown-plan9 1376876ff6feSmrg exit ;; 1377876ff6feSmrg *:TOPS-10:*:*) 1378876ff6feSmrg echo pdp10-unknown-tops10 1379876ff6feSmrg exit ;; 1380876ff6feSmrg *:TENEX:*:*) 1381876ff6feSmrg echo pdp10-unknown-tenex 1382876ff6feSmrg exit ;; 1383876ff6feSmrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1384876ff6feSmrg echo pdp10-dec-tops20 1385876ff6feSmrg exit ;; 1386876ff6feSmrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1387876ff6feSmrg echo pdp10-xkl-tops20 1388876ff6feSmrg exit ;; 1389876ff6feSmrg *:TOPS-20:*:*) 1390876ff6feSmrg echo pdp10-unknown-tops20 1391876ff6feSmrg exit ;; 1392876ff6feSmrg *:ITS:*:*) 1393876ff6feSmrg echo pdp10-unknown-its 1394876ff6feSmrg exit ;; 1395876ff6feSmrg SEI:*:*:SEIUX) 1396d41660beSmrg echo mips-sei-seiux${UNAME_RELEASE} 1397876ff6feSmrg exit ;; 1398876ff6feSmrg *:DragonFly:*:*) 1399876ff6feSmrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1400876ff6feSmrg exit ;; 1401876ff6feSmrg *:*VMS:*:*) 1402d41660beSmrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1403876ff6feSmrg case "${UNAME_MACHINE}" in 1404876ff6feSmrg A*) echo alpha-dec-vms ; exit ;; 1405876ff6feSmrg I*) echo ia64-dec-vms ; exit ;; 1406876ff6feSmrg V*) echo vax-dec-vms ; exit ;; 1407876ff6feSmrg esac ;; 1408876ff6feSmrg *:XENIX:*:SysV) 1409876ff6feSmrg echo i386-pc-xenix 1410876ff6feSmrg exit ;; 1411876ff6feSmrg i*86:skyos:*:*) 1412d41660beSmrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE} | sed -e 's/ .*$//'` 1413876ff6feSmrg exit ;; 1414d41660beSmrg i*86:rdos:*:*) 1415d41660beSmrg echo ${UNAME_MACHINE}-pc-rdos 1416876ff6feSmrg exit ;; 1417d41660beSmrg i*86:AROS:*:*) 1418d41660beSmrg echo ${UNAME_MACHINE}-pc-aros 1419876ff6feSmrg exit ;; 1420d41660beSmrg x86_64:VMkernel:*:*) 1421d41660beSmrg echo ${UNAME_MACHINE}-unknown-esx 1422876ff6feSmrg exit ;; 1423d41660beSmrg amd64:Isilon\ OneFS:*:*) 1424d41660beSmrg echo x86_64-unknown-onefs 1425876ff6feSmrg exit ;; 1426d41660beSmrgesac 1427876ff6feSmrg 1428876ff6feSmrgcat >&2 <<EOF 1429876ff6feSmrg$0: unable to guess system type 1430876ff6feSmrg 1431d41660beSmrgThis script (version $timestamp), has failed to recognize the 1432d41660beSmrgoperating system you are using. If your script is old, overwrite 1433d41660beSmrgconfig.guess and config.sub with the latest versions from: 1434876ff6feSmrg 1435d41660beSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess 1436876ff6feSmrgand 1437d41660beSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub 1438876ff6feSmrg 1439d41660beSmrgIf $0 has already been updated, send the following data and any 1440d41660beSmrginformation you think might be pertinent to config-patches@gnu.org to 1441d41660beSmrgprovide the necessary information to handle your system. 1442876ff6feSmrg 1443876ff6feSmrgconfig.guess timestamp = $timestamp 1444876ff6feSmrg 1445876ff6feSmrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1446876ff6feSmrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1447876ff6feSmrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1448876ff6feSmrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1449876ff6feSmrg 1450876ff6feSmrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1451876ff6feSmrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1452876ff6feSmrg 1453876ff6feSmrghostinfo = `(hostinfo) 2>/dev/null` 1454876ff6feSmrg/bin/universe = `(/bin/universe) 2>/dev/null` 1455876ff6feSmrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1456876ff6feSmrg/bin/arch = `(/bin/arch) 2>/dev/null` 1457876ff6feSmrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1458876ff6feSmrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1459876ff6feSmrg 1460876ff6feSmrgUNAME_MACHINE = ${UNAME_MACHINE} 1461876ff6feSmrgUNAME_RELEASE = ${UNAME_RELEASE} 1462876ff6feSmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 1463876ff6feSmrgUNAME_VERSION = ${UNAME_VERSION} 1464876ff6feSmrgEOF 1465876ff6feSmrg 1466876ff6feSmrgexit 1 1467876ff6feSmrg 1468876ff6feSmrg# Local variables: 1469876ff6feSmrg# eval: (add-hook 'write-file-hooks 'time-stamp) 1470876ff6feSmrg# time-stamp-start: "timestamp='" 1471876ff6feSmrg# time-stamp-format: "%:y-%02m-%02d" 1472876ff6feSmrg# time-stamp-end: "'" 1473876ff6feSmrg# End: 1474