56
53
GNU config.guess ($timestamp)
58
55
Originally written by Per Bothner.
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
60
2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
57
Free Software Foundation, Inc.
62
59
This is free software; see the source for copying conditions. There is NO
63
60
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
200
195
# contains redundant information, the shorter form:
201
196
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202
197
echo "${machine}-${os}${release}"
200
echo m68k-unknown-openbsd${UNAME_RELEASE}
203
echo mipsel-unknown-openbsd${UNAME_RELEASE}
206
echo m68k-unknown-openbsd${UNAME_RELEASE}
209
echo m68k-unknown-openbsd${UNAME_RELEASE}
212
echo powerpc-unknown-openbsd${UNAME_RELEASE}
215
echo m68k-unknown-openbsd${UNAME_RELEASE}
218
echo m88k-unknown-openbsd${UNAME_RELEASE}
221
echo powerpc-unknown-openbsd${UNAME_RELEASE}
224
echo mipsel-unknown-openbsd${UNAME_RELEASE}
227
echo mipseb-unknown-openbsd${UNAME_RELEASE}
230
echo m68k-unknown-openbsd${UNAME_RELEASE}
233
echo mipsel-unknown-openbsd${UNAME_RELEASE}
205
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
209
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
212
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
215
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
218
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
236
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
239
echo ${UNAME_MACHINE}-unknown-microbsd${UNAME_RELEASE}
221
case $UNAME_RELEASE in
242
if test $UNAME_RELEASE = "V4.0"; then
223
243
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'`
226
UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'`
229
245
# According to Compaq, /usr/sbin/psrinfo has been available on
230
246
# OSF/1 and Tru64 systems produced since 1995. I hope that
231
247
# covers most systems running today. This code pipes the CPU
263
279
"EV7.9 (21364A)")
264
280
UNAME_MACHINE="alphaev79" ;;
266
# A Pn.n version is a patched version.
267
282
# A Vn.n version is a released version.
268
283
# A Tn.n version is a released field test version.
269
284
# A Xn.n version is an unreleased experimental baselevel.
270
285
# 1.2 uses "1.2" for uname -r.
271
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
286
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[VTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273
288
Alpha\ *:Windows_NT*:*)
274
289
# How do we know it's Interix rather than the generic POSIX subsystem?
275
290
# Should we change UNAME_MACHINE based on the output of uname instead
276
291
# of the specific Alpha model?
277
292
echo alpha-pc-interix
279
294
21064:Windows_NT:50:3)
280
295
echo alpha-dec-winnt3.5
282
297
Amiga*:UNIX_System_V:4.0:*)
283
298
echo m68k-unknown-sysv4
285
300
*:[Aa]miga[Oo][Ss]:*:*)
286
301
echo ${UNAME_MACHINE}-unknown-amigaos
288
303
*:[Mm]orph[Oo][Ss]:*:*)
289
304
echo ${UNAME_MACHINE}-unknown-morphos
292
307
echo i370-ibm-openedition
298
echo powerpc-ibm-os400
300
309
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301
310
echo arm-acorn-riscix${UNAME_RELEASE}
303
arm:riscos:*:*|arm:RISCOS:*:*)
304
echo arm-unknown-riscos
306
312
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307
313
echo hppa1.1-hitachi-hiuxmpp
309
315
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310
316
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311
317
if test "`(/bin/universe) 2>/dev/null`" = att ; then
314
320
echo pyramid-pyramid-bsd
318
324
echo pyramid-pyramid-svr4
320
DRS?6000:unix:4.0:6*)
323
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
326
DRS?6000:UNIX_SV:4.2*:7*)
324
327
case `/usr/bin/uname -p` in
325
sparc) echo sparc-icl-nx7; exit ;;
328
sparc) echo sparc-icl-nx7 && exit 0 ;;
328
echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
330
sun4H:SunOS:5.*:*)
331
331
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333
333
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
334
334
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336
i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
337
eval $set_cc_for_build
339
# If there is a compiler, see if it is configured for 64-bit objects.
340
# Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
341
# This test works for both compilers.
342
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
343
if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
344
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
345
grep IS_64BIT_ARCH >/dev/null
350
echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
337
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
352
339
sun4*:SunOS:6*:*)
353
340
# According to config.sub, this is the proper way to canonicalize
354
341
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
355
342
# it's likely to be more like Solaris than SunOS4.
356
343
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359
346
case "`/usr/bin/arch -k`" in
393
380
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
394
381
echo m68k-atari-mint${UNAME_RELEASE}
396
383
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
397
384
echo m68k-atari-mint${UNAME_RELEASE}
399
386
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
400
387
echo m68k-atari-mint${UNAME_RELEASE}
402
389
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
403
390
echo m68k-milan-mint${UNAME_RELEASE}
405
392
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
406
393
echo m68k-hades-mint${UNAME_RELEASE}
408
395
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
409
396
echo m68k-unknown-mint${UNAME_RELEASE}
412
echo m68k-apple-machten${UNAME_RELEASE}
414
398
powerpc:machten:*:*)
415
399
echo powerpc-apple-machten${UNAME_RELEASE}
418
402
echo mips-dec-mach_bsd4.3
420
404
RISC*:ULTRIX:*:*)
421
405
echo mips-dec-ultrix${UNAME_RELEASE}
423
407
VAX*:ULTRIX*:*:*)
424
408
echo vax-dec-ultrix${UNAME_RELEASE}
426
410
2020:CLIX:*:* | 2430:CLIX:*:*)
427
411
echo clipper-intergraph-clix${UNAME_RELEASE}
429
413
mips:*:*:UMIPS | mips:*:*:RISCos)
430
414
eval $set_cc_for_build
431
415
sed 's/^ //' << EOF >$dummy.c
699
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
700
{ echo "$SYSTEM_NAME"; exit; }
668
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
701
669
echo unknown-hitachi-hiuxwe2
703
671
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
704
672
echo hppa1.1-hp-bsd
706
674
9000/8??:4.3bsd:*:*)
707
675
echo hppa1.0-hp-bsd
709
677
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
710
678
echo hppa1.0-hp-mpeix
712
680
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
713
681
echo hppa1.1-hp-osf
716
684
echo hppa1.0-hp-osf
719
687
if [ -x /usr/sbin/sysversion ] ; then
720
688
echo ${UNAME_MACHINE}-unknown-osf1mk
722
690
echo ${UNAME_MACHINE}-unknown-osf1
725
693
parisc*:Lites*:*:*)
726
694
echo hppa1.1-hp-lites
728
696
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
729
697
echo c1-convex-bsd
731
699
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
732
700
if getsysinfo -f scalar_acc
733
701
then echo c32-convex-bsd
734
702
else echo c2-convex-bsd
737
705
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
738
706
echo c34-convex-bsd
740
708
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
741
709
echo c38-convex-bsd
743
711
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
744
712
echo c4-convex-bsd
747
715
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749
717
CRAY*[A-Z]90:*:*:*)
750
718
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
751
719
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
752
720
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
753
721
-e 's/\.[^.]*$/.X/'
756
724
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
759
727
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
762
730
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
765
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
733
echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
767
735
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
768
736
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
769
737
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
770
738
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
771
739
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
773
5000:UNIX_System_V:4.*:*)
774
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
775
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
776
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
778
741
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
779
742
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
781
744
sparc*:BSD/OS:*:*)
782
745
echo sparc-unknown-bsdi${UNAME_RELEASE}
785
748
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788
case ${UNAME_MACHINE} in
790
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
792
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
751
# Determine whether the default compiler uses glibc.
752
eval $set_cc_for_build
753
sed 's/^ //' << EOF >$dummy.c
754
#include <features.h>
761
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
762
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
798
765
echo ${UNAME_MACHINE}-pc-cygwin
801
768
echo ${UNAME_MACHINE}-pc-mingw32
804
# uname -m includes "-pc" on this system.
805
echo ${UNAME_MACHINE}-mingw32
808
771
echo ${UNAME_MACHINE}-pc-pw32
811
case ${UNAME_MACHINE} in
813
echo i586-pc-interix${UNAME_RELEASE}
815
EM64T | authenticamd | genuineintel)
816
echo x86_64-unknown-interix${UNAME_RELEASE}
819
echo ia64-unknown-interix${UNAME_RELEASE}
774
echo i586-pc-interix3
822
776
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
823
777
echo i${UNAME_MACHINE}-pc-mks
828
779
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
829
780
# How do we know it's Interix rather than the generic POSIX subsystem?
830
781
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
831
782
# UNAME_MACHINE based on the output of uname instead of i386?
832
783
echo i586-pc-interix
835
786
echo ${UNAME_MACHINE}-pc-uwin
837
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
838
echo x86_64-unknown-cygwin
841
789
echo powerpcle-unknown-cygwin
843
791
prep*:SunOS:5.*:*)
844
792
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
848
795
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
851
# other systems with GNU libc and userland
852
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
855
798
echo ${UNAME_MACHINE}-pc-minix
858
eval $set_cc_for_build
859
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
860
| grep -q __ARM_EABI__
862
echo ${UNAME_MACHINE}-unknown-linux-gnu
864
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
868
801
echo ${UNAME_MACHINE}-unknown-linux-gnu
871
echo cris-axis-linux-gnu
874
echo crisv32-axis-linux-gnu
877
echo frv-unknown-linux-gnu
880
804
echo ${UNAME_MACHINE}-unknown-linux-gnu
883
echo ${UNAME_MACHINE}-unknown-linux-gnu
886
807
echo ${UNAME_MACHINE}-unknown-linux-gnu
888
mips:Linux:*:* | mips64:Linux:*:*)
889
eval $set_cc_for_build
890
sed 's/^ //' << EOF >$dummy.c
892
#undef ${UNAME_MACHINE}
893
#undef ${UNAME_MACHINE}el
894
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
895
CPU=${UNAME_MACHINE}el
897
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
904
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
909
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
912
echo or32-unknown-linux-gnu
810
eval $set_cc_for_build
811
sed 's/^ //' << EOF >$dummy.c
815
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
818
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
825
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
826
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
829
eval $set_cc_for_build
830
sed 's/^ //' << EOF >$dummy.c
834
#if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
837
#if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
844
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
845
test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
915
848
echo powerpc-unknown-linux-gnu
918
851
echo powerpc64-unknown-linux-gnu
921
854
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
922
855
EV5) UNAME_MACHINE=alphaev5 ;;
1087
1005
echo ${UNAME_MACHINE}-pc-sysv32
1091
1009
# Left here for compatibility:
1092
1010
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1093
# the processor, so we play safe by assuming i586.
1094
# Note: whatever this is, it MUST be the same as what config.sub
1095
# prints for the "djgpp" host, or else GDB configury will decide that
1096
# this is a cross-build.
1097
echo i586-pc-msdosdjgpp
1011
# the processor, so we play safe by assuming i386.
1012
echo i386-pc-msdosdjgpp
1099
1014
Intel:Mach:3*:*)
1100
1015
echo i386-pc-mach3
1103
1018
echo i860-intel-osf1
1105
1020
i860:*:4.*:*) # i860-SVR4
1106
1021
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1107
1022
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1108
1023
else # Add other i860-SVR4 vendors below as they are discovered.
1109
1024
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1112
1027
mini*:CTIX:SYS*5:*)
1114
1029
echo m68010-convergent-sysv
1116
1031
mc68k:UNIX:SYSTEM5:3.51m)
1117
1032
echo m68k-convergent-sysv
1119
1034
M680?0:D-NIX:5.3:*)
1120
1035
echo m68k-diab-dnix
1122
M68*:*:R3V[5678]*:*)
1123
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1124
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)
1038
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1039
3[34]??:*: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)
1126
1041
test -r /etc/.relid \
1127
1042
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1128
1043
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1129
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1044
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
1130
1045
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1131
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1046
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1132
1047
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1133
1048
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1134
&& { echo i486-ncr-sysv4; exit; } ;;
1135
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1137
test -r /etc/.relid \
1138
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1139
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1140
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1141
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1142
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1143
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1144
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1049
&& echo i486-ncr-sysv4 && exit 0 ;;
1145
1050
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1146
1051
echo m68k-unknown-lynxos${UNAME_RELEASE}
1148
1053
mc68030:UNIX_System_V:4.*:*)
1149
1054
echo m68k-atari-sysv4
1151
1056
TSUNAMI:LynxOS:2.*:*)
1152
1057
echo sparc-unknown-lynxos${UNAME_RELEASE}
1154
1059
rs6000:LynxOS:2.*:*)
1155
1060
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1157
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1062
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1158
1063
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1160
1065
SM[BE]S:UNIX_SV:*:*)
1161
1066
echo mips-dde-sysv${UNAME_RELEASE}
1163
1068
RM*:ReliantUNIX-*:*:*)
1164
1069
echo mips-sni-sysv4
1166
1071
RM*:SINIX-*:*:*)
1167
1072
echo mips-sni-sysv4
1170
1075
if uname -p 2>/dev/null >/dev/null ; then
1171
1076
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1174
1079
echo ns32k-sni-sysv
1177
1082
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1178
1083
# says <Richard.M.Bartel@ccMail.Census.GOV>
1179
1084
echo i586-unisys-sysv4
1181
1086
*:UNIX_System_V:4*:FTX*)
1182
1087
# From Gerald Hewes <hewes@openmarket.com>.
1183
1088
# How about differentiating between stratus architectures? -djm
1184
1089
echo hppa1.1-stratus-sysv4
1187
1092
# From seanf@swdc.stratus.com.
1188
1093
echo i860-stratus-sysv4
1191
# From Paul.Green@stratus.com.
1192
echo ${UNAME_MACHINE}-stratus-vos
1195
1096
# From Paul.Green@stratus.com.
1196
1097
echo hppa1.1-stratus-vos
1198
1099
mc68*:A/UX:*:*)
1199
1100
echo m68k-apple-aux${UNAME_RELEASE}
1201
1102
news*:NEWS-OS:6*:*)
1202
1103
echo mips-sony-newsos6
1204
1105
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1205
1106
if [ -d /usr/nec ]; then
1206
1107
echo mips-nec-sysv${UNAME_RELEASE}
1208
1109
echo mips-unknown-sysv${UNAME_RELEASE}
1211
1112
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1212
1113
echo powerpc-be-beos
1214
1115
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1215
1116
echo powerpc-apple-beos
1217
1118
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1218
1119
echo i586-pc-beos
1220
BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1223
1121
SX-4:SUPER-UX:*:*)
1224
1122
echo sx4-nec-superux${UNAME_RELEASE}
1226
1124
SX-5:SUPER-UX:*:*)
1227
1125
echo sx5-nec-superux${UNAME_RELEASE}
1229
1127
SX-6:SUPER-UX:*:*)
1230
1128
echo sx6-nec-superux${UNAME_RELEASE}
1233
echo sx7-nec-superux${UNAME_RELEASE}
1236
echo sx8-nec-superux${UNAME_RELEASE}
1239
echo sx8r-nec-superux${UNAME_RELEASE}
1241
1130
Power*:Rhapsody:*:*)
1242
1131
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1244
1133
*:Rhapsody:*:*)
1245
1134
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1248
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1249
case $UNAME_PROCESSOR in
1250
unknown) UNAME_PROCESSOR=powerpc ;;
1138
*86) UNAME_PROCESSOR=i686 ;;
1139
powerpc) UNAME_PROCESSOR=powerpc ;;
1252
1141
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1254
1143
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1255
1144
UNAME_PROCESSOR=`uname -p`
1256
1145
if test "$UNAME_PROCESSOR" = "x86"; then