scripts/config.guess |
1 | 1 | #! /bin/sh |
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 Free Software Foundation, |
5 | | # Inc. |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | # Free Software Foundation, Inc. |
6 | 6 | |
7 | | timestamp='2007-05-17' |
| 7 | timestamp='2010-04-03' |
8 | 8 | |
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 |
... | ... | |
27 | 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>. |
31 | | # Please send patches to <config-patches@gnu.org>. Submit a context |
32 | | # diff and a properly formatted ChangeLog entry. |
| 30 | # Originally written by Per Bothner. Please send patches (context |
| 31 | # diff format) to <config-patches@gnu.org> and include a ChangeLog |
| 32 | # entry. |
33 | 33 | # |
34 | 34 | # This script attempts to guess a canonical system name similar to |
35 | 35 | # config.sub. If it succeeds, it prints the system name on stdout, and |
36 | 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 |
39 | | # don't specify an explicit build system type. |
| 38 | # You can get the latest version of this script from: |
| 39 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD |
40 | 40 | |
41 | 41 | me=`echo "$0" | sed -e 's,.*/,,'` |
42 | 42 | |
... | ... | |
56 | 56 | GNU config.guess ($timestamp) |
57 | 57 | |
58 | 58 | Originally written by Per Bothner. |
59 | | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
60 | | Free Software Foundation, Inc. |
| 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. |
61 | 62 | |
62 | 63 | This is free software; see the source for copying conditions. There is NO |
63 | 64 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
... | ... | |
91 | 92 | exit 1 |
92 | 93 | fi |
93 | 94 | |
94 | | trap 'exit 1' 1 2 15 |
| 95 | trap 'exit 1' HUP INT TERM |
95 | 96 | |
96 | 97 | # CC_FOR_BUILD -- compiler used by this script. Note that the use of a |
97 | 98 | # compiler to aid in system detection is discouraged as it requires |
... | ... | |
105 | 106 | |
106 | 107 | set_cc_for_build=' |
107 | 108 | trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; |
108 | | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; |
| 109 | trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" HUP INT PIPE TERM ; |
109 | 110 | : ${TMPDIR=/tmp} ; |
110 | 111 | { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || |
111 | 112 | { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || |
... | ... | |
170 | 171 | arm*|i386|m68k|ns32k|sh3*|sparc|vax) |
171 | 172 | eval $set_cc_for_build |
172 | 173 | if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
173 | | | grep __ELF__ >/dev/null |
| 174 | | grep -q __ELF__ |
174 | 175 | then |
175 | 176 | # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). |
176 | 177 | # Return netbsd for either. FIX? |
... | ... | |
324 | 325 | case `/usr/bin/uname -p` in |
325 | 326 | sparc) echo sparc-icl-nx7; exit ;; |
326 | 327 | esac ;; |
| 328 | s390x:SunOS:*:*) |
| 329 | echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 330 | exit ;; |
327 | 331 | sun4H:SunOS:5.*:*) |
328 | 332 | echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
329 | 333 | exit ;; |
330 | 334 | sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) |
331 | 335 | echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
332 | 336 | exit ;; |
333 | | i86pc:SunOS:5.*:* | ix86xen:SunOS:5.*:*) |
334 | | echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
| 337 | i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) |
| 338 | echo i386-pc-auroraux${UNAME_RELEASE} |
| 339 | exit ;; |
| 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 |
| 354 | echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
335 | 355 | exit ;; |
336 | 356 | sun4*:SunOS:6*:*) |
337 | 357 | # According to config.sub, this is the proper way to canonicalize |
... | ... | |
532 | 552 | echo rs6000-ibm-aix3.2 |
533 | 553 | fi |
534 | 554 | exit ;; |
535 | | *:AIX:*:[45]) |
| 555 | *:AIX:*:[456]) |
536 | 556 | IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` |
537 | 557 | if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then |
538 | 558 | IBM_ARCH=rs6000 |
... | ... | |
640 | 660 | # => hppa64-hp-hpux11.23 |
641 | 661 | |
642 | 662 | if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | |
643 | | grep __LP64__ >/dev/null |
| 663 | grep -q __LP64__ |
644 | 664 | then |
645 | 665 | HP_ARCH="hppa2.0w" |
646 | 666 | else |
... | ... | |
791 | 811 | i*:PW*:*) |
792 | 812 | echo ${UNAME_MACHINE}-pc-pw32 |
793 | 813 | exit ;; |
794 | | *:Interix*:[3456]*) |
| 814 | *:Interix*:*) |
795 | 815 | case ${UNAME_MACHINE} in |
796 | | x86) |
| 816 | x86) |
797 | 817 | echo i586-pc-interix${UNAME_RELEASE} |
798 | 818 | exit ;; |
799 | | EM64T | authenticamd) |
| 819 | authenticamd | genuineintel | EM64T) |
800 | 820 | echo x86_64-unknown-interix${UNAME_RELEASE} |
801 | 821 | exit ;; |
| 822 | IA64) |
| 823 | echo ia64-unknown-interix${UNAME_RELEASE} |
| 824 | exit ;; |
802 | 825 | esac ;; |
803 | 826 | [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) |
804 | 827 | echo i${UNAME_MACHINE}-pc-mks |
805 | 828 | exit ;; |
| 829 | 8664:Windows_NT:*) |
| 830 | echo x86_64-pc-mks |
| 831 | exit ;; |
806 | 832 | i*:Windows_NT*:* | Pentium*:Windows_NT*:*) |
807 | 833 | # How do we know it's Interix rather than the generic POSIX subsystem? |
808 | 834 | # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we |
... | ... | |
832 | 858 | i*86:Minix:*:*) |
833 | 859 | echo ${UNAME_MACHINE}-pc-minix |
834 | 860 | exit ;; |
| 861 | alpha:Linux:*:*) |
| 862 | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
| 863 | EV5) UNAME_MACHINE=alphaev5 ;; |
| 864 | EV56) UNAME_MACHINE=alphaev56 ;; |
| 865 | PCA56) UNAME_MACHINE=alphapca56 ;; |
| 866 | PCA57) UNAME_MACHINE=alphapca56 ;; |
| 867 | EV6) UNAME_MACHINE=alphaev6 ;; |
| 868 | EV67) UNAME_MACHINE=alphaev67 ;; |
| 869 | EV68*) UNAME_MACHINE=alphaev68 ;; |
| 870 | esac |
| 871 | 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} |
| 874 | exit ;; |
835 | 875 | arm*:Linux:*:*) |
836 | | echo ${UNAME_MACHINE}-unknown-linux-gnu |
| 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 |
837 | 884 | exit ;; |
838 | 885 | avr32*:Linux:*:*) |
839 | 886 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
... | ... | |
847 | 894 | frv:Linux:*:*) |
848 | 895 | echo frv-unknown-linux-gnu |
849 | 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 |
| 904 | EOF |
| 905 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` |
| 906 | echo "${UNAME_MACHINE}-pc-linux-${LIBC}" |
| 907 | exit ;; |
850 | 908 | ia64:Linux:*:*) |
851 | 909 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
852 | 910 | exit ;; |
... | ... | |
856 | 914 | m68*:Linux:*:*) |
857 | 915 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
858 | 916 | exit ;; |
859 | | mips:Linux:*:*) |
| 917 | mips:Linux:*:* | mips64:Linux:*:*) |
860 | 918 | eval $set_cc_for_build |
861 | 919 | sed 's/^ //' << EOF >$dummy.c |
862 | 920 | #undef CPU |
863 | | #undef mips |
864 | | #undef mipsel |
| 921 | #undef ${UNAME_MACHINE} |
| 922 | #undef ${UNAME_MACHINE}el |
865 | 923 | #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) |
866 | | CPU=mipsel |
| 924 | CPU=${UNAME_MACHINE}el |
867 | 925 | #else |
868 | 926 | #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) |
869 | | CPU=mips |
| 927 | CPU=${UNAME_MACHINE} |
870 | 928 | #else |
871 | 929 | CPU= |
872 | 930 | #endif |
873 | 931 | #endif |
874 | 932 | EOF |
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 |
897 | | EOF |
898 | | eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n ' |
899 | | /^CPU/{ |
900 | | s: ::g |
901 | | p |
902 | | }'`" |
| 933 | eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
903 | 934 | test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } |
904 | 935 | ;; |
905 | 936 | or32:Linux:*:*) |
906 | 937 | echo or32-unknown-linux-gnu |
907 | 938 | exit ;; |
908 | | ppc:Linux:*:*) |
909 | | echo powerpc-unknown-linux-gnu |
910 | | exit ;; |
911 | | ppc64:Linux:*:*) |
912 | | echo powerpc64-unknown-linux-gnu |
| 939 | padre:Linux:*:*) |
| 940 | echo sparc-unknown-linux-gnu |
913 | 941 | exit ;; |
914 | | alpha:Linux:*:*) |
915 | | case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
916 | | EV5) UNAME_MACHINE=alphaev5 ;; |
917 | | EV56) UNAME_MACHINE=alphaev56 ;; |
918 | | PCA56) UNAME_MACHINE=alphapca56 ;; |
919 | | PCA57) UNAME_MACHINE=alphapca56 ;; |
920 | | EV6) UNAME_MACHINE=alphaev6 ;; |
921 | | EV67) UNAME_MACHINE=alphaev67 ;; |
922 | | EV68*) UNAME_MACHINE=alphaev68 ;; |
923 | | esac |
924 | | objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null |
925 | | if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi |
926 | | echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} |
| 942 | parisc64:Linux:*:* | hppa64:Linux:*:*) |
| 943 | echo hppa64-unknown-linux-gnu |
927 | 944 | exit ;; |
928 | 945 | parisc:Linux:*:* | hppa:Linux:*:*) |
929 | 946 | # Look for CPU level |
... | ... | |
933 | 950 | *) echo hppa-unknown-linux-gnu ;; |
934 | 951 | esac |
935 | 952 | exit ;; |
936 | | parisc64:Linux:*:* | hppa64:Linux:*:*) |
937 | | echo hppa64-unknown-linux-gnu |
| 953 | ppc64:Linux:*:*) |
| 954 | echo powerpc64-unknown-linux-gnu |
| 955 | exit ;; |
| 956 | ppc:Linux:*:*) |
| 957 | echo powerpc-unknown-linux-gnu |
938 | 958 | exit ;; |
939 | 959 | s390:Linux:*:* | s390x:Linux:*:*) |
940 | 960 | echo ${UNAME_MACHINE}-ibm-linux |
... | ... | |
954 | 974 | x86_64:Linux:*:*) |
955 | 975 | echo x86_64-unknown-linux-gnu |
956 | 976 | exit ;; |
957 | | xtensa:Linux:*:*) |
958 | | echo xtensa-unknown-linux-gnu |
| 977 | xtensa*:Linux:*:*) |
| 978 | echo ${UNAME_MACHINE}-unknown-linux-gnu |
959 | 979 | 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" |
977 | | 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 |
1011 | | EOF |
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 | 980 | i*86:DYNIX/ptx:4*:*) |
1024 | 981 | # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1025 | 982 | # earlier versions are messed up and put the nodename in both |
... | ... | |
1048 | 1005 | i*86:syllable:*:*) |
1049 | 1006 | echo ${UNAME_MACHINE}-pc-syllable |
1050 | 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 | 1009 | echo i386-unknown-lynxos${UNAME_RELEASE} |
1053 | 1010 | exit ;; |
1054 | 1011 | i*86:*DOS:*:*) |
... | ... | |
1092 | 1049 | pc:*:*:*) |
1093 | 1050 | # Left here for compatibility: |
1094 | 1051 | # uname -m prints for DJGPP always 'pc', but it prints nothing about |
1095 | | # the processor, so we play safe by assuming i386. |
1096 | | echo i386-pc-msdosdjgpp |
| 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. |
| 1056 | echo i586-pc-msdosdjgpp |
1097 | 1057 | exit ;; |
1098 | 1058 | Intel:Mach:3*:*) |
1099 | 1059 | echo i386-pc-mach3 |
... | ... | |
1131 | 1091 | 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) |
1132 | 1092 | /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ |
1133 | 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 | 1104 | m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) |
1135 | 1105 | echo m68k-unknown-lynxos${UNAME_RELEASE} |
1136 | 1106 | exit ;; |
... | ... | |
1143 | 1113 | rs6000:LynxOS:2.*:*) |
1144 | 1114 | echo rs6000-unknown-lynxos${UNAME_RELEASE} |
1145 | 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 | 1117 | echo powerpc-unknown-lynxos${UNAME_RELEASE} |
1148 | 1118 | exit ;; |
1149 | 1119 | SM[BE]S:UNIX_SV:*:*) |
... | ... | |
1206 | 1176 | BePC:BeOS:*:*) # BeOS running on Intel PC compatible. |
1207 | 1177 | echo i586-pc-beos |
1208 | 1178 | exit ;; |
| 1179 | BePC:Haiku:*:*) # Haiku running on Intel PC compatible. |
| 1180 | echo i586-pc-haiku |
| 1181 | exit ;; |
1209 | 1182 | SX-4:SUPER-UX:*:*) |
1210 | 1183 | echo sx4-nec-superux${UNAME_RELEASE} |
1211 | 1184 | exit ;; |
... | ... | |
1233 | 1206 | *:Darwin:*:*) |
1234 | 1207 | UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1235 | 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 | 1219 | unknown) UNAME_PROCESSOR=powerpc ;; |
1237 | 1220 | esac |
1238 | 1221 | echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
... | ... | |
1314 | 1297 | i*86:rdos:*:*) |
1315 | 1298 | echo ${UNAME_MACHINE}-pc-rdos |
1316 | 1299 | exit ;; |
| 1300 | i*86:AROS:*:*) |
| 1301 | echo ${UNAME_MACHINE}-pc-aros |
| 1302 | exit ;; |
1317 | 1303 | esac |
1318 | 1304 | |
1319 | 1305 | #echo '(No uname command or uname output not recognized.)' 1>&2 |
... | ... | |
1474 | 1460 | the operating system you are using. It is advised that you |
1475 | 1461 | download 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 |
1478 | 1464 | and |
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 | |
1481 | 1467 | If the version you run ($0) is already up to date, please |
1482 | 1468 | send the following data and any information you think might be |
scripts/config.sub |
1 | 1 | #! /bin/sh |
2 | 2 | # Configuration validation subroutine script. |
3 | 3 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, |
4 | | # 2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, |
5 | | # Inc. |
| 4 | # 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 |
| 5 | # Free Software Foundation, Inc. |
6 | 6 | |
7 | | timestamp='2007-04-29' |
| 7 | timestamp='2010-05-21' |
8 | 8 | |
9 | 9 | # This file is (in principle) common to ALL GNU software. |
10 | 10 | # The presence of a machine in this file suggests that SOME GNU software |
... | ... | |
32 | 32 | |
33 | 33 | |
34 | 34 | # Please send patches to <config-patches@gnu.org>. Submit a context |
35 | | # diff and a properly formatted ChangeLog entry. |
| 35 | # diff and a properly formatted GNU ChangeLog entry. |
36 | 36 | # |
37 | 37 | # Configuration subroutine to validate and canonicalize a configuration type. |
38 | 38 | # Supply the specified configuration type as an argument. |
39 | 39 | # If it is invalid, we print an error message on stderr and exit with code 1. |
40 | 40 | # Otherwise, we print the canonical config type on stdout and succeed. |
41 | 41 | |
| 42 | # You can get the latest version of this script from: |
| 43 | # http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD |
| 44 | |
42 | 45 | # This file is supposed to be the same for all GNU packages |
43 | 46 | # and recognize all the CPU types, system types and aliases |
44 | 47 | # that are meaningful with *any* GNU software. |
... | ... | |
72 | 75 | version="\ |
73 | 76 | GNU config.sub ($timestamp) |
74 | 77 | |
75 | | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 |
76 | | Free Software Foundation, Inc. |
| 78 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, |
| 79 | 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free |
| 80 | Software Foundation, Inc. |
77 | 81 | |
78 | 82 | This is free software; see the source for copying conditions. There is NO |
79 | 83 | warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." |
... | ... | |
120 | 124 | # Here we must recognize all the valid KERNEL-OS combinations. |
121 | 125 | maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` |
122 | 126 | case $maybe_os in |
123 | | nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ |
124 | | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 127 | nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ |
| 128 | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ |
| 129 | knetbsd*-gnu* | netbsd*-gnu* | \ |
| 130 | kopensolaris*-gnu* | \ |
125 | 131 | storm-chaos* | os2-emx* | rtmk-nova*) |
126 | 132 | os=-$maybe_os |
127 | 133 | basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` |
... | ... | |
148 | 154 | -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ |
149 | 155 | -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ |
150 | 156 | -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ |
151 | | -apple | -axis | -knuth | -cray) |
| 157 | -apple | -axis | -knuth | -cray | -microblaze) |
152 | 158 | os= |
153 | 159 | basic_machine=$1 |
154 | 160 | ;; |
| 161 | -bluegene*) |
| 162 | os=-cnk |
| 163 | ;; |
155 | 164 | -sim | -cisco | -oki | -wec | -winbond) |
156 | 165 | os= |
157 | 166 | basic_machine=$1 |
... | ... | |
249 | 258 | | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ |
250 | 259 | | i370 | i860 | i960 | ia64 \ |
251 | 260 | | ip2k | iq2000 \ |
| 261 | | lm32 \ |
252 | 262 | | m32c | m32r | m32rle | m68000 | m68k | m88k \ |
253 | | | maxq | mb | microblaze | mcore | mep \ |
| 263 | | maxq | mb | microblaze | mcore | mep | metag \ |
254 | 264 | | mips | mipsbe | mipseb | mipsel | mipsle \ |
255 | 265 | | mips16 \ |
256 | 266 | | mips64 | mips64el \ |
257 | | | mips64vr | mips64vrel \ |
| 267 | | mips64octeon | mips64octeonel \ |
258 | 268 | | mips64orion | mips64orionel \ |
| 269 | | mips64r5900 | mips64r5900el \ |
| 270 | | mips64vr | mips64vrel \ |
259 | 271 | | mips64vr4100 | mips64vr4100el \ |
260 | 272 | | mips64vr4300 | mips64vr4300el \ |
261 | 273 | | mips64vr5000 | mips64vr5000el \ |
... | ... | |
268 | 280 | | mipsisa64sr71k | mipsisa64sr71kel \ |
269 | 281 | | mipstx39 | mipstx39el \ |
270 | 282 | | mn10200 | mn10300 \ |
| 283 | | moxie \ |
271 | 284 | | mt \ |
272 | 285 | | msp430 \ |
273 | 286 | | nios | nios2 \ |
... | ... | |
276 | 289 | | pdp10 | pdp11 | pj | pjl \ |
277 | 290 | | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ |
278 | 291 | | pyramid \ |
| 292 | | rx \ |
279 | 293 | | score \ |
280 | | | sh | sh[1234] | sh[24]a | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
| 294 | | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ |
281 | 295 | | sh64 | sh64le \ |
282 | 296 | | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ |
283 | 297 | | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ |
284 | 298 | | spu | strongarm \ |
285 | | | tahoe | thumb | tic4x | tic80 | tron \ |
286 | | | v850 | v850e \ |
| 299 | | tahoe | thumb | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ |
287 | 300 | | ubicom32 \ |
| 301 | | v850 | v850e \ |
288 | 302 | | we32k \ |
289 | 303 | | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \ |
290 | | | z8k) |
| 304 | | z8k | z80) |
291 | 305 | basic_machine=$basic_machine-unknown |
292 | 306 | ;; |
293 | | m6811 | m68hc11 | m6812 | m68hc12) |
| 307 | c54x) |
| 308 | basic_machine=tic54x-unknown |
| 309 | ;; |
| 310 | c55x) |
| 311 | basic_machine=tic55x-unknown |
| 312 | ;; |
| 313 | c6x) |
| 314 | basic_machine=tic6x-unknown |
| 315 | ;; |
| 316 | m6811 | m68hc11 | m6812 | m68hc12 | picochip) |
294 | 317 | # Motorola 68HC11/12. |
295 | 318 | basic_machine=$basic_machine-unknown |
296 | 319 | os=-none |
... | ... | |
321 | 344 | | arm-* | armbe-* | armle-* | armeb-* | armv*-* \ |
322 | 345 | | avr-* | avr32-* \ |
323 | 346 | | bfin-* | bs2000-* \ |
324 | | | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \ |
| 347 | | c[123]* | c30-* | [cjt]90-* | c4x-* \ |
325 | 348 | | clipper-* | craynv-* | cydra-* \ |
326 | 349 | | d10v-* | d30v-* | dlx-* \ |
327 | 350 | | elxsi-* \ |
... | ... | |
330 | 353 | | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \ |
331 | 354 | | i*86-* | i860-* | i960-* | ia64-* \ |
332 | 355 | | ip2k-* | iq2000-* \ |
| 356 | | lm32-* \ |
333 | 357 | | m32c-* | m32r-* | m32rle-* \ |
334 | 358 | | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \ |
335 | | | m88110-* | m88k-* | maxq-* | mcore-* \ |
| 359 | | m88110-* | m88k-* | maxq-* | mcore-* | metag-* | microblaze-* \ |
336 | 360 | | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \ |
337 | 361 | | mips16-* \ |
338 | 362 | | mips64-* | mips64el-* \ |
339 | | | mips64vr-* | mips64vrel-* \ |
| 363 | | mips64octeon-* | mips64octeonel-* \ |
340 | 364 | | mips64orion-* | mips64orionel-* \ |
| 365 | | mips64r5900-* | mips64r5900el-* \ |
| 366 | | mips64vr-* | mips64vrel-* \ |
341 | 367 | | mips64vr4100-* | mips64vr4100el-* \ |
342 | 368 | | mips64vr4300-* | mips64vr4300el-* \ |
343 | 369 | | mips64vr5000-* | mips64vr5000el-* \ |
... | ... | |
358 | 384 | | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \ |
359 | 385 | | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \ |
360 | 386 | | pyramid-* \ |
361 | | | romp-* | rs6000-* \ |
362 | | | sh-* | sh[1234]-* | sh[24]a-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
| 387 | | romp-* | rs6000-* | rx-* \ |
| 388 | | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \ |
363 | 389 | | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \ |
364 | 390 | | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \ |
365 | 391 | | sparclite-* \ |
366 | 392 | | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \ |
367 | 393 | | tahoe-* | thumb-* \ |
368 | 394 | | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \ |
| 395 | | tile-* | tilegx-* \ |
369 | 396 | | tron-* \ |
370 | | | v850-* | v850e-* | vax-* \ |
371 | 397 | | ubicom32-* \ |
| 398 | | v850-* | v850e-* | vax-* \ |
372 | 399 | | we32k-* \ |
373 | 400 | | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \ |
374 | | | xstormy16-* | xtensa-* \ |
| 401 | | xstormy16-* | xtensa*-* \ |
375 | 402 | | ymp-* \ |
376 | | | z8k-*) |
| 403 | | z8k-* | z80-*) |
| 404 | ;; |
| 405 | # Recognize the basic CPU types without company name, with glob match. |
| 406 | xtensa*) |
| 407 | basic_machine=$basic_machine-unknown |
377 | 408 | ;; |
378 | 409 | # Recognize the various machine names and aliases which stand |
379 | 410 | # for a CPU type and a company and sometimes even an OS. |
... | ... | |
437 | 468 | basic_machine=m68k-apollo |
438 | 469 | os=-bsd |
439 | 470 | ;; |
| 471 | aros) |
| 472 | basic_machine=i386-pc |
| 473 | os=-aros |
| 474 | ;; |
440 | 475 | aux) |
441 | 476 | basic_machine=m68k-apple |
442 | 477 | os=-aux |
... | ... | |
445 | 480 | basic_machine=ns32k-sequent |
446 | 481 | os=-dynix |
447 | 482 | ;; |
| 483 | blackfin) |
| 484 | basic_machine=bfin-unknown |
| 485 | os=-linux |
| 486 | ;; |
| 487 | blackfin-*) |
| 488 | basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 489 | os=-linux |
| 490 | ;; |
| 491 | bluegene*) |
| 492 | basic_machine=powerpc-ibm |
| 493 | os=-cnk |
| 494 | ;; |
| 495 | c54x-*) |
| 496 | basic_machine=tic54x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 497 | ;; |
| 498 | c55x-*) |
| 499 | basic_machine=tic55x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 500 | ;; |
| 501 | c6x-*) |
| 502 | basic_machine=tic6x-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 503 | ;; |
448 | 504 | c90) |
449 | 505 | basic_machine=c90-cray |
450 | 506 | os=-unicos |
451 | 507 | ;; |
| 508 | cegcc) |
| 509 | basic_machine=arm-unknown |
| 510 | os=-cegcc |
| 511 | ;; |
452 | 512 | convex-c1) |
453 | 513 | basic_machine=c1-convex |
454 | 514 | os=-bsd |
... | ... | |
477 | 537 | basic_machine=craynv-cray |
478 | 538 | os=-unicosmp |
479 | 539 | ;; |
480 | | cr16c) |
481 | | basic_machine=cr16c-unknown |
| 540 | cr16) |
| 541 | basic_machine=cr16-unknown |
482 | 542 | os=-elf |
483 | 543 | ;; |
484 | 544 | crds | unos) |
... | ... | |
516 | 576 | basic_machine=m88k-motorola |
517 | 577 | os=-sysv3 |
518 | 578 | ;; |
| 579 | dicos) |
| 580 | basic_machine=i686-pc |
| 581 | os=-dicos |
| 582 | ;; |
519 | 583 | djgpp) |
520 | 584 | basic_machine=i586-pc |
521 | 585 | os=-msdosdjgpp |
... | ... | |
670 | 734 | basic_machine=m68k-isi |
671 | 735 | os=-sysv |
672 | 736 | ;; |
| 737 | m68knommu) |
| 738 | basic_machine=m68k-unknown |
| 739 | os=-linux |
| 740 | ;; |
| 741 | m68knommu-*) |
| 742 | basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 743 | os=-linux |
| 744 | ;; |
673 | 745 | m88k-omron*) |
674 | 746 | basic_machine=m88k-omron |
675 | 747 | ;; |
... | ... | |
681 | 753 | basic_machine=ns32k-utek |
682 | 754 | os=-sysv |
683 | 755 | ;; |
| 756 | microblaze) |
| 757 | basic_machine=microblaze-xilinx |
| 758 | ;; |
684 | 759 | mingw32) |
685 | 760 | basic_machine=i386-pc |
686 | 761 | os=-mingw32 |
... | ... | |
815 | 890 | basic_machine=i860-intel |
816 | 891 | os=-osf |
817 | 892 | ;; |
| 893 | parisc) |
| 894 | basic_machine=hppa-unknown |
| 895 | os=-linux |
| 896 | ;; |
| 897 | parisc-*) |
| 898 | basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'` |
| 899 | os=-linux |
| 900 | ;; |
818 | 901 | pbd) |
819 | 902 | basic_machine=sparc-tti |
820 | 903 | ;; |
... | ... | |
1011 | 1094 | basic_machine=t90-cray |
1012 | 1095 | os=-unicos |
1013 | 1096 | ;; |
1014 | | tic54x | c54x*) |
1015 | | basic_machine=tic54x-unknown |
1016 | | os=-coff |
1017 | | ;; |
1018 | | tic55x | c55x*) |
1019 | | basic_machine=tic55x-unknown |
1020 | | os=-coff |
| 1097 | # This must be matched before tile*. |
| 1098 | tilegx*) |
| 1099 | basic_machine=tilegx-unknown |
| 1100 | os=-linux-gnu |
1021 | 1101 | ;; |
1022 | | tic6x | c6x*) |
1023 | | basic_machine=tic6x-unknown |
1024 | | os=-coff |
| 1102 | tile*) |
| 1103 | basic_machine=tile-unknown |
| 1104 | os=-linux-gnu |
1025 | 1105 | ;; |
1026 | 1106 | tx39) |
1027 | 1107 | basic_machine=mipstx39-unknown |
... | ... | |
1098 | 1178 | basic_machine=z8k-unknown |
1099 | 1179 | os=-sim |
1100 | 1180 | ;; |
| 1181 | z80-*-coff) |
| 1182 | basic_machine=z80-unknown |
| 1183 | os=-sim |
| 1184 | ;; |
1101 | 1185 | none) |
1102 | 1186 | basic_machine=none-none |
1103 | 1187 | os=-none |
... | ... | |
1136 | 1220 | we32k) |
1137 | 1221 | basic_machine=we32k-att |
1138 | 1222 | ;; |
1139 | | sh[1234] | sh[24]a | sh[34]eb | sh[1234]le | sh[23]ele) |
| 1223 | sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele) |
1140 | 1224 | basic_machine=sh-unknown |
1141 | 1225 | ;; |
1142 | 1226 | sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v) |
... | ... | |
1186 | 1270 | # First match some system type aliases |
1187 | 1271 | # that might get confused with valid system types. |
1188 | 1272 | # -solaris* is a basic system type, with this one exception. |
| 1273 | -auroraux) |
| 1274 | os=-auroraux |
| 1275 | ;; |
1189 | 1276 | -solaris1 | -solaris1.*) |
1190 | 1277 | os=`echo $os | sed -e 's|solaris1|sunos4|'` |
1191 | 1278 | ;; |
... | ... | |
1206 | 1293 | # Each alternative MUST END IN A *, to match a version number. |
1207 | 1294 | # -sysv* is not here because it comes later, after sysvr4. |
1208 | 1295 | -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \ |
1209 | | | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\ |
1210 | | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \ |
| 1296 | | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\ |
| 1297 | | -hpux* | -unos* | -osf* | -luna* | -dgux* | -auroraux* | -solaris* \ |
| 1298 | | -sym* | -kopensolaris* \ |
1211 | 1299 | | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \ |
1212 | | | -aos* \ |
| 1300 | | -aos* | -aros* \ |
1213 | 1301 | | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \ |
1214 | 1302 | | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \ |
1215 | 1303 | | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \ |
... | ... | |
1218 | 1306 | | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \ |
1219 | 1307 | | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \ |
1220 | 1308 | | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \ |
1221 | | | -chorusos* | -chorusrdb* \ |
| 1309 | | -chorusos* | -chorusrdb* | -cegcc* \ |
1222 | 1310 | | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \ |
1223 | | | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \ |
| 1311 | | -mingw32* | -linux-gnu* | -linux-android* \ |
| 1312 | | -linux-newlib* | -linux-uclibc* \ |
1224 | 1313 | | -uxpv* | -beos* | -mpeix* | -udk* \ |
1225 | 1314 | | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \ |
1226 | 1315 | | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \ |
... | ... | |
1228 | 1317 | | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \ |
1229 | 1318 | | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \ |
1230 | 1319 | | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \ |
1231 | | | -skyos* | -haiku* | -rdos* | -toppers* | -drops*) |
| 1320 | | -skyos* | -haiku* | -rdos* | -toppers* | -drops* | -es*) |
1232 | 1321 | # Remember, each alternative MUST END IN *, to match a version number. |
1233 | 1322 | ;; |
1234 | 1323 | -qnx*) |
... | ... | |
1358 | 1447 | -zvmoe) |
1359 | 1448 | os=-zvmoe |
1360 | 1449 | ;; |
| 1450 | -dicos*) |
| 1451 | os=-dicos |
| 1452 | ;; |
| 1453 | -nacl*) |
| 1454 | ;; |
1361 | 1455 | -none) |
1362 | 1456 | ;; |
1363 | 1457 | *) |
... | ... | |
1398 | 1492 | c4x-* | tic4x-*) |
1399 | 1493 | os=-coff |
1400 | 1494 | ;; |
| 1495 | tic54x-*) |
| 1496 | os=-coff |
| 1497 | ;; |
| 1498 | tic55x-*) |
| 1499 | os=-coff |
| 1500 | ;; |
| 1501 | tic6x-*) |
| 1502 | os=-coff |
| 1503 | ;; |
1401 | 1504 | # This must come before the *-dec entry. |
1402 | 1505 | pdp10-*) |
1403 | 1506 | os=-tops20 |
... | ... | |
1555 | 1658 | -sunos*) |
1556 | 1659 | vendor=sun |
1557 | 1660 | ;; |
1558 | | -aix*) |
| 1661 | -cnk*|-aix*) |
1559 | 1662 | vendor=ibm |
1560 | 1663 | ;; |
1561 | 1664 | -beos*) |