config.guess revision a73597f9
1659607e0Smrg#! /bin/sh 2659607e0Smrg# Attempt to guess a canonical system name. 3659607e0Smrg# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 4a73597f9Smrg# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 5a73597f9Smrg# 2011, 2012 Free Software Foundation, Inc. 6659607e0Smrg 7a73597f9Smrgtimestamp='2012-06-10' 8659607e0Smrg 9659607e0Smrg# This file is free software; you can redistribute it and/or modify it 10659607e0Smrg# under the terms of the GNU General Public License as published by 11659607e0Smrg# the Free Software Foundation; either version 2 of the License, or 12659607e0Smrg# (at your option) any later version. 13659607e0Smrg# 14659607e0Smrg# This program is distributed in the hope that it will be useful, but 15659607e0Smrg# WITHOUT ANY WARRANTY; without even the implied warranty of 16659607e0Smrg# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17659607e0Smrg# General Public License for more details. 18659607e0Smrg# 19659607e0Smrg# You should have received a copy of the GNU General Public License 20a73597f9Smrg# along with this program; if not, see <http://www.gnu.org/licenses/>. 21659607e0Smrg# 22659607e0Smrg# As a special exception to the GNU General Public License, if you 23659607e0Smrg# distribute this file as part of a program that contains a 24659607e0Smrg# configuration script generated by Autoconf, you may include it under 25659607e0Smrg# the same distribution terms that you use for the rest of that program. 26659607e0Smrg 27659607e0Smrg 28b73be646Smrg# Originally written by Per Bothner. Please send patches (context 29b73be646Smrg# diff format) to <config-patches@gnu.org> and include a ChangeLog 30b73be646Smrg# entry. 31659607e0Smrg# 32659607e0Smrg# This script attempts to guess a canonical system name similar to 33659607e0Smrg# config.sub. If it succeeds, it prints the system name on stdout, and 34659607e0Smrg# exits with 0. Otherwise, it exits with 1. 35659607e0Smrg# 36b73be646Smrg# You can get the latest version of this script from: 37b73be646Smrg# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 38659607e0Smrg 39659607e0Smrgme=`echo "$0" | sed -e 's,.*/,,'` 40659607e0Smrg 41659607e0Smrgusage="\ 42659607e0SmrgUsage: $0 [OPTION] 43659607e0Smrg 44659607e0SmrgOutput the configuration name of the system \`$me' is run on. 45659607e0Smrg 46659607e0SmrgOperation modes: 47659607e0Smrg -h, --help print this help, then exit 48659607e0Smrg -t, --time-stamp print date of last modification, then exit 49659607e0Smrg -v, --version print version number, then exit 50659607e0Smrg 51659607e0SmrgReport bugs and patches to <config-patches@gnu.org>." 52659607e0Smrg 53659607e0Smrgversion="\ 54659607e0SmrgGNU config.guess ($timestamp) 55659607e0Smrg 56659607e0SmrgOriginally written by Per Bothner. 57bd3a1963SmrgCopyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 58a73597f9Smrg2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 59a73597f9SmrgFree Software Foundation, Inc. 60659607e0Smrg 61659607e0SmrgThis is free software; see the source for copying conditions. There is NO 62659607e0Smrgwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63659607e0Smrg 64659607e0Smrghelp=" 65659607e0SmrgTry \`$me --help' for more information." 66659607e0Smrg 67659607e0Smrg# Parse command line 68659607e0Smrgwhile test $# -gt 0 ; do 69659607e0Smrg case $1 in 70659607e0Smrg --time-stamp | --time* | -t ) 71659607e0Smrg echo "$timestamp" ; exit ;; 72659607e0Smrg --version | -v ) 73659607e0Smrg echo "$version" ; exit ;; 74659607e0Smrg --help | --h* | -h ) 75659607e0Smrg echo "$usage"; exit ;; 76659607e0Smrg -- ) # Stop option processing 77659607e0Smrg shift; break ;; 78659607e0Smrg - ) # Use stdin as input. 79659607e0Smrg break ;; 80659607e0Smrg -* ) 81659607e0Smrg echo "$me: invalid option $1$help" >&2 82659607e0Smrg exit 1 ;; 83659607e0Smrg * ) 84659607e0Smrg break ;; 85659607e0Smrg esac 86659607e0Smrgdone 87659607e0Smrg 88659607e0Smrgif test $# != 0; then 89659607e0Smrg echo "$me: too many arguments$help" >&2 90659607e0Smrg exit 1 91659607e0Smrgfi 92659607e0Smrg 93a73597f9Smrgtrap 'exit 1' 1 2 15 94659607e0Smrg 95659607e0Smrg# CC_FOR_BUILD -- compiler used by this script. Note that the use of a 96659607e0Smrg# compiler to aid in system detection is discouraged as it requires 97659607e0Smrg# temporary files to be created and, as you can see below, it is a 98659607e0Smrg# headache to deal with in a portable fashion. 99659607e0Smrg 100659607e0Smrg# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still 101659607e0Smrg# use `HOST_CC' if defined, but it is deprecated. 102659607e0Smrg 103659607e0Smrg# Portable tmp directory creation inspired by the Autoconf team. 104659607e0Smrg 105659607e0Smrgset_cc_for_build=' 106659607e0Smrgtrap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 107a73597f9Smrgtrap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 108659607e0Smrg: ${TMPDIR=/tmp} ; 109fc27e79cSmrg { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 110659607e0Smrg { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 111659607e0Smrg { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 112659607e0Smrg { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 113659607e0Smrgdummy=$tmp/dummy ; 114659607e0Smrgtmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ; 115659607e0Smrgcase $CC_FOR_BUILD,$HOST_CC,$CC in 116659607e0Smrg ,,) echo "int x;" > $dummy.c ; 117659607e0Smrg for c in cc gcc c89 c99 ; do 118659607e0Smrg if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then 119659607e0Smrg CC_FOR_BUILD="$c"; break ; 120659607e0Smrg fi ; 121659607e0Smrg done ; 122659607e0Smrg if test x"$CC_FOR_BUILD" = x ; then 123659607e0Smrg CC_FOR_BUILD=no_compiler_found ; 124659607e0Smrg fi 125659607e0Smrg ;; 126659607e0Smrg ,,*) CC_FOR_BUILD=$CC ;; 127659607e0Smrg ,*,*) CC_FOR_BUILD=$HOST_CC ;; 128659607e0Smrgesac ; set_cc_for_build= ;' 129659607e0Smrg 130659607e0Smrg# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 131659607e0Smrg# (ghazi@noc.rutgers.edu 1994-08-24) 132659607e0Smrgif (test -f /.attbin/uname) >/dev/null 2>&1 ; then 133659607e0Smrg PATH=$PATH:/.attbin ; export PATH 134659607e0Smrgfi 135659607e0Smrg 136659607e0SmrgUNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown 137659607e0SmrgUNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown 138659607e0SmrgUNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown 139659607e0SmrgUNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown 140659607e0Smrg 141659607e0Smrg# Note: order is significant - the case branches are not exclusive. 142659607e0Smrg 143659607e0Smrgcase "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in 144659607e0Smrg *:NetBSD:*:*) 145659607e0Smrg # NetBSD (nbsd) targets should (where applicable) match one or 146a73597f9Smrg # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, 147659607e0Smrg # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently 148659607e0Smrg # switched to ELF, *-*-netbsd* would select the old 149659607e0Smrg # object file format. This provides both forward 150659607e0Smrg # compatibility and a consistent mechanism for selecting the 151659607e0Smrg # object file format. 152659607e0Smrg # 153659607e0Smrg # Note: NetBSD doesn't particularly care about the vendor 154659607e0Smrg # portion of the name. We always set it to "unknown". 155659607e0Smrg sysctl="sysctl -n hw.machine_arch" 156659607e0Smrg UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \ 157659607e0Smrg /usr/sbin/$sysctl 2>/dev/null || echo unknown)` 158659607e0Smrg case "${UNAME_MACHINE_ARCH}" in 159659607e0Smrg armeb) machine=armeb-unknown ;; 160659607e0Smrg arm*) machine=arm-unknown ;; 161659607e0Smrg sh3el) machine=shl-unknown ;; 162659607e0Smrg sh3eb) machine=sh-unknown ;; 163fc27e79cSmrg sh5el) machine=sh5le-unknown ;; 164659607e0Smrg *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 165659607e0Smrg esac 166659607e0Smrg # The Operating System including object format, if it has switched 167659607e0Smrg # to ELF recently, or will in the future. 168659607e0Smrg case "${UNAME_MACHINE_ARCH}" in 169659607e0Smrg arm*|i386|m68k|ns32k|sh3*|sparc|vax) 170659607e0Smrg eval $set_cc_for_build 171659607e0Smrg if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 172b73be646Smrg | grep -q __ELF__ 173659607e0Smrg then 174659607e0Smrg # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 175659607e0Smrg # Return netbsd for either. FIX? 176659607e0Smrg os=netbsd 177659607e0Smrg else 178659607e0Smrg os=netbsdelf 179659607e0Smrg fi 180659607e0Smrg ;; 181659607e0Smrg *) 182a73597f9Smrg os=netbsd 183659607e0Smrg ;; 184659607e0Smrg esac 185659607e0Smrg # The OS release 186659607e0Smrg # Debian GNU/NetBSD machines have a different userland, and 187659607e0Smrg # thus, need a distinct triplet. However, they do not need 188659607e0Smrg # kernel version information, so it can be replaced with a 189659607e0Smrg # suitable tag, in the style of linux-gnu. 190659607e0Smrg case "${UNAME_VERSION}" in 191659607e0Smrg Debian*) 192659607e0Smrg release='-gnu' 193659607e0Smrg ;; 194659607e0Smrg *) 195659607e0Smrg release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'` 196659607e0Smrg ;; 197659607e0Smrg esac 198659607e0Smrg # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: 199659607e0Smrg # contains redundant information, the shorter form: 200659607e0Smrg # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 201659607e0Smrg echo "${machine}-${os}${release}" 202659607e0Smrg exit ;; 203659607e0Smrg *:OpenBSD:*:*) 204659607e0Smrg UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` 205659607e0Smrg echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} 206659607e0Smrg exit ;; 207659607e0Smrg *:ekkoBSD:*:*) 208659607e0Smrg echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 209659607e0Smrg exit ;; 210fc27e79cSmrg *:SolidBSD:*:*) 211fc27e79cSmrg echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} 212fc27e79cSmrg exit ;; 213659607e0Smrg macppc:MirBSD:*:*) 214fc27e79cSmrg echo powerpc-unknown-mirbsd${UNAME_RELEASE} 215659607e0Smrg exit ;; 216659607e0Smrg *:MirBSD:*:*) 217659607e0Smrg echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 218659607e0Smrg exit ;; 219659607e0Smrg alpha:OSF1:*:*) 220659607e0Smrg case $UNAME_RELEASE in 221659607e0Smrg *4.0) 222659607e0Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` 223659607e0Smrg ;; 224659607e0Smrg *5.*) 225a73597f9Smrg UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` 226659607e0Smrg ;; 227659607e0Smrg esac 228659607e0Smrg # According to Compaq, /usr/sbin/psrinfo has been available on 229659607e0Smrg # OSF/1 and Tru64 systems produced since 1995. I hope that 230659607e0Smrg # covers most systems running today. This code pipes the CPU 231659607e0Smrg # types through head -n 1, so we only detect the type of CPU 0. 232659607e0Smrg ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1` 233659607e0Smrg case "$ALPHA_CPU_TYPE" in 234659607e0Smrg "EV4 (21064)") 235659607e0Smrg UNAME_MACHINE="alpha" ;; 236659607e0Smrg "EV4.5 (21064)") 237659607e0Smrg UNAME_MACHINE="alpha" ;; 238659607e0Smrg "LCA4 (21066/21068)") 239659607e0Smrg UNAME_MACHINE="alpha" ;; 240659607e0Smrg "EV5 (21164)") 241659607e0Smrg UNAME_MACHINE="alphaev5" ;; 242659607e0Smrg "EV5.6 (21164A)") 243659607e0Smrg UNAME_MACHINE="alphaev56" ;; 244659607e0Smrg "EV5.6 (21164PC)") 245659607e0Smrg UNAME_MACHINE="alphapca56" ;; 246659607e0Smrg "EV5.7 (21164PC)") 247659607e0Smrg UNAME_MACHINE="alphapca57" ;; 248659607e0Smrg "EV6 (21264)") 249659607e0Smrg UNAME_MACHINE="alphaev6" ;; 250659607e0Smrg "EV6.7 (21264A)") 251659607e0Smrg UNAME_MACHINE="alphaev67" ;; 252659607e0Smrg "EV6.8CB (21264C)") 253659607e0Smrg UNAME_MACHINE="alphaev68" ;; 254659607e0Smrg "EV6.8AL (21264B)") 255659607e0Smrg UNAME_MACHINE="alphaev68" ;; 256659607e0Smrg "EV6.8CX (21264D)") 257659607e0Smrg UNAME_MACHINE="alphaev68" ;; 258659607e0Smrg "EV6.9A (21264/EV69A)") 259659607e0Smrg UNAME_MACHINE="alphaev69" ;; 260659607e0Smrg "EV7 (21364)") 261659607e0Smrg UNAME_MACHINE="alphaev7" ;; 262659607e0Smrg "EV7.9 (21364A)") 263659607e0Smrg UNAME_MACHINE="alphaev79" ;; 264659607e0Smrg esac 265659607e0Smrg # A Pn.n version is a patched version. 266659607e0Smrg # A Vn.n version is a released version. 267659607e0Smrg # A Tn.n version is a released field test version. 268659607e0Smrg # A Xn.n version is an unreleased experimental baselevel. 269659607e0Smrg # 1.2 uses "1.2" for uname -r. 270659607e0Smrg echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 271a73597f9Smrg # Reset EXIT trap before exiting to avoid spurious non-zero exit code. 272a73597f9Smrg exitcode=$? 273a73597f9Smrg trap '' 0 274a73597f9Smrg exit $exitcode ;; 275659607e0Smrg Alpha\ *:Windows_NT*:*) 276659607e0Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 277659607e0Smrg # Should we change UNAME_MACHINE based on the output of uname instead 278659607e0Smrg # of the specific Alpha model? 279659607e0Smrg echo alpha-pc-interix 280659607e0Smrg exit ;; 281659607e0Smrg 21064:Windows_NT:50:3) 282659607e0Smrg echo alpha-dec-winnt3.5 283659607e0Smrg exit ;; 284659607e0Smrg Amiga*:UNIX_System_V:4.0:*) 285659607e0Smrg echo m68k-unknown-sysv4 286659607e0Smrg exit ;; 287659607e0Smrg *:[Aa]miga[Oo][Ss]:*:*) 288659607e0Smrg echo ${UNAME_MACHINE}-unknown-amigaos 289659607e0Smrg exit ;; 290659607e0Smrg *:[Mm]orph[Oo][Ss]:*:*) 291659607e0Smrg echo ${UNAME_MACHINE}-unknown-morphos 292659607e0Smrg exit ;; 293659607e0Smrg *:OS/390:*:*) 294659607e0Smrg echo i370-ibm-openedition 295659607e0Smrg exit ;; 296659607e0Smrg *:z/VM:*:*) 297659607e0Smrg echo s390-ibm-zvmoe 298659607e0Smrg exit ;; 299659607e0Smrg *:OS400:*:*) 300a73597f9Smrg echo powerpc-ibm-os400 301659607e0Smrg exit ;; 302659607e0Smrg arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) 303659607e0Smrg echo arm-acorn-riscix${UNAME_RELEASE} 304659607e0Smrg exit ;; 305659607e0Smrg arm:riscos:*:*|arm:RISCOS:*:*) 306659607e0Smrg echo arm-unknown-riscos 307659607e0Smrg exit ;; 308659607e0Smrg SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) 309659607e0Smrg echo hppa1.1-hitachi-hiuxmpp 310659607e0Smrg exit ;; 311659607e0Smrg Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) 312659607e0Smrg # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. 313659607e0Smrg if test "`(/bin/universe) 2>/dev/null`" = att ; then 314659607e0Smrg echo pyramid-pyramid-sysv3 315659607e0Smrg else 316659607e0Smrg echo pyramid-pyramid-bsd 317659607e0Smrg fi 318659607e0Smrg exit ;; 319659607e0Smrg NILE*:*:*:dcosx) 320659607e0Smrg echo pyramid-pyramid-svr4 321659607e0Smrg exit ;; 322659607e0Smrg DRS?6000:unix:4.0:6*) 323659607e0Smrg echo sparc-icl-nx6 324659607e0Smrg exit ;; 325659607e0Smrg DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 326659607e0Smrg case `/usr/bin/uname -p` in 327659607e0Smrg sparc) echo sparc-icl-nx7; exit ;; 328659607e0Smrg esac ;; 329b73be646Smrg s390x:SunOS:*:*) 330b73be646Smrg echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 331b73be646Smrg exit ;; 332659607e0Smrg sun4H:SunOS:5.*:*) 333659607e0Smrg echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 334659607e0Smrg exit ;; 335659607e0Smrg sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 336659607e0Smrg echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 337659607e0Smrg exit ;; 338b73be646Smrg i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) 339b73be646Smrg echo i386-pc-auroraux${UNAME_RELEASE} 340b73be646Smrg exit ;; 341fc27e79cSmrg i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 342b73be646Smrg eval $set_cc_for_build 343b73be646Smrg SUN_ARCH="i386" 344b73be646Smrg # If there is a compiler, see if it is configured for 64-bit objects. 345b73be646Smrg # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. 346b73be646Smrg # This test works for both compilers. 347b73be646Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 348b73be646Smrg if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ 349b73be646Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 350b73be646Smrg grep IS_64BIT_ARCH >/dev/null 351b73be646Smrg then 352b73be646Smrg SUN_ARCH="x86_64" 353b73be646Smrg fi 354b73be646Smrg fi 355b73be646Smrg echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 356659607e0Smrg exit ;; 357659607e0Smrg sun4*:SunOS:6*:*) 358659607e0Smrg # According to config.sub, this is the proper way to canonicalize 359659607e0Smrg # SunOS6. Hard to guess exactly what SunOS6 will be like, but 360659607e0Smrg # it's likely to be more like Solaris than SunOS4. 361659607e0Smrg echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 362659607e0Smrg exit ;; 363659607e0Smrg sun4*:SunOS:*:*) 364659607e0Smrg case "`/usr/bin/arch -k`" in 365659607e0Smrg Series*|S4*) 366659607e0Smrg UNAME_RELEASE=`uname -v` 367659607e0Smrg ;; 368659607e0Smrg esac 369659607e0Smrg # Japanese Language versions have a version number like `4.1.3-JL'. 370659607e0Smrg echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'` 371659607e0Smrg exit ;; 372659607e0Smrg sun3*:SunOS:*:*) 373659607e0Smrg echo m68k-sun-sunos${UNAME_RELEASE} 374659607e0Smrg exit ;; 375659607e0Smrg sun*:*:4.2BSD:*) 376659607e0Smrg UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` 377659607e0Smrg test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3 378659607e0Smrg case "`/bin/arch`" in 379659607e0Smrg sun3) 380659607e0Smrg echo m68k-sun-sunos${UNAME_RELEASE} 381659607e0Smrg ;; 382659607e0Smrg sun4) 383659607e0Smrg echo sparc-sun-sunos${UNAME_RELEASE} 384659607e0Smrg ;; 385659607e0Smrg esac 386659607e0Smrg exit ;; 387659607e0Smrg aushp:SunOS:*:*) 388659607e0Smrg echo sparc-auspex-sunos${UNAME_RELEASE} 389659607e0Smrg exit ;; 390659607e0Smrg # The situation for MiNT is a little confusing. The machine name 391659607e0Smrg # can be virtually everything (everything which is not 392659607e0Smrg # "atarist" or "atariste" at least should have a processor 393659607e0Smrg # > m68000). The system name ranges from "MiNT" over "FreeMiNT" 394659607e0Smrg # to the lowercase version "mint" (or "freemint"). Finally 395659607e0Smrg # the system name "TOS" denotes a system which is actually not 396659607e0Smrg # MiNT. But MiNT is downward compatible to TOS, so this should 397659607e0Smrg # be no problem. 398659607e0Smrg atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) 399a73597f9Smrg echo m68k-atari-mint${UNAME_RELEASE} 400659607e0Smrg exit ;; 401659607e0Smrg atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) 402659607e0Smrg echo m68k-atari-mint${UNAME_RELEASE} 403a73597f9Smrg exit ;; 404659607e0Smrg *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) 405a73597f9Smrg echo m68k-atari-mint${UNAME_RELEASE} 406659607e0Smrg exit ;; 407659607e0Smrg milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) 408a73597f9Smrg echo m68k-milan-mint${UNAME_RELEASE} 409a73597f9Smrg exit ;; 410659607e0Smrg hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) 411a73597f9Smrg echo m68k-hades-mint${UNAME_RELEASE} 412a73597f9Smrg exit ;; 413659607e0Smrg *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) 414a73597f9Smrg echo m68k-unknown-mint${UNAME_RELEASE} 415a73597f9Smrg exit ;; 416659607e0Smrg m68k:machten:*:*) 417659607e0Smrg echo m68k-apple-machten${UNAME_RELEASE} 418659607e0Smrg exit ;; 419659607e0Smrg powerpc:machten:*:*) 420659607e0Smrg echo powerpc-apple-machten${UNAME_RELEASE} 421659607e0Smrg exit ;; 422659607e0Smrg RISC*:Mach:*:*) 423659607e0Smrg echo mips-dec-mach_bsd4.3 424659607e0Smrg exit ;; 425659607e0Smrg RISC*:ULTRIX:*:*) 426659607e0Smrg echo mips-dec-ultrix${UNAME_RELEASE} 427659607e0Smrg exit ;; 428659607e0Smrg VAX*:ULTRIX*:*:*) 429659607e0Smrg echo vax-dec-ultrix${UNAME_RELEASE} 430659607e0Smrg exit ;; 431659607e0Smrg 2020:CLIX:*:* | 2430:CLIX:*:*) 432659607e0Smrg echo clipper-intergraph-clix${UNAME_RELEASE} 433659607e0Smrg exit ;; 434659607e0Smrg mips:*:*:UMIPS | mips:*:*:RISCos) 435659607e0Smrg eval $set_cc_for_build 436659607e0Smrg sed 's/^ //' << EOF >$dummy.c 437659607e0Smrg#ifdef __cplusplus 438659607e0Smrg#include <stdio.h> /* for printf() prototype */ 439659607e0Smrg int main (int argc, char *argv[]) { 440659607e0Smrg#else 441659607e0Smrg int main (argc, argv) int argc; char *argv[]; { 442659607e0Smrg#endif 443659607e0Smrg #if defined (host_mips) && defined (MIPSEB) 444659607e0Smrg #if defined (SYSTYPE_SYSV) 445659607e0Smrg printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0); 446659607e0Smrg #endif 447659607e0Smrg #if defined (SYSTYPE_SVR4) 448659607e0Smrg printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0); 449659607e0Smrg #endif 450659607e0Smrg #if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD) 451659607e0Smrg printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0); 452659607e0Smrg #endif 453659607e0Smrg #endif 454659607e0Smrg exit (-1); 455659607e0Smrg } 456659607e0SmrgEOF 457659607e0Smrg $CC_FOR_BUILD -o $dummy $dummy.c && 458659607e0Smrg dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` && 459659607e0Smrg SYSTEM_NAME=`$dummy $dummyarg` && 460659607e0Smrg { echo "$SYSTEM_NAME"; exit; } 461659607e0Smrg echo mips-mips-riscos${UNAME_RELEASE} 462659607e0Smrg exit ;; 463659607e0Smrg Motorola:PowerMAX_OS:*:*) 464659607e0Smrg echo powerpc-motorola-powermax 465659607e0Smrg exit ;; 466659607e0Smrg Motorola:*:4.3:PL8-*) 467659607e0Smrg echo powerpc-harris-powermax 468659607e0Smrg exit ;; 469659607e0Smrg Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*) 470659607e0Smrg echo powerpc-harris-powermax 471659607e0Smrg exit ;; 472659607e0Smrg Night_Hawk:Power_UNIX:*:*) 473659607e0Smrg echo powerpc-harris-powerunix 474659607e0Smrg exit ;; 475659607e0Smrg m88k:CX/UX:7*:*) 476659607e0Smrg echo m88k-harris-cxux7 477659607e0Smrg exit ;; 478659607e0Smrg m88k:*:4*:R4*) 479659607e0Smrg echo m88k-motorola-sysv4 480659607e0Smrg exit ;; 481659607e0Smrg m88k:*:3*:R3*) 482659607e0Smrg echo m88k-motorola-sysv3 483659607e0Smrg exit ;; 484659607e0Smrg AViiON:dgux:*:*) 485a73597f9Smrg # DG/UX returns AViiON for all architectures 486a73597f9Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 487659607e0Smrg if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ] 488659607e0Smrg then 489659607e0Smrg if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \ 490659607e0Smrg [ ${TARGET_BINARY_INTERFACE}x = x ] 491659607e0Smrg then 492659607e0Smrg echo m88k-dg-dgux${UNAME_RELEASE} 493659607e0Smrg else 494659607e0Smrg echo m88k-dg-dguxbcs${UNAME_RELEASE} 495659607e0Smrg fi 496659607e0Smrg else 497659607e0Smrg echo i586-dg-dgux${UNAME_RELEASE} 498659607e0Smrg fi 499a73597f9Smrg exit ;; 500659607e0Smrg M88*:DolphinOS:*:*) # DolphinOS (SVR3) 501659607e0Smrg echo m88k-dolphin-sysv3 502659607e0Smrg exit ;; 503659607e0Smrg M88*:*:R3*:*) 504659607e0Smrg # Delta 88k system running SVR3 505659607e0Smrg echo m88k-motorola-sysv3 506659607e0Smrg exit ;; 507659607e0Smrg XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3) 508659607e0Smrg echo m88k-tektronix-sysv3 509659607e0Smrg exit ;; 510659607e0Smrg Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD) 511659607e0Smrg echo m68k-tektronix-bsd 512659607e0Smrg exit ;; 513659607e0Smrg *:IRIX*:*:*) 514659607e0Smrg echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'` 515659607e0Smrg exit ;; 516659607e0Smrg ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. 517659607e0Smrg echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id 518659607e0Smrg exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' 519659607e0Smrg i*86:AIX:*:*) 520659607e0Smrg echo i386-ibm-aix 521659607e0Smrg exit ;; 522659607e0Smrg ia64:AIX:*:*) 523659607e0Smrg if [ -x /usr/bin/oslevel ] ; then 524659607e0Smrg IBM_REV=`/usr/bin/oslevel` 525659607e0Smrg else 526659607e0Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 527659607e0Smrg fi 528659607e0Smrg echo ${UNAME_MACHINE}-ibm-aix${IBM_REV} 529659607e0Smrg exit ;; 530659607e0Smrg *:AIX:2:3) 531659607e0Smrg if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then 532659607e0Smrg eval $set_cc_for_build 533659607e0Smrg sed 's/^ //' << EOF >$dummy.c 534659607e0Smrg #include <sys/systemcfg.h> 535659607e0Smrg 536659607e0Smrg main() 537659607e0Smrg { 538659607e0Smrg if (!__power_pc()) 539659607e0Smrg exit(1); 540659607e0Smrg puts("powerpc-ibm-aix3.2.5"); 541659607e0Smrg exit(0); 542659607e0Smrg } 543659607e0SmrgEOF 544659607e0Smrg if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` 545659607e0Smrg then 546659607e0Smrg echo "$SYSTEM_NAME" 547659607e0Smrg else 548659607e0Smrg echo rs6000-ibm-aix3.2.5 549659607e0Smrg fi 550659607e0Smrg elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then 551659607e0Smrg echo rs6000-ibm-aix3.2.4 552659607e0Smrg else 553659607e0Smrg echo rs6000-ibm-aix3.2 554659607e0Smrg fi 555659607e0Smrg exit ;; 556bd3a1963Smrg *:AIX:*:[4567]) 557659607e0Smrg IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 558659607e0Smrg if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 559659607e0Smrg IBM_ARCH=rs6000 560659607e0Smrg else 561659607e0Smrg IBM_ARCH=powerpc 562659607e0Smrg fi 563659607e0Smrg if [ -x /usr/bin/oslevel ] ; then 564659607e0Smrg IBM_REV=`/usr/bin/oslevel` 565659607e0Smrg else 566659607e0Smrg IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE} 567659607e0Smrg fi 568659607e0Smrg echo ${IBM_ARCH}-ibm-aix${IBM_REV} 569659607e0Smrg exit ;; 570659607e0Smrg *:AIX:*:*) 571659607e0Smrg echo rs6000-ibm-aix 572659607e0Smrg exit ;; 573659607e0Smrg ibmrt:4.4BSD:*|romp-ibm:BSD:*) 574659607e0Smrg echo romp-ibm-bsd4.4 575659607e0Smrg exit ;; 576659607e0Smrg ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and 577659607e0Smrg echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to 578659607e0Smrg exit ;; # report: romp-ibm BSD 4.3 579659607e0Smrg *:BOSX:*:*) 580659607e0Smrg echo rs6000-bull-bosx 581659607e0Smrg exit ;; 582659607e0Smrg DPX/2?00:B.O.S.:*:*) 583659607e0Smrg echo m68k-bull-sysv3 584659607e0Smrg exit ;; 585659607e0Smrg 9000/[34]??:4.3bsd:1.*:*) 586659607e0Smrg echo m68k-hp-bsd 587659607e0Smrg exit ;; 588659607e0Smrg hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*) 589659607e0Smrg echo m68k-hp-bsd4.4 590659607e0Smrg exit ;; 591659607e0Smrg 9000/[34678]??:HP-UX:*:*) 592659607e0Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 593659607e0Smrg case "${UNAME_MACHINE}" in 594659607e0Smrg 9000/31? ) HP_ARCH=m68000 ;; 595659607e0Smrg 9000/[34]?? ) HP_ARCH=m68k ;; 596659607e0Smrg 9000/[678][0-9][0-9]) 597659607e0Smrg if [ -x /usr/bin/getconf ]; then 598659607e0Smrg sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null` 599a73597f9Smrg sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null` 600a73597f9Smrg case "${sc_cpu_version}" in 601a73597f9Smrg 523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0 602a73597f9Smrg 528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1 603a73597f9Smrg 532) # CPU_PA_RISC2_0 604a73597f9Smrg case "${sc_kernel_bits}" in 605a73597f9Smrg 32) HP_ARCH="hppa2.0n" ;; 606a73597f9Smrg 64) HP_ARCH="hppa2.0w" ;; 607659607e0Smrg '') HP_ARCH="hppa2.0" ;; # HP-UX 10.20 608a73597f9Smrg esac ;; 609a73597f9Smrg esac 610659607e0Smrg fi 611659607e0Smrg if [ "${HP_ARCH}" = "" ]; then 612659607e0Smrg eval $set_cc_for_build 613a73597f9Smrg sed 's/^ //' << EOF >$dummy.c 614659607e0Smrg 615a73597f9Smrg #define _HPUX_SOURCE 616a73597f9Smrg #include <stdlib.h> 617a73597f9Smrg #include <unistd.h> 618659607e0Smrg 619a73597f9Smrg int main () 620a73597f9Smrg { 621a73597f9Smrg #if defined(_SC_KERNEL_BITS) 622a73597f9Smrg long bits = sysconf(_SC_KERNEL_BITS); 623a73597f9Smrg #endif 624a73597f9Smrg long cpu = sysconf (_SC_CPU_VERSION); 625659607e0Smrg 626a73597f9Smrg switch (cpu) 627a73597f9Smrg { 628a73597f9Smrg case CPU_PA_RISC1_0: puts ("hppa1.0"); break; 629a73597f9Smrg case CPU_PA_RISC1_1: puts ("hppa1.1"); break; 630a73597f9Smrg case CPU_PA_RISC2_0: 631a73597f9Smrg #if defined(_SC_KERNEL_BITS) 632a73597f9Smrg switch (bits) 633a73597f9Smrg { 634a73597f9Smrg case 64: puts ("hppa2.0w"); break; 635a73597f9Smrg case 32: puts ("hppa2.0n"); break; 636a73597f9Smrg default: puts ("hppa2.0"); break; 637a73597f9Smrg } break; 638a73597f9Smrg #else /* !defined(_SC_KERNEL_BITS) */ 639a73597f9Smrg puts ("hppa2.0"); break; 640a73597f9Smrg #endif 641a73597f9Smrg default: puts ("hppa1.0"); break; 642a73597f9Smrg } 643a73597f9Smrg exit (0); 644a73597f9Smrg } 645659607e0SmrgEOF 646659607e0Smrg (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy` 647659607e0Smrg test -z "$HP_ARCH" && HP_ARCH=hppa 648659607e0Smrg fi ;; 649659607e0Smrg esac 650659607e0Smrg if [ ${HP_ARCH} = "hppa2.0w" ] 651659607e0Smrg then 652659607e0Smrg eval $set_cc_for_build 653659607e0Smrg 654659607e0Smrg # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 655659607e0Smrg # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 656659607e0Smrg # generating 64-bit code. GNU and HP use different nomenclature: 657659607e0Smrg # 658659607e0Smrg # $ CC_FOR_BUILD=cc ./config.guess 659659607e0Smrg # => hppa2.0w-hp-hpux11.23 660659607e0Smrg # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 661659607e0Smrg # => hppa64-hp-hpux11.23 662659607e0Smrg 663659607e0Smrg if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 664b73be646Smrg grep -q __LP64__ 665659607e0Smrg then 666659607e0Smrg HP_ARCH="hppa2.0w" 667659607e0Smrg else 668659607e0Smrg HP_ARCH="hppa64" 669659607e0Smrg fi 670659607e0Smrg fi 671659607e0Smrg echo ${HP_ARCH}-hp-hpux${HPUX_REV} 672659607e0Smrg exit ;; 673659607e0Smrg ia64:HP-UX:*:*) 674659607e0Smrg HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'` 675659607e0Smrg echo ia64-hp-hpux${HPUX_REV} 676659607e0Smrg exit ;; 677659607e0Smrg 3050*:HI-UX:*:*) 678659607e0Smrg eval $set_cc_for_build 679659607e0Smrg sed 's/^ //' << EOF >$dummy.c 680659607e0Smrg #include <unistd.h> 681659607e0Smrg int 682659607e0Smrg main () 683659607e0Smrg { 684659607e0Smrg long cpu = sysconf (_SC_CPU_VERSION); 685659607e0Smrg /* The order matters, because CPU_IS_HP_MC68K erroneously returns 686659607e0Smrg true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct 687659607e0Smrg results, however. */ 688659607e0Smrg if (CPU_IS_PA_RISC (cpu)) 689659607e0Smrg { 690659607e0Smrg switch (cpu) 691659607e0Smrg { 692659607e0Smrg case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break; 693659607e0Smrg case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break; 694659607e0Smrg case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break; 695659607e0Smrg default: puts ("hppa-hitachi-hiuxwe2"); break; 696659607e0Smrg } 697659607e0Smrg } 698659607e0Smrg else if (CPU_IS_HP_MC68K (cpu)) 699659607e0Smrg puts ("m68k-hitachi-hiuxwe2"); 700659607e0Smrg else puts ("unknown-hitachi-hiuxwe2"); 701659607e0Smrg exit (0); 702659607e0Smrg } 703659607e0SmrgEOF 704659607e0Smrg $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` && 705659607e0Smrg { echo "$SYSTEM_NAME"; exit; } 706659607e0Smrg echo unknown-hitachi-hiuxwe2 707659607e0Smrg exit ;; 708659607e0Smrg 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* ) 709659607e0Smrg echo hppa1.1-hp-bsd 710659607e0Smrg exit ;; 711659607e0Smrg 9000/8??:4.3bsd:*:*) 712659607e0Smrg echo hppa1.0-hp-bsd 713659607e0Smrg exit ;; 714659607e0Smrg *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*) 715659607e0Smrg echo hppa1.0-hp-mpeix 716659607e0Smrg exit ;; 717659607e0Smrg hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* ) 718659607e0Smrg echo hppa1.1-hp-osf 719659607e0Smrg exit ;; 720659607e0Smrg hp8??:OSF1:*:*) 721659607e0Smrg echo hppa1.0-hp-osf 722659607e0Smrg exit ;; 723659607e0Smrg i*86:OSF1:*:*) 724659607e0Smrg if [ -x /usr/sbin/sysversion ] ; then 725659607e0Smrg echo ${UNAME_MACHINE}-unknown-osf1mk 726659607e0Smrg else 727659607e0Smrg echo ${UNAME_MACHINE}-unknown-osf1 728659607e0Smrg fi 729659607e0Smrg exit ;; 730659607e0Smrg parisc*:Lites*:*:*) 731659607e0Smrg echo hppa1.1-hp-lites 732659607e0Smrg exit ;; 733659607e0Smrg C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*) 734659607e0Smrg echo c1-convex-bsd 735a73597f9Smrg exit ;; 736659607e0Smrg C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*) 737659607e0Smrg if getsysinfo -f scalar_acc 738659607e0Smrg then echo c32-convex-bsd 739659607e0Smrg else echo c2-convex-bsd 740659607e0Smrg fi 741a73597f9Smrg exit ;; 742659607e0Smrg C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*) 743659607e0Smrg echo c34-convex-bsd 744a73597f9Smrg exit ;; 745659607e0Smrg C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*) 746659607e0Smrg echo c38-convex-bsd 747a73597f9Smrg exit ;; 748659607e0Smrg C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*) 749659607e0Smrg echo c4-convex-bsd 750a73597f9Smrg exit ;; 751659607e0Smrg CRAY*Y-MP:*:*:*) 752659607e0Smrg echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 753659607e0Smrg exit ;; 754659607e0Smrg CRAY*[A-Z]90:*:*:*) 755659607e0Smrg echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \ 756659607e0Smrg | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \ 757659607e0Smrg -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \ 758659607e0Smrg -e 's/\.[^.]*$/.X/' 759659607e0Smrg exit ;; 760659607e0Smrg CRAY*TS:*:*:*) 761659607e0Smrg echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 762659607e0Smrg exit ;; 763659607e0Smrg CRAY*T3E:*:*:*) 764659607e0Smrg echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 765659607e0Smrg exit ;; 766659607e0Smrg CRAY*SV1:*:*:*) 767659607e0Smrg echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 768659607e0Smrg exit ;; 769659607e0Smrg *:UNICOS/mp:*:*) 770659607e0Smrg echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/' 771659607e0Smrg exit ;; 772659607e0Smrg F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*) 773659607e0Smrg FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 774a73597f9Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 775a73597f9Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'` 776a73597f9Smrg echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 777a73597f9Smrg exit ;; 778659607e0Smrg 5000:UNIX_System_V:4.*:*) 779a73597f9Smrg FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'` 780a73597f9Smrg FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'` 781a73597f9Smrg echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" 782659607e0Smrg exit ;; 783659607e0Smrg i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) 784659607e0Smrg echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE} 785659607e0Smrg exit ;; 786659607e0Smrg sparc*:BSD/OS:*:*) 787659607e0Smrg echo sparc-unknown-bsdi${UNAME_RELEASE} 788659607e0Smrg exit ;; 789659607e0Smrg *:BSD/OS:*:*) 790659607e0Smrg echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 791659607e0Smrg exit ;; 792659607e0Smrg *:FreeBSD:*:*) 793a73597f9Smrg UNAME_PROCESSOR=`/usr/bin/uname -p` 794a73597f9Smrg case ${UNAME_PROCESSOR} in 795fc27e79cSmrg amd64) 796fc27e79cSmrg echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 797fc27e79cSmrg *) 798a73597f9Smrg echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; 799fc27e79cSmrg esac 800659607e0Smrg exit ;; 801659607e0Smrg i*:CYGWIN*:*) 802659607e0Smrg echo ${UNAME_MACHINE}-pc-cygwin 803659607e0Smrg exit ;; 804fc27e79cSmrg *:MINGW*:*) 805659607e0Smrg echo ${UNAME_MACHINE}-pc-mingw32 806659607e0Smrg exit ;; 807a73597f9Smrg i*:MSYS*:*) 808a73597f9Smrg echo ${UNAME_MACHINE}-pc-msys 809a73597f9Smrg exit ;; 810659607e0Smrg i*:windows32*:*) 811a73597f9Smrg # uname -m includes "-pc" on this system. 812a73597f9Smrg echo ${UNAME_MACHINE}-mingw32 813659607e0Smrg exit ;; 814659607e0Smrg i*:PW*:*) 815659607e0Smrg echo ${UNAME_MACHINE}-pc-pw32 816659607e0Smrg exit ;; 817b73be646Smrg *:Interix*:*) 818a73597f9Smrg case ${UNAME_MACHINE} in 819fc27e79cSmrg x86) 820fc27e79cSmrg echo i586-pc-interix${UNAME_RELEASE} 821fc27e79cSmrg exit ;; 822b73be646Smrg authenticamd | genuineintel | EM64T) 823fc27e79cSmrg echo x86_64-unknown-interix${UNAME_RELEASE} 824fc27e79cSmrg exit ;; 825fc27e79cSmrg IA64) 826fc27e79cSmrg echo ia64-unknown-interix${UNAME_RELEASE} 827fc27e79cSmrg exit ;; 828fc27e79cSmrg esac ;; 829659607e0Smrg [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 830659607e0Smrg echo i${UNAME_MACHINE}-pc-mks 831659607e0Smrg exit ;; 832b73be646Smrg 8664:Windows_NT:*) 833b73be646Smrg echo x86_64-pc-mks 834b73be646Smrg exit ;; 835659607e0Smrg i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 836659607e0Smrg # How do we know it's Interix rather than the generic POSIX subsystem? 837659607e0Smrg # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 838659607e0Smrg # UNAME_MACHINE based on the output of uname instead of i386? 839659607e0Smrg echo i586-pc-interix 840659607e0Smrg exit ;; 841659607e0Smrg i*:UWIN*:*) 842659607e0Smrg echo ${UNAME_MACHINE}-pc-uwin 843659607e0Smrg exit ;; 844659607e0Smrg amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) 845659607e0Smrg echo x86_64-unknown-cygwin 846659607e0Smrg exit ;; 847659607e0Smrg p*:CYGWIN*:*) 848659607e0Smrg echo powerpcle-unknown-cygwin 849659607e0Smrg exit ;; 850659607e0Smrg prep*:SunOS:5.*:*) 851659607e0Smrg echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 852659607e0Smrg exit ;; 853659607e0Smrg *:GNU:*:*) 854659607e0Smrg # the GNU system 855659607e0Smrg echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` 856659607e0Smrg exit ;; 857659607e0Smrg *:GNU/*:*:*) 858659607e0Smrg # other systems with GNU libc and userland 859659607e0Smrg echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 860659607e0Smrg exit ;; 861659607e0Smrg i*86:Minix:*:*) 862659607e0Smrg echo ${UNAME_MACHINE}-pc-minix 863659607e0Smrg exit ;; 864a73597f9Smrg aarch64:Linux:*:*) 865a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 866a73597f9Smrg exit ;; 867a73597f9Smrg aarch64_be:Linux:*:*) 868a73597f9Smrg UNAME_MACHINE=aarch64_be 869a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 870a73597f9Smrg exit ;; 871b73be646Smrg alpha:Linux:*:*) 872b73be646Smrg case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 873b73be646Smrg EV5) UNAME_MACHINE=alphaev5 ;; 874b73be646Smrg EV56) UNAME_MACHINE=alphaev56 ;; 875b73be646Smrg PCA56) UNAME_MACHINE=alphapca56 ;; 876b73be646Smrg PCA57) UNAME_MACHINE=alphapca56 ;; 877b73be646Smrg EV6) UNAME_MACHINE=alphaev6 ;; 878b73be646Smrg EV67) UNAME_MACHINE=alphaev67 ;; 879b73be646Smrg EV68*) UNAME_MACHINE=alphaev68 ;; 880a73597f9Smrg esac 881b73be646Smrg objdump --private-headers /bin/sh | grep -q ld.so.1 882b73be646Smrg if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 883b73be646Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 884b73be646Smrg exit ;; 885659607e0Smrg arm*:Linux:*:*) 886fc27e79cSmrg eval $set_cc_for_build 887fc27e79cSmrg if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ 888fc27e79cSmrg | grep -q __ARM_EABI__ 889fc27e79cSmrg then 890fc27e79cSmrg echo ${UNAME_MACHINE}-unknown-linux-gnu 891fc27e79cSmrg else 892a73597f9Smrg if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ 893a73597f9Smrg | grep -q __ARM_PCS_VFP 894a73597f9Smrg then 895a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabi 896a73597f9Smrg else 897a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnueabihf 898a73597f9Smrg fi 899fc27e79cSmrg fi 900fc27e79cSmrg exit ;; 901fc27e79cSmrg avr32*:Linux:*:*) 902659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 903659607e0Smrg exit ;; 904659607e0Smrg cris:Linux:*:*) 905a73597f9Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 906659607e0Smrg exit ;; 907659607e0Smrg crisv32:Linux:*:*) 908a73597f9Smrg echo ${UNAME_MACHINE}-axis-linux-gnu 909659607e0Smrg exit ;; 910659607e0Smrg frv:Linux:*:*) 911a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 912a73597f9Smrg exit ;; 913a73597f9Smrg hexagon:Linux:*:*) 914a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 915659607e0Smrg exit ;; 916b73be646Smrg i*86:Linux:*:*) 917b73be646Smrg LIBC=gnu 918b73be646Smrg eval $set_cc_for_build 919b73be646Smrg sed 's/^ //' << EOF >$dummy.c 920b73be646Smrg #ifdef __dietlibc__ 921b73be646Smrg LIBC=dietlibc 922b73be646Smrg #endif 923b73be646SmrgEOF 924b73be646Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` 925b73be646Smrg echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 926b73be646Smrg exit ;; 927659607e0Smrg ia64:Linux:*:*) 928659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 929659607e0Smrg exit ;; 930659607e0Smrg m32r*:Linux:*:*) 931659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 932659607e0Smrg exit ;; 933659607e0Smrg m68*:Linux:*:*) 934659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 935659607e0Smrg exit ;; 936b73be646Smrg mips:Linux:*:* | mips64:Linux:*:*) 937659607e0Smrg eval $set_cc_for_build 938659607e0Smrg sed 's/^ //' << EOF >$dummy.c 939659607e0Smrg #undef CPU 940b73be646Smrg #undef ${UNAME_MACHINE} 941b73be646Smrg #undef ${UNAME_MACHINE}el 942659607e0Smrg #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 943b73be646Smrg CPU=${UNAME_MACHINE}el 944659607e0Smrg #else 945659607e0Smrg #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 946b73be646Smrg CPU=${UNAME_MACHINE} 947659607e0Smrg #else 948659607e0Smrg CPU= 949659607e0Smrg #endif 950659607e0Smrg #endif 951659607e0SmrgEOF 952b73be646Smrg eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` 953659607e0Smrg test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 954659607e0Smrg ;; 955659607e0Smrg or32:Linux:*:*) 956a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 957659607e0Smrg exit ;; 958b73be646Smrg padre:Linux:*:*) 959b73be646Smrg echo sparc-unknown-linux-gnu 960659607e0Smrg exit ;; 961b73be646Smrg parisc64:Linux:*:* | hppa64:Linux:*:*) 962b73be646Smrg echo hppa64-unknown-linux-gnu 963659607e0Smrg exit ;; 964659607e0Smrg parisc:Linux:*:* | hppa:Linux:*:*) 965659607e0Smrg # Look for CPU level 966659607e0Smrg case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 967659607e0Smrg PA7*) echo hppa1.1-unknown-linux-gnu ;; 968659607e0Smrg PA8*) echo hppa2.0-unknown-linux-gnu ;; 969659607e0Smrg *) echo hppa-unknown-linux-gnu ;; 970659607e0Smrg esac 971659607e0Smrg exit ;; 972b73be646Smrg ppc64:Linux:*:*) 973b73be646Smrg echo powerpc64-unknown-linux-gnu 974b73be646Smrg exit ;; 975b73be646Smrg ppc:Linux:*:*) 976b73be646Smrg echo powerpc-unknown-linux-gnu 977659607e0Smrg exit ;; 978659607e0Smrg s390:Linux:*:* | s390x:Linux:*:*) 979659607e0Smrg echo ${UNAME_MACHINE}-ibm-linux 980659607e0Smrg exit ;; 981659607e0Smrg sh64*:Linux:*:*) 982a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 983659607e0Smrg exit ;; 984659607e0Smrg sh*:Linux:*:*) 985659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 986659607e0Smrg exit ;; 987659607e0Smrg sparc:Linux:*:* | sparc64:Linux:*:*) 988659607e0Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 989659607e0Smrg exit ;; 990bd3a1963Smrg tile*:Linux:*:*) 991a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 992bd3a1963Smrg exit ;; 993659607e0Smrg vax:Linux:*:*) 994659607e0Smrg echo ${UNAME_MACHINE}-dec-linux-gnu 995659607e0Smrg exit ;; 996659607e0Smrg x86_64:Linux:*:*) 997a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 998659607e0Smrg exit ;; 999fc27e79cSmrg xtensa*:Linux:*:*) 1000a73597f9Smrg echo ${UNAME_MACHINE}-unknown-linux-gnu 1001fc27e79cSmrg exit ;; 1002659607e0Smrg i*86:DYNIX/ptx:4*:*) 1003659607e0Smrg # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 1004659607e0Smrg # earlier versions are messed up and put the nodename in both 1005659607e0Smrg # sysname and nodename. 1006659607e0Smrg echo i386-sequent-sysv4 1007659607e0Smrg exit ;; 1008659607e0Smrg i*86:UNIX_SV:4.2MP:2.*) 1009a73597f9Smrg # Unixware is an offshoot of SVR4, but it has its own version 1010a73597f9Smrg # number series starting with 2... 1011a73597f9Smrg # I am not positive that other SVR4 systems won't match this, 1012659607e0Smrg # I just have to hope. -- rms. 1013a73597f9Smrg # Use sysv4.2uw... so that sysv4* matches it. 1014659607e0Smrg echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION} 1015659607e0Smrg exit ;; 1016659607e0Smrg i*86:OS/2:*:*) 1017659607e0Smrg # If we were able to find `uname', then EMX Unix compatibility 1018659607e0Smrg # is probably installed. 1019659607e0Smrg echo ${UNAME_MACHINE}-pc-os2-emx 1020659607e0Smrg exit ;; 1021659607e0Smrg i*86:XTS-300:*:STOP) 1022659607e0Smrg echo ${UNAME_MACHINE}-unknown-stop 1023659607e0Smrg exit ;; 1024659607e0Smrg i*86:atheos:*:*) 1025659607e0Smrg echo ${UNAME_MACHINE}-unknown-atheos 1026659607e0Smrg exit ;; 1027659607e0Smrg i*86:syllable:*:*) 1028659607e0Smrg echo ${UNAME_MACHINE}-pc-syllable 1029659607e0Smrg exit ;; 1030b73be646Smrg i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) 1031659607e0Smrg echo i386-unknown-lynxos${UNAME_RELEASE} 1032659607e0Smrg exit ;; 1033659607e0Smrg i*86:*DOS:*:*) 1034659607e0Smrg echo ${UNAME_MACHINE}-pc-msdosdjgpp 1035659607e0Smrg exit ;; 1036659607e0Smrg i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*) 1037659607e0Smrg UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'` 1038659607e0Smrg if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then 1039659607e0Smrg echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL} 1040659607e0Smrg else 1041659607e0Smrg echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL} 1042659607e0Smrg fi 1043659607e0Smrg exit ;; 1044659607e0Smrg i*86:*:5:[678]*) 1045a73597f9Smrg # UnixWare 7.x, OpenUNIX and OpenServer 6. 1046659607e0Smrg case `/bin/uname -X | grep "^Machine"` in 1047659607e0Smrg *486*) UNAME_MACHINE=i486 ;; 1048659607e0Smrg *Pentium) UNAME_MACHINE=i586 ;; 1049659607e0Smrg *Pent*|*Celeron) UNAME_MACHINE=i686 ;; 1050659607e0Smrg esac 1051659607e0Smrg echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION} 1052659607e0Smrg exit ;; 1053659607e0Smrg i*86:*:3.2:*) 1054659607e0Smrg if test -f /usr/options/cb.name; then 1055659607e0Smrg UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name` 1056659607e0Smrg echo ${UNAME_MACHINE}-pc-isc$UNAME_REL 1057659607e0Smrg elif /bin/uname -X 2>/dev/null >/dev/null ; then 1058659607e0Smrg UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')` 1059659607e0Smrg (/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486 1060659607e0Smrg (/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \ 1061659607e0Smrg && UNAME_MACHINE=i586 1062659607e0Smrg (/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \ 1063659607e0Smrg && UNAME_MACHINE=i686 1064659607e0Smrg (/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \ 1065659607e0Smrg && UNAME_MACHINE=i686 1066659607e0Smrg echo ${UNAME_MACHINE}-pc-sco$UNAME_REL 1067659607e0Smrg else 1068659607e0Smrg echo ${UNAME_MACHINE}-pc-sysv32 1069659607e0Smrg fi 1070659607e0Smrg exit ;; 1071659607e0Smrg pc:*:*:*) 1072659607e0Smrg # Left here for compatibility: 1073a73597f9Smrg # uname -m prints for DJGPP always 'pc', but it prints nothing about 1074a73597f9Smrg # the processor, so we play safe by assuming i586. 1075b73be646Smrg # Note: whatever this is, it MUST be the same as what config.sub 1076b73be646Smrg # prints for the "djgpp" host, or else GDB configury will decide that 1077b73be646Smrg # this is a cross-build. 1078b73be646Smrg echo i586-pc-msdosdjgpp 1079a73597f9Smrg exit ;; 1080659607e0Smrg Intel:Mach:3*:*) 1081659607e0Smrg echo i386-pc-mach3 1082659607e0Smrg exit ;; 1083659607e0Smrg paragon:*:*:*) 1084659607e0Smrg echo i860-intel-osf1 1085659607e0Smrg exit ;; 1086659607e0Smrg i860:*:4.*:*) # i860-SVR4 1087659607e0Smrg if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then 1088659607e0Smrg echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4 1089659607e0Smrg else # Add other i860-SVR4 vendors below as they are discovered. 1090659607e0Smrg echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4 1091659607e0Smrg fi 1092659607e0Smrg exit ;; 1093659607e0Smrg mini*:CTIX:SYS*5:*) 1094659607e0Smrg # "miniframe" 1095659607e0Smrg echo m68010-convergent-sysv 1096659607e0Smrg exit ;; 1097659607e0Smrg mc68k:UNIX:SYSTEM5:3.51m) 1098659607e0Smrg echo m68k-convergent-sysv 1099659607e0Smrg exit ;; 1100659607e0Smrg M680?0:D-NIX:5.3:*) 1101659607e0Smrg echo m68k-diab-dnix 1102659607e0Smrg exit ;; 1103659607e0Smrg M68*:*:R3V[5678]*:*) 1104659607e0Smrg test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;; 1105659607e0Smrg 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) 1106659607e0Smrg OS_REL='' 1107659607e0Smrg test -r /etc/.relid \ 1108659607e0Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1109659607e0Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1110659607e0Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1111659607e0Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1112659607e0Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1113659607e0Smrg 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1114a73597f9Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1115a73597f9Smrg && { echo i486-ncr-sysv4; exit; } ;; 1116b73be646Smrg NCR*:*:4.2:* | MPRAS*:*:4.2:*) 1117b73be646Smrg OS_REL='.3' 1118b73be646Smrg test -r /etc/.relid \ 1119b73be646Smrg && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` 1120b73be646Smrg /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1121b73be646Smrg && { echo i486-ncr-sysv4.3${OS_REL}; exit; } 1122b73be646Smrg /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1123b73be646Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } 1124b73be646Smrg /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ 1125b73be646Smrg && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1126659607e0Smrg m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1127659607e0Smrg echo m68k-unknown-lynxos${UNAME_RELEASE} 1128659607e0Smrg exit ;; 1129659607e0Smrg mc68030:UNIX_System_V:4.*:*) 1130659607e0Smrg echo m68k-atari-sysv4 1131659607e0Smrg exit ;; 1132659607e0Smrg TSUNAMI:LynxOS:2.*:*) 1133659607e0Smrg echo sparc-unknown-lynxos${UNAME_RELEASE} 1134659607e0Smrg exit ;; 1135659607e0Smrg rs6000:LynxOS:2.*:*) 1136659607e0Smrg echo rs6000-unknown-lynxos${UNAME_RELEASE} 1137659607e0Smrg exit ;; 1138b73be646Smrg PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) 1139659607e0Smrg echo powerpc-unknown-lynxos${UNAME_RELEASE} 1140659607e0Smrg exit ;; 1141659607e0Smrg SM[BE]S:UNIX_SV:*:*) 1142659607e0Smrg echo mips-dde-sysv${UNAME_RELEASE} 1143659607e0Smrg exit ;; 1144659607e0Smrg RM*:ReliantUNIX-*:*:*) 1145659607e0Smrg echo mips-sni-sysv4 1146659607e0Smrg exit ;; 1147659607e0Smrg RM*:SINIX-*:*:*) 1148659607e0Smrg echo mips-sni-sysv4 1149659607e0Smrg exit ;; 1150659607e0Smrg *:SINIX-*:*:*) 1151659607e0Smrg if uname -p 2>/dev/null >/dev/null ; then 1152659607e0Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1153659607e0Smrg echo ${UNAME_MACHINE}-sni-sysv4 1154659607e0Smrg else 1155659607e0Smrg echo ns32k-sni-sysv 1156659607e0Smrg fi 1157659607e0Smrg exit ;; 1158a73597f9Smrg PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort 1159a73597f9Smrg # says <Richard.M.Bartel@ccMail.Census.GOV> 1160a73597f9Smrg echo i586-unisys-sysv4 1161a73597f9Smrg exit ;; 1162659607e0Smrg *:UNIX_System_V:4*:FTX*) 1163659607e0Smrg # From Gerald Hewes <hewes@openmarket.com>. 1164659607e0Smrg # How about differentiating between stratus architectures? -djm 1165659607e0Smrg echo hppa1.1-stratus-sysv4 1166659607e0Smrg exit ;; 1167659607e0Smrg *:*:*:FTX*) 1168659607e0Smrg # From seanf@swdc.stratus.com. 1169659607e0Smrg echo i860-stratus-sysv4 1170659607e0Smrg exit ;; 1171659607e0Smrg i*86:VOS:*:*) 1172659607e0Smrg # From Paul.Green@stratus.com. 1173659607e0Smrg echo ${UNAME_MACHINE}-stratus-vos 1174659607e0Smrg exit ;; 1175659607e0Smrg *:VOS:*:*) 1176659607e0Smrg # From Paul.Green@stratus.com. 1177659607e0Smrg echo hppa1.1-stratus-vos 1178659607e0Smrg exit ;; 1179659607e0Smrg mc68*:A/UX:*:*) 1180659607e0Smrg echo m68k-apple-aux${UNAME_RELEASE} 1181659607e0Smrg exit ;; 1182659607e0Smrg news*:NEWS-OS:6*:*) 1183659607e0Smrg echo mips-sony-newsos6 1184659607e0Smrg exit ;; 1185659607e0Smrg R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) 1186659607e0Smrg if [ -d /usr/nec ]; then 1187a73597f9Smrg echo mips-nec-sysv${UNAME_RELEASE} 1188659607e0Smrg else 1189a73597f9Smrg echo mips-unknown-sysv${UNAME_RELEASE} 1190659607e0Smrg fi 1191a73597f9Smrg exit ;; 1192659607e0Smrg BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only. 1193659607e0Smrg echo powerpc-be-beos 1194659607e0Smrg exit ;; 1195659607e0Smrg BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only. 1196659607e0Smrg echo powerpc-apple-beos 1197659607e0Smrg exit ;; 1198659607e0Smrg BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1199659607e0Smrg echo i586-pc-beos 1200659607e0Smrg exit ;; 1201b73be646Smrg BePC:Haiku:*:*) # Haiku running on Intel PC compatible. 1202b73be646Smrg echo i586-pc-haiku 1203b73be646Smrg exit ;; 1204659607e0Smrg SX-4:SUPER-UX:*:*) 1205659607e0Smrg echo sx4-nec-superux${UNAME_RELEASE} 1206659607e0Smrg exit ;; 1207659607e0Smrg SX-5:SUPER-UX:*:*) 1208659607e0Smrg echo sx5-nec-superux${UNAME_RELEASE} 1209659607e0Smrg exit ;; 1210659607e0Smrg SX-6:SUPER-UX:*:*) 1211659607e0Smrg echo sx6-nec-superux${UNAME_RELEASE} 1212659607e0Smrg exit ;; 1213fc27e79cSmrg SX-7:SUPER-UX:*:*) 1214fc27e79cSmrg echo sx7-nec-superux${UNAME_RELEASE} 1215fc27e79cSmrg exit ;; 1216fc27e79cSmrg SX-8:SUPER-UX:*:*) 1217fc27e79cSmrg echo sx8-nec-superux${UNAME_RELEASE} 1218fc27e79cSmrg exit ;; 1219fc27e79cSmrg SX-8R:SUPER-UX:*:*) 1220fc27e79cSmrg echo sx8r-nec-superux${UNAME_RELEASE} 1221fc27e79cSmrg exit ;; 1222659607e0Smrg Power*:Rhapsody:*:*) 1223659607e0Smrg echo powerpc-apple-rhapsody${UNAME_RELEASE} 1224659607e0Smrg exit ;; 1225659607e0Smrg *:Rhapsody:*:*) 1226659607e0Smrg echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1227659607e0Smrg exit ;; 1228659607e0Smrg *:Darwin:*:*) 1229659607e0Smrg UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1230659607e0Smrg case $UNAME_PROCESSOR in 1231b73be646Smrg i386) 1232b73be646Smrg eval $set_cc_for_build 1233b73be646Smrg if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then 1234b73be646Smrg if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ 1235b73be646Smrg (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ 1236b73be646Smrg grep IS_64BIT_ARCH >/dev/null 1237b73be646Smrg then 1238b73be646Smrg UNAME_PROCESSOR="x86_64" 1239b73be646Smrg fi 1240b73be646Smrg fi ;; 1241659607e0Smrg unknown) UNAME_PROCESSOR=powerpc ;; 1242659607e0Smrg esac 1243659607e0Smrg echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1244659607e0Smrg exit ;; 1245659607e0Smrg *:procnto*:*:* | *:QNX:[0123456789]*:*) 1246659607e0Smrg UNAME_PROCESSOR=`uname -p` 1247659607e0Smrg if test "$UNAME_PROCESSOR" = "x86"; then 1248659607e0Smrg UNAME_PROCESSOR=i386 1249659607e0Smrg UNAME_MACHINE=pc 1250659607e0Smrg fi 1251659607e0Smrg echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE} 1252659607e0Smrg exit ;; 1253659607e0Smrg *:QNX:*:4*) 1254659607e0Smrg echo i386-pc-qnx 1255659607e0Smrg exit ;; 1256a73597f9Smrg NEO-?:NONSTOP_KERNEL:*:*) 1257a73597f9Smrg echo neo-tandem-nsk${UNAME_RELEASE} 1258a73597f9Smrg exit ;; 1259a73597f9Smrg NSE-*:NONSTOP_KERNEL:*:*) 1260659607e0Smrg echo nse-tandem-nsk${UNAME_RELEASE} 1261659607e0Smrg exit ;; 1262659607e0Smrg NSR-?:NONSTOP_KERNEL:*:*) 1263659607e0Smrg echo nsr-tandem-nsk${UNAME_RELEASE} 1264659607e0Smrg exit ;; 1265659607e0Smrg *:NonStop-UX:*:*) 1266659607e0Smrg echo mips-compaq-nonstopux 1267659607e0Smrg exit ;; 1268659607e0Smrg BS2000:POSIX*:*:*) 1269659607e0Smrg echo bs2000-siemens-sysv 1270659607e0Smrg exit ;; 1271659607e0Smrg DS/*:UNIX_System_V:*:*) 1272659607e0Smrg echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE} 1273659607e0Smrg exit ;; 1274659607e0Smrg *:Plan9:*:*) 1275659607e0Smrg # "uname -m" is not consistent, so use $cputype instead. 386 1276659607e0Smrg # is converted to i386 for consistency with other x86 1277659607e0Smrg # operating systems. 1278659607e0Smrg if test "$cputype" = "386"; then 1279659607e0Smrg UNAME_MACHINE=i386 1280659607e0Smrg else 1281659607e0Smrg UNAME_MACHINE="$cputype" 1282659607e0Smrg fi 1283659607e0Smrg echo ${UNAME_MACHINE}-unknown-plan9 1284659607e0Smrg exit ;; 1285659607e0Smrg *:TOPS-10:*:*) 1286659607e0Smrg echo pdp10-unknown-tops10 1287659607e0Smrg exit ;; 1288659607e0Smrg *:TENEX:*:*) 1289659607e0Smrg echo pdp10-unknown-tenex 1290659607e0Smrg exit ;; 1291659607e0Smrg KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*) 1292659607e0Smrg echo pdp10-dec-tops20 1293659607e0Smrg exit ;; 1294659607e0Smrg XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*) 1295659607e0Smrg echo pdp10-xkl-tops20 1296659607e0Smrg exit ;; 1297659607e0Smrg *:TOPS-20:*:*) 1298659607e0Smrg echo pdp10-unknown-tops20 1299659607e0Smrg exit ;; 1300659607e0Smrg *:ITS:*:*) 1301659607e0Smrg echo pdp10-unknown-its 1302659607e0Smrg exit ;; 1303659607e0Smrg SEI:*:*:SEIUX) 1304a73597f9Smrg echo mips-sei-seiux${UNAME_RELEASE} 1305659607e0Smrg exit ;; 1306659607e0Smrg *:DragonFly:*:*) 1307659607e0Smrg echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 1308659607e0Smrg exit ;; 1309659607e0Smrg *:*VMS:*:*) 1310a73597f9Smrg UNAME_MACHINE=`(uname -p) 2>/dev/null` 1311659607e0Smrg case "${UNAME_MACHINE}" in 1312659607e0Smrg A*) echo alpha-dec-vms ; exit ;; 1313659607e0Smrg I*) echo ia64-dec-vms ; exit ;; 1314659607e0Smrg V*) echo vax-dec-vms ; exit ;; 1315659607e0Smrg esac ;; 1316659607e0Smrg *:XENIX:*:SysV) 1317659607e0Smrg echo i386-pc-xenix 1318659607e0Smrg exit ;; 1319659607e0Smrg i*86:skyos:*:*) 1320659607e0Smrg echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1321659607e0Smrg exit ;; 1322659607e0Smrg i*86:rdos:*:*) 1323659607e0Smrg echo ${UNAME_MACHINE}-pc-rdos 1324659607e0Smrg exit ;; 1325b73be646Smrg i*86:AROS:*:*) 1326b73be646Smrg echo ${UNAME_MACHINE}-pc-aros 1327b73be646Smrg exit ;; 1328a73597f9Smrg x86_64:VMkernel:*:*) 1329a73597f9Smrg echo ${UNAME_MACHINE}-unknown-esx 1330a73597f9Smrg exit ;; 1331659607e0Smrgesac 1332659607e0Smrg 1333659607e0Smrg#echo '(No uname command or uname output not recognized.)' 1>&2 1334659607e0Smrg#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1335659607e0Smrg 1336659607e0Smrgeval $set_cc_for_build 1337659607e0Smrgcat >$dummy.c <<EOF 1338659607e0Smrg#ifdef _SEQUENT_ 1339659607e0Smrg# include <sys/types.h> 1340659607e0Smrg# include <sys/utsname.h> 1341659607e0Smrg#endif 1342659607e0Smrgmain () 1343659607e0Smrg{ 1344659607e0Smrg#if defined (sony) 1345659607e0Smrg#if defined (MIPSEB) 1346659607e0Smrg /* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed, 1347659607e0Smrg I don't know.... */ 1348659607e0Smrg printf ("mips-sony-bsd\n"); exit (0); 1349659607e0Smrg#else 1350659607e0Smrg#include <sys/param.h> 1351659607e0Smrg printf ("m68k-sony-newsos%s\n", 1352659607e0Smrg#ifdef NEWSOS4 1353a73597f9Smrg "4" 1354659607e0Smrg#else 1355a73597f9Smrg "" 1356659607e0Smrg#endif 1357a73597f9Smrg ); exit (0); 1358659607e0Smrg#endif 1359659607e0Smrg#endif 1360659607e0Smrg 1361659607e0Smrg#if defined (__arm) && defined (__acorn) && defined (__unix) 1362659607e0Smrg printf ("arm-acorn-riscix\n"); exit (0); 1363659607e0Smrg#endif 1364659607e0Smrg 1365659607e0Smrg#if defined (hp300) && !defined (hpux) 1366659607e0Smrg printf ("m68k-hp-bsd\n"); exit (0); 1367659607e0Smrg#endif 1368659607e0Smrg 1369659607e0Smrg#if defined (NeXT) 1370659607e0Smrg#if !defined (__ARCHITECTURE__) 1371659607e0Smrg#define __ARCHITECTURE__ "m68k" 1372659607e0Smrg#endif 1373659607e0Smrg int version; 1374659607e0Smrg version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`; 1375659607e0Smrg if (version < 4) 1376659607e0Smrg printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version); 1377659607e0Smrg else 1378659607e0Smrg printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version); 1379659607e0Smrg exit (0); 1380659607e0Smrg#endif 1381659607e0Smrg 1382659607e0Smrg#if defined (MULTIMAX) || defined (n16) 1383659607e0Smrg#if defined (UMAXV) 1384659607e0Smrg printf ("ns32k-encore-sysv\n"); exit (0); 1385659607e0Smrg#else 1386659607e0Smrg#if defined (CMU) 1387659607e0Smrg printf ("ns32k-encore-mach\n"); exit (0); 1388659607e0Smrg#else 1389659607e0Smrg printf ("ns32k-encore-bsd\n"); exit (0); 1390659607e0Smrg#endif 1391659607e0Smrg#endif 1392659607e0Smrg#endif 1393659607e0Smrg 1394659607e0Smrg#if defined (__386BSD__) 1395659607e0Smrg printf ("i386-pc-bsd\n"); exit (0); 1396659607e0Smrg#endif 1397659607e0Smrg 1398659607e0Smrg#if defined (sequent) 1399659607e0Smrg#if defined (i386) 1400659607e0Smrg printf ("i386-sequent-dynix\n"); exit (0); 1401659607e0Smrg#endif 1402659607e0Smrg#if defined (ns32000) 1403659607e0Smrg printf ("ns32k-sequent-dynix\n"); exit (0); 1404659607e0Smrg#endif 1405659607e0Smrg#endif 1406659607e0Smrg 1407659607e0Smrg#if defined (_SEQUENT_) 1408659607e0Smrg struct utsname un; 1409659607e0Smrg 1410659607e0Smrg uname(&un); 1411659607e0Smrg 1412659607e0Smrg if (strncmp(un.version, "V2", 2) == 0) { 1413659607e0Smrg printf ("i386-sequent-ptx2\n"); exit (0); 1414659607e0Smrg } 1415659607e0Smrg if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */ 1416659607e0Smrg printf ("i386-sequent-ptx1\n"); exit (0); 1417659607e0Smrg } 1418659607e0Smrg printf ("i386-sequent-ptx\n"); exit (0); 1419659607e0Smrg 1420659607e0Smrg#endif 1421659607e0Smrg 1422659607e0Smrg#if defined (vax) 1423659607e0Smrg# if !defined (ultrix) 1424659607e0Smrg# include <sys/param.h> 1425659607e0Smrg# if defined (BSD) 1426659607e0Smrg# if BSD == 43 1427659607e0Smrg printf ("vax-dec-bsd4.3\n"); exit (0); 1428659607e0Smrg# else 1429659607e0Smrg# if BSD == 199006 1430659607e0Smrg printf ("vax-dec-bsd4.3reno\n"); exit (0); 1431659607e0Smrg# else 1432659607e0Smrg printf ("vax-dec-bsd\n"); exit (0); 1433659607e0Smrg# endif 1434659607e0Smrg# endif 1435659607e0Smrg# else 1436659607e0Smrg printf ("vax-dec-bsd\n"); exit (0); 1437659607e0Smrg# endif 1438659607e0Smrg# else 1439659607e0Smrg printf ("vax-dec-ultrix\n"); exit (0); 1440659607e0Smrg# endif 1441659607e0Smrg#endif 1442659607e0Smrg 1443659607e0Smrg#if defined (alliant) && defined (i860) 1444659607e0Smrg printf ("i860-alliant-bsd\n"); exit (0); 1445659607e0Smrg#endif 1446659607e0Smrg 1447659607e0Smrg exit (1); 1448659607e0Smrg} 1449659607e0SmrgEOF 1450659607e0Smrg 1451659607e0Smrg$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` && 1452659607e0Smrg { echo "$SYSTEM_NAME"; exit; } 1453659607e0Smrg 1454659607e0Smrg# Apollos put the system type in the environment. 1455659607e0Smrg 1456659607e0Smrgtest -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; } 1457659607e0Smrg 1458659607e0Smrg# Convex versions that predate uname can use getsysinfo(1) 1459659607e0Smrg 1460659607e0Smrgif [ -x /usr/convex/getsysinfo ] 1461659607e0Smrgthen 1462659607e0Smrg case `getsysinfo -f cpu_type` in 1463659607e0Smrg c1*) 1464659607e0Smrg echo c1-convex-bsd 1465659607e0Smrg exit ;; 1466659607e0Smrg c2*) 1467659607e0Smrg if getsysinfo -f scalar_acc 1468659607e0Smrg then echo c32-convex-bsd 1469659607e0Smrg else echo c2-convex-bsd 1470659607e0Smrg fi 1471659607e0Smrg exit ;; 1472659607e0Smrg c34*) 1473659607e0Smrg echo c34-convex-bsd 1474659607e0Smrg exit ;; 1475659607e0Smrg c38*) 1476659607e0Smrg echo c38-convex-bsd 1477659607e0Smrg exit ;; 1478659607e0Smrg c4*) 1479659607e0Smrg echo c4-convex-bsd 1480659607e0Smrg exit ;; 1481659607e0Smrg esac 1482659607e0Smrgfi 1483659607e0Smrg 1484659607e0Smrgcat >&2 <<EOF 1485659607e0Smrg$0: unable to guess system type 1486659607e0Smrg 1487659607e0SmrgThis script, last modified $timestamp, has failed to recognize 1488659607e0Smrgthe operating system you are using. It is advised that you 1489659607e0Smrgdownload the most up to date version of the config scripts from 1490659607e0Smrg 1491fc27e79cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD 1492659607e0Smrgand 1493fc27e79cSmrg http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD 1494659607e0Smrg 1495659607e0SmrgIf the version you run ($0) is already up to date, please 1496659607e0Smrgsend the following data and any information you think might be 1497659607e0Smrgpertinent to <config-patches@gnu.org> in order to provide the needed 1498659607e0Smrginformation to handle your system. 1499659607e0Smrg 1500659607e0Smrgconfig.guess timestamp = $timestamp 1501659607e0Smrg 1502659607e0Smrguname -m = `(uname -m) 2>/dev/null || echo unknown` 1503659607e0Smrguname -r = `(uname -r) 2>/dev/null || echo unknown` 1504659607e0Smrguname -s = `(uname -s) 2>/dev/null || echo unknown` 1505659607e0Smrguname -v = `(uname -v) 2>/dev/null || echo unknown` 1506659607e0Smrg 1507659607e0Smrg/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null` 1508659607e0Smrg/bin/uname -X = `(/bin/uname -X) 2>/dev/null` 1509659607e0Smrg 1510659607e0Smrghostinfo = `(hostinfo) 2>/dev/null` 1511659607e0Smrg/bin/universe = `(/bin/universe) 2>/dev/null` 1512659607e0Smrg/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null` 1513659607e0Smrg/bin/arch = `(/bin/arch) 2>/dev/null` 1514659607e0Smrg/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null` 1515659607e0Smrg/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null` 1516659607e0Smrg 1517659607e0SmrgUNAME_MACHINE = ${UNAME_MACHINE} 1518659607e0SmrgUNAME_RELEASE = ${UNAME_RELEASE} 1519659607e0SmrgUNAME_SYSTEM = ${UNAME_SYSTEM} 1520659607e0SmrgUNAME_VERSION = ${UNAME_VERSION} 1521659607e0SmrgEOF 1522659607e0Smrg 1523659607e0Smrgexit 1 1524659607e0Smrg 1525659607e0Smrg# Local variables: 1526659607e0Smrg# eval: (add-hook 'write-file-hooks 'time-stamp) 1527659607e0Smrg# time-stamp-start: "timestamp='" 1528659607e0Smrg# time-stamp-format: "%:y-%02m-%02d" 1529659607e0Smrg# time-stamp-end: "'" 1530659607e0Smrg# End: 1531