ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/config.guess
(Generate patch)

Comparing rxvt-unicode/config.guess (file contents):
Revision 1.2 by ayin, Fri Jul 27 09:37:07 2007 UTC vs.
Revision 1.3 by sf-exg, Sun Jan 31 11:34:28 2010 UTC

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, 2006 Free Software Foundation, 4# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
5# Inc. 5# Free Software Foundation, Inc.
6 6
7timestamp='2007-07-22' 7timestamp='2009-12-30'
8 8
9# 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
10# 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
11# the Free Software Foundation; either version 2 of the License, or 11# the Free Software Foundation; either version 2 of the License, or
12# (at your option) any later version. 12# (at your option) any later version.
25# distribute this file as part of a program that contains a 25# distribute this file as part of a program that contains a
26# configuration script generated by Autoconf, you may include it under 26# configuration script generated by Autoconf, you may include it under
27# the same distribution terms that you use for the rest of that program. 27# the same distribution terms that you use for the rest of that program.
28 28
29 29
30# Originally written by Per Bothner <per@bothner.com>. 30# Originally written by Per Bothner. Please send patches (context
31# Please send patches to <config-patches@gnu.org>. Submit a context 31# diff format) to <config-patches@gnu.org> and include a ChangeLog
32# diff and a properly formatted ChangeLog entry. 32# entry.
33# 33#
34# This script attempts to guess a canonical system name similar to 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 35# config.sub. If it succeeds, it prints the system name on stdout, and
36# exits with 0. Otherwise, it exits with 1. 36# exits with 0. Otherwise, it exits with 1.
37# 37#
38# The plan is that this can be called by configure scripts if you 38# You can get the latest version of this script from:
39# don't specify an explicit build system type. 39# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
40 40
41me=`echo "$0" | sed -e 's,.*/,,'` 41me=`echo "$0" | sed -e 's,.*/,,'`
42 42
43usage="\ 43usage="\
44Usage: $0 [OPTION] 44Usage: $0 [OPTION]
54 54
55version="\ 55version="\
56GNU config.guess ($timestamp) 56GNU config.guess ($timestamp)
57 57
58Originally written by Per Bothner. 58Originally written by Per Bothner.
59Copyright (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,
602001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free
60Free Software Foundation, Inc. 61Software Foundation, Inc.
61 62
62This is free software; see the source for copying conditions. There is NO 63This is free software; see the source for copying conditions. There is NO
63warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." 64warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
64 65
65help=" 66help="
168 # to ELF recently, or will in the future. 169 # to ELF recently, or will in the future.
169 case "${UNAME_MACHINE_ARCH}" in 170 case "${UNAME_MACHINE_ARCH}" in
170 arm*|i386|m68k|ns32k|sh3*|sparc|vax) 171 arm*|i386|m68k|ns32k|sh3*|sparc|vax)
171 eval $set_cc_for_build 172 eval $set_cc_for_build
172 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ 173 if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
173 | grep __ELF__ >/dev/null 174 | grep -q __ELF__
174 then 175 then
175 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). 176 # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
176 # Return netbsd for either. FIX? 177 # Return netbsd for either. FIX?
177 os=netbsd 178 os=netbsd
178 else 179 else
322 exit ;; 323 exit ;;
323 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) 324 DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
324 case `/usr/bin/uname -p` in 325 case `/usr/bin/uname -p` in
325 sparc) echo sparc-icl-nx7; exit ;; 326 sparc) echo sparc-icl-nx7; exit ;;
326 esac ;; 327 esac ;;
328 s390x:SunOS:*:*)
329 echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
330 exit ;;
327 sun4H:SunOS:5.*:*) 331 sun4H:SunOS:5.*:*)
328 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 332 echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
329 exit ;; 333 exit ;;
330 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) 334 sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
331 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 335 echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
332 exit ;; 336 exit ;;
337 i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*)
338 echo i386-pc-auroraux${UNAME_RELEASE}
339 exit ;;
333 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) 340 i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
341 eval $set_cc_for_build
342 SUN_ARCH="i386"
343 # If there is a compiler, see if it is configured for 64-bit objects.
344 # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
345 # This test works for both compilers.
346 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
347 if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
348 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
349 grep IS_64BIT_ARCH >/dev/null
350 then
351 SUN_ARCH="x86_64"
352 fi
353 fi
334 echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` 354 echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
335 exit ;; 355 exit ;;
336 sun4*:SunOS:6*:*) 356 sun4*:SunOS:6*:*)
337 # According to config.sub, this is the proper way to canonicalize 357 # According to config.sub, this is the proper way to canonicalize
338 # SunOS6. Hard to guess exactly what SunOS6 will be like, but 358 # SunOS6. Hard to guess exactly what SunOS6 will be like, but
339 # it's likely to be more like Solaris than SunOS4. 359 # it's likely to be more like Solaris than SunOS4.
530 echo rs6000-ibm-aix3.2.4 550 echo rs6000-ibm-aix3.2.4
531 else 551 else
532 echo rs6000-ibm-aix3.2 552 echo rs6000-ibm-aix3.2
533 fi 553 fi
534 exit ;; 554 exit ;;
535 *:AIX:*:[45]) 555 *:AIX:*:[456])
536 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` 556 IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
537 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then 557 if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
538 IBM_ARCH=rs6000 558 IBM_ARCH=rs6000
539 else 559 else
540 IBM_ARCH=powerpc 560 IBM_ARCH=powerpc
638 # => hppa2.0w-hp-hpux11.23 658 # => hppa2.0w-hp-hpux11.23
639 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess 659 # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
640 # => hppa64-hp-hpux11.23 660 # => hppa64-hp-hpux11.23
641 661
642 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | 662 if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
643 grep __LP64__ >/dev/null 663 grep -q __LP64__
644 then 664 then
645 HP_ARCH="hppa2.0w" 665 HP_ARCH="hppa2.0w"
646 else 666 else
647 HP_ARCH="hppa64" 667 HP_ARCH="hppa64"
648 fi 668 fi
789 echo ${UNAME_MACHINE}-mingw32 809 echo ${UNAME_MACHINE}-mingw32
790 exit ;; 810 exit ;;
791 i*:PW*:*) 811 i*:PW*:*)
792 echo ${UNAME_MACHINE}-pc-pw32 812 echo ${UNAME_MACHINE}-pc-pw32
793 exit ;; 813 exit ;;
794 *:Interix*:[3456]*) 814 *:Interix*:*)
795 case ${UNAME_MACHINE} in 815 case ${UNAME_MACHINE} in
796 x86) 816 x86)
797 echo i586-pc-interix${UNAME_RELEASE} 817 echo i586-pc-interix${UNAME_RELEASE}
798 exit ;; 818 exit ;;
799 EM64T | authenticamd) 819 authenticamd | genuineintel | EM64T)
800 echo x86_64-unknown-interix${UNAME_RELEASE} 820 echo x86_64-unknown-interix${UNAME_RELEASE}
821 exit ;;
822 IA64)
823 echo ia64-unknown-interix${UNAME_RELEASE}
801 exit ;; 824 exit ;;
802 esac ;; 825 esac ;;
803 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) 826 [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
804 echo i${UNAME_MACHINE}-pc-mks 827 echo i${UNAME_MACHINE}-pc-mks
828 exit ;;
829 8664:Windows_NT:*)
830 echo x86_64-pc-mks
805 exit ;; 831 exit ;;
806 i*:Windows_NT*:* | Pentium*:Windows_NT*:*) 832 i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
807 # How do we know it's Interix rather than the generic POSIX subsystem? 833 # How do we know it's Interix rather than the generic POSIX subsystem?
808 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we 834 # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
809 # UNAME_MACHINE based on the output of uname instead of i386? 835 # UNAME_MACHINE based on the output of uname instead of i386?
829 # other systems with GNU libc and userland 855 # other systems with GNU libc and userland
830 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu 856 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
831 exit ;; 857 exit ;;
832 i*86:Minix:*:*) 858 i*86:Minix:*:*)
833 echo ${UNAME_MACHINE}-pc-minix 859 echo ${UNAME_MACHINE}-pc-minix
834 exit ;;
835 arm*:Linux:*:*)
836 echo ${UNAME_MACHINE}-unknown-linux-gnu
837 exit ;;
838 avr32*:Linux:*:*)
839 echo ${UNAME_MACHINE}-unknown-linux-gnu
840 exit ;;
841 cris:Linux:*:*)
842 echo cris-axis-linux-gnu
843 exit ;;
844 crisv32:Linux:*:*)
845 echo crisv32-axis-linux-gnu
846 exit ;;
847 frv:Linux:*:*)
848 echo frv-unknown-linux-gnu
849 exit ;;
850 ia64:Linux:*:*)
851 echo ${UNAME_MACHINE}-unknown-linux-gnu
852 exit ;;
853 m32r*:Linux:*:*)
854 echo ${UNAME_MACHINE}-unknown-linux-gnu
855 exit ;;
856 m68*:Linux:*:*)
857 echo ${UNAME_MACHINE}-unknown-linux-gnu
858 exit ;;
859 mips:Linux:*:*)
860 eval $set_cc_for_build
861 sed 's/^ //' << EOF >$dummy.c
862 #undef CPU
863 #undef mips
864 #undef mipsel
865 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
866 CPU=mipsel
867 #else
868 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
869 CPU=mips
870 #else
871 CPU=
872 #endif
873 #endif
874EOF
875 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
876 /^CPU/{
877 s: ::g
878 p
879 }'`"
880 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
881 ;;
882 mips64:Linux:*:*)
883 eval $set_cc_for_build
884 sed 's/^ //' << EOF >$dummy.c
885 #undef CPU
886 #undef mips64
887 #undef mips64el
888 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
889 CPU=mips64el
890 #else
891 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
892 CPU=mips64
893 #else
894 CPU=
895 #endif
896 #endif
897EOF
898 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
899 /^CPU/{
900 s: ::g
901 p
902 }'`"
903 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
904 ;;
905 or32:Linux:*:*)
906 echo or32-unknown-linux-gnu
907 exit ;;
908 ppc:Linux:*:*)
909 echo powerpc-unknown-linux-gnu
910 exit ;;
911 ppc64:Linux:*:*)
912 echo powerpc64-unknown-linux-gnu
913 exit ;; 860 exit ;;
914 alpha:Linux:*:*) 861 alpha:Linux:*:*)
915 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in 862 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
916 EV5) UNAME_MACHINE=alphaev5 ;; 863 EV5) UNAME_MACHINE=alphaev5 ;;
917 EV56) UNAME_MACHINE=alphaev56 ;; 864 EV56) UNAME_MACHINE=alphaev56 ;;
919 PCA57) UNAME_MACHINE=alphapca56 ;; 866 PCA57) UNAME_MACHINE=alphapca56 ;;
920 EV6) UNAME_MACHINE=alphaev6 ;; 867 EV6) UNAME_MACHINE=alphaev6 ;;
921 EV67) UNAME_MACHINE=alphaev67 ;; 868 EV67) UNAME_MACHINE=alphaev67 ;;
922 EV68*) UNAME_MACHINE=alphaev68 ;; 869 EV68*) UNAME_MACHINE=alphaev68 ;;
923 esac 870 esac
924 objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null 871 objdump --private-headers /bin/sh | grep -q ld.so.1
925 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi 872 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
926 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} 873 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
874 exit ;;
875 arm*:Linux:*:*)
876 eval $set_cc_for_build
877 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
878 | grep -q __ARM_EABI__
879 then
880 echo ${UNAME_MACHINE}-unknown-linux-gnu
881 else
882 echo ${UNAME_MACHINE}-unknown-linux-gnueabi
883 fi
884 exit ;;
885 avr32*:Linux:*:*)
886 echo ${UNAME_MACHINE}-unknown-linux-gnu
887 exit ;;
888 cris:Linux:*:*)
889 echo cris-axis-linux-gnu
890 exit ;;
891 crisv32:Linux:*:*)
892 echo crisv32-axis-linux-gnu
893 exit ;;
894 frv:Linux:*:*)
895 echo frv-unknown-linux-gnu
896 exit ;;
897 i*86:Linux:*:*)
898 LIBC=gnu
899 eval $set_cc_for_build
900 sed 's/^ //' << EOF >$dummy.c
901 #ifdef __dietlibc__
902 LIBC=dietlibc
903 #endif
904EOF
905 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'`
906 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
907 exit ;;
908 ia64:Linux:*:*)
909 echo ${UNAME_MACHINE}-unknown-linux-gnu
910 exit ;;
911 m32r*:Linux:*:*)
912 echo ${UNAME_MACHINE}-unknown-linux-gnu
913 exit ;;
914 m68*:Linux:*:*)
915 echo ${UNAME_MACHINE}-unknown-linux-gnu
916 exit ;;
917 mips:Linux:*:* | mips64:Linux:*:*)
918 eval $set_cc_for_build
919 sed 's/^ //' << EOF >$dummy.c
920 #undef CPU
921 #undef ${UNAME_MACHINE}
922 #undef ${UNAME_MACHINE}el
923 #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
924 CPU=${UNAME_MACHINE}el
925 #else
926 #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
927 CPU=${UNAME_MACHINE}
928 #else
929 CPU=
930 #endif
931 #endif
932EOF
933 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'`
934 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
935 ;;
936 or32:Linux:*:*)
937 echo or32-unknown-linux-gnu
938 exit ;;
939 padre:Linux:*:*)
940 echo sparc-unknown-linux-gnu
941 exit ;;
942 parisc64:Linux:*:* | hppa64:Linux:*:*)
943 echo hppa64-unknown-linux-gnu
927 exit ;; 944 exit ;;
928 parisc:Linux:*:* | hppa:Linux:*:*) 945 parisc:Linux:*:* | hppa:Linux:*:*)
929 # Look for CPU level 946 # Look for CPU level
930 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in 947 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
931 PA7*) echo hppa1.1-unknown-linux-gnu ;; 948 PA7*) echo hppa1.1-unknown-linux-gnu ;;
932 PA8*) echo hppa2.0-unknown-linux-gnu ;; 949 PA8*) echo hppa2.0-unknown-linux-gnu ;;
933 *) echo hppa-unknown-linux-gnu ;; 950 *) echo hppa-unknown-linux-gnu ;;
934 esac 951 esac
935 exit ;; 952 exit ;;
936 parisc64:Linux:*:* | hppa64:Linux:*:*) 953 ppc64:Linux:*:*)
937 echo hppa64-unknown-linux-gnu 954 echo powerpc64-unknown-linux-gnu
955 exit ;;
956 ppc:Linux:*:*)
957 echo powerpc-unknown-linux-gnu
938 exit ;; 958 exit ;;
939 s390:Linux:*:* | s390x:Linux:*:*) 959 s390:Linux:*:* | s390x:Linux:*:*)
940 echo ${UNAME_MACHINE}-ibm-linux 960 echo ${UNAME_MACHINE}-ibm-linux
941 exit ;; 961 exit ;;
942 sh64*:Linux:*:*) 962 sh64*:Linux:*:*)
952 echo ${UNAME_MACHINE}-dec-linux-gnu 972 echo ${UNAME_MACHINE}-dec-linux-gnu
953 exit ;; 973 exit ;;
954 x86_64:Linux:*:*) 974 x86_64:Linux:*:*)
955 echo x86_64-unknown-linux-gnu 975 echo x86_64-unknown-linux-gnu
956 exit ;; 976 exit ;;
957 xtensa:Linux:*:*) 977 xtensa*:Linux:*:*)
958 echo xtensa-unknown-linux-gnu
959 exit ;;
960 i*86:Linux:*:*)
961 # The BFD linker knows what the default object file format is, so
962 # first see if it will tell us. cd to the root directory to prevent
963 # problems with other programs or directories called `ld' in the path.
964 # Set LC_ALL=C to ensure ld outputs messages in English.
965 ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \
966 | sed -ne '/supported targets:/!d
967 s/[ ][ ]*/ /g
968 s/.*supported targets: *//
969 s/ .*//
970 p'`
971 case "$ld_supported_targets" in
972 elf32-i386)
973 TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
974 ;;
975 a.out-i386-linux)
976 echo "${UNAME_MACHINE}-pc-linux-gnuaout" 978 echo ${UNAME_MACHINE}-unknown-linux-gnu
977 exit ;; 979 exit ;;
978 coff-i386)
979 echo "${UNAME_MACHINE}-pc-linux-gnucoff"
980 exit ;;
981 "")
982 # Either a pre-BFD a.out linker (linux-gnuoldld) or
983 # one that does not give us useful --help.
984 echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
985 exit ;;
986 esac
987 # Determine whether the default compiler is a.out or elf
988 eval $set_cc_for_build
989 sed 's/^ //' << EOF >$dummy.c
990 #include <features.h>
991 #ifdef __ELF__
992 # ifdef __GLIBC__
993 # if __GLIBC__ >= 2
994 LIBC=gnu
995 # else
996 LIBC=gnulibc1
997 # endif
998 # else
999 LIBC=gnulibc1
1000 # endif
1001 #else
1002 #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
1003 LIBC=gnu
1004 #else
1005 LIBC=gnuaout
1006 #endif
1007 #endif
1008 #ifdef __dietlibc__
1009 LIBC=dietlibc
1010 #endif
1011EOF
1012 eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
1013 /^LIBC/{
1014 s: ::g
1015 p
1016 }'`"
1017 test x"${LIBC}" != x && {
1018 echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
1019 exit
1020 }
1021 test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
1022 ;;
1023 i*86:DYNIX/ptx:4*:*) 980 i*86:DYNIX/ptx:4*:*)
1024 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. 981 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
1025 # earlier versions are messed up and put the nodename in both 982 # earlier versions are messed up and put the nodename in both
1026 # sysname and nodename. 983 # sysname and nodename.
1027 echo i386-sequent-sysv4 984 echo i386-sequent-sysv4
1046 echo ${UNAME_MACHINE}-unknown-atheos 1003 echo ${UNAME_MACHINE}-unknown-atheos
1047 exit ;; 1004 exit ;;
1048 i*86:syllable:*:*) 1005 i*86:syllable:*:*)
1049 echo ${UNAME_MACHINE}-pc-syllable 1006 echo ${UNAME_MACHINE}-pc-syllable
1050 exit ;; 1007 exit ;;
1051 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) 1008 i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
1052 echo i386-unknown-lynxos${UNAME_RELEASE} 1009 echo i386-unknown-lynxos${UNAME_RELEASE}
1053 exit ;; 1010 exit ;;
1054 i*86:*DOS:*:*) 1011 i*86:*DOS:*:*)
1055 echo ${UNAME_MACHINE}-pc-msdosdjgpp 1012 echo ${UNAME_MACHINE}-pc-msdosdjgpp
1056 exit ;; 1013 exit ;;
1090 fi 1047 fi
1091 exit ;; 1048 exit ;;
1092 pc:*:*:*) 1049 pc:*:*:*)
1093 # Left here for compatibility: 1050 # Left here for compatibility:
1094 # uname -m prints for DJGPP always 'pc', but it prints nothing about 1051 # uname -m prints for DJGPP always 'pc', but it prints nothing about
1095 # the processor, so we play safe by assuming i386. 1052 # the processor, so we play safe by assuming i586.
1053 # Note: whatever this is, it MUST be the same as what config.sub
1054 # prints for the "djgpp" host, or else GDB configury will decide that
1055 # this is a cross-build.
1096 echo i386-pc-msdosdjgpp 1056 echo i586-pc-msdosdjgpp
1097 exit ;; 1057 exit ;;
1098 Intel:Mach:3*:*) 1058 Intel:Mach:3*:*)
1099 echo i386-pc-mach3 1059 echo i386-pc-mach3
1100 exit ;; 1060 exit ;;
1101 paragon:*:*:*) 1061 paragon:*:*:*)
1129 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ 1089 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1130 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; 1090 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1131 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) 1091 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
1132 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ 1092 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1133 && { echo i486-ncr-sysv4; exit; } ;; 1093 && { echo i486-ncr-sysv4; exit; } ;;
1094 NCR*:*:4.2:* | MPRAS*:*:4.2:*)
1095 OS_REL='.3'
1096 test -r /etc/.relid \
1097 && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
1098 /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
1099 && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
1100 /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
1101 && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
1102 /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
1103 && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
1134 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) 1104 m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
1135 echo m68k-unknown-lynxos${UNAME_RELEASE} 1105 echo m68k-unknown-lynxos${UNAME_RELEASE}
1136 exit ;; 1106 exit ;;
1137 mc68030:UNIX_System_V:4.*:*) 1107 mc68030:UNIX_System_V:4.*:*)
1138 echo m68k-atari-sysv4 1108 echo m68k-atari-sysv4
1141 echo sparc-unknown-lynxos${UNAME_RELEASE} 1111 echo sparc-unknown-lynxos${UNAME_RELEASE}
1142 exit ;; 1112 exit ;;
1143 rs6000:LynxOS:2.*:*) 1113 rs6000:LynxOS:2.*:*)
1144 echo rs6000-unknown-lynxos${UNAME_RELEASE} 1114 echo rs6000-unknown-lynxos${UNAME_RELEASE}
1145 exit ;; 1115 exit ;;
1146 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) 1116 PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
1147 echo powerpc-unknown-lynxos${UNAME_RELEASE} 1117 echo powerpc-unknown-lynxos${UNAME_RELEASE}
1148 exit ;; 1118 exit ;;
1149 SM[BE]S:UNIX_SV:*:*) 1119 SM[BE]S:UNIX_SV:*:*)
1150 echo mips-dde-sysv${UNAME_RELEASE} 1120 echo mips-dde-sysv${UNAME_RELEASE}
1151 exit ;; 1121 exit ;;
1204 echo powerpc-apple-beos 1174 echo powerpc-apple-beos
1205 exit ;; 1175 exit ;;
1206 BePC:BeOS:*:*) # BeOS running on Intel PC compatible. 1176 BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
1207 echo i586-pc-beos 1177 echo i586-pc-beos
1208 exit ;; 1178 exit ;;
1179 BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
1180 echo i586-pc-haiku
1181 exit ;;
1209 SX-4:SUPER-UX:*:*) 1182 SX-4:SUPER-UX:*:*)
1210 echo sx4-nec-superux${UNAME_RELEASE} 1183 echo sx4-nec-superux${UNAME_RELEASE}
1211 exit ;; 1184 exit ;;
1212 SX-5:SUPER-UX:*:*) 1185 SX-5:SUPER-UX:*:*)
1213 echo sx5-nec-superux${UNAME_RELEASE} 1186 echo sx5-nec-superux${UNAME_RELEASE}
1231 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} 1204 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
1232 exit ;; 1205 exit ;;
1233 *:Darwin:*:*) 1206 *:Darwin:*:*)
1234 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown 1207 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
1235 case $UNAME_PROCESSOR in 1208 case $UNAME_PROCESSOR in
1209 i386)
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
1215 then
1216 UNAME_PROCESSOR="x86_64"
1217 fi
1218 fi ;;
1236 unknown) UNAME_PROCESSOR=powerpc ;; 1219 unknown) UNAME_PROCESSOR=powerpc ;;
1237 esac 1220 esac
1238 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} 1221 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
1239 exit ;; 1222 exit ;;
1240 *:procnto*:*:* | *:QNX:[0123456789]*:*) 1223 *:procnto*:*:* | *:QNX:[0123456789]*:*)
1311 i*86:skyos:*:*) 1294 i*86:skyos:*:*)
1312 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' 1295 echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
1313 exit ;; 1296 exit ;;
1314 i*86:rdos:*:*) 1297 i*86:rdos:*:*)
1315 echo ${UNAME_MACHINE}-pc-rdos 1298 echo ${UNAME_MACHINE}-pc-rdos
1299 exit ;;
1300 i*86:AROS:*:*)
1301 echo ${UNAME_MACHINE}-pc-aros
1316 exit ;; 1302 exit ;;
1317esac 1303esac
1318 1304
1319#echo '(No uname command or uname output not recognized.)' 1>&2 1305#echo '(No uname command or uname output not recognized.)' 1>&2
1320#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2 1306#echo "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" 1>&2
1472 1458
1473This script, last modified $timestamp, has failed to recognize 1459This script, last modified $timestamp, has failed to recognize
1474the operating system you are using. It is advised that you 1460the operating system you are using. It is advised that you
1475download the most up to date version of the config scripts from 1461download the most up to date version of the config scripts from
1476 1462
1477 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess 1463 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
1478and 1464and
1479 http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub 1465 http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
1480 1466
1481If the version you run ($0) is already up to date, please 1467If the version you run ($0) is already up to date, please
1482send the following data and any information you think might be 1468send the following data and any information you think might be
1483pertinent to <config-patches@gnu.org> in order to provide the needed 1469pertinent to <config-patches@gnu.org> in order to provide the needed
1484information to handle your system. 1470information to handle your system.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines