summaryrefslogtreecommitdiff
path: root/config.guess
diff options
context:
space:
mode:
Diffstat (limited to 'config.guess')
-rwxr-xr-xconfig.guess240
1 files changed, 137 insertions, 103 deletions
diff --git a/config.guess b/config.guess
index 6d71f752f..e3a2116a7 100755
--- a/config.guess
+++ b/config.guess
@@ -1,9 +1,10 @@
1#! /bin/sh 1#! /bin/sh
2# Attempt to guess a canonical system name. 2# Attempt to guess a canonical system name.
3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 3# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
4# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
5# Free Software Foundation, Inc.
5 6
6timestamp='2005-05-27' 7timestamp='2009-06-10'
7 8
8# This file is free software; you can redistribute it and/or modify it 9# This file is free software; you can redistribute it and/or modify it
9# under the terms of the GNU General Public License as published by 10# under the terms of the GNU General Public License as published by
@@ -55,8 +56,8 @@ version="\
55GNU config.guess ($timestamp) 56GNU config.guess ($timestamp)
56 57
57Originally written by Per Bothner. 58Originally written by Per Bothner.
58Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 59Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
59Free Software Foundation, Inc. 602002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
60 61
61This is free software; see the source for copying conditions. There is NO 62This is free software; see the source for copying conditions. There is NO
62warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
@@ -106,7 +107,7 @@ set_cc_for_build='
106trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; 107trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
107trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; 108trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
108: ${TMPDIR=/tmp} ; 109: ${TMPDIR=/tmp} ;
109 { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || 110 { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
110 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || 111 { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
111 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || 112 { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
112 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; 113 { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
@@ -125,7 +126,7 @@ case $CC_FOR_BUILD,$HOST_CC,$CC in
125 ;; 126 ;;
126 ,,*) CC_FOR_BUILD=$CC ;; 127 ,,*) CC_FOR_BUILD=$CC ;;
127 ,*,*) CC_FOR_BUILD=$HOST_CC ;; 128 ,*,*) CC_FOR_BUILD=$HOST_CC ;;
128esac ;' 129esac ; set_cc_for_build= ;'
129 130
130# This is needed to find uname on a Pyramid OSx when run in the BSD universe. 131# This is needed to find uname on a Pyramid OSx when run in the BSD universe.
131# (ghazi@noc.rutgers.edu 1994-08-24) 132# (ghazi@noc.rutgers.edu 1994-08-24)
@@ -160,6 +161,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
160 arm*) machine=arm-unknown ;; 161 arm*) machine=arm-unknown ;;
161 sh3el) machine=shl-unknown ;; 162 sh3el) machine=shl-unknown ;;
162 sh3eb) machine=sh-unknown ;; 163 sh3eb) machine=sh-unknown ;;
164 sh5el) machine=sh5le-unknown ;;
163 *) machine=${UNAME_MACHINE_ARCH}-unknown ;; 165 *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
164 esac 166 esac
165 # The Operating System including object format, if it has switched 167 # The Operating System including object format, if it has switched
@@ -168,7 +170,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
168 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 170 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
169 eval $set_cc_for_build 171 eval $set_cc_for_build
170 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
171 | grep __ELF__ >/dev/null 173 | grep -q __ELF__
172 then 174 then
173 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
174 # Return netbsd for either. FIX? 176 # Return netbsd for either. FIX?
@@ -199,50 +201,18 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
199 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. 201 # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
200 echo "${machine}-${os}${release}" 202 echo "${machine}-${os}${release}"
201 exit ;; 203 exit ;;
202 amd64:OpenBSD:*:*)
203 echo x86_64-unknown-openbsd${UNAME_RELEASE}
204 exit ;;
205 amiga:OpenBSD:*:*)
206 echo m68k-unknown-openbsd${UNAME_RELEASE}
207 exit ;;
208 cats:OpenBSD:*:*)
209 echo arm-unknown-openbsd${UNAME_RELEASE}
210 exit ;;
211 hp300:OpenBSD:*:*)
212 echo m68k-unknown-openbsd${UNAME_RELEASE}
213 exit ;;
214 luna88k:OpenBSD:*:*)
215 echo m88k-unknown-openbsd${UNAME_RELEASE}
216 exit ;;
217 mac68k:OpenBSD:*:*)
218 echo m68k-unknown-openbsd${UNAME_RELEASE}
219 exit ;;
220 macppc:OpenBSD:*:*)
221 echo powerpc-unknown-openbsd${UNAME_RELEASE}
222 exit ;;
223 mvme68k:OpenBSD:*:*)
224 echo m68k-unknown-openbsd${UNAME_RELEASE}
225 exit ;;
226 mvme88k:OpenBSD:*:*)
227 echo m88k-unknown-openbsd${UNAME_RELEASE}
228 exit ;;
229 mvmeppc:OpenBSD:*:*)
230 echo powerpc-unknown-openbsd${UNAME_RELEASE}
231 exit ;;
232 sgi:OpenBSD:*:*)
233 echo mips64-unknown-openbsd${UNAME_RELEASE}
234 exit ;;
235 sun3:OpenBSD:*:*)
236 echo m68k-unknown-openbsd${UNAME_RELEASE}
237 exit ;;
238 *:OpenBSD:*:*) 204 *:OpenBSD:*:*)
239 echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} 205 UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
206 echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
240 exit ;; 207 exit ;;
241 *:ekkoBSD:*:*) 208 *:ekkoBSD:*:*)
242 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} 209 echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
243 exit ;; 210 exit ;;
211 *:SolidBSD:*:*)
212 echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
213 exit ;;
244 macppc:MirBSD:*:*) 214 macppc:MirBSD:*:*)
245 echo powerppc-unknown-mirbsd${UNAME_RELEASE} 215 echo powerpc-unknown-mirbsd${UNAME_RELEASE}
246 exit ;; 216 exit ;;
247 *:MirBSD:*:*) 217 *:MirBSD:*:*)
248 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} 218 echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
@@ -354,14 +324,30 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
354 case `/usr/bin/uname -p` in 324 case `/usr/bin/uname -p` in
355 sparc) echo sparc-icl-nx7; exit ;; 325 sparc) echo sparc-icl-nx7; exit ;;
356 esac ;; 326 esac ;;
327 s390x:SunOS:*:*)
328 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;;
357 sun4H:SunOS:5.*:*) 330 sun4H:SunOS:5.*:*)
358 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 331 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
359 exit ;; 332 exit ;;
360 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 333 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
361 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 334 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
362 exit ;; 335 exit ;;
363 i86pc:SunOS:5.*:*) 336 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
364 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 337 eval $set_cc_for_build
338 SUN_ARCH="i386"
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
346 then
347 SUN_ARCH="x86_64"
348 fi
349 fi
350 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
365 exit ;; 351 exit ;;
366 sun4*:SunOS:6*:*) 352 sun4*:SunOS:6*:*)
367 # According to config.sub, this is the proper way to canonicalize 353 # According to config.sub, this is the proper way to canonicalize
@@ -562,7 +548,7 @@ EOF
562 echo rs6000-ibm-aix3.2 548 echo rs6000-ibm-aix3.2
563 fi 549 fi
564 exit ;; 550 exit ;;
565 *:AIX:*:[45]) 551 *:AIX:*:[456])
566 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 552 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
567 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 553 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
568 IBM_ARCH=rs6000 554 IBM_ARCH=rs6000
@@ -658,8 +644,7 @@ EOF
658 esac 644 esac
659 if [ ${HP_ARCH} = "hppa2.0w" ] 645 if [ ${HP_ARCH} = "hppa2.0w" ]
660 then 646 then
661 # avoid double evaluation of $set_cc_for_build 647 eval $set_cc_for_build
662 test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
663 648
664 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating 649 # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
665 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler 650 # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
@@ -671,7 +656,7 @@ EOF
671 # => hppa64-hp-hpux11.23 656 # => hppa64-hp-hpux11.23
672 657
673 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 658 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
674 grep __LP64__ >/dev/null 659 grep -q __LP64__
675 then 660 then
676 HP_ARCH="hppa2.0w" 661 HP_ARCH="hppa2.0w"
677 else 662 else
@@ -800,12 +785,19 @@ EOF
800 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} 785 echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
801 exit ;; 786 exit ;;
802 *:FreeBSD:*:*) 787 *:FreeBSD:*:*)
803 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` 788 case ${UNAME_MACHINE} in
789 pc98)
790 echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
791 amd64)
792 echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
793 *)
794 echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
795 esac
804 exit ;; 796 exit ;;
805 i*:CYGWIN*:*) 797 i*:CYGWIN*:*)
806 echo ${UNAME_MACHINE}-pc-cygwin 798 echo ${UNAME_MACHINE}-pc-cygwin
807 exit ;; 799 exit ;;
808 i*:MINGW*:*) 800 *:MINGW*:*)
809 echo ${UNAME_MACHINE}-pc-mingw32 801 echo ${UNAME_MACHINE}-pc-mingw32
810 exit ;; 802 exit ;;
811 i*:windows32*:*) 803 i*:windows32*:*)
@@ -815,12 +807,24 @@ EOF
815 i*:PW*:*) 807 i*:PW*:*)
816 echo ${UNAME_MACHINE}-pc-pw32 808 echo ${UNAME_MACHINE}-pc-pw32
817 exit ;; 809 exit ;;
818 x86:Interix*:[34]*) 810 *:Interix*:[3456]*)
819 echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' 811 case ${UNAME_MACHINE} in
820 exit ;; 812 x86)
813 echo i586-pc-interix${UNAME_RELEASE}
814 exit ;;
815 EM64T | authenticamd | genuineintel)
816 echo x86_64-unknown-interix${UNAME_RELEASE}
817 exit ;;
818 IA64)
819 echo ia64-unknown-interix${UNAME_RELEASE}
820 exit ;;
821 esac ;;
821 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 822 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
822 echo i${UNAME_MACHINE}-pc-mks 823 echo i${UNAME_MACHINE}-pc-mks
823 exit ;; 824 exit ;;
825 8664:Windows_NT:*)
826 echo x86_64-pc-mks
827 exit ;;
824 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 828 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
825 # How do we know it's Interix rather than the generic POSIX subsystem? 829 # How do we know it's Interix rather than the generic POSIX subsystem?
826 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 830 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
@@ -830,7 +834,7 @@ EOF
830 i*:UWIN*:*) 834 i*:UWIN*:*)
831 echo ${UNAME_MACHINE}-pc-uwin 835 echo ${UNAME_MACHINE}-pc-uwin
832 exit ;; 836 exit ;;
833 amd64:CYGWIN*:*:*) 837 amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
834 echo x86_64-unknown-cygwin 838 echo x86_64-unknown-cygwin
835 exit ;; 839 exit ;;
836 p*:CYGWIN*:*) 840 p*:CYGWIN*:*)
@@ -851,6 +855,16 @@ EOF
851 echo ${UNAME_MACHINE}-pc-minix 855 echo ${UNAME_MACHINE}-pc-minix
852 exit ;; 856 exit ;;
853 arm*:Linux:*:*) 857 arm*:Linux:*:*)
858 eval $set_cc_for_build
859 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
860 | grep -q __ARM_EABI__
861 then
862 echo ${UNAME_MACHINE}-unknown-linux-gnu
863 else
864 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
865 fi
866 exit ;;
867 avr32*:Linux:*:*)
854 echo ${UNAME_MACHINE}-unknown-linux-gnu 868 echo ${UNAME_MACHINE}-unknown-linux-gnu
855 exit ;; 869 exit ;;
856 cris:Linux:*:*) 870 cris:Linux:*:*)
@@ -871,44 +885,32 @@ EOF
871 m68*:Linux:*:*) 885 m68*:Linux:*:*)
872 echo ${UNAME_MACHINE}-unknown-linux-gnu 886 echo ${UNAME_MACHINE}-unknown-linux-gnu
873 exit ;; 887 exit ;;
874 mips:Linux:*:*) 888 mips:Linux:*:* | mips64:Linux:*:*)
875 eval $set_cc_for_build 889 eval $set_cc_for_build
876 sed 's/^ //' << EOF >$dummy.c 890 sed 's/^ //' << EOF >$dummy.c
877 #undef CPU 891 #undef CPU
878 #undef mips 892 #undef ${UNAME_MACHINE}
879 #undef mipsel 893 #undef ${UNAME_MACHINE}el
880 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) 894 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
881 CPU=mipsel 895 CPU=${UNAME_MACHINE}el
882 #else 896 #else
883 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) 897 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
884 CPU=mips 898 CPU=${UNAME_MACHINE}
885 #else 899 #else
886 CPU= 900 CPU=
887 #endif 901 #endif
888 #endif 902 #endif
889EOF 903EOF
890 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` 904 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
891 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 905 /^CPU/{
892 ;; 906 s: ::g
893 mips64:Linux:*:*) 907 p
894 eval $set_cc_for_build 908 }'`"
895 sed 's/^ //' << EOF >$dummy.c
896 #undef CPU
897 #undef mips64
898 #undef mips64el
899 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
900 CPU=mips64el
901 #else
902 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
903 CPU=mips64
904 #else
905 CPU=
906 #endif
907 #endif
908EOF
909 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
910 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } 909 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
911 ;; 910 ;;
911 or32:Linux:*:*)
912 echo or32-unknown-linux-gnu
913 exit ;;
912 ppc:Linux:*:*) 914 ppc:Linux:*:*)
913 echo powerpc-unknown-linux-gnu 915 echo powerpc-unknown-linux-gnu
914 exit ;; 916 exit ;;
@@ -925,10 +927,13 @@ EOF
925 EV67) UNAME_MACHINE=alphaev67 ;; 927 EV67) UNAME_MACHINE=alphaev67 ;;
926 EV68*) UNAME_MACHINE=alphaev68 ;; 928 EV68*) UNAME_MACHINE=alphaev68 ;;
927 esac 929 esac
928 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 930 objdump --private-headers /bin/sh | grep -q ld.so.1
929 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 931 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
930 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 932 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
931 exit ;; 933 exit ;;
934 padre:Linux:*:*)
935 echo sparc-unknown-linux-gnu
936 exit ;;
932 parisc:Linux:*:* | hppa:Linux:*:*) 937 parisc:Linux:*:* | hppa:Linux:*:*)
933 # Look for CPU level 938 # Look for CPU level
934 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 939 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
@@ -952,9 +957,15 @@ EOF
952 sparc:Linux:*:* | sparc64:Linux:*:*) 957 sparc:Linux:*:* | sparc64:Linux:*:*)
953 echo ${UNAME_MACHINE}-unknown-linux-gnu 958 echo ${UNAME_MACHINE}-unknown-linux-gnu
954 exit ;; 959 exit ;;
960 vax:Linux:*:*)
961 echo ${UNAME_MACHINE}-dec-linux-gnu
962 exit ;;
955 x86_64:Linux:*:*) 963 x86_64:Linux:*:*)
956 echo x86_64-unknown-linux-gnu 964 echo x86_64-unknown-linux-gnu
957 exit ;; 965 exit ;;
966 xtensa*:Linux:*:*)
967 echo ${UNAME_MACHINE}-unknown-linux-gnu
968 exit ;;
958 i*86:Linux:*:*) 969 i*86:Linux:*:*)
959 # The BFD linker knows what the default object file format is, so 970 # The BFD linker knows what the default object file format is, so
960 # first see if it will tell us. cd to the root directory to prevent 971 # first see if it will tell us. cd to the root directory to prevent
@@ -970,17 +981,6 @@ EOF
970 elf32-i386) 981 elf32-i386)
971 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" 982 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
972 ;; 983 ;;
973 a.out-i386-linux)
974 echo "${UNAME_MACHINE}-pc-linux-gnuaout"
975 exit ;;
976 coff-i386)
977 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
978 exit ;;
979 "")
980 # Either a pre-BFD a.out linker (linux-gnuoldld) or
981 # one that does not give us useful --help.
982 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
983 exit ;;
984 esac 984 esac
985 # Determine whether the default compiler is a.out or elf 985 # Determine whether the default compiler is a.out or elf
986 eval $set_cc_for_build 986 eval $set_cc_for_build
@@ -997,7 +997,7 @@ EOF
997 LIBC=gnulibc1 997 LIBC=gnulibc1
998 # endif 998 # endif
999 #else 999 #else
1000 #ifdef __INTEL_COMPILER 1000 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1001 LIBC=gnu 1001 LIBC=gnu
1002 #else 1002 #else
1003 LIBC=gnuaout 1003 LIBC=gnuaout
@@ -1007,7 +1007,11 @@ EOF
1007 LIBC=dietlibc 1007 LIBC=dietlibc
1008 #endif 1008 #endif
1009EOF 1009EOF
1010 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` 1010 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1011 /^LIBC/{
1012 s: ::g
1013 p
1014 }'`"
1011 test x"${LIBC}" != x && { 1015 test x"${LIBC}" != x && {
1012 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" 1016 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1013 exit 1017 exit
@@ -1042,7 +1046,7 @@ EOF
1042 i*86:syllable:*:*) 1046 i*86:syllable:*:*)
1043 echo ${UNAME_MACHINE}-pc-syllable 1047 echo ${UNAME_MACHINE}-pc-syllable
1044 exit ;; 1048 exit ;;
1045 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1049 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1046 echo i386-unknown-lynxos${UNAME_RELEASE} 1050 echo i386-unknown-lynxos${UNAME_RELEASE}
1047 exit ;; 1051 exit ;;
1048 i*86:*DOS:*:*) 1052 i*86:*DOS:*:*)
@@ -1086,8 +1090,11 @@ EOF
1086 pc:*:*:*) 1090 pc:*:*:*)
1087 # Left here for compatibility: 1091 # Left here for compatibility:
1088 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1092 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1089 # the processor, so we play safe by assuming i386. 1093 # the processor, so we play safe by assuming i586.
1090 echo i386-pc-msdosdjgpp 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
1091 exit ;; 1098 exit ;;
1092 Intel:Mach:3*:*) 1099 Intel:Mach:3*:*)
1093 echo i386-pc-mach3 1100 echo i386-pc-mach3
@@ -1125,6 +1132,16 @@ EOF
1125 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1132 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1126 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1133 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1127 && { echo i486-ncr-sysv4; exit; } ;; 1134 && { echo i486-ncr-sysv4; exit; } ;;
1135 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1136 OS_REL='.3'
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; } ;;
1128 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1145 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1129 echo m68k-unknown-lynxos${UNAME_RELEASE} 1146 echo m68k-unknown-lynxos${UNAME_RELEASE}
1130 exit ;; 1147 exit ;;
@@ -1137,7 +1154,7 @@ EOF
1137 rs6000:LynxOS:2.*:*) 1154 rs6000:LynxOS:2.*:*)
1138 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1155 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1139 exit ;; 1156 exit ;;
1140 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1157 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1141 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1158 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1142 exit ;; 1159 exit ;;
1143 SM[BE]S:UNIX_SV:*:*) 1160 SM[BE]S:UNIX_SV:*:*)
@@ -1200,6 +1217,9 @@ EOF
1200 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1217 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1201 echo i586-pc-beos 1218 echo i586-pc-beos
1202 exit ;; 1219 exit ;;
1220 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1221 echo i586-pc-haiku
1222 exit ;;
1203 SX-4:SUPER-UX:*:*) 1223 SX-4:SUPER-UX:*:*)
1204 echo sx4-nec-superux${UNAME_RELEASE} 1224 echo sx4-nec-superux${UNAME_RELEASE}
1205 exit ;; 1225 exit ;;
@@ -1209,6 +1229,15 @@ EOF
1209 SX-6:SUPER-UX:*:*) 1229 SX-6:SUPER-UX:*:*)
1210 echo sx6-nec-superux${UNAME_RELEASE} 1230 echo sx6-nec-superux${UNAME_RELEASE}
1211 exit ;; 1231 exit ;;
1232 SX-7:SUPER-UX:*:*)
1233 echo sx7-nec-superux${UNAME_RELEASE}
1234 exit ;;
1235 SX-8:SUPER-UX:*:*)
1236 echo sx8-nec-superux${UNAME_RELEASE}
1237 exit ;;
1238 SX-8R:SUPER-UX:*:*)
1239 echo sx8r-nec-superux${UNAME_RELEASE}
1240 exit ;;
1212 Power*:Rhapsody:*:*) 1241 Power*:Rhapsody:*:*)
1213 echo powerpc-apple-rhapsody${UNAME_RELEASE} 1242 echo powerpc-apple-rhapsody${UNAME_RELEASE}
1214 exit ;; 1243 exit ;;
@@ -1218,7 +1247,6 @@ EOF
1218 *:Darwin:*:*) 1247 *:Darwin:*:*)
1219 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1248 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1220 case $UNAME_PROCESSOR in 1249 case $UNAME_PROCESSOR in
1221 *86) UNAME_PROCESSOR=i686 ;;
1222 unknown) UNAME_PROCESSOR=powerpc ;; 1250 unknown) UNAME_PROCESSOR=powerpc ;;
1223 esac 1251 esac
1224 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1252 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
@@ -1297,6 +1325,12 @@ EOF
1297 i*86:skyos:*:*) 1325 i*86:skyos:*:*)
1298 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1326 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1299 exit ;; 1327 exit ;;
1328 i*86:rdos:*:*)
1329 echo ${UNAME_MACHINE}-pc-rdos
1330 exit ;;
1331 i*86:AROS:*:*)
1332 echo ${UNAME_MACHINE}-pc-aros
1333 exit ;;
1300esac 1334esac
1301 1335
1302#echo '(No uname command or uname output not recognized.)' 1>&2 1336#echo '(No uname command or uname output not recognized.)' 1>&2
@@ -1457,9 +1491,9 @@ This script, last modified $timestamp, has failed to recognize
1457the operating system you are using. It is advised that you 1491the operating system you are using. It is advised that you
1458download the most up to date version of the config scripts from 1492download the most up to date version of the config scripts from
1459 1493
1460 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1494 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1461and 1495and
1462 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1496 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1463 1497
1464If the version you run ($0) is already up to date, please 1498If the version you run ($0) is already up to date, please
1465send the following data and any information you think might be 1499send the following data and any information you think might be