2
2
# Attempt to guess a canonical system name.
3
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4
# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5
# Free Software Foundation, Inc.
3
# Copyright 1992-2013 Free Software Foundation, Inc.
9
7
# This file is free software; you can redistribute it and/or modify it
10
8
# under the terms of the GNU General Public License as published by
11
# the Free Software Foundation; either version 2 of the License, or
9
# the Free Software Foundation; either version 3 of the License, or
12
10
# (at your option) any later version.
14
12
# This program is distributed in the hope that it will be useful, but
17
15
# General Public License for more details.
19
17
# 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
18
# along with this program; if not, see <http://www.gnu.org/licenses/>.
24
20
# As a special exception to the GNU General Public License, if you
25
21
# distribute this file as part of a program that contains a
26
22
# configuration script generated by Autoconf, you may include it under
27
# the same distribution terms that you use for the rest of that program.
30
# Originally written by Per Bothner. Please send patches (context
31
# diff format) to <config-patches@gnu.org> and include a ChangeLog
23
# the same distribution terms that you use for the rest of that
24
# program. This Exception is an additional permission under section 7
25
# of the GNU General Public License, version 3 ("GPLv3").
34
# This script attempts to guess a canonical system name similar to
35
# config.sub. If it succeeds, it prints the system name on stdout, and
36
# exits with 0. Otherwise, it exits with 1.
27
# Originally written by Per Bothner.
38
29
# You can get the latest version of this script from:
39
30
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
32
# Please send patches with a ChangeLog entry to config-patches@gnu.org.
41
35
me=`echo "$0" | sed -e 's,.*/,,'`
56
50
GNU config.guess ($timestamp)
58
52
Originally written by Per Bothner.
59
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
60
2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
61
Software Foundation, Inc.
53
Copyright 1992-2013 Free Software Foundation, Inc.
63
55
This is free software; see the source for copying conditions. There is NO
64
56
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
140
132
UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown
141
133
UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown
135
case "${UNAME_SYSTEM}" in
137
# If the system lacks a compiler, then just pick glibc.
138
# We could probably try harder.
141
eval $set_cc_for_build
142
cat <<-EOF > $dummy.c
143
#include <features.h>
144
#if defined(__UCLIBC__)
146
#elif defined(__dietlibc__)
152
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
143
156
# Note: order is significant - the case branches are not exclusive.
145
158
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
147
160
# NetBSD (nbsd) targets should (where applicable) match one or
148
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
161
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
149
162
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
150
163
# switched to ELF, *-*-netbsd* would select the old
151
164
# object file format. This provides both forward
202
215
# CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
203
216
echo "${machine}-${os}${release}"
219
UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'`
220
echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE}
206
223
UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
207
224
echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
270
287
# A Xn.n version is an unreleased experimental baselevel.
271
288
# 1.2 uses "1.2" for uname -r.
272
289
echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
290
# Reset EXIT trap before exiting to avoid spurious non-zero exit code.
274
294
Alpha\ *:Windows_NT*:*)
275
295
# How do we know it's Interix rather than the generic POSIX subsystem?
276
296
# Should we change UNAME_MACHINE based on the output of uname instead
395
415
# MiNT. But MiNT is downward compatible to TOS, so this should
397
417
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
398
echo m68k-atari-mint${UNAME_RELEASE}
418
echo m68k-atari-mint${UNAME_RELEASE}
400
420
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
401
421
echo m68k-atari-mint${UNAME_RELEASE}
403
423
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
404
echo m68k-atari-mint${UNAME_RELEASE}
424
echo m68k-atari-mint${UNAME_RELEASE}
406
426
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
407
echo m68k-milan-mint${UNAME_RELEASE}
427
echo m68k-milan-mint${UNAME_RELEASE}
409
429
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
410
echo m68k-hades-mint${UNAME_RELEASE}
430
echo m68k-hades-mint${UNAME_RELEASE}
412
432
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
413
echo m68k-unknown-mint${UNAME_RELEASE}
433
echo m68k-unknown-mint${UNAME_RELEASE}
415
435
m68k:machten:*:*)
416
436
echo m68k-apple-machten${UNAME_RELEASE}
481
501
echo m88k-motorola-sysv3
484
# DG/UX returns AViiON for all architectures
485
UNAME_PROCESSOR=`/usr/bin/uname -p`
504
# DG/UX returns AViiON for all architectures
505
UNAME_PROCESSOR=`/usr/bin/uname -p`
486
506
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
488
508
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
595
615
9000/[678][0-9][0-9])
596
616
if [ -x /usr/bin/getconf ]; then
597
617
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
598
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
599
case "${sc_cpu_version}" in
600
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
601
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
602
532) # CPU_PA_RISC2_0
603
case "${sc_kernel_bits}" in
604
32) HP_ARCH="hppa2.0n" ;;
605
64) HP_ARCH="hppa2.0w" ;;
618
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
619
case "${sc_cpu_version}" in
620
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
621
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
622
532) # CPU_PA_RISC2_0
623
case "${sc_kernel_bits}" in
624
32) HP_ARCH="hppa2.0n" ;;
625
64) HP_ARCH="hppa2.0w" ;;
606
626
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
610
630
if [ "${HP_ARCH}" = "" ]; then
611
631
eval $set_cc_for_build
612
sed 's/^ //' << EOF >$dummy.c
620
#if defined(_SC_KERNEL_BITS)
621
long bits = sysconf(_SC_KERNEL_BITS);
623
long cpu = sysconf (_SC_CPU_VERSION);
627
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
628
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
630
#if defined(_SC_KERNEL_BITS)
633
case 64: puts ("hppa2.0w"); break;
634
case 32: puts ("hppa2.0n"); break;
635
default: puts ("hppa2.0"); break;
637
#else /* !defined(_SC_KERNEL_BITS) */
638
puts ("hppa2.0"); break;
640
default: puts ("hppa1.0"); break;
632
sed 's/^ //' << EOF >$dummy.c
640
#if defined(_SC_KERNEL_BITS)
641
long bits = sysconf(_SC_KERNEL_BITS);
643
long cpu = sysconf (_SC_CPU_VERSION);
647
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
648
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
650
#if defined(_SC_KERNEL_BITS)
653
case 64: puts ("hppa2.0w"); break;
654
case 32: puts ("hppa2.0n"); break;
655
default: puts ("hppa2.0"); break;
657
#else /* !defined(_SC_KERNEL_BITS) */
658
puts ("hppa2.0"); break;
660
default: puts ("hppa1.0"); break;
645
665
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
646
666
test -z "$HP_ARCH" && HP_ARCH=hppa
732
752
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
733
753
echo c1-convex-bsd
735
755
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
736
756
if getsysinfo -f scalar_acc
737
757
then echo c32-convex-bsd
738
758
else echo c2-convex-bsd
741
761
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
742
762
echo c34-convex-bsd
744
764
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
745
765
echo c38-convex-bsd
747
767
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
748
768
echo c4-convex-bsd
751
771
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
771
791
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
772
792
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
773
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
774
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
775
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
793
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
794
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
795
echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
777
797
5000:UNIX_System_V:4.*:*)
778
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
779
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
780
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
798
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
799
FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
800
echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
782
802
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
783
803
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
789
809
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
792
case ${UNAME_MACHINE} in
794
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
812
UNAME_PROCESSOR=`/usr/bin/uname -p`
813
case ${UNAME_PROCESSOR} in
796
815
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
817
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
802
821
echo ${UNAME_MACHINE}-pc-cygwin
824
echo ${UNAME_MACHINE}-pc-mingw64
805
827
echo ${UNAME_MACHINE}-pc-mingw32
830
echo ${UNAME_MACHINE}-pc-msys
808
# uname -m includes "-pc" on this system.
809
echo ${UNAME_MACHINE}-mingw32
833
# uname -m includes "-pc" on this system.
834
echo ${UNAME_MACHINE}-mingw32
812
837
echo ${UNAME_MACHINE}-pc-pw32
815
case ${UNAME_MACHINE} in
840
case ${UNAME_MACHINE} in
817
842
echo i586-pc-interix${UNAME_RELEASE}
852
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
877
echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
855
880
# other systems with GNU libc and userland
856
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
881
echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC}
859
884
echo ${UNAME_MACHINE}-pc-minix
887
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
889
aarch64_be:Linux:*:*)
890
UNAME_MACHINE=aarch64_be
891
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
862
894
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
863
895
EV5) UNAME_MACHINE=alphaev5 ;;
867
899
EV6) UNAME_MACHINE=alphaev6 ;;
868
900
EV67) UNAME_MACHINE=alphaev67 ;;
869
901
EV68*) UNAME_MACHINE=alphaev68 ;;
871
903
objdump --private-headers /bin/sh | grep -q ld.so.1
872
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
873
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
904
if test "$?" = 0 ; then LIBC="gnulibc1" ; fi
905
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
907
arc:Linux:*:* | arceb:Linux:*:*)
908
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
876
911
eval $set_cc_for_build
877
912
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
878
913
| grep -q __ARM_EABI__
880
echo ${UNAME_MACHINE}-unknown-linux-gnu
915
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
882
echo ${UNAME_MACHINE}-unknown-linux-gnueabi
917
if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \
918
| grep -q __ARM_PCS_VFP
920
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi
922
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf
885
926
avr32*:Linux:*:*)
886
echo ${UNAME_MACHINE}-unknown-linux-gnu
927
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
889
echo cris-axis-linux-gnu
930
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
891
932
crisv32:Linux:*:*)
892
echo crisv32-axis-linux-gnu
933
echo ${UNAME_MACHINE}-axis-linux-${LIBC}
895
echo frv-unknown-linux-gnu
936
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
939
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
899
eval $set_cc_for_build
900
sed 's/^ //' << EOF >$dummy.c
905
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
906
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
942
echo ${UNAME_MACHINE}-pc-linux-${LIBC}
909
echo ${UNAME_MACHINE}-unknown-linux-gnu
945
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
912
echo ${UNAME_MACHINE}-unknown-linux-gnu
948
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
915
echo ${UNAME_MACHINE}-unknown-linux-gnu
951
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
917
953
mips:Linux:*:* | mips64:Linux:*:*)
918
954
eval $set_cc_for_build
933
969
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
934
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
970
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; }
973
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
937
echo or32-unknown-linux-gnu
976
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
940
echo sparc-unknown-linux-gnu
979
echo sparc-unknown-linux-${LIBC}
942
981
parisc64:Linux:*:* | hppa64:Linux:*:*)
943
echo hppa64-unknown-linux-gnu
982
echo hppa64-unknown-linux-${LIBC}
945
984
parisc:Linux:*:* | hppa:Linux:*:*)
946
985
# Look for CPU level
947
986
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
948
PA7*) echo hppa1.1-unknown-linux-gnu ;;
949
PA8*) echo hppa2.0-unknown-linux-gnu ;;
950
*) echo hppa-unknown-linux-gnu ;;
987
PA7*) echo hppa1.1-unknown-linux-${LIBC} ;;
988
PA8*) echo hppa2.0-unknown-linux-${LIBC} ;;
989
*) echo hppa-unknown-linux-${LIBC} ;;
954
echo powerpc64-unknown-linux-gnu
993
echo powerpc64-unknown-linux-${LIBC}
957
echo powerpc-unknown-linux-gnu
996
echo powerpc-unknown-linux-${LIBC}
999
echo powerpc64le-unknown-linux-${LIBC}
1002
echo powerpcle-unknown-linux-${LIBC}
959
1004
s390:Linux:*:* | s390x:Linux:*:*)
960
echo ${UNAME_MACHINE}-ibm-linux
1005
echo ${UNAME_MACHINE}-ibm-linux-${LIBC}
962
1007
sh64*:Linux:*:*)
963
echo ${UNAME_MACHINE}-unknown-linux-gnu
1008
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
966
echo ${UNAME_MACHINE}-unknown-linux-gnu
1011
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
968
1013
sparc:Linux:*:* | sparc64:Linux:*:*)
969
echo ${UNAME_MACHINE}-unknown-linux-gnu
1014
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
1017
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
972
echo ${UNAME_MACHINE}-dec-linux-gnu
1020
echo ${UNAME_MACHINE}-dec-linux-${LIBC}
974
1022
x86_64:Linux:*:*)
975
echo x86_64-unknown-linux-gnu
1023
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
977
1025
xtensa*:Linux:*:*)
978
echo ${UNAME_MACHINE}-unknown-linux-gnu
1026
echo ${UNAME_MACHINE}-unknown-linux-${LIBC}
980
1028
i*86:DYNIX/ptx:4*:*)
981
1029
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
984
1032
echo i386-sequent-sysv4
986
1034
i*86:UNIX_SV:4.2MP:2.*)
987
# Unixware is an offshoot of SVR4, but it has its own version
988
# number series starting with 2...
989
# I am not positive that other SVR4 systems won't match this,
1035
# Unixware is an offshoot of SVR4, but it has its own version
1036
# number series starting with 2...
1037
# I am not positive that other SVR4 systems won't match this,
990
1038
# I just have to hope. -- rms.
991
# Use sysv4.2uw... so that sysv4* matches it.
1039
# Use sysv4.2uw... so that sysv4* matches it.
992
1040
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1022
1070
i*86:*:5:[678]*)
1023
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1071
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1024
1072
case `/bin/uname -X | grep "^Machine"` in
1025
1073
*486*) UNAME_MACHINE=i486 ;;
1026
1074
*Pentium) UNAME_MACHINE=i586 ;;
1050
1098
# Left here for compatibility:
1051
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1052
# the processor, so we play safe by assuming i586.
1099
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1100
# the processor, so we play safe by assuming i586.
1053
1101
# Note: whatever this is, it MUST be the same as what config.sub
1054
1102
# prints for the "djgpp" host, or else GDB configury will decide that
1055
1103
# this is a cross-build.
1056
1104
echo i586-pc-msdosdjgpp
1058
1106
Intel:Mach:3*:*)
1059
1107
echo i386-pc-mach3
1089
1137
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1090
1138
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1091
1139
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1092
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1093
&& { echo i486-ncr-sysv4; exit; } ;;
1140
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1141
&& { echo i486-ncr-sysv4; exit; } ;;
1094
1142
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1096
1144
test -r /etc/.relid \
1133
1181
echo ns32k-sni-sysv
1136
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1137
# says <Richard.M.Bartel@ccMail.Census.GOV>
1138
echo i586-unisys-sysv4
1184
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1185
# says <Richard.M.Bartel@ccMail.Census.GOV>
1186
echo i586-unisys-sysv4
1140
1188
*:UNIX_System_V:4*:FTX*)
1141
1189
# From Gerald Hewes <hewes@openmarket.com>.
1142
1190
# How about differentiating between stratus architectures? -djm
1163
1211
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1164
1212
if [ -d /usr/nec ]; then
1165
echo mips-nec-sysv${UNAME_RELEASE}
1213
echo mips-nec-sysv${UNAME_RELEASE}
1167
echo mips-unknown-sysv${UNAME_RELEASE}
1215
echo mips-unknown-sysv${UNAME_RELEASE}
1170
1218
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1171
1219
echo powerpc-be-beos
1207
1258
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1208
case $UNAME_PROCESSOR in
1210
eval $set_cc_for_build
1211
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1212
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1213
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1214
grep IS_64BIT_ARCH >/dev/null
1216
UNAME_PROCESSOR="x86_64"
1219
unknown) UNAME_PROCESSOR=powerpc ;;
1259
eval $set_cc_for_build
1260
if test "$UNAME_PROCESSOR" = unknown ; then
1261
UNAME_PROCESSOR=powerpc
1263
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1264
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1265
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1266
grep IS_64BIT_ARCH >/dev/null
1268
case $UNAME_PROCESSOR in
1269
i386) UNAME_PROCESSOR=x86_64 ;;
1270
powerpc) UNAME_PROCESSOR=powerpc64 ;;
1221
1274
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1223
1276
*:procnto*:*:* | *:QNX:[0123456789]*:*)
1232
1285
echo i386-pc-qnx
1234
NSE-?:NONSTOP_KERNEL:*:*)
1287
NEO-?:NONSTOP_KERNEL:*:*)
1288
echo neo-tandem-nsk${UNAME_RELEASE}
1290
NSE-*:NONSTOP_KERNEL:*:*)
1235
1291
echo nse-tandem-nsk${UNAME_RELEASE}
1237
1293
NSR-?:NONSTOP_KERNEL:*:*)
1276
1332
echo pdp10-unknown-its
1279
echo mips-sei-seiux${UNAME_RELEASE}
1335
echo mips-sei-seiux${UNAME_RELEASE}
1281
1337
*:DragonFly:*:*)
1282
1338
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1285
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1341
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1286
1342
case "${UNAME_MACHINE}" in
1287
1343
A*) echo alpha-dec-vms ; exit ;;
1288
1344
I*) echo ia64-dec-vms ; exit ;;