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