roentgen b75cab
#! /bin/sh
roentgen b75cab
# Attempt to guess a canonical system name.
roentgen b75cab
#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
roentgen b75cab
#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
roentgen b75cab
#   Free Software Foundation, Inc.
roentgen b75cab
roentgen b75cab
timestamp='2008-01-08'
roentgen b75cab
roentgen b75cab
# This file is free software; you can redistribute it and/or modify it
roentgen b75cab
# under the terms of the GNU General Public License as published by
roentgen b75cab
# the Free Software Foundation; either version 2 of the License, or
roentgen b75cab
# (at your option) any later version.
roentgen b75cab
#
roentgen b75cab
# This program is distributed in the hope that it will be useful, but
roentgen b75cab
# WITHOUT ANY WARRANTY; without even the implied warranty of
roentgen b75cab
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
roentgen b75cab
# General Public License for more details.
roentgen b75cab
#
roentgen b75cab
# You should have received a copy of the GNU General Public License
roentgen b75cab
# along with this program; if not, write to the Free Software
roentgen b75cab
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
roentgen b75cab
# 02110-1301, USA.
roentgen b75cab
#
roentgen b75cab
# As a special exception to the GNU General Public License, if you
roentgen b75cab
# distribute this file as part of a program that contains a
roentgen b75cab
# configuration script generated by Autoconf, you may include it under
roentgen b75cab
# the same distribution terms that you use for the rest of that program.
roentgen b75cab
roentgen b75cab
roentgen b75cab
# Originally written by Per Bothner <per@bothner.com>.</per@bothner.com>
roentgen b75cab
# Please send patches to <config-patches@gnu.org>.  Submit a context</config-patches@gnu.org>
roentgen b75cab
# diff and a properly formatted ChangeLog entry.
roentgen b75cab
#
roentgen b75cab
# This script attempts to guess a canonical system name similar to
roentgen b75cab
# config.sub.  If it succeeds, it prints the system name on stdout, and
roentgen b75cab
# exits with 0.  Otherwise, it exits with 1.
roentgen b75cab
#
roentgen b75cab
# The plan is that this can be called by configure scripts if you
roentgen b75cab
# don't specify an explicit build system type.
roentgen b75cab
roentgen b75cab
me=`echo "$0" | sed -e 's,.*/,,'`
roentgen b75cab
roentgen b75cab
usage="\
roentgen b75cab
Usage: $0 [OPTION]
roentgen b75cab
roentgen b75cab
Output the configuration name of the system \`$me' is run on.
roentgen b75cab
roentgen b75cab
Operation modes:
roentgen b75cab
  -h, --help         print this help, then exit
roentgen b75cab
  -t, --time-stamp   print date of last modification, then exit
roentgen b75cab
  -v, --version      print version number, then exit
roentgen b75cab
roentgen b75cab
Report bugs and patches to <config-patches@gnu.org>."</config-patches@gnu.org>
roentgen b75cab
roentgen b75cab
version="\
roentgen b75cab
GNU config.guess ($timestamp)
roentgen b75cab
roentgen b75cab
Originally written by Per Bothner.
roentgen b75cab
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
roentgen b75cab
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
roentgen b75cab
roentgen b75cab
This is free software; see the source for copying conditions.  There is NO
roentgen b75cab
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
roentgen b75cab
roentgen b75cab
help="
roentgen b75cab
Try \`$me --help' for more information."
roentgen b75cab
roentgen b75cab
# Parse command line
roentgen b75cab
while test $# -gt 0 ; do
roentgen b75cab
  case $1 in
roentgen b75cab
    --time-stamp | --time* | -t )
roentgen b75cab
       echo "$timestamp" ; exit ;;
roentgen b75cab
    --version | -v )
roentgen b75cab
       echo "$version" ; exit ;;
roentgen b75cab
    --help | --h* | -h )
roentgen b75cab
       echo "$usage"; exit ;;
roentgen b75cab
    -- )     # Stop option processing
roentgen b75cab
       shift; break ;;
roentgen b75cab
    - )	# Use stdin as input.
roentgen b75cab
       break ;;
roentgen b75cab
    -* )
roentgen b75cab
       echo "$me: invalid option $1$help" >&2
roentgen b75cab
       exit 1 ;;
roentgen b75cab
    * )
roentgen b75cab
       break ;;
roentgen b75cab
  esac
roentgen b75cab
done
roentgen b75cab
roentgen b75cab
if test $# != 0; then
roentgen b75cab
  echo "$me: too many arguments$help" >&2
roentgen b75cab
  exit 1
roentgen b75cab
fi
roentgen b75cab
roentgen b75cab
trap 'exit 1' 1 2 15
roentgen b75cab
roentgen b75cab
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
roentgen b75cab
# compiler to aid in system detection is discouraged as it requires
roentgen b75cab
# temporary files to be created and, as you can see below, it is a
roentgen b75cab
# headache to deal with in a portable fashion.
roentgen b75cab
roentgen b75cab
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
roentgen b75cab
# use `HOST_CC' if defined, but it is deprecated.
roentgen b75cab
roentgen b75cab
# Portable tmp directory creation inspired by the Autoconf team.
roentgen b75cab
roentgen b75cab
set_cc_for_build='
roentgen b75cab
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
roentgen b75cab
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
roentgen b75cab
: ${TMPDIR=/tmp} ;
roentgen b75cab
 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
roentgen b75cab
 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
roentgen b75cab
 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
roentgen b75cab
 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
roentgen b75cab
dummy=$tmp/dummy ;
roentgen b75cab
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
roentgen b75cab
case $CC_FOR_BUILD,$HOST_CC,$CC in
roentgen b75cab
 ,,)    echo "int x;" > $dummy.c ;
roentgen b75cab
	for c in cc gcc c89 c99 ; do
roentgen b75cab
	  if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
roentgen b75cab
	     CC_FOR_BUILD="$c"; break ;
roentgen b75cab
	  fi ;
roentgen b75cab
	done ;
roentgen b75cab
	if test x"$CC_FOR_BUILD" = x ; then
roentgen b75cab
	  CC_FOR_BUILD=no_compiler_found ;
roentgen b75cab
	fi
roentgen b75cab
	;;
roentgen b75cab
 ,,*)   CC_FOR_BUILD=$CC ;;
roentgen b75cab
 ,*,*)  CC_FOR_BUILD=$HOST_CC ;;
roentgen b75cab
esac ; set_cc_for_build= ;'
roentgen b75cab
roentgen b75cab
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
roentgen b75cab
# (ghazi@noc.rutgers.edu 1994-08-24)
roentgen b75cab
if (test -f /.attbin/uname) >/dev/null 2>&1 ; then
roentgen b75cab
	PATH=$PATH:/.attbin ; export PATH
roentgen b75cab
fi
roentgen b75cab
roentgen b75cab
UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
roentgen b75cab
UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown
roentgen b75cab
UNAME_SYSTEM=`(uname -s) 2>/dev/null`  || UNAME_SYSTEM=unknown
roentgen b75cab
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
roentgen b75cab
roentgen b75cab
# Note: order is significant - the case branches are not exclusive.
roentgen b75cab
roentgen b75cab
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
roentgen b75cab
    *:NetBSD:*:*)
roentgen b75cab
	# NetBSD (nbsd) targets should (where applicable) match one or
roentgen b75cab
	# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
roentgen b75cab
	# *-*-netbsdecoff* and *-*-netbsd*.  For targets that recently
roentgen b75cab
	# switched to ELF, *-*-netbsd* would select the old
roentgen b75cab
	# object file format.  This provides both forward
roentgen b75cab
	# compatibility and a consistent mechanism for selecting the
roentgen b75cab
	# object file format.
roentgen b75cab
	#
roentgen b75cab
	# Note: NetBSD doesn't particularly care about the vendor
roentgen b75cab
	# portion of the name.  We always set it to "unknown".
roentgen b75cab
	sysctl="sysctl -n hw.machine_arch"
roentgen b75cab
	UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
roentgen b75cab
	    /usr/sbin/$sysctl 2>/dev/null || echo unknown)`
roentgen b75cab
	case "${UNAME_MACHINE_ARCH}" in
roentgen b75cab
	    armeb) machine=armeb-unknown ;;
roentgen b75cab
	    arm*) machine=arm-unknown ;;
roentgen b75cab
	    sh3el) machine=shl-unknown ;;
roentgen b75cab
	    sh3eb) machine=sh-unknown ;;
roentgen b75cab
	    sh5el) machine=sh5le-unknown ;;
roentgen b75cab
	    *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
roentgen b75cab
	esac
roentgen b75cab
	# The Operating System including object format, if it has switched
roentgen b75cab
	# to ELF recently, or will in the future.
roentgen b75cab
	case "${UNAME_MACHINE_ARCH}" in
roentgen b75cab
	    arm*|i386|m68k|ns32k|sh3*|sparc|vax)
roentgen b75cab
		eval $set_cc_for_build
roentgen b75cab
		if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
roentgen b75cab
			| grep __ELF__ >/dev/null
roentgen b75cab
		then
roentgen b75cab
		    # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
roentgen b75cab
		    # Return netbsd for either.  FIX?
roentgen b75cab
		    os=netbsd
roentgen b75cab
		else
roentgen b75cab
		    os=netbsdelf
roentgen b75cab
		fi
roentgen b75cab
		;;
roentgen b75cab
	    *)
roentgen b75cab
	        os=netbsd
roentgen b75cab
		;;
roentgen b75cab
	esac
roentgen b75cab
	# The OS release
roentgen b75cab
	# Debian GNU/NetBSD machines have a different userland, and
roentgen b75cab
	# thus, need a distinct triplet. However, they do not need
roentgen b75cab
	# kernel version information, so it can be replaced with a
roentgen b75cab
	# suitable tag, in the style of linux-gnu.
roentgen b75cab
	case "${UNAME_VERSION}" in
roentgen b75cab
	    Debian*)
roentgen b75cab
		release='-gnu'
roentgen b75cab
		;;
roentgen b75cab
	    *)
roentgen b75cab
		release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
roentgen b75cab
		;;
roentgen b75cab
	esac
roentgen b75cab
	# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
roentgen b75cab
	# contains redundant information, the shorter form:
roentgen b75cab
	# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
roentgen b75cab
	echo "${machine}-${os}${release}"
roentgen b75cab
	exit ;;
roentgen b75cab
    *:OpenBSD:*:*)
roentgen b75cab
	UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
roentgen b75cab
	echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:ekkoBSD:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:SolidBSD:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    macppc:MirBSD:*:*)
roentgen b75cab
	echo powerpc-unknown-mirbsd${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:MirBSD:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    alpha:OSF1:*:*)
roentgen b75cab
	case $UNAME_RELEASE in
roentgen b75cab
	*4.0)
roentgen b75cab
		UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
roentgen b75cab
		;;
roentgen b75cab
	*5.*)
roentgen b75cab
	        UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
roentgen b75cab
		;;
roentgen b75cab
	esac
roentgen b75cab
	# According to Compaq, /usr/sbin/psrinfo has been available on
roentgen b75cab
	# OSF/1 and Tru64 systems produced since 1995.  I hope that
roentgen b75cab
	# covers most systems running today.  This code pipes the CPU
roentgen b75cab
	# types through head -n 1, so we only detect the type of CPU 0.
roentgen b75cab
	ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^  The alpha \(.*\) processor.*$/\1/p' | head -n 1`
roentgen b75cab
	case "$ALPHA_CPU_TYPE" in
roentgen b75cab
	    "EV4 (21064)")
roentgen b75cab
		UNAME_MACHINE="alpha" ;;
roentgen b75cab
	    "EV4.5 (21064)")
roentgen b75cab
		UNAME_MACHINE="alpha" ;;
roentgen b75cab
	    "LCA4 (21066/21068)")
roentgen b75cab
		UNAME_MACHINE="alpha" ;;
roentgen b75cab
	    "EV5 (21164)")
roentgen b75cab
		UNAME_MACHINE="alphaev5" ;;
roentgen b75cab
	    "EV5.6 (21164A)")
roentgen b75cab
		UNAME_MACHINE="alphaev56" ;;
roentgen b75cab
	    "EV5.6 (21164PC)")
roentgen b75cab
		UNAME_MACHINE="alphapca56" ;;
roentgen b75cab
	    "EV5.7 (21164PC)")
roentgen b75cab
		UNAME_MACHINE="alphapca57" ;;
roentgen b75cab
	    "EV6 (21264)")
roentgen b75cab
		UNAME_MACHINE="alphaev6" ;;
roentgen b75cab
	    "EV6.7 (21264A)")
roentgen b75cab
		UNAME_MACHINE="alphaev67" ;;
roentgen b75cab
	    "EV6.8CB (21264C)")
roentgen b75cab
		UNAME_MACHINE="alphaev68" ;;
roentgen b75cab
	    "EV6.8AL (21264B)")
roentgen b75cab
		UNAME_MACHINE="alphaev68" ;;
roentgen b75cab
	    "EV6.8CX (21264D)")
roentgen b75cab
		UNAME_MACHINE="alphaev68" ;;
roentgen b75cab
	    "EV6.9A (21264/EV69A)")
roentgen b75cab
		UNAME_MACHINE="alphaev69" ;;
roentgen b75cab
	    "EV7 (21364)")
roentgen b75cab
		UNAME_MACHINE="alphaev7" ;;
roentgen b75cab
	    "EV7.9 (21364A)")
roentgen b75cab
		UNAME_MACHINE="alphaev79" ;;
roentgen b75cab
	esac
roentgen b75cab
	# A Pn.n version is a patched version.
roentgen b75cab
	# A Vn.n version is a released version.
roentgen b75cab
	# A Tn.n version is a released field test version.
roentgen b75cab
	# A Xn.n version is an unreleased experimental baselevel.
roentgen b75cab
	# 1.2 uses "1.2" for uname -r.
roentgen b75cab
	echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
roentgen b75cab
	exit ;;
roentgen b75cab
    Alpha\ *:Windows_NT*:*)
roentgen b75cab
	# How do we know it's Interix rather than the generic POSIX subsystem?
roentgen b75cab
	# Should we change UNAME_MACHINE based on the output of uname instead
roentgen b75cab
	# of the specific Alpha model?
roentgen b75cab
	echo alpha-pc-interix
roentgen b75cab
	exit ;;
roentgen b75cab
    21064:Windows_NT:50:3)
roentgen b75cab
	echo alpha-dec-winnt3.5
roentgen b75cab
	exit ;;
roentgen b75cab
    Amiga*:UNIX_System_V:4.0:*)
roentgen b75cab
	echo m68k-unknown-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    *:[Aa]miga[Oo][Ss]:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-amigaos
roentgen b75cab
	exit ;;
roentgen b75cab
    *:[Mm]orph[Oo][Ss]:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-morphos
roentgen b75cab
	exit ;;
roentgen b75cab
    *:OS/390:*:*)
roentgen b75cab
	echo i370-ibm-openedition
roentgen b75cab
	exit ;;
roentgen b75cab
    *:z/VM:*:*)
roentgen b75cab
	echo s390-ibm-zvmoe
roentgen b75cab
	exit ;;
roentgen b75cab
    *:OS400:*:*)
roentgen b75cab
        echo powerpc-ibm-os400
roentgen b75cab
	exit ;;
roentgen b75cab
    arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
roentgen b75cab
	echo arm-acorn-riscix${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    arm:riscos:*:*|arm:RISCOS:*:*)
roentgen b75cab
	echo arm-unknown-riscos
roentgen b75cab
	exit ;;
roentgen b75cab
    SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
roentgen b75cab
	echo hppa1.1-hitachi-hiuxmpp
roentgen b75cab
	exit ;;
roentgen b75cab
    Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
roentgen b75cab
	# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
roentgen b75cab
	if test "`(/bin/universe) 2>/dev/null`" = att ; then
roentgen b75cab
		echo pyramid-pyramid-sysv3
roentgen b75cab
	else
roentgen b75cab
		echo pyramid-pyramid-bsd
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    NILE*:*:*:dcosx)
roentgen b75cab
	echo pyramid-pyramid-svr4
roentgen b75cab
	exit ;;
roentgen b75cab
    DRS?6000:unix:4.0:6*)
roentgen b75cab
	echo sparc-icl-nx6
roentgen b75cab
	exit ;;
roentgen b75cab
    DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
roentgen b75cab
	case `/usr/bin/uname -p` in
roentgen b75cab
	    sparc) echo sparc-icl-nx7; exit ;;
roentgen b75cab
	esac ;;
roentgen b75cab
    sun4H:SunOS:5.*:*)
roentgen b75cab
	echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
roentgen b75cab
	echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
roentgen b75cab
	echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    sun4*:SunOS:6*:*)
roentgen b75cab
	# According to config.sub, this is the proper way to canonicalize
roentgen b75cab
	# SunOS6.  Hard to guess exactly what SunOS6 will be like, but
roentgen b75cab
	# it's likely to be more like Solaris than SunOS4.
roentgen b75cab
	echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    sun4*:SunOS:*:*)
roentgen b75cab
	case "`/usr/bin/arch -k`" in
roentgen b75cab
	    Series*|S4*)
roentgen b75cab
		UNAME_RELEASE=`uname -v`
roentgen b75cab
		;;
roentgen b75cab
	esac
roentgen b75cab
	# Japanese Language versions have a version number like `4.1.3-JL'.
roentgen b75cab
	echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
roentgen b75cab
	exit ;;
roentgen b75cab
    sun3*:SunOS:*:*)
roentgen b75cab
	echo m68k-sun-sunos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    sun*:*:4.2BSD:*)
roentgen b75cab
	UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
roentgen b75cab
	test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
roentgen b75cab
	case "`/bin/arch`" in
roentgen b75cab
	    sun3)
roentgen b75cab
		echo m68k-sun-sunos${UNAME_RELEASE}
roentgen b75cab
		;;
roentgen b75cab
	    sun4)
roentgen b75cab
		echo sparc-sun-sunos${UNAME_RELEASE}
roentgen b75cab
		;;
roentgen b75cab
	esac
roentgen b75cab
	exit ;;
roentgen b75cab
    aushp:SunOS:*:*)
roentgen b75cab
	echo sparc-auspex-sunos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    # The situation for MiNT is a little confusing.  The machine name
roentgen b75cab
    # can be virtually everything (everything which is not
roentgen b75cab
    # "atarist" or "atariste" at least should have a processor
roentgen b75cab
    # > m68000).  The system name ranges from "MiNT" over "FreeMiNT"
roentgen b75cab
    # to the lowercase version "mint" (or "freemint").  Finally
roentgen b75cab
    # the system name "TOS" denotes a system which is actually not
roentgen b75cab
    # MiNT.  But MiNT is downward compatible to TOS, so this should
roentgen b75cab
    # be no problem.
roentgen b75cab
    atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
roentgen b75cab
        echo m68k-atari-mint${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
roentgen b75cab
	echo m68k-atari-mint${UNAME_RELEASE}
roentgen b75cab
        exit ;;
roentgen b75cab
    *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
roentgen b75cab
        echo m68k-atari-mint${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
roentgen b75cab
        echo m68k-milan-mint${UNAME_RELEASE}
roentgen b75cab
        exit ;;
roentgen b75cab
    hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
roentgen b75cab
        echo m68k-hades-mint${UNAME_RELEASE}
roentgen b75cab
        exit ;;
roentgen b75cab
    *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
roentgen b75cab
        echo m68k-unknown-mint${UNAME_RELEASE}
roentgen b75cab
        exit ;;
roentgen b75cab
    m68k:machten:*:*)
roentgen b75cab
	echo m68k-apple-machten${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    powerpc:machten:*:*)
roentgen b75cab
	echo powerpc-apple-machten${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    RISC*:Mach:*:*)
roentgen b75cab
	echo mips-dec-mach_bsd4.3
roentgen b75cab
	exit ;;
roentgen b75cab
    RISC*:ULTRIX:*:*)
roentgen b75cab
	echo mips-dec-ultrix${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    VAX*:ULTRIX*:*:*)
roentgen b75cab
	echo vax-dec-ultrix${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    2020:CLIX:*:* | 2430:CLIX:*:*)
roentgen b75cab
	echo clipper-intergraph-clix${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    mips:*:*:UMIPS | mips:*:*:RISCos)
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	sed 's/^	//' << EOF >$dummy.c
roentgen b75cab
#ifdef __cplusplus
roentgen b75cab
#include <stdio.h>  /* for printf() prototype */</stdio.h>
roentgen b75cab
	int main (int argc, char *argv[]) {
roentgen b75cab
#else
roentgen b75cab
	int main (argc, argv) int argc; char *argv[]; {
roentgen b75cab
#endif
roentgen b75cab
	#if defined (host_mips) && defined (MIPSEB)
roentgen b75cab
	#if defined (SYSTYPE_SYSV)
roentgen b75cab
	  printf ("mips-mips-riscos%ssysv\n", argv[1]); exit (0);
roentgen b75cab
	#endif
roentgen b75cab
	#if defined (SYSTYPE_SVR4)
roentgen b75cab
	  printf ("mips-mips-riscos%ssvr4\n", argv[1]); exit (0);
roentgen b75cab
	#endif
roentgen b75cab
	#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
roentgen b75cab
	  printf ("mips-mips-riscos%sbsd\n", argv[1]); exit (0);
roentgen b75cab
	#endif
roentgen b75cab
	#endif
roentgen b75cab
	  exit (-1);
roentgen b75cab
	}
roentgen b75cab
EOF
roentgen b75cab
	$CC_FOR_BUILD -o $dummy $dummy.c &&
roentgen b75cab
	  dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
roentgen b75cab
	  SYSTEM_NAME=`$dummy $dummyarg` &&
roentgen b75cab
	    { echo "$SYSTEM_NAME"; exit; }
roentgen b75cab
	echo mips-mips-riscos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    Motorola:PowerMAX_OS:*:*)
roentgen b75cab
	echo powerpc-motorola-powermax
roentgen b75cab
	exit ;;
roentgen b75cab
    Motorola:*:4.3:PL8-*)
roentgen b75cab
	echo powerpc-harris-powermax
roentgen b75cab
	exit ;;
roentgen b75cab
    Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
roentgen b75cab
	echo powerpc-harris-powermax
roentgen b75cab
	exit ;;
roentgen b75cab
    Night_Hawk:Power_UNIX:*:*)
roentgen b75cab
	echo powerpc-harris-powerunix
roentgen b75cab
	exit ;;
roentgen b75cab
    m88k:CX/UX:7*:*)
roentgen b75cab
	echo m88k-harris-cxux7
roentgen b75cab
	exit ;;
roentgen b75cab
    m88k:*:4*:R4*)
roentgen b75cab
	echo m88k-motorola-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    m88k:*:3*:R3*)
roentgen b75cab
	echo m88k-motorola-sysv3
roentgen b75cab
	exit ;;
roentgen b75cab
    AViiON:dgux:*:*)
roentgen b75cab
        # DG/UX returns AViiON for all architectures
roentgen b75cab
        UNAME_PROCESSOR=`/usr/bin/uname -p`
roentgen b75cab
	if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
roentgen b75cab
	then
roentgen b75cab
	    if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
roentgen b75cab
	       [ ${TARGET_BINARY_INTERFACE}x = x ]
roentgen b75cab
	    then
roentgen b75cab
		echo m88k-dg-dgux${UNAME_RELEASE}
roentgen b75cab
	    else
roentgen b75cab
		echo m88k-dg-dguxbcs${UNAME_RELEASE}
roentgen b75cab
	    fi
roentgen b75cab
	else
roentgen b75cab
	    echo i586-dg-dgux${UNAME_RELEASE}
roentgen b75cab
	fi
roentgen b75cab
 	exit ;;
roentgen b75cab
    M88*:DolphinOS:*:*)	# DolphinOS (SVR3)
roentgen b75cab
	echo m88k-dolphin-sysv3
roentgen b75cab
	exit ;;
roentgen b75cab
    M88*:*:R3*:*)
roentgen b75cab
	# Delta 88k system running SVR3
roentgen b75cab
	echo m88k-motorola-sysv3
roentgen b75cab
	exit ;;
roentgen b75cab
    XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
roentgen b75cab
	echo m88k-tektronix-sysv3
roentgen b75cab
	exit ;;
roentgen b75cab
    Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
roentgen b75cab
	echo m68k-tektronix-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    *:IRIX*:*:*)
roentgen b75cab
	echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
roentgen b75cab
	exit ;;
roentgen b75cab
    ????????:AIX?:[12].1:2)   # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
roentgen b75cab
	echo romp-ibm-aix     # uname -m gives an 8 hex-code CPU id
roentgen b75cab
	exit ;;               # Note that: echo "'`uname -s`'" gives 'AIX '
roentgen b75cab
    i*86:AIX:*:*)
roentgen b75cab
	echo i386-ibm-aix
roentgen b75cab
	exit ;;
roentgen b75cab
    ia64:AIX:*:*)
roentgen b75cab
	if [ -x /usr/bin/oslevel ] ; then
roentgen b75cab
		IBM_REV=`/usr/bin/oslevel`
roentgen b75cab
	else
roentgen b75cab
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
roentgen b75cab
	fi
roentgen b75cab
	echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:AIX:2:3)
roentgen b75cab
	if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
roentgen b75cab
		eval $set_cc_for_build
roentgen b75cab
		sed 's/^		//' << EOF >$dummy.c
roentgen b75cab
		#include <sys systemcfg.h=""></sys>
roentgen b75cab
roentgen b75cab
		main()
roentgen b75cab
			{
roentgen b75cab
			if (!__power_pc())
roentgen b75cab
				exit(1);
roentgen b75cab
			puts("powerpc-ibm-aix3.2.5");
roentgen b75cab
			exit(0);
roentgen b75cab
			}
roentgen b75cab
EOF
roentgen b75cab
		if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
roentgen b75cab
		then
roentgen b75cab
			echo "$SYSTEM_NAME"
roentgen b75cab
		else
roentgen b75cab
			echo rs6000-ibm-aix3.2.5
roentgen b75cab
		fi
roentgen b75cab
	elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
roentgen b75cab
		echo rs6000-ibm-aix3.2.4
roentgen b75cab
	else
roentgen b75cab
		echo rs6000-ibm-aix3.2
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    *:AIX:*:[456])
roentgen b75cab
	IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
roentgen b75cab
	if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
roentgen b75cab
		IBM_ARCH=rs6000
roentgen b75cab
	else
roentgen b75cab
		IBM_ARCH=powerpc
roentgen b75cab
	fi
roentgen b75cab
	if [ -x /usr/bin/oslevel ] ; then
roentgen b75cab
		IBM_REV=`/usr/bin/oslevel`
roentgen b75cab
	else
roentgen b75cab
		IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
roentgen b75cab
	fi
roentgen b75cab
	echo ${IBM_ARCH}-ibm-aix${IBM_REV}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:AIX:*:*)
roentgen b75cab
	echo rs6000-ibm-aix
roentgen b75cab
	exit ;;
roentgen b75cab
    ibmrt:4.4BSD:*|romp-ibm:BSD:*)
roentgen b75cab
	echo romp-ibm-bsd4.4
roentgen b75cab
	exit ;;
roentgen b75cab
    ibmrt:*BSD:*|romp-ibm:BSD:*)            # covers RT/PC BSD and
roentgen b75cab
	echo romp-ibm-bsd${UNAME_RELEASE}   # 4.3 with uname added to
roentgen b75cab
	exit ;;                             # report: romp-ibm BSD 4.3
roentgen b75cab
    *:BOSX:*:*)
roentgen b75cab
	echo rs6000-bull-bosx
roentgen b75cab
	exit ;;
roentgen b75cab
    DPX/2?00:B.O.S.:*:*)
roentgen b75cab
	echo m68k-bull-sysv3
roentgen b75cab
	exit ;;
roentgen b75cab
    9000/[34]??:4.3bsd:1.*:*)
roentgen b75cab
	echo m68k-hp-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
roentgen b75cab
	echo m68k-hp-bsd4.4
roentgen b75cab
	exit ;;
roentgen b75cab
    9000/[34678]??:HP-UX:*:*)
roentgen b75cab
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
roentgen b75cab
	case "${UNAME_MACHINE}" in
roentgen b75cab
	    9000/31? )            HP_ARCH=m68000 ;;
roentgen b75cab
	    9000/[34]?? )         HP_ARCH=m68k ;;
roentgen b75cab
	    9000/[678][0-9][0-9])
roentgen b75cab
		if [ -x /usr/bin/getconf ]; then
roentgen b75cab
		    sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
roentgen b75cab
                    sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
roentgen b75cab
                    case "${sc_cpu_version}" in
roentgen b75cab
                      523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
roentgen b75cab
                      528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
roentgen b75cab
                      532)                      # CPU_PA_RISC2_0
roentgen b75cab
                        case "${sc_kernel_bits}" in
roentgen b75cab
                          32) HP_ARCH="hppa2.0n" ;;
roentgen b75cab
                          64) HP_ARCH="hppa2.0w" ;;
roentgen b75cab
			  '') HP_ARCH="hppa2.0" ;;   # HP-UX 10.20
roentgen b75cab
                        esac ;;
roentgen b75cab
                    esac
roentgen b75cab
		fi
roentgen b75cab
		if [ "${HP_ARCH}" = "" ]; then
roentgen b75cab
		    eval $set_cc_for_build
roentgen b75cab
		    sed 's/^              //' << EOF >$dummy.c
roentgen b75cab
roentgen b75cab
              #define _HPUX_SOURCE
roentgen b75cab
              #include <stdlib.h></stdlib.h>
roentgen b75cab
              #include <unistd.h></unistd.h>
roentgen b75cab
roentgen b75cab
              int main ()
roentgen b75cab
              {
roentgen b75cab
              #if defined(_SC_KERNEL_BITS)
roentgen b75cab
                  long bits = sysconf(_SC_KERNEL_BITS);
roentgen b75cab
              #endif
roentgen b75cab
                  long cpu  = sysconf (_SC_CPU_VERSION);
roentgen b75cab
roentgen b75cab
                  switch (cpu)
roentgen b75cab
              	{
roentgen b75cab
              	case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
roentgen b75cab
              	case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
roentgen b75cab
              	case CPU_PA_RISC2_0:
roentgen b75cab
              #if defined(_SC_KERNEL_BITS)
roentgen b75cab
              	    switch (bits)
roentgen b75cab
              		{
roentgen b75cab
              		case 64: puts ("hppa2.0w"); break;
roentgen b75cab
              		case 32: puts ("hppa2.0n"); break;
roentgen b75cab
              		default: puts ("hppa2.0"); break;
roentgen b75cab
              		} break;
roentgen b75cab
              #else  /* !defined(_SC_KERNEL_BITS) */
roentgen b75cab
              	    puts ("hppa2.0"); break;
roentgen b75cab
              #endif
roentgen b75cab
              	default: puts ("hppa1.0"); break;
roentgen b75cab
              	}
roentgen b75cab
                  exit (0);
roentgen b75cab
              }
roentgen b75cab
EOF
roentgen b75cab
		    (CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
roentgen b75cab
		    test -z "$HP_ARCH" && HP_ARCH=hppa
roentgen b75cab
		fi ;;
roentgen b75cab
	esac
roentgen b75cab
	if [ ${HP_ARCH} = "hppa2.0w" ]
roentgen b75cab
	then
roentgen b75cab
	    eval $set_cc_for_build
roentgen b75cab
roentgen b75cab
	    # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
roentgen b75cab
	    # 32-bit code.  hppa64-hp-hpux* has the same kernel and a compiler
roentgen b75cab
	    # generating 64-bit code.  GNU and HP use different nomenclature:
roentgen b75cab
	    #
roentgen b75cab
	    # $ CC_FOR_BUILD=cc ./config.guess
roentgen b75cab
	    # => hppa2.0w-hp-hpux11.23
roentgen b75cab
	    # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
roentgen b75cab
	    # => hppa64-hp-hpux11.23
roentgen b75cab
roentgen b75cab
	    if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
roentgen b75cab
		grep __LP64__ >/dev/null
roentgen b75cab
	    then
roentgen b75cab
		HP_ARCH="hppa2.0w"
roentgen b75cab
	    else
roentgen b75cab
		HP_ARCH="hppa64"
roentgen b75cab
	    fi
roentgen b75cab
	fi
roentgen b75cab
	echo ${HP_ARCH}-hp-hpux${HPUX_REV}
roentgen b75cab
	exit ;;
roentgen b75cab
    ia64:HP-UX:*:*)
roentgen b75cab
	HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
roentgen b75cab
	echo ia64-hp-hpux${HPUX_REV}
roentgen b75cab
	exit ;;
roentgen b75cab
    3050*:HI-UX:*:*)
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	sed 's/^	//' << EOF >$dummy.c
roentgen b75cab
	#include <unistd.h></unistd.h>
roentgen b75cab
	int
roentgen b75cab
	main ()
roentgen b75cab
	{
roentgen b75cab
	  long cpu = sysconf (_SC_CPU_VERSION);
roentgen b75cab
	  /* The order matters, because CPU_IS_HP_MC68K erroneously returns
roentgen b75cab
	     true for CPU_PA_RISC1_0.  CPU_IS_PA_RISC returns correct
roentgen b75cab
	     results, however.  */
roentgen b75cab
	  if (CPU_IS_PA_RISC (cpu))
roentgen b75cab
	    {
roentgen b75cab
	      switch (cpu)
roentgen b75cab
		{
roentgen b75cab
		  case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
roentgen b75cab
		  case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
roentgen b75cab
		  case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
roentgen b75cab
		  default: puts ("hppa-hitachi-hiuxwe2"); break;
roentgen b75cab
		}
roentgen b75cab
	    }
roentgen b75cab
	  else if (CPU_IS_HP_MC68K (cpu))
roentgen b75cab
	    puts ("m68k-hitachi-hiuxwe2");
roentgen b75cab
	  else puts ("unknown-hitachi-hiuxwe2");
roentgen b75cab
	  exit (0);
roentgen b75cab
	}
roentgen b75cab
EOF
roentgen b75cab
	$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
roentgen b75cab
		{ echo "$SYSTEM_NAME"; exit; }
roentgen b75cab
	echo unknown-hitachi-hiuxwe2
roentgen b75cab
	exit ;;
roentgen b75cab
    9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
roentgen b75cab
	echo hppa1.1-hp-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    9000/8??:4.3bsd:*:*)
roentgen b75cab
	echo hppa1.0-hp-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
roentgen b75cab
	echo hppa1.0-hp-mpeix
roentgen b75cab
	exit ;;
roentgen b75cab
    hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
roentgen b75cab
	echo hppa1.1-hp-osf
roentgen b75cab
	exit ;;
roentgen b75cab
    hp8??:OSF1:*:*)
roentgen b75cab
	echo hppa1.0-hp-osf
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:OSF1:*:*)
roentgen b75cab
	if [ -x /usr/sbin/sysversion ] ; then
roentgen b75cab
	    echo ${UNAME_MACHINE}-unknown-osf1mk
roentgen b75cab
	else
roentgen b75cab
	    echo ${UNAME_MACHINE}-unknown-osf1
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    parisc*:Lites*:*:*)
roentgen b75cab
	echo hppa1.1-hp-lites
roentgen b75cab
	exit ;;
roentgen b75cab
    C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
roentgen b75cab
	echo c1-convex-bsd
roentgen b75cab
        exit ;;
roentgen b75cab
    C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
roentgen b75cab
	if getsysinfo -f scalar_acc
roentgen b75cab
	then echo c32-convex-bsd
roentgen b75cab
	else echo c2-convex-bsd
roentgen b75cab
	fi
roentgen b75cab
        exit ;;
roentgen b75cab
    C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
roentgen b75cab
	echo c34-convex-bsd
roentgen b75cab
        exit ;;
roentgen b75cab
    C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
roentgen b75cab
	echo c38-convex-bsd
roentgen b75cab
        exit ;;
roentgen b75cab
    C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
roentgen b75cab
	echo c4-convex-bsd
roentgen b75cab
        exit ;;
roentgen b75cab
    CRAY*Y-MP:*:*:*)
roentgen b75cab
	echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    CRAY*[A-Z]90:*:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
roentgen b75cab
	| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
roentgen b75cab
	      -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
roentgen b75cab
	      -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    CRAY*TS:*:*:*)
roentgen b75cab
	echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    CRAY*T3E:*:*:*)
roentgen b75cab
	echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    CRAY*SV1:*:*:*)
roentgen b75cab
	echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    *:UNICOS/mp:*:*)
roentgen b75cab
	echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
roentgen b75cab
	exit ;;
roentgen b75cab
    F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
roentgen b75cab
	FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
roentgen b75cab
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
roentgen b75cab
        FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
roentgen b75cab
        echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
roentgen b75cab
        exit ;;
roentgen b75cab
    5000:UNIX_System_V:4.*:*)
roentgen b75cab
        FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
roentgen b75cab
        FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
roentgen b75cab
        echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    sparc*:BSD/OS:*:*)
roentgen b75cab
	echo sparc-unknown-bsdi${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:BSD/OS:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:FreeBSD:*:*)
roentgen b75cab
	case ${UNAME_MACHINE} in
roentgen b75cab
	    pc98)
roentgen b75cab
		echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
roentgen b75cab
	    amd64)
roentgen b75cab
		echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
roentgen b75cab
	    *)
roentgen b75cab
		echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
roentgen b75cab
	esac
roentgen b75cab
	exit ;;
roentgen b75cab
    i*:CYGWIN*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-cygwin
roentgen b75cab
	exit ;;
roentgen b75cab
    *:MINGW*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-mingw32
roentgen b75cab
	exit ;;
roentgen b75cab
    i*:windows32*:*)
roentgen b75cab
    	# uname -m includes "-pc" on this system.
roentgen b75cab
    	echo ${UNAME_MACHINE}-mingw32
roentgen b75cab
	exit ;;
roentgen b75cab
    i*:PW*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-pw32
roentgen b75cab
	exit ;;
roentgen b75cab
    *:Interix*:[3456]*)
roentgen b75cab
    	case ${UNAME_MACHINE} in
roentgen b75cab
	    x86)
roentgen b75cab
		echo i586-pc-interix${UNAME_RELEASE}
roentgen b75cab
		exit ;;
roentgen b75cab
	    EM64T | authenticamd)
roentgen b75cab
		echo x86_64-unknown-interix${UNAME_RELEASE}
roentgen b75cab
		exit ;;
roentgen b75cab
	    IA64)
roentgen b75cab
		echo ia64-unknown-interix${UNAME_RELEASE}
roentgen b75cab
		exit ;;
roentgen b75cab
	esac ;;
roentgen b75cab
    [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
roentgen b75cab
	echo i${UNAME_MACHINE}-pc-mks
roentgen b75cab
	exit ;;
roentgen b75cab
    i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
roentgen b75cab
	# How do we know it's Interix rather than the generic POSIX subsystem?
roentgen b75cab
	# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
roentgen b75cab
	# UNAME_MACHINE based on the output of uname instead of i386?
roentgen b75cab
	echo i586-pc-interix
roentgen b75cab
	exit ;;
roentgen b75cab
    i*:UWIN*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-uwin
roentgen b75cab
	exit ;;
roentgen b75cab
    amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
roentgen b75cab
	echo x86_64-unknown-cygwin
roentgen b75cab
	exit ;;
roentgen b75cab
    p*:CYGWIN*:*)
roentgen b75cab
	echo powerpcle-unknown-cygwin
roentgen b75cab
	exit ;;
roentgen b75cab
    prep*:SunOS:5.*:*)
roentgen b75cab
	echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    *:GNU:*:*)
roentgen b75cab
	# the GNU system
roentgen b75cab
	echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
roentgen b75cab
	exit ;;
roentgen b75cab
    *:GNU/*:*:*)
roentgen b75cab
	# other systems with GNU libc and userland
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:Minix:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-minix
roentgen b75cab
	exit ;;
roentgen b75cab
    arm*:Linux:*:*)
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
roentgen b75cab
	    | grep -q __ARM_EABI__
roentgen b75cab
	then
roentgen b75cab
	    echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	else
roentgen b75cab
	    echo ${UNAME_MACHINE}-unknown-linux-gnueabi
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    avr32*:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    cris:Linux:*:*)
roentgen b75cab
	echo cris-axis-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    crisv32:Linux:*:*)
roentgen b75cab
	echo crisv32-axis-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    frv:Linux:*:*)
roentgen b75cab
    	echo frv-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    ia64:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    m32r*:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    m68*:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    mips:Linux:*:*)
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	sed 's/^	//' << EOF >$dummy.c
roentgen b75cab
	#undef CPU
roentgen b75cab
	#undef mips
roentgen b75cab
	#undef mipsel
roentgen b75cab
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
roentgen b75cab
	CPU=mipsel
roentgen b75cab
	#else
roentgen b75cab
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
roentgen b75cab
	CPU=mips
roentgen b75cab
	#else
roentgen b75cab
	CPU=
roentgen b75cab
	#endif
roentgen b75cab
	#endif
roentgen b75cab
EOF
roentgen b75cab
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
roentgen b75cab
	    /^CPU/{
roentgen b75cab
		s: ::g
roentgen b75cab
		p
roentgen b75cab
	    }'`"
roentgen b75cab
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
roentgen b75cab
	;;
roentgen b75cab
    mips64:Linux:*:*)
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	sed 's/^	//' << EOF >$dummy.c
roentgen b75cab
	#undef CPU
roentgen b75cab
	#undef mips64
roentgen b75cab
	#undef mips64el
roentgen b75cab
	#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
roentgen b75cab
	CPU=mips64el
roentgen b75cab
	#else
roentgen b75cab
	#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
roentgen b75cab
	CPU=mips64
roentgen b75cab
	#else
roentgen b75cab
	CPU=
roentgen b75cab
	#endif
roentgen b75cab
	#endif
roentgen b75cab
EOF
roentgen b75cab
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
roentgen b75cab
	    /^CPU/{
roentgen b75cab
		s: ::g
roentgen b75cab
		p
roentgen b75cab
	    }'`"
roentgen b75cab
	test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
roentgen b75cab
	;;
roentgen b75cab
    or32:Linux:*:*)
roentgen b75cab
	echo or32-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    ppc:Linux:*:*)
roentgen b75cab
	echo powerpc-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    ppc64:Linux:*:*)
roentgen b75cab
	echo powerpc64-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    alpha:Linux:*:*)
roentgen b75cab
	case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
roentgen b75cab
	  EV5)   UNAME_MACHINE=alphaev5 ;;
roentgen b75cab
	  EV56)  UNAME_MACHINE=alphaev56 ;;
roentgen b75cab
	  PCA56) UNAME_MACHINE=alphapca56 ;;
roentgen b75cab
	  PCA57) UNAME_MACHINE=alphapca56 ;;
roentgen b75cab
	  EV6)   UNAME_MACHINE=alphaev6 ;;
roentgen b75cab
	  EV67)  UNAME_MACHINE=alphaev67 ;;
roentgen b75cab
	  EV68*) UNAME_MACHINE=alphaev68 ;;
roentgen b75cab
        esac
roentgen b75cab
	objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
roentgen b75cab
	if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
roentgen b75cab
	exit ;;
roentgen b75cab
    parisc:Linux:*:* | hppa:Linux:*:*)
roentgen b75cab
	# Look for CPU level
roentgen b75cab
	case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
roentgen b75cab
	  PA7*) echo hppa1.1-unknown-linux-gnu ;;
roentgen b75cab
	  PA8*) echo hppa2.0-unknown-linux-gnu ;;
roentgen b75cab
	  *)    echo hppa-unknown-linux-gnu ;;
roentgen b75cab
	esac
roentgen b75cab
	exit ;;
roentgen b75cab
    parisc64:Linux:*:* | hppa64:Linux:*:*)
roentgen b75cab
	echo hppa64-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    s390:Linux:*:* | s390x:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-ibm-linux
roentgen b75cab
	exit ;;
roentgen b75cab
    sh64*:Linux:*:*)
roentgen b75cab
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    sh*:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    sparc:Linux:*:* | sparc64:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    vax:Linux:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-dec-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    x86_64:Linux:*:*)
roentgen b75cab
	echo x86_64-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    xtensa*:Linux:*:*)
roentgen b75cab
    	echo ${UNAME_MACHINE}-unknown-linux-gnu
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:Linux:*:*)
roentgen b75cab
	# The BFD linker knows what the default object file format is, so
roentgen b75cab
	# first see if it will tell us. cd to the root directory to prevent
roentgen b75cab
	# problems with other programs or directories called `ld' in the path.
roentgen b75cab
	# Set LC_ALL=C to ensure ld outputs messages in English.
roentgen b75cab
	ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
roentgen b75cab
			 | sed -ne '/supported targets:/!d
roentgen b75cab
				    s/[ 	][ 	]*/ /g
roentgen b75cab
				    s/.*supported targets: *//
roentgen b75cab
				    s/ .*//
roentgen b75cab
				    p'`
roentgen b75cab
        case "$ld_supported_targets" in
roentgen b75cab
	  elf32-i386)
roentgen b75cab
		TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
roentgen b75cab
		;;
roentgen b75cab
	  a.out-i386-linux)
roentgen b75cab
		echo "${UNAME_MACHINE}-pc-linux-gnuaout"
roentgen b75cab
		exit ;;
roentgen b75cab
	  coff-i386)
roentgen b75cab
		echo "${UNAME_MACHINE}-pc-linux-gnucoff"
roentgen b75cab
		exit ;;
roentgen b75cab
	  "")
roentgen b75cab
		# Either a pre-BFD a.out linker (linux-gnuoldld) or
roentgen b75cab
		# one that does not give us useful --help.
roentgen b75cab
		echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
roentgen b75cab
		exit ;;
roentgen b75cab
	esac
roentgen b75cab
	# Determine whether the default compiler is a.out or elf
roentgen b75cab
	eval $set_cc_for_build
roentgen b75cab
	sed 's/^	//' << EOF >$dummy.c
roentgen b75cab
	#include <features.h></features.h>
roentgen b75cab
	#ifdef __ELF__
roentgen b75cab
	# ifdef __GLIBC__
roentgen b75cab
	#  if __GLIBC__ >= 2
roentgen b75cab
	LIBC=gnu
roentgen b75cab
	#  else
roentgen b75cab
	LIBC=gnulibc1
roentgen b75cab
	#  endif
roentgen b75cab
	# else
roentgen b75cab
	LIBC=gnulibc1
roentgen b75cab
	# endif
roentgen b75cab
	#else
roentgen b75cab
	#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
roentgen b75cab
	LIBC=gnu
roentgen b75cab
	#else
roentgen b75cab
	LIBC=gnuaout
roentgen b75cab
	#endif
roentgen b75cab
	#endif
roentgen b75cab
	#ifdef __dietlibc__
roentgen b75cab
	LIBC=dietlibc
roentgen b75cab
	#endif
roentgen b75cab
EOF
roentgen b75cab
	eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
roentgen b75cab
	    /^LIBC/{
roentgen b75cab
		s: ::g
roentgen b75cab
		p
roentgen b75cab
	    }'`"
roentgen b75cab
	test x"${LIBC}" != x && {
roentgen b75cab
		echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
roentgen b75cab
		exit
roentgen b75cab
	}
roentgen b75cab
	test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
roentgen b75cab
	;;
roentgen b75cab
    i*86:DYNIX/ptx:4*:*)
roentgen b75cab
	# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
roentgen b75cab
	# earlier versions are messed up and put the nodename in both
roentgen b75cab
	# sysname and nodename.
roentgen b75cab
	echo i386-sequent-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:UNIX_SV:4.2MP:2.*)
roentgen b75cab
        # Unixware is an offshoot of SVR4, but it has its own version
roentgen b75cab
        # number series starting with 2...
roentgen b75cab
        # I am not positive that other SVR4 systems won't match this,
roentgen b75cab
	# I just have to hope.  -- rms.
roentgen b75cab
        # Use sysv4.2uw... so that sysv4* matches it.
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:OS/2:*:*)
roentgen b75cab
	# If we were able to find `uname', then EMX Unix compatibility
roentgen b75cab
	# is probably installed.
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-os2-emx
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:XTS-300:*:STOP)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-stop
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:atheos:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-atheos
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:syllable:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-syllable
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
roentgen b75cab
	echo i386-unknown-lynxos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:*DOS:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-msdosdjgpp
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
roentgen b75cab
	UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
roentgen b75cab
	if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
roentgen b75cab
		echo ${UNAME_MACHINE}-univel-sysv${UNAME_REL}
roentgen b75cab
	else
roentgen b75cab
		echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:*:5:[678]*)
roentgen b75cab
    	# UnixWare 7.x, OpenUNIX and OpenServer 6.
roentgen b75cab
	case `/bin/uname -X | grep "^Machine"` in
roentgen b75cab
	    *486*)	     UNAME_MACHINE=i486 ;;
roentgen b75cab
	    *Pentium)	     UNAME_MACHINE=i586 ;;
roentgen b75cab
	    *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
roentgen b75cab
	esac
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:*:3.2:*)
roentgen b75cab
	if test -f /usr/options/cb.name; then
roentgen b75cab
		UNAME_REL=`sed -n 's/.*Version //p' 
roentgen b75cab
		echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
roentgen b75cab
	elif /bin/uname -X 2>/dev/null >/dev/null ; then
roentgen b75cab
		UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
roentgen b75cab
		(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
roentgen b75cab
		(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
roentgen b75cab
			&& UNAME_MACHINE=i586
roentgen b75cab
		(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
roentgen b75cab
			&& UNAME_MACHINE=i686
roentgen b75cab
		(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
roentgen b75cab
			&& UNAME_MACHINE=i686
roentgen b75cab
		echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
roentgen b75cab
	else
roentgen b75cab
		echo ${UNAME_MACHINE}-pc-sysv32
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    pc:*:*:*)
roentgen b75cab
	# Left here for compatibility:
roentgen b75cab
        # uname -m prints for DJGPP always 'pc', but it prints nothing about
roentgen b75cab
        # the processor, so we play safe by assuming i386.
roentgen b75cab
	echo i386-pc-msdosdjgpp
roentgen b75cab
        exit ;;
roentgen b75cab
    Intel:Mach:3*:*)
roentgen b75cab
	echo i386-pc-mach3
roentgen b75cab
	exit ;;
roentgen b75cab
    paragon:*:*:*)
roentgen b75cab
	echo i860-intel-osf1
roentgen b75cab
	exit ;;
roentgen b75cab
    i860:*:4.*:*) # i860-SVR4
roentgen b75cab
	if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
roentgen b75cab
	  echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
roentgen b75cab
	else # Add other i860-SVR4 vendors below as they are discovered.
roentgen b75cab
	  echo i860-unknown-sysv${UNAME_RELEASE}  # Unknown i860-SVR4
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    mini*:CTIX:SYS*5:*)
roentgen b75cab
	# "miniframe"
roentgen b75cab
	echo m68010-convergent-sysv
roentgen b75cab
	exit ;;
roentgen b75cab
    mc68k:UNIX:SYSTEM5:3.51m)
roentgen b75cab
	echo m68k-convergent-sysv
roentgen b75cab
	exit ;;
roentgen b75cab
    M680?0:D-NIX:5.3:*)
roentgen b75cab
	echo m68k-diab-dnix
roentgen b75cab
	exit ;;
roentgen b75cab
    M68*:*:R3V[5678]*:*)
roentgen b75cab
	test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
roentgen b75cab
    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)
roentgen b75cab
	OS_REL=''
roentgen b75cab
	test -r /etc/.relid \
roentgen b75cab
	&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
roentgen b75cab
	/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
roentgen b75cab
	  && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
roentgen b75cab
	/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
roentgen b75cab
	  && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
roentgen b75cab
    3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
roentgen b75cab
        /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
roentgen b75cab
          && { echo i486-ncr-sysv4; exit; } ;;
roentgen b75cab
    m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
roentgen b75cab
	echo m68k-unknown-lynxos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    mc68030:UNIX_System_V:4.*:*)
roentgen b75cab
	echo m68k-atari-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    TSUNAMI:LynxOS:2.*:*)
roentgen b75cab
	echo sparc-unknown-lynxos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    rs6000:LynxOS:2.*:*)
roentgen b75cab
	echo rs6000-unknown-lynxos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
roentgen b75cab
	echo powerpc-unknown-lynxos${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SM[BE]S:UNIX_SV:*:*)
roentgen b75cab
	echo mips-dde-sysv${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    RM*:ReliantUNIX-*:*:*)
roentgen b75cab
	echo mips-sni-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    RM*:SINIX-*:*:*)
roentgen b75cab
	echo mips-sni-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    *:SINIX-*:*:*)
roentgen b75cab
	if uname -p 2>/dev/null >/dev/null ; then
roentgen b75cab
		UNAME_MACHINE=`(uname -p) 2>/dev/null`
roentgen b75cab
		echo ${UNAME_MACHINE}-sni-sysv4
roentgen b75cab
	else
roentgen b75cab
		echo ns32k-sni-sysv
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
roentgen b75cab
                      # says <richard.m.bartel@ccmail.census.gov></richard.m.bartel@ccmail.census.gov>
roentgen b75cab
        echo i586-unisys-sysv4
roentgen b75cab
        exit ;;
roentgen b75cab
    *:UNIX_System_V:4*:FTX*)
roentgen b75cab
	# From Gerald Hewes <hewes@openmarket.com>.</hewes@openmarket.com>
roentgen b75cab
	# How about differentiating between stratus architectures? -djm
roentgen b75cab
	echo hppa1.1-stratus-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    *:*:*:FTX*)
roentgen b75cab
	# From seanf@swdc.stratus.com.
roentgen b75cab
	echo i860-stratus-sysv4
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:VOS:*:*)
roentgen b75cab
	# From Paul.Green@stratus.com.
roentgen b75cab
	echo ${UNAME_MACHINE}-stratus-vos
roentgen b75cab
	exit ;;
roentgen b75cab
    *:VOS:*:*)
roentgen b75cab
	# From Paul.Green@stratus.com.
roentgen b75cab
	echo hppa1.1-stratus-vos
roentgen b75cab
	exit ;;
roentgen b75cab
    mc68*:A/UX:*:*)
roentgen b75cab
	echo m68k-apple-aux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    news*:NEWS-OS:6*:*)
roentgen b75cab
	echo mips-sony-newsos6
roentgen b75cab
	exit ;;
roentgen b75cab
    R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
roentgen b75cab
	if [ -d /usr/nec ]; then
roentgen b75cab
	        echo mips-nec-sysv${UNAME_RELEASE}
roentgen b75cab
	else
roentgen b75cab
	        echo mips-unknown-sysv${UNAME_RELEASE}
roentgen b75cab
	fi
roentgen b75cab
        exit ;;
roentgen b75cab
    BeBox:BeOS:*:*)	# BeOS running on hardware made by Be, PPC only.
roentgen b75cab
	echo powerpc-be-beos
roentgen b75cab
	exit ;;
roentgen b75cab
    BeMac:BeOS:*:*)	# BeOS running on Mac or Mac clone, PPC only.
roentgen b75cab
	echo powerpc-apple-beos
roentgen b75cab
	exit ;;
roentgen b75cab
    BePC:BeOS:*:*)	# BeOS running on Intel PC compatible.
roentgen b75cab
	echo i586-pc-beos
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-4:SUPER-UX:*:*)
roentgen b75cab
	echo sx4-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-5:SUPER-UX:*:*)
roentgen b75cab
	echo sx5-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-6:SUPER-UX:*:*)
roentgen b75cab
	echo sx6-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-7:SUPER-UX:*:*)
roentgen b75cab
	echo sx7-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-8:SUPER-UX:*:*)
roentgen b75cab
	echo sx8-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    SX-8R:SUPER-UX:*:*)
roentgen b75cab
	echo sx8r-nec-superux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    Power*:Rhapsody:*:*)
roentgen b75cab
	echo powerpc-apple-rhapsody${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:Rhapsody:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:Darwin:*:*)
roentgen b75cab
	UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
roentgen b75cab
	case $UNAME_PROCESSOR in
roentgen b75cab
	    unknown) UNAME_PROCESSOR=powerpc ;;
roentgen b75cab
	esac
roentgen b75cab
	echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:procnto*:*:* | *:QNX:[0123456789]*:*)
roentgen b75cab
	UNAME_PROCESSOR=`uname -p`
roentgen b75cab
	if test "$UNAME_PROCESSOR" = "x86"; then
roentgen b75cab
		UNAME_PROCESSOR=i386
roentgen b75cab
		UNAME_MACHINE=pc
roentgen b75cab
	fi
roentgen b75cab
	echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:QNX:*:4*)
roentgen b75cab
	echo i386-pc-qnx
roentgen b75cab
	exit ;;
roentgen b75cab
    NSE-?:NONSTOP_KERNEL:*:*)
roentgen b75cab
	echo nse-tandem-nsk${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    NSR-?:NONSTOP_KERNEL:*:*)
roentgen b75cab
	echo nsr-tandem-nsk${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:NonStop-UX:*:*)
roentgen b75cab
	echo mips-compaq-nonstopux
roentgen b75cab
	exit ;;
roentgen b75cab
    BS2000:POSIX*:*:*)
roentgen b75cab
	echo bs2000-siemens-sysv
roentgen b75cab
	exit ;;
roentgen b75cab
    DS/*:UNIX_System_V:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:Plan9:*:*)
roentgen b75cab
	# "uname -m" is not consistent, so use $cputype instead. 386
roentgen b75cab
	# is converted to i386 for consistency with other x86
roentgen b75cab
	# operating systems.
roentgen b75cab
	if test "$cputype" = "386"; then
roentgen b75cab
	    UNAME_MACHINE=i386
roentgen b75cab
	else
roentgen b75cab
	    UNAME_MACHINE="$cputype"
roentgen b75cab
	fi
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-plan9
roentgen b75cab
	exit ;;
roentgen b75cab
    *:TOPS-10:*:*)
roentgen b75cab
	echo pdp10-unknown-tops10
roentgen b75cab
	exit ;;
roentgen b75cab
    *:TENEX:*:*)
roentgen b75cab
	echo pdp10-unknown-tenex
roentgen b75cab
	exit ;;
roentgen b75cab
    KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
roentgen b75cab
	echo pdp10-dec-tops20
roentgen b75cab
	exit ;;
roentgen b75cab
    XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
roentgen b75cab
	echo pdp10-xkl-tops20
roentgen b75cab
	exit ;;
roentgen b75cab
    *:TOPS-20:*:*)
roentgen b75cab
	echo pdp10-unknown-tops20
roentgen b75cab
	exit ;;
roentgen b75cab
    *:ITS:*:*)
roentgen b75cab
	echo pdp10-unknown-its
roentgen b75cab
	exit ;;
roentgen b75cab
    SEI:*:*:SEIUX)
roentgen b75cab
        echo mips-sei-seiux${UNAME_RELEASE}
roentgen b75cab
	exit ;;
roentgen b75cab
    *:DragonFly:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
roentgen b75cab
	exit ;;
roentgen b75cab
    *:*VMS:*:*)
roentgen b75cab
    	UNAME_MACHINE=`(uname -p) 2>/dev/null`
roentgen b75cab
	case "${UNAME_MACHINE}" in
roentgen b75cab
	    A*) echo alpha-dec-vms ; exit ;;
roentgen b75cab
	    I*) echo ia64-dec-vms ; exit ;;
roentgen b75cab
	    V*) echo vax-dec-vms ; exit ;;
roentgen b75cab
	esac ;;
roentgen b75cab
    *:XENIX:*:SysV)
roentgen b75cab
	echo i386-pc-xenix
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:skyos:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
roentgen b75cab
	exit ;;
roentgen b75cab
    i*86:rdos:*:*)
roentgen b75cab
	echo ${UNAME_MACHINE}-pc-rdos
roentgen b75cab
	exit ;;
roentgen b75cab
esac
roentgen b75cab
roentgen b75cab
#echo '(No uname command or uname output not recognized.)' 1>&2
roentgen b75cab
#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
roentgen b75cab
roentgen b75cab
eval $set_cc_for_build
roentgen b75cab
cat >$dummy.c <
roentgen b75cab
#ifdef _SEQUENT_
roentgen b75cab
# include <sys types.h=""></sys>
roentgen b75cab
# include <sys utsname.h=""></sys>
roentgen b75cab
#endif
roentgen b75cab
main ()
roentgen b75cab
{
roentgen b75cab
#if defined (sony)
roentgen b75cab
#if defined (MIPSEB)
roentgen b75cab
  /* BFD wants "bsd" instead of "newsos".  Perhaps BFD should be changed,
roentgen b75cab
     I don't know....  */
roentgen b75cab
  printf ("mips-sony-bsd\n"); exit (0);
roentgen b75cab
#else
roentgen b75cab
#include <sys param.h=""></sys>
roentgen b75cab
  printf ("m68k-sony-newsos%s\n",
roentgen b75cab
#ifdef NEWSOS4
roentgen b75cab
          "4"
roentgen b75cab
#else
roentgen b75cab
	  ""
roentgen b75cab
#endif
roentgen b75cab
         ); exit (0);
roentgen b75cab
#endif
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (__arm) && defined (__acorn) && defined (__unix)
roentgen b75cab
  printf ("arm-acorn-riscix\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (hp300) && !defined (hpux)
roentgen b75cab
  printf ("m68k-hp-bsd\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (NeXT)
roentgen b75cab
#if !defined (__ARCHITECTURE__)
roentgen b75cab
#define __ARCHITECTURE__ "m68k"
roentgen b75cab
#endif
roentgen b75cab
  int version;
roentgen b75cab
  version=`(hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null`;
roentgen b75cab
  if (version < 4)
roentgen b75cab
    printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
roentgen b75cab
  else
roentgen b75cab
    printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
roentgen b75cab
  exit (0);
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (MULTIMAX) || defined (n16)
roentgen b75cab
#if defined (UMAXV)
roentgen b75cab
  printf ("ns32k-encore-sysv\n"); exit (0);
roentgen b75cab
#else
roentgen b75cab
#if defined (CMU)
roentgen b75cab
  printf ("ns32k-encore-mach\n"); exit (0);
roentgen b75cab
#else
roentgen b75cab
  printf ("ns32k-encore-bsd\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
#endif
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (__386BSD__)
roentgen b75cab
  printf ("i386-pc-bsd\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (sequent)
roentgen b75cab
#if defined (i386)
roentgen b75cab
  printf ("i386-sequent-dynix\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
#if defined (ns32000)
roentgen b75cab
  printf ("ns32k-sequent-dynix\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (_SEQUENT_)
roentgen b75cab
    struct utsname un;
roentgen b75cab
roentgen b75cab
    uname(&un);
roentgen b75cab
roentgen b75cab
    if (strncmp(un.version, "V2", 2) == 0) {
roentgen b75cab
	printf ("i386-sequent-ptx2\n"); exit (0);
roentgen b75cab
    }
roentgen b75cab
    if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
roentgen b75cab
	printf ("i386-sequent-ptx1\n"); exit (0);
roentgen b75cab
    }
roentgen b75cab
    printf ("i386-sequent-ptx\n"); exit (0);
roentgen b75cab
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (vax)
roentgen b75cab
# if !defined (ultrix)
roentgen b75cab
#  include <sys param.h=""></sys>
roentgen b75cab
#  if defined (BSD)
roentgen b75cab
#   if BSD == 43
roentgen b75cab
      printf ("vax-dec-bsd4.3\n"); exit (0);
roentgen b75cab
#   else
roentgen b75cab
#    if BSD == 199006
roentgen b75cab
      printf ("vax-dec-bsd4.3reno\n"); exit (0);
roentgen b75cab
#    else
roentgen b75cab
      printf ("vax-dec-bsd\n"); exit (0);
roentgen b75cab
#    endif
roentgen b75cab
#   endif
roentgen b75cab
#  else
roentgen b75cab
    printf ("vax-dec-bsd\n"); exit (0);
roentgen b75cab
#  endif
roentgen b75cab
# else
roentgen b75cab
    printf ("vax-dec-ultrix\n"); exit (0);
roentgen b75cab
# endif
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
#if defined (alliant) && defined (i860)
roentgen b75cab
  printf ("i860-alliant-bsd\n"); exit (0);
roentgen b75cab
#endif
roentgen b75cab
roentgen b75cab
  exit (1);
roentgen b75cab
}
roentgen b75cab
EOF
roentgen b75cab
roentgen b75cab
$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
roentgen b75cab
	{ echo "$SYSTEM_NAME"; exit; }
roentgen b75cab
roentgen b75cab
# Apollos put the system type in the environment.
roentgen b75cab
roentgen b75cab
test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
roentgen b75cab
roentgen b75cab
# Convex versions that predate uname can use getsysinfo(1)
roentgen b75cab
roentgen b75cab
if [ -x /usr/convex/getsysinfo ]
roentgen b75cab
then
roentgen b75cab
    case `getsysinfo -f cpu_type` in
roentgen b75cab
    c1*)
roentgen b75cab
	echo c1-convex-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    c2*)
roentgen b75cab
	if getsysinfo -f scalar_acc
roentgen b75cab
	then echo c32-convex-bsd
roentgen b75cab
	else echo c2-convex-bsd
roentgen b75cab
	fi
roentgen b75cab
	exit ;;
roentgen b75cab
    c34*)
roentgen b75cab
	echo c34-convex-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    c38*)
roentgen b75cab
	echo c38-convex-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    c4*)
roentgen b75cab
	echo c4-convex-bsd
roentgen b75cab
	exit ;;
roentgen b75cab
    esac
roentgen b75cab
fi
roentgen b75cab
roentgen b75cab
cat >&2 <
roentgen b75cab
$0: unable to guess system type
roentgen b75cab
roentgen b75cab
This script, last modified $timestamp, has failed to recognize
roentgen b75cab
the operating system you are using. It is advised that you
roentgen b75cab
download the most up to date version of the config scripts from
roentgen b75cab
roentgen b75cab
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess
roentgen b75cab
and
roentgen b75cab
  http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub
roentgen b75cab
roentgen b75cab
If the version you run ($0) is already up to date, please
roentgen b75cab
send the following data and any information you think might be
roentgen b75cab
pertinent to <config-patches@gnu.org> in order to provide the needed</config-patches@gnu.org>
roentgen b75cab
information to handle your system.
roentgen b75cab
roentgen b75cab
config.guess timestamp = $timestamp
roentgen b75cab
roentgen b75cab
uname -m = `(uname -m) 2>/dev/null || echo unknown`
roentgen b75cab
uname -r = `(uname -r) 2>/dev/null || echo unknown`
roentgen b75cab
uname -s = `(uname -s) 2>/dev/null || echo unknown`
roentgen b75cab
uname -v = `(uname -v) 2>/dev/null || echo unknown`
roentgen b75cab
roentgen b75cab
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null`
roentgen b75cab
/bin/uname -X     = `(/bin/uname -X) 2>/dev/null`
roentgen b75cab
roentgen b75cab
hostinfo               = `(hostinfo) 2>/dev/null`
roentgen b75cab
/bin/universe          = `(/bin/universe) 2>/dev/null`
roentgen b75cab
/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null`
roentgen b75cab
/bin/arch              = `(/bin/arch) 2>/dev/null`
roentgen b75cab
/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null`
roentgen b75cab
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null`
roentgen b75cab
roentgen b75cab
UNAME_MACHINE = ${UNAME_MACHINE}
roentgen b75cab
UNAME_RELEASE = ${UNAME_RELEASE}
roentgen b75cab
UNAME_SYSTEM  = ${UNAME_SYSTEM}
roentgen b75cab
UNAME_VERSION = ${UNAME_VERSION}
roentgen b75cab
EOF
roentgen b75cab
roentgen b75cab
exit 1
roentgen b75cab
roentgen b75cab
# Local variables:
roentgen b75cab
# eval: (add-hook 'write-file-hooks 'time-stamp)
roentgen b75cab
# time-stamp-start: "timestamp='"
roentgen b75cab
# time-stamp-format: "%:y-%02m-%02d"
roentgen b75cab
# time-stamp-end: "'"
roentgen b75cab
# End: