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