Changeset 1394 for trunk/src/gcc/gcc/configure
- Timestamp:
- Apr 28, 2004, 6:58:06 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/gcc/configure
-
Property cvs2svn:cvs-rev
changed from
1.5
to1.6
r1393 r1394 30 30 specifies directory to put g++ header files" 31 31 ac_help="$ac_help 32 --with-sysroot[=DIR] Search for usr/lib, usr/include, et al, within DIR." 33 ac_help="$ac_help 32 34 --enable-multilib enable library support for multiple ABIs" 33 35 ac_help="$ac_help … … 35 37 enable expensive run-time checks. With LIST, 36 38 enable only specific categories of checks. 37 Categories are: misc,tree,rtl, gc,gcac; default38 is misc,tree,gc"39 Categories are: misc,tree,rtl,rtlflag,gc,gcac; 40 default is misc,tree,gc,rtlflag" 39 41 ac_help="$ac_help 40 --disable-cpp don't provide a user-visible C preprocessor" 42 --enable-coverage[=LEVEL] 43 enable compiler\'s code coverage collection. 44 Use to measure compiler performance and locate 45 unused parts of the compiler. With LEVEL, specificy 46 optimization. Values are opt, noopt, 47 default is noopt" 41 48 ac_help="$ac_help 42 49 --with-cpp-install-dir=DIR … … 61 68 ac_help="$ac_help 62 69 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib" 70 ac_help="$ac_help 71 --enable-initfini-array use .init_array/.fini_array sections" 72 ac_help="$ac_help 73 --enable-sjlj-exceptions 74 arrange to use setjmp/longjmp exception handling" 75 ac_help="$ac_help 76 --enable-libunwind-exceptions force use libunwind for exceptions" 63 77 ac_help="$ac_help 64 78 --enable-nls use Native Language Support (default)" … … 86 100 enable make rules and dependencies not useful 87 101 (and sometimes confusing) to the casual installer" 88 ac_help="$ac_help89 --enable-sjlj-exceptions90 arrange to use setjmp/longjmp exception handling"91 102 ac_help="$ac_help 92 103 --enable-version-specific-runtime-libs … … 605 616 606 617 echo $ac_n "checking for path separator""... $ac_c" 1>&6 607 echo "configure:6 08: checking for path separator" >&5618 echo "configure:619: checking for path separator" >&5 608 619 # Filter path to get backslahes into forwardslashes 609 620 case "`uname -s 2> /dev/null`" in … … 619 630 620 631 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 621 echo "configure:6 22: checking for Cygwin environment" >&5632 echo "configure:633: checking for Cygwin environment" >&5 622 633 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 623 634 echo $ac_n "(cached) $ac_c" 1>&6 624 635 else 625 636 cat > conftest.$ac_ext <<EOF 626 #line 6 27"configure"637 #line 638 "configure" 627 638 #include "confdefs.h" 628 639 … … 635 646 ; return 0; } 636 647 EOF 637 if { (eval echo configure:6 38: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then648 if { (eval echo configure:649: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 638 649 rm -rf conftest* 639 650 ac_cv_cygwin=yes … … 652 663 test "$ac_cv_cygwin" = yes && CYGWIN=yes 653 664 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 654 echo "configure:6 55: checking for mingw32 environment" >&5665 echo "configure:666: checking for mingw32 environment" >&5 655 666 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 656 667 echo $ac_n "(cached) $ac_c" 1>&6 657 668 else 658 669 cat > conftest.$ac_ext <<EOF 659 #line 6 60"configure"670 #line 671 "configure" 660 671 #include "confdefs.h" 661 672 … … 664 675 ; return 0; } 665 676 EOF 666 if { (eval echo configure:6 67: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then677 if { (eval echo configure:678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 667 678 rm -rf conftest* 668 679 ac_cv_mingw32=yes … … 681 692 test "$ac_cv_mingw32" = yes && MINGW32=yes 682 693 echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 683 echo "configure:6 84: checking for EMX/OS2 environment" >&5694 echo "configure:695: checking for EMX/OS2 environment" >&5 684 695 if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then 685 696 echo $ac_n "(cached) $ac_c" 1>&6 … … 687 698 : ${CC=gcc.exe} 688 699 cat > conftest.$ac_ext <<EOF 689 #line 690"configure"700 #line 701 "configure" 690 701 #include "confdefs.h" 691 702 … … 694 705 ; return 0; } 695 706 EOF 696 if { (eval echo configure: 697: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then707 if { (eval echo configure:708: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 697 708 rm -rf conftest* 698 709 ac_cv_emxos2=yes … … 725 736 726 737 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 727 echo "configure:7 28: checking for executable suffix" >&5738 echo "configure:739: checking for executable suffix" >&5 728 739 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 729 740 echo $ac_n "(cached) $ac_c" 1>&6 … … 735 746 echo 'int main () { return 0; }' > conftest.$ac_ext 736 747 ac_cv_exeext= 737 if { (eval echo configure:7 38: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then748 if { (eval echo configure:749: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 738 749 for file in conftest.*; do 739 750 case $file in … … 772 783 # - the path contains an element with a dot in it 773 784 echo $ac_n "checking LIBRARY_PATH variable""... $ac_c" 1>&6 774 echo "configure:7 75: checking LIBRARY_PATH variable" >&5785 echo "configure:786: checking LIBRARY_PATH variable" >&5 775 786 case ${LIBRARY_PATH} in 776 787 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) … … 797 808 # - the path contains an element with a dot in it 798 809 echo $ac_n "checking GCC_EXEC_PREFIX variable""... $ac_c" 1>&6 799 echo "configure:8 00: checking GCC_EXEC_PREFIX variable" >&5810 echo "configure:811: checking GCC_EXEC_PREFIX variable" >&5 800 811 case ${GCC_EXEC_PREFIX} in 801 812 [:\;]* | *[:\;] | *[:\;][:\;]* | *[:\;]. | .[:\;]*| . | *[:\;].[:\;]* ) … … 936 947 fi 937 948 938 # Determine whether or not multilibs are enabled. 939 # Check whether --enable-multilib or --disable-multilib was given. 940 if test "${enable_multilib+set}" = set; then 941 enableval="$enable_multilib" 942 : 943 else 944 enable_multilib=yes 945 fi 946 947 948 949 # Enable expensive internal checks 950 # Check whether --enable-checking or --disable-checking was given. 951 if test "${enable_checking+set}" = set; then 952 enableval="$enable_checking" 953 ac_checking= 954 ac_tree_checking= 955 ac_rtl_checking= 956 ac_gc_checking= 957 ac_gc_always_collect= 958 case "${enableval}" in 959 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ;; 960 no) ;; 961 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 962 set fnord $enableval; shift 963 IFS="$ac_save_IFS" 964 for check 965 do 966 case $check in 967 misc) ac_checking=1 ;; 968 tree) ac_tree_checking=1 ;; 969 rtl) ac_rtl_checking=1 ;; 970 gc) ac_gc_checking=1 ;; 971 gcac) ac_gc_always_collect=1 ;; 972 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; 973 esac 974 done 975 ;; 976 esac 977 978 fi 979 980 if test x$ac_checking != x ; then 981 cat >> confdefs.h <<\EOF 982 #define ENABLE_CHECKING 1 983 EOF 984 985 fi 986 if test x$ac_tree_checking != x ; then 987 cat >> confdefs.h <<\EOF 988 #define ENABLE_TREE_CHECKING 1 989 EOF 990 991 fi 992 if test x$ac_rtl_checking != x ; then 993 cat >> confdefs.h <<\EOF 994 #define ENABLE_RTL_CHECKING 1 995 EOF 996 997 fi 998 if test x$ac_gc_checking != x ; then 999 cat >> confdefs.h <<\EOF 1000 #define ENABLE_GC_CHECKING 1 1001 EOF 1002 1003 fi 1004 if test x$ac_gc_always_collect != x ; then 1005 cat >> confdefs.h <<\EOF 1006 #define ENABLE_GC_ALWAYS_COLLECT 1 1007 EOF 1008 1009 fi 1010 1011 1012 # Check whether --enable-cpp or --disable-cpp was given. 1013 if test "${enable_cpp+set}" = set; then 1014 enableval="$enable_cpp" 1015 : 1016 else 1017 enable_cpp=yes 1018 fi 1019 1020 1021 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. 1022 if test "${with_cpp_install_dir+set}" = set; then 1023 withval="$with_cpp_install_dir" 1024 if test x$withval = xyes; then 1025 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } 1026 elif test x$withval != xno; then 1027 cpp_install_dir=$withval 1028 fi 1029 fi 1030 1031 1032 # Enable __cxa_atexit for C++. 1033 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given. 1034 if test "${enable___cxa_atexit+set}" = set; then 1035 enableval="$enable___cxa_atexit" 1036 : 1037 fi 1038 1039 if test x$enable___cxa_atexit = xyes; then 1040 cat >> confdefs.h <<\EOF 1041 #define DEFAULT_USE_CXA_ATEXIT 1 1042 EOF 1043 1044 fi 949 # Check whether --with-sysroot or --without-sysroot was given. 950 if test "${with_sysroot+set}" = set; then 951 withval="$with_sysroot" 1045 952 1046 # Enable Multibyte Characters for C/C++ 1047 # Check whether --enable-c-mbchar or --disable-c-mbchar was given. 1048 if test "${enable_c_mbchar+set}" = set; then 1049 enableval="$enable_c_mbchar" 1050 if test x$enable_c_mbchar != xno; then 1051 cat >> confdefs.h <<\EOF 1052 #define MULTIBYTE_CHARS 1 1053 EOF 1054 1055 fi 1056 fi 1057 953 case ${with_sysroot} in 954 yes) TARGET_SYSTEM_ROOT='${exec_prefix}/${target_alias}/sys-root' ;; 955 *) TARGET_SYSTEM_ROOT=$with_sysroot ;; 956 esac 957 958 TARGET_SYSTEM_ROOT_DEFINE='-DTARGET_SYSTEM_ROOT=\"$(TARGET_SYSTEM_ROOT)\"' 959 CROSS_SYSTEM_HEADER_DIR='$(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR)' 960 961 if test "x$exec_prefix" = xNONE; then 962 if test "x$prefix" = xNONE; then 963 test_prefix=/usr/local 964 else 965 test_prefix=$prefix 966 fi 967 else 968 test_prefix=$exec_prefix 969 fi 970 case ${TARGET_SYSTEM_ROOT} in 971 "${test_prefix}"|"${test_prefix}/"*|\ 972 '${exec_prefix}'|'${exec_prefix}/'*) 973 t="$TARGET_SYSTEM_ROOT_DEFINE -DTARGET_SYSTEM_ROOT_RELOCATABLE" 974 TARGET_SYSTEM_ROOT_DEFINE="$t" 975 ;; 976 esac 977 978 else 1058 979 1059 # Enable threads 1060 # Pass with no value to take the default 1061 # Pass with a value to specify a thread package 1062 # Check whether --enable-threads or --disable-threads was given. 1063 if test "${enable_threads+set}" = set; then 1064 enableval="$enable_threads" 1065 : 1066 else 1067 enable_threads='' 1068 fi 1069 1070 1071 enable_threads_flag=$enable_threads 1072 # Check if a valid thread package 1073 case x${enable_threads_flag} in 1074 x | xno) 1075 # No threads 1076 target_thread_file='single' 1077 ;; 1078 xyes) 1079 # default 1080 target_thread_file='' 1081 ;; 1082 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ 1083 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix) 1084 target_thread_file=$enable_threads_flag 1085 ;; 1086 *) 1087 echo "$enable_threads is an unknown thread package" 1>&2 1088 exit 1 1089 ;; 1090 esac 1091 1092 # Check whether --enable-objc-gc or --disable-objc-gc was given. 1093 if test "${enable_objc_gc+set}" = set; then 1094 enableval="$enable_objc_gc" 1095 if test x$enable_objc_gc = xno; then 1096 objc_boehm_gc='' 1097 else 1098 objc_boehm_gc=1 1099 fi 1100 else 1101 objc_boehm_gc='' 1102 fi 1103 1104 1105 # Check whether --with-dwarf2 or --without-dwarf2 was given. 1106 if test "${with_dwarf2+set}" = set; then 1107 withval="$with_dwarf2" 1108 dwarf2="$with_dwarf2" 1109 else 1110 dwarf2=no 1111 fi 1112 1113 1114 # Check whether --enable-shared or --disable-shared was given. 1115 if test "${enable_shared+set}" = set; then 1116 enableval="$enable_shared" 1117 1118 case $enable_shared in 1119 yes | no) ;; 1120 *) 1121 enable_shared=no 1122 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 1123 for pkg in $enableval; do 1124 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 1125 enable_shared=yes 1126 fi 1127 done 1128 IFS="$ac_save_ifs" 1129 ;; 1130 esac 1131 1132 else 1133 enable_shared=yes 1134 fi 1135 1136 1137 1138 # Enable command-line help 1139 # Check whether --enable-clh or --disable-clh was given. 1140 if test "${enable_clh+set}" = set; then 1141 enableval="$enable_clh" 1142 : 1143 fi 980 TARGET_SYSTEM_ROOT= 981 TARGET_SYSTEM_ROOT_DEFINE= 982 CROSS_SYSTEM_HEADER_DIR='$(gcc_tooldir)/sys-include' 983 984 fi 985 986 987 1144 988 1145 989 … … 1192 1036 1193 1037 echo $ac_n "checking host system type""... $ac_c" 1>&6 1194 echo "configure:1 195: checking host system type" >&51038 echo "configure:1039: checking host system type" >&5 1195 1039 1196 1040 host_alias=$host … … 1213 1057 1214 1058 echo $ac_n "checking target system type""... $ac_c" 1>&6 1215 echo "configure:1 216: checking target system type" >&51059 echo "configure:1060: checking target system type" >&5 1216 1060 1217 1061 target_alias=$target … … 1231 1075 1232 1076 echo $ac_n "checking build system type""... $ac_c" 1>&6 1233 echo "configure:1 234: checking build system type" >&51077 echo "configure:1078: checking build system type" >&5 1234 1078 1235 1079 build_alias=$build … … 1279 1123 set dummy gcc; ac_word=$2 1280 1124 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1281 echo "configure:1 282: checking for $ac_word" >&51125 echo "configure:1126: checking for $ac_word" >&5 1282 1126 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1283 1127 echo $ac_n "(cached) $ac_c" 1>&6 … … 1310 1154 set dummy cc; ac_word=$2 1311 1155 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1312 echo "configure:1 313: checking for $ac_word" >&51156 echo "configure:1157: checking for $ac_word" >&5 1313 1157 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1314 1158 echo $ac_n "(cached) $ac_c" 1>&6 … … 1363 1207 set dummy cl; ac_word=$2 1364 1208 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1365 echo "configure:1 366: checking for $ac_word" >&51209 echo "configure:1210: checking for $ac_word" >&5 1366 1210 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1367 1211 echo $ac_n "(cached) $ac_c" 1>&6 … … 1396 1240 1397 1241 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 1398 echo "configure:1 399: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&51242 echo "configure:1243: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 1399 1243 1400 1244 ac_ext=c … … 1407 1251 cat > conftest.$ac_ext << EOF 1408 1252 1409 #line 1 410"configure"1253 #line 1254 "configure" 1410 1254 #include "confdefs.h" 1411 1255 1412 1256 main(){return(0);} 1413 1257 EOF 1414 if { (eval echo configure:1 415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1258 if { (eval echo configure:1259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1415 1259 ac_cv_prog_cc_works=yes 1416 1260 # If we can't run a trivial program, we are probably using a cross compiler. … … 1438 1282 fi 1439 1283 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 1440 echo "configure:1 441: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&51284 echo "configure:1285: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 1441 1285 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 1442 1286 cross_compiling=$ac_cv_prog_cc_cross 1443 1287 1444 1288 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1445 echo "configure:1 446: checking whether we are using GNU C" >&51289 echo "configure:1290: checking whether we are using GNU C" >&5 1446 1290 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1447 1291 echo $ac_n "(cached) $ac_c" 1>&6 … … 1452 1296 #endif 1453 1297 EOF 1454 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1 455: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1298 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1299: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1455 1299 ac_cv_prog_gcc=yes 1456 1300 else … … 1471 1315 CFLAGS= 1472 1316 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1473 echo "configure:1 474: checking whether ${CC-cc} accepts -g" >&51317 echo "configure:1318: checking whether ${CC-cc} accepts -g" >&5 1474 1318 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1475 1319 echo $ac_n "(cached) $ac_c" 1>&6 … … 1504 1348 if test "x$CC" != xcc; then 1505 1349 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 1506 echo "configure:1 507: checking whether $CC and cc understand -c and -o together" >&51350 echo "configure:1351: checking whether $CC and cc understand -c and -o together" >&5 1507 1351 else 1508 1352 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 1509 echo "configure:1 510: checking whether cc understands -c and -o together" >&51353 echo "configure:1354: checking whether cc understands -c and -o together" >&5 1510 1354 fi 1511 1355 set dummy $CC; ac_cc="`echo $2 | … … 1519 1363 # existing .o file with -o, though they will create one. 1520 1364 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' 1521 if { (eval echo configure:1 522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&1522 test -f conftest.o && { (eval echo configure:1 523: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };1365 if { (eval echo configure:1366: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1366 test -f conftest.o && { (eval echo configure:1367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1523 1367 then 1524 1368 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 1525 1369 if test "x$CC" != xcc; then 1526 1370 # Test first that cc exists at all. 1527 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1 528: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then1371 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 1528 1372 ac_try='cc -c conftest.c -o conftest.o 1>&5' 1529 if { (eval echo configure:1 530: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } &&1530 test -f conftest.o && { (eval echo configure:1 531: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; };1373 if { (eval echo configure:1374: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1374 test -f conftest.o && { (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1531 1375 then 1532 1376 # cc works too. … … 1574 1418 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2 1575 1419 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1576 echo "configure:1 577: checking for $ac_word" >&51420 echo "configure:1421: checking for $ac_word" >&5 1577 1421 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then 1578 1422 echo $ac_n "(cached) $ac_c" 1>&6 … … 1607 1451 set dummy gnatbind; ac_word=$2 1608 1452 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1609 echo "configure:1 610: checking for $ac_word" >&51453 echo "configure:1454: checking for $ac_word" >&5 1610 1454 if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then 1611 1455 echo $ac_n "(cached) $ac_c" 1>&6 … … 1641 1485 1642 1486 echo $ac_n "checking for compiler driver that understands Ada""... $ac_c" 1>&6 1643 echo "configure:1 644: checking for compiler driver that understands Ada" >&51487 echo "configure:1488: checking for compiler driver that understands Ada" >&5 1644 1488 if eval "test \"`echo '$''{'gcc_cv_prog_adac'+set}'`\" = set"; then 1645 1489 echo $ac_n "(cached) $ac_c" 1>&6 … … 1650 1494 gcc_cv_prog_adac=no 1651 1495 # Have to do ac_tool_prefix and user overrides by hand. 1652 user_adac=$ADAC 1653 user_cc=$CC 1654 for cand in ${ac_tool_prefix}$user_adac $user_adac \ 1655 ${ac_tool_prefix}$user_cc $user_cc \ 1496 for cand in ${ADAC+"$ADAC"} ${CC+"$CC"} \ 1656 1497 ${ac_tool_prefix}gcc gcc \ 1657 1498 ${ac_tool_prefix}cc cc \ … … 1686 1527 1687 1528 echo $ac_n "checking whether ${CC-cc} accepts -Wno-long-long""... $ac_c" 1>&6 1688 echo "configure:1 689: checking whether ${CC-cc} accepts -Wno-long-long" >&51529 echo "configure:1530: checking whether ${CC-cc} accepts -Wno-long-long" >&5 1689 1530 if eval "test \"`echo '$''{'ac_cv_prog_cc_no_long_long'+set}'`\" = set"; then 1690 1531 echo $ac_n "(cached) $ac_c" 1>&6 … … 1693 1534 CFLAGS="-Wno-long-long" 1694 1535 cat > conftest.$ac_ext <<EOF 1695 #line 1 696"configure"1536 #line 1537 "configure" 1696 1537 #include "confdefs.h" 1697 1538 … … 1700 1541 ; return 0; } 1701 1542 EOF 1702 if { (eval echo configure:1 703: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1543 if { (eval echo configure:1544: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1703 1544 rm -rf conftest* 1704 1545 ac_cv_prog_cc_no_long_long=yes … … 1717 1558 if test x$have_gnat != xno ; then 1718 1559 echo $ac_n "checking whether ${ADAC} accepts -Wno-long-long""... $ac_c" 1>&6 1719 echo "configure:1 720: checking whether ${ADAC} accepts -Wno-long-long" >&51560 echo "configure:1561: checking whether ${ADAC} accepts -Wno-long-long" >&5 1720 1561 if eval "test \"`echo '$''{'ac_cv_prog_adac_no_long_long'+set}'`\" = set"; then 1721 1562 echo $ac_n "(cached) $ac_c" 1>&6 … … 1745 1586 1746 1587 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1747 echo "configure:1 748: checking how to run the C preprocessor" >&51588 echo "configure:1589: checking how to run the C preprocessor" >&5 1748 1589 # On Suns, sometimes $CPP names a directory. 1749 1590 if test -n "$CPP" && test -d "$CPP"; then … … 1761 1602 cat > conftest.$ac_ext <<EOF 1762 1603 #include <sys/types.h> 1763 #line 1 764"configure"1604 #line 1605 "configure" 1764 1605 #include "confdefs.h" 1765 1606 #include <assert.h> … … 1767 1608 EOF 1768 1609 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1769 { (eval echo configure:1 770: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1610 { (eval echo configure:1611: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1770 1611 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1771 1612 if test -z "$ac_err"; then … … 1779 1620 cat > conftest.$ac_ext <<EOF 1780 1621 #include <sys/types.h> 1781 #line 1 782"configure"1622 #line 1623 "configure" 1782 1623 #include "confdefs.h" 1783 1624 #include <assert.h> … … 1785 1626 EOF 1786 1627 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1787 { (eval echo configure:1 788: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1628 { (eval echo configure:1629: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1788 1629 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1789 1630 if test -z "$ac_err"; then … … 1797 1638 cat > conftest.$ac_ext <<EOF 1798 1639 #include <sys/types.h> 1799 #line 1 800"configure"1640 #line 1641 "configure" 1800 1641 #include "confdefs.h" 1801 1642 #include <assert.h> … … 1803 1644 EOF 1804 1645 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1805 { (eval echo configure:1 806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1646 { (eval echo configure:1647: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1806 1647 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1807 1648 if test -z "$ac_err"; then … … 1828 1669 1829 1670 echo $ac_n "checking for inline""... $ac_c" 1>&6 1830 echo "configure:1 831: checking for inline" >&51671 echo "configure:1672: checking for inline" >&5 1831 1672 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1832 1673 echo $ac_n "(cached) $ac_c" 1>&6 … … 1835 1676 for ac_kw in inline __inline__ __inline; do 1836 1677 cat > conftest.$ac_ext <<EOF 1837 #line 1 838"configure"1678 #line 1679 "configure" 1838 1679 #include "confdefs.h" 1839 1680 … … 1842 1683 ; return 0; } 1843 1684 EOF 1844 if { (eval echo configure:1 845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1685 if { (eval echo configure:1686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1845 1686 rm -rf conftest* 1846 1687 ac_cv_c_inline=$ac_kw; break … … 1868 1709 1869 1710 echo $ac_n "checking for volatile""... $ac_c" 1>&6 1870 echo "configure:1 871: checking for volatile" >&51711 echo "configure:1712: checking for volatile" >&5 1871 1712 if eval "test \"`echo '$''{'gcc_cv_c_volatile'+set}'`\" = set"; then 1872 1713 echo $ac_n "(cached) $ac_c" 1>&6 1873 1714 else 1874 1715 cat > conftest.$ac_ext <<EOF 1875 #line 1 876"configure"1716 #line 1717 "configure" 1876 1717 #include "confdefs.h" 1877 1718 … … 1880 1721 ; return 0; } 1881 1722 EOF 1882 if { (eval echo configure:1 883: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1723 if { (eval echo configure:1724: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1883 1724 rm -rf conftest* 1884 1725 gcc_cv_c_volatile=yes … … 1902 1743 1903 1744 echo $ac_n "checking for long double""... $ac_c" 1>&6 1904 echo "configure:1 905: checking for long double" >&51745 echo "configure:1746: checking for long double" >&5 1905 1746 if eval "test \"`echo '$''{'gcc_cv_c_long_double'+set}'`\" = set"; then 1906 1747 echo $ac_n "(cached) $ac_c" 1>&6 … … 1910 1751 else 1911 1752 cat > conftest.$ac_ext <<EOF 1912 #line 1 913"configure"1753 #line 1754 "configure" 1913 1754 #include "confdefs.h" 1914 1755 … … 1920 1761 ; return 0; } 1921 1762 EOF 1922 if { (eval echo configure:1 923: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1763 if { (eval echo configure:1764: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1923 1764 rm -rf conftest* 1924 1765 gcc_cv_c_long_double=yes … … 1942 1783 1943 1784 echo $ac_n "checking for long long int""... $ac_c" 1>&6 1944 echo "configure:1 945: checking for long long int" >&51785 echo "configure:1786: checking for long long int" >&5 1945 1786 if eval "test \"`echo '$''{'ac_cv_c_long_long'+set}'`\" = set"; then 1946 1787 echo $ac_n "(cached) $ac_c" 1>&6 1947 1788 else 1948 1789 cat > conftest.$ac_ext <<EOF 1949 #line 1 950"configure"1790 #line 1791 "configure" 1950 1791 #include "confdefs.h" 1951 1792 … … 1954 1795 ; return 0; } 1955 1796 EOF 1956 if { (eval echo configure:1 957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1797 if { (eval echo configure:1798: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1957 1798 rm -rf conftest* 1958 1799 ac_cv_c_long_long=yes … … 1974 1815 fi 1975 1816 echo $ac_n "checking for __int64""... $ac_c" 1>&6 1976 echo "configure:1 977: checking for __int64" >&51817 echo "configure:1818: checking for __int64" >&5 1977 1818 if eval "test \"`echo '$''{'ac_cv_c___int64'+set}'`\" = set"; then 1978 1819 echo $ac_n "(cached) $ac_c" 1>&6 1979 1820 else 1980 1821 cat > conftest.$ac_ext <<EOF 1981 #line 1 982"configure"1822 #line 1823 "configure" 1982 1823 #include "confdefs.h" 1983 1824 … … 1986 1827 ; return 0; } 1987 1828 EOF 1988 if { (eval echo configure:1 989: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1829 if { (eval echo configure:1830: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1989 1830 rm -rf conftest* 1990 1831 ac_cv_c___int64=yes … … 2007 1848 2008 1849 echo $ac_n "checking for built-in _Bool""... $ac_c" 1>&6 2009 echo "configure: 2010: checking for built-in _Bool" >&51850 echo "configure:1851: checking for built-in _Bool" >&5 2010 1851 if eval "test \"`echo '$''{'gcc_cv_c__bool'+set}'`\" = set"; then 2011 1852 echo $ac_n "(cached) $ac_c" 1>&6 2012 1853 else 2013 1854 cat > conftest.$ac_ext <<EOF 2014 #line 2015"configure"1855 #line 1856 "configure" 2015 1856 #include "confdefs.h" 2016 1857 … … 2019 1860 ; return 0; } 2020 1861 EOF 2021 if { (eval echo configure: 2022: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1862 if { (eval echo configure:1863: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2022 1863 rm -rf conftest* 2023 1864 gcc_cv_c__bool=yes … … 2043 1884 # sizeof(char) is 1 by definition. 2044 1885 echo $ac_n "checking size of short""... $ac_c" 1>&6 2045 echo "configure: 2046: checking size of short" >&51886 echo "configure:1887: checking size of short" >&5 2046 1887 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 1888 echo $ac_n "(cached) $ac_c" 1>&6 1889 else 1890 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1891 cat > conftest.$ac_ext <<EOF 1892 #line 1893 "configure" 1893 #include "confdefs.h" 1894 #include "confdefs.h" 1895 #include <sys/types.h> 1896 1897 1898 int main() { 1899 switch (0) case 0: case (sizeof (short) == $ac_size):; 1900 ; return 0; } 1901 EOF 1902 if { (eval echo configure:1903: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1903 rm -rf conftest* 1904 ac_cv_sizeof_short=$ac_size 1905 else 1906 echo "configure: failed program was:" >&5 1907 cat conftest.$ac_ext >&5 1908 fi 1909 rm -f conftest* 1910 if test x$ac_cv_sizeof_short != x ; then break; fi 1911 done 1912 1913 fi 1914 1915 if test x$ac_cv_sizeof_short = x ; then 1916 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; } 1917 fi 1918 echo "$ac_t""$ac_cv_sizeof_short" 1>&6 1919 cat >> confdefs.h <<EOF 1920 #define SIZEOF_SHORT $ac_cv_sizeof_short 1921 EOF 1922 1923 1924 echo $ac_n "checking size of int""... $ac_c" 1>&6 1925 echo "configure:1926: checking size of int" >&5 1926 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 1927 echo $ac_n "(cached) $ac_c" 1>&6 1928 else 1929 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1930 cat > conftest.$ac_ext <<EOF 1931 #line 1932 "configure" 1932 #include "confdefs.h" 1933 #include "confdefs.h" 1934 #include <sys/types.h> 1935 1936 1937 int main() { 1938 switch (0) case 0: case (sizeof (int) == $ac_size):; 1939 ; return 0; } 1940 EOF 1941 if { (eval echo configure:1942: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1942 rm -rf conftest* 1943 ac_cv_sizeof_int=$ac_size 1944 else 1945 echo "configure: failed program was:" >&5 1946 cat conftest.$ac_ext >&5 1947 fi 1948 rm -f conftest* 1949 if test x$ac_cv_sizeof_int != x ; then break; fi 1950 done 1951 1952 fi 1953 1954 if test x$ac_cv_sizeof_int = x ; then 1955 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; } 1956 fi 1957 echo "$ac_t""$ac_cv_sizeof_int" 1>&6 1958 cat >> confdefs.h <<EOF 1959 #define SIZEOF_INT $ac_cv_sizeof_int 1960 EOF 1961 1962 1963 echo $ac_n "checking size of long""... $ac_c" 1>&6 1964 echo "configure:1965: checking size of long" >&5 1965 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1966 echo $ac_n "(cached) $ac_c" 1>&6 1967 else 1968 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 1969 cat > conftest.$ac_ext <<EOF 1970 #line 1971 "configure" 1971 #include "confdefs.h" 1972 #include "confdefs.h" 1973 #include <sys/types.h> 1974 1975 1976 int main() { 1977 switch (0) case 0: case (sizeof (long) == $ac_size):; 1978 ; return 0; } 1979 EOF 1980 if { (eval echo configure:1981: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1981 rm -rf conftest* 1982 ac_cv_sizeof_long=$ac_size 1983 else 1984 echo "configure: failed program was:" >&5 1985 cat conftest.$ac_ext >&5 1986 fi 1987 rm -f conftest* 1988 if test x$ac_cv_sizeof_long != x ; then break; fi 1989 done 1990 1991 fi 1992 1993 if test x$ac_cv_sizeof_long = x ; then 1994 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; } 1995 fi 1996 echo "$ac_t""$ac_cv_sizeof_long" 1>&6 1997 cat >> confdefs.h <<EOF 1998 #define SIZEOF_LONG $ac_cv_sizeof_long 1999 EOF 2000 2001 2002 if test $ac_cv_c_long_long = yes; then 2003 echo $ac_n "checking size of long long""... $ac_c" 1>&6 2004 echo "configure:2005: checking size of long long" >&5 2005 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then 2006 echo $ac_n "(cached) $ac_c" 1>&6 2007 else 2008 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence. 2009 cat > conftest.$ac_ext <<EOF 2010 #line 2011 "configure" 2011 #include "confdefs.h" 2012 #include "confdefs.h" 2013 #include <sys/types.h> 2014 2015 2016 int main() { 2017 switch (0) case 0: case (sizeof (long long) == $ac_size):; 2018 ; return 0; } 2019 EOF 2020 if { (eval echo configure:2021: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2021 rm -rf conftest* 2022 ac_cv_sizeof_long_long=$ac_size 2023 else 2024 echo "configure: failed program was:" >&5 2025 cat conftest.$ac_ext >&5 2026 fi 2027 rm -f conftest* 2028 if test x$ac_cv_sizeof_long_long != x ; then break; fi 2029 done 2030 2031 fi 2032 2033 if test x$ac_cv_sizeof_long_long = x ; then 2034 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; } 2035 fi 2036 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&6 2037 cat >> confdefs.h <<EOF 2038 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 2039 EOF 2040 2041 2042 fi 2043 if test $ac_cv_c___int64 = yes; then 2044 echo $ac_n "checking size of __int64""... $ac_c" 1>&6 2045 echo "configure:2046: checking size of __int64" >&5 2046 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then 2047 2047 echo $ac_n "(cached) $ac_c" 1>&6 2048 2048 else … … 2056 2056 2057 2057 int main() { 2058 switch (0) case 0: case (sizeof (short) == $ac_size):;2059 ; return 0; }2060 EOF2061 if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2062 rm -rf conftest*2063 ac_cv_sizeof_short=$ac_size2064 else2065 echo "configure: failed program was:" >&52066 cat conftest.$ac_ext >&52067 fi2068 rm -f conftest*2069 if test x$ac_cv_sizeof_short != x ; then break; fi2070 done2071 2072 fi2073 2074 if test x$ac_cv_sizeof_short = x ; then2075 { echo "configure: error: cannot determine a size for short" 1>&2; exit 1; }2076 fi2077 echo "$ac_t""$ac_cv_sizeof_short" 1>&62078 cat >> confdefs.h <<EOF2079 #define SIZEOF_SHORT $ac_cv_sizeof_short2080 EOF2081 2082 2083 echo $ac_n "checking size of int""... $ac_c" 1>&62084 echo "configure:2085: checking size of int" >&52085 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then2086 echo $ac_n "(cached) $ac_c" 1>&62087 else2088 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.2089 cat > conftest.$ac_ext <<EOF2090 #line 2091 "configure"2091 #include "confdefs.h"2092 #include "confdefs.h"2093 #include <sys/types.h>2094 2095 2096 int main() {2097 switch (0) case 0: case (sizeof (int) == $ac_size):;2098 ; return 0; }2099 EOF2100 if { (eval echo configure:2101: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2101 rm -rf conftest*2102 ac_cv_sizeof_int=$ac_size2103 else2104 echo "configure: failed program was:" >&52105 cat conftest.$ac_ext >&52106 fi2107 rm -f conftest*2108 if test x$ac_cv_sizeof_int != x ; then break; fi2109 done2110 2111 fi2112 2113 if test x$ac_cv_sizeof_int = x ; then2114 { echo "configure: error: cannot determine a size for int" 1>&2; exit 1; }2115 fi2116 echo "$ac_t""$ac_cv_sizeof_int" 1>&62117 cat >> confdefs.h <<EOF2118 #define SIZEOF_INT $ac_cv_sizeof_int2119 EOF2120 2121 2122 echo $ac_n "checking size of long""... $ac_c" 1>&62123 echo "configure:2124: checking size of long" >&52124 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then2125 echo $ac_n "(cached) $ac_c" 1>&62126 else2127 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.2128 cat > conftest.$ac_ext <<EOF2129 #line 2130 "configure"2130 #include "confdefs.h"2131 #include "confdefs.h"2132 #include <sys/types.h>2133 2134 2135 int main() {2136 switch (0) case 0: case (sizeof (long) == $ac_size):;2137 ; return 0; }2138 EOF2139 if { (eval echo configure:2140: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2140 rm -rf conftest*2141 ac_cv_sizeof_long=$ac_size2142 else2143 echo "configure: failed program was:" >&52144 cat conftest.$ac_ext >&52145 fi2146 rm -f conftest*2147 if test x$ac_cv_sizeof_long != x ; then break; fi2148 done2149 2150 fi2151 2152 if test x$ac_cv_sizeof_long = x ; then2153 { echo "configure: error: cannot determine a size for long" 1>&2; exit 1; }2154 fi2155 echo "$ac_t""$ac_cv_sizeof_long" 1>&62156 cat >> confdefs.h <<EOF2157 #define SIZEOF_LONG $ac_cv_sizeof_long2158 EOF2159 2160 2161 if test $ac_cv_c_long_long = yes; then2162 echo $ac_n "checking size of long long""... $ac_c" 1>&62163 echo "configure:2164: checking size of long long" >&52164 if eval "test \"`echo '$''{'ac_cv_sizeof_long_long'+set}'`\" = set"; then2165 echo $ac_n "(cached) $ac_c" 1>&62166 else2167 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.2168 cat > conftest.$ac_ext <<EOF2169 #line 2170 "configure"2170 #include "confdefs.h"2171 #include "confdefs.h"2172 #include <sys/types.h>2173 2174 2175 int main() {2176 switch (0) case 0: case (sizeof (long long) == $ac_size):;2177 ; return 0; }2178 EOF2179 if { (eval echo configure:2180: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2180 rm -rf conftest*2181 ac_cv_sizeof_long_long=$ac_size2182 else2183 echo "configure: failed program was:" >&52184 cat conftest.$ac_ext >&52185 fi2186 rm -f conftest*2187 if test x$ac_cv_sizeof_long_long != x ; then break; fi2188 done2189 2190 fi2191 2192 if test x$ac_cv_sizeof_long_long = x ; then2193 { echo "configure: error: cannot determine a size for long long" 1>&2; exit 1; }2194 fi2195 echo "$ac_t""$ac_cv_sizeof_long_long" 1>&62196 cat >> confdefs.h <<EOF2197 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long2198 EOF2199 2200 2201 fi2202 if test $ac_cv_c___int64 = yes; then2203 echo $ac_n "checking size of __int64""... $ac_c" 1>&62204 echo "configure:2205: checking size of __int64" >&52205 if eval "test \"`echo '$''{'ac_cv_sizeof___int64'+set}'`\" = set"; then2206 echo $ac_n "(cached) $ac_c" 1>&62207 else2208 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.2209 cat > conftest.$ac_ext <<EOF2210 #line 2211 "configure"2211 #include "confdefs.h"2212 #include "confdefs.h"2213 #include <sys/types.h>2214 2215 2216 int main() {2217 2058 switch (0) case 0: case (sizeof (__int64) == $ac_size):; 2218 2059 ; return 0; } 2219 2060 EOF 2220 if { (eval echo configure:2 221: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2061 if { (eval echo configure:2062: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2221 2062 rm -rf conftest* 2222 2063 ac_cv_sizeof___int64=$ac_size … … 2243 2084 2244 2085 echo $ac_n "checking execution character set""... $ac_c" 1>&6 2245 echo "configure:2 246: checking execution character set" >&52086 echo "configure:2087: checking execution character set" >&5 2246 2087 if eval "test \"`echo '$''{'ac_cv_c_charset'+set}'`\" = set"; then 2247 2088 echo $ac_n "(cached) $ac_c" 1>&6 2248 2089 else 2249 2090 cat > conftest.$ac_ext <<EOF 2250 #line 2 251"configure"2091 #line 2092 "configure" 2251 2092 #include "confdefs.h" 2252 2093 #if '\n' == 0x0A && ' ' == 0x20 && '0' == 0x30 \ … … 2264 2105 if test x${ac_cv_c_charset+set} != xset; then 2265 2106 cat > conftest.$ac_ext <<EOF 2266 #line 2 267"configure"2107 #line 2108 "configure" 2267 2108 #include "confdefs.h" 2268 2109 #if '\n' == 0x15 && ' ' == 0x40 && '0' == 0xF0 \ … … 2300 2141 if test "x$GCC" = "xyes"; then 2301 2142 warn_cflags='$(GCC_WARN_CFLAGS)' 2143 fi 2144 2145 2146 # Determine whether or not multilibs are enabled. 2147 # Check whether --enable-multilib or --disable-multilib was given. 2148 if test "${enable_multilib+set}" = set; then 2149 enableval="$enable_multilib" 2150 : 2151 else 2152 enable_multilib=yes 2153 fi 2154 2155 2156 2157 # Enable expensive internal checks 2158 # Check whether --enable-checking or --disable-checking was given. 2159 if test "${enable_checking+set}" = set; then 2160 enableval="$enable_checking" 2161 ac_checking= 2162 ac_tree_checking= 2163 ac_rtl_checking= 2164 ac_rtlflag_checking= 2165 ac_gc_checking= 2166 ac_gc_always_collect= 2167 case "${enableval}" in 2168 yes) ac_checking=1 ; ac_tree_checking=1 ; ac_gc_checking=1 ; 2169 ac_rtlflag_checking=1 ;; 2170 no) ;; 2171 *) IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 2172 set fnord $enableval; shift 2173 IFS="$ac_save_IFS" 2174 for check 2175 do 2176 case $check in 2177 misc) ac_checking=1 ;; 2178 tree) ac_tree_checking=1 ;; 2179 rtlflag) ac_rtlflag_checking=1 ;; 2180 rtl) ac_rtl_checking=1 ;; 2181 gc) ac_gc_checking=1 ;; 2182 gcac) ac_gc_always_collect=1 ;; 2183 valgrind) ac_checking_valgrind=1 ;; 2184 *) { echo "configure: error: unknown check category $check" 1>&2; exit 1; } ;; 2185 esac 2186 done 2187 ;; 2188 esac 2189 2190 fi 2191 2192 nocommon_flag="" 2193 if test x$ac_checking != x ; then 2194 cat >> confdefs.h <<\EOF 2195 #define ENABLE_CHECKING 1 2196 EOF 2197 2198 nocommon_flag=-fno-common 2199 fi 2200 2201 if test x$ac_tree_checking != x ; then 2202 cat >> confdefs.h <<\EOF 2203 #define ENABLE_TREE_CHECKING 1 2204 EOF 2205 2206 fi 2207 if test x$ac_rtl_checking != x ; then 2208 cat >> confdefs.h <<\EOF 2209 #define ENABLE_RTL_CHECKING 1 2210 EOF 2211 2212 fi 2213 if test x$ac_rtlflag_checking != x ; then 2214 cat >> confdefs.h <<\EOF 2215 #define ENABLE_RTL_FLAG_CHECKING 1 2216 EOF 2217 2218 fi 2219 if test x$ac_gc_checking != x ; then 2220 cat >> confdefs.h <<\EOF 2221 #define ENABLE_GC_CHECKING 1 2222 EOF 2223 2224 fi 2225 if test x$ac_gc_always_collect != x ; then 2226 cat >> confdefs.h <<\EOF 2227 #define ENABLE_GC_ALWAYS_COLLECT 1 2228 EOF 2229 2230 fi 2231 valgrind_path_defines= 2232 valgrind_command= 2233 if test x$ac_checking_valgrind != x ; then 2234 # It is certainly possible that there's valgrind but no valgrind.h. 2235 # GCC relies on making annotations so we must have both. 2236 ac_safe=`echo "valgrind.h" | sed 'y%./+-%__p_%'` 2237 echo $ac_n "checking for valgrind.h""... $ac_c" 1>&6 2238 echo "configure:2239: checking for valgrind.h" >&5 2239 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2240 echo $ac_n "(cached) $ac_c" 1>&6 2241 else 2242 cat > conftest.$ac_ext <<EOF 2243 #include <sys/types.h> 2244 #line 2245 "configure" 2245 #include "confdefs.h" 2246 #include <valgrind.h> 2247 EOF 2248 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2249 { (eval echo configure:2250: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2250 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2251 if test -z "$ac_err"; then 2252 rm -rf conftest* 2253 eval "ac_cv_header_$ac_safe=yes" 2254 else 2255 echo "$ac_err" >&5 2256 echo "configure: failed program was:" >&5 2257 cat conftest.$ac_ext >&5 2258 rm -rf conftest* 2259 eval "ac_cv_header_$ac_safe=no" 2260 fi 2261 rm -f conftest* 2262 fi 2263 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2264 echo "$ac_t""yes" 1>&6 2265 have_valgrind_h=yes 2266 else 2267 echo "$ac_t""no" 1>&6 2268 have_valgrind_h=no 2269 fi 2270 2271 # Extract the first word of "valgrind", so it can be a program name with args. 2272 set dummy valgrind; ac_word=$2 2273 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2274 echo "configure:2275: checking for $ac_word" >&5 2275 if eval "test \"`echo '$''{'ac_cv_path_valgrind_path'+set}'`\" = set"; then 2276 echo $ac_n "(cached) $ac_c" 1>&6 2277 else 2278 case "$valgrind_path" in 2279 /*) 2280 ac_cv_path_valgrind_path="$valgrind_path" # Let the user override the test with a path. 2281 ;; 2282 *) 2283 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${PATH_IFS}" 2284 for ac_dir in $PATH; do 2285 test -z "$ac_dir" && ac_dir=. 2286 if test -f $ac_dir/$ac_word; then 2287 if $ac_dir/$ac_word --version | grep valgrind- >/dev/null 2>&1; then 2288 ac_cv_path_valgrind_path="$ac_dir/$ac_word" 2289 break 2290 fi 2291 fi 2292 done 2293 IFS="$ac_save_ifs" 2294 ;; 2295 esac 2296 fi 2297 valgrind_path="$ac_cv_path_valgrind_path" 2298 if test -n "$valgrind_path"; then 2299 echo "$ac_t""$valgrind_path" 1>&6 2300 else 2301 echo "$ac_t""no" 1>&6 2302 fi 2303 2304 if test "x$valgrind_path" = "x" || test $have_valgrind_h = no; then 2305 { echo "configure: error: *** Can't find both valgrind and valgrind.h" 1>&2; exit 1; } 2306 fi 2307 valgrind_path_defines=-DVALGRIND_PATH='\"'$valgrind_path'\"' 2308 valgrind_command="$valgrind_path -q" 2309 cat >> confdefs.h <<\EOF 2310 #define ENABLE_VALGRIND_CHECKING 1 2311 EOF 2312 2313 fi 2314 2315 2316 2317 # Enable code coverage collection 2318 # Check whether --enable-coverage or --disable-coverage was given. 2319 if test "${enable_coverage+set}" = set; then 2320 enableval="$enable_coverage" 2321 case "${enableval}" in 2322 yes|noopt) 2323 coverage_flags="-fprofile-arcs -ftest-coverage -O0" 2324 ;; 2325 opt) 2326 coverage_flags="-fprofile-arcs -ftest-coverage -O2" 2327 ;; 2328 *) 2329 { echo "configure: error: unknown coverage setting $enableval" 1>&2; exit 1; } 2330 ;; 2331 esac 2332 else 2333 coverage_flags="" 2334 fi 2335 2336 2337 2338 # Check whether --with-cpp_install_dir or --without-cpp_install_dir was given. 2339 if test "${with_cpp_install_dir+set}" = set; then 2340 withval="$with_cpp_install_dir" 2341 if test x$withval = xyes; then 2342 { echo "configure: error: option --with-cpp-install-dir requires an argument" 1>&2; exit 1; } 2343 elif test x$withval != xno; then 2344 cpp_install_dir=$withval 2345 fi 2346 fi 2347 2348 2349 # Enable __cxa_atexit for C++. 2350 # Check whether --enable-__cxa_atexit or --disable-__cxa_atexit was given. 2351 if test "${enable___cxa_atexit+set}" = set; then 2352 enableval="$enable___cxa_atexit" 2353 : 2354 fi 2355 2356 if test x$enable___cxa_atexit = xyes; then 2357 cat >> confdefs.h <<\EOF 2358 #define DEFAULT_USE_CXA_ATEXIT 1 2359 EOF 2360 2361 fi 2362 2363 # Enable Multibyte Characters for C/C++ 2364 # Check whether --enable-c-mbchar or --disable-c-mbchar was given. 2365 if test "${enable_c_mbchar+set}" = set; then 2366 enableval="$enable_c_mbchar" 2367 if test x$enable_c_mbchar != xno; then 2368 cat >> confdefs.h <<\EOF 2369 #define MULTIBYTE_CHARS 1 2370 EOF 2371 2372 fi 2373 fi 2374 2375 2376 # Enable threads 2377 # Pass with no value to take the default 2378 # Pass with a value to specify a thread package 2379 # Check whether --enable-threads or --disable-threads was given. 2380 if test "${enable_threads+set}" = set; then 2381 enableval="$enable_threads" 2382 : 2383 else 2384 enable_threads='' 2385 fi 2386 2387 2388 enable_threads_flag=$enable_threads 2389 # Check if a valid thread package 2390 case x${enable_threads_flag} in 2391 x | xno) 2392 # No threads 2393 target_thread_file='single' 2394 ;; 2395 xyes) 2396 # default 2397 target_thread_file='' 2398 ;; 2399 xdecosf1 | xirix | xmach | xos2 | xposix | xpthreads | xsingle | \ 2400 xsolaris | xwin32 | xdce | xrtems| xvxworks | xaix) 2401 target_thread_file=$enable_threads_flag 2402 ;; 2403 *) 2404 echo "$enable_threads is an unknown thread package" 1>&2 2405 exit 1 2406 ;; 2407 esac 2408 2409 # Check whether --enable-objc-gc or --disable-objc-gc was given. 2410 if test "${enable_objc_gc+set}" = set; then 2411 enableval="$enable_objc_gc" 2412 if test x$enable_objc_gc = xno; then 2413 objc_boehm_gc='' 2414 else 2415 objc_boehm_gc=1 2416 fi 2417 else 2418 objc_boehm_gc='' 2419 fi 2420 2421 2422 # Check whether --with-dwarf2 or --without-dwarf2 was given. 2423 if test "${with_dwarf2+set}" = set; then 2424 withval="$with_dwarf2" 2425 dwarf2="$with_dwarf2" 2426 else 2427 dwarf2=no 2428 fi 2429 2430 2431 # Check whether --enable-shared or --disable-shared was given. 2432 if test "${enable_shared+set}" = set; then 2433 enableval="$enable_shared" 2434 2435 case $enable_shared in 2436 yes | no) ;; 2437 *) 2438 enable_shared=no 2439 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," 2440 for pkg in $enableval; do 2441 if test "X$pkg" = "Xgcc" || test "X$pkg" = "Xlibgcc"; then 2442 enable_shared=yes 2443 fi 2444 done 2445 IFS="$ac_save_ifs" 2446 ;; 2447 esac 2448 2449 else 2450 enable_shared=yes 2451 fi 2452 2453 2454 2455 # Enable command-line help 2456 # Check whether --enable-clh or --disable-clh was given. 2457 if test "${enable_clh+set}" = set; then 2458 enableval="$enable_clh" 2459 : 2302 2460 fi 2303 2461 … … 2325 2483 2326 2484 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 2327 echo "configure:2 328: checking whether ${MAKE-make} sets \${MAKE}" >&52485 echo "configure:2486: checking whether ${MAKE-make} sets \${MAKE}" >&5 2328 2486 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 2329 2487 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 2353 2511 2354 2512 echo $ac_n "checking whether a default assembler was specified""... $ac_c" 1>&6 2355 echo "configure:2 356: checking whether a default assembler was specified" >&52513 echo "configure:2514: checking whether a default assembler was specified" >&5 2356 2514 if test x"${DEFAULT_ASSEMBLER+set}" = x"set"; then 2357 2515 if test x"$gas_flag" = x"no"; then … … 2365 2523 2366 2524 echo $ac_n "checking whether a default linker was specified""... $ac_c" 1>&6 2367 echo "configure:2 368: checking whether a default linker was specified" >&52525 echo "configure:2526: checking whether a default linker was specified" >&5 2368 2526 if test x"${DEFAULT_LINKER+set}" = x"set"; then 2369 2527 if test x"$gnu_ld_flag" = x"no"; then … … 2377 2535 2378 2536 echo $ac_n "checking for GNU C library""... $ac_c" 1>&6 2379 echo "configure:2 380: checking for GNU C library" >&52537 echo "configure:2538: checking for GNU C library" >&5 2380 2538 if eval "test \"`echo '$''{'gcc_cv_glibc'+set}'`\" = set"; then 2381 2539 echo $ac_n "(cached) $ac_c" 1>&6 2382 2540 else 2383 2541 cat > conftest.$ac_ext <<EOF 2384 #line 2 385"configure"2542 #line 2543 "configure" 2385 2543 #include "confdefs.h" 2386 2544 #include <features.h> … … 2392 2550 ; return 0; } 2393 2551 EOF 2394 if { (eval echo configure:2 395: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2552 if { (eval echo configure:2553: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2395 2553 rm -rf conftest* 2396 2554 gcc_cv_glibc=yes … … 2418 2576 set dummy $ac_prog; ac_word=$2 2419 2577 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2420 echo "configure:2 421: checking for $ac_word" >&52578 echo "configure:2579: checking for $ac_word" >&5 2421 2579 if eval "test \"`echo '$''{'ac_cv_prog_AWK'+set}'`\" = set"; then 2422 2580 echo $ac_n "(cached) $ac_c" 1>&6 … … 2449 2607 2450 2608 echo $ac_n "checking whether ln works""... $ac_c" 1>&6 2451 echo "configure:2 452: checking whether ln works" >&52609 echo "configure:2610: checking whether ln works" >&5 2452 2610 if eval "test \"`echo '$''{'gcc_cv_prog_LN'+set}'`\" = set"; then 2453 2611 echo $ac_n "(cached) $ac_c" 1>&6 … … 2481 2639 2482 2640 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 2483 echo "configure:2 484: checking whether ln -s works" >&52641 echo "configure:2642: checking whether ln -s works" >&5 2484 2642 if eval "test \"`echo '$''{'gcc_cv_prog_LN_S'+set}'`\" = set"; then 2485 2643 echo $ac_n "(cached) $ac_c" 1>&6 … … 2515 2673 set dummy ranlib; ac_word=$2 2516 2674 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 2517 echo "configure:2 518: checking for $ac_word" >&52675 echo "configure:2676: checking for $ac_word" >&5 2518 2676 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 2519 2677 echo $ac_n "(cached) $ac_c" 1>&6 … … 2554 2712 # ./install, which can be erroneously created by make from ./install.sh. 2555 2713 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 2556 echo "configure:2 557: checking for a BSD compatible install" >&52714 echo "configure:2715: checking for a BSD compatible install" >&5 2557 2715 if test -z "$INSTALL"; then 2558 2716 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 2605 2763 2606 2764 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2607 echo "configure:2 608: checking for ANSI C header files" >&52765 echo "configure:2766: checking for ANSI C header files" >&5 2608 2766 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2609 2767 echo $ac_n "(cached) $ac_c" 1>&6 … … 2611 2769 cat > conftest.$ac_ext <<EOF 2612 2770 #include <sys/types.h> 2613 #line 2 614"configure"2771 #line 2772 "configure" 2614 2772 #include "confdefs.h" 2615 2773 #include <stdlib.h> … … 2619 2777 EOF 2620 2778 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2621 { (eval echo configure:2 622: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2779 { (eval echo configure:2780: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2622 2780 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2623 2781 if test -z "$ac_err"; then … … 2636 2794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2637 2795 cat > conftest.$ac_ext <<EOF 2638 #line 2 639"configure"2796 #line 2797 "configure" 2639 2797 #include "confdefs.h" 2640 2798 #include <string.h> … … 2654 2812 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2655 2813 cat > conftest.$ac_ext <<EOF 2656 #line 2 657"configure"2814 #line 2815 "configure" 2657 2815 #include "confdefs.h" 2658 2816 #include <stdlib.h> … … 2675 2833 else 2676 2834 cat > conftest.$ac_ext <<EOF 2677 #line 2 678"configure"2835 #line 2836 "configure" 2678 2836 #include "confdefs.h" 2679 2837 #include <ctype.h> … … 2686 2844 2687 2845 EOF 2688 if { (eval echo configure:2 689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2846 if { (eval echo configure:2847: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2689 2847 then 2690 2848 : … … 2710 2868 2711 2869 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2712 echo "configure:2 713: checking whether time.h and sys/time.h may both be included" >&52870 echo "configure:2871: checking whether time.h and sys/time.h may both be included" >&5 2713 2871 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2714 2872 echo $ac_n "(cached) $ac_c" 1>&6 2715 2873 else 2716 2874 cat > conftest.$ac_ext <<EOF 2717 #line 2 718"configure"2875 #line 2876 "configure" 2718 2876 #include "confdefs.h" 2719 2877 #include <sys/types.h> … … 2724 2882 ; return 0; } 2725 2883 EOF 2726 if { (eval echo configure:2 727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2884 if { (eval echo configure:2885: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2727 2885 rm -rf conftest* 2728 2886 ac_cv_header_time=yes … … 2745 2903 2746 2904 echo $ac_n "checking for working stdbool.h""... $ac_c" 1>&6 2747 echo "configure:2 748: checking for working stdbool.h" >&52905 echo "configure:2906: checking for working stdbool.h" >&5 2748 2906 if eval "test \"`echo '$''{'ac_cv_header_stdbool_h'+set}'`\" = set"; then 2749 2907 echo $ac_n "(cached) $ac_c" 1>&6 2750 2908 else 2751 2909 cat > conftest.$ac_ext <<EOF 2752 #line 2 753"configure"2910 #line 2911 "configure" 2753 2911 #include "confdefs.h" 2754 2912 #include <stdbool.h> … … 2757 2915 ; return 0; } 2758 2916 EOF 2759 if { (eval echo configure:2 760: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2917 if { (eval echo configure:2918: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2760 2918 rm -rf conftest* 2761 2919 ac_cv_header_stdbool_h=yes … … 2778 2936 2779 2937 echo $ac_n "checking whether string.h and strings.h may both be included""... $ac_c" 1>&6 2780 echo "configure:2 781: checking whether string.h and strings.h may both be included" >&52938 echo "configure:2939: checking whether string.h and strings.h may both be included" >&5 2781 2939 if eval "test \"`echo '$''{'gcc_cv_header_string'+set}'`\" = set"; then 2782 2940 echo $ac_n "(cached) $ac_c" 1>&6 2783 2941 else 2784 2942 cat > conftest.$ac_ext <<EOF 2785 #line 2 786"configure"2943 #line 2944 "configure" 2786 2944 #include "confdefs.h" 2787 2945 #include <string.h> … … 2791 2949 ; return 0; } 2792 2950 EOF 2793 if { (eval echo configure:2 794: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2951 if { (eval echo configure:2952: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2794 2952 rm -rf conftest* 2795 2953 gcc_cv_header_string=yes … … 2812 2970 2813 2971 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 2814 echo "configure:2 815: checking for sys/wait.h that is POSIX.1 compatible" >&52972 echo "configure:2973: checking for sys/wait.h that is POSIX.1 compatible" >&5 2815 2973 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 2816 2974 echo $ac_n "(cached) $ac_c" 1>&6 2817 2975 else 2818 2976 cat > conftest.$ac_ext <<EOF 2819 #line 2 820"configure"2977 #line 2978 "configure" 2820 2978 #include "confdefs.h" 2821 2979 #include <sys/types.h> … … 2833 2991 ; return 0; } 2834 2992 EOF 2835 if { (eval echo configure:2 836: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2993 if { (eval echo configure:2994: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2836 2994 rm -rf conftest* 2837 2995 ac_cv_header_sys_wait_h=yes … … 2854 3012 2855 3013 for ac_hdr in limits.h stddef.h string.h strings.h stdlib.h time.h \ 2856 fcntl.h unistd.h sys/file.h sys/time.h \3014 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \ 2857 3015 sys/resource.h sys/param.h sys/times.h sys/stat.h \ 2858 3016 direct.h malloc.h langinfo.h … … 2860 3018 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2861 3019 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2862 echo "configure: 2863: checking for $ac_hdr" >&53020 echo "configure:3021: checking for $ac_hdr" >&5 2863 3021 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2864 3022 echo $ac_n "(cached) $ac_c" 1>&6 … … 2866 3024 cat > conftest.$ac_ext <<EOF 2867 3025 #include <sys/types.h> 2868 #line 2869"configure"3026 #line 3027 "configure" 2869 3027 #include "confdefs.h" 2870 3028 #include <$ac_hdr> 2871 3029 EOF 2872 3030 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2873 { (eval echo configure: 2874: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3031 { (eval echo configure:3032: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2874 3032 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2875 3033 if test -z "$ac_err"; then … … 2901 3059 ac_safe=`echo "thread.h" | sed 'y%./+-%__p_%'` 2902 3060 echo $ac_n "checking for thread.h""... $ac_c" 1>&6 2903 echo "configure: 2904: checking for thread.h" >&53061 echo "configure:3062: checking for thread.h" >&5 2904 3062 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2905 3063 echo $ac_n "(cached) $ac_c" 1>&6 … … 2907 3065 cat > conftest.$ac_ext <<EOF 2908 3066 #include <sys/types.h> 2909 #line 2910"configure"3067 #line 3068 "configure" 2910 3068 #include "confdefs.h" 2911 3069 #include <thread.h> 2912 3070 EOF 2913 3071 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2914 { (eval echo configure: 2915: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3072 { (eval echo configure:3073: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2915 3073 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2916 3074 if test -z "$ac_err"; then … … 2936 3094 ac_safe=`echo "pthread.h" | sed 'y%./+-%__p_%'` 2937 3095 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6 2938 echo "configure: 2939: checking for pthread.h" >&53096 echo "configure:3097: checking for pthread.h" >&5 2939 3097 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2940 3098 echo $ac_n "(cached) $ac_c" 1>&6 … … 2942 3100 cat > conftest.$ac_ext <<EOF 2943 3101 #include <sys/types.h> 2944 #line 2945"configure"3102 #line 3103 "configure" 2945 3103 #include "confdefs.h" 2946 3104 #include <pthread.h> 2947 3105 EOF 2948 3106 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2949 { (eval echo configure: 2950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3107 { (eval echo configure:3108: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2950 3108 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2951 3109 if test -z "$ac_err"; then … … 2972 3130 # These tests can't be done till we know if we have limits.h. 2973 3131 echo $ac_n "checking for CHAR_BIT""... $ac_c" 1>&6 2974 echo "configure: 2975: checking for CHAR_BIT" >&53132 echo "configure:3133: checking for CHAR_BIT" >&5 2975 3133 if eval "test \"`echo '$''{'gcc_cv_decl_char_bit'+set}'`\" = set"; then 2976 3134 echo $ac_n "(cached) $ac_c" 1>&6 2977 3135 else 2978 3136 cat > conftest.$ac_ext <<EOF 2979 #line 2980"configure"3137 #line 3138 "configure" 2980 3138 #include "confdefs.h" 2981 3139 #ifdef HAVE_LIMITS_H … … 3002 3160 if test $gcc_cv_decl_char_bit = no; then 3003 3161 echo $ac_n "checking number of bits in a byte""... $ac_c" 1>&6 3004 echo "configure:3 005: checking number of bits in a byte" >&53162 echo "configure:3163: checking number of bits in a byte" >&5 3005 3163 if eval "test \"`echo '$''{'gcc_cv_c_nbby'+set}'`\" = set"; then 3006 3164 echo $ac_n "(cached) $ac_c" 1>&6 … … 3010 3168 while test $i -lt 65; do 3011 3169 cat > conftest.$ac_ext <<EOF 3012 #line 3 013"configure"3170 #line 3171 "configure" 3013 3171 #include "confdefs.h" 3014 3172 … … 3020 3178 ; return 0; } 3021 3179 EOF 3022 if { (eval echo configure:3 023: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3180 if { (eval echo configure:3181: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3023 3181 rm -rf conftest* 3024 3182 gcc_cv_c_nbby=$i; break … … 3045 3203 fi 3046 3204 echo $ac_n "checking byte ordering""... $ac_c" 1>&6 3047 echo "configure:3 048: checking byte ordering" >&53205 echo "configure:3206: checking byte ordering" >&5 3048 3206 if eval "test \"`echo '$''{'ac_cv_c_compile_endian'+set}'`\" = set"; then 3049 3207 echo $ac_n "(cached) $ac_c" 1>&6 … … 3059 3217 3060 3218 cat > conftest.$ac_ext <<EOF 3061 #line 3 062"configure"3219 #line 3220 "configure" 3062 3220 #include "confdefs.h" 3063 3221 … … 3079 3237 }; 3080 3238 EOF 3081 if { (eval echo configure:3 082: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3239 if { (eval echo configure:3240: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3082 3240 od -c conftest.o | 3083 3241 sed 's/^[0-7]*[ ]*/ / … … 3118 3276 3119 3277 echo $ac_n "checking floating point format""... $ac_c" 1>&6 3120 echo "configure:3 121: checking floating point format" >&53278 echo "configure:3279: checking floating point format" >&5 3121 3279 if eval "test \"`echo '$''{'ac_cv_c_float_format'+set}'`\" = set"; then 3122 3280 echo $ac_n "(cached) $ac_c" 1>&6 … … 3131 3289 3132 3290 cat > conftest.$ac_ext <<EOF 3133 #line 3 134"configure"3291 #line 3292 "configure" 3134 3292 #include "confdefs.h" 3135 3293 /* This will not work unless sizeof(double) == 8. */ … … 3153 3311 }; 3154 3312 EOF 3155 if { (eval echo configure:3 156: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3313 if { (eval echo configure:3314: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3156 3314 od -c conftest.o | 3157 3315 sed 's/^[0-7]*[ ]*/ / … … 3242 3400 set dummy mktemp; ac_word=$2 3243 3401 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3244 echo "configure:3 245: checking for $ac_word" >&53402 echo "configure:3403: checking for $ac_word" >&5 3245 3403 if eval "test \"`echo '$''{'ac_cv_prog_have_mktemp_command'+set}'`\" = set"; then 3246 3404 echo $ac_n "(cached) $ac_c" 1>&6 … … 3282 3440 set dummy makeinfo; ac_word=$2 3283 3441 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3284 echo "configure:3 285: checking for $ac_word" >&53442 echo "configure:3443: checking for $ac_word" >&5 3285 3443 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 3286 3444 echo $ac_n "(cached) $ac_c" 1>&6 … … 3312 3470 # Found it, now check the version. 3313 3471 echo $ac_n "checking for modern makeinfo""... $ac_c" 1>&6 3314 echo "configure:3 315: checking for modern makeinfo" >&53472 echo "configure:3473: checking for modern makeinfo" >&5 3315 3473 if eval "test \"`echo '$''{'gcc_cv_prog_makeinfo_modern'+set}'`\" = set"; then 3316 3474 echo $ac_n "(cached) $ac_c" 1>&6 … … 3318 3476 ac_prog_version=`$MAKEINFO --version 2>&1 | 3319 3477 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 3320 echo "configure:3 321: version of makeinfo is $ac_prog_version" >&53478 echo "configure:3479: version of makeinfo is $ac_prog_version" >&5 3321 3479 case $ac_prog_version in 3322 3480 '') gcc_cv_prog_makeinfo_modern=no;; 3323 4.[ 1-9]*)3481 4.[2-9]*) 3324 3482 gcc_cv_prog_makeinfo_modern=yes;; 3325 3483 *) gcc_cv_prog_makeinfo_modern=no;; … … 3346 3504 # Is pod2man recent enough to regenerate manpages? 3347 3505 echo $ac_n "checking for recent Pod::Man""... $ac_c" 1>&6 3348 echo "configure:3 349: checking for recent Pod::Man" >&53506 echo "configure:3507: checking for recent Pod::Man" >&5 3349 3507 if (perl -e 'use 1.10 Pod::Man') >/dev/null 2>&1; then 3350 3508 echo "$ac_t""yes" 1>&6 … … 3362 3520 set dummy flex; ac_word=$2 3363 3521 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3364 echo "configure:3 365: checking for $ac_word" >&53522 echo "configure:3523: checking for $ac_word" >&5 3365 3523 if eval "test \"`echo '$''{'ac_cv_prog_FLEX'+set}'`\" = set"; then 3366 3524 echo $ac_n "(cached) $ac_c" 1>&6 … … 3380 3538 done 3381 3539 IFS="$ac_save_ifs" 3382 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX=" false"3540 test -z "$ac_cv_prog_FLEX" && ac_cv_prog_FLEX="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing flex" 3383 3541 fi 3384 3542 fi … … 3400 3558 set dummy bison; ac_word=$2 3401 3559 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 3402 echo "configure:3 403: checking for $ac_word" >&53560 echo "configure:3561: checking for $ac_word" >&5 3403 3561 if eval "test \"`echo '$''{'ac_cv_prog_BISON'+set}'`\" = set"; then 3404 3562 echo $ac_n "(cached) $ac_c" 1>&6 … … 3418 3576 done 3419 3577 IFS="$ac_save_ifs" 3420 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON=" false"3578 test -z "$ac_cv_prog_BISON" && ac_cv_prog_BISON="${CONFIG_SHELL-/bin/sh} ${srcdir}/../missing bison" 3421 3579 fi 3422 3580 fi … … 3433 3591 # We may need a special search path to get them linked. 3434 3592 echo $ac_n "checking for collect2 libraries""... $ac_c" 1>&6 3435 echo "configure:3 436: checking for collect2 libraries" >&53593 echo "configure:3594: checking for collect2 libraries" >&5 3436 3594 if eval "test \"`echo '$''{'gcc_cv_collect2_libs'+set}'`\" = set"; then 3437 3595 echo $ac_n "(cached) $ac_c" 1>&6 … … 3444 3602 LIBS="$libs" 3445 3603 cat > conftest.$ac_ext <<EOF 3446 #line 3 447"configure"3604 #line 3605 "configure" 3447 3605 #include "confdefs.h" 3448 3606 /* Override any gcc2 internal prototype to avoid an error. */ … … 3455 3613 ; return 0; } 3456 3614 EOF 3457 if { (eval echo configure:3 458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3615 if { (eval echo configure:3616: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3458 3616 rm -rf conftest* 3459 3617 gcc_cv_collect2_libs="$libs"; break … … 3481 3639 3482 3640 echo $ac_n "checking for library containing exc_resume""... $ac_c" 1>&6 3483 echo "configure:3 484: checking for library containing exc_resume" >&53641 echo "configure:3642: checking for library containing exc_resume" >&5 3484 3642 if eval "test \"`echo '$''{'ac_cv_search_exc_resume'+set}'`\" = set"; then 3485 3643 echo $ac_n "(cached) $ac_c" 1>&6 … … 3488 3646 ac_cv_search_exc_resume="no" 3489 3647 cat > conftest.$ac_ext <<EOF 3490 #line 3 491"configure"3648 #line 3649 "configure" 3491 3649 #include "confdefs.h" 3492 3650 /* Override any gcc2 internal prototype to avoid an error. */ … … 3499 3657 ; return 0; } 3500 3658 EOF 3501 if { (eval echo configure:3 502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3502 3660 rm -rf conftest* 3503 3661 ac_cv_search_exc_resume="none required" … … 3510 3668 LIBS="-l$i $ac_func_search_save_LIBS" 3511 3669 cat > conftest.$ac_ext <<EOF 3512 #line 3 513"configure"3670 #line 3671 "configure" 3513 3671 #include "confdefs.h" 3514 3672 /* Override any gcc2 internal prototype to avoid an error. */ … … 3521 3679 ; return 0; } 3522 3680 EOF 3523 if { (eval echo configure:3 524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3681 if { (eval echo configure:3682: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3524 3682 rm -rf conftest* 3525 3683 ac_cv_search_exc_resume="-l$i" … … 3545 3703 3546 3704 3705 # Some systems put ldexp and frexp in libm instead of libc; assume 3706 # they're both in the same place. jcf-dump needs them. 3707 save_LIBS="$LIBS" 3708 LIBS= 3709 3710 echo $ac_n "checking for library containing ldexp""... $ac_c" 1>&6 3711 echo "configure:3712: checking for library containing ldexp" >&5 3712 if eval "test \"`echo '$''{'ac_cv_search_ldexp'+set}'`\" = set"; then 3713 echo $ac_n "(cached) $ac_c" 1>&6 3714 else 3715 ac_func_search_save_LIBS="$LIBS" 3716 ac_cv_search_ldexp="no" 3717 cat > conftest.$ac_ext <<EOF 3718 #line 3719 "configure" 3719 #include "confdefs.h" 3720 /* Override any gcc2 internal prototype to avoid an error. */ 3721 /* We use char because int might match the return type of a gcc2 3722 builtin and then its argument prototype would still apply. */ 3723 char ldexp(); 3724 3725 int main() { 3726 ldexp() 3727 ; return 0; } 3728 EOF 3729 if { (eval echo configure:3730: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3730 rm -rf conftest* 3731 ac_cv_search_ldexp="none required" 3732 else 3733 echo "configure: failed program was:" >&5 3734 cat conftest.$ac_ext >&5 3735 fi 3736 rm -f conftest* 3737 test "$ac_cv_search_ldexp" = "no" && for i in m; do 3738 LIBS="-l$i $ac_func_search_save_LIBS" 3739 cat > conftest.$ac_ext <<EOF 3740 #line 3741 "configure" 3741 #include "confdefs.h" 3742 /* Override any gcc2 internal prototype to avoid an error. */ 3743 /* We use char because int might match the return type of a gcc2 3744 builtin and then its argument prototype would still apply. */ 3745 char ldexp(); 3746 3747 int main() { 3748 ldexp() 3749 ; return 0; } 3750 EOF 3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3752 rm -rf conftest* 3753 ac_cv_search_ldexp="-l$i" 3754 break 3755 else 3756 echo "configure: failed program was:" >&5 3757 cat conftest.$ac_ext >&5 3758 fi 3759 rm -f conftest* 3760 done 3761 LIBS="$ac_func_search_save_LIBS" 3762 fi 3763 3764 echo "$ac_t""$ac_cv_search_ldexp" 1>&6 3765 if test "$ac_cv_search_ldexp" != "no"; then 3766 test "$ac_cv_search_ldexp" = "none required" || LIBS="$ac_cv_search_ldexp $LIBS" 3767 3768 else : 3769 3770 fi 3771 LDEXP_LIB="$LIBS" 3772 LIBS="$save_LIBS" 3773 3774 3547 3775 # See if the stage1 system preprocessor understands the ANSI C 3548 3776 # preprocessor stringification operator. (Used by symcat.h.) … … 3550 3778 3551 3779 echo $ac_n "checking for preprocessor stringizing operator""... $ac_c" 1>&6 3552 echo "configure:3 553: checking for preprocessor stringizing operator" >&53780 echo "configure:3781: checking for preprocessor stringizing operator" >&5 3553 3781 if eval "test \"`echo '$''{'ac_cv_c_stringize'+set}'`\" = set"; then 3554 3782 echo $ac_n "(cached) $ac_c" 1>&6 3555 3783 else 3556 3784 cat > conftest.$ac_ext <<EOF 3557 #line 3 558"configure"3785 #line 3786 "configure" 3558 3786 #include "confdefs.h" 3559 3787 … … 3588 3816 # doesn't clash with <sys/types.h>, and declares intmax_t. 3589 3817 echo $ac_n "checking for inttypes.h""... $ac_c" 1>&6 3590 echo "configure:3 591: checking for inttypes.h" >&53818 echo "configure:3819: checking for inttypes.h" >&5 3591 3819 if eval "test \"`echo '$''{'gcc_cv_header_inttypes_h'+set}'`\" = set"; then 3592 3820 echo $ac_n "(cached) $ac_c" 1>&6 3593 3821 else 3594 3822 cat > conftest.$ac_ext <<EOF 3595 #line 3 596"configure"3823 #line 3824 "configure" 3596 3824 #include "confdefs.h" 3597 3825 #include <sys/types.h> … … 3601 3829 ; return 0; } 3602 3830 EOF 3603 if { (eval echo configure:3 604: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3831 if { (eval echo configure:3832: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3604 3832 rm -rf conftest* 3605 3833 gcc_cv_header_inttypes_h=yes … … 3624 3852 for ac_func in times clock dup2 kill getrlimit setrlimit atoll atoq \ 3625 3853 sysconf strsignal putc_unlocked fputc_unlocked fputs_unlocked \ 3626 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat 3854 fwrite_unlocked fprintf_unlocked getrusage nl_langinfo lstat \ 3855 scandir alphasort gettimeofday mmap 3627 3856 do 3628 3857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3629 echo "configure:3 630: checking for $ac_func" >&53858 echo "configure:3859: checking for $ac_func" >&5 3630 3859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3631 3860 echo $ac_n "(cached) $ac_c" 1>&6 3632 3861 else 3633 3862 cat > conftest.$ac_ext <<EOF 3634 #line 3 635"configure"3863 #line 3864 "configure" 3635 3864 #include "confdefs.h" 3636 3865 /* System header to define __stub macros and hopefully few prototypes, … … 3655 3884 ; return 0; } 3656 3885 EOF 3657 if { (eval echo configure:3 658: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3886 if { (eval echo configure:3887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3658 3887 rm -rf conftest* 3659 3888 eval "ac_cv_func_$ac_func=yes" … … 3681 3910 3682 3911 echo $ac_n "checking for ssize_t""... $ac_c" 1>&6 3683 echo "configure:3 684: checking for ssize_t" >&53912 echo "configure:3913: checking for ssize_t" >&5 3684 3913 if eval "test \"`echo '$''{'ac_cv_type_ssize_t'+set}'`\" = set"; then 3685 3914 echo $ac_n "(cached) $ac_c" 1>&6 3686 3915 else 3687 3916 cat > conftest.$ac_ext <<EOF 3688 #line 3 689"configure"3917 #line 3918 "configure" 3689 3918 #include "confdefs.h" 3690 3919 #include <sys/types.h> … … 3717 3946 # for the target system (int or gid_t). 3718 3947 echo $ac_n "checking for uid_t in sys/types.h""... $ac_c" 1>&6 3719 echo "configure:3 720: checking for uid_t in sys/types.h" >&53948 echo "configure:3949: checking for uid_t in sys/types.h" >&5 3720 3949 if eval "test \"`echo '$''{'ac_cv_type_uid_t'+set}'`\" = set"; then 3721 3950 echo $ac_n "(cached) $ac_c" 1>&6 3722 3951 else 3723 3952 cat > conftest.$ac_ext <<EOF 3724 #line 3 725"configure"3953 #line 3954 "configure" 3725 3954 #include "confdefs.h" 3726 3955 #include <sys/types.h> … … 3751 3980 3752 3981 echo $ac_n "checking type of array argument to getgroups""... $ac_c" 1>&6 3753 echo "configure:3 754: checking type of array argument to getgroups" >&53982 echo "configure:3983: checking type of array argument to getgroups" >&5 3754 3983 if eval "test \"`echo '$''{'ac_cv_type_getgroups'+set}'`\" = set"; then 3755 3984 echo $ac_n "(cached) $ac_c" 1>&6 … … 3759 3988 else 3760 3989 cat > conftest.$ac_ext <<EOF 3761 #line 3 762"configure"3990 #line 3991 "configure" 3762 3991 #include "confdefs.h" 3763 3992 … … 3784 4013 3785 4014 EOF 3786 if { (eval echo configure: 3787: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4015 if { (eval echo configure:4016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3787 4016 then 3788 4017 ac_cv_type_getgroups=gid_t … … 3798 4027 if test $ac_cv_type_getgroups = cross; then 3799 4028 cat > conftest.$ac_ext <<EOF 3800 #line 3801"configure"4029 #line 4030 "configure" 3801 4030 #include "confdefs.h" 3802 4031 #include <unistd.h> … … 3839 4068 3840 4069 echo $ac_n "checking whether the printf functions support %p""... $ac_c" 1>&6 3841 echo "configure: 3842: checking whether the printf functions support %p" >&54070 echo "configure:4071: checking whether the printf functions support %p" >&5 3842 4071 if eval "test \"`echo '$''{'gcc_cv_func_printf_ptr'+set}'`\" = set"; then 3843 4072 echo $ac_n "(cached) $ac_c" 1>&6 … … 3847 4076 else 3848 4077 cat > conftest.$ac_ext <<EOF 3849 #line 3850"configure"4078 #line 4079 "configure" 3850 4079 #include "confdefs.h" 3851 4080 #include <stdio.h> … … 3860 4089 } 3861 4090 EOF 3862 if { (eval echo configure: 3863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4091 if { (eval echo configure:4092: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3863 4092 then 3864 4093 gcc_cv_func_printf_ptr=yes … … 3879 4108 cat >> confdefs.h <<\EOF 3880 4109 #define HAVE_PRINTF_PTR 1 4110 EOF 4111 4112 fi 4113 4114 if test $ac_cv_header_sys_mman_h != yes \ 4115 || test $ac_cv_func_mmap != yes; then 4116 gcc_cv_func_mmap_file=no 4117 gcc_cv_func_mmap_dev_zero=no 4118 gcc_cv_func_mmap_anon=no 4119 else 4120 echo $ac_n "checking whether read-only mmap of a plain file works""... $ac_c" 1>&6 4121 echo "configure:4122: checking whether read-only mmap of a plain file works" >&5 4122 if eval "test \"`echo '$''{'gcc_cv_func_mmap_file'+set}'`\" = set"; then 4123 echo $ac_n "(cached) $ac_c" 1>&6 4124 else 4125 # Add a system to this blacklist if 4126 # mmap(0, stat_size, PROT_READ, MAP_PRIVATE, fd, 0) doesn't return a 4127 # memory area containing the same data that you'd get if you applied 4128 # read() to the same fd. The only system known to have a problem here 4129 # is VMS, where text files have record structure. 4130 case "$host_os" in 4131 vms*) 4132 gcc_cv_func_mmap_file=no ;; 4133 *) 4134 gcc_cv_func_mmap_file=yes;; 4135 esac 4136 fi 4137 4138 echo "$ac_t""$gcc_cv_func_mmap_file" 1>&6 4139 echo $ac_n "checking whether mmap from /dev/zero works""... $ac_c" 1>&6 4140 echo "configure:4141: checking whether mmap from /dev/zero works" >&5 4141 if eval "test \"`echo '$''{'gcc_cv_func_mmap_dev_zero'+set}'`\" = set"; then 4142 echo $ac_n "(cached) $ac_c" 1>&6 4143 else 4144 # Add a system to this blacklist if it has mmap() but /dev/zero 4145 # does not exist, or if mmapping /dev/zero does not give anonymous 4146 # zeroed pages with both the following properties: 4147 # 1. If you map N consecutive pages in with one call, and then 4148 # unmap any subset of those pages, the pages that were not 4149 # explicitly unmapped remain accessible. 4150 # 2. If you map two adjacent blocks of memory and then unmap them 4151 # both at once, they must both go away. 4152 # Systems known to be in this category are Windows (all variants), 4153 # VMS, and Darwin. 4154 case "$host_os" in 4155 vms* | cygwin* | pe | mingw* | darwin* | ultrix* | hpux10* | hpux11.00) 4156 gcc_cv_func_mmap_dev_zero=no ;; 4157 *) 4158 gcc_cv_func_mmap_dev_zero=yes;; 4159 esac 4160 fi 4161 4162 echo "$ac_t""$gcc_cv_func_mmap_dev_zero" 1>&6 4163 4164 # Unlike /dev/zero, the MAP_ANON(YMOUS) defines can be probed for. 4165 echo $ac_n "checking for MAP_ANON(YMOUS)""... $ac_c" 1>&6 4166 echo "configure:4167: checking for MAP_ANON(YMOUS)" >&5 4167 if eval "test \"`echo '$''{'gcc_cv_decl_map_anon'+set}'`\" = set"; then 4168 echo $ac_n "(cached) $ac_c" 1>&6 4169 else 4170 cat > conftest.$ac_ext <<EOF 4171 #line 4172 "configure" 4172 #include "confdefs.h" 4173 #include <sys/types.h> 4174 #include <sys/mman.h> 4175 #include <unistd.h> 4176 4177 #ifndef MAP_ANONYMOUS 4178 #define MAP_ANONYMOUS MAP_ANON 4179 #endif 4180 4181 int main() { 4182 int n = MAP_ANONYMOUS; 4183 ; return 0; } 4184 EOF 4185 if { (eval echo configure:4186: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4186 rm -rf conftest* 4187 gcc_cv_decl_map_anon=yes 4188 else 4189 echo "configure: failed program was:" >&5 4190 cat conftest.$ac_ext >&5 4191 rm -rf conftest* 4192 gcc_cv_decl_map_anon=no 4193 fi 4194 rm -f conftest* 4195 fi 4196 4197 echo "$ac_t""$gcc_cv_decl_map_anon" 1>&6 4198 4199 if test $gcc_cv_decl_map_anon = no; then 4200 gcc_cv_func_mmap_anon=no 4201 else 4202 echo $ac_n "checking whether mmap with MAP_ANON(YMOUS) works""... $ac_c" 1>&6 4203 echo "configure:4204: checking whether mmap with MAP_ANON(YMOUS) works" >&5 4204 if eval "test \"`echo '$''{'gcc_cv_func_mmap_anon'+set}'`\" = set"; then 4205 echo $ac_n "(cached) $ac_c" 1>&6 4206 else 4207 # Add a system to this blacklist if it has mmap() and MAP_ANON or 4208 # MAP_ANONYMOUS, but using mmap(..., MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) 4209 # doesn't give anonymous zeroed pages with the same properties listed 4210 # above for use of /dev/zero. 4211 # Systems known to be in this category are Windows, VMS, and SCO Unix. 4212 case "$host_os" in 4213 vms* | cygwin* | pe | mingw* | sco* | udk* ) 4214 gcc_cv_func_mmap_anon=no ;; 4215 *) 4216 gcc_cv_func_mmap_anon=yes;; 4217 esac 4218 fi 4219 4220 echo "$ac_t""$gcc_cv_func_mmap_anon" 1>&6 4221 fi 4222 fi 4223 4224 if test $gcc_cv_func_mmap_file = yes; then 4225 cat >> confdefs.h <<\EOF 4226 #define HAVE_MMAP_FILE 1 4227 EOF 4228 4229 fi 4230 if test $gcc_cv_func_mmap_dev_zero = yes; then 4231 cat >> confdefs.h <<\EOF 4232 #define HAVE_MMAP_DEV_ZERO 1 4233 EOF 4234 4235 fi 4236 if test $gcc_cv_func_mmap_anon = yes; then 4237 cat >> confdefs.h <<\EOF 4238 #define HAVE_MMAP_ANON 1 3881 4239 EOF 3882 4240 … … 3898 4256 esac 3899 4257 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 3900 echo "configure: 3901: checking for pid_t" >&54258 echo "configure:4259: checking for pid_t" >&5 3901 4259 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 3902 4260 echo $ac_n "(cached) $ac_c" 1>&6 3903 4261 else 3904 4262 cat > conftest.$ac_ext <<EOF 3905 #line 3906"configure"4263 #line 4264 "configure" 3906 4264 #include "confdefs.h" 3907 4265 #include <sys/types.h> … … 3932 4290 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 3933 4291 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 3934 echo "configure: 3935: checking for vfork.h" >&54292 echo "configure:4293: checking for vfork.h" >&5 3935 4293 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3936 4294 echo $ac_n "(cached) $ac_c" 1>&6 … … 3938 4296 cat > conftest.$ac_ext <<EOF 3939 4297 #include <sys/types.h> 3940 #line 3941"configure"4298 #line 4299 "configure" 3941 4299 #include "confdefs.h" 3942 4300 #include <vfork.h> 3943 4301 EOF 3944 4302 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3945 { (eval echo configure: 3946: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4303 { (eval echo configure:4304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3946 4304 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3947 4305 if test -z "$ac_err"; then … … 3968 4326 3969 4327 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 3970 echo "configure: 3971: checking for working vfork" >&54328 echo "configure:4329: checking for working vfork" >&5 3971 4329 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 3972 4330 echo $ac_n "(cached) $ac_c" 1>&6 … … 3974 4332 if test "$cross_compiling" = yes; then 3975 4333 echo $ac_n "checking for vfork""... $ac_c" 1>&6 3976 echo "configure: 3977: checking for vfork" >&54334 echo "configure:4335: checking for vfork" >&5 3977 4335 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 3978 4336 echo $ac_n "(cached) $ac_c" 1>&6 3979 4337 else 3980 4338 cat > conftest.$ac_ext <<EOF 3981 #line 3982"configure"4339 #line 4340 "configure" 3982 4340 #include "confdefs.h" 3983 4341 /* System header to define __stub macros and hopefully few prototypes, … … 4002 4360 ; return 0; } 4003 4361 EOF 4004 if { (eval echo configure:4 005: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4362 if { (eval echo configure:4363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4005 4363 rm -rf conftest* 4006 4364 eval "ac_cv_func_vfork=yes" … … 4024 4382 else 4025 4383 cat > conftest.$ac_ext <<EOF 4026 #line 4 027"configure"4384 #line 4385 "configure" 4027 4385 #include "confdefs.h" 4028 4386 /* Thanks to Paul Eggert for this test. */ … … 4119 4477 } 4120 4478 EOF 4121 if { (eval echo configure:4 122: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4479 if { (eval echo configure:4480: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 4122 4480 then 4123 4481 ac_cv_func_vfork_works=yes … … 4137 4495 cat >> confdefs.h <<\EOF 4138 4496 #define vfork fork 4139 EOF4140 4141 fi4142 4143 for ac_func in getpagesize4144 do4145 echo $ac_n "checking for $ac_func""... $ac_c" 1>&64146 echo "configure:4147: checking for $ac_func" >&54147 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then4148 echo $ac_n "(cached) $ac_c" 1>&64149 else4150 cat > conftest.$ac_ext <<EOF4151 #line 4152 "configure"4152 #include "confdefs.h"4153 /* System header to define __stub macros and hopefully few prototypes,4154 which can conflict with char $ac_func(); below. */4155 #include <assert.h>4156 /* Override any gcc2 internal prototype to avoid an error. */4157 /* We use char because int might match the return type of a gcc24158 builtin and then its argument prototype would still apply. */4159 char $ac_func();4160 4161 int main() {4162 4163 /* The GNU C library defines this for functions which it implements4164 to always fail with ENOSYS. Some functions are actually named4165 something starting with __ and the normal name is an alias. */4166 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)4167 choke me4168 #else4169 $ac_func();4170 #endif4171 4172 ; return 0; }4173 EOF4174 if { (eval echo configure:4175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4175 rm -rf conftest*4176 eval "ac_cv_func_$ac_func=yes"4177 else4178 echo "configure: failed program was:" >&54179 cat conftest.$ac_ext >&54180 rm -rf conftest*4181 eval "ac_cv_func_$ac_func=no"4182 fi4183 rm -f conftest*4184 fi4185 4186 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then4187 echo "$ac_t""yes" 1>&64188 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`4189 cat >> confdefs.h <<EOF4190 #define $ac_tr_func 14191 EOF4192 4193 else4194 echo "$ac_t""no" 1>&64195 fi4196 done4197 4198 # The test program for the next two tests is the same except for one4199 # set of ifdefs.4200 cat >ct-mmap.inc <<'EOF'4201 #include <sys/types.h>4202 #include <sys/mman.h>4203 #include <fcntl.h>4204 #include <signal.h>4205 #include <setjmp.h>4206 #include <stdio.h>4207 4208 #if !defined (MAP_ANONYMOUS) && defined (MAP_ANON)4209 # define MAP_ANONYMOUS MAP_ANON4210 #endif4211 4212 /* This mess was copied from the GNU getpagesize.h. */4213 #ifndef HAVE_GETPAGESIZE4214 # ifdef HAVE_UNISTD_H4215 # include <unistd.h>4216 # endif4217 4218 /* Assume that all systems that can run configure have sys/param.h. */4219 # ifndef HAVE_SYS_PARAM_H4220 # define HAVE_SYS_PARAM_H 14221 # endif4222 4223 # ifdef _SC_PAGESIZE4224 # define getpagesize() sysconf(_SC_PAGESIZE)4225 # else /* no _SC_PAGESIZE */4226 # ifdef HAVE_SYS_PARAM_H4227 # include <sys/param.h>4228 # ifdef EXEC_PAGESIZE4229 # define getpagesize() EXEC_PAGESIZE4230 # else /* no EXEC_PAGESIZE */4231 # ifdef NBPG4232 # define getpagesize() NBPG * CLSIZE4233 # ifndef CLSIZE4234 # define CLSIZE 14235 # endif /* no CLSIZE */4236 # else /* no NBPG */4237 # ifdef NBPC4238 # define getpagesize() NBPC4239 # else /* no NBPC */4240 # ifdef PAGESIZE4241 # define getpagesize() PAGESIZE4242 # endif /* PAGESIZE */4243 # endif /* no NBPC */4244 # endif /* no NBPG */4245 # endif /* no EXEC_PAGESIZE */4246 # else /* no HAVE_SYS_PARAM_H */4247 # define getpagesize() 8192 /* punt totally */4248 # endif /* no HAVE_SYS_PARAM_H */4249 # endif /* no _SC_PAGESIZE */4250 4251 #endif /* no HAVE_GETPAGESIZE */4252 4253 #ifndef MAP_FAILED4254 # define MAP_FAILED -14255 #endif4256 4257 #undef perror_exit4258 #define perror_exit(str, val) \4259 do { perror(str); exit(val); } while (0)4260 4261 /* Some versions of cygwin mmap require that munmap is called with the4262 same parameters as mmap. GCC expects that this is not the case.4263 Test for various forms of this problem. Warning - icky signal games. */4264 4265 static sigset_t unblock_sigsegv;4266 static jmp_buf r;4267 static size_t pg;4268 static int devzero;4269 4270 static char *4271 anonmap (size)4272 size_t size;4273 {4274 #ifdef USE_MAP_ANON4275 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,4276 MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);4277 #else4278 return (char *) mmap (0, size, PROT_READ|PROT_WRITE,4279 MAP_PRIVATE, devzero, 0);4280 #endif4281 }4282 4283 static void4284 sigsegv (unused)4285 int unused;4286 {4287 sigprocmask (SIG_UNBLOCK, &unblock_sigsegv, 0);4288 longjmp (r, 1);4289 }4290 4291 /* Basic functionality test. */4292 void4293 test_0 ()4294 {4295 char *x = anonmap (pg);4296 if (x == (char *) MAP_FAILED)4297 perror_exit("test 0 mmap", 2);4298 4299 *(int *)x += 1;4300 4301 if (munmap(x, pg) < 0)4302 perror_exit("test 0 munmap", 3);4303 }4304 4305 /* 1. If we map a 2-page region and unmap its second page, the first page4306 must remain. */4307 static void4308 test_1 ()4309 {4310 char *x = anonmap (pg * 2);4311 if (x == (char *)MAP_FAILED)4312 perror_exit ("test 1 mmap", 4);4313 4314 signal (SIGSEGV, sigsegv);4315 if (setjmp (r))4316 perror_exit ("test 1 fault", 5);4317 4318 x[0] = 1;4319 x[pg] = 1;4320 4321 if (munmap (x + pg, pg) < 0)4322 perror_exit ("test 1 munmap 1", 6);4323 x[0] = 2;4324 4325 if (setjmp (r) == 0)4326 {4327 x[pg] = 1;4328 perror_exit ("test 1 no fault", 7);4329 }4330 if (munmap (x, pg) < 0)4331 perror_exit ("test 1 munmap 2", 8);4332 }4333 4334 /* 2. If we map a 2-page region and unmap its first page, the second4335 page must remain. */4336 static void4337 test_2 ()4338 {4339 char *x = anonmap (pg * 2);4340 if (x == (char *)MAP_FAILED)4341 perror_exit ("test 2 mmap", 9);4342 4343 signal (SIGSEGV, sigsegv);4344 if (setjmp (r))4345 perror_exit ("test 2 fault", 10);4346 4347 x[0] = 1;4348 x[pg] = 1;4349 4350 if (munmap (x, pg) < 0)4351 perror_exit ("test 2 munmap 1", 11);4352 4353 x[pg] = 2;4354 4355 if (setjmp (r) == 0)4356 {4357 x[0] = 1;4358 perror_exit ("test 2 no fault", 12);4359 }4360 4361 if (munmap (x+pg, pg) < 0)4362 perror_exit ("test 2 munmap 2", 13);4363 }4364 4365 /* 3. If we map two adjacent 1-page regions and unmap them both with4366 one munmap, both must go away.4367 4368 Getting two adjacent 1-page regions with two mmap calls is slightly4369 tricky. All OS's tested skip over already-allocated blocks; therefore4370 we have been careful to unmap all allocated regions in previous tests.4371 HP/UX allocates pages backward in memory. No OS has yet been observed4372 to be so perverse as to leave unmapped space between consecutive calls4373 to mmap. */4374 4375 static void4376 test_3 ()4377 {4378 char *x, *y, *z;4379 4380 x = anonmap (pg);4381 if (x == (char *)MAP_FAILED)4382 perror_exit ("test 3 mmap 1", 14);4383 y = anonmap (pg);4384 if (y == (char *)MAP_FAILED)4385 perror_exit ("test 3 mmap 2", 15);4386 4387 if (y != x + pg)4388 {4389 if (y == x - pg)4390 z = y, y = x, x = z;4391 else4392 {4393 fprintf (stderr, "test 3 nonconsecutive pages - %lx, %lx\n",4394 (unsigned long)x, (unsigned long)y);4395 exit (16);4396 }4397 }4398 4399 signal (SIGSEGV, sigsegv);4400 if (setjmp (r))4401 perror_exit ("test 3 fault", 17);4402 4403 x[0] = 1;4404 y[0] = 1;4405 4406 if (munmap (x, pg*2) < 0)4407 perror_exit ("test 3 munmap", 18);4408 4409 if (setjmp (r) == 0)4410 {4411 x[0] = 1;4412 perror_exit ("test 3 no fault 1", 19);4413 }4414 4415 signal (SIGSEGV, sigsegv);4416 if (setjmp (r) == 0)4417 {4418 y[0] = 1;4419 perror_exit ("test 3 no fault 2", 20);4420 }4421 }4422 4423 int4424 main ()4425 {4426 sigemptyset (&unblock_sigsegv);4427 sigaddset (&unblock_sigsegv, SIGSEGV);4428 pg = getpagesize ();4429 #ifndef USE_MAP_ANON4430 devzero = open ("/dev/zero", O_RDWR);4431 if (devzero < 0)4432 perror_exit ("open /dev/zero", 1);4433 #endif4434 4435 test_0();4436 test_1();4437 test_2();4438 test_3();4439 4440 exit(0);4441 }4442 EOF4443 4444 echo $ac_n "checking for working mmap from /dev/zero""... $ac_c" 1>&64445 echo "configure:4446: checking for working mmap from /dev/zero" >&54446 if eval "test \"`echo '$''{'ac_cv_func_mmap_dev_zero'+set}'`\" = set"; then4447 echo $ac_n "(cached) $ac_c" 1>&64448 else4449 if test "$cross_compiling" = yes; then4450 # If this is not cygwin, and /dev/zero is a character device, it's probably4451 # safe to assume it works.4452 case "$host_os" in4453 cygwin* | win32 | pe | mingw* ) ac_cv_func_mmap_dev_zero=buggy ;;4454 * ) if test -c /dev/zero4455 then ac_cv_func_mmap_dev_zero=yes4456 else ac_cv_func_mmap_dev_zero=no4457 fi ;;4458 esac4459 else4460 cat > conftest.$ac_ext <<EOF4461 #line 4462 "configure"4462 #include "confdefs.h"4463 #include "ct-mmap.inc"4464 EOF4465 if { (eval echo configure:4466: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4466 then4467 ac_cv_func_mmap_dev_zero=yes4468 else4469 echo "configure: failed program was:" >&54470 cat conftest.$ac_ext >&54471 rm -fr conftest*4472 if test $? -lt 44473 then ac_cv_func_mmap_dev_zero=no4474 else ac_cv_func_mmap_dev_zero=buggy4475 fi4476 fi4477 rm -fr conftest*4478 fi4479 4480 4481 fi4482 4483 echo "$ac_t""$ac_cv_func_mmap_dev_zero" 1>&64484 if test $ac_cv_func_mmap_dev_zero = yes; then4485 cat >> confdefs.h <<\EOF4486 #define HAVE_MMAP_DEV_ZERO 14487 EOF4488 4489 fi4490 4491 echo $ac_n "checking for working mmap with MAP_ANON(YMOUS)""... $ac_c" 1>&64492 echo "configure:4493: checking for working mmap with MAP_ANON(YMOUS)" >&54493 if eval "test \"`echo '$''{'ac_cv_func_mmap_anon'+set}'`\" = set"; then4494 echo $ac_n "(cached) $ac_c" 1>&64495 else4496 if test "$cross_compiling" = yes; then4497 # Unlike /dev/zero, it is not safe to assume MAP_ANON(YMOUS) works4498 # just because it's there. Some SCO Un*xen define it but don't implement it.4499 ac_cv_func_mmap_anon=no4500 else4501 cat > conftest.$ac_ext <<EOF4502 #line 4503 "configure"4503 #include "confdefs.h"4504 #define USE_MAP_ANON4505 #include "ct-mmap.inc"4506 EOF4507 if { (eval echo configure:4508: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4508 then4509 ac_cv_func_mmap_anon=yes4510 else4511 echo "configure: failed program was:" >&54512 cat conftest.$ac_ext >&54513 rm -fr conftest*4514 if test $? -lt 44515 then ac_cv_func_mmap_anon=no4516 else ac_cv_func_mmap_anon=buggy4517 fi4518 fi4519 rm -fr conftest*4520 fi4521 4522 4523 fi4524 4525 echo "$ac_t""$ac_cv_func_mmap_anon" 1>&64526 if test $ac_cv_func_mmap_anon = yes; then4527 cat >> confdefs.h <<\EOF4528 #define HAVE_MMAP_ANON 14529 EOF4530 4531 fi4532 rm -f ct-mmap.inc4533 4534 echo $ac_n "checking for working mmap of a file""... $ac_c" 1>&64535 echo "configure:4536: checking for working mmap of a file" >&54536 if eval "test \"`echo '$''{'ac_cv_func_mmap_file'+set}'`\" = set"; then4537 echo $ac_n "(cached) $ac_c" 1>&64538 else4539 # Create a file one thousand bytes long.4540 for i in 1 2 3 4 5 6 7 8 9 04541 do for j in 1 2 3 4 5 6 7 8 9 04542 do echo $i $j xxxxx4543 done4544 done > conftestdata$$4545 4546 if test "$cross_compiling" = yes; then4547 ac_cv_func_mmap_file=no4548 else4549 cat > conftest.$ac_ext <<EOF4550 #line 4551 "configure"4551 #include "confdefs.h"4552 4553 /* Test by Zack Weinberg. Modified from MMAP_ANYWHERE test by4554 Richard Henderson and Alexandre Oliva.4555 Check whether read-only mmap of a plain file works. */4556 #include <sys/types.h>4557 #include <sys/stat.h>4558 #include <fcntl.h>4559 #include <sys/mman.h>4560 4561 int main()4562 {4563 char *x;4564 int fd;4565 struct stat st;4566 4567 fd = open("conftestdata$$", O_RDONLY);4568 if (fd < 0)4569 exit(1);4570 4571 if (fstat (fd, &st))4572 exit(2);4573 4574 x = (char*)mmap(0, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0);4575 if (x == (char *) -1)4576 exit(3);4577 4578 if (x[0] != '1' || x[1] != ' ' || x[2] != '1' || x[3] != ' ')4579 exit(4);4580 4581 if (munmap(x, st.st_size) < 0)4582 exit(5);4583 4584 exit(0);4585 }4586 EOF4587 if { (eval echo configure:4588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null4588 then4589 ac_cv_func_mmap_file=yes4590 else4591 echo "configure: failed program was:" >&54592 cat conftest.$ac_ext >&54593 rm -fr conftest*4594 ac_cv_func_mmap_file=no4595 fi4596 rm -fr conftest*4597 fi4598 4599 fi4600 4601 echo "$ac_t""$ac_cv_func_mmap_file" 1>&64602 if test $ac_cv_func_mmap_file = yes; then4603 cat >> confdefs.h <<\EOF4604 #define HAVE_MMAP_FILE 14605 4497 EOF 4606 4498 … … 4624 4516 4625 4517 echo $ac_n "checking for iconv""... $ac_c" 1>&6 4626 echo "configure:4 627: checking for iconv" >&54518 echo "configure:4519: checking for iconv" >&5 4627 4519 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then 4628 4520 echo $ac_n "(cached) $ac_c" 1>&6 … … 4632 4524 am_cv_lib_iconv=no 4633 4525 cat > conftest.$ac_ext <<EOF 4634 #line 4 635"configure"4526 #line 4527 "configure" 4635 4527 #include "confdefs.h" 4636 4528 #include <stdlib.h> … … 4642 4534 ; return 0; } 4643 4535 EOF 4644 if { (eval echo configure:4 645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4536 if { (eval echo configure:4537: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4645 4537 rm -rf conftest* 4646 4538 am_cv_func_iconv=yes … … 4654 4546 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv" 4655 4547 cat > conftest.$ac_ext <<EOF 4656 #line 4 657"configure"4548 #line 4549 "configure" 4657 4549 #include "confdefs.h" 4658 4550 #include <stdlib.h> … … 4664 4556 ; return 0; } 4665 4557 EOF 4666 if { (eval echo configure:4 667: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4558 if { (eval echo configure:4559: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4667 4559 rm -rf conftest* 4668 4560 am_cv_lib_iconv=yes … … 4685 4577 4686 4578 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 4687 echo "configure:4 688: checking for iconv declaration" >&54579 echo "configure:4580: checking for iconv declaration" >&5 4688 4580 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then 4689 4581 echo $ac_n "(cached) $ac_c" 1>&6 … … 4691 4583 4692 4584 cat > conftest.$ac_ext <<EOF 4693 #line 4 694"configure"4585 #line 4586 "configure" 4694 4586 #include "confdefs.h" 4695 4587 … … 4710 4602 ; return 0; } 4711 4603 EOF 4712 if { (eval echo configure:4 713: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4604 if { (eval echo configure:4605: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4713 4605 rm -rf conftest* 4714 4606 am_cv_proto_iconv_arg1="" … … 4743 4635 for ac_func in getenv atol sbrk abort atof getcwd getwd \ 4744 4636 strsignal putc_unlocked fputs_unlocked fwrite_unlocked \ 4745 fprintf_unlocked strstr errno \4637 fprintf_unlocked strstr errno vasprintf \ 4746 4638 malloc realloc calloc free basename getopt clock 4747 4639 do 4748 4640 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4749 4641 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6 4750 echo "configure:4 751: checking whether $ac_func is declared" >&54642 echo "configure:4643: checking whether $ac_func is declared" >&5 4751 4643 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then 4752 4644 echo $ac_n "(cached) $ac_c" 1>&6 4753 4645 else 4754 4646 cat > conftest.$ac_ext <<EOF 4755 #line 4 756"configure"4647 #line 4648 "configure" 4756 4648 #include "confdefs.h" 4757 4649 #undef $ac_tr_decl … … 4767 4659 ; return 0; } 4768 4660 EOF 4769 if { (eval echo configure:4 770: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4661 if { (eval echo configure:4662: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4770 4662 rm -rf conftest* 4771 4663 eval "gcc_cv_have_decl_$ac_func=yes" … … 4837 4729 #define HAVE_DECL_ERRNO 1 4838 4730 EOF 4731 cat >> confdefs.h <<\EOF 4732 #define HAVE_DECL_VASPRINTF 1 4733 EOF 4839 4734 \ 4840 4735 cat >> confdefs.h <<\EOF … … 4866 4761 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4867 4762 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6 4868 echo "configure:4 869: checking whether $ac_func is declared" >&54763 echo "configure:4764: checking whether $ac_func is declared" >&5 4869 4764 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then 4870 4765 echo $ac_n "(cached) $ac_c" 1>&6 4871 4766 else 4872 4767 cat > conftest.$ac_ext <<EOF 4873 #line 4 874"configure"4768 #line 4769 "configure" 4874 4769 #include "confdefs.h" 4875 4770 #undef $ac_tr_decl … … 4889 4784 ; return 0; } 4890 4785 EOF 4891 if { (eval echo configure:4 892: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4786 if { (eval echo configure:4787: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4892 4787 rm -rf conftest* 4893 4788 eval "gcc_cv_have_decl_$ac_func=yes" … … 4927 4822 4928 4823 4824 cat > conftest.$ac_ext <<EOF 4825 #line 4826 "configure" 4826 #include "confdefs.h" 4827 4828 #include "ansidecl.h" 4829 #include "system.h" 4830 #ifdef HAVE_SYS_RESOURCE_H 4831 #include <sys/resource.h> 4832 #endif 4833 4834 int main() { 4835 rlim_t l = 0; 4836 ; return 0; } 4837 EOF 4838 if { (eval echo configure:4839: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4839 : 4840 else 4841 echo "configure: failed program was:" >&5 4842 cat conftest.$ac_ext >&5 4843 rm -rf conftest* 4844 cat >> confdefs.h <<\EOF 4845 #define rlim_t long 4846 EOF 4847 4848 fi 4849 rm -f conftest* 4850 4929 4851 for ac_func in times 4930 4852 do 4931 4853 ac_tr_decl=HAVE_DECL_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 4932 4854 echo $ac_n "checking whether $ac_func is declared""... $ac_c" 1>&6 4933 echo "configure:4 934: checking whether $ac_func is declared" >&54855 echo "configure:4856: checking whether $ac_func is declared" >&5 4934 4856 if eval "test \"`echo '$''{'gcc_cv_have_decl_$ac_func'+set}'`\" = set"; then 4935 4857 echo $ac_n "(cached) $ac_c" 1>&6 4936 4858 else 4937 4859 cat > conftest.$ac_ext <<EOF 4938 #line 4 939"configure"4860 #line 4861 "configure" 4939 4861 #include "confdefs.h" 4940 4862 #undef $ac_tr_decl … … 4954 4876 ; return 0; } 4955 4877 EOF 4956 if { (eval echo configure:4 957: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4878 if { (eval echo configure:4879: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 4957 4879 rm -rf conftest* 4958 4880 eval "gcc_cv_have_decl_$ac_func=yes" … … 4988 4910 # More time-related stuff. 4989 4911 echo $ac_n "checking for struct tms""... $ac_c" 1>&6 4990 echo "configure:49 91: checking for struct tms" >&54912 echo "configure:4913: checking for struct tms" >&5 4991 4913 if eval "test \"`echo '$''{'ac_cv_struct_tms'+set}'`\" = set"; then 4992 4914 echo $ac_n "(cached) $ac_c" 1>&6 … … 4994 4916 4995 4917 cat > conftest.$ac_ext <<EOF 4996 #line 49 97"configure"4918 #line 4919 "configure" 4997 4919 #include "confdefs.h" 4998 4920 … … 5007 4929 ; return 0; } 5008 4930 EOF 5009 if { (eval echo configure: 5010: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4931 if { (eval echo configure:4932: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5010 4932 rm -rf conftest* 5011 4933 ac_cv_struct_tms=yes … … 5030 4952 # revisit after autoconf 2.50. 5031 4953 echo $ac_n "checking for clock_t""... $ac_c" 1>&6 5032 echo "configure: 5033: checking for clock_t" >&54954 echo "configure:4955: checking for clock_t" >&5 5033 4955 if eval "test \"`echo '$''{'gcc_cv_type_clock_t'+set}'`\" = set"; then 5034 4956 echo $ac_n "(cached) $ac_c" 1>&6 … … 5036 4958 5037 4959 cat > conftest.$ac_ext <<EOF 5038 #line 5039"configure"4960 #line 4961 "configure" 5039 4961 #include "confdefs.h" 5040 4962 … … 5046 4968 ; return 0; } 5047 4969 EOF 5048 if { (eval echo configure: 5049: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then4970 if { (eval echo configure:4971: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5049 4971 rm -rf conftest* 5050 4972 gcc_cv_type_clock_t=yes … … 5066 4988 fi 5067 4989 4990 echo $ac_n "checking for uchar""... $ac_c" 1>&6 4991 echo "configure:4992: checking for uchar" >&5 4992 if eval "test \"`echo '$''{'gcc_cv_type_uchar'+set}'`\" = set"; then 4993 echo $ac_n "(cached) $ac_c" 1>&6 4994 else 4995 cat > conftest.$ac_ext <<EOF 4996 #line 4997 "configure" 4997 #include "confdefs.h" 4998 4999 #include "ansidecl.h" 5000 #include "system.h" 5001 5002 int main() { 5003 if ((uchar *)0) return 0; 5004 if (sizeof(uchar)) return 0; 5005 ; return 0; } 5006 EOF 5007 if { (eval echo configure:5008: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5008 rm -rf conftest* 5009 ac_cv_type_uchar=yes 5010 else 5011 echo "configure: failed program was:" >&5 5012 cat conftest.$ac_ext >&5 5013 rm -rf conftest* 5014 ac_cv_type_uchar=no 5015 fi 5016 rm -f conftest* 5017 fi 5018 5019 echo "$ac_t""$gcc_cv_type_uchar" 1>&6 5020 if test $ac_cv_type_uchar = yes; then 5021 cat >> confdefs.h <<\EOF 5022 #define HAVE_UCHAR 1 5023 EOF 5024 5025 fi 5026 5027 # Check whether --enable-initfini-array or --disable-initfini-array was given. 5028 if test "${enable_initfini_array+set}" = set; then 5029 enableval="$enable_initfini_array" 5030 gcc_cv_initfinit_array=$enableval 5031 else 5032 echo $ac_n "checking for .preinit_array/.init_array/.fini_array support""... $ac_c" 1>&6 5033 echo "configure:5034: checking for .preinit_array/.init_array/.fini_array support" >&5 5034 if eval "test \"`echo '$''{'gcc_cv_initfinit_array'+set}'`\" = set"; then 5035 echo $ac_n "(cached) $ac_c" 1>&6 5036 else 5037 cat > conftest.c <<EOF 5038 static int x = -1; 5039 int main (void) { return x; } 5040 int foo (void) { x = 0; } 5041 int (*fp) (void) __attribute__ ((section (".init_array"))) = foo; 5042 EOF 5043 if { ac_try='${CC-cc} -o conftest conftest.c 1>&AS_MESSAGE_LOG_FD'; { (eval echo configure:5044: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } 5044 then 5045 if ./conftest; then 5046 gcc_cv_initfinit_array=yes 5047 else 5048 gcc_cv_initfinit_array=no 5049 fi 5050 else 5051 gcc_cv_initfinit_array=no 5052 fi 5053 rm -f conftest* 5054 fi 5055 5056 echo "$ac_t""$gcc_cv_initfinit_array" 1>&6 5057 5058 if test $gcc_cv_initfinit_array = yes; then 5059 cat >> confdefs.h <<\EOF 5060 #define HAVE_INITFINI_ARRAY 1 5061 EOF 5062 5063 fi 5064 fi 5065 5066 5068 5067 # Restore CFLAGS from before the gcc_AC_NEED_DECLARATIONS tests. 5069 5068 CFLAGS="$saved_CFLAGS" … … 5071 5070 # mkdir takes a single argument on some systems. 5072 5071 echo $ac_n "checking if mkdir takes one argument""... $ac_c" 1>&6 5073 echo "configure:507 4: checking if mkdir takes one argument" >&55072 echo "configure:5073: checking if mkdir takes one argument" >&5 5074 5073 if eval "test \"`echo '$''{'gcc_cv_mkdir_takes_one_arg'+set}'`\" = set"; then 5075 5074 echo $ac_n "(cached) $ac_c" 1>&6 5076 5075 else 5077 5076 cat > conftest.$ac_ext <<EOF 5078 #line 507 9"configure"5077 #line 5078 "configure" 5079 5078 #include "confdefs.h" 5080 5079 … … 5093 5092 ; return 0; } 5094 5093 EOF 5095 if { (eval echo configure:509 6: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then5094 if { (eval echo configure:5095: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5096 5095 rm -rf conftest* 5097 5096 gcc_cv_mkdir_takes_one_arg=no … … 5120 5119 5121 5120 5121 # With Setjmp/Longjmp based exception handling. 5122 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given. 5123 if test "${enable_sjlj_exceptions+set}" = set; then 5124 enableval="$enable_sjlj_exceptions" 5125 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi` 5126 cat >> confdefs.h <<EOF 5127 #define CONFIG_SJLJ_EXCEPTIONS $sjlj 5128 EOF 5129 5130 fi 5131 5132 5133 echo $ac_n "checking for main in -lunwind""... $ac_c" 1>&6 5134 echo "configure:5135: checking for main in -lunwind" >&5 5135 ac_lib_var=`echo unwind'_'main | sed 'y%./+-%__p_%'` 5136 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then 5137 echo $ac_n "(cached) $ac_c" 1>&6 5138 else 5139 ac_save_LIBS="$LIBS" 5140 LIBS="-lunwind $LIBS" 5141 cat > conftest.$ac_ext <<EOF 5142 #line 5143 "configure" 5143 #include "confdefs.h" 5144 5145 int main() { 5146 main() 5147 ; return 0; } 5148 EOF 5149 if { (eval echo configure:5150: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5150 rm -rf conftest* 5151 eval "ac_cv_lib_$ac_lib_var=yes" 5152 else 5153 echo "configure: failed program was:" >&5 5154 cat conftest.$ac_ext >&5 5155 rm -rf conftest* 5156 eval "ac_cv_lib_$ac_lib_var=no" 5157 fi 5158 rm -f conftest* 5159 LIBS="$ac_save_LIBS" 5160 5161 fi 5162 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then 5163 echo "$ac_t""yes" 1>&6 5164 use_libunwind_default=yes 5165 else 5166 echo "$ac_t""no" 1>&6 5167 use_libunwind_default=no 5168 fi 5169 5170 # Use libunwind based exception handling. 5171 # Check whether --enable-libunwind-exceptions or --disable-libunwind-exceptions was given. 5172 if test "${enable_libunwind_exceptions+set}" = set; then 5173 enableval="$enable_libunwind_exceptions" 5174 use_libunwind_exceptions=$enableval 5175 else 5176 use_libunwind_exceptions=$use_libunwind_default 5177 fi 5178 5179 if test x"$use_libunwind_exceptions" = xyes; then 5180 cat >> confdefs.h <<\EOF 5181 #define USE_LIBUNWIND_EXCEPTIONS 1 5182 EOF 5183 5184 fi 5185 5186 target_gtfiles= 5122 5187 build_xm_file= 5123 5188 build_xm_defines= … … 5159 5224 if test x"$dwarf2" = xyes 5160 5225 then tm_file="$tm_file tm-dwarf2.h" 5161 fi5162 5163 if test x$float_format = x5164 then float_format=i645165 fi5166 5167 if test $float_format = none5168 then float_h_file=Makefile.in5169 else float_h_file=float-$float_format.h5170 fi5171 5172 # Handle cpp installation.5173 if test x$enable_cpp != xno5174 then5175 tmake_file="$tmake_file t-install-cpp"5176 5226 fi 5177 5227 … … 5261 5311 thread_file='single' 5262 5312 fi 5313 fi 5314 5315 # Look for a file containing extra machine modes. 5316 if test -n "$extra_modes" && test -f $srcdir/config/$extra_modes; then 5317 extra_modes_file='$(srcdir)'/config/${extra_modes} 5318 5319 cat >> confdefs.h <<EOF 5320 #define EXTRA_MODES_FILE "$extra_modes" 5321 EOF 5322 5323 cat >> confdefs.h <<\EOF 5324 #define EXTRA_CC_MODES 1 5325 EOF 5326 5263 5327 fi 5264 5328 … … 5297 5361 rm -rf $tempdir 5298 5362 build_auto=auto-build.h 5299 FORBUILD=../$build 5363 FORBUILD=../$build_alias 5300 5364 fi 5301 5365 … … 5361 5425 5362 5426 echo $ac_n "checking for library containing strerror""... $ac_c" 1>&6 5363 echo "configure:5 364: checking for library containing strerror" >&55427 echo "configure:5428: checking for library containing strerror" >&5 5364 5428 if eval "test \"`echo '$''{'ac_cv_search_strerror'+set}'`\" = set"; then 5365 5429 echo $ac_n "(cached) $ac_c" 1>&6 … … 5368 5432 ac_cv_search_strerror="no" 5369 5433 cat > conftest.$ac_ext <<EOF 5370 #line 5 371"configure"5434 #line 5435 "configure" 5371 5435 #include "confdefs.h" 5372 5436 /* Override any gcc2 internal prototype to avoid an error. */ … … 5379 5443 ; return 0; } 5380 5444 EOF 5381 if { (eval echo configure:5 382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5445 if { (eval echo configure:5446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5382 5446 rm -rf conftest* 5383 5447 ac_cv_search_strerror="none required" … … 5390 5454 LIBS="-l$i $ac_func_search_save_LIBS" 5391 5455 cat > conftest.$ac_ext <<EOF 5392 #line 5 393"configure"5456 #line 5457 "configure" 5393 5457 #include "confdefs.h" 5394 5458 /* Override any gcc2 internal prototype to avoid an error. */ … … 5401 5465 ; return 0; } 5402 5466 EOF 5403 if { (eval echo configure:54 04: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5467 if { (eval echo configure:5468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5404 5468 rm -rf conftest* 5405 5469 ac_cv_search_strerror="-l$i" … … 5424 5488 5425 5489 echo $ac_n "checking for working const""... $ac_c" 1>&6 5426 echo "configure:54 27: checking for working const" >&55490 echo "configure:5491: checking for working const" >&5 5427 5491 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 5428 5492 echo $ac_n "(cached) $ac_c" 1>&6 5429 5493 else 5430 5494 cat > conftest.$ac_ext <<EOF 5431 #line 54 32"configure"5495 #line 5496 "configure" 5432 5496 #include "confdefs.h" 5433 5497 … … 5478 5542 ; return 0; } 5479 5543 EOF 5480 if { (eval echo configure:5 481: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then5544 if { (eval echo configure:5545: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 5481 5545 rm -rf conftest* 5482 5546 ac_cv_c_const=yes … … 5499 5563 5500 5564 echo $ac_n "checking for off_t""... $ac_c" 1>&6 5501 echo "configure:55 02: checking for off_t" >&55565 echo "configure:5566: checking for off_t" >&5 5502 5566 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then 5503 5567 echo $ac_n "(cached) $ac_c" 1>&6 5504 5568 else 5505 5569 cat > conftest.$ac_ext <<EOF 5506 #line 55 07"configure"5570 #line 5571 "configure" 5507 5571 #include "confdefs.h" 5508 5572 #include <sys/types.h> … … 5532 5596 5533 5597 echo $ac_n "checking for size_t""... $ac_c" 1>&6 5534 echo "configure:55 35: checking for size_t" >&55598 echo "configure:5599: checking for size_t" >&5 5535 5599 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 5536 5600 echo $ac_n "(cached) $ac_c" 1>&6 5537 5601 else 5538 5602 cat > conftest.$ac_ext <<EOF 5539 #line 5 540"configure"5603 #line 5604 "configure" 5540 5604 #include "confdefs.h" 5541 5605 #include <sys/types.h> … … 5567 5631 # for constant arguments. Useless! 5568 5632 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 5569 echo "configure:5 570: checking for working alloca.h" >&55633 echo "configure:5634: checking for working alloca.h" >&5 5570 5634 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 5571 5635 echo $ac_n "(cached) $ac_c" 1>&6 5572 5636 else 5573 5637 cat > conftest.$ac_ext <<EOF 5574 #line 5 575"configure"5638 #line 5639 "configure" 5575 5639 #include "confdefs.h" 5576 5640 #include <alloca.h> … … 5579 5643 ; return 0; } 5580 5644 EOF 5581 if { (eval echo configure:5 582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5645 if { (eval echo configure:5646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5582 5646 rm -rf conftest* 5583 5647 ac_cv_header_alloca_h=yes … … 5600 5664 5601 5665 echo $ac_n "checking for alloca""... $ac_c" 1>&6 5602 echo "configure:56 03: checking for alloca" >&55666 echo "configure:5667: checking for alloca" >&5 5603 5667 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 5604 5668 echo $ac_n "(cached) $ac_c" 1>&6 5605 5669 else 5606 5670 cat > conftest.$ac_ext <<EOF 5607 #line 56 08"configure"5671 #line 5672 "configure" 5608 5672 #include "confdefs.h" 5609 5673 … … 5633 5697 ; return 0; } 5634 5698 EOF 5635 if { (eval echo configure:5 636: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5699 if { (eval echo configure:5700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5636 5700 rm -rf conftest* 5637 5701 ac_cv_func_alloca_works=yes … … 5665 5729 5666 5730 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 5667 echo "configure:5 668: checking whether alloca needs Cray hooks" >&55731 echo "configure:5732: checking whether alloca needs Cray hooks" >&5 5668 5732 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 5669 5733 echo $ac_n "(cached) $ac_c" 1>&6 5670 5734 else 5671 5735 cat > conftest.$ac_ext <<EOF 5672 #line 5 673"configure"5736 #line 5737 "configure" 5673 5737 #include "confdefs.h" 5674 5738 #if defined(CRAY) && ! defined(CRAY2) … … 5695 5759 for ac_func in _getb67 GETB67 getb67; do 5696 5760 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5697 echo "configure:5 698: checking for $ac_func" >&55761 echo "configure:5762: checking for $ac_func" >&5 5698 5762 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5699 5763 echo $ac_n "(cached) $ac_c" 1>&6 5700 5764 else 5701 5765 cat > conftest.$ac_ext <<EOF 5702 #line 57 03"configure"5766 #line 5767 "configure" 5703 5767 #include "confdefs.h" 5704 5768 /* System header to define __stub macros and hopefully few prototypes, … … 5723 5787 ; return 0; } 5724 5788 EOF 5725 if { (eval echo configure:57 26: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5789 if { (eval echo configure:5790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5726 5790 rm -rf conftest* 5727 5791 eval "ac_cv_func_$ac_func=yes" … … 5750 5814 5751 5815 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 5752 echo "configure:5 753: checking stack direction for C alloca" >&55816 echo "configure:5817: checking stack direction for C alloca" >&5 5753 5817 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 5754 5818 echo $ac_n "(cached) $ac_c" 1>&6 … … 5758 5822 else 5759 5823 cat > conftest.$ac_ext <<EOF 5760 #line 5 761"configure"5824 #line 5825 "configure" 5761 5825 #include "confdefs.h" 5762 5826 find_stack_direction () … … 5777 5841 } 5778 5842 EOF 5779 if { (eval echo configure:5 780: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null5843 if { (eval echo configure:5844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 5780 5844 then 5781 5845 ac_cv_c_stack_direction=1 … … 5800 5864 5801 5865 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6 5802 echo "configure:58 03: checking whether we are using the GNU C Library 2.1 or newer" >&55866 echo "configure:5867: checking whether we are using the GNU C Library 2.1 or newer" >&5 5803 5867 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then 5804 5868 echo $ac_n "(cached) $ac_c" 1>&6 5805 5869 else 5806 5870 cat > conftest.$ac_ext <<EOF 5807 #line 58 08"configure"5871 #line 5872 "configure" 5808 5872 #include "confdefs.h" 5809 5873 … … 5841 5905 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 5842 5906 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 5843 echo "configure:5 844: checking for $ac_hdr" >&55907 echo "configure:5908: checking for $ac_hdr" >&5 5844 5908 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 5845 5909 echo $ac_n "(cached) $ac_c" 1>&6 … … 5847 5911 cat > conftest.$ac_ext <<EOF 5848 5912 #include <sys/types.h> 5849 #line 5 850"configure"5913 #line 5914 "configure" 5850 5914 #include "confdefs.h" 5851 5915 #include <$ac_hdr> 5852 5916 EOF 5853 5917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 5854 { (eval echo configure:5 855: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }5918 { (eval echo configure:5919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 5855 5919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 5856 5920 if test -z "$ac_err"; then … … 5883 5947 do 5884 5948 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 5885 echo "configure:5 886: checking for $ac_func" >&55949 echo "configure:5950: checking for $ac_func" >&5 5886 5950 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 5887 5951 echo $ac_n "(cached) $ac_c" 1>&6 5888 5952 else 5889 5953 cat > conftest.$ac_ext <<EOF 5890 #line 5 891"configure"5954 #line 5955 "configure" 5891 5955 #include "confdefs.h" 5892 5956 /* System header to define __stub macros and hopefully few prototypes, … … 5911 5975 ; return 0; } 5912 5976 EOF 5913 if { (eval echo configure:59 14: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then5977 if { (eval echo configure:5978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5914 5978 rm -rf conftest* 5915 5979 eval "ac_cv_func_$ac_func=yes" … … 5952 6016 5953 6017 echo $ac_n "checking for iconv""... $ac_c" 1>&6 5954 echo "configure: 5955: checking for iconv" >&56018 echo "configure:6019: checking for iconv" >&5 5955 6019 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then 5956 6020 echo $ac_n "(cached) $ac_c" 1>&6 … … 5960 6024 am_cv_lib_iconv=no 5961 6025 cat > conftest.$ac_ext <<EOF 5962 #line 5963"configure"6026 #line 6027 "configure" 5963 6027 #include "confdefs.h" 5964 6028 #include <stdlib.h> … … 5970 6034 ; return 0; } 5971 6035 EOF 5972 if { (eval echo configure: 5973: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6036 if { (eval echo configure:6037: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5973 6037 rm -rf conftest* 5974 6038 am_cv_func_iconv=yes … … 5982 6046 LIBS="$LIBS $am_cv_libiconv_ldpath -liconv" 5983 6047 cat > conftest.$ac_ext <<EOF 5984 #line 5985"configure"6048 #line 6049 "configure" 5985 6049 #include "confdefs.h" 5986 6050 #include <stdlib.h> … … 5992 6056 ; return 0; } 5993 6057 EOF 5994 if { (eval echo configure: 5995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6058 if { (eval echo configure:6059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 5995 6059 rm -rf conftest* 5996 6060 am_cv_lib_iconv=yes … … 6013 6077 6014 6078 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6 6015 echo "configure:60 16: checking for iconv declaration" >&56079 echo "configure:6080: checking for iconv declaration" >&5 6016 6080 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then 6017 6081 echo $ac_n "(cached) $ac_c" 1>&6 … … 6019 6083 6020 6084 cat > conftest.$ac_ext <<EOF 6021 #line 60 22"configure"6085 #line 6086 "configure" 6022 6086 #include "confdefs.h" 6023 6087 … … 6038 6102 ; return 0; } 6039 6103 EOF 6040 if { (eval echo configure:6 041: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then6104 if { (eval echo configure:6105: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 6041 6105 rm -rf conftest* 6042 6106 am_cv_proto_iconv_arg1="" … … 6067 6131 6068 6132 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6 6069 echo "configure:6 070: checking for nl_langinfo and CODESET" >&56133 echo "configure:6134: checking for nl_langinfo and CODESET" >&5 6070 6134 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then 6071 6135 echo $ac_n "(cached) $ac_c" 1>&6 6072 6136 else 6073 6137 cat > conftest.$ac_ext <<EOF 6074 #line 6 075"configure"6138 #line 6139 "configure" 6075 6139 #include "confdefs.h" 6076 6140 #include <langinfo.h> … … 6079 6143 ; return 0; } 6080 6144 EOF 6081 if { (eval echo configure:6 082: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6145 if { (eval echo configure:6146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6082 6146 rm -rf conftest* 6083 6147 am_cv_langinfo_codeset=yes … … 6102 6166 if test $ac_cv_header_locale_h = yes; then 6103 6167 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6 6104 echo "configure:61 05: checking for LC_MESSAGES" >&56168 echo "configure:6169: checking for LC_MESSAGES" >&5 6105 6169 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then 6106 6170 echo $ac_n "(cached) $ac_c" 1>&6 6107 6171 else 6108 6172 cat > conftest.$ac_ext <<EOF 6109 #line 61 10"configure"6173 #line 6174 "configure" 6110 6174 #include "confdefs.h" 6111 6175 #include <locale.h> … … 6114 6178 ; return 0; } 6115 6179 EOF 6116 if { (eval echo configure:61 17: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6180 if { (eval echo configure:6181: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6117 6181 rm -rf conftest* 6118 6182 am_cv_val_LC_MESSAGES=yes … … 6135 6199 fi 6136 6200 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6 6137 echo "configure:6 138: checking whether NLS is requested" >&56201 echo "configure:6202: checking whether NLS is requested" >&5 6138 6202 # Check whether --enable-nls or --disable-nls was given. 6139 6203 if test "${enable_nls+set}" = set; then … … 6158 6222 6159 6223 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6 6160 echo "configure:6 161: checking whether included gettext is requested" >&56224 echo "configure:6225: checking whether included gettext is requested" >&5 6161 6225 # Check whether --with-included-gettext or --without-included-gettext was given. 6162 6226 if test "${with_included_gettext+set}" = set; then … … 6178 6242 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'` 6179 6243 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6 6180 echo "configure:6 181: checking for libintl.h" >&56244 echo "configure:6245: checking for libintl.h" >&5 6181 6245 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 6182 6246 echo $ac_n "(cached) $ac_c" 1>&6 … … 6184 6248 cat > conftest.$ac_ext <<EOF 6185 6249 #include <sys/types.h> 6186 #line 6 187"configure"6250 #line 6251 "configure" 6187 6251 #include "confdefs.h" 6188 6252 #include <libintl.h> 6189 6253 EOF 6190 6254 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 6191 { (eval echo configure:6 192: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }6255 { (eval echo configure:6256: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 6192 6256 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 6193 6257 if test -z "$ac_err"; then … … 6210 6274 6211 6275 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6 6212 echo "configure:62 13: checking for GNU gettext in libc" >&56276 echo "configure:6277: checking for GNU gettext in libc" >&5 6213 6277 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then 6214 6278 echo $ac_n "(cached) $ac_c" 1>&6 6215 6279 else 6216 6280 cat > conftest.$ac_ext <<EOF 6217 #line 62 18"configure"6281 #line 6282 "configure" 6218 6282 #include "confdefs.h" 6219 6283 #include <libintl.h> … … 6224 6288 ; return 0; } 6225 6289 EOF 6226 if { (eval echo configure:62 27: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6290 if { (eval echo configure:6291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6227 6291 rm -rf conftest* 6228 6292 gt_cv_func_gnugettext1_libc=yes … … 6240 6304 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then 6241 6305 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6 6242 echo "configure:6 243: checking for GNU gettext in libintl" >&56306 echo "configure:6307: checking for GNU gettext in libintl" >&5 6243 6307 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then 6244 6308 echo $ac_n "(cached) $ac_c" 1>&6 … … 6247 6311 LIBS="$LIBS -lintl $LIBICONV" 6248 6312 cat > conftest.$ac_ext <<EOF 6249 #line 6 250"configure"6313 #line 6314 "configure" 6250 6314 #include "confdefs.h" 6251 6315 #include <libintl.h> … … 6256 6320 ; return 0; } 6257 6321 EOF 6258 if { (eval echo configure:6 259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6322 if { (eval echo configure:6323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6259 6323 rm -rf conftest* 6260 6324 gt_cv_func_gnugettext1_libintl=yes … … 6289 6353 do 6290 6354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 6291 echo "configure:6 292: checking for $ac_func" >&56355 echo "configure:6356: checking for $ac_func" >&5 6292 6356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 6293 6357 echo $ac_n "(cached) $ac_c" 1>&6 6294 6358 else 6295 6359 cat > conftest.$ac_ext <<EOF 6296 #line 6 297"configure"6360 #line 6361 "configure" 6297 6361 #include "confdefs.h" 6298 6362 /* System header to define __stub macros and hopefully few prototypes, … … 6317 6381 ; return 0; } 6318 6382 EOF 6319 if { (eval echo configure:63 20: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6383 if { (eval echo configure:6384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6320 6384 rm -rf conftest* 6321 6385 eval "ac_cv_func_$ac_func=yes" … … 6346 6410 set dummy msgfmt; ac_word=$2 6347 6411 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6348 echo "configure:6 349: checking for $ac_word" >&56412 echo "configure:6413: checking for $ac_word" >&5 6349 6413 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 6350 6414 echo $ac_n "(cached) $ac_c" 1>&6 … … 6380 6444 set dummy gmsgfmt; ac_word=$2 6381 6445 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6382 echo "configure:6 383: checking for $ac_word" >&56446 echo "configure:6447: checking for $ac_word" >&5 6383 6447 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 6384 6448 echo $ac_n "(cached) $ac_c" 1>&6 … … 6421 6485 set dummy xgettext; ac_word=$2 6422 6486 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6423 echo "configure:64 24: checking for $ac_word" >&56487 echo "configure:6488: checking for $ac_word" >&5 6424 6488 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 6425 6489 echo $ac_n "(cached) $ac_c" 1>&6 … … 6471 6535 set dummy msgfmt; ac_word=$2 6472 6536 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6473 echo "configure:6 474: checking for $ac_word" >&56537 echo "configure:6538: checking for $ac_word" >&5 6474 6538 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then 6475 6539 echo $ac_n "(cached) $ac_c" 1>&6 … … 6505 6569 set dummy gmsgfmt; ac_word=$2 6506 6570 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6507 echo "configure:65 08: checking for $ac_word" >&56571 echo "configure:6572: checking for $ac_word" >&5 6508 6572 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then 6509 6573 echo $ac_n "(cached) $ac_c" 1>&6 … … 6545 6609 set dummy xgettext; ac_word=$2 6546 6610 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6547 echo "configure:6 548: checking for $ac_word" >&56611 echo "configure:6612: checking for $ac_word" >&5 6548 6612 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then 6549 6613 echo $ac_n "(cached) $ac_c" 1>&6 … … 6617 6681 set dummy $ac_prog; ac_word=$2 6618 6682 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 6619 echo "configure:66 20: checking for $ac_word" >&56683 echo "configure:6684: checking for $ac_word" >&5 6620 6684 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then 6621 6685 echo $ac_n "(cached) $ac_c" 1>&6 … … 6651 6715 else 6652 6716 echo $ac_n "checking version of bison""... $ac_c" 1>&6 6653 echo "configure:6 654: checking version of bison" >&56717 echo "configure:6718: checking version of bison" >&5 6654 6718 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 6655 6719 case $ac_prog_version in … … 6696 6760 if test "x$CATOBJEXT" != x; then 6697 6761 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6 6698 echo "configure:6 699: checking for catalogs to be installed" >&56762 echo "configure:6763: checking for catalogs to be installed" >&5 6699 6763 # Look for .po and .gmo files in the source directory. 6700 6764 CATALOGS= … … 6754 6818 win32 | pe | cygwin* | mingw32* | uwin*) 6755 6819 echo $ac_n "checking whether windows registry support is requested""... $ac_c" 1>&6 6756 echo "configure:6 757: checking whether windows registry support is requested" >&56820 echo "configure:6821: checking whether windows registry support is requested" >&5 6757 6821 if test "x$enable_win32_registry" != xno; then 6758 6822 cat >> confdefs.h <<\EOF … … 6763 6827 6764 6828 echo $ac_n "checking for library containing RegOpenKeyExA""... $ac_c" 1>&6 6765 echo "configure:6 766: checking for library containing RegOpenKeyExA" >&56829 echo "configure:6830: checking for library containing RegOpenKeyExA" >&5 6766 6830 if eval "test \"`echo '$''{'ac_cv_search_RegOpenKeyExA'+set}'`\" = set"; then 6767 6831 echo $ac_n "(cached) $ac_c" 1>&6 … … 6770 6834 ac_cv_search_RegOpenKeyExA="no" 6771 6835 cat > conftest.$ac_ext <<EOF 6772 #line 6 773"configure"6836 #line 6837 "configure" 6773 6837 #include "confdefs.h" 6774 6838 /* Override any gcc2 internal prototype to avoid an error. */ … … 6781 6845 ; return 0; } 6782 6846 EOF 6783 if { (eval echo configure:6 784: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6847 if { (eval echo configure:6848: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6784 6848 rm -rf conftest* 6785 6849 ac_cv_search_RegOpenKeyExA="none required" … … 6792 6856 LIBS="-l$i $ac_func_search_save_LIBS" 6793 6857 cat > conftest.$ac_ext <<EOF 6794 #line 6 795"configure"6858 #line 6859 "configure" 6795 6859 #include "confdefs.h" 6796 6860 /* Override any gcc2 internal prototype to avoid an error. */ … … 6803 6867 ; return 0; } 6804 6868 EOF 6805 if { (eval echo configure:68 06: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then6869 if { (eval echo configure:6870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 6806 6870 rm -rf conftest* 6807 6871 ac_cv_search_RegOpenKeyExA="-l$i" … … 6845 6909 if test "x$enable_win32_registry" != xno; then 6846 6910 echo $ac_n "checking registry key on windows hosts""... $ac_c" 1>&6 6847 echo "configure:6 848: checking registry key on windows hosts" >&56911 echo "configure:6912: checking registry key on windows hosts" >&5 6848 6912 cat >> confdefs.h <<EOF 6849 6913 #define WIN32_REGISTRY_KEY "$gcc_cv_win32_registry_key" … … 6856 6920 6857 6921 # Get an absolute path to the GCC top-level source directory 6858 holddir=` pwd`6922 holddir=`${PWDCMD-pwd}` 6859 6923 cd $srcdir 6860 topdir=` pwd`6924 topdir=`${PWDCMD-pwd}` 6861 6925 cd $holddir 6862 6926 … … 6920 6984 tm_file_list="${tm_file_list} \$(srcdir)/../include/ansidecl.h" ;; 6921 6985 defaults.h ) 6922 tm_file_list="${tm_file_list} $f" ;;6986 tm_file_list="${tm_file_list} \$(srcdir)/$f" ;; 6923 6987 *) tm_file_list="${tm_file_list} \$(srcdir)/config/$f" ;; 6924 6988 esac … … 6935 6999 ansidecl.h ) 6936 7000 host_xm_file_list="${host_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;; 6937 auto-host.h | defaults.h)7001 auto-host.h ) 6938 7002 host_xm_file_list="${host_xm_file_list} $f" ;; 7003 defaults.h ) 7004 host_xm_file_list="${host_xm_file_list} \$(srcdir)/$f" ;; 6939 7005 *) host_xm_file_list="${host_xm_file_list} \$(srcdir)/config/$f" ;; 6940 7006 esac … … 6946 7012 ansidecl.h ) 6947 7013 build_xm_file_list="${build_xm_file_list} \$(srcdir)/../include/ansidecl.h" ;; 6948 auto-build.h | auto-host.h | defaults.h)7014 auto-build.h | auto-host.h ) 6949 7015 build_xm_file_list="${build_xm_file_list} $f" ;; 7016 defaults.h ) 7017 host_xm_file_list="${host_xm_file_list} \$(srcdir)/$f" ;; 6950 7018 *) build_xm_file_list="${build_xm_file_list} \$(srcdir)/config/$f" ;; 6951 7019 esac … … 6962 7030 ALL=all.cross 6963 7031 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 7032 case "$host","$target" in 7033 i?86-*-*,x86_64-*-* \ 7034 | powerpc*-*-*,powerpc64*-*-*) 7035 CROSS="$CROSS -DNATIVE_CROSS" ;; 7036 esac 7037 elif test "x$TARGET_SYSTEM_ROOT" != x; then 7038 # This is just $(TARGET_SYSTEM_ROOT)$(NATIVE_SYSTEM_HEADER_DIR) 7039 SYSTEM_HEADER_DIR='$(CROSS_SYSTEM_HEADER_DIR)' 6964 7040 fi 6965 7041 … … 6972 7048 # support. 6973 7049 inhibit_libc= 6974 if test x$host != x$target && test x$with_headers = x; then 7050 if { test x$host != x$target && test "x$with_headers" = x && 7051 test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then 6975 7052 inhibit_libc=-Dinhibit_libc 6976 else6977 if test x$with_newlib = xyes; then6978 inhibit_libc=-Dinhibit_libc6979 fi6980 7053 fi 6981 7054 … … 6988 7061 6989 7062 # These are the normal (build=host) settings: 6990 HOST_PREFIX=6991 HOST_PREFIX_1=ignore-7063 BUILD_PREFIX= 7064 BUILD_PREFIX_1=ignore- 6992 7065 HOST_CC='$(CC)' 6993 7066 HOST_CFLAGS='$(ALL_CFLAGS)' … … 6999 7072 if test x$build != x$host 7000 7073 then 7001 HOST_PREFIX=build-7002 HOST_PREFIX_1=build-7074 BUILD_PREFIX=build- 7075 BUILD_PREFIX_1=build- 7003 7076 HOST_CC='$(CC_FOR_BUILD)' 7004 7077 HOST_CFLAGS='$(INTERNAL_CFLAGS) $(T_CFLAGS) $(CFLAGS_FOR_BUILD) $(XCFLAGS)' 7005 7078 7006 STMP_FIXINC= 7007 STMP_FIXPROTO= 7079 if test "x$TARGET_SYSTEM_ROOT" = x; then 7080 STMP_FIXINC= 7081 STMP_FIXPROTO= 7082 fi 7008 7083 fi 7009 7084 … … 7050 7125 # Figure out what assembler we will be using. 7051 7126 echo $ac_n "checking what assembler to use""... $ac_c" 1>&6 7052 echo "configure:7 053: checking what assembler to use" >&57127 echo "configure:7128: checking what assembler to use" >&5 7053 7128 gcc_cv_as= 7054 7129 gcc_cv_gas_major_version= … … 7144 7219 # Figure out what linker we will be using. 7145 7220 echo $ac_n "checking what linker to use""... $ac_c" 1>&6 7146 echo "configure:7 147: checking what linker to use" >&57221 echo "configure:7222: checking what linker to use" >&5 7147 7222 gcc_cv_ld= 7148 7223 gcc_cv_gld_major_version= … … 7237 7312 # Figure out what nm we will be using. 7238 7313 echo $ac_n "checking what nm to use""... $ac_c" 1>&6 7239 echo "configure:7 240: checking what nm to use" >&57314 echo "configure:7315: checking what nm to use" >&5 7240 7315 if test -x nm$host_exeext; then 7241 7316 gcc_cv_nm=./nm$host_exeext … … 7249 7324 # Figure out what objdump we will be using. 7250 7325 echo $ac_n "checking what objdump to use""... $ac_c" 1>&6 7251 echo "configure:7 252: checking what objdump to use" >&57326 echo "configure:7327: checking what objdump to use" >&5 7252 7327 if test -x objdump$host_exeext; then 7253 7328 gcc_cv_objdump=./objdump$host_exeext … … 7261 7336 # Figure out what assembler alignment features are present. 7262 7337 echo $ac_n "checking assembler alignment features""... $ac_c" 1>&6 7263 echo "configure:7 264: checking assembler alignment features" >&57338 echo "configure:7339: checking assembler alignment features" >&5 7264 7339 gcc_cv_as_alignment_features=none 7265 7340 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7309 7384 7310 7385 echo $ac_n "checking assembler subsection support""... $ac_c" 1>&6 7311 echo "configure:73 12: checking assembler subsection support" >&57386 echo "configure:7387: checking assembler subsection support" >&5 7312 7387 gcc_cv_as_subsections=no 7313 7388 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7349 7424 7350 7425 echo $ac_n "checking assembler weak support""... $ac_c" 1>&6 7351 echo "configure:7 352: checking assembler weak support" >&57426 echo "configure:7427: checking assembler weak support" >&5 7352 7427 gcc_cv_as_weak=no 7353 7428 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7372 7447 7373 7448 echo $ac_n "checking assembler hidden support""... $ac_c" 1>&6 7374 echo "configure:7 375: checking assembler hidden support" >&57449 echo "configure:7450: checking assembler hidden support" >&5 7375 7450 gcc_cv_as_hidden=no 7376 7451 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7393 7468 rm -f conftest.s conftest.o conftest.nm1 conftest.nm2 7394 7469 7395 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN.7470 # GNU LD versions before 2.12.1 have buggy support for STV_HIDDEN. 7396 7471 # This is irritatingly difficult to feature test for. Look for 7397 7472 # the date string after the version number. 7398 7473 ld_ver=`$gcc_cv_ld --version 2>/dev/null | head -1` 7399 7474 if echo "$ld_ver" | grep GNU > /dev/null; then 7400 ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([].*\|\)$,\1,p'`7401 7475 ld_vers=`echo $ld_ver | sed -n 's,^.*[ ]\([0-9][0-9]*\.[0-9][0-9]*\(\|\.[0-9][0-9]*\(\|\.[0-9][0-9]*\)\)\)\([ ].*\|\)$,\1,p'` 7476 ld_date=`echo $ld_ver | sed -n 's,^.*\([2-9][0-9][0-9][0-9]\)[-]*\([01][0-9]\)[-]*\([0-3][0-9]\).*$,\1\2\3,p'` 7402 7477 if test 0"$ld_date" -lt 20020404; then 7403 7478 if test -n "$ld_date"; then … … 7422 7497 fi 7423 7498 fi 7499 else 7500 # non-GNU linkers don't seem to support .hidden yet 7501 gcc_cv_as_hidden=no 7424 7502 fi 7425 7503 fi 7426 7427 7504 if test x"$gcc_cv_as_hidden" = xyes; then 7428 7505 cat >> confdefs.h <<\EOF … … 7436 7513 7437 7514 echo $ac_n "checking assembler leb128 support""... $ac_c" 1>&6 7438 echo "configure:7 439: checking assembler leb128 support" >&57515 echo "configure:7516: checking assembler leb128 support" >&5 7439 7516 gcc_cv_as_leb128=no 7440 7517 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7481 7558 7482 7559 echo $ac_n "checking assembler eh_frame optimization""... $ac_c" 1>&6 7483 echo "configure:7 484: checking assembler eh_frame optimization" >&57560 echo "configure:7561: checking assembler eh_frame optimization" >&5 7484 7561 gcc_cv_as_eh_frame=no 7485 7562 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7562 7639 7563 7640 echo $ac_n "checking assembler section merging support""... $ac_c" 1>&6 7564 echo "configure:7 565: checking assembler section merging support" >&57641 echo "configure:7642: checking assembler section merging support" >&5 7565 7642 gcc_cv_as_shf_merge=no 7566 7643 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7584 7661 echo "$ac_t""$gcc_cv_as_shf_merge" 1>&6 7585 7662 7663 echo $ac_n "checking assembler thread-local storage support""... $ac_c" 1>&6 7664 echo "configure:7665: checking assembler thread-local storage support" >&5 7665 gcc_cv_as_tls=no 7666 conftest_s= 7667 tls_first_major= 7668 tls_first_minor= 7669 case "$target" in 7670 alpha*-*-*) 7671 conftest_s=' 7672 .section ".tdata","awT",@progbits 7673 foo: .long 25 7674 .text 7675 ldq $27,__tls_get_addr($29) !literal!1 7676 lda $16,foo($29) !tlsgd!1 7677 jsr $26,($27),__tls_get_addr !lituse_tlsgd!1 7678 ldq $27,__tls_get_addr($29) !literal!2 7679 lda $16,foo($29) !tlsldm!2 7680 jsr $26,($27),__tls_get_addr !lituse_tlsldm!2 7681 ldq $1,foo($29) !gotdtprel 7682 ldah $2,foo($29) !dtprelhi 7683 lda $3,foo($2) !dtprello 7684 lda $4,foo($29) !dtprel 7685 ldq $1,foo($29) !gottprel 7686 ldah $2,foo($29) !tprelhi 7687 lda $3,foo($2) !tprello 7688 lda $4,foo($29) !tprel' 7689 tls_first_major=2 7690 tls_first_minor=13 7691 ;; 7692 i[34567]86-*-*) 7693 conftest_s=' 7694 .section ".tdata","awT",@progbits 7695 foo: .long 25 7696 .text 7697 movl %gs:0, %eax 7698 leal foo@TLSGD(,%ebx,1), %eax 7699 leal foo@TLSLDM(%ebx), %eax 7700 leal foo@DTPOFF(%eax), %edx 7701 movl foo@GOTTPOFF(%ebx), %eax 7702 subl foo@GOTTPOFF(%ebx), %eax 7703 addl foo@GOTNTPOFF(%ebx), %eax 7704 movl foo@INDNTPOFF, %eax 7705 movl $foo@TPOFF, %eax 7706 subl $foo@TPOFF, %eax 7707 leal foo@NTPOFF(%ecx), %eax' 7708 tls_first_major=2 7709 tls_first_minor=14 7710 ;; 7711 x86_64-*-*) 7712 conftest_s=' 7713 .section ".tdata","awT",@progbits 7714 foo: .long 25 7715 .text 7716 movq %fs:0, %rax 7717 leaq foo@TLSGD(%rip), %rdi 7718 leaq foo@TLSLD(%rip), %rdi 7719 leaq foo@DTPOFF(%rax), %rdx 7720 movq foo@GOTTPOFF(%rip), %rax 7721 movq $foo@TPOFF, %rax' 7722 tls_first_major=2 7723 tls_first_minor=14 7724 ;; 7725 ia64-*-*) 7726 conftest_s=' 7727 .section ".tdata","awT",@progbits 7728 foo: data8 25 7729 .text 7730 addl r16 = @ltoff(@dtpmod(foo#)), gp 7731 addl r17 = @ltoff(@dtprel(foo#)), gp 7732 addl r18 = @ltoff(@tprel(foo#)), gp 7733 addl r19 = @dtprel(foo#), gp 7734 adds r21 = @dtprel(foo#), r13 7735 movl r23 = @dtprel(foo#) 7736 addl r20 = @tprel(foo#), gp 7737 adds r22 = @tprel(foo#), r13 7738 movl r24 = @tprel(foo#)' 7739 tls_first_major=2 7740 tls_first_minor=13 7741 ;; 7742 s390-*-*) 7743 conftest_s=' 7744 .section ".tdata","awT",@progbits 7745 foo: .long 25 7746 .text 7747 .long foo@TLSGD 7748 .long foo@TLSLDM 7749 .long foo@DTPOFF 7750 .long foo@NTPOFF 7751 .long foo@GOTNTPOFF 7752 .long foo@INDNTPOFF 7753 l %r1,foo@GOTNTPOFF(%r12) 7754 l %r1,0(%r1):tls_load:foo 7755 bas %r14,0(%r1,%r13):tls_gdcall:foo 7756 bas %r14,0(%r1,%r13):tls_ldcall:foo' 7757 tls_first_major=2 7758 tls_first_minor=14 7759 ;; 7760 s390x-*-*) 7761 conftest_s=' 7762 .section ".tdata","awT",@progbits 7763 foo: .long 25 7764 .text 7765 .quad foo@TLSGD 7766 .quad foo@TLSLDM 7767 .quad foo@DTPOFF 7768 .quad foo@NTPOFF 7769 .quad foo@GOTNTPOFF 7770 lg %r1,foo@GOTNTPOFF(%r12) 7771 larl %r1,foo@INDNTPOFF 7772 brasl %r14,__tls_get_offset@PLT:tls_gdcall:foo 7773 brasl %r14,__tls_get_offset@PLT:tls_ldcall:foo' 7774 tls_first_major=2 7775 tls_first_minor=14 7776 ;; 7777 esac 7778 if test -z "$tls_first_major"; then 7779 : 7780 elif test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x 7781 then 7782 if test "$gcc_cv_gas_major_version" -eq "$tls_first_major" \ 7783 -a "$gcc_cv_gas_minor_version" -ge "$tls_first_minor" \ 7784 -o "$gcc_cv_gas_major_version" -gt "$tls_first_major"; then 7785 gcc_cv_as_tls=yes 7786 fi 7787 elif test x$gcc_cv_as != x; then 7788 echo "$conftest_s" > conftest.s 7789 if $gcc_cv_as --fatal-warnings -o conftest.o conftest.s > /dev/null 2>&1 7790 then 7791 gcc_cv_as_tls=yes 7792 fi 7793 rm -f conftest.s conftest.o 7794 fi 7795 if test "$gcc_cv_as_tls" = yes; then 7796 cat >> confdefs.h <<\EOF 7797 #define HAVE_AS_TLS 1 7798 EOF 7799 7800 fi 7801 echo "$ac_t""$gcc_cv_as_tls" 1>&6 7802 7586 7803 case "$target" in 7587 7804 # All TARGET_ABI_OSF targets. 7588 7805 alpha*-*-osf* | alpha*-*-linux* | alpha*-*-*bsd*) 7589 7806 echo $ac_n "checking assembler supports explicit relocations""... $ac_c" 1>&6 7590 echo "configure:7 591: checking assembler supports explicit relocations" >&57807 echo "configure:7808: checking assembler supports explicit relocations" >&5 7591 7808 if eval "test \"`echo '$''{'gcc_cv_as_explicit_relocs'+set}'`\" = set"; then 7592 7809 echo $ac_n "(cached) $ac_c" 1>&6 … … 7638 7855 sparc*-*-*) 7639 7856 echo $ac_n "checking assembler .register pseudo-op support""... $ac_c" 1>&6 7640 echo "configure:7 641: checking assembler .register pseudo-op support" >&57857 echo "configure:7858: checking assembler .register pseudo-op support" >&5 7641 7858 if eval "test \"`echo '$''{'gcc_cv_as_register_pseudo_op'+set}'`\" = set"; then 7642 7859 echo $ac_n "(cached) $ac_c" 1>&6 … … 7666 7883 7667 7884 echo $ac_n "checking assembler supports -relax""... $ac_c" 1>&6 7668 echo "configure:7 669: checking assembler supports -relax" >&57885 echo "configure:7886: checking assembler supports -relax" >&5 7669 7886 if eval "test \"`echo '$''{'gcc_cv_as_relax_opt'+set}'`\" = set"; then 7670 7887 echo $ac_n "(cached) $ac_c" 1>&6 … … 7694 7911 7695 7912 echo $ac_n "checking assembler and linker support unaligned pc related relocs""... $ac_c" 1>&6 7696 echo "configure:7 697: checking assembler and linker support unaligned pc related relocs" >&57913 echo "configure:7914: checking assembler and linker support unaligned pc related relocs" >&5 7697 7914 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel'+set}'`\" = set"; then 7698 7915 echo $ac_n "(cached) $ac_c" 1>&6 … … 7721 7938 7722 7939 echo $ac_n "checking assembler and linker support unaligned pc related relocs against hidden symbols""... $ac_c" 1>&6 7723 echo "configure:7 724: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&57940 echo "configure:7941: checking assembler and linker support unaligned pc related relocs against hidden symbols" >&5 7724 7941 if eval "test \"`echo '$''{'gcc_cv_as_sparc_ua_pcrel_hidden'+set}'`\" = set"; then 7725 7942 echo $ac_n "(cached) $ac_c" 1>&6 … … 7761 7978 7762 7979 echo $ac_n "checking for assembler offsetable %lo() support""... $ac_c" 1>&6 7763 echo "configure:7 764: checking for assembler offsetable %lo() support" >&57980 echo "configure:7981: checking for assembler offsetable %lo() support" >&5 7764 7981 if eval "test \"`echo '$''{'gcc_cv_as_offsetable_lo10'+set}'`\" = set"; then 7765 7982 echo $ac_n "(cached) $ac_c" 1>&6 … … 7800 8017 i[34567]86-*-* | x86_64-*-*) 7801 8018 echo $ac_n "checking assembler instructions""... $ac_c" 1>&6 7802 echo "configure: 7803: checking assembler instructions" >&58019 echo "configure:8020: checking assembler instructions" >&5 7803 8020 gcc_cv_as_instructions= 7804 8021 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; then … … 7826 8043 echo "$ac_t""$gcc_cv_as_instructions" 1>&6 7827 8044 8045 echo $ac_n "checking cmov syntax""... $ac_c" 1>&6 8046 echo "configure:8047: checking cmov syntax" >&5 8047 gcc_cv_as_ix86_cmov_sun_syntax=no 8048 if test x$gcc_cv_as != x; then 8049 echo 'cmovl.l %edx, %eax' > conftest.s 8050 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8051 gcc_cv_as_ix86_cmov_sun_syntax=yes 8052 fi 8053 rm -f conftest.s conftest.o 8054 fi 8055 if test "x$gcc_cv_as_ix86_cmov_sun_syntax" = xyes; then 8056 cat >> confdefs.h <<\EOF 8057 #define HAVE_AS_IX86_CMOV_SUN_SYNTAX 1 8058 EOF 8059 8060 fi 8061 echo "$ac_t""$gcc_cv_as_ix86_cmov_sun_syntax" 1>&6 8062 7828 8063 echo $ac_n "checking assembler GOTOFF in data directives""... $ac_c" 1>&6 7829 echo "configure: 7830: checking assembler GOTOFF in data directives" >&58064 echo "configure:8065: checking assembler GOTOFF in data directives" >&5 7830 8065 gcc_cv_as_gotoff_in_data=no 7831 8066 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x … … 7854 8089 echo "$ac_t""$gcc_cv_as_gotoff_in_data" 1>&6 7855 8090 ;; 8091 8092 ia64*-*-*) 8093 echo $ac_n "checking assembler supports ltoffx and ldxmov""... $ac_c" 1>&6 8094 echo "configure:8095: checking assembler supports ltoffx and ldxmov" >&5 8095 if eval "test \"`echo '$''{'gcc_cv_as_ltoffx_ldxmov_relocs'+set}'`\" = set"; then 8096 echo $ac_n "(cached) $ac_c" 1>&6 8097 else 8098 8099 gcc_cv_as_ltoffx_ldxmov_relocs=unknown 8100 if test x$gcc_cv_gas_major_version != x \ 8101 -a x$gcc_cv_gas_minor_version != x 8102 then 8103 if test "$gcc_cv_gas_major_version" -eq 2 \ 8104 -a "$gcc_cv_gas_minor_version" -ge 14 \ 8105 -o "$gcc_cv_gas_major_version" -gt 2; then 8106 gcc_cv_as_ltoffx_ldxmov_relocs=yes 8107 fi 8108 elif test x$gcc_cv_as != x; then 8109 cat > conftest.s << 'EOF' 8110 .text 8111 addl r15 = @ltoffx(x#), gp 8112 ;; 8113 ld8.mov r16 = [r15], x# 8114 EOF 8115 if $gcc_cv_as -o conftest.o conftest.s > /dev/null 2>&1; then 8116 gcc_cv_as_ltoffx_ldxmov_relocs=yes 8117 else 8118 gcc_cv_as_ltoffx_ldxmov_relocs=no 8119 fi 8120 rm -f conftest.s conftest.o 8121 fi 8122 8123 fi 8124 8125 echo "$ac_t""$gcc_cv_as_ltoffx_ldxmov_relocs" 1>&6 8126 if test "x$gcc_cv_as_ltoffx_ldxmov_relocs" = xyes; then 8127 cat >> confdefs.h <<\EOF 8128 #define HAVE_AS_LTOFFX_LDXMOV_RELOCS 1 8129 EOF 8130 8131 fi 8132 ;; 7856 8133 esac 7857 8134 7858 8135 echo $ac_n "checking assembler dwarf2 debug_line support""... $ac_c" 1>&6 7859 echo "configure: 7860: checking assembler dwarf2 debug_line support" >&58136 echo "configure:8137: checking assembler dwarf2 debug_line support" >&5 7860 8137 gcc_cv_as_dwarf2_debug_line=no 7861 8138 # ??? Not all targets support dwarf2 debug_line, even within a version … … 7866 8143 # version to the per-target configury. 7867 8144 case "$target" in 7868 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* | x86_64*-*-*) 8145 i?86*-*-* | mips*-*-* | alpha*-*-* | powerpc*-*-* | sparc*-*-* | m68*-*-* \ 8146 | x86_64*-*-* | hppa*-*-* | arm*-*-* | strongarm*-*-* | xscale*-*-*) 7869 8147 insn="nop" 7870 8148 ;; … … 7913 8191 7914 8192 echo $ac_n "checking assembler --gdwarf2 support""... $ac_c" 1>&6 7915 echo "configure: 7916: checking assembler --gdwarf2 support" >&58193 echo "configure:8194: checking assembler --gdwarf2 support" >&5 7916 8194 gcc_cv_as_gdwarf2_flag=no 7917 8195 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; … … 7922 8200 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 7923 8201 && test x"$insn" != x ; then 7924 gcc_cv_as_gdwarf2_ debug_flag="yes"8202 gcc_cv_as_gdwarf2_flag="yes" 7925 8203 fi 7926 8204 elif test x$gcc_cv_as != x -a x"$insn" != x ; then … … 7942 8220 7943 8221 echo $ac_n "checking assembler --gstabs support""... $ac_c" 1>&6 7944 echo "configure: 7945: checking assembler --gstabs support" >&58222 echo "configure:8223: checking assembler --gstabs support" >&5 7945 8223 gcc_cv_as_gstabs_flag=no 7946 8224 if test x$gcc_cv_gas_major_version != x -a x$gcc_cv_gas_minor_version != x; … … 7951 8229 && grep 'obj_format = elf' ../gas/Makefile > /dev/null \ 7952 8230 && test x"$insn" != x ; then 7953 gcc_cv_as_gstabs_ debug_flag="yes"8231 gcc_cv_as_gstabs_flag="yes" 7954 8232 fi 7955 8233 elif test x$gcc_cv_as != x -a x"$insn" != x ; then … … 7958 8236 if $gcc_cv_as --gstabs -o conftest.o conftest.s > /dev/null 2>&1 ; then 7959 8237 gcc_cv_as_gstabs_flag="yes" 8238 # The native Solaris 9/Intel assembler doesn't understand --gstabs 8239 # and warns about it, but still exits successfully. So check for 8240 # this. 8241 if $gcc_cv_as --gstabs -o conftest.o conftest.s 2>&1 | \ 8242 grep -i warning > /dev/null ; then 8243 gcc_cv_as_gstabs_flag="no" 8244 fi 7960 8245 fi 7961 8246 rm -f conftest.s conftest.o … … 7969 8254 echo "$ac_t""$gcc_cv_as_gstabs_flag" 1>&6 7970 8255 8256 echo $ac_n "checking linker read-only and read-write section mixing""... $ac_c" 1>&6 8257 echo "configure:8258: checking linker read-only and read-write section mixing" >&5 8258 gcc_cv_ld_ro_rw_mix=unknown 8259 if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then 8260 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 10 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then 8261 gcc_cv_ld_ro_rw_mix=read-write 8262 fi 8263 elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then 8264 echo '.section myfoosect, "a"' > conftest1.s 8265 echo '.section myfoosect, "aw"' > conftest2.s 8266 echo '.byte 1' >> conftest2.s 8267 echo '.section myfoosect, "a"' > conftest3.s 8268 echo '.byte 0' >> conftest3.s 8269 if $gcc_cv_as -o conftest1.o conftest1.s > /dev/null 2>&1 \ 8270 && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ 8271 && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ 8272 && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ 8273 conftest2.o conftest3.o > /dev/null 2>&1; then 8274 gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ 8275 | sed -e '/myfoosect/!d' -e N` 8276 if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then 8277 if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then 8278 gcc_cv_ld_ro_rw_mix=read-only 8279 else 8280 gcc_cv_ld_ro_rw_mix=read-write 8281 fi 8282 fi 8283 fi 8284 rm -f conftest.* conftest[123].* 8285 fi 8286 if test x$gcc_cv_ld_ro_rw_mix = xread-write; then 8287 cat >> confdefs.h <<\EOF 8288 #define HAVE_LD_RO_RW_SECTION_MIXING 1 8289 EOF 8290 8291 fi 8292 echo "$ac_t""$gcc_cv_ld_ro_rw_mix" 1>&6 8293 7971 8294 echo $ac_n "checking linker PT_GNU_EH_FRAME support""... $ac_c" 1>&6 7972 echo "configure: 7973: checking linker PT_GNU_EH_FRAME support" >&58295 echo "configure:8296: checking linker PT_GNU_EH_FRAME support" >&5 7973 8296 gcc_cv_ld_eh_frame_hdr=no 7974 8297 if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then … … 7982 8305 fi 7983 8306 fi 7984 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&67985 8307 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes; then 7986 echo $ac_n "checking whether linker eh_frame optimizations work properly""... $ac_c" 1>&67987 echo "configure:7988: checking whether linker eh_frame optimizations work properly" >&57988 gcc_cv_ld_eh_frame_hdr_works=no7989 if test x$gcc_cv_gld_major_version != x -a x$gcc_cv_gld_minor_version != x; then7990 if test "$gcc_cv_gld_major_version" -eq 2 -a "$gcc_cv_gld_minor_version" -ge 13 -o "$gcc_cv_gld_major_version" -gt 2 && grep 'EMUL = elf' ../ld/Makefile > /dev/null; then7991 gcc_cv_ld_eh_frame_hdr_works=yes7992 fi7993 elif test x$gcc_cv_ld != x; then7994 for gcc_WS in 4 8; do7995 cat > conftest.s <<EOF7996 .text7997 .LFB1: .skip 647998 .LFE1:7999 .LFB2: .skip 648000 .LFE2:8001 .LFB3: .skip 648002 .LFE3:8003 .section .eh_frame,"aw",@progbits8004 .Lframe1:8005 .4byte .LECIE1-.LSCIE18006 .LSCIE1:8007 .4byte 0x08008 .byte 0x18009 .ascii "zR\0"8010 .uleb128 0x18011 .sleb128 -48012 .byte 0x88013 .uleb128 0x18014 .byte 0x508015 .byte 0xc8016 .uleb128 0x48017 .uleb128 0x48018 .byte 0x888019 .uleb128 0x18020 .balign ${gcc_WS}8021 .LECIE1:8022 .LSFDE1:8023 .4byte .LEFDE1-.LASFDE18024 .LASFDE1:8025 .4byte .LASFDE1-.Lframe18026 .${gcc_WS}byte .LFB18027 .${gcc_WS}byte .LFE1-.LFB18028 .uleb128 0x08029 .balign ${gcc_WS}8030 .LEFDE1:8031 .LSFDE2:8032 .4byte .LEFDE2-.LASFDE28033 .LASFDE2:8034 .4byte .LASFDE2-.Lframe18035 .${gcc_WS}byte .LFB28036 .${gcc_WS}byte .LFE2-.LFB28037 .uleb128 0x08038 .balign ${gcc_WS}8039 .LEFDE2:8040 .LSFDE3:8041 .4byte .LEFDE3-.LASFDE38042 .LASFDE3:8043 .4byte .LASFDE3-.Lframe18044 .${gcc_WS}byte .LFB38045 .${gcc_WS}byte .LFE3-.LFB38046 .uleb128 0x08047 .balign ${gcc_WS}8048 .LEFDE3:8049 .4byte 08050 EOF8051 # r=bird: Make this omission OS/2 target specific.8052 rm -f conftest.*8053 done8054 fi8055 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr_works" 1>&68056 fi8057 if test x"$gcc_cv_ld_eh_frame_hdr" = xyes \8058 && test x"$gcc_cv_ld_eh_frame_hdr_works" = xyes; then8059 8308 cat >> confdefs.h <<\EOF 8060 8309 #define HAVE_LD_EH_FRAME_HDR 1 … … 8062 8311 8063 8312 fi 8064 8065 if test "$prefix" != "/usr" && test "$prefix" != "/usr/local" ; then 8313 echo "$ac_t""$gcc_cv_ld_eh_frame_hdr" 1>&6 8314 8315 # Miscellaneous target-specific checks. 8316 case "$target" in 8317 mips*-*-*) 8318 echo $ac_n "checking whether libgloss uses STARTUP directives consistently""... $ac_c" 1>&6 8319 echo "configure:8320: checking whether libgloss uses STARTUP directives consistently" >&5 8320 gcc_cv_mips_libgloss_startup=no 8321 gcc_cv_libgloss_srcdir=`echo $srcdir | sed -e 's,/gcc$,,'`/libgloss 8322 if test "x$exec_prefix" = xNONE; then 8323 if test "x$prefix" = xNONE; then 8324 test_prefix=/usr/local 8325 else 8326 test_prefix=$prefix 8327 fi 8328 else 8329 test_prefix=$exec_prefix 8330 fi 8331 for f in $gcc_cv_libgloss_srcdir/mips/idt.ld $test_prefix/$target_alias/lib/idt.ld 8332 do 8333 if grep '^STARTUP' $f > /dev/null 2>&1; then 8334 gcc_cv_mips_libgloss_startup=yes 8335 break 8336 fi 8337 done 8338 if test x"$gcc_cv_mips_libgloss_startup" = xyes; then 8339 cat >> confdefs.h <<\EOF 8340 #define HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES 1 8341 EOF 8342 8343 fi 8344 echo "$ac_t""$gcc_cv_mips_libgloss_startup" 1>&6 8345 ;; 8346 esac 8347 8348 if test x$with_sysroot = x && test x$host = x$target \ 8349 && test "$prefix" != "/usr" && test "x$prefix" != "x$local_prefix" ; then 8066 8350 cat >> confdefs.h <<EOF 8067 8351 #define PREFIX_INCLUDE_DIR "$prefix/include" … … 8084 8368 fi 8085 8369 else 8086 if test x"${enable_languages}" = x ||8087 8370 if test x"${enable_languages}" = x \ 8371 || test x"${enable_languages}" = xyes; 8088 8372 then 8089 8373 { echo "configure: error: --enable-languages needs at least one language argument" 1>&2; exit 1; } … … 8123 8407 done 8124 8408 8409 expected_languages=`echo ,${enable_languages}, | sed -e 's:,: :g' -e 's: *: :g' -e 's: *: :g' -e 's:^ ::' -e 's: $::'` 8410 found_languages= 8125 8411 subdirs= 8126 8412 for lang in ${srcdir}/*/config-lang.in .. … … 8146 8432 *) add_this_lang=no ;; 8147 8433 esac 8434 found_languages="${found_languages} ${lang_alias}" 8148 8435 if test x"${add_this_lang}" = xyes; then 8149 8436 case $lang in … … 8162 8449 done 8163 8450 8451 missing_languages= 8452 for expected_language in ${expected_languages} .. 8453 do 8454 if test "${expected_language}" != ..; then 8455 missing_language="${expected_language}" 8456 if test "${expected_language}" = "c" \ 8457 || test "${expected_language}" = "all"; then 8458 missing_language= 8459 fi 8460 for found_language in ${found_languages} .. 8461 do 8462 if test "${found_language}" != ..; then 8463 if test "${expected_language}" = "${found_language}"; then 8464 missing_language= 8465 fi 8466 fi 8467 done 8468 if test "x${missing_language}" != x; then 8469 missing_languages="${missing_languages} ${missing_language}" 8470 fi 8471 fi 8472 done 8473 8474 if test "x$missing_languages" != x; then 8475 { echo "configure: error: 8476 The following requested languages were not found:${missing_languages} 8477 The following languages were available: c${found_languages}" 1>&2; exit 1; } 8478 fi 8479 8164 8480 # Make gthr-default.h if we have a thread file. 8165 8481 gthread_flags= … … 8206 8522 8207 8523 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 8208 echo "configure:8 209: checking whether to enable maintainer-specific portions of Makefiles" >&58524 echo "configure:8525: checking whether to enable maintainer-specific portions of Makefiles" >&5 8209 8525 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 8210 8526 if test "${enable_maintainer_mode+set}" = set; then … … 8223 8539 MAINT='#' 8224 8540 fi 8225 8226 # With Setjmp/Longjmp based exception handling.8227 # Check whether --enable-sjlj-exceptions or --disable-sjlj-exceptions was given.8228 if test "${enable_sjlj_exceptions+set}" = set; then8229 enableval="$enable_sjlj_exceptions"8230 sjlj=`if test $enableval = yes; then echo 1; else echo 0; fi`8231 cat >> confdefs.h <<EOF8232 #define CONFIG_SJLJ_EXCEPTIONS $sjlj8233 EOF8234 8235 fi8236 8237 8541 8238 8542 # Make empty files to contain the specs and options for each language. … … 8261 8565 all_compilers= 8262 8566 all_stagestuff= 8263 all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc '8567 all_outputs='Makefile intl/Makefile fixinc/Makefile gccbug mklibgcc mkheaders' 8264 8568 # List of language makefile fragments. 8265 8569 all_lang_makefiles= 8570 # Files for gengtype 8571 all_gtfiles="$target_gtfiles" 8572 # Files for gengtype with language 8573 all_gtfiles_files_langs= 8574 all_gtfiles_files_files= 8266 8575 8267 8576 # Add the language fragments. … … 8284 8593 stagestuff= 8285 8594 outputs= 8595 gtfiles= 8286 8596 . ${srcdir}/$s/config-lang.in 8287 8597 if test "x$language" = x … … 8302 8612 all_stagestuff="$all_stagestuff $stagestuff" 8303 8613 all_outputs="$all_outputs $outputs" 8614 all_gtfiles="$all_gtfiles $gtfiles" 8615 for f in .. $gtfiles 8616 do 8617 if test $f != ".." 8618 then 8619 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " 8620 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 8621 fi 8622 done 8304 8623 fi 8624 done 8625 8626 # Pick up gtfiles for c 8627 gtfiles= 8628 s="c" 8629 . ${srcdir}/c-config-lang.in 8630 all_gtfiles="$all_gtfiles $gtfiles" 8631 for f in .. $gtfiles 8632 do 8633 if test $f != ".." 8634 then 8635 all_gtfiles_files_langs="$all_gtfiles_files_langs ${s} " 8636 all_gtfiles_files_files="$all_gtfiles_files_files ${f} " 8637 fi 8305 8638 done 8306 8639 … … 8427 8760 8428 8761 8429 # Nothing to do for FLOAT_H, float_format already handled. 8430 objdir=`pwd` 8762 objdir=`${PWDCMD-pwd}` 8431 8763 8432 8764 … … 8447 8779 8448 8780 # Substitute configuration variables 8781 8782 8783 8784 8785 8449 8786 8450 8787 … … 8691 9028 s%@PATH_IFS@%$PATH_IFS%g 8692 9029 s%@EXEEXT@%$EXEEXT%g 8693 s%@enable_multilib@%$enable_multilib%g 8694 s%@enable_shared@%$enable_shared%g 9030 s%@TARGET_SYSTEM_ROOT@%$TARGET_SYSTEM_ROOT%g 9031 s%@TARGET_SYSTEM_ROOT_DEFINE@%$TARGET_SYSTEM_ROOT_DEFINE%g 9032 s%@CROSS_SYSTEM_HEADER_DIR@%$CROSS_SYSTEM_HEADER_DIR%g 8695 9033 s%@host@%$host%g 8696 9034 s%@host_alias@%$host_alias%g … … 8716 9054 s%@CPP@%$CPP%g 8717 9055 s%@warn_cflags@%$warn_cflags%g 9056 s%@enable_multilib@%$enable_multilib%g 9057 s%@nocommon_flag@%$nocommon_flag%g 9058 s%@valgrind_path@%$valgrind_path%g 9059 s%@valgrind_path_defines@%$valgrind_path_defines%g 9060 s%@valgrind_command@%$valgrind_command%g 9061 s%@coverage_flags@%$coverage_flags%g 9062 s%@enable_shared@%$enable_shared%g 8718 9063 s%@stage1_cflags@%$stage1_cflags%g 8719 9064 s%@SET_MAKE@%$SET_MAKE%g … … 8733 9078 s%@COLLECT2_LIBS@%$COLLECT2_LIBS%g 8734 9079 s%@GNAT_LIBEXC@%$GNAT_LIBEXC%g 9080 s%@LDEXP_LIB@%$LDEXP_LIB%g 8735 9081 s%@TARGET_GETGROUPS_T@%$TARGET_GETGROUPS_T%g 8736 9082 s%@LIBICONV@%$LIBICONV%g 9083 s%@gcc_cv_initfinit_array@%$gcc_cv_initfinit_array%g 8737 9084 s%@manext@%$manext%g 8738 9085 s%@objext@%$objext%g 9086 s%@extra_modes_file@%$extra_modes_file%g 8739 9087 s%@FORBUILD@%$FORBUILD%g 8740 9088 s%@PACKAGE@%$PACKAGE%g … … 8764 9112 s%@SYSTEM_HEADER_DIR@%$SYSTEM_HEADER_DIR%g 8765 9113 s%@inhibit_libc@%$inhibit_libc%g 8766 s%@ HOST_PREFIX@%$HOST_PREFIX%g8767 s%@ HOST_PREFIX_1@%$HOST_PREFIX_1%g9114 s%@BUILD_PREFIX@%$BUILD_PREFIX%g 9115 s%@BUILD_PREFIX_1@%$BUILD_PREFIX_1%g 8768 9116 s%@HOST_CC@%$HOST_CC%g 8769 9117 s%@HOST_CFLAGS@%$HOST_CFLAGS%g … … 8784 9132 s%@objdir@%$objdir%g 8785 9133 s%@subdirs@%$subdirs%g 9134 s%@srcdir@%$srcdir%g 8786 9135 s%@all_boot_languages@%$all_boot_languages%g 8787 9136 s%@all_compilers@%$all_compilers%g 9137 s%@all_gtfiles@%$all_gtfiles%g 9138 s%@all_gtfiles_files_langs@%$all_gtfiles_files_langs%g 9139 s%@all_gtfiles_files_files@%$all_gtfiles_files_files%g 8788 9140 s%@all_lang_makefiles@%$all_lang_makefiles%g 8789 9141 s%@all_languages@%$all_languages%g … … 8838 9190 s%@tm_file_list@%$tm_file_list%g 8839 9191 s%@tm_file@%$tm_file%g 9192 s%@tm_defines@%$tm_defines%g 8840 9193 s%@tm_p_file_list@%$tm_p_file_list%g 8841 9194 s%@tm_p_file@%$tm_p_file%g … … 9109 9462 for d in .. ${subdirs} fixinc ; do 9110 9463 if test $d != ..; then 9111 STARTDIR=` pwd`9464 STARTDIR=`${PWDCMD-pwd}` 9112 9465 cd $d 9113 9466 for t in stage1 stage2 stage3 stage4 include -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.