2
2
# Attempt to guess a canonical system name.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
4
# Free Software Foundation, Inc.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
8
8
# This file is free software; you can redistribute it and/or modify it
9
9
# under the terms of the GNU General Public License as published by
24
24
# configuration script generated by Autoconf, you may include it under
25
25
# the same distribution terms that you use for the rest of that program.
27
# Originally written by Per Bothner <bothner@cygnus.com>.
27
# Originally written by Per Bothner <per@bothner.com>.
28
28
# Please send patches to <config-patches@gnu.org>. Submit a context
29
29
# diff and a properly formatted ChangeLog entry.
93
trap 'rm -f $dummy.c $dummy.o $dummy.rel $dummy; exit 1' 1 2 15
95
# CC_FOR_BUILD -- compiler used by this script.
93
# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
94
# compiler to aid in system detection is discouraged as it requires
95
# temporary files to be created and, as you can see below, it is a
96
# headache to deal with in a portable fashion.
96
98
# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
97
99
# use `HOST_CC' if defined, but it is deprecated.
99
set_cc_for_build='case $CC_FOR_BUILD,$HOST_CC,$CC in
100
,,) echo "int dummy(){}" > $dummy.c ;
101
for c in cc gcc c89 ; do
102
($c $dummy.c -c -o $dummy.o) >/dev/null 2>&1 ;
103
if test $? = 0 ; then
101
# Portable tmp directory creation inspired by the Autoconf team.
104
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
105
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
107
{ tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
108
{ test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
109
{ tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
110
{ echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
112
tmpfiles="$dummy.c $dummy.o $dummy.rel $dummy" ;
113
case $CC_FOR_BUILD,$HOST_CC,$CC in
114
,,) echo "int x;" > $dummy.c ;
115
for c in cc gcc c89 c99 ; do
116
if ($c -c -o $dummy.o $dummy.c) >/dev/null 2>&1 ; then
104
117
CC_FOR_BUILD="$c"; break ;
107
rm -f $dummy.c $dummy.o $dummy.rel ;
108
120
if test x"$CC_FOR_BUILD" = x ; then
109
121
CC_FOR_BUILD=no_compiler_found ;
112
124
,,*) CC_FOR_BUILD=$CC ;;
113
125
,*,*) CC_FOR_BUILD=$HOST_CC ;;
116
128
# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
117
129
# (ghazi@noc.rutgers.edu 1994-08-24)
135
147
# object file format. This provides both forward
136
148
# compatibility and a consistent mechanism for selecting the
137
149
# object file format.
138
# Determine the machine/vendor (is the vendor relevant).
139
case "${UNAME_MACHINE}" in
140
amiga) machine=m68k-unknown ;;
141
arm32) machine=arm-unknown ;;
142
atari*) machine=m68k-atari ;;
143
sun3*) machine=m68k-sun ;;
144
mac68k) machine=m68k-apple ;;
145
macppc) machine=powerpc-apple ;;
146
hp3[0-9][05]) machine=m68k-hp ;;
147
ibmrt|romp-ibm) machine=romp-ibm ;;
148
sparc*) machine=`uname -p`-unknown ;;
149
*) machine=${UNAME_MACHINE}-unknown ;;
151
# Note: NetBSD doesn't particularly care about the vendor
152
# portion of the name. We always set it to "unknown".
153
sysctl="sysctl -n hw.machine_arch"
154
UNAME_MACHINE_ARCH=`(/sbin/$sysctl 2>/dev/null || \
155
/usr/sbin/$sysctl 2>/dev/null || echo unknown)`
156
case "${UNAME_MACHINE_ARCH}" in
157
armeb) machine=armeb-unknown ;;
158
arm*) machine=arm-unknown ;;
159
sh3el) machine=shl-unknown ;;
160
sh3eb) machine=sh-unknown ;;
161
*) machine=${UNAME_MACHINE_ARCH}-unknown ;;
151
163
# The Operating System including object format, if it has switched
152
164
# to ELF recently, or will in the future.
153
case "${UNAME_MACHINE}" in
154
i386|sparc|amiga|arm*|hp300|mvme68k|vax|atari|luna68k|mac68k|news68k|next68k|pc532|sun3*|x68k)
165
case "${UNAME_MACHINE_ARCH}" in
166
arm*|i386|m68k|ns32k|sh3*|sparc|vax)
155
167
eval $set_cc_for_build
156
168
if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
157
169
| grep __ELF__ >/dev/null
171
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
183
# Debian GNU/NetBSD machines have a different userland, and
184
# thus, need a distinct triplet. However, they do not need
185
# kernel version information, so it can be replaced with a
186
# suitable tag, in the style of linux-gnu.
187
case "${UNAME_VERSION}" in
192
release=`echo ${UNAME_RELEASE}|sed -e 's/[-_].*/\./'`
172
195
# Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM:
173
196
# contains redundant information, the shorter form:
174
197
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
175
198
echo "${machine}-${os}${release}"
201
echo x86_64-unknown-openbsd${UNAME_RELEASE}
177
203
amiga:OpenBSD:*:*)
178
204
echo m68k-unknown-openbsd${UNAME_RELEASE}
181
207
echo mipsel-unknown-openbsd${UNAME_RELEASE}
210
echo arm-unknown-openbsd${UNAME_RELEASE}
183
212
hp300:OpenBSD:*:*)
184
213
echo m68k-unknown-openbsd${UNAME_RELEASE}
214
246
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
249
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
252
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
255
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
217
if test $UNAME_RELEASE = "V4.0"; then
258
case $UNAME_RELEASE in
218
260
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
263
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
266
# According to Compaq, /usr/sbin/psrinfo has been available on
267
# OSF/1 and Tru64 systems produced since 1995. I hope that
268
# covers most systems running today. This code pipes the CPU
269
# types through head -n 1, so we only detect the type of CPU 0.
270
ALPHA_CPU_TYPE=`/usr/sbin/psrinfo -v | sed -n -e 's/^ The alpha \(.*\) processor.*$/\1/p' | head -n 1`
271
case "$ALPHA_CPU_TYPE" in
273
UNAME_MACHINE="alpha" ;;
275
UNAME_MACHINE="alpha" ;;
276
"LCA4 (21066/21068)")
277
UNAME_MACHINE="alpha" ;;
279
UNAME_MACHINE="alphaev5" ;;
281
UNAME_MACHINE="alphaev56" ;;
283
UNAME_MACHINE="alphapca56" ;;
285
UNAME_MACHINE="alphapca57" ;;
287
UNAME_MACHINE="alphaev6" ;;
289
UNAME_MACHINE="alphaev67" ;;
291
UNAME_MACHINE="alphaev68" ;;
293
UNAME_MACHINE="alphaev68" ;;
295
UNAME_MACHINE="alphaev68" ;;
296
"EV6.9A (21264/EV69A)")
297
UNAME_MACHINE="alphaev69" ;;
299
UNAME_MACHINE="alphaev7" ;;
301
UNAME_MACHINE="alphaev79" ;;
303
# A Pn.n version is a patched version.
220
304
# A Vn.n version is a released version.
221
305
# A Tn.n version is a released field test version.
222
306
# A Xn.n version is an unreleased experimental baselevel.
223
307
# 1.2 uses "1.2" for uname -r.
227
.byte 37,100,45,37,120,10,0 # "%d-%x\n"
234
.frame \$30,16,\$26,0
237
.long 0x47e03d80 # implver \$0
239
.long 0x47e20c21 # amask \$2,\$1
249
eval $set_cc_for_build
250
$CC_FOR_BUILD $dummy.s -o $dummy 2>/dev/null
251
if test "$?" = 0 ; then
254
UNAME_MACHINE="alpha"
257
UNAME_MACHINE="alphaev5"
260
UNAME_MACHINE="alphaev56"
263
UNAME_MACHINE="alphapca56"
266
UNAME_MACHINE="alphaev6"
269
UNAME_MACHINE="alphaev67"
272
UNAME_MACHINE="alphaev68"
276
rm -f $dummy.s $dummy
277
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
308
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
279
313
Alpha\ *:Windows_NT*:*)
280
314
# How do we know it's Interix rather than the generic POSIX subsystem?
339
386
echo m68k-sun-sunos${UNAME_RELEASE}
342
UNAME_RELEASE=`(head -1 /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
389
UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
343
390
test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
344
391
case "`/bin/arch`" in
420
$CC_FOR_BUILD $dummy.c -o $dummy \
421
&& ./$dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
422
&& rm -f $dummy.c $dummy && exit 0
423
rm -f $dummy.c $dummy
470
$CC_FOR_BUILD -o $dummy $dummy.c \
471
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
424
473
echo mips-mips-riscos${UNAME_RELEASE}
426
475
Motorola:PowerMAX_OS:*:*)
427
476
echo powerpc-motorola-powermax
478
Motorola:*:4.3:PL8-*)
479
echo powerpc-harris-powermax
481
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
482
echo powerpc-harris-powermax
429
484
Night_Hawk:Power_UNIX:*:*)
430
485
echo powerpc-harris-powerunix
600
(CCOPTS= $CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null) && HP_ARCH=`./$dummy`
601
if test -z "$HP_ARCH"; then HP_ARCH=hppa; fi
602
rm -f $dummy.c $dummy
654
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
655
test -z "$HP_ARCH" && HP_ARCH=hppa
658
if [ ${HP_ARCH} = "hppa2.0w" ]
660
# avoid double evaluation of $set_cc_for_build
661
test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
662
if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
605
669
echo ${HP_ARCH}-hp-hpux${HPUX_REV}
698
758
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
701
echo alpha-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
704
761
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
707
764
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
710
echo cray2-cray-unicos
767
echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
712
769
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
713
770
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
714
771
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
715
772
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
716
773
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
775
5000:UNIX_System_V:4.*:*)
776
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
777
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
778
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
718
780
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
719
781
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
725
787
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
728
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
790
# Determine whether the default compiler uses glibc.
791
eval $set_cc_for_build
792
sed 's/^ //' << EOF >$dummy.c
793
#include <features.h>
800
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
801
# GNU/KFreeBSD systems have a "k" prefix to indicate we are using
802
# FreeBSD's kernel, but not the complete OS.
803
case ${LIBC} in gnu) kernel_only='k' ;; esac
804
echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
731
807
echo ${UNAME_MACHINE}-pc-cygwin
737
813
echo ${UNAME_MACHINE}-pc-pw32
816
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
818
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
819
echo i${UNAME_MACHINE}-pc-mks
739
821
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
740
822
# How do we know it's Interix rather than the generic POSIX subsystem?
741
823
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
742
824
# UNAME_MACHINE based on the output of uname instead of i386?
746
828
echo ${UNAME_MACHINE}-pc-uwin
752
834
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
755
838
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
841
# other systems with GNU libc and userland
842
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
758
845
echo ${UNAME_MACHINE}-pc-minix
761
848
echo ${UNAME_MACHINE}-unknown-linux-gnu
851
echo cris-axis-linux-gnu
764
echo ${UNAME_MACHINE}-unknown-linux
854
echo ${UNAME_MACHINE}-unknown-linux-gnu
857
echo ${UNAME_MACHINE}-unknown-linux-gnu
767
860
echo ${UNAME_MACHINE}-unknown-linux-gnu
770
case `sed -n '/^byte/s/^.*: \(.*\) endian/\1/p' < /proc/cpuinfo` in
771
big) echo mips-unknown-linux-gnu && exit 0 ;;
772
little) echo mipsel-unknown-linux-gnu && exit 0 ;;
863
eval $set_cc_for_build
864
sed 's/^ //' << EOF >$dummy.c
868
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
871
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
878
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
879
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
882
eval $set_cc_for_build
883
sed 's/^ //' << EOF >$dummy.c
887
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
890
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
897
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
898
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
776
901
echo powerpc-unknown-linux-gnu
819
947
# The BFD linker knows what the default object file format is, so
820
948
# first see if it will tell us. cd to the root directory to prevent
821
949
# problems with other programs or directories called `ld' in the path.
822
ld_supported_targets=`cd /; ld --help 2>&1 \
950
# Set LC_ALL=C to ensure ld outputs messages in English.
951
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
823
952
| sed -ne '/supported targets:/!d
825
954
s/.*supported targets: *//
844
973
# Determine whether the default compiler is a.out or elf
845
974
eval $set_cc_for_build
847
#include <features.h>
849
#include <stdio.h> /* for printf() prototype */
850
int main (int argc, char *argv[]) {
852
int main (argc, argv) int argc; char *argv[]; {
857
printf ("%s-pc-linux-gnu\n", argv[1]);
859
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
862
printf ("%s-pc-linux-gnulibc1\n", argv[1]);
865
printf ("%s-pc-linux-gnuaout\n", argv[1]);
975
sed 's/^ //' << EOF >$dummy.c
976
#include <features.h>
988
#ifdef __INTEL_COMPILER
870
$CC_FOR_BUILD $dummy.c -o $dummy 2>/dev/null && ./$dummy "${UNAME_MACHINE}" && rm -f $dummy.c $dummy && exit 0
871
rm -f $dummy.c $dummy
998
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
999
test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
872
1000
test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
874
1002
i*86:DYNIX/ptx:4*:*)
885
1013
# Use sysv4.2uw... so that sysv4* matches it.
886
1014
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1017
# If we were able to find `uname', then EMX Unix compatibility
1018
# is probably installed.
1019
echo ${UNAME_MACHINE}-pc-os2-emx
1021
i*86:XTS-300:*:STOP)
1022
echo ${UNAME_MACHINE}-unknown-stop
1025
echo ${UNAME_MACHINE}-unknown-atheos
1028
echo ${UNAME_MACHINE}-pc-syllable
1030
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1031
echo i386-unknown-lynxos${UNAME_RELEASE}
1034
echo ${UNAME_MACHINE}-pc-msdosdjgpp
888
1036
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
889
1037
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
890
1038
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
906
1054
UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
907
1055
echo ${UNAME_MACHINE}-pc-isc$UNAME_REL
908
1056
elif /bin/uname -X 2>/dev/null >/dev/null ; then
909
UNAME_REL=`(/bin/uname -X|egrep Release|sed -e 's/.*= //')`
910
(/bin/uname -X|egrep i80486 >/dev/null) && UNAME_MACHINE=i486
911
(/bin/uname -X|egrep '^Machine.*Pentium' >/dev/null) \
1057
UNAME_REL=`(/bin/uname -X|grep Release|sed -e 's/.*= //')`
1058
(/bin/uname -X|grep i80486 >/dev/null) && UNAME_MACHINE=i486
1059
(/bin/uname -X|grep '^Machine.*Pentium' >/dev/null) \
912
1060
&& UNAME_MACHINE=i586
913
(/bin/uname -X|egrep '^Machine.*Pent ?II' >/dev/null) \
1061
(/bin/uname -X|grep '^Machine.*Pent *II' >/dev/null) \
914
1062
&& UNAME_MACHINE=i686
915
(/bin/uname -X|egrep '^Machine.*Pentium Pro' >/dev/null) \
1063
(/bin/uname -X|grep '^Machine.*Pentium Pro' >/dev/null) \
916
1064
&& UNAME_MACHINE=i686
917
1065
echo ${UNAME_MACHINE}-pc-sco$UNAME_REL
919
1067
echo ${UNAME_MACHINE}-pc-sysv32
923
echo ${UNAME_MACHINE}-pc-msdosdjgpp
926
1071
# Left here for compatibility:
927
1072
# uname -m prints for DJGPP always 'pc', but it prints nothing about
946
1091
echo m68010-convergent-sysv
1093
mc68k:UNIX:SYSTEM5:3.51m)
1094
echo m68k-convergent-sysv
948
1099
M68*:*:R3V[567]*:*)
949
1100
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
950
3[34]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0)
1101
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)
952
1103
test -r /etc/.relid \
953
1104
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1045
1196
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1048
echo `uname -p`-apple-darwin${UNAME_RELEASE}
1200
*86) UNAME_PROCESSOR=i686 ;;
1201
powerpc) UNAME_PROCESSOR=powerpc ;;
1203
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1050
1205
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1051
if test "${UNAME_MACHINE}" = "x86pc"; then
1206
UNAME_PROCESSOR=`uname -p`
1207
if test "$UNAME_PROCESSOR" = "x86"; then
1208
UNAME_PROCESSOR=i386
1052
1209
UNAME_MACHINE=pc
1054
echo `uname -p`-${UNAME_MACHINE}-nto-qnx
1211
echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
1057
1214
echo i386-pc-qnx
1059
NSR-[KW]:NONSTOP_KERNEL:*:*)
1216
NSR-?:NONSTOP_KERNEL:*:*)
1060
1217
echo nsr-tandem-nsk${UNAME_RELEASE}
1062
1219
*:NonStop-UX:*:*)