Blame
Date:
Sat Jan 2 13:32:48 2021 UTC
Message:
ngIRCd Release 26.1
0001
2002-03-12
alex
#! /bin/sh
0002
2002-03-12
alex
# Attempt to guess a canonical system name.
0003
2020-05-10
alex
# Copyright 1992-2020 Free Software Foundation, Inc.
0004
2002-03-12
alex
0005
2020-01-02
alex
timestamp='2020-12-22'
0006
2002-03-12
alex
0007
2002-03-12
alex
# This file is free software; you can redistribute it and/or modify it
0008
2002-03-12
alex
# under the terms of the GNU General Public License as published by
0009
2014-03-18
alex
# the Free Software Foundation; either version 3 of the License, or
0010
2002-03-12
alex
# (at your option) any later version.
0011
2002-03-12
alex
#
0012
2002-03-12
alex
# This program is distributed in the hope that it will be useful, but
0013
2002-03-12
alex
# WITHOUT ANY WARRANTY; without even the implied warranty of
0014
2002-03-12
alex
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0015
2002-03-12
alex
# General Public License for more details.
0016
2002-03-12
alex
#
0017
2002-03-12
alex
# You should have received a copy of the GNU General Public License
0018
2018-04-01
alex
# along with this program; if not, see <https://www.gnu.org/licenses/>.
0019
2002-03-12
alex
#
0020
2002-03-12
alex
# As a special exception to the GNU General Public License, if you
0021
2002-03-12
alex
# distribute this file as part of a program that contains a
0022
2002-03-12
alex
# configuration script generated by Autoconf, you may include it under
0023
2014-03-18
alex
# the same distribution terms that you use for the rest of that
0024
2014-03-18
alex
# program. This Exception is an additional permission under section 7
0025
2014-03-18
alex
# of the GNU General Public License, version 3 ("GPLv3").
0026
2002-03-12
alex
#
0027
2016-11-05
alex
# Originally written by Per Bothner; maintained since 2000 by Ben Elliston.
0028
2002-03-12
alex
#
0029
2012-02-27
alex
# You can get the latest version of this script from:
0030
2020-01-02
alex
# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
0031
2014-03-18
alex
#
0032
2016-11-05
alex
# Please send patches to <config-patches@gnu.org>.
0033
2002-03-12
alex
0034
2014-03-18
alex
0035
2020-01-02
alex
me=$(echo "$0" | sed -e 's,.*/,,')
0036
2002-03-12
alex
0037
2002-03-12
alex
usage="\
0038
2002-03-12
alex
Usage: $0 [OPTION]
0039
2002-03-12
alex
0040
2002-03-12
alex
Output the configuration name of the system \`$me' is run on.
0041
2002-03-12
alex
0042
2018-04-01
alex
Options:
0043
2002-03-12
alex
-h, --help print this help, then exit
0044
2002-03-12
alex
-t, --time-stamp print date of last modification, then exit
0045
2002-03-12
alex
-v, --version print version number, then exit
0046
2002-03-12
alex
0047
2002-03-12
alex
Report bugs and patches to <config-patches@gnu.org>."
0048
2002-03-12
alex
0049
2002-03-12
alex
version="\
0050
2002-03-12
alex
GNU config.guess ($timestamp)
0051
2002-03-12
alex
0052
2002-03-12
alex
Originally written by Per Bothner.
0053
2020-05-10
alex
Copyright 1992-2020 Free Software Foundation, Inc.
0054
2002-03-12
alex
0055
2002-03-12
alex
This is free software; see the source for copying conditions. There is NO
0056
2002-03-12
alex
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
0057
2002-03-12
alex
0058
2002-03-12
alex
help="
0059
2002-03-12
alex
Try \`$me --help' for more information."
0060
2002-03-12
alex
0061
2002-03-12
alex
# Parse command line
0062
2002-03-12
alex
while test $# -gt 0 ; do
0063
2002-03-12
alex
case $1 in
0064
2002-03-12
alex
--time-stamp | --time* | -t )
0065
2005-10-15
alex
echo "$timestamp" ; exit ;;
0066
2002-03-12
alex
--version | -v )
0067
2005-10-15
alex
echo "$version" ; exit ;;
0068
2002-03-12
alex
--help | --h* | -h )
0069
2005-10-15
alex
echo "$usage"; exit ;;
0070
2002-03-12
alex
-- ) # Stop option processing
0071
2002-03-12
alex
shift; break ;;
0072
2002-03-12
alex
- ) # Use stdin as input.
0073
2002-03-12
alex
break ;;
0074
2002-03-12
alex
-* )
0075
2002-03-12
alex
echo "$me: invalid option $1$help" >&2
0076
2002-03-12
alex
exit 1 ;;
0077
2002-03-12
alex
* )
0078
2002-03-12
alex
break ;;
0079
2002-03-12
alex
esac
0080
2002-03-12
alex
done
0081
2002-03-12
alex
0082
2002-03-12
alex
if test $# != 0; then
0083
2002-03-12
alex
echo "$me: too many arguments$help" >&2
0084
2002-03-12
alex
exit 1
0085
2002-03-12
alex
fi
0086
2002-03-12
alex
0087
2003-07-09
alex
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
0088
2003-07-09
alex
# compiler to aid in system detection is discouraged as it requires
0089
2003-07-09
alex
# temporary files to be created and, as you can see below, it is a
0090
2003-07-09
alex
# headache to deal with in a portable fashion.
0091
2002-03-12
alex
0092
2002-03-12
alex
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
0093
2002-03-12
alex
# use `HOST_CC' if defined, but it is deprecated.
0094
2002-03-12
alex
0095
2003-07-09
alex
# Portable tmp directory creation inspired by the Autoconf team.
0096
2003-07-09
alex
0097
2020-05-10
alex
tmp=
0098
2020-05-10
alex
# shellcheck disable=SC2172
0099
2020-05-10
alex
trap 'test -z "$tmp" || rm -fr "$tmp"' 0 1 2 13 15
0100
2002-03-12
alex
0101
2020-05-10
alex
set_cc_for_build() {
0102
2020-05-10
alex
# prevent multiple calls if $tmp is already set
0103
2020-05-10
alex
test "$tmp" && return 0
0104
2020-05-10
alex
: "${TMPDIR=/tmp}"
0105
2020-05-10
alex
# shellcheck disable=SC2039
0106
2020-01-02
alex
{ tmp=$( (umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null) && test -n "$tmp" && test -d "$tmp" ; } ||
0107
2020-05-10
alex
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir "$tmp" 2>/dev/null) ; } ||
0108
2020-05-10
alex
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir "$tmp" 2>/dev/null) && echo "Warning: creating insecure temp directory" >&2 ; } ||
0109
2020-05-10
alex
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; }
0110
2020-05-10
alex
dummy=$tmp/dummy
0111
2020-05-10
alex
case ${CC_FOR_BUILD-},${HOST_CC-},${CC-} in
0112
2020-05-10
alex
,,) echo "int x;" > "$dummy.c"
0113
2020-05-10
alex
for driver in cc gcc c89 c99 ; do
0114
2020-05-10
alex
if ($driver -c -o "$dummy.o" "$dummy.c") >/dev/null 2>&1 ; then
0115
2020-05-10
alex
CC_FOR_BUILD="$driver"
0116
2020-05-10
alex
break
0117
2020-05-10
alex
fi
0118
2020-05-10
alex
done
0119
2020-05-10
alex
if test x"$CC_FOR_BUILD" = x ; then
0120
2020-05-10
alex
CC_FOR_BUILD=no_compiler_found
0121
2020-05-10
alex
fi
0122
2020-05-10
alex
;;
0123
2020-05-10
alex
,,*) CC_FOR_BUILD=$CC ;;
0124
2020-05-10
alex
,*,*) CC_FOR_BUILD=$HOST_CC ;;
0125
2020-05-10
alex
esac
0126
2020-05-10
alex
}
0127
2020-05-10
alex
0128
2002-03-12
alex
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
0129
2002-03-12
alex
# (ghazi@noc.rutgers.edu 1994-08-24)
0130
2020-05-10
alex
if test -f /.attbin/uname ; then
0131
2002-03-12
alex
PATH=$PATH:/.attbin ; export PATH
0132
2002-03-12
alex
fi
0133
2002-03-12
alex
0134
2020-01-02
alex
UNAME_MACHINE=$( (uname -m) 2>/dev/null) || UNAME_MACHINE=unknown
0135
2020-01-02
alex
UNAME_RELEASE=$( (uname -r) 2>/dev/null) || UNAME_RELEASE=unknown
0136
2020-01-02
alex
UNAME_SYSTEM=$( (uname -s) 2>/dev/null) || UNAME_SYSTEM=unknown
0137
2020-01-02
alex
UNAME_VERSION=$( (uname -v) 2>/dev/null) || UNAME_VERSION=unknown
0138
2002-03-12
alex
0139
2018-04-01
alex
case "$UNAME_SYSTEM" in
0140
2014-03-18
alex
Linux|GNU|GNU/*)
0141
2020-01-02
alex
LIBC=unknown
0142
2014-03-18
alex
0143
2020-05-10
alex
set_cc_for_build
0144
2018-04-01
alex
cat <<-EOF > "$dummy.c"
0145
2014-03-18
alex
#include <features.h>
0146
2014-03-18
alex
#if defined(__UCLIBC__)
0147
2014-03-18
alex
LIBC=uclibc
0148
2014-03-18
alex
#elif defined(__dietlibc__)
0149
2014-03-18
alex
LIBC=dietlibc
0150
2020-01-02
alex
#elif defined(__GLIBC__)
0151
2014-03-18
alex
LIBC=gnu
0152
2020-01-02
alex
#else
0153
2020-01-02
alex
#include <stdarg.h>
0154
2020-01-02
alex
/* First heuristic to detect musl libc. */
0155
2020-01-02
alex
#ifdef __DEFINED_va_list
0156
2020-01-02
alex
LIBC=musl
0157
2014-03-18
alex
#endif
0158
2020-01-02
alex
#endif
0159
2014-03-18
alex
EOF
0160
2020-01-02
alex
eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')"
0161
2018-04-01
alex
0162
2020-01-02
alex
# Second heuristic to detect musl libc.
0163
2020-01-02
alex
if [ "$LIBC" = unknown ] &&
0164
2020-01-02
alex
command -v ldd >/dev/null &&
0165
2020-01-02
alex
ldd --version 2>&1 | grep -q ^musl; then
0166
2020-01-02
alex
LIBC=musl
0167
2018-04-01
alex
fi
0168
2020-01-02
alex
0169
2020-01-02
alex
# If the system lacks a compiler, then just pick glibc.
0170
2020-01-02
alex
# We could probably try harder.
0171
2020-01-02
alex
if [ "$LIBC" = unknown ]; then
0172
2020-01-02
alex
LIBC=gnu
0173
2020-01-02
alex
fi
0174
2014-03-18
alex
;;
0175
2014-03-18
alex
esac
0176
2014-03-18
alex
0177
2002-03-12
alex
# Note: order is significant - the case branches are not exclusive.
0178
2002-03-12
alex
0179
2018-04-01
alex
case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in
0180
2002-03-12
alex
*:NetBSD:*:*)
0181
2002-03-12
alex
# NetBSD (nbsd) targets should (where applicable) match one or
0182
2012-02-27
alex
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
0183
2002-03-12
alex
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
0184
2002-03-12
alex
# switched to ELF, *-*-netbsd* would select the old
0185
2002-03-12
alex
# object file format. This provides both forward
0186
2002-03-12
alex
# compatibility and a consistent mechanism for selecting the
0187
2002-03-12
alex
# object file format.
0188
2002-03-12
alex
#
0189
2002-03-12
alex
# Note: NetBSD doesn't particularly care about the vendor
0190
2002-03-12
alex
# portion of the name. We always set it to "unknown".
0191
2002-03-12
alex
sysctl="sysctl -n hw.machine_arch"
0192
2020-01-02
alex
UNAME_MACHINE_ARCH=$( (uname -p 2>/dev/null || \
0193
2018-04-01
alex
"/sbin/$sysctl" 2>/dev/null || \
0194
2018-04-01
alex
"/usr/sbin/$sysctl" 2>/dev/null || \
0195
2020-01-02
alex
echo unknown))
0196
2018-04-01
alex
case "$UNAME_MACHINE_ARCH" in
0197
2020-01-02
alex
aarch64eb) machine=aarch64_be-unknown ;;
0198
2003-07-09
alex
armeb) machine=armeb-unknown ;;
0199
2002-03-12
alex
arm*) machine=arm-unknown ;;
0200
2002-03-12
alex
sh3el) machine=shl-unknown ;;
0201
2002-03-12
alex
sh3eb) machine=sh-unknown ;;
0202
2007-05-26
alex
sh5el) machine=sh5le-unknown ;;
0203
2016-11-05
alex
earmv*)
0204
2020-01-02
alex
arch=$(echo "$UNAME_MACHINE_ARCH" | sed -e 's,^e\(armv[0-9]\).*$,\1,')
0205
2020-01-02
alex
endian=$(echo "$UNAME_MACHINE_ARCH" | sed -ne 's,^.*\(eb\)$,\1,p')
0206
2018-04-01
alex
machine="${arch}${endian}"-unknown
0207
2016-11-05
alex
;;
0208
2018-04-01
alex
*) machine="$UNAME_MACHINE_ARCH"-unknown ;;
0209
2002-03-12
alex
esac
0210
2002-03-12
alex
# The Operating System including object format, if it has switched
0211
2017-01-20
alex
# to ELF recently (or will in the future) and ABI.
0212
2018-04-01
alex
case "$UNAME_MACHINE_ARCH" in
0213
2017-01-20
alex
earm*)
0214
2017-01-20
alex
os=netbsdelf
0215
2017-01-20
alex
;;
0216
2017-01-20
alex
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
0217
2020-05-10
alex
set_cc_for_build
0218
2002-03-12
alex
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
0219
2012-02-27
alex
| grep -q __ELF__
0220
2002-03-12
alex
then
0221
2002-03-12
alex
# Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
0222
2002-03-12
alex
# Return netbsd for either. FIX?
0223
2002-03-12
alex
os=netbsd
0224
2002-03-12
alex
else
0225
2002-03-12
alex
os=netbsdelf
0226
2002-03-12
alex
fi
0227
2002-03-12
alex
;;
0228
2002-03-12
alex
*)
0229
2012-02-27
alex
os=netbsd
0230
2002-03-12
alex
;;
0231
2002-03-12
alex
esac
0232
2016-11-05
alex
# Determine ABI tags.
0233
2018-04-01
alex
case "$UNAME_MACHINE_ARCH" in
0234
2016-11-05
alex
earm*)
0235
2016-11-05
alex
expr='s/^earmv[0-9]/-eabi/;s/eb$//'
0236
2020-01-02
alex
abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr")
0237
2016-11-05
alex
;;
0238
2016-11-05
alex
esac
0239
2002-03-12
alex
# The OS release
0240
2003-07-09
alex
# Debian GNU/NetBSD machines have a different userland, and
0241
2003-07-09
alex
# thus, need a distinct triplet. However, they do not need
0242
2003-07-09
alex
# kernel version information, so it can be replaced with a
0243
2003-07-09
alex
# suitable tag, in the style of linux-gnu.
0244
2018-04-01
alex
case "$UNAME_VERSION" in
0245
2003-07-09
alex
Debian*)
0246
2003-07-09
alex
release='-gnu'
0247
2003-07-09
alex
;;
0248
2003-07-09
alex
*)
0249
2020-01-02
alex
release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2)
0250
2003-07-09
alex
;;
0251
2003-07-09
alex
esac
0252
2002-03-12
alex
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
0253
2002-03-12
alex
# contains redundant information, the shorter form:
0254
2002-03-12
alex
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
0255
2020-05-10
alex
echo "$machine-${os}${release}${abi-}"
0256
2005-10-15
alex
exit ;;
0257
2012-09-16
alex
*:Bitrig:*:*)
0258
2020-01-02
alex
UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//')
0259
2018-04-01
alex
echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE"
0260
2012-09-16
alex
exit ;;
0261
2002-03-12
alex
*:OpenBSD:*:*)
0262
2020-01-02
alex
UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//')
0263
2018-04-01
alex
echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE"
0264
2005-10-15
alex
exit ;;
0265
2016-11-05
alex
*:LibertyBSD:*:*)
0266
2020-01-02
alex
UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//')
0267
2018-04-01
alex
echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE"
0268
2016-11-05
alex
exit ;;
0269
2018-04-01
alex
*:MidnightBSD:*:*)
0270
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-midnightbsd"$UNAME_RELEASE"
0271
2018-04-01
alex
exit ;;
0272
2004-12-25
alex
*:ekkoBSD:*:*)
0273
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-ekkobsd"$UNAME_RELEASE"
0274
2005-10-15
alex
exit ;;
0275
2006-07-23
alex
*:SolidBSD:*:*)
0276
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE"
0277
2006-07-23
alex
exit ;;
0278
2020-05-10
alex
*:OS108:*:*)
0279
2020-05-10
alex
echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE"
0280
2020-05-10
alex
exit ;;
0281
2004-12-25
alex
macppc:MirBSD:*:*)
0282
2018-04-01
alex
echo powerpc-unknown-mirbsd"$UNAME_RELEASE"
0283
2005-10-15
alex
exit ;;
0284
2004-12-25
alex
*:MirBSD:*:*)
0285
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-mirbsd"$UNAME_RELEASE"
0286
2005-10-15
alex
exit ;;
0287
2016-11-05
alex
*:Sortix:*:*)
0288
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-sortix
0289
2016-11-05
alex
exit ;;
0290
2020-05-10
alex
*:Twizzler:*:*)
0291
2020-05-10
alex
echo "$UNAME_MACHINE"-unknown-twizzler
0292
2020-05-10
alex
exit ;;
0293
2018-04-01
alex
*:Redox:*:*)
0294
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-redox
0295
2018-04-01
alex
exit ;;
0296
2018-04-01
alex
mips:OSF1:*.*)
0297
2020-05-10
alex
echo mips-dec-osf1
0298
2020-05-10
alex
exit ;;
0299
2002-03-12
alex
alpha:OSF1:*:*)
0300
2004-12-25
alex
case $UNAME_RELEASE in
0301
2004-12-25
alex
*4.0)
0302
2020-01-02
alex
UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}')
0303
2004-12-25
alex
;;
0304
2004-12-25
alex
*5.*)
0305
2020-01-02
alex
UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $4}')
0306
2004-12-25
alex
;;
0307
2004-12-25
alex
esac
0308
2003-07-09
alex
# According to Compaq, /usr/sbin/psrinfo has been available on
0309
2003-07-09
alex
# OSF/1 and Tru64 systems produced since 1995. I hope that
0310
2003-07-09
alex
# covers most systems running today. This code pipes the CPU
0311
2003-07-09
alex
# types through head -n 1, so we only detect the type of CPU 0.
0312
2020-01-02
alex
ALPHA_CPU_TYPE=$(/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1)
0313
2003-07-09
alex
case "$ALPHA_CPU_TYPE" in
0314
2003-07-09
alex
"EV4 (21064)")
0315
2016-11-05
alex
UNAME_MACHINE=alpha ;;
0316
2003-07-09
alex
"EV4.5 (21064)")
0317
2016-11-05
alex
UNAME_MACHINE=alpha ;;
0318
2003-07-09
alex
"LCA4 (21066/21068)")
0319
2016-11-05
alex
UNAME_MACHINE=alpha ;;
0320
2003-07-09
alex
"EV5 (21164)")
0321
2016-11-05
alex
UNAME_MACHINE=alphaev5 ;;
0322
2003-07-09
alex
"EV5.6 (21164A)")
0323
2016-11-05
alex
UNAME_MACHINE=alphaev56 ;;
0324
2003-07-09
alex
"EV5.6 (21164PC)")
0325
2016-11-05
alex
UNAME_MACHINE=alphapca56 ;;
0326
2003-07-09
alex
"EV5.7 (21164PC)")
0327
2016-11-05
alex
UNAME_MACHINE=alphapca57 ;;
0328
2003-07-09
alex
"EV6 (21264)")
0329
2016-11-05
alex
UNAME_MACHINE=alphaev6 ;;
0330
2003-07-09
alex
"EV6.7 (21264A)")
0331
2016-11-05
alex
UNAME_MACHINE=alphaev67 ;;
0332
2003-07-09
alex
"EV6.8CB (21264C)")
0333
2016-11-05
alex
UNAME_MACHINE=alphaev68 ;;
0334
2003-07-09
alex
"EV6.8AL (21264B)")
0335
2016-11-05
alex
UNAME_MACHINE=alphaev68 ;;
0336
2003-07-09
alex
"EV6.8CX (21264D)")
0337
2016-11-05
alex
UNAME_MACHINE=alphaev68 ;;
0338
2003-07-09
alex
"EV6.9A (21264/EV69A)")
0339
2016-11-05
alex
UNAME_MACHINE=alphaev69 ;;
0340
2003-07-09
alex
"EV7 (21364)")
0341
2016-11-05
alex
UNAME_MACHINE=alphaev7 ;;
0342
2003-07-09
alex
"EV7.9 (21364A)")
0343
2016-11-05
alex
UNAME_MACHINE=alphaev79 ;;
0344
2003-07-09
alex
esac
0345
2004-12-25
alex
# A Pn.n version is a patched version.
0346
2002-03-12
alex
# A Vn.n version is a released version.
0347
2002-03-12
alex
# A Tn.n version is a released field test version.
0348
2002-03-12
alex
# A Xn.n version is an unreleased experimental baselevel.
0349
2002-03-12
alex
# 1.2 uses "1.2" for uname -r.
0350
2020-01-02
alex
echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)"
0351
2012-02-27
alex
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
0352
2012-02-27
alex
exitcode=$?
0353
2012-02-27
alex
trap '' 0
0354
2012-02-27
alex
exit $exitcode ;;
0355
2002-03-12
alex
Amiga*:UNIX_System_V:4.0:*)
0356
2002-03-12
alex
echo m68k-unknown-sysv4
0357
2005-10-15
alex
exit ;;
0358
2002-03-12
alex
*:[Aa]miga[Oo][Ss]:*:*)
0359
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-amigaos
0360
2005-10-15
alex
exit ;;
0361
2002-03-12
alex
*:[Mm]orph[Oo][Ss]:*:*)
0362
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-morphos
0363
2005-10-15
alex
exit ;;
0364
2002-03-12
alex
*:OS/390:*:*)
0365
2002-03-12
alex
echo i370-ibm-openedition
0366
2005-10-15
alex
exit ;;
0367
2005-01-27
alex
*:z/VM:*:*)
0368
2005-01-27
alex
echo s390-ibm-zvmoe
0369
2005-10-15
alex
exit ;;
0370
2004-03-11
alex
*:OS400:*:*)
0371
2012-02-27
alex
echo powerpc-ibm-os400
0372
2005-10-15
alex
exit ;;
0373
2002-03-12
alex
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
0374
2018-04-01
alex
echo arm-acorn-riscix"$UNAME_RELEASE"
0375
2005-10-15
alex
exit ;;
0376
2014-03-18
alex
arm*:riscos:*:*|arm*:RISCOS:*:*)
0377
2005-10-15
alex
echo arm-unknown-riscos
0378
2005-10-15
alex
exit ;;
0379
2002-03-12
alex
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
0380
2002-03-12
alex
echo hppa1.1-hitachi-hiuxmpp
0381
2005-10-15
alex
exit ;;
0382
2002-03-12
alex
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
0383
2002-03-12
alex
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
0384
2020-01-02
alex
if test "$( (/bin/universe) 2>/dev/null)" = att ; then
0385
2002-03-12
alex
echo pyramid-pyramid-sysv3
0386
2002-03-12
alex
else
0387
2002-03-12
alex
echo pyramid-pyramid-bsd
0388
2002-03-12
alex
fi
0389
2005-10-15
alex
exit ;;
0390
2002-03-12
alex
NILE*:*:*:dcosx)
0391
2002-03-12
alex
echo pyramid-pyramid-svr4
0392
2005-10-15
alex
exit ;;
0393
2003-11-28
alex
DRS?6000:unix:4.0:6*)
0394
2003-11-28
alex
echo sparc-icl-nx6
0395
2005-10-15
alex
exit ;;
0396
2005-01-27
alex
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
0397
2020-01-02
alex
case $(/usr/bin/uname -p) in
0398
2005-10-15
alex
sparc) echo sparc-icl-nx7; exit ;;
0399
2003-07-09
alex
esac ;;
0400
2012-02-27
alex
s390x:SunOS:*:*)
0401
2020-01-02
alex
echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
0402
2012-02-27
alex
exit ;;
0403
2002-03-12
alex
sun4H:SunOS:5.*:*)
0404
2020-01-02
alex
echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
0405
2005-10-15
alex
exit ;;
0406
2002-03-12
alex
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
0407
2020-01-02
alex
echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')"
0408
2005-10-15
alex
exit ;;
0409
2012-02-27
alex
i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
0410
2018-04-01
alex
echo i386-pc-auroraux"$UNAME_RELEASE"
0411
2012-02-27
alex
exit ;;
0412
2008-10-03
alex
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
0413
2020-05-10
alex
set_cc_for_build
0414
2016-11-05
alex
SUN_ARCH=i386
0415
2012-02-27
alex
# If there is a compiler, see if it is configured for 64-bit objects.
0416
2012-02-27
alex
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
0417
2012-02-27
alex
# This test works for both compilers.
0418
2020-01-02
alex
if test "$CC_FOR_BUILD" != no_compiler_found; then
0419
2012-02-27
alex
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
0420
2016-11-05
alex
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
0421
2012-02-27
alex
grep IS_64BIT_ARCH >/dev/null
0422
2012-02-27
alex
then
0423
2016-11-05
alex
SUN_ARCH=x86_64
0424
2012-02-27
alex
fi
0425
2012-02-27
alex
fi
0426
2020-01-02
alex
echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
0427
2005-10-15
alex
exit ;;
0428
2002-03-12
alex
sun4*:SunOS:6*:*)
0429
2002-03-12
alex
# According to config.sub, this is the proper way to canonicalize
0430
2002-03-12
alex
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
0431
2002-03-12
alex
# it's likely to be more like Solaris than SunOS4.
0432
2020-01-02
alex
echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
0433
2005-10-15
alex
exit ;;
0434
2002-03-12
alex
sun4*:SunOS:*:*)
0435
2020-01-02
alex
case "$(/usr/bin/arch -k)" in
0436
2002-03-12
alex
Series*|S4*)
0437
2020-01-02
alex
UNAME_RELEASE=$(uname -v)
0438
2002-03-12
alex
;;
0439
2002-03-12
alex
esac
0440
2002-03-12
alex
# Japanese Language versions have a version number like `4.1.3-JL'.
0441
2020-01-02
alex
echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')"
0442
2005-10-15
alex
exit ;;
0443
2002-03-12
alex
sun3*:SunOS:*:*)
0444
2018-04-01
alex
echo m68k-sun-sunos"$UNAME_RELEASE"
0445
2005-10-15
alex
exit ;;
0446
2002-03-12
alex
sun*:*:4.2BSD:*)
0447
2020-01-02
alex
UNAME_RELEASE=$( (sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null)
0448
2018-04-01
alex
test "x$UNAME_RELEASE" = x && UNAME_RELEASE=3
0449
2020-01-02
alex
case "$(/bin/arch)" in
0450
2002-03-12
alex
sun3)
0451
2018-04-01
alex
echo m68k-sun-sunos"$UNAME_RELEASE"
0452
2002-03-12
alex
;;
0453
2002-03-12
alex
sun4)
0454
2018-04-01
alex
echo sparc-sun-sunos"$UNAME_RELEASE"
0455
2002-03-12
alex
;;
0456
2002-03-12
alex
esac
0457
2005-10-15
alex
exit ;;
0458
2002-03-12
alex
aushp:SunOS:*:*)
0459
2018-04-01
alex
echo sparc-auspex-sunos"$UNAME_RELEASE"
0460
2005-10-15
alex
exit ;;
0461
2002-03-12
alex
# The situation for MiNT is a little confusing. The machine name
0462
2002-03-12
alex
# can be virtually everything (everything which is not
0463
2002-03-12
alex
# "atarist" or "atariste" at least should have a processor
0464
2002-03-12
alex
# > m68000). The system name ranges from "MiNT" over "FreeMiNT"
0465
2002-03-12
alex
# to the lowercase version "mint" (or "freemint"). Finally
0466
2002-03-12
alex
# the system name "TOS" denotes a system which is actually not
0467
2002-03-12
alex
# MiNT. But MiNT is downward compatible to TOS, so this should
0468
2002-03-12
alex
# be no problem.
0469
2002-03-12
alex
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
0470
2018-04-01
alex
echo m68k-atari-mint"$UNAME_RELEASE"
0471
2005-10-15
alex
exit ;;
0472
2002-03-12
alex
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
0473
2018-04-01
alex
echo m68k-atari-mint"$UNAME_RELEASE"
0474
2012-02-27
alex
exit ;;
0475
2002-03-12
alex
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
0476
2018-04-01
alex
echo m68k-atari-mint"$UNAME_RELEASE"
0477
2005-10-15
alex
exit ;;
0478
2002-03-12
alex
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
0479
2018-04-01
alex
echo m68k-milan-mint"$UNAME_RELEASE"
0480
2012-02-27
alex
exit ;;
0481
2002-03-12
alex
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
0482
2018-04-01
alex
echo m68k-hades-mint"$UNAME_RELEASE"
0483
2012-02-27
alex
exit ;;
0484
2002-03-12
alex
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
0485
2018-04-01
alex
echo m68k-unknown-mint"$UNAME_RELEASE"
0486
2012-02-27
alex
exit ;;
0487
2004-12-25
alex
m68k:machten:*:*)
0488
2018-04-01
alex
echo m68k-apple-machten"$UNAME_RELEASE"
0489
2005-10-15
alex
exit ;;
0490
2002-03-12
alex
powerpc:machten:*:*)
0491
2018-04-01
alex
echo powerpc-apple-machten"$UNAME_RELEASE"
0492
2005-10-15
alex
exit ;;
0493
2002-03-12
alex
RISC*:Mach:*:*)
0494
2002-03-12
alex
echo mips-dec-mach_bsd4.3
0495
2005-10-15
alex
exit ;;
0496
2002-03-12
alex
RISC*:ULTRIX:*:*)
0497
2018-04-01
alex
echo mips-dec-ultrix"$UNAME_RELEASE"
0498
2005-10-15
alex
exit ;;
0499
2002-03-12
alex
VAX*:ULTRIX*:*:*)
0500
2018-04-01
alex
echo vax-dec-ultrix"$UNAME_RELEASE"
0501
2005-10-15
alex
exit ;;
0502
2002-03-12
alex
2020:CLIX:*:* | 2430:CLIX:*:*)
0503
2018-04-01
alex
echo clipper-intergraph-clix"$UNAME_RELEASE"
0504
2005-10-15
alex
exit ;;
0505
2002-03-12
alex
mips:*:*:UMIPS | mips:*:*:RISCos)
0506
2020-05-10
alex
set_cc_for_build
0507
2018-04-01
alex
sed 's/^ //' << EOF > "$dummy.c"
0508
2002-03-12
alex
#ifdef __cplusplus
0509
2002-03-12
alex
#include <stdio.h> /* for printf() prototype */
0510
2002-03-12
alex
int main (int argc, char *argv[]) {
0511
2002-03-12
alex
#else
0512
2002-03-12
alex
int main (argc, argv) int argc; char *argv[]; {
0513
2002-03-12
alex
#endif
0514
2002-03-12
alex
#if defined (host_mips) && defined (MIPSEB)
0515
2002-03-12
alex
#if defined (SYSTYPE_SYSV)
0516
2018-04-01
alex
printf ("mips-mips-riscos%ssysv\\n", argv[1]); exit (0);
0517
2002-03-12
alex
#endif
0518
2002-03-12
alex
#if defined (SYSTYPE_SVR4)
0519
2018-04-01
alex
printf ("mips-mips-riscos%ssvr4\\n", argv[1]); exit (0);
0520
2002-03-12
alex
#endif
0521
2002-03-12
alex
#if defined (SYSTYPE_BSD43) || defined(SYSTYPE_BSD)
0522
2018-04-01
alex
printf ("mips-mips-riscos%sbsd\\n", argv[1]); exit (0);
0523
2002-03-12
alex
#endif
0524
2002-03-12
alex
#endif
0525
2002-03-12
alex
exit (-1);
0526
2002-03-12
alex
}
0527
2002-03-12
alex
EOF
0528
2018-04-01
alex
$CC_FOR_BUILD -o "$dummy" "$dummy.c" &&
0529
2020-01-02
alex
dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') &&
0530
2020-01-02
alex
SYSTEM_NAME=$("$dummy" "$dummyarg") &&
0531
2005-10-15
alex
{ echo "$SYSTEM_NAME"; exit; }
0532
2018-04-01
alex
echo mips-mips-riscos"$UNAME_RELEASE"
0533
2005-10-15
alex
exit ;;
0534
2002-03-12
alex
Motorola:PowerMAX_OS:*:*)
0535
2002-03-12
alex
echo powerpc-motorola-powermax
0536
2005-10-15
alex
exit ;;
0537
2003-07-09
alex
Motorola:*:4.3:PL8-*)
0538
2003-07-09
alex
echo powerpc-harris-powermax
0539
2005-10-15
alex
exit ;;
0540
2003-07-09
alex
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
0541
2003-07-09
alex
echo powerpc-harris-powermax
0542
2005-10-15
alex
exit ;;
0543
2002-03-12
alex
Night_Hawk:Power_UNIX:*:*)
0544
2002-03-12
alex
echo powerpc-harris-powerunix
0545
2005-10-15
alex
exit ;;
0546
2002-03-12
alex
m88k:CX/UX:7*:*)
0547
2002-03-12
alex
echo m88k-harris-cxux7
0548
2005-10-15
alex
exit ;;
0549
2002-03-12
alex
m88k:*:4*:R4*)
0550
2002-03-12
alex
echo m88k-motorola-sysv4
0551
2005-10-15
alex
exit ;;
0552
2002-03-12
alex
m88k:*:3*:R3*)
0553
2002-03-12
alex
echo m88k-motorola-sysv3
0554
2005-10-15
alex
exit ;;
0555
2002-03-12
alex
AViiON:dgux:*:*)
0556
2012-02-27
alex
# DG/UX returns AViiON for all architectures
0557
2020-01-02
alex
UNAME_PROCESSOR=$(/usr/bin/uname -p)
0558
2020-01-02
alex
if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110
0559
2002-03-12
alex
then
0560
2020-01-02
alex
if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \
0561
2020-01-02
alex
test "$TARGET_BINARY_INTERFACE"x = x
0562
2002-03-12
alex
then
0563
2018-04-01
alex
echo m88k-dg-dgux"$UNAME_RELEASE"
0564
2002-03-12
alex
else
0565
2018-04-01
alex
echo m88k-dg-dguxbcs"$UNAME_RELEASE"
0566
2002-03-12
alex
fi
0567
2002-03-12
alex
else
0568
2018-04-01
alex
echo i586-dg-dgux"$UNAME_RELEASE"
0569
2002-03-12
alex
fi
0570
2012-02-27
alex
exit ;;
0571
2002-03-12
alex
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
0572
2002-03-12
alex
echo m88k-dolphin-sysv3
0573
2005-10-15
alex
exit ;;
0574
2002-03-12
alex
M88*:*:R3*:*)
0575
2002-03-12
alex
# Delta 88k system running SVR3
0576
2002-03-12
alex
echo m88k-motorola-sysv3
0577
2005-10-15
alex
exit ;;
0578
2002-03-12
alex
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
0579
2002-03-12
alex
echo m88k-tektronix-sysv3
0580
2005-10-15
alex
exit ;;
0581
2002-03-12
alex
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
0582
2002-03-12
alex
echo m68k-tektronix-bsd
0583
2005-10-15
alex
exit ;;
0584
2002-03-12
alex
*:IRIX*:*:*)
0585
2020-01-02
alex
echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')"
0586
2005-10-15
alex
exit ;;
0587
2002-03-12
alex
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
0588
2005-10-15
alex
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
0589
2020-01-02
alex
exit ;; # Note that: echo "'$(uname -s)'" gives 'AIX '
0590
2002-03-12
alex
i*86:AIX:*:*)
0591
2002-03-12
alex
echo i386-ibm-aix
0592
2005-10-15
alex
exit ;;
0593
2002-03-12
alex
ia64:AIX:*:*)
0594
2020-01-02
alex
if test -x /usr/bin/oslevel ; then
0595
2020-01-02
alex
IBM_REV=$(/usr/bin/oslevel)
0596
2002-03-12
alex
else
0597
2018-04-01
alex
IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
0598
2002-03-12
alex
fi
0599
2018-04-01
alex
echo "$UNAME_MACHINE"-ibm-aix"$IBM_REV"
0600
2005-10-15
alex
exit ;;
0601
2002-03-12
alex
*:AIX:2:3)
0602
2002-03-12
alex
if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
0603
2020-05-10
alex
set_cc_for_build
0604
2018-04-01
alex
sed 's/^ //' << EOF > "$dummy.c"
0605
2002-03-12
alex
#include <sys/systemcfg.h>
0606
2002-03-12
alex
0607
2002-03-12
alex
main()
0608
2002-03-12
alex
{
0609
2002-03-12
alex
if (!__power_pc())
0610
2002-03-12
alex
exit(1);
0611
2002-03-12
alex
puts("powerpc-ibm-aix3.2.5");
0612
2002-03-12
alex
exit(0);
0613
2002-03-12
alex
}
0614
2002-03-12
alex
EOF
0615
2020-01-02
alex
if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy")
0616
2005-10-15
alex
then
0617
2005-10-15
alex
echo "$SYSTEM_NAME"
0618
2005-10-15
alex
else
0619
2005-10-15
alex
echo rs6000-ibm-aix3.2.5
0620
2005-10-15
alex
fi
0621
2002-03-12
alex
elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
0622
2002-03-12
alex
echo rs6000-ibm-aix3.2.4
0623
2002-03-12
alex
else
0624
2002-03-12
alex
echo rs6000-ibm-aix3.2
0625
2002-03-12
alex
fi
0626
2005-10-15
alex
exit ;;
0627
2012-02-27
alex
*:AIX:*:[4567])
0628
2020-01-02
alex
IBM_CPU_ID=$(/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }')
0629
2018-04-01
alex
if /usr/sbin/lsattr -El "$IBM_CPU_ID" | grep ' POWER' >/dev/null 2>&1; then
0630
2002-03-12
alex
IBM_ARCH=rs6000
0631
2002-03-12
alex
else
0632
2002-03-12
alex
IBM_ARCH=powerpc
0633
2002-03-12
alex
fi
0634
2020-01-02
alex
if test -x /usr/bin/lslpp ; then
0635
2020-01-02
alex
IBM_REV=$(/usr/bin/lslpp -Lqc bos.rte.libc |
0636
2020-01-02
alex
awk -F: '{ print $3 }' | sed s/[0-9]*$/0/)
0637
2002-03-12
alex
else
0638
2018-04-01
alex
IBM_REV="$UNAME_VERSION.$UNAME_RELEASE"
0639
2002-03-12
alex
fi
0640
2018-04-01
alex
echo "$IBM_ARCH"-ibm-aix"$IBM_REV"
0641
2005-10-15
alex
exit ;;
0642
2002-03-12
alex
*:AIX:*:*)
0643
2002-03-12
alex
echo rs6000-ibm-aix
0644
2005-10-15
alex
exit ;;
0645
2018-04-01
alex
ibmrt:4.4BSD:*|romp-ibm:4.4BSD:*)
0646
2002-03-12
alex
echo romp-ibm-bsd4.4
0647
2005-10-15
alex
exit ;;
0648
2002-03-12
alex
ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
0649
2018-04-01
alex
echo romp-ibm-bsd"$UNAME_RELEASE" # 4.3 with uname added to
0650
2005-10-15
alex
exit ;; # report: romp-ibm BSD 4.3
0651
2002-03-12
alex
*:BOSX:*:*)
0652
2002-03-12
alex
echo rs6000-bull-bosx
0653
2005-10-15
alex
exit ;;
0654
2002-03-12
alex
DPX/2?00:B.O.S.:*:*)
0655
2002-03-12
alex
echo m68k-bull-sysv3
0656
2005-10-15
alex
exit ;;
0657
2002-03-12
alex
9000/[34]??:4.3bsd:1.*:*)
0658
2002-03-12
alex
echo m68k-hp-bsd
0659
2005-10-15
alex
exit ;;
0660
2002-03-12
alex
hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
0661
2002-03-12
alex
echo m68k-hp-bsd4.4
0662
2005-10-15
alex
exit ;;
0663
2002-03-12
alex
9000/[34678]??:HP-UX:*:*)
0664
2020-01-02
alex
HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
0665
2018-04-01
alex
case "$UNAME_MACHINE" in
0666
2018-04-01
alex
9000/31?) HP_ARCH=m68000 ;;
0667
2018-04-01
alex
9000/[34]??) HP_ARCH=m68k ;;
0668
2002-03-12
alex
9000/[678][0-9][0-9])
0669
2020-01-02
alex
if test -x /usr/bin/getconf; then
0670
2020-01-02
alex
sc_cpu_version=$(/usr/bin/getconf SC_CPU_VERSION 2>/dev/null)
0671
2020-01-02
alex
sc_kernel_bits=$(/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null)
0672
2018-04-01
alex
case "$sc_cpu_version" in
0673
2016-11-05
alex
523) HP_ARCH=hppa1.0 ;; # CPU_PA_RISC1_0
0674
2016-11-05
alex
528) HP_ARCH=hppa1.1 ;; # CPU_PA_RISC1_1
0675
2012-02-27
alex
532) # CPU_PA_RISC2_0
0676
2018-04-01
alex
case "$sc_kernel_bits" in
0677
2016-11-05
alex
32) HP_ARCH=hppa2.0n ;;
0678
2016-11-05
alex
64) HP_ARCH=hppa2.0w ;;
0679
2016-11-05
alex
'') HP_ARCH=hppa2.0 ;; # HP-UX 10.20
0680
2012-02-27
alex
esac ;;
0681
2012-02-27
alex
esac
0682
2002-03-12
alex
fi
0683
2020-01-02
alex
if test "$HP_ARCH" = ""; then
0684
2020-05-10
alex
set_cc_for_build
0685
2018-04-01
alex
sed 's/^ //' << EOF > "$dummy.c"
0686
2002-03-12
alex
0687
2012-02-27
alex
#define _HPUX_SOURCE
0688
2012-02-27
alex
#include <stdlib.h>
0689
2012-02-27
alex
#include <unistd.h>
0690
2002-03-12
alex
0691
2012-02-27
alex
int main ()
0692
2012-02-27
alex
{
0693
2012-02-27
alex
#if defined(_SC_KERNEL_BITS)
0694
2012-02-27
alex
long bits = sysconf(_SC_KERNEL_BITS);
0695
2012-02-27
alex
#endif
0696
2012-02-27
alex
long cpu = sysconf (_SC_CPU_VERSION);
0697
2002-03-12
alex
0698
2012-02-27
alex
switch (cpu)
0699
2012-02-27
alex
{
0700
2012-02-27
alex
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
0701
2012-02-27
alex
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
0702
2012-02-27
alex
case CPU_PA_RISC2_0:
0703
2012-02-27
alex
#if defined(_SC_KERNEL_BITS)
0704
2012-02-27
alex
switch (bits)
0705
2012-02-27
alex
{
0706
2012-02-27
alex
case 64: puts ("hppa2.0w"); break;
0707
2012-02-27
alex
case 32: puts ("hppa2.0n"); break;
0708
2012-02-27
alex
default: puts ("hppa2.0"); break;
0709
2012-02-27
alex
} break;
0710
2012-02-27
alex
#else /* !defined(_SC_KERNEL_BITS) */
0711
2012-02-27
alex
puts ("hppa2.0"); break;
0712
2012-02-27
alex
#endif
0713
2012-02-27
alex
default: puts ("hppa1.0"); break;
0714
2012-02-27
alex
}
0715
2012-02-27
alex
exit (0);
0716
2012-02-27
alex
}
0717
2002-03-12
alex
EOF
0718
2020-01-02
alex
(CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy")
0719
2003-07-09
alex
test -z "$HP_ARCH" && HP_ARCH=hppa
0720
2002-03-12
alex
fi ;;
0721
2002-03-12
alex
esac
0722
2020-01-02
alex
if test "$HP_ARCH" = hppa2.0w
0723
2003-07-09
alex
then
0724
2020-05-10
alex
set_cc_for_build
0725
2005-10-15
alex
0726
2005-10-15
alex
# hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
0727
2005-10-15
alex
# 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
0728
2005-10-15
alex
# generating 64-bit code. GNU and HP use different nomenclature:
0729
2005-10-15
alex
#
0730
2005-10-15
alex
# $ CC_FOR_BUILD=cc ./config.guess
0731
2005-10-15
alex
# => hppa2.0w-hp-hpux11.23
0732
2005-10-15
alex
# $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
0733
2005-10-15
alex
# => hppa64-hp-hpux11.23
0734
2005-10-15
alex
0735
2016-11-05
alex
if echo __LP64__ | (CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) |
0736
2012-02-27
alex
grep -q __LP64__
0737
2003-07-09
alex
then
0738
2016-11-05
alex
HP_ARCH=hppa2.0w
0739
2003-07-09
alex
else
0740
2016-11-05
alex
HP_ARCH=hppa64
0741
2003-07-09
alex
fi
0742
2003-07-09
alex
fi
0743
2018-04-01
alex
echo "$HP_ARCH"-hp-hpux"$HPUX_REV"
0744
2005-10-15
alex
exit ;;
0745
2002-03-12
alex
ia64:HP-UX:*:*)
0746
2020-01-02
alex
HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//')
0747
2018-04-01
alex
echo ia64-hp-hpux"$HPUX_REV"
0748
2005-10-15
alex
exit ;;
0749
2002-03-12
alex
3050*:HI-UX:*:*)
0750
2020-05-10
alex
set_cc_for_build
0751
2018-04-01
alex
sed 's/^ //' << EOF > "$dummy.c"
0752
2002-03-12
alex
#include <unistd.h>
0753
2002-03-12
alex
int
0754
2002-03-12
alex
main ()
0755
2002-03-12
alex
{
0756
2002-03-12
alex
long cpu = sysconf (_SC_CPU_VERSION);
0757
2002-03-12
alex
/* The order matters, because CPU_IS_HP_MC68K erroneously returns
0758
2002-03-12
alex
true for CPU_PA_RISC1_0. CPU_IS_PA_RISC returns correct
0759
2002-03-12
alex
results, however. */
0760
2002-03-12
alex
if (CPU_IS_PA_RISC (cpu))
0761
2002-03-12
alex
{
0762
2002-03-12
alex
switch (cpu)
0763
2002-03-12
alex
{
0764
2002-03-12
alex
case CPU_PA_RISC1_0: puts ("hppa1.0-hitachi-hiuxwe2"); break;
0765
2002-03-12
alex
case CPU_PA_RISC1_1: puts ("hppa1.1-hitachi-hiuxwe2"); break;
0766
2002-03-12
alex
case CPU_PA_RISC2_0: puts ("hppa2.0-hitachi-hiuxwe2"); break;
0767
2002-03-12
alex
default: puts ("hppa-hitachi-hiuxwe2"); break;
0768
2002-03-12
alex
}
0769
2002-03-12
alex
}
0770
2002-03-12
alex
else if (CPU_IS_HP_MC68K (cpu))
0771
2002-03-12
alex
puts ("m68k-hitachi-hiuxwe2");
0772
2002-03-12
alex
else puts ("unknown-hitachi-hiuxwe2");
0773
2002-03-12
alex
exit (0);
0774
2002-03-12
alex
}
0775
2002-03-12
alex
EOF
0776
2020-01-02
alex
$CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") &&
0777
2005-10-15
alex
{ echo "$SYSTEM_NAME"; exit; }
0778
2002-03-12
alex
echo unknown-hitachi-hiuxwe2
0779
2005-10-15
alex
exit ;;
0780
2018-04-01
alex
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:*)
0781
2002-03-12
alex
echo hppa1.1-hp-bsd
0782
2005-10-15
alex
exit ;;
0783
2002-03-12
alex
9000/8??:4.3bsd:*:*)
0784
2002-03-12
alex
echo hppa1.0-hp-bsd
0785
2005-10-15
alex
exit ;;
0786
2002-03-12
alex
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
0787
2002-03-12
alex
echo hppa1.0-hp-mpeix
0788
2005-10-15
alex
exit ;;
0789
2018-04-01
alex
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:*)
0790
2002-03-12
alex
echo hppa1.1-hp-osf
0791
2005-10-15
alex
exit ;;
0792
2002-03-12
alex
hp8??:OSF1:*:*)
0793
2002-03-12
alex
echo hppa1.0-hp-osf
0794
2005-10-15
alex
exit ;;
0795
2002-03-12
alex
i*86:OSF1:*:*)
0796
2020-01-02
alex
if test -x /usr/sbin/sysversion ; then
0797
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-osf1mk
0798
2002-03-12
alex
else
0799
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-osf1
0800
2002-03-12
alex
fi
0801
2005-10-15
alex
exit ;;
0802
2002-03-12
alex
parisc*:Lites*:*:*)
0803
2002-03-12
alex
echo hppa1.1-hp-lites
0804
2005-10-15
alex
exit ;;
0805
2002-03-12
alex
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
0806
2002-03-12
alex
echo c1-convex-bsd
0807
2012-02-27
alex
exit ;;
0808
2002-03-12
alex
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
0809
2002-03-12
alex
if getsysinfo -f scalar_acc
0810
2002-03-12
alex
then echo c32-convex-bsd
0811
2002-03-12
alex
else echo c2-convex-bsd
0812
2002-03-12
alex
fi
0813
2012-02-27
alex
exit ;;
0814
2002-03-12
alex
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
0815
2002-03-12
alex
echo c34-convex-bsd
0816
2012-02-27
alex
exit ;;
0817
2002-03-12
alex
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
0818
2002-03-12
alex
echo c38-convex-bsd
0819
2012-02-27
alex
exit ;;
0820
2002-03-12
alex
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
0821
2002-03-12
alex
echo c4-convex-bsd
0822
2012-02-27
alex
exit ;;
0823
2002-03-12
alex
CRAY*Y-MP:*:*:*)
0824
2018-04-01
alex
echo ymp-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
0825
2005-10-15
alex
exit ;;
0826
2002-03-12
alex
CRAY*[A-Z]90:*:*:*)
0827
2018-04-01
alex
echo "$UNAME_MACHINE"-cray-unicos"$UNAME_RELEASE" \
0828
2002-03-12
alex
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
0829
2002-03-12
alex
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
0830
2002-03-12
alex
-e 's/\.[^.]*$/.X/'
0831
2005-10-15
alex
exit ;;
0832
2002-03-12
alex
CRAY*TS:*:*:*)
0833
2018-04-01
alex
echo t90-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
0834
2005-10-15
alex
exit ;;
0835
2002-03-12
alex
CRAY*T3E:*:*:*)
0836
2018-04-01
alex
echo alphaev5-cray-unicosmk"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
0837
2005-10-15
alex
exit ;;
0838
2002-03-12
alex
CRAY*SV1:*:*:*)
0839
2018-04-01
alex
echo sv1-cray-unicos"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
0840
2005-10-15
alex
exit ;;
0841
2003-07-09
alex
*:UNICOS/mp:*:*)
0842
2018-04-01
alex
echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/'
0843
2005-10-15
alex
exit ;;
0844
2002-03-12
alex
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
0845
2020-01-02
alex
FUJITSU_PROC=$(uname -m | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)
0846
2020-01-02
alex
FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///')
0847
2020-01-02
alex
FUJITSU_REL=$(echo "$UNAME_RELEASE" | sed -e 's/ /_/')
0848
2012-02-27
alex
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
0849
2012-02-27
alex
exit ;;
0850
2004-03-11
alex
5000:UNIX_System_V:4.*:*)
0851
2020-01-02
alex
FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///')
0852
2020-01-02
alex
FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/')
0853
2012-02-27
alex
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
0854
2005-10-15
alex
exit ;;
0855
2002-03-12
alex
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
0856
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-bsdi"$UNAME_RELEASE"
0857
2005-10-15
alex
exit ;;
0858
2002-03-12
alex
sparc*:BSD/OS:*:*)
0859
2018-04-01
alex
echo sparc-unknown-bsdi"$UNAME_RELEASE"
0860
2005-10-15
alex
exit ;;
0861
2002-03-12
alex
*:BSD/OS:*:*)
0862
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE"
0863
2005-10-15
alex
exit ;;
0864
2020-05-10
alex
arm:FreeBSD:*:*)
0865
2020-01-02
alex
UNAME_PROCESSOR=$(uname -p)
0866
2020-05-10
alex
set_cc_for_build
0867
2020-05-10
alex
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
0868
2020-05-10
alex
| grep -q __ARM_PCS_VFP
0869
2020-05-10
alex
then
0870
2020-01-02
alex
echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi
0871
2020-05-10
alex
else
0872
2020-01-02
alex
echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf
0873
2020-05-10
alex
fi
0874
2020-05-10
alex
exit ;;
0875
2003-11-28
alex
*:FreeBSD:*:*)
0876
2020-01-02
alex
UNAME_PROCESSOR=$(/usr/bin/uname -p)
0877
2018-04-01
alex
case "$UNAME_PROCESSOR" in
0878
2006-09-11
alex
amd64)
0879
2018-04-01
alex
UNAME_PROCESSOR=x86_64 ;;
0880
2018-04-01
alex
i386)
0881
2018-04-01
alex
UNAME_PROCESSOR=i586 ;;
0882
2006-07-23
alex
esac
0883
2020-01-02
alex
echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
0884
2005-10-15
alex
exit ;;
0885
2002-03-12
alex
i*:CYGWIN*:*)
0886
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-cygwin
0887
2005-10-15
alex
exit ;;
0888
2012-09-16
alex
*:MINGW64*:*)
0889
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-mingw64
0890
2012-09-16
alex
exit ;;
0891
2007-05-26
alex
*:MINGW*:*)
0892
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-mingw32
0893
2005-10-15
alex
exit ;;
0894
2014-03-18
alex
*:MSYS*:*)
0895
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-msys
0896
2012-02-27
alex
exit ;;
0897
2002-03-12
alex
i*:PW*:*)
0898
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-pw32
0899
2005-10-15
alex
exit ;;
0900
2012-02-27
alex
*:Interix*:*)
0901
2018-04-01
alex
case "$UNAME_MACHINE" in
0902
2008-10-03
alex
x86)
0903
2018-04-01
alex
echo i586-pc-interix"$UNAME_RELEASE"
0904
2007-05-26
alex
exit ;;
0905
2012-02-27
alex
authenticamd | genuineintel | EM64T)
0906
2018-04-01
alex
echo x86_64-unknown-interix"$UNAME_RELEASE"
0907
2007-05-26
alex
exit ;;
0908
2008-10-03
alex
IA64)
0909
2018-04-01
alex
echo ia64-unknown-interix"$UNAME_RELEASE"
0910
2008-10-03
alex
exit ;;
0911
2007-05-26
alex
esac ;;
0912
2002-03-12
alex
i*:UWIN*:*)
0913
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-uwin
0914
2005-10-15
alex
exit ;;
0915
2005-10-15
alex
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
0916
2020-05-10
alex
echo x86_64-pc-cygwin
0917
2005-10-15
alex
exit ;;
0918
2002-03-12
alex
prep*:SunOS:5.*:*)
0919
2020-01-02
alex
echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')"
0920
2005-10-15
alex
exit ;;
0921
2002-03-12
alex
*:GNU:*:*)
0922
2003-11-28
alex
# the GNU system
0923
2020-01-02
alex
echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')"
0924
2005-10-15
alex
exit ;;
0925
2003-11-28
alex
*:GNU/*:*:*)
0926
2003-11-28
alex
# other systems with GNU libc and userland
0927
2020-01-02
alex
echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC"
0928
2005-10-15
alex
exit ;;
0929
2020-05-10
alex
*:Minix:*:*)
0930
2020-05-10
alex
echo "$UNAME_MACHINE"-unknown-minix
0931
2005-10-15
alex
exit ;;
0932
2012-02-27
alex
aarch64:Linux:*:*)
0933
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0934
2012-02-27
alex
exit ;;
0935
2012-02-27
alex
aarch64_be:Linux:*:*)
0936
2012-02-27
alex
UNAME_MACHINE=aarch64_be
0937
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0938
2012-02-27
alex
exit ;;
0939
2012-02-27
alex
alpha:Linux:*:*)
0940
2020-01-02
alex
case $(sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' /proc/cpuinfo 2>/dev/null) in
0941
2012-02-27
alex
EV5) UNAME_MACHINE=alphaev5 ;;
0942
2012-02-27
alex
EV56) UNAME_MACHINE=alphaev56 ;;
0943
2012-02-27
alex
PCA56) UNAME_MACHINE=alphapca56 ;;
0944
2012-02-27
alex
PCA57) UNAME_MACHINE=alphapca56 ;;
0945
2012-02-27
alex
EV6) UNAME_MACHINE=alphaev6 ;;
0946
2012-02-27
alex
EV67) UNAME_MACHINE=alphaev67 ;;
0947
2012-02-27
alex
EV68*) UNAME_MACHINE=alphaev68 ;;
0948
2012-02-27
alex
esac
0949
2012-02-27
alex
objdump --private-headers /bin/sh | grep -q ld.so.1
0950
2016-11-05
alex
if test "$?" = 0 ; then LIBC=gnulibc1 ; fi
0951
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0952
2012-02-27
alex
exit ;;
0953
2014-03-18
alex
arc:Linux:*:* | arceb:Linux:*:*)
0954
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0955
2014-03-18
alex
exit ;;
0956
2002-03-12
alex
arm*:Linux:*:*)
0957
2020-05-10
alex
set_cc_for_build
0958
2008-10-03
alex
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
0959
2008-10-03
alex
| grep -q __ARM_EABI__
0960
2008-10-03
alex
then
0961
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0962
2008-10-03
alex
else
0963
2012-02-27
alex
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
0964
2012-02-27
alex
| grep -q __ARM_PCS_VFP
0965
2012-02-27
alex
then
0966
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabi
0967
2012-02-27
alex
else
0968
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"eabihf
0969
2012-02-27
alex
fi
0970
2008-10-03
alex
fi
0971
2005-10-15
alex
exit ;;
0972
2006-09-11
alex
avr32*:Linux:*:*)
0973
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0974
2006-09-11
alex
exit ;;
0975
2003-07-09
alex
cris:Linux:*:*)
0976
2018-04-01
alex
echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
0977
2005-10-15
alex
exit ;;
0978
2005-01-27
alex
crisv32:Linux:*:*)
0979
2018-04-01
alex
echo "$UNAME_MACHINE"-axis-linux-"$LIBC"
0980
2005-10-15
alex
exit ;;
0981
2016-11-05
alex
e2k:Linux:*:*)
0982
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0983
2016-11-05
alex
exit ;;
0984
2005-01-27
alex
frv:Linux:*:*)
0985
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0986
2005-10-15
alex
exit ;;
0987
2012-02-27
alex
hexagon:Linux:*:*)
0988
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0989
2012-02-27
alex
exit ;;
0990
2012-02-27
alex
i*86:Linux:*:*)
0991
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-linux-"$LIBC"
0992
2012-02-27
alex
exit ;;
0993
2002-03-12
alex
ia64:Linux:*:*)
0994
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0995
2005-10-15
alex
exit ;;
0996
2016-11-05
alex
k1om:Linux:*:*)
0997
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
0998
2016-11-05
alex
exit ;;
0999
2020-01-02
alex
loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*)
1000
2020-01-02
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1001
2020-01-02
alex
exit ;;
1002
2004-12-25
alex
m32r*:Linux:*:*)
1003
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1004
2005-10-15
alex
exit ;;
1005
2002-03-12
alex
m68*:Linux:*:*)
1006
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1007
2005-10-15
alex
exit ;;
1008
2012-02-27
alex
mips:Linux:*:* | mips64:Linux:*:*)
1009
2020-05-10
alex
set_cc_for_build
1010
2020-05-10
alex
IS_GLIBC=0
1011
2020-05-10
alex
test x"${LIBC}" = xgnu && IS_GLIBC=1
1012
2018-04-01
alex
sed 's/^ //' << EOF > "$dummy.c"
1013
2002-03-12
alex
#undef CPU
1014
2020-05-10
alex
#undef mips
1015
2020-05-10
alex
#undef mipsel
1016
2020-05-10
alex
#undef mips64
1017
2020-05-10
alex
#undef mips64el
1018
2020-05-10
alex
#if ${IS_GLIBC} && defined(_ABI64)
1019
2020-05-10
alex
LIBCABI=gnuabi64
1020
2020-05-10
alex
#else
1021
2020-05-10
alex
#if ${IS_GLIBC} && defined(_ABIN32)
1022
2020-05-10
alex
LIBCABI=gnuabin32
1023
2020-05-10
alex
#else
1024
2020-05-10
alex
LIBCABI=${LIBC}
1025
2020-05-10
alex
#endif
1026
2020-05-10
alex
#endif
1027
2020-05-10
alex
1028
2020-05-10
alex
#if ${IS_GLIBC} && defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1029
2020-05-10
alex
CPU=mipsisa64r6
1030
2020-05-10
alex
#else
1031
2020-05-10
alex
#if ${IS_GLIBC} && !defined(__mips64) && defined(__mips_isa_rev) && __mips_isa_rev>=6
1032
2020-05-10
alex
CPU=mipsisa32r6
1033
2020-05-10
alex
#else
1034
2020-05-10
alex
#if defined(__mips64)
1035
2020-05-10
alex
CPU=mips64
1036
2020-05-10
alex
#else
1037
2020-05-10
alex
CPU=mips
1038
2020-05-10
alex
#endif
1039
2020-05-10
alex
#endif
1040
2020-05-10
alex
#endif
1041
2020-05-10
alex
1042
2003-07-09
alex
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
1043
2020-05-10
alex
MIPS_ENDIAN=el
1044
2002-03-12
alex
#else
1045
2003-07-09
alex
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
1046
2020-05-10
alex
MIPS_ENDIAN=
1047
2002-03-12
alex
#else
1048
2020-05-10
alex
MIPS_ENDIAN=
1049
2002-03-12
alex
#endif
1050
2003-07-09
alex
#endif
1051
2002-03-12
alex
EOF
1052
2020-01-02
alex
eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')"
1053
2020-05-10
alex
test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; }
1054
2002-03-12
alex
;;
1055
2017-01-20
alex
mips64el:Linux:*:*)
1056
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1057
2017-01-20
alex
exit ;;
1058
2014-07-14
alex
openrisc*:Linux:*:*)
1059
2018-04-01
alex
echo or1k-unknown-linux-"$LIBC"
1060
2014-03-18
alex
exit ;;
1061
2014-07-14
alex
or32:Linux:*:* | or1k*:Linux:*:*)
1062
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1063
2005-10-15
alex
exit ;;
1064
2012-02-27
alex
padre:Linux:*:*)
1065
2018-04-01
alex
echo sparc-unknown-linux-"$LIBC"
1066
2005-10-15
alex
exit ;;
1067
2012-02-27
alex
parisc64:Linux:*:* | hppa64:Linux:*:*)
1068
2018-04-01
alex
echo hppa64-unknown-linux-"$LIBC"
1069
2005-10-15
alex
exit ;;
1070
2002-03-12
alex
parisc:Linux:*:* | hppa:Linux:*:*)
1071
2002-03-12
alex
# Look for CPU level
1072
2020-01-02
alex
case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in
1073
2018-04-01
alex
PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;;
1074
2018-04-01
alex
PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;;
1075
2018-04-01
alex
*) echo hppa-unknown-linux-"$LIBC" ;;
1076
2002-03-12
alex
esac
1077
2005-10-15
alex
exit ;;
1078
2012-02-27
alex
ppc64:Linux:*:*)
1079
2018-04-01
alex
echo powerpc64-unknown-linux-"$LIBC"
1080
2005-10-15
alex
exit ;;
1081
2012-02-27
alex
ppc:Linux:*:*)
1082
2018-04-01
alex
echo powerpc-unknown-linux-"$LIBC"
1083
2012-02-27
alex
exit ;;
1084
2014-03-18
alex
ppc64le:Linux:*:*)
1085
2018-04-01
alex
echo powerpc64le-unknown-linux-"$LIBC"
1086
2014-03-18
alex
exit ;;
1087
2014-03-18
alex
ppcle:Linux:*:*)
1088
2018-04-01
alex
echo powerpcle-unknown-linux-"$LIBC"
1089
2014-03-18
alex
exit ;;
1090
2017-01-20
alex
riscv32:Linux:*:* | riscv64:Linux:*:*)
1091
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1092
2017-01-20
alex
exit ;;
1093
2002-03-12
alex
s390:Linux:*:* | s390x:Linux:*:*)
1094
2018-04-01
alex
echo "$UNAME_MACHINE"-ibm-linux-"$LIBC"
1095
2005-10-15
alex
exit ;;
1096
2003-11-28
alex
sh64*:Linux:*:*)
1097
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1098
2005-10-15
alex
exit ;;
1099
2002-03-12
alex
sh*:Linux:*:*)
1100
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1101
2005-10-15
alex
exit ;;
1102
2002-03-12
alex
sparc:Linux:*:* | sparc64:Linux:*:*)
1103
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1104
2005-10-15
alex
exit ;;
1105
2012-02-27
alex
tile*:Linux:*:*)
1106
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1107
2012-02-27
alex
exit ;;
1108
2006-07-23
alex
vax:Linux:*:*)
1109
2018-04-01
alex
echo "$UNAME_MACHINE"-dec-linux-"$LIBC"
1110
2006-07-23
alex
exit ;;
1111
2002-03-12
alex
x86_64:Linux:*:*)
1112
2020-01-02
alex
set_cc_for_build
1113
2020-01-02
alex
LIBCABI=$LIBC
1114
2020-01-02
alex
if test "$CC_FOR_BUILD" != no_compiler_found; then
1115
2020-01-02
alex
if (echo '#ifdef __ILP32__'; echo IS_X32; echo '#endif') | \
1116
2020-01-02
alex
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1117
2020-01-02
alex
grep IS_X32 >/dev/null
1118
2020-01-02
alex
then
1119
2020-01-02
alex
LIBCABI="$LIBC"x32
1120
2020-01-02
alex
fi
1121
2020-01-02
alex
fi
1122
2020-01-02
alex
echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI"
1123
2005-10-15
alex
exit ;;
1124
2008-10-03
alex
xtensa*:Linux:*:*)
1125
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-linux-"$LIBC"
1126
2007-05-26
alex
exit ;;
1127
2002-03-12
alex
i*86:DYNIX/ptx:4*:*)
1128
2002-03-12
alex
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1129
2002-03-12
alex
# earlier versions are messed up and put the nodename in both
1130
2002-03-12
alex
# sysname and nodename.
1131
2002-03-12
alex
echo i386-sequent-sysv4
1132
2005-10-15
alex
exit ;;
1133
2002-03-12
alex
i*86:UNIX_SV:4.2MP:2.*)
1134
2012-02-27
alex
# Unixware is an offshoot of SVR4, but it has its own version
1135
2012-02-27
alex
# number series starting with 2...
1136
2012-02-27
alex
# I am not positive that other SVR4 systems won't match this,
1137
2002-03-12
alex
# I just have to hope. -- rms.
1138
2012-02-27
alex
# Use sysv4.2uw... so that sysv4* matches it.
1139
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-sysv4.2uw"$UNAME_VERSION"
1140
2005-10-15
alex
exit ;;
1141
2003-07-09
alex
i*86:OS/2:*:*)
1142
2003-07-09
alex
# If we were able to find `uname', then EMX Unix compatibility
1143
2003-07-09
alex
# is probably installed.
1144
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-os2-emx
1145
2005-10-15
alex
exit ;;
1146
2003-07-09
alex
i*86:XTS-300:*:STOP)
1147
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-stop
1148
2005-10-15
alex
exit ;;
1149
2003-07-09
alex
i*86:atheos:*:*)
1150
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-atheos
1151
2005-10-15
alex
exit ;;
1152
2005-10-15
alex
i*86:syllable:*:*)
1153
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-syllable
1154
2005-10-15
alex
exit ;;
1155
2012-02-27
alex
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1156
2018-04-01
alex
echo i386-unknown-lynxos"$UNAME_RELEASE"
1157
2005-10-15
alex
exit ;;
1158
2003-07-09
alex
i*86:*DOS:*:*)
1159
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-msdosdjgpp
1160
2005-10-15
alex
exit ;;
1161
2018-04-01
alex
i*86:*:4.*:*)
1162
2020-01-02
alex
UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//')
1163
2002-03-12
alex
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1164
2018-04-01
alex
echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL"
1165
2002-03-12
alex
else
1166
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-sysv"$UNAME_REL"
1167
2002-03-12
alex
fi
1168
2005-10-15
alex
exit ;;
1169
2005-10-15
alex
i*86:*:5:[678]*)
1170
2012-02-27
alex
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1171
2020-01-02
alex
case $(/bin/uname -X | grep "^Machine") in
1172
2002-03-12
alex
*486*) UNAME_MACHINE=i486 ;;
1173
2002-03-12
alex
*Pentium) UNAME_MACHINE=i586 ;;
1174
2002-03-12
alex
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1175
2002-03-12
alex
esac
1176
2020-05-10
alex
echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}"
1177
2005-10-15
alex
exit ;;
1178
2002-03-12
alex
i*86:*:3.2:*)
1179
2002-03-12
alex
if test -f /usr/options/cb.name; then
1180
2020-01-02
alex
UNAME_REL=$(sed -n 's/.*Version //p' </usr/options/cb.name)
1181
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-isc"$UNAME_REL"
1182
2002-03-12
alex
elif /bin/uname -X 2>/dev/null >/dev/null ; then
1183
2020-01-02
alex
UNAME_REL=$( (/bin/uname -X|grep Release|sed -e 's/.*= //'))
1184
2003-07-09
alex
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1185
2003-07-09
alex
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
1186
2002-03-12
alex
&& UNAME_MACHINE=i586
1187
2003-07-09
alex
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
1188
2002-03-12
alex
&& UNAME_MACHINE=i686
1189
2003-07-09
alex
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
1190
2002-03-12
alex
&& UNAME_MACHINE=i686
1191
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-sco"$UNAME_REL"
1192
2002-03-12
alex
else
1193
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-sysv32
1194
2002-03-12
alex
fi
1195
2005-10-15
alex
exit ;;
1196
2002-03-12
alex
pc:*:*:*)
1197
2002-03-12
alex
# Left here for compatibility:
1198
2012-02-27
alex
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1199
2012-02-27
alex
# the processor, so we play safe by assuming i586.
1200
2012-02-27
alex
# Note: whatever this is, it MUST be the same as what config.sub
1201
2016-11-05
alex
# prints for the "djgpp" host, or else GDB configure will decide that
1202
2012-02-27
alex
# this is a cross-build.
1203
2012-02-27
alex
echo i586-pc-msdosdjgpp
1204
2012-02-27
alex
exit ;;
1205
2002-03-12
alex
Intel:Mach:3*:*)
1206
2002-03-12
alex
echo i386-pc-mach3
1207
2005-10-15
alex
exit ;;
1208
2002-03-12
alex
paragon:*:*:*)
1209
2002-03-12
alex
echo i860-intel-osf1
1210
2005-10-15
alex
exit ;;
1211
2002-03-12
alex
i860:*:4.*:*) # i860-SVR4
1212
2002-03-12
alex
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1213
2018-04-01
alex
echo i860-stardent-sysv"$UNAME_RELEASE" # Stardent Vistra i860-SVR4
1214
2002-03-12
alex
else # Add other i860-SVR4 vendors below as they are discovered.
1215
2018-04-01
alex
echo i860-unknown-sysv"$UNAME_RELEASE" # Unknown i860-SVR4
1216
2002-03-12
alex
fi
1217
2005-10-15
alex
exit ;;
1218
2002-03-12
alex
mini*:CTIX:SYS*5:*)
1219
2002-03-12
alex
# "miniframe"
1220
2002-03-12
alex
echo m68010-convergent-sysv
1221
2005-10-15
alex
exit ;;
1222
2003-07-09
alex
mc68k:UNIX:SYSTEM5:3.51m)
1223
2003-07-09
alex
echo m68k-convergent-sysv
1224
2005-10-15
alex
exit ;;
1225
2003-07-09
alex
M680?0:D-NIX:5.3:*)
1226
2003-07-09
alex
echo m68k-diab-dnix
1227
2005-10-15
alex
exit ;;
1228
2004-12-25
alex
M68*:*:R3V[5678]*:*)
1229
2005-10-15
alex
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1230
2004-12-25
alex
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)
1231
2002-03-12
alex
OS_REL=''
1232
2002-03-12
alex
test -r /etc/.relid \
1233
2020-01-02
alex
&& OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
1234
2002-03-12
alex
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1235
2018-04-01
alex
&& { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1236
2002-03-12
alex
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1237
2018-04-01
alex
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1238
2002-03-12
alex
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1239
2012-02-27
alex
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1240
2012-02-27
alex
&& { echo i486-ncr-sysv4; exit; } ;;
1241
2012-02-27
alex
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1242
2012-02-27
alex
OS_REL='.3'
1243
2012-02-27
alex
test -r /etc/.relid \
1244
2020-01-02
alex
&& OS_REL=.$(sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid)
1245
2012-02-27
alex
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1246
2018-04-01
alex
&& { echo i486-ncr-sysv4.3"$OS_REL"; exit; }
1247
2012-02-27
alex
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1248
2018-04-01
alex
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; }
1249
2012-02-27
alex
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1250
2018-04-01
alex
&& { echo i586-ncr-sysv4.3"$OS_REL"; exit; } ;;
1251
2002-03-12
alex
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1252
2018-04-01
alex
echo m68k-unknown-lynxos"$UNAME_RELEASE"
1253
2005-10-15
alex
exit ;;
1254
2002-03-12
alex
mc68030:UNIX_System_V:4.*:*)
1255
2002-03-12
alex
echo m68k-atari-sysv4
1256
2005-10-15
alex
exit ;;
1257
2002-03-12
alex
TSUNAMI:LynxOS:2.*:*)
1258
2018-04-01
alex
echo sparc-unknown-lynxos"$UNAME_RELEASE"
1259
2005-10-15
alex
exit ;;
1260
2002-03-12
alex
rs6000:LynxOS:2.*:*)
1261
2018-04-01
alex
echo rs6000-unknown-lynxos"$UNAME_RELEASE"
1262
2005-10-15
alex
exit ;;
1263
2012-02-27
alex
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1264
2018-04-01
alex
echo powerpc-unknown-lynxos"$UNAME_RELEASE"
1265
2005-10-15
alex
exit ;;
1266
2002-03-12
alex
SM[BE]S:UNIX_SV:*:*)
1267
2018-04-01
alex
echo mips-dde-sysv"$UNAME_RELEASE"
1268
2005-10-15
alex
exit ;;
1269
2002-03-12
alex
RM*:ReliantUNIX-*:*:*)
1270
2002-03-12
alex
echo mips-sni-sysv4
1271
2005-10-15
alex
exit ;;
1272
2002-03-12
alex
RM*:SINIX-*:*:*)
1273
2002-03-12
alex
echo mips-sni-sysv4
1274
2005-10-15
alex
exit ;;
1275
2002-03-12
alex
*:SINIX-*:*:*)
1276
2002-03-12
alex
if uname -p 2>/dev/null >/dev/null ; then
1277
2020-01-02
alex
UNAME_MACHINE=$( (uname -p) 2>/dev/null)
1278
2018-04-01
alex
echo "$UNAME_MACHINE"-sni-sysv4
1279
2002-03-12
alex
else
1280
2002-03-12
alex
echo ns32k-sni-sysv
1281
2002-03-12
alex
fi
1282
2005-10-15
alex
exit ;;
1283
2012-02-27
alex
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1284
2012-02-27
alex
# says <Richard.M.Bartel@ccMail.Census.GOV>
1285
2012-02-27
alex
echo i586-unisys-sysv4
1286
2012-02-27
alex
exit ;;
1287
2002-03-12
alex
*:UNIX_System_V:4*:FTX*)
1288
2002-03-12
alex
# From Gerald Hewes <hewes@openmarket.com>.
1289
2002-03-12
alex
# How about differentiating between stratus architectures? -djm
1290
2002-03-12
alex
echo hppa1.1-stratus-sysv4
1291
2005-10-15
alex
exit ;;
1292
2002-03-12
alex
*:*:*:FTX*)
1293
2002-03-12
alex
# From seanf@swdc.stratus.com.
1294
2002-03-12
alex
echo i860-stratus-sysv4
1295
2005-10-15
alex
exit ;;
1296
2005-07-24
alex
i*86:VOS:*:*)
1297
2005-07-24
alex
# From Paul.Green@stratus.com.
1298
2018-04-01
alex
echo "$UNAME_MACHINE"-stratus-vos
1299
2005-10-15
alex
exit ;;
1300
2002-03-12
alex
*:VOS:*:*)
1301
2002-03-12
alex
# From Paul.Green@stratus.com.
1302
2002-03-12
alex
echo hppa1.1-stratus-vos
1303
2005-10-15
alex
exit ;;
1304
2002-03-12
alex
mc68*:A/UX:*:*)
1305
2018-04-01
alex
echo m68k-apple-aux"$UNAME_RELEASE"
1306
2005-10-15
alex
exit ;;
1307
2002-03-12
alex
news*:NEWS-OS:6*:*)
1308
2002-03-12
alex
echo mips-sony-newsos6
1309
2005-10-15
alex
exit ;;
1310
2002-03-12
alex
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1311
2020-01-02
alex
if test -d /usr/nec; then
1312
2018-04-01
alex
echo mips-nec-sysv"$UNAME_RELEASE"
1313
2002-03-12
alex
else
1314
2018-04-01
alex
echo mips-unknown-sysv"$UNAME_RELEASE"
1315
2002-03-12
alex
fi
1316
2012-02-27
alex
exit ;;
1317
2002-03-12
alex
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1318
2002-03-12
alex
echo powerpc-be-beos
1319
2005-10-15
alex
exit ;;
1320
2002-03-12
alex
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1321
2002-03-12
alex
echo powerpc-apple-beos
1322
2005-10-15
alex
exit ;;
1323
2002-03-12
alex
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1324
2002-03-12
alex
echo i586-pc-beos
1325
2005-10-15
alex
exit ;;
1326
2012-02-27
alex
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1327
2012-02-27
alex
echo i586-pc-haiku
1328
2012-02-27
alex
exit ;;
1329
2012-09-16
alex
x86_64:Haiku:*:*)
1330
2012-09-16
alex
echo x86_64-unknown-haiku
1331
2012-09-16
alex
exit ;;
1332
2002-03-12
alex
SX-4:SUPER-UX:*:*)
1333
2018-04-01
alex
echo sx4-nec-superux"$UNAME_RELEASE"
1334
2005-10-15
alex
exit ;;
1335
2002-03-12
alex
SX-5:SUPER-UX:*:*)
1336
2018-04-01
alex
echo sx5-nec-superux"$UNAME_RELEASE"
1337
2005-10-15
alex
exit ;;
1338
2003-07-09
alex
SX-6:SUPER-UX:*:*)
1339
2018-04-01
alex
echo sx6-nec-superux"$UNAME_RELEASE"
1340
2005-10-15
alex
exit ;;
1341
2007-05-26
alex
SX-7:SUPER-UX:*:*)
1342
2018-04-01
alex
echo sx7-nec-superux"$UNAME_RELEASE"
1343
2007-05-26
alex
exit ;;
1344
2007-05-26
alex
SX-8:SUPER-UX:*:*)
1345
2018-04-01
alex
echo sx8-nec-superux"$UNAME_RELEASE"
1346
2007-05-26
alex
exit ;;
1347
2007-05-26
alex
SX-8R:SUPER-UX:*:*)
1348
2018-04-01
alex
echo sx8r-nec-superux"$UNAME_RELEASE"
1349
2007-05-26
alex
exit ;;
1350
2016-11-05
alex
SX-ACE:SUPER-UX:*:*)
1351
2018-04-01
alex
echo sxace-nec-superux"$UNAME_RELEASE"
1352
2016-11-05
alex
exit ;;
1353
2002-03-12
alex
Power*:Rhapsody:*:*)
1354
2018-04-01
alex
echo powerpc-apple-rhapsody"$UNAME_RELEASE"
1355
2005-10-15
alex
exit ;;
1356
2002-03-12
alex
*:Rhapsody:*:*)
1357
2018-04-01
alex
echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE"
1358
2005-10-15
alex
exit ;;
1359
2020-01-02
alex
arm64:Darwin:*:*)
1360
2020-01-02
alex
echo aarch64-apple-darwin"$UNAME_RELEASE"
1361
2020-01-02
alex
exit ;;
1362
2002-03-12
alex
*:Darwin:*:*)
1363
2020-01-02
alex
UNAME_PROCESSOR=$(uname -p)
1364
2020-05-10
alex
case $UNAME_PROCESSOR in
1365
2020-05-10
alex
unknown) UNAME_PROCESSOR=powerpc ;;
1366
2020-05-10
alex
esac
1367
2020-05-10
alex
if command -v xcode-select > /dev/null 2> /dev/null && \
1368
2020-05-10
alex
! xcode-select --print-path > /dev/null 2> /dev/null ; then
1369
2020-05-10
alex
# Avoid executing cc if there is no toolchain installed as
1370
2020-05-10
alex
# cc will be a stub that puts up a graphical alert
1371
2020-05-10
alex
# prompting the user to install developer tools.
1372
2020-05-10
alex
CC_FOR_BUILD=no_compiler_found
1373
2020-05-10
alex
else
1374
2020-05-10
alex
set_cc_for_build
1375
2014-03-18
alex
fi
1376
2020-01-02
alex
if test "$CC_FOR_BUILD" != no_compiler_found; then
1377
2020-05-10
alex
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1378
2020-05-10
alex
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1379
2020-05-10
alex
grep IS_64BIT_ARCH >/dev/null
1380
2020-05-10
alex
then
1381
2020-05-10
alex
case $UNAME_PROCESSOR in
1382
2020-05-10
alex
i386) UNAME_PROCESSOR=x86_64 ;;
1383
2020-05-10
alex
powerpc) UNAME_PROCESSOR=powerpc64 ;;
1384
2020-05-10
alex
esac
1385
2014-03-18
alex
fi
1386
2020-05-10
alex
# On 10.4-10.6 one might compile for PowerPC via gcc -arch ppc
1387
2020-05-10
alex
if (echo '#ifdef __POWERPC__'; echo IS_PPC; echo '#endif') | \
1388
2020-05-10
alex
(CCOPTS="" $CC_FOR_BUILD -E - 2>/dev/null) | \
1389
2020-05-10
alex
grep IS_PPC >/dev/null
1390
2020-05-10
alex
then
1391
2020-05-10
alex
UNAME_PROCESSOR=powerpc
1392
2020-05-10
alex
fi
1393
2014-03-18
alex
elif test "$UNAME_PROCESSOR" = i386 ; then
1394
2020-05-10
alex
# uname -m returns i386 or x86_64
1395
2020-05-10
alex
UNAME_PROCESSOR=$UNAME_MACHINE
1396
2014-03-18
alex
fi
1397
2018-04-01
alex
echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE"
1398
2005-10-15
alex
exit ;;
1399
2002-03-12
alex
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1400
2020-01-02
alex
UNAME_PROCESSOR=$(uname -p)
1401
2016-11-05
alex
if test "$UNAME_PROCESSOR" = x86; then
1402
2003-07-09
alex
UNAME_PROCESSOR=i386
1403
2002-03-12
alex
UNAME_MACHINE=pc
1404
2002-03-12
alex
fi
1405
2018-04-01
alex
echo "$UNAME_PROCESSOR"-"$UNAME_MACHINE"-nto-qnx"$UNAME_RELEASE"
1406
2005-10-15
alex
exit ;;
1407
2002-03-12
alex
*:QNX:*:4*)
1408
2002-03-12
alex
echo i386-pc-qnx
1409
2005-10-15
alex
exit ;;
1410
2018-04-01
alex
NEO-*:NONSTOP_KERNEL:*:*)
1411
2018-04-01
alex
echo neo-tandem-nsk"$UNAME_RELEASE"
1412
2012-02-27
alex
exit ;;
1413
2012-09-16
alex
NSE-*:NONSTOP_KERNEL:*:*)
1414
2018-04-01
alex
echo nse-tandem-nsk"$UNAME_RELEASE"
1415
2005-10-15
alex
exit ;;
1416
2018-04-01
alex
NSR-*:NONSTOP_KERNEL:*:*)
1417
2018-04-01
alex
echo nsr-tandem-nsk"$UNAME_RELEASE"
1418
2005-10-15
alex
exit ;;
1419
2018-04-01
alex
NSV-*:NONSTOP_KERNEL:*:*)
1420
2018-04-01
alex
echo nsv-tandem-nsk"$UNAME_RELEASE"
1421
2018-04-01
alex
exit ;;
1422
2018-04-01
alex
NSX-*:NONSTOP_KERNEL:*:*)
1423
2018-04-01
alex
echo nsx-tandem-nsk"$UNAME_RELEASE"
1424
2018-04-01
alex
exit ;;
1425
2002-03-12
alex
*:NonStop-UX:*:*)
1426
2002-03-12
alex
echo mips-compaq-nonstopux
1427
2005-10-15
alex
exit ;;
1428
2002-03-12
alex
BS2000:POSIX*:*:*)
1429
2002-03-12
alex
echo bs2000-siemens-sysv
1430
2005-10-15
alex
exit ;;
1431
2002-03-12
alex
DS/*:UNIX_System_V:*:*)
1432
2018-04-01
alex
echo "$UNAME_MACHINE"-"$UNAME_SYSTEM"-"$UNAME_RELEASE"
1433
2005-10-15
alex
exit ;;
1434
2002-03-12
alex
*:Plan9:*:*)
1435
2002-03-12
alex
# "uname -m" is not consistent, so use $cputype instead. 386
1436
2002-03-12
alex
# is converted to i386 for consistency with other x86
1437
2002-03-12
alex
# operating systems.
1438
2020-05-10
alex
# shellcheck disable=SC2154
1439
2016-11-05
alex
if test "$cputype" = 386; then
1440
2002-03-12
alex
UNAME_MACHINE=i386
1441
2002-03-12
alex
else
1442
2002-03-12
alex
UNAME_MACHINE="$cputype"
1443
2002-03-12
alex
fi
1444
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-plan9
1445
2005-10-15
alex
exit ;;
1446
2002-03-12
alex
*:TOPS-10:*:*)
1447
2002-03-12
alex
echo pdp10-unknown-tops10
1448
2005-10-15
alex
exit ;;
1449
2002-03-12
alex
*:TENEX:*:*)
1450
2002-03-12
alex
echo pdp10-unknown-tenex
1451
2005-10-15
alex
exit ;;
1452
2002-03-12
alex
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1453
2002-03-12
alex
echo pdp10-dec-tops20
1454
2005-10-15
alex
exit ;;
1455
2002-03-12
alex
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1456
2002-03-12
alex
echo pdp10-xkl-tops20
1457
2005-10-15
alex
exit ;;
1458
2002-03-12
alex
*:TOPS-20:*:*)
1459
2002-03-12
alex
echo pdp10-unknown-tops20
1460
2005-10-15
alex
exit ;;
1461
2002-03-12
alex
*:ITS:*:*)
1462
2002-03-12
alex
echo pdp10-unknown-its
1463
2005-10-15
alex
exit ;;
1464
2003-11-28
alex
SEI:*:*:SEIUX)
1465
2018-04-01
alex
echo mips-sei-seiux"$UNAME_RELEASE"
1466
2005-10-15
alex
exit ;;
1467
2004-12-25
alex
*:DragonFly:*:*)
1468
2020-01-02
alex
echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')"
1469
2005-10-15
alex
exit ;;
1470
2004-12-25
alex
*:*VMS:*:*)
1471
2020-01-02
alex
UNAME_MACHINE=$( (uname -p) 2>/dev/null)
1472
2018-04-01
alex
case "$UNAME_MACHINE" in
1473
2005-10-15
alex
A*) echo alpha-dec-vms ; exit ;;
1474
2005-10-15
alex
I*) echo ia64-dec-vms ; exit ;;
1475
2005-10-15
alex
V*) echo vax-dec-vms ; exit ;;
1476
2005-01-27
alex
esac ;;
1477
2005-01-27
alex
*:XENIX:*:SysV)
1478
2005-01-27
alex
echo i386-pc-xenix
1479
2005-10-15
alex
exit ;;
1480
2005-10-15
alex
i*86:skyos:*:*)
1481
2020-01-02
alex
echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')"
1482
2005-10-15
alex
exit ;;
1483
2006-07-23
alex
i*86:rdos:*:*)
1484
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-rdos
1485
2006-07-23
alex
exit ;;
1486
2012-02-27
alex
i*86:AROS:*:*)
1487
2018-04-01
alex
echo "$UNAME_MACHINE"-pc-aros
1488
2012-02-27
alex
exit ;;
1489
2012-02-27
alex
x86_64:VMkernel:*:*)
1490
2018-04-01
alex
echo "$UNAME_MACHINE"-unknown-esx
1491
2012-02-27
alex
exit ;;
1492
2016-11-05
alex
amd64:Isilon\ OneFS:*:*)
1493
2016-11-05
alex
echo x86_64-unknown-onefs
1494
2016-11-05
alex
exit ;;
1495
2020-05-10
alex
*:Unleashed:*:*)
1496
2020-05-10
alex
echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE"
1497
2020-05-10
alex
exit ;;
1498
2002-03-12
alex
esac
1499
2002-03-12
alex
1500
2020-05-10
alex
# No uname command or uname output not recognized.
1501
2020-05-10
alex
set_cc_for_build
1502
2020-05-10
alex
cat > "$dummy.c" <<EOF
1503
2020-05-10
alex
#ifdef _SEQUENT_
1504
2020-05-10
alex
#include <sys/types.h>
1505
2020-05-10
alex
#include <sys/utsname.h>
1506
2020-05-10
alex
#endif
1507
2020-05-10
alex
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1508
2020-05-10
alex
#if defined (vax) || defined (__vax) || defined (__vax__) || defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1509
2020-05-10
alex
#include <signal.h>
1510
2020-05-10
alex
#if defined(_SIZE_T_) || defined(SIGLOST)
1511
2020-05-10
alex
#include <sys/utsname.h>
1512
2020-05-10
alex
#endif
1513
2020-05-10
alex
#endif
1514
2020-05-10
alex
#endif
1515
2020-05-10
alex
main ()
1516
2020-05-10
alex
{
1517
2020-05-10
alex
#if defined (sony)
1518
2020-05-10
alex
#if defined (MIPSEB)
1519
2020-05-10
alex
/* BFD wants "bsd" instead of "newsos". Perhaps BFD should be changed,
1520
2020-05-10
alex
I don't know.... */
1521
2020-05-10
alex
printf ("mips-sony-bsd\n"); exit (0);
1522
2020-05-10
alex
#else
1523
2020-05-10
alex
#include <sys/param.h>
1524
2020-05-10
alex
printf ("m68k-sony-newsos%s\n",
1525
2020-05-10
alex
#ifdef NEWSOS4
1526
2020-05-10
alex
"4"
1527
2020-05-10
alex
#else
1528
2020-05-10
alex
""
1529
2020-05-10
alex
#endif
1530
2020-05-10
alex
); exit (0);
1531
2020-05-10
alex
#endif
1532
2020-05-10
alex
#endif
1533
2020-05-10
alex
1534
2020-05-10
alex
#if defined (NeXT)
1535
2020-05-10
alex
#if !defined (__ARCHITECTURE__)
1536
2020-05-10
alex
#define __ARCHITECTURE__ "m68k"
1537
2020-05-10
alex
#endif
1538
2020-05-10
alex
int version;
1539
2020-01-02
alex
version=$( (hostinfo | sed -n 's/.*NeXT Mach \([0-9]*\).*/\1/p') 2>/dev/null);
1540
2020-05-10
alex
if (version < 4)
1541
2020-05-10
alex
printf ("%s-next-nextstep%d\n", __ARCHITECTURE__, version);
1542
2020-05-10
alex
else
1543
2020-05-10
alex
printf ("%s-next-openstep%d\n", __ARCHITECTURE__, version);
1544
2020-05-10
alex
exit (0);
1545
2020-05-10
alex
#endif
1546
2020-05-10
alex
1547
2020-05-10
alex
#if defined (MULTIMAX) || defined (n16)
1548
2020-05-10
alex
#if defined (UMAXV)
1549
2020-05-10
alex
printf ("ns32k-encore-sysv\n"); exit (0);
1550
2020-05-10
alex
#else
1551
2020-05-10
alex
#if defined (CMU)
1552
2020-05-10
alex
printf ("ns32k-encore-mach\n"); exit (0);
1553
2020-05-10
alex
#else
1554
2020-05-10
alex
printf ("ns32k-encore-bsd\n"); exit (0);
1555
2020-05-10
alex
#endif
1556
2020-05-10
alex
#endif
1557
2020-05-10
alex
#endif
1558
2020-05-10
alex
1559
2020-05-10
alex
#if defined (__386BSD__)
1560
2020-05-10
alex
printf ("i386-pc-bsd\n"); exit (0);
1561
2020-05-10
alex
#endif
1562
2020-05-10
alex
1563
2020-05-10
alex
#if defined (sequent)
1564
2020-05-10
alex
#if defined (i386)
1565
2020-05-10
alex
printf ("i386-sequent-dynix\n"); exit (0);
1566
2020-05-10
alex
#endif
1567
2020-05-10
alex
#if defined (ns32000)
1568
2020-05-10
alex
printf ("ns32k-sequent-dynix\n"); exit (0);
1569
2020-05-10
alex
#endif
1570
2020-05-10
alex
#endif
1571
2020-05-10
alex
1572
2020-05-10
alex
#if defined (_SEQUENT_)
1573
2020-05-10
alex
struct utsname un;
1574
2020-05-10
alex
1575
2020-05-10
alex
uname(&un);
1576
2020-05-10
alex
if (strncmp(un.version, "V2", 2) == 0) {
1577
2020-05-10
alex
printf ("i386-sequent-ptx2\n"); exit (0);
1578
2020-05-10
alex
}
1579
2020-05-10
alex
if (strncmp(un.version, "V1", 2) == 0) { /* XXX is V1 correct? */
1580
2020-05-10
alex
printf ("i386-sequent-ptx1\n"); exit (0);
1581
2020-05-10
alex
}
1582
2020-05-10
alex
printf ("i386-sequent-ptx\n"); exit (0);
1583
2020-05-10
alex
#endif
1584
2020-05-10
alex
1585
2020-05-10
alex
#if defined (vax)
1586
2020-05-10
alex
#if !defined (ultrix)
1587
2020-05-10
alex
#include <sys/param.h>
1588
2020-05-10
alex
#if defined (BSD)
1589
2020-05-10
alex
#if BSD == 43
1590
2020-05-10
alex
printf ("vax-dec-bsd4.3\n"); exit (0);
1591
2020-05-10
alex
#else
1592
2020-05-10
alex
#if BSD == 199006
1593
2020-05-10
alex
printf ("vax-dec-bsd4.3reno\n"); exit (0);
1594
2020-05-10
alex
#else
1595
2020-05-10
alex
printf ("vax-dec-bsd\n"); exit (0);
1596
2020-05-10
alex
#endif
1597
2020-05-10
alex
#endif
1598
2020-05-10
alex
#else
1599
2020-05-10
alex
printf ("vax-dec-bsd\n"); exit (0);
1600
2020-05-10
alex
#endif
1601
2020-05-10
alex
#else
1602
2020-05-10
alex
#if defined(_SIZE_T_) || defined(SIGLOST)
1603
2020-05-10
alex
struct utsname un;
1604
2020-05-10
alex
uname (&un);
1605
2020-05-10
alex
printf ("vax-dec-ultrix%s\n", un.release); exit (0);
1606
2020-05-10
alex
#else
1607
2020-05-10
alex
printf ("vax-dec-ultrix\n"); exit (0);
1608
2020-05-10
alex
#endif
1609
2020-05-10
alex
#endif
1610
2020-05-10
alex
#endif
1611
2020-05-10
alex
#if defined(ultrix) || defined(_ultrix) || defined(__ultrix) || defined(__ultrix__)
1612
2020-05-10
alex
#if defined(mips) || defined(__mips) || defined(__mips__) || defined(MIPS) || defined(__MIPS__)
1613
2020-05-10
alex
#if defined(_SIZE_T_) || defined(SIGLOST)
1614
2020-05-10
alex
struct utsname *un;
1615
2020-05-10
alex
uname (&un);
1616
2020-05-10
alex
printf ("mips-dec-ultrix%s\n", un.release); exit (0);
1617
2020-05-10
alex
#else
1618
2020-05-10
alex
printf ("mips-dec-ultrix\n"); exit (0);
1619
2020-05-10
alex
#endif
1620
2020-05-10
alex
#endif
1621
2020-05-10
alex
#endif
1622
2020-05-10
alex
1623
2020-05-10
alex
#if defined (alliant) && defined (i860)
1624
2020-05-10
alex
printf ("i860-alliant-bsd\n"); exit (0);
1625
2020-05-10
alex
#endif
1626
2020-05-10
alex
1627
2020-05-10
alex
exit (1);
1628
2020-05-10
alex
}
1629
2020-05-10
alex
EOF
1630
2020-05-10
alex
1631
2020-01-02
alex
$CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null && SYSTEM_NAME=$($dummy) &&
1632
2020-05-10
alex
{ echo "$SYSTEM_NAME"; exit; }
1633
2020-05-10
alex
1634
2020-05-10
alex
# Apollos put the system type in the environment.
1635
2020-05-10
alex
test -d /usr/apollo && { echo "$ISP-apollo-$SYSTYPE"; exit; }
1636
2020-05-10
alex
1637
2018-04-01
alex
echo "$0: unable to guess system type" >&2
1638
2018-04-01
alex
1639
2018-04-01
alex
case "$UNAME_MACHINE:$UNAME_SYSTEM" in
1640
2018-04-01
alex
mips:Linux | mips64:Linux)
1641
2018-04-01
alex
# If we got here on MIPS GNU/Linux, output extra information.
1642
2018-04-01
alex
cat >&2 <<EOF
1643
2018-04-01
alex
1644
2018-04-01
alex
NOTE: MIPS GNU/Linux systems require a C compiler to fully recognize
1645
2018-04-01
alex
the system type. Please install a C compiler and try again.
1646
2018-04-01
alex
EOF
1647
2018-04-01
alex
;;
1648
2018-04-01
alex
esac
1649
2018-04-01
alex
1650
2002-03-12
alex
cat >&2 <<EOF
1651
2002-03-12
alex
1652
2017-01-20
alex
This script (version $timestamp), has failed to recognize the
1653
2018-04-01
alex
operating system you are using. If your script is old, overwrite *all*
1654
2018-04-01
alex
copies of config.guess and config.sub with the latest versions from:
1655
2002-03-12
alex
1656
2020-01-02
alex
https://git.savannah.gnu.org/cgit/config.git/plain/config.guess
1657
2005-07-24
alex
and
1658
2020-01-02
alex
https://git.savannah.gnu.org/cgit/config.git/plain/config.sub
1659
2020-05-10
alex
EOF
1660
2002-03-12
alex
1661
2020-01-02
alex
year=$(echo $timestamp | sed 's,-.*,,')
1662
2020-05-10
alex
# shellcheck disable=SC2003
1663
2020-01-02
alex
if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then
1664
2020-05-10
alex
cat >&2 <<EOF
1665
2020-05-10
alex
1666
2017-01-20
alex
If $0 has already been updated, send the following data and any
1667
2017-01-20
alex
information you think might be pertinent to config-patches@gnu.org to
1668
2017-01-20
alex
provide the necessary information to handle your system.
1669
2002-03-12
alex
1670
2002-03-12
alex
config.guess timestamp = $timestamp
1671
2002-03-12
alex
1672
2020-01-02
alex
uname -m = $( (uname -m) 2>/dev/null || echo unknown)
1673
2020-01-02
alex
uname -r = $( (uname -r) 2>/dev/null || echo unknown)
1674
2020-01-02
alex
uname -s = $( (uname -s) 2>/dev/null || echo unknown)
1675
2020-01-02
alex
uname -v = $( (uname -v) 2>/dev/null || echo unknown)
1676
2002-03-12
alex
1677
2020-01-02
alex
/usr/bin/uname -p = $( (/usr/bin/uname -p) 2>/dev/null)
1678
2020-01-02
alex
/bin/uname -X = $( (/bin/uname -X) 2>/dev/null)
1679
2002-03-12
alex
1680
2020-01-02
alex
hostinfo = $( (hostinfo) 2>/dev/null)
1681
2020-01-02
alex
/bin/universe = $( (/bin/universe) 2>/dev/null)
1682
2020-01-02
alex
/usr/bin/arch -k = $( (/usr/bin/arch -k) 2>/dev/null)
1683
2020-01-02
alex
/bin/arch = $( (/bin/arch) 2>/dev/null)
1684
2020-01-02
alex
/usr/bin/oslevel = $( (/usr/bin/oslevel) 2>/dev/null)
1685
2020-01-02
alex
/usr/convex/getsysinfo = $( (/usr/convex/getsysinfo) 2>/dev/null)
1686
2002-03-12
alex
1687
2018-04-01
alex
UNAME_MACHINE = "$UNAME_MACHINE"
1688
2018-04-01
alex
UNAME_RELEASE = "$UNAME_RELEASE"
1689
2018-04-01
alex
UNAME_SYSTEM = "$UNAME_SYSTEM"
1690
2018-04-01
alex
UNAME_VERSION = "$UNAME_VERSION"
1691
2002-03-12
alex
EOF
1692
2020-05-10
alex
fi
1693
2002-03-12
alex
1694
2002-03-12
alex
exit 1
1695
2002-03-12
alex
1696
2002-03-12
alex
# Local variables:
1697
2018-04-01
alex
# eval: (add-hook 'before-save-hook 'time-stamp)
1698
2002-03-12
alex
# time-stamp-start: "timestamp='"
1699
2002-03-12
alex
# time-stamp-format: "%:y-%02m-%02d"
1700
2002-03-12
alex
# time-stamp-end: "'"
1701
2002-03-12
alex
# End:
IRCNow