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, 2007, 2008, 2009
5
# Free Software Foundation, Inc.
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
5
# 2011, 2012 Free Software Foundation, Inc.
9
9
# This file is free software; you can redistribute it and/or modify it
10
10
# under the terms of the GNU General Public License as published by
17
17
# General Public License for more details.
19
19
# You should have received a copy of the GNU General Public License
20
# along with this program; if not, write to the Free Software
21
# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
20
# along with this program; if not, see <http://www.gnu.org/licenses/>.
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
56
54
GNU config.guess ($timestamp)
58
56
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.
57
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
58
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
59
Free Software Foundation, Inc.
62
61
This is free software; see the source for copying conditions. There is NO
63
62
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
139
138
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
140
139
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
142
case "${UNAME_MACHINE}" in
144
test -z "$VENDOR" && VENDOR=pc
147
test -z "$VENDOR" && VENDOR=unknown
150
test -f /etc/SuSE-release -o -f /.buildenv && VENDOR=suse
152
141
# Note: order is significant - the case branches are not exclusive.
154
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
156
145
# NetBSD (nbsd) targets should (where applicable) match one or
157
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
146
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
158
147
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
159
148
# switched to ELF, *-*-netbsd* would select the old
160
149
# object file format. This provides both forward
215
204
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
216
echo ${UNAME_MACHINE_ARCH}-${VENDOR}-openbsd${UNAME_RELEASE}
205
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
219
echo ${UNAME_MACHINE}-${VENDOR}-ekkobsd${UNAME_RELEASE}
208
echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
222
echo ${UNAME_MACHINE}-${VENDOR}-solidbsd${UNAME_RELEASE}
211
echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
224
213
macppc:MirBSD:*:*)
225
echo powerpc-${VENDOR}-mirbsd${UNAME_RELEASE}
214
echo powerpc-unknown-mirbsd${UNAME_RELEASE}
228
echo ${UNAME_MACHINE}-${VENDOR}-mirbsd${UNAME_RELEASE}
217
echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
231
220
case $UNAME_RELEASE in
279
268
# A Xn.n version is an unreleased experimental baselevel.
280
269
# 1.2 uses "1.2" for uname -r.
281
270
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
271
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
283
275
Alpha\ *:Windows_NT*:*)
284
276
# How do we know it's Interix rather than the generic POSIX subsystem?
285
277
# Should we change UNAME_MACHINE based on the output of uname instead
290
282
echo alpha-dec-winnt3.5
292
284
Amiga*:UNIX_System_V:4.0:*)
293
echo m68k-${VENDOR}-sysv4
285
echo m68k-unknown-sysv4
295
287
*:[Aa]miga[Oo][Ss]:*:*)
296
echo ${UNAME_MACHINE}-${VENDOR}-amigaos
288
echo ${UNAME_MACHINE}-unknown-amigaos
298
290
*:[Mm]orph[Oo][Ss]:*:*)
299
echo ${UNAME_MACHINE}-${VENDOR}-morphos
291
echo ${UNAME_MACHINE}-unknown-morphos
302
294
echo i370-ibm-openedition
305
297
echo s390-ibm-zvmoe
308
echo powerpc-ibm-os400
300
echo powerpc-ibm-os400
310
302
arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
311
303
echo arm-acorn-riscix${UNAME_RELEASE}
313
305
arm:riscos:*:*|arm:RISCOS:*:*)
314
echo arm-${VENDOR}-riscos
306
echo arm-unknown-riscos
316
308
SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
317
309
echo hppa1.1-hitachi-hiuxmpp
404
396
# MiNT. But MiNT is downward compatible to TOS, so this should
406
398
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
407
echo m68k-atari-mint${UNAME_RELEASE}
399
echo m68k-atari-mint${UNAME_RELEASE}
409
401
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
410
402
echo m68k-atari-mint${UNAME_RELEASE}
412
404
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
413
echo m68k-atari-mint${UNAME_RELEASE}
405
echo m68k-atari-mint${UNAME_RELEASE}
415
407
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
416
echo m68k-milan-mint${UNAME_RELEASE}
408
echo m68k-milan-mint${UNAME_RELEASE}
418
410
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
419
echo m68k-hades-mint${UNAME_RELEASE}
411
echo m68k-hades-mint${UNAME_RELEASE}
421
413
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
422
echo m68k-${VENDOR}-mint${UNAME_RELEASE}
414
echo m68k-unknown-mint${UNAME_RELEASE}
424
416
m68k:machten:*:*)
425
417
echo m68k-apple-machten${UNAME_RELEASE}
490
482
echo m88k-motorola-sysv3
493
# DG/UX returns AViiON for all architectures
494
UNAME_PROCESSOR=`/usr/bin/uname -p`
485
# DG/UX returns AViiON for all architectures
486
UNAME_PROCESSOR=`/usr/bin/uname -p`
495
487
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
497
489
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
604
596
9000/[678][0-9][0-9])
605
597
if [ -x /usr/bin/getconf ]; then
606
598
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
607
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
608
case "${sc_cpu_version}" in
609
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
610
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
611
532) # CPU_PA_RISC2_0
612
case "${sc_kernel_bits}" in
613
32) HP_ARCH="hppa2.0n" ;;
614
64) HP_ARCH="hppa2.0w" ;;
599
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
600
case "${sc_cpu_version}" in
601
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
602
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
603
532) # CPU_PA_RISC2_0
604
case "${sc_kernel_bits}" in
605
32) HP_ARCH="hppa2.0n" ;;
606
64) HP_ARCH="hppa2.0w" ;;
615
607
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
619
611
if [ "${HP_ARCH}" = "" ]; then
620
612
eval $set_cc_for_build
621
sed 's/^ //' << EOF >$dummy.c
629
#if defined(_SC_KERNEL_BITS)
630
long bits = sysconf(_SC_KERNEL_BITS);
632
long cpu = sysconf (_SC_CPU_VERSION);
636
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
637
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
639
#if defined(_SC_KERNEL_BITS)
642
case 64: puts ("hppa2.0w"); break;
643
case 32: puts ("hppa2.0n"); break;
644
default: puts ("hppa2.0"); break;
646
#else /* !defined(_SC_KERNEL_BITS) */
647
puts ("hppa2.0"); break;
649
default: puts ("hppa1.0"); break;
613
sed 's/^ //' << EOF >$dummy.c
621
#if defined(_SC_KERNEL_BITS)
622
long bits = sysconf(_SC_KERNEL_BITS);
624
long cpu = sysconf (_SC_CPU_VERSION);
628
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
629
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
631
#if defined(_SC_KERNEL_BITS)
634
case 64: puts ("hppa2.0w"); break;
635
case 32: puts ("hppa2.0n"); break;
636
default: puts ("hppa2.0"); break;
638
#else /* !defined(_SC_KERNEL_BITS) */
639
puts ("hppa2.0"); break;
641
default: puts ("hppa1.0"); break;
654
646
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
655
647
test -z "$HP_ARCH" && HP_ARCH=hppa
741
733
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
742
734
echo c1-convex-bsd
744
736
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
745
737
if getsysinfo -f scalar_acc
746
738
then echo c32-convex-bsd
747
739
else echo c2-convex-bsd
750
742
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
751
743
echo c34-convex-bsd
753
745
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
754
746
echo c38-convex-bsd
756
748
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
757
749
echo c4-convex-bsd
760
752
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
780
772
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
781
773
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
782
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
783
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
784
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
774
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
775
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
776
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
786
778
5000:UNIX_System_V:4.*:*)
787
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
788
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
789
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
779
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
780
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
781
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
791
783
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
792
784
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
794
786
sparc*:BSD/OS:*:*)
795
echo sparc-${VENDOR}-bsdi${UNAME_RELEASE}
787
echo sparc-unknown-bsdi${UNAME_RELEASE}
798
echo ${UNAME_MACHINE}-${VENDOR}-bsdi${UNAME_RELEASE}
790
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
801
case ${UNAME_MACHINE} in
803
echo i386-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793
UNAME_PROCESSOR=`/usr/bin/uname -p`
794
case ${UNAME_PROCESSOR} in
805
echo x86_64-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
796
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
807
echo ${UNAME_MACHINE}-${VENDOR}-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
814
805
echo ${UNAME_MACHINE}-pc-mingw32
808
echo ${UNAME_MACHINE}-pc-msys
817
# uname -m includes "-pc" on this system.
818
echo ${UNAME_MACHINE}-mingw32
811
# uname -m includes "-pc" on this system.
812
echo ${UNAME_MACHINE}-mingw32
821
815
echo ${UNAME_MACHINE}-pc-pw32
824
case ${UNAME_MACHINE} in
818
case ${UNAME_MACHINE} in
826
820
echo i586-pc-interix${UNAME_RELEASE}
828
822
authenticamd | genuineintel | EM64T)
829
echo x86_64-${VENDOR}-interix${UNAME_RELEASE}
823
echo x86_64-unknown-interix${UNAME_RELEASE}
832
echo ia64-${VENDOR}-interix${UNAME_RELEASE}
826
echo ia64-unknown-interix${UNAME_RELEASE}
835
829
[345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
848
842
echo ${UNAME_MACHINE}-pc-uwin
850
844
amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
851
echo x86_64-${VENDOR}-cygwin
845
echo x86_64-unknown-cygwin
854
echo powerpcle-${VENDOR}-cygwin
848
echo powerpcle-unknown-cygwin
856
850
prep*:SunOS:5.*:*)
857
echo powerpcle-${VENDOR}-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
851
echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
861
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-${VENDOR}-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
864
858
# other systems with GNU libc and userland
865
echo ${UNAME_MACHINE}-${VENDOR}-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
859
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
868
862
echo ${UNAME_MACHINE}-pc-minix
865
echo ${UNAME_MACHINE}-unknown-linux-gnu
867
aarch64_be:Linux:*:*)
868
UNAME_MACHINE=aarch64_be
869
echo ${UNAME_MACHINE}-unknown-linux-gnu
871
872
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
872
873
EV5) UNAME_MACHINE=alphaev5 ;;
876
877
EV6) UNAME_MACHINE=alphaev6 ;;
877
878
EV67) UNAME_MACHINE=alphaev67 ;;
878
879
EV68*) UNAME_MACHINE=alphaev68 ;;
880
881
objdump --private-headers /bin/sh | grep -q ld.so.1
881
882
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
882
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu${LIBC}
883
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
885
886
eval $set_cc_for_build
886
887
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
887
888
| grep -q __ARM_EABI__
889
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
890
echo ${UNAME_MACHINE}-unknown-linux-gnu
891
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnueabi
892
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
893
| grep -q __ARM_PCS_VFP
895
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
897
echo ${UNAME_MACHINE}-unknown-linux-gnueabihf
894
901
avr32*:Linux:*:*)
895
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
902
echo ${UNAME_MACHINE}-unknown-linux-gnu
898
echo cris-axis-linux-gnu
905
echo ${UNAME_MACHINE}-axis-linux-gnu
900
907
crisv32:Linux:*:*)
901
echo crisv32-axis-linux-gnu
908
echo ${UNAME_MACHINE}-axis-linux-gnu
904
echo frv-${VENDOR}-linux-gnu
911
echo ${UNAME_MACHINE}-unknown-linux-gnu
914
echo ${UNAME_MACHINE}-unknown-linux-gnu
914
924
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
915
echo "${UNAME_MACHINE}-${VENDOR}-linux-${LIBC}"
925
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
918
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
928
echo ${UNAME_MACHINE}-unknown-linux-gnu
921
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
931
echo ${UNAME_MACHINE}-unknown-linux-gnu
924
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
934
echo ${UNAME_MACHINE}-unknown-linux-gnu
926
936
mips:Linux:*:* | mips64:Linux:*:*)
927
937
eval $set_cc_for_build
942
952
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
943
test x"${CPU}" != x && { echo "${CPU}-${VENDOR}-linux-gnu"; exit; }
953
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
946
echo or32-${VENDOR}-linux-gnu
956
echo ${UNAME_MACHINE}-unknown-linux-gnu
949
echo sparc-${VENDOR}-linux-gnu
959
echo sparc-unknown-linux-gnu
951
961
parisc64:Linux:*:* | hppa64:Linux:*:*)
952
echo hppa64-${VENDOR}-linux-gnu
962
echo hppa64-unknown-linux-gnu
954
964
parisc:Linux:*:* | hppa:Linux:*:*)
955
965
# Look for CPU level
956
966
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
957
PA7*) echo hppa1.1-${VENDOR}-linux-gnu ;;
958
PA8*) echo hppa2.0-${VENDOR}-linux-gnu ;;
959
*) echo hppa-${VENDOR}-linux-gnu ;;
967
PA7*) echo hppa1.1-unknown-linux-gnu ;;
968
PA8*) echo hppa2.0-unknown-linux-gnu ;;
969
*) echo hppa-unknown-linux-gnu ;;
963
echo powerpc64-${VENDOR}-linux-gnu
973
echo powerpc64-unknown-linux-gnu
966
echo powerpc-${VENDOR}-linux-gnu
976
echo powerpc-unknown-linux-gnu
968
978
s390:Linux:*:* | s390x:Linux:*:*)
969
979
echo ${UNAME_MACHINE}-ibm-linux
972
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
982
echo ${UNAME_MACHINE}-unknown-linux-gnu
975
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
985
echo ${UNAME_MACHINE}-unknown-linux-gnu
977
987
sparc:Linux:*:* | sparc64:Linux:*:*)
978
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
988
echo ${UNAME_MACHINE}-unknown-linux-gnu
991
echo ${UNAME_MACHINE}-unknown-linux-gnu
981
994
echo ${UNAME_MACHINE}-dec-linux-gnu
983
996
x86_64:Linux:*:*)
984
echo x86_64-${VENDOR}-linux-gnu
997
echo ${UNAME_MACHINE}-unknown-linux-gnu
986
999
xtensa*:Linux:*:*)
987
echo ${UNAME_MACHINE}-${VENDOR}-linux-gnu
1000
echo ${UNAME_MACHINE}-unknown-linux-gnu
989
1002
i*86:DYNIX/ptx:4*:*)
990
1003
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
993
1006
echo i386-sequent-sysv4
995
1008
i*86:UNIX_SV:4.2MP:2.*)
996
# Unixware is an offshoot of SVR4, but it has its own version
997
# number series starting with 2...
998
# I am not positive that other SVR4 systems won't match this,
1009
# Unixware is an offshoot of SVR4, but it has its own version
1010
# number series starting with 2...
1011
# I am not positive that other SVR4 systems won't match this,
999
1012
# I just have to hope. -- rms.
1000
# Use sysv4.2uw... so that sysv4* matches it.
1013
# Use sysv4.2uw... so that sysv4* matches it.
1001
1014
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1006
1019
echo ${UNAME_MACHINE}-pc-os2-emx
1008
1021
i*86:XTS-300:*:STOP)
1009
echo ${UNAME_MACHINE}-${VENDOR}-stop
1022
echo ${UNAME_MACHINE}-unknown-stop
1011
1024
i*86:atheos:*:*)
1012
echo ${UNAME_MACHINE}-${VENDOR}-atheos
1025
echo ${UNAME_MACHINE}-unknown-atheos
1014
1027
i*86:syllable:*:*)
1015
1028
echo ${UNAME_MACHINE}-pc-syllable
1017
1030
i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1018
echo i386-${VENDOR}-lynxos${UNAME_RELEASE}
1031
echo i386-unknown-lynxos${UNAME_RELEASE}
1021
1034
echo ${UNAME_MACHINE}-pc-msdosdjgpp
1031
1044
i*86:*:5:[678]*)
1032
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1045
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1033
1046
case `/bin/uname -X | grep "^Machine"` in
1034
1047
*486*) UNAME_MACHINE=i486 ;;
1035
1048
*Pentium) UNAME_MACHINE=i586 ;;
1036
1049
*Pent*|*Celeron) UNAME_MACHINE=i686 ;;
1038
echo ${UNAME_MACHINE}-${VENDOR}-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1051
echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
1041
1054
if test -f /usr/options/cb.name; then
1059
1072
# Left here for compatibility:
1060
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1061
# the processor, so we play safe by assuming i586.
1073
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1074
# the processor, so we play safe by assuming i586.
1062
1075
# Note: whatever this is, it MUST be the same as what config.sub
1063
1076
# prints for the "djgpp" host, or else GDB configury will decide that
1064
1077
# this is a cross-build.
1065
1078
echo i586-pc-msdosdjgpp
1067
1080
Intel:Mach:3*:*)
1068
1081
echo i386-pc-mach3
1074
1087
if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
1075
1088
echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
1076
1089
else # Add other i860-SVR4 vendors below as they are discovered.
1077
echo i860-${VENDOR}-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1090
echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
1080
1093
mini*:CTIX:SYS*5:*)
1098
1111
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1099
1112
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1100
1113
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1101
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1102
&& { echo i486-ncr-sysv4; exit; } ;;
1114
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115
&& { echo i486-ncr-sysv4; exit; } ;;
1103
1116
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1105
1118
test -r /etc/.relid \
1111
1124
/bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1112
1125
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1113
1126
m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1114
echo m68k-${VENDOR}-lynxos${UNAME_RELEASE}
1127
echo m68k-unknown-lynxos${UNAME_RELEASE}
1116
1129
mc68030:UNIX_System_V:4.*:*)
1117
1130
echo m68k-atari-sysv4
1119
1132
TSUNAMI:LynxOS:2.*:*)
1120
echo sparc-${VENDOR}-lynxos${UNAME_RELEASE}
1133
echo sparc-unknown-lynxos${UNAME_RELEASE}
1122
1135
rs6000:LynxOS:2.*:*)
1123
echo rs6000-${VENDOR}-lynxos${UNAME_RELEASE}
1136
echo rs6000-unknown-lynxos${UNAME_RELEASE}
1125
1138
PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1126
echo powerpc-${VENDOR}-lynxos${UNAME_RELEASE}
1139
echo powerpc-unknown-lynxos${UNAME_RELEASE}
1128
1141
SM[BE]S:UNIX_SV:*:*)
1129
1142
echo mips-dde-sysv${UNAME_RELEASE}
1142
1155
echo ns32k-sni-sysv
1145
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1146
# says <Richard.M.Bartel@ccMail.Census.GOV>
1147
echo i586-unisys-sysv4
1158
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1159
# says <Richard.M.Bartel@ccMail.Census.GOV>
1160
echo i586-unisys-sysv4
1149
1162
*:UNIX_System_V:4*:FTX*)
1150
1163
# From Gerald Hewes <hewes@openmarket.com>.
1151
1164
# How about differentiating between stratus architectures? -djm
1172
1185
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1173
1186
if [ -d /usr/nec ]; then
1174
echo mips-nec-sysv${UNAME_RELEASE}
1187
echo mips-nec-sysv${UNAME_RELEASE}
1176
echo mips-${VENDOR}-sysv${UNAME_RELEASE}
1189
echo mips-unknown-sysv${UNAME_RELEASE}
1179
1192
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1180
1193
echo powerpc-be-beos
1265
1281
UNAME_MACHINE="$cputype"
1267
echo ${UNAME_MACHINE}-${VENDOR}-plan9
1283
echo ${UNAME_MACHINE}-unknown-plan9
1270
echo pdp10-${VENDOR}-tops10
1286
echo pdp10-unknown-tops10
1273
echo pdp10-${VENDOR}-tenex
1289
echo pdp10-unknown-tenex
1275
1291
KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
1276
1292
echo pdp10-dec-tops20
1279
1295
echo pdp10-xkl-tops20
1282
echo pdp10-${VENDOR}-tops20
1298
echo pdp10-unknown-tops20
1285
echo pdp10-${VENDOR}-its
1301
echo pdp10-unknown-its
1288
echo mips-sei-seiux${UNAME_RELEASE}
1304
echo mips-sei-seiux${UNAME_RELEASE}
1290
1306
*:DragonFly:*:*)
1291
echo ${UNAME_MACHINE}-${VENDOR}-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1307
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1294
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1310
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1295
1311
case "${UNAME_MACHINE}" in
1296
1312
A*) echo alpha-dec-vms ; exit ;;
1297
1313
I*) echo ia64-dec-vms ; exit ;;