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
27
25
# the same distribution terms that you use for the rest of that program.
30
# Originally written by Per Bothner <per@bothner.com>.
31
# Please send patches to <config-patches@gnu.org>. Submit a context
32
# diff and a properly formatted ChangeLog entry.
28
# Originally written by Per Bothner. Please send patches (context
29
# diff format) to <config-patches@gnu.org> and include a ChangeLog
34
32
# This script attempts to guess a canonical system name similar to
35
33
# config.sub. If it succeeds, it prints the system name on stdout, and
36
34
# exits with 0. Otherwise, it exits with 1.
38
# The plan is that this can be called by configure scripts if you
39
# don't specify an explicit build system type.
36
# You can get the latest version of this script from:
37
# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
41
39
me=`echo "$0" | sed -e 's,.*/,,'`
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."
144
143
case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
146
145
# NetBSD (nbsd) targets should (where applicable) match one or
147
# more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*,
146
# more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*,
148
147
# *-*-netbsdecoff* and *-*-netbsd*. For targets that recently
149
148
# switched to ELF, *-*-netbsd* would select the old
150
149
# object file format. This provides both forward
269
268
# A Xn.n version is an unreleased experimental baselevel.
270
269
# 1.2 uses "1.2" for uname -r.
271
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.
273
275
Alpha\ *:Windows_NT*:*)
274
276
# How do we know it's Interix rather than the generic POSIX subsystem?
275
277
# Should we change UNAME_MACHINE based on the output of uname instead
391
396
# MiNT. But MiNT is downward compatible to TOS, so this should
393
398
atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
394
echo m68k-atari-mint${UNAME_RELEASE}
399
echo m68k-atari-mint${UNAME_RELEASE}
396
401
atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
397
402
echo m68k-atari-mint${UNAME_RELEASE}
399
404
*falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
400
echo m68k-atari-mint${UNAME_RELEASE}
405
echo m68k-atari-mint${UNAME_RELEASE}
402
407
milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
403
echo m68k-milan-mint${UNAME_RELEASE}
408
echo m68k-milan-mint${UNAME_RELEASE}
405
410
hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
406
echo m68k-hades-mint${UNAME_RELEASE}
411
echo m68k-hades-mint${UNAME_RELEASE}
408
413
*:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
409
echo m68k-unknown-mint${UNAME_RELEASE}
414
echo m68k-unknown-mint${UNAME_RELEASE}
411
416
m68k:machten:*:*)
412
417
echo m68k-apple-machten${UNAME_RELEASE}
477
482
echo m88k-motorola-sysv3
480
# DG/UX returns AViiON for all architectures
481
UNAME_PROCESSOR=`/usr/bin/uname -p`
485
# DG/UX returns AViiON for all architectures
486
UNAME_PROCESSOR=`/usr/bin/uname -p`
482
487
if [ $UNAME_PROCESSOR = mc88100 ] || [ $UNAME_PROCESSOR = mc88110 ]
484
489
if [ ${TARGET_BINARY_INTERFACE}x = m88kdguxelfx ] || \
591
596
9000/[678][0-9][0-9])
592
597
if [ -x /usr/bin/getconf ]; then
593
598
sc_cpu_version=`/usr/bin/getconf SC_CPU_VERSION 2>/dev/null`
594
sc_kernel_bits=`/usr/bin/getconf SC_KERNEL_BITS 2>/dev/null`
595
case "${sc_cpu_version}" in
596
523) HP_ARCH="hppa1.0" ;; # CPU_PA_RISC1_0
597
528) HP_ARCH="hppa1.1" ;; # CPU_PA_RISC1_1
598
532) # CPU_PA_RISC2_0
599
case "${sc_kernel_bits}" in
600
32) HP_ARCH="hppa2.0n" ;;
601
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" ;;
602
607
'') HP_ARCH="hppa2.0" ;; # HP-UX 10.20
606
611
if [ "${HP_ARCH}" = "" ]; then
607
612
eval $set_cc_for_build
608
sed 's/^ //' << EOF >$dummy.c
616
#if defined(_SC_KERNEL_BITS)
617
long bits = sysconf(_SC_KERNEL_BITS);
619
long cpu = sysconf (_SC_CPU_VERSION);
623
case CPU_PA_RISC1_0: puts ("hppa1.0"); break;
624
case CPU_PA_RISC1_1: puts ("hppa1.1"); break;
626
#if defined(_SC_KERNEL_BITS)
629
case 64: puts ("hppa2.0w"); break;
630
case 32: puts ("hppa2.0n"); break;
631
default: puts ("hppa2.0"); break;
633
#else /* !defined(_SC_KERNEL_BITS) */
634
puts ("hppa2.0"); break;
636
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;
641
646
(CCOPTS= $CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null) && HP_ARCH=`$dummy`
642
647
test -z "$HP_ARCH" && HP_ARCH=hppa
728
733
C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
729
734
echo c1-convex-bsd
731
736
C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
732
737
if getsysinfo -f scalar_acc
733
738
then echo c32-convex-bsd
734
739
else echo c2-convex-bsd
737
742
C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
738
743
echo c34-convex-bsd
740
745
C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
741
746
echo c38-convex-bsd
743
748
C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
744
749
echo c4-convex-bsd
747
752
echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
767
772
F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
768
773
FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
769
FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
770
FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
771
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}"
773
778
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}"
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}"
778
783
i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
779
784
echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
785
790
echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
788
case ${UNAME_MACHINE} in
790
echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793
UNAME_PROCESSOR=`/usr/bin/uname -p`
794
case ${UNAME_PROCESSOR} in
792
796
echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
794
echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
798
echo ${UNAME_PROCESSOR}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
801
805
echo ${UNAME_MACHINE}-pc-mingw32
808
echo ${UNAME_MACHINE}-pc-msys
804
# uname -m includes "-pc" on this system.
805
echo ${UNAME_MACHINE}-mingw32
811
# uname -m includes "-pc" on this system.
812
echo ${UNAME_MACHINE}-mingw32
808
815
echo ${UNAME_MACHINE}-pc-pw32
811
case ${UNAME_MACHINE} in
818
case ${UNAME_MACHINE} in
813
820
echo i586-pc-interix${UNAME_RELEASE}
815
EM64T | authenticamd | genuineintel)
822
authenticamd | genuineintel | EM64T)
816
823
echo x86_64-unknown-interix${UNAME_RELEASE}
855
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
872
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
873
EV5) UNAME_MACHINE=alphaev5 ;;
874
EV56) UNAME_MACHINE=alphaev56 ;;
875
PCA56) UNAME_MACHINE=alphapca56 ;;
876
PCA57) UNAME_MACHINE=alphapca56 ;;
877
EV6) UNAME_MACHINE=alphaev6 ;;
878
EV67) UNAME_MACHINE=alphaev67 ;;
879
EV68*) UNAME_MACHINE=alphaev68 ;;
881
objdump --private-headers /bin/sh | grep -q ld.so.1
882
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
883
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
858
886
eval $set_cc_for_build
859
887
if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
862
890
echo ${UNAME_MACHINE}-unknown-linux-gnu
864
echo ${UNAME_MACHINE}-unknown-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
867
901
avr32*:Linux:*:*)
868
902
echo ${UNAME_MACHINE}-unknown-linux-gnu
871
echo cris-axis-linux-gnu
905
echo ${UNAME_MACHINE}-axis-linux-gnu
873
907
crisv32:Linux:*:*)
874
echo crisv32-axis-linux-gnu
908
echo ${UNAME_MACHINE}-axis-linux-gnu
877
echo frv-unknown-linux-gnu
911
echo ${UNAME_MACHINE}-unknown-linux-gnu
914
echo ${UNAME_MACHINE}-unknown-linux-gnu
918
eval $set_cc_for_build
919
sed 's/^ //' << EOF >$dummy.c
924
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
925
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
880
928
echo ${UNAME_MACHINE}-unknown-linux-gnu
904
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
952
eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
909
953
test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
912
echo or32-unknown-linux-gnu
915
echo powerpc-unknown-linux-gnu
918
echo powerpc64-unknown-linux-gnu
921
case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
922
EV5) UNAME_MACHINE=alphaev5 ;;
923
EV56) UNAME_MACHINE=alphaev56 ;;
924
PCA56) UNAME_MACHINE=alphapca56 ;;
925
PCA57) UNAME_MACHINE=alphapca56 ;;
926
EV6) UNAME_MACHINE=alphaev6 ;;
927
EV67) UNAME_MACHINE=alphaev67 ;;
928
EV68*) UNAME_MACHINE=alphaev68 ;;
930
objdump --private-headers /bin/sh | grep -q ld.so.1
931
if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
932
echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
956
echo ${UNAME_MACHINE}-unknown-linux-gnu
935
959
echo sparc-unknown-linux-gnu
961
parisc64:Linux:*:* | hppa64:Linux:*:*)
962
echo hppa64-unknown-linux-gnu
937
964
parisc:Linux:*:* | hppa:Linux:*:*)
938
965
# Look for CPU level
939
966
case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
942
969
*) echo hppa-unknown-linux-gnu ;;
945
parisc64:Linux:*:* | hppa64:Linux:*:*)
946
echo hppa64-unknown-linux-gnu
973
echo powerpc64-unknown-linux-gnu
976
echo powerpc-unknown-linux-gnu
948
978
s390:Linux:*:* | s390x:Linux:*:*)
949
979
echo ${UNAME_MACHINE}-ibm-linux
952
echo ${UNAME_MACHINE}-unknown-linux-gnu
982
echo ${UNAME_MACHINE}-unknown-linux-gnu
955
985
echo ${UNAME_MACHINE}-unknown-linux-gnu
957
987
sparc:Linux:*:* | sparc64:Linux:*:*)
958
988
echo ${UNAME_MACHINE}-unknown-linux-gnu
991
echo ${UNAME_MACHINE}-unknown-linux-gnu
961
994
echo ${UNAME_MACHINE}-dec-linux-gnu
963
996
x86_64:Linux:*:*)
964
echo x86_64-unknown-linux-gnu
997
echo ${UNAME_MACHINE}-unknown-linux-gnu
966
999
xtensa*:Linux:*:*)
967
echo ${UNAME_MACHINE}-unknown-linux-gnu
1000
echo ${UNAME_MACHINE}-unknown-linux-gnu
970
# The BFD linker knows what the default object file format is, so
971
# first see if it will tell us. cd to the root directory to prevent
972
# problems with other programs or directories called `ld' in the path.
973
# Set LC_ALL=C to ensure ld outputs messages in English.
974
ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
975
| sed -ne '/supported targets:/!d
977
s/.*supported targets: *//
980
case "$ld_supported_targets" in
982
TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
985
# Determine whether the default compiler is a.out or elf
986
eval $set_cc_for_build
987
sed 's/^ //' << EOF >$dummy.c
988
#include <features.h>
1000
#if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1010
eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1015
test x"${LIBC}" != x && {
1016
echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019
test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1021
1002
i*86:DYNIX/ptx:4*:*)
1022
1003
# ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1023
1004
# earlier versions are messed up and put the nodename in both
1025
1006
echo i386-sequent-sysv4
1027
1008
i*86:UNIX_SV:4.2MP:2.*)
1028
# Unixware is an offshoot of SVR4, but it has its own version
1029
# number series starting with 2...
1030
# 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,
1031
1012
# I just have to hope. -- rms.
1032
# Use sysv4.2uw... so that sysv4* matches it.
1013
# Use sysv4.2uw... so that sysv4* matches it.
1033
1014
echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
1063
1044
i*86:*:5:[678]*)
1064
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1045
# UnixWare 7.x, OpenUNIX and OpenServer 6.
1065
1046
case `/bin/uname -X | grep "^Machine"` in
1066
1047
*486*) UNAME_MACHINE=i486 ;;
1067
1048
*Pentium) UNAME_MACHINE=i586 ;;
1091
1072
# Left here for compatibility:
1092
# uname -m prints for DJGPP always 'pc', but it prints nothing about
1093
# 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.
1094
1075
# Note: whatever this is, it MUST be the same as what config.sub
1095
1076
# prints for the "djgpp" host, or else GDB configury will decide that
1096
1077
# this is a cross-build.
1097
1078
echo i586-pc-msdosdjgpp
1099
1080
Intel:Mach:3*:*)
1100
1081
echo i386-pc-mach3
1130
1111
/bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1131
1112
&& { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1132
1113
3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1133
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1134
&& { echo i486-ncr-sysv4; exit; } ;;
1114
/bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1115
&& { echo i486-ncr-sysv4; exit; } ;;
1135
1116
NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1137
1118
test -r /etc/.relid \
1174
1155
echo ns32k-sni-sysv
1177
PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
1178
# says <Richard.M.Bartel@ccMail.Census.GOV>
1179
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
1181
1162
*:UNIX_System_V:4*:FTX*)
1182
1163
# From Gerald Hewes <hewes@openmarket.com>.
1183
1164
# How about differentiating between stratus architectures? -djm
1204
1185
R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
1205
1186
if [ -d /usr/nec ]; then
1206
echo mips-nec-sysv${UNAME_RELEASE}
1187
echo mips-nec-sysv${UNAME_RELEASE}
1208
echo mips-unknown-sysv${UNAME_RELEASE}
1189
echo mips-unknown-sysv${UNAME_RELEASE}
1211
1192
BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
1212
1193
echo powerpc-be-beos
1248
1229
UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1249
1230
case $UNAME_PROCESSOR in
1232
eval $set_cc_for_build
1233
if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
1234
if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \
1235
(CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
1236
grep IS_64BIT_ARCH >/dev/null
1238
UNAME_PROCESSOR="x86_64"
1250
1241
unknown) UNAME_PROCESSOR=powerpc ;;
1252
1243
echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1307
1301
echo pdp10-unknown-its
1310
echo mips-sei-seiux${UNAME_RELEASE}
1304
echo mips-sei-seiux${UNAME_RELEASE}
1312
1306
*:DragonFly:*:*)
1313
1307
echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
1316
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1310
UNAME_MACHINE=`(uname -p) 2>/dev/null`
1317
1311
case "${UNAME_MACHINE}" in
1318
1312
A*) echo alpha-dec-vms ; exit ;;
1319
1313
I*) echo ia64-dec-vms ; exit ;;