2
2
# Attempt to guess a canonical system name.
3
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation,
4
# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
9
8
# This file is free software; you can redistribute it and/or modify it
10
9
# under the terms of the GNU General Public License as published by
19
18
# You should have received a copy of the GNU General Public License
20
19
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
22
# As a special exception to the GNU General Public License, if you
25
23
# distribute this file as part of a program that contains a
26
24
# configuration script generated by Autoconf, you may include it under
27
25
# the same distribution terms that you use for the rest of that program.
30
27
# Originally written by Per Bothner <per@bothner.com>.
31
28
# Please send patches to <config-patches@gnu.org>. Submit a context
32
29
# diff and a properly formatted ChangeLog entry.
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, 2002, 2003, 2004, 2005
56
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004
60
57
Free Software Foundation, Inc.
62
59
This is free software; see the source for copying conditions. There is NO
200
196
# contains redundant information, the shorter form:
201
197
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
202
198
echo "${machine}-${os}${release}"
201
echo x86_64-unknown-openbsd${UNAME_RELEASE}
204
echo m68k-unknown-openbsd${UNAME_RELEASE}
207
echo arm-unknown-openbsd${UNAME_RELEASE}
210
echo m68k-unknown-openbsd${UNAME_RELEASE}
213
echo m88k-unknown-openbsd${UNAME_RELEASE}
216
echo m68k-unknown-openbsd${UNAME_RELEASE}
219
echo powerpc-unknown-openbsd${UNAME_RELEASE}
222
echo m68k-unknown-openbsd${UNAME_RELEASE}
225
echo m88k-unknown-openbsd${UNAME_RELEASE}
228
echo powerpc-unknown-openbsd${UNAME_RELEASE}
231
echo mips64-unknown-openbsd${UNAME_RELEASE}
234
echo m68k-unknown-openbsd${UNAME_RELEASE}
205
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
237
echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
209
240
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
212
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
214
242
macppc:MirBSD:*:*)
215
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
243
echo powerppc-unknown-mirbsd${UNAME_RELEASE}
218
246
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
221
249
case $UNAME_RELEASE in
269
297
# A Xn.n version is an unreleased experimental baselevel.
270
298
# 1.2 uses "1.2" for uname -r.
271
299
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
273
301
Alpha\ *:Windows_NT*:*)
274
302
# How do we know it's Interix rather than the generic POSIX subsystem?
275
303
# Should we change UNAME_MACHINE based on the output of uname instead
276
304
# of the specific Alpha model?
277
305
echo alpha-pc-interix
279
307
21064:Windows_NT:50:3)
280
308
echo alpha-dec-winnt3.5
282
310
Amiga*:UNIX_System_V:4.0:*)
283
311
echo m68k-unknown-sysv4
285
313
*:[Aa]miga[Oo][Ss]:*:*)
286
314
echo ${UNAME_MACHINE}-unknown-amigaos
288
316
*:[Mm]orph[Oo][Ss]:*:*)
289
317
echo ${UNAME_MACHINE}-unknown-morphos
292
320
echo i370-ibm-openedition
298
323
echo powerpc-ibm-os400
300
325
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
301
326
echo arm-acorn-riscix${UNAME_RELEASE}
303
arm:riscos:*:*|arm:RISCOS:*:*)
304
echo arm-unknown-riscos
306
328
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
307
329
echo hppa1.1-hitachi-hiuxmpp
309
331
Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
310
332
# akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
311
333
if test "`(/bin/universe) 2>/dev/null`" = att ; then
314
336
echo pyramid-pyramid-bsd
318
340
echo pyramid-pyramid-svr4
320
342
DRS?6000:unix:4.0:6*)
321
343
echo sparc-icl-nx6
323
DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
345
DRS?6000:UNIX_SV:4.2*:7*)
324
346
case `/usr/bin/uname -p` in
325
sparc) echo sparc-icl-nx7; exit ;;
347
sparc) echo sparc-icl-nx7 && exit 0 ;;
327
349
sun4H:SunOS:5.*:*)
328
350
echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330
352
sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331
353
echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
333
355
i86pc:SunOS:5.*:*)
334
356
echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
336
358
sun4*:SunOS:6*:*)
337
359
# According to config.sub, this is the proper way to canonicalize
338
360
# SunOS6. Hard to guess exactly what SunOS6 will be like, but
339
361
# it's likely to be more like Solaris than SunOS4.
340
362
echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
343
365
case "`/usr/bin/arch -k`" in
377
399
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
378
400
echo m68k-atari-mint${UNAME_RELEASE}
380
402
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
381
403
echo m68k-atari-mint${UNAME_RELEASE}
383
405
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
384
406
echo m68k-atari-mint${UNAME_RELEASE}
386
408
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
387
409
echo m68k-milan-mint${UNAME_RELEASE}
389
411
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
390
412
echo m68k-hades-mint${UNAME_RELEASE}
392
414
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
393
415
echo m68k-unknown-mint${UNAME_RELEASE}
395
417
m68k:machten:*:*)
396
418
echo m68k-apple-machten${UNAME_RELEASE}
398
420
powerpc:machten:*:*)
399
421
echo powerpc-apple-machten${UNAME_RELEASE}
402
424
echo mips-dec-mach_bsd4.3
404
426
RISC*:ULTRIX:*:*)
405
427
echo mips-dec-ultrix${UNAME_RELEASE}
407
429
VAX*:ULTRIX*:*:*)
408
430
echo vax-dec-ultrix${UNAME_RELEASE}
410
432
2020:CLIX:*:* | 2430:CLIX:*:*)
411
433
echo clipper-intergraph-clix${UNAME_RELEASE}
413
435
mips:*:*:UMIPS | mips:*:*:RISCos)
414
436
eval $set_cc_for_build
415
437
sed 's/^ //' << EOF >$dummy.c
436
$CC_FOR_BUILD -o $dummy $dummy.c &&
437
dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
438
SYSTEM_NAME=`$dummy $dummyarg` &&
439
{ echo "$SYSTEM_NAME"; exit; }
458
$CC_FOR_BUILD -o $dummy $dummy.c \
459
&& $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
440
461
echo mips-mips-riscos${UNAME_RELEASE}
442
463
Motorola:PowerMAX_OS:*:*)
443
464
echo powerpc-motorola-powermax
445
466
Motorola:*:4.3:PL8-*)
446
467
echo powerpc-harris-powermax
448
469
Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
449
470
echo powerpc-harris-powermax
451
472
Night_Hawk:Power_UNIX:*:*)
452
473
echo powerpc-harris-powerunix
455
476
echo m88k-harris-cxux7
458
479
echo m88k-motorola-sysv4
461
482
echo m88k-motorola-sysv3
464
485
# DG/UX returns AViiON for all architectures
465
486
UNAME_PROCESSOR=`/usr/bin/uname -p`
476
497
echo i586-dg-dgux${UNAME_RELEASE}
479
500
M88*:DolphinOS:*:*) # DolphinOS (SVR3)
480
501
echo m88k-dolphin-sysv3
483
504
# Delta 88k system running SVR3
484
505
echo m88k-motorola-sysv3
486
507
XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
487
508
echo m88k-tektronix-sysv3
489
510
Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
490
511
echo m68k-tektronix-bsd
493
514
echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
495
516
????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
496
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
497
exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
517
echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
518
exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
499
520
echo i386-ibm-aix
502
523
if [ -x /usr/bin/oslevel ] ; then
503
524
IBM_REV=`/usr/bin/oslevel`
683
$CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
684
{ echo "$SYSTEM_NAME"; exit; }
690
$CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
685
691
echo unknown-hitachi-hiuxwe2
687
693
9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
688
694
echo hppa1.1-hp-bsd
690
696
9000/8??:4.3bsd:*:*)
691
697
echo hppa1.0-hp-bsd
693
699
*9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
694
700
echo hppa1.0-hp-mpeix
696
702
hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
697
703
echo hppa1.1-hp-osf
700
706
echo hppa1.0-hp-osf
703
709
if [ -x /usr/sbin/sysversion ] ; then
704
710
echo ${UNAME_MACHINE}-unknown-osf1mk
706
712
echo ${UNAME_MACHINE}-unknown-osf1
709
715
parisc*:Lites*:*:*)
710
716
echo hppa1.1-hp-lites
712
718
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
713
719
echo c1-convex-bsd
715
721
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
716
722
if getsysinfo -f scalar_acc
717
723
then echo c32-convex-bsd
718
724
else echo c2-convex-bsd
721
727
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
722
728
echo c34-convex-bsd
724
730
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
725
731
echo c38-convex-bsd
727
733
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
728
734
echo c4-convex-bsd
731
737
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
733
739
CRAY*[A-Z]90:*:*:*)
734
740
echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
735
741
| sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
736
742
-e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
737
743
-e 's/\.[^.]*$/.X/'
740
746
echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
743
749
echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
746
752
echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
749
755
echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
751
757
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
752
758
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
753
759
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
754
760
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
755
761
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
757
763
5000:UNIX_System_V:4.*:*)
758
764
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
759
765
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
760
766
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
762
768
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
763
769
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
765
771
sparc*:BSD/OS:*:*)
766
772
echo sparc-unknown-bsdi${UNAME_RELEASE}
769
775
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
772
case ${UNAME_MACHINE} in
774
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
776
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
778
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
782
781
echo ${UNAME_MACHINE}-pc-cygwin
785
784
echo ${UNAME_MACHINE}-pc-mingw32
788
# uname -m includes "-pc" on this system.
789
echo ${UNAME_MACHINE}-mingw32
792
787
echo ${UNAME_MACHINE}-pc-pw32
795
case ${UNAME_MACHINE} in
797
echo i586-pc-interix${UNAME_RELEASE}
799
EM64T | authenticamd)
800
echo x86_64-unknown-interix${UNAME_RELEASE}
790
echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
803
792
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804
793
echo i${UNAME_MACHINE}-pc-mks
806
795
i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
807
796
# How do we know it's Interix rather than the generic POSIX subsystem?
808
797
# It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
809
798
# UNAME_MACHINE based on the output of uname instead of i386?
810
799
echo i586-pc-interix
813
802
echo ${UNAME_MACHINE}-pc-uwin
815
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
816
echo x86_64-unknown-cygwin
819
805
echo powerpcle-unknown-cygwin
821
807
prep*:SunOS:5.*:*)
822
808
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
826
812
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
829
815
# other systems with GNU libc and userland
830
816
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
833
819
echo ${UNAME_MACHINE}-pc-minix
836
822
echo ${UNAME_MACHINE}-unknown-linux-gnu
839
echo ${UNAME_MACHINE}-unknown-linux-gnu
842
825
echo cris-axis-linux-gnu
844
827
crisv32:Linux:*:*)
845
828
echo crisv32-axis-linux-gnu
848
831
echo frv-unknown-linux-gnu
851
834
echo ${UNAME_MACHINE}-unknown-linux-gnu
854
837
echo ${UNAME_MACHINE}-unknown-linux-gnu
857
840
echo ${UNAME_MACHINE}-unknown-linux-gnu
860
843
eval $set_cc_for_build
861
844
sed 's/^ //' << EOF >$dummy.c
932
904
PA8*) echo hppa2.0-unknown-linux-gnu ;;
933
905
*) echo hppa-unknown-linux-gnu ;;
936
908
parisc64:Linux:*:* | hppa64:Linux:*:*)
937
909
echo hppa64-unknown-linux-gnu
939
911
s390:Linux:*:* | s390x:Linux:*:*)
940
912
echo ${UNAME_MACHINE}-ibm-linux
943
915
echo ${UNAME_MACHINE}-unknown-linux-gnu
946
918
echo ${UNAME_MACHINE}-unknown-linux-gnu
948
920
sparc:Linux:*:* | sparc64:Linux:*:*)
949
921
echo ${UNAME_MACHINE}-unknown-linux-gnu
952
echo ${UNAME_MACHINE}-dec-linux-gnu
954
923
x86_64:Linux:*:*)
955
924
echo x86_64-unknown-linux-gnu
958
echo xtensa-unknown-linux-gnu
961
927
# The BFD linker knows what the default object file format is, so
962
928
# first see if it will tell us. cd to the root directory to prevent
1033
992
# I just have to hope. -- rms.
1034
993
# Use sysv4.2uw... so that sysv4* matches it.
1035
994
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1038
997
# If we were able to find `uname', then EMX Unix compatibility
1039
998
# is probably installed.
1040
999
echo ${UNAME_MACHINE}-pc-os2-emx
1042
1001
i*86:XTS-300:*:STOP)
1043
1002
echo ${UNAME_MACHINE}-unknown-stop
1045
1004
i*86:atheos:*:*)
1046
1005
echo ${UNAME_MACHINE}-unknown-atheos
1049
1008
echo ${UNAME_MACHINE}-pc-syllable
1051
1010
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
1052
1011
echo i386-unknown-lynxos${UNAME_RELEASE}
1055
1014
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1057
1016
i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
1058
1017
UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
1059
1018
if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
1089
1047
echo ${UNAME_MACHINE}-pc-sysv32
1093
1051
# Left here for compatibility:
1094
1052
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1095
1053
# the processor, so we play safe by assuming i386.
1096
1054
echo i386-pc-msdosdjgpp
1098
1056
Intel:Mach:3*:*)
1099
1057
echo i386-pc-mach3
1102
1060
echo i860-intel-osf1
1104
1062
i860:*:4.*:*) # i860-SVR4
1105
1063
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1106
1064
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1107
1065
else # Add other i860-SVR4 vendors below as they are discovered.
1108
1066
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1111
1069
mini*:CTIX:SYS*5:*)
1113
1071
echo m68010-convergent-sysv
1115
1073
mc68k:UNIX:SYSTEM5:3.51m)
1116
1074
echo m68k-convergent-sysv
1118
1076
M680?0:D-NIX:5.3:*)
1119
1077
echo m68k-diab-dnix
1121
1079
M68*:*:R3V[5678]*:*)
1122
test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
1080
test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
1123
1081
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)
1125
1083
test -r /etc/.relid \
1126
1084
&& OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1127
1085
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1128
&& { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1086
&& echo i486-ncr-sysv4.3${OS_REL} && exit 0
1129
1087
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1088
&& echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
1131
1089
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132
1090
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133
&& { echo i486-ncr-sysv4; exit; } ;;
1091
&& echo i486-ncr-sysv4 && exit 0 ;;
1134
1092
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1135
1093
echo m68k-unknown-lynxos${UNAME_RELEASE}
1137
1095
mc68030:UNIX_System_V:4.*:*)
1138
1096
echo m68k-atari-sysv4
1140
1098
TSUNAMI:LynxOS:2.*:*)
1141
1099
echo sparc-unknown-lynxos${UNAME_RELEASE}
1143
1101
rs6000:LynxOS:2.*:*)
1144
1102
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1146
1104
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
1147
1105
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1149
1107
SM[BE]S:UNIX_SV:*:*)
1150
1108
echo mips-dde-sysv${UNAME_RELEASE}
1152
1110
RM*:ReliantUNIX-*:*:*)
1153
1111
echo mips-sni-sysv4
1155
1113
RM*:SINIX-*:*:*)
1156
1114
echo mips-sni-sysv4
1159
1117
if uname -p 2>/dev/null >/dev/null ; then
1160
1118
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1163
1121
echo ns32k-sni-sysv
1166
1124
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1167
1125
# says <Richard.M.Bartel@ccMail.Census.GOV>
1168
1126
echo i586-unisys-sysv4
1170
1128
*:UNIX_System_V:4*:FTX*)
1171
1129
# From Gerald Hewes <hewes@openmarket.com>.
1172
1130
# How about differentiating between stratus architectures? -djm
1173
1131
echo hppa1.1-stratus-sysv4
1176
1134
# From seanf@swdc.stratus.com.
1177
1135
echo i860-stratus-sysv4
1180
# From Paul.Green@stratus.com.
1181
echo ${UNAME_MACHINE}-stratus-vos
1184
1138
# From Paul.Green@stratus.com.
1185
1139
echo hppa1.1-stratus-vos
1187
1141
mc68*:A/UX:*:*)
1188
1142
echo m68k-apple-aux${UNAME_RELEASE}
1190
1144
news*:NEWS-OS:6*:*)
1191
1145
echo mips-sony-newsos6
1193
1147
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1194
1148
if [ -d /usr/nec ]; then
1195
1149
echo mips-nec-sysv${UNAME_RELEASE}
1197
1151
echo mips-unknown-sysv${UNAME_RELEASE}
1200
1154
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1201
1155
echo powerpc-be-beos
1203
1157
BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
1204
1158
echo powerpc-apple-beos
1206
1160
BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1207
1161
echo i586-pc-beos
1209
1163
SX-4:SUPER-UX:*:*)
1210
1164
echo sx4-nec-superux${UNAME_RELEASE}
1212
1166
SX-5:SUPER-UX:*:*)
1213
1167
echo sx5-nec-superux${UNAME_RELEASE}
1215
1169
SX-6:SUPER-UX:*:*)
1216
1170
echo sx6-nec-superux${UNAME_RELEASE}
1219
echo sx7-nec-superux${UNAME_RELEASE}
1222
echo sx8-nec-superux${UNAME_RELEASE}
1225
echo sx8r-nec-superux${UNAME_RELEASE}
1227
1172
Power*:Rhapsody:*:*)
1228
1173
echo powerpc-apple-rhapsody${UNAME_RELEASE}
1230
1175
*:Rhapsody:*:*)
1231
1176
echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1234
1179
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235
1180
case $UNAME_PROCESSOR in
1181
*86) UNAME_PROCESSOR=i686 ;;
1236
1182
unknown) UNAME_PROCESSOR=powerpc ;;
1238
1184
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1240
1186
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1241
1187
UNAME_PROCESSOR=`uname -p`
1242
1188
if test "$UNAME_PROCESSOR" = "x86"; then
1273
1216
UNAME_MACHINE="$cputype"
1275
1218
echo ${UNAME_MACHINE}-unknown-plan9
1278
1221
echo pdp10-unknown-tops10
1281
1224
echo pdp10-unknown-tenex
1283
1226
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1284
1227
echo pdp10-dec-tops20
1286
1229
XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
1287
1230
echo pdp10-xkl-tops20
1290
1233
echo pdp10-unknown-tops20
1293
1236
echo pdp10-unknown-its
1296
1239
echo mips-sei-seiux${UNAME_RELEASE}
1298
1241
*:DragonFly:*:*)
1299
1242
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1302
1245
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1303
1246
case "${UNAME_MACHINE}" in
1304
A*) echo alpha-dec-vms ; exit ;;
1305
I*) echo ia64-dec-vms ; exit ;;
1306
V*) echo vax-dec-vms ; exit ;;
1312
echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1315
echo ${UNAME_MACHINE}-pc-rdos
1247
A*) echo alpha-dec-vms && exit 0 ;;
1248
I*) echo ia64-dec-vms && exit 0 ;;
1249
V*) echo vax-dec-vms && exit 0 ;;
1319
1253
#echo '(No uname command or uname output not recognized.)' 1>&2