Mercurial > hg > xemacs-beta
comparison config.guess @ 5920:0f2338afbabf cygwin
Minimum necessary to get started:
sufficient to compile OK, run -nw, but not with window
author | Henry Thompson <ht@markup.co.uk> |
---|---|
date | Mon, 21 Apr 2014 11:42:50 +0100 |
parents | ec3712ffd0e6 |
children |
comparison
equal
deleted
inserted
replaced
5919:2800105fcc9f | 5920:0f2338afbabf |
---|---|
1 #! /bin/sh | 1 #! /bin/sh |
2 # Attempt to guess a canonical system name. | 2 # Attempt to guess a canonical system name. |
3 # Copyright 1992-2013 Free Software Foundation, Inc. | 3 # Copyright 1992-2013 Free Software Foundation, Inc. |
4 | 4 |
5 timestamp='2013-02-12' | 5 timestamp='2013-06-10' |
6 | 6 |
7 # This file is free software; you can redistribute it and/or modify it | 7 # This file is free software; you can redistribute it and/or modify it |
8 # under the terms of the GNU General Public License as published by | 8 # under the terms of the GNU General Public License as published by |
9 # the Free Software Foundation; either version 3 of the License, or | 9 # the Free Software Foundation; either version 3 of the License, or |
10 # (at your option) any later version. | 10 # (at your option) any later version. |
129 | 129 |
130 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown | 130 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown |
131 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown | 131 UNAME_RELEASE=`(uname -r) 2>/dev/null` || UNAME_RELEASE=unknown |
132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown | 132 UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown |
133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown | 133 UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown |
134 | |
135 case "${UNAME_SYSTEM}" in | |
136 Linux|GNU|GNU/*) | |
137 # If the system lacks a compiler, then just pick glibc. | |
138 # We could probably try harder. | |
139 LIBC=gnu | |
140 | |
141 eval $set_cc_for_build | |
142 cat <<-EOF > $dummy.c | |
143 #include <features.h> | |
144 #if defined(__UCLIBC__) | |
145 LIBC=uclibc | |
146 #elif defined(__dietlibc__) | |
147 LIBC=dietlibc | |
148 #else | |
149 LIBC=gnu | |
150 #endif | |
151 EOF | |
152 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
153 ;; | |
154 esac | |
134 | 155 |
135 # Note: order is significant - the case branches are not exclusive. | 156 # Note: order is significant - the case branches are not exclusive. |
136 | 157 |
137 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in | 158 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in |
138 *:NetBSD:*:*) | 159 *:NetBSD:*:*) |
851 prep*:SunOS:5.*:*) | 872 prep*:SunOS:5.*:*) |
852 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` | 873 echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` |
853 exit ;; | 874 exit ;; |
854 *:GNU:*:*) | 875 *:GNU:*:*) |
855 # the GNU system | 876 # the GNU system |
856 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` | 877 echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-${LIBC}`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'` |
857 exit ;; | 878 exit ;; |
858 *:GNU/*:*:*) | 879 *:GNU/*:*:*) |
859 # other systems with GNU libc and userland | 880 # other systems with GNU libc and userland |
860 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu | 881 echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-${LIBC} |
861 exit ;; | 882 exit ;; |
862 i*86:Minix:*:*) | 883 i*86:Minix:*:*) |
863 echo ${UNAME_MACHINE}-pc-minix | 884 echo ${UNAME_MACHINE}-pc-minix |
864 exit ;; | 885 exit ;; |
865 aarch64:Linux:*:*) | 886 aarch64:Linux:*:*) |
866 echo ${UNAME_MACHINE}-unknown-linux-gnu | 887 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
867 exit ;; | 888 exit ;; |
868 aarch64_be:Linux:*:*) | 889 aarch64_be:Linux:*:*) |
869 UNAME_MACHINE=aarch64_be | 890 UNAME_MACHINE=aarch64_be |
870 echo ${UNAME_MACHINE}-unknown-linux-gnu | 891 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
871 exit ;; | 892 exit ;; |
872 alpha:Linux:*:*) | 893 alpha:Linux:*:*) |
873 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in | 894 case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in |
874 EV5) UNAME_MACHINE=alphaev5 ;; | 895 EV5) UNAME_MACHINE=alphaev5 ;; |
875 EV56) UNAME_MACHINE=alphaev56 ;; | 896 EV56) UNAME_MACHINE=alphaev56 ;; |
878 EV6) UNAME_MACHINE=alphaev6 ;; | 899 EV6) UNAME_MACHINE=alphaev6 ;; |
879 EV67) UNAME_MACHINE=alphaev67 ;; | 900 EV67) UNAME_MACHINE=alphaev67 ;; |
880 EV68*) UNAME_MACHINE=alphaev68 ;; | 901 EV68*) UNAME_MACHINE=alphaev68 ;; |
881 esac | 902 esac |
882 objdump --private-headers /bin/sh | grep -q ld.so.1 | 903 objdump --private-headers /bin/sh | grep -q ld.so.1 |
883 if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi | 904 if test "$?" = 0 ; then LIBC="gnulibc1" ; fi |
884 echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} | 905 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
906 exit ;; | |
907 arc:Linux:*:* | arceb:Linux:*:*) | |
908 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} | |
885 exit ;; | 909 exit ;; |
886 arm*:Linux:*:*) | 910 arm*:Linux:*:*) |
887 eval $set_cc_for_build | 911 eval $set_cc_for_build |
888 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ | 912 if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ |
889 | grep -q __ARM_EABI__ | 913 | grep -q __ARM_EABI__ |
890 then | 914 then |
891 echo ${UNAME_MACHINE}-unknown-linux-gnu | 915 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
892 else | 916 else |
893 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ | 917 if echo __ARM_PCS_VFP | $CC_FOR_BUILD -E - 2>/dev/null \ |
894 | grep -q __ARM_PCS_VFP | 918 | grep -q __ARM_PCS_VFP |
895 then | 919 then |
896 echo ${UNAME_MACHINE}-unknown-linux-gnueabi | 920 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabi |
897 else | 921 else |
898 echo ${UNAME_MACHINE}-unknown-linux-gnueabihf | 922 echo ${UNAME_MACHINE}-unknown-linux-${LIBC}eabihf |
899 fi | 923 fi |
900 fi | 924 fi |
901 exit ;; | 925 exit ;; |
902 avr32*:Linux:*:*) | 926 avr32*:Linux:*:*) |
903 echo ${UNAME_MACHINE}-unknown-linux-gnu | 927 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
904 exit ;; | 928 exit ;; |
905 cris:Linux:*:*) | 929 cris:Linux:*:*) |
906 echo ${UNAME_MACHINE}-axis-linux-gnu | 930 echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
907 exit ;; | 931 exit ;; |
908 crisv32:Linux:*:*) | 932 crisv32:Linux:*:*) |
909 echo ${UNAME_MACHINE}-axis-linux-gnu | 933 echo ${UNAME_MACHINE}-axis-linux-${LIBC} |
910 exit ;; | 934 exit ;; |
911 frv:Linux:*:*) | 935 frv:Linux:*:*) |
912 echo ${UNAME_MACHINE}-unknown-linux-gnu | 936 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
913 exit ;; | 937 exit ;; |
914 hexagon:Linux:*:*) | 938 hexagon:Linux:*:*) |
915 echo ${UNAME_MACHINE}-unknown-linux-gnu | 939 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
916 exit ;; | 940 exit ;; |
917 i*86:Linux:*:*) | 941 i*86:Linux:*:*) |
918 LIBC=gnu | 942 echo ${UNAME_MACHINE}-pc-linux-${LIBC} |
919 eval $set_cc_for_build | |
920 sed 's/^ //' << EOF >$dummy.c | |
921 #ifdef __dietlibc__ | |
922 LIBC=dietlibc | |
923 #endif | |
924 EOF | |
925 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` | |
926 echo "${UNAME_MACHINE}-pc-linux-${LIBC}" | |
927 exit ;; | 943 exit ;; |
928 ia64:Linux:*:*) | 944 ia64:Linux:*:*) |
929 echo ${UNAME_MACHINE}-unknown-linux-gnu | 945 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
930 exit ;; | 946 exit ;; |
931 m32r*:Linux:*:*) | 947 m32r*:Linux:*:*) |
932 echo ${UNAME_MACHINE}-unknown-linux-gnu | 948 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
933 exit ;; | 949 exit ;; |
934 m68*:Linux:*:*) | 950 m68*:Linux:*:*) |
935 echo ${UNAME_MACHINE}-unknown-linux-gnu | 951 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
936 exit ;; | 952 exit ;; |
937 mips:Linux:*:* | mips64:Linux:*:*) | 953 mips:Linux:*:* | mips64:Linux:*:*) |
938 eval $set_cc_for_build | 954 eval $set_cc_for_build |
939 sed 's/^ //' << EOF >$dummy.c | 955 sed 's/^ //' << EOF >$dummy.c |
940 #undef CPU | 956 #undef CPU |
949 CPU= | 965 CPU= |
950 #endif | 966 #endif |
951 #endif | 967 #endif |
952 EOF | 968 EOF |
953 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` | 969 eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` |
954 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } | 970 test x"${CPU}" != x && { echo "${CPU}-unknown-linux-${LIBC}"; exit; } |
955 ;; | 971 ;; |
956 or1k:Linux:*:*) | 972 or1k:Linux:*:*) |
957 echo ${UNAME_MACHINE}-unknown-linux-gnu | 973 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
958 exit ;; | 974 exit ;; |
959 or32:Linux:*:*) | 975 or32:Linux:*:*) |
960 echo ${UNAME_MACHINE}-unknown-linux-gnu | 976 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
961 exit ;; | 977 exit ;; |
962 padre:Linux:*:*) | 978 padre:Linux:*:*) |
963 echo sparc-unknown-linux-gnu | 979 echo sparc-unknown-linux-${LIBC} |
964 exit ;; | 980 exit ;; |
965 parisc64:Linux:*:* | hppa64:Linux:*:*) | 981 parisc64:Linux:*:* | hppa64:Linux:*:*) |
966 echo hppa64-unknown-linux-gnu | 982 echo hppa64-unknown-linux-${LIBC} |
967 exit ;; | 983 exit ;; |
968 parisc:Linux:*:* | hppa:Linux:*:*) | 984 parisc:Linux:*:* | hppa:Linux:*:*) |
969 # Look for CPU level | 985 # Look for CPU level |
970 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in | 986 case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in |
971 PA7*) echo hppa1.1-unknown-linux-gnu ;; | 987 PA7*) echo hppa1.1-unknown-linux-${LIBC} ;; |
972 PA8*) echo hppa2.0-unknown-linux-gnu ;; | 988 PA8*) echo hppa2.0-unknown-linux-${LIBC} ;; |
973 *) echo hppa-unknown-linux-gnu ;; | 989 *) echo hppa-unknown-linux-${LIBC} ;; |
974 esac | 990 esac |
975 exit ;; | 991 exit ;; |
976 ppc64:Linux:*:*) | 992 ppc64:Linux:*:*) |
977 echo powerpc64-unknown-linux-gnu | 993 echo powerpc64-unknown-linux-${LIBC} |
978 exit ;; | 994 exit ;; |
979 ppc:Linux:*:*) | 995 ppc:Linux:*:*) |
980 echo powerpc-unknown-linux-gnu | 996 echo powerpc-unknown-linux-${LIBC} |
997 exit ;; | |
998 ppc64le:Linux:*:*) | |
999 echo powerpc64le-unknown-linux-${LIBC} | |
1000 exit ;; | |
1001 ppcle:Linux:*:*) | |
1002 echo powerpcle-unknown-linux-${LIBC} | |
981 exit ;; | 1003 exit ;; |
982 s390:Linux:*:* | s390x:Linux:*:*) | 1004 s390:Linux:*:* | s390x:Linux:*:*) |
983 echo ${UNAME_MACHINE}-ibm-linux | 1005 echo ${UNAME_MACHINE}-ibm-linux-${LIBC} |
984 exit ;; | 1006 exit ;; |
985 sh64*:Linux:*:*) | 1007 sh64*:Linux:*:*) |
986 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1008 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
987 exit ;; | 1009 exit ;; |
988 sh*:Linux:*:*) | 1010 sh*:Linux:*:*) |
989 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1011 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
990 exit ;; | 1012 exit ;; |
991 sparc:Linux:*:* | sparc64:Linux:*:*) | 1013 sparc:Linux:*:* | sparc64:Linux:*:*) |
992 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1014 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
993 exit ;; | 1015 exit ;; |
994 tile*:Linux:*:*) | 1016 tile*:Linux:*:*) |
995 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1017 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
996 exit ;; | 1018 exit ;; |
997 vax:Linux:*:*) | 1019 vax:Linux:*:*) |
998 echo ${UNAME_MACHINE}-dec-linux-gnu | 1020 echo ${UNAME_MACHINE}-dec-linux-${LIBC} |
999 exit ;; | 1021 exit ;; |
1000 x86_64:Linux:*:*) | 1022 x86_64:Linux:*:*) |
1001 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1023 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
1002 exit ;; | 1024 exit ;; |
1003 xtensa*:Linux:*:*) | 1025 xtensa*:Linux:*:*) |
1004 echo ${UNAME_MACHINE}-unknown-linux-gnu | 1026 echo ${UNAME_MACHINE}-unknown-linux-${LIBC} |
1005 exit ;; | 1027 exit ;; |
1006 i*86:DYNIX/ptx:4*:*) | 1028 i*86:DYNIX/ptx:4*:*) |
1007 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. | 1029 # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. |
1008 # earlier versions are messed up and put the nodename in both | 1030 # earlier versions are messed up and put the nodename in both |
1009 # sysname and nodename. | 1031 # sysname and nodename. |
1232 *:Rhapsody:*:*) | 1254 *:Rhapsody:*:*) |
1233 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} | 1255 echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE} |
1234 exit ;; | 1256 exit ;; |
1235 *:Darwin:*:*) | 1257 *:Darwin:*:*) |
1236 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown | 1258 UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown |
1237 case $UNAME_PROCESSOR in | 1259 eval $set_cc_for_build |
1238 i386) | 1260 if test "$UNAME_PROCESSOR" = unknown ; then |
1239 eval $set_cc_for_build | 1261 UNAME_PROCESSOR=powerpc |
1240 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then | 1262 fi |
1241 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ | 1263 if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then |
1242 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ | 1264 if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ |
1243 grep IS_64BIT_ARCH >/dev/null | 1265 (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ |
1244 then | 1266 grep IS_64BIT_ARCH >/dev/null |
1245 UNAME_PROCESSOR="x86_64" | 1267 then |
1246 fi | 1268 case $UNAME_PROCESSOR in |
1247 fi ;; | 1269 i386) UNAME_PROCESSOR=x86_64 ;; |
1248 unknown) UNAME_PROCESSOR=powerpc ;; | 1270 powerpc) UNAME_PROCESSOR=powerpc64 ;; |
1249 esac | 1271 esac |
1272 fi | |
1273 fi | |
1250 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} | 1274 echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} |
1251 exit ;; | 1275 exit ;; |
1252 *:procnto*:*:* | *:QNX:[0123456789]*:*) | 1276 *:procnto*:*:* | *:QNX:[0123456789]*:*) |
1253 UNAME_PROCESSOR=`uname -p` | 1277 UNAME_PROCESSOR=`uname -p` |
1254 if test "$UNAME_PROCESSOR" = "x86"; then | 1278 if test "$UNAME_PROCESSOR" = "x86"; then |