Changeset 1394 for trunk/src/gcc/libiberty/configure
- Timestamp:
- Apr 28, 2004, 6:58:06 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gcc/libiberty/configure
-
Property cvs2svn:cvs-rev
changed from
1.4
to1.5
r1393 r1394 13 13 # Any additions from configure.in: 14 14 ac_help="$ac_help 15 --with-target-subdir=SUBDIR Configuring in a subdirectory" 15 --with-target-subdir=SUBDIR Configuring in a subdirectory for target" 16 ac_help="$ac_help 17 --with-build-subdir=SUBDIR Configuring in a subdirectory for build" 16 18 ac_help="$ac_help 17 19 --with-cross-host=HOST Configuring with a cross compiler" … … 22 24 enable make rules and dependencies not useful 23 25 (and sometimes confusing) to the casual installer" 26 ac_help="$ac_help 27 --enable-install-libiberty Install headers for end users" 24 28 25 29 # Initialize some variables set by options. … … 532 536 533 537 echo $ac_n "checking for path separator""... $ac_c" 1>&6 534 echo "configure:53 5: checking for path separator" >&5538 echo "configure:539: checking for path separator" >&5 535 539 # Filter path to get backslahes into forwardslashes 536 540 case "`uname -s 2> /dev/null`" in … … 546 550 547 551 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 548 echo "configure:5 49: checking for Cygwin environment" >&5552 echo "configure:553: checking for Cygwin environment" >&5 549 553 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 550 554 echo $ac_n "(cached) $ac_c" 1>&6 551 555 else 552 556 cat > conftest.$ac_ext <<EOF 553 #line 55 4"configure"557 #line 558 "configure" 554 558 #include "confdefs.h" 555 559 … … 562 566 ; return 0; } 563 567 EOF 564 if { (eval echo configure:56 5: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then568 if { (eval echo configure:569: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 565 569 rm -rf conftest* 566 570 ac_cv_cygwin=yes … … 579 583 test "$ac_cv_cygwin" = yes && CYGWIN=yes 580 584 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 581 echo "configure:58 2: checking for mingw32 environment" >&5585 echo "configure:586: checking for mingw32 environment" >&5 582 586 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 583 587 echo $ac_n "(cached) $ac_c" 1>&6 584 588 else 585 589 cat > conftest.$ac_ext <<EOF 586 #line 5 87"configure"590 #line 591 "configure" 587 591 #include "confdefs.h" 588 592 … … 591 595 ; return 0; } 592 596 EOF 593 if { (eval echo configure:59 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then597 if { (eval echo configure:598: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 594 598 rm -rf conftest* 595 599 ac_cv_mingw32=yes … … 608 612 test "$ac_cv_mingw32" = yes && MINGW32=yes 609 613 echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 610 echo "configure:61 1: checking for EMX/OS2 environment" >&5614 echo "configure:615: checking for EMX/OS2 environment" >&5 611 615 if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then 612 616 echo $ac_n "(cached) $ac_c" 1>&6 … … 614 618 : ${CC=gcc.exe} 615 619 cat > conftest.$ac_ext <<EOF 616 #line 6 17"configure"620 #line 621 "configure" 617 621 #include "confdefs.h" 618 622 … … 621 625 ; return 0; } 622 626 EOF 623 if { (eval echo configure:62 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then627 if { (eval echo configure:628: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 624 628 rm -rf conftest* 625 629 ac_cv_emxos2=yes … … 652 656 653 657 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 654 echo "configure:65 5: checking for executable suffix" >&5658 echo "configure:659: checking for executable suffix" >&5 655 659 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 656 660 echo $ac_n "(cached) $ac_c" 1>&6 … … 662 666 echo 'int main () { return 0; }' > conftest.$ac_ext 663 667 ac_cv_exeext= 664 if { (eval echo configure:66 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then668 if { (eval echo configure:669: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then 665 669 for file in conftest.*; do 666 670 case $file in … … 696 700 fi 697 701 702 # Check whether --with-build-subdir or --without-build-subdir was given. 703 if test "${with_build_subdir+set}" = set; then 704 withval="$with_build_subdir" 705 : 706 fi 707 698 708 # Check whether --with-cross-host or --without-cross-host was given. 699 709 if test "${with_cross_host+set}" = set; then … … 710 720 711 721 if test "${srcdir}" = "."; then 712 if test -z "${with_target_subdir}"; then 722 if test -n "${with_build_subdir}"; then 723 libiberty_topdir="${srcdir}/../.." 724 with_target_subdir= 725 elif test -z "${with_target_subdir}"; then 713 726 libiberty_topdir="${srcdir}/.." 714 727 else … … 745 758 746 759 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 747 echo "configure:7 48: checking whether to enable maintainer-specific portions of Makefiles" >&5760 echo "configure:761: checking whether to enable maintainer-specific portions of Makefiles" >&5 748 761 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 749 762 if test "${enable_maintainer_mode+set}" = set; then … … 770 783 set dummy makeinfo; ac_word=$2 771 784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 772 echo "configure:7 73: checking for $ac_word" >&5785 echo "configure:786: checking for $ac_word" >&5 773 786 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 774 787 echo $ac_n "(cached) $ac_c" 1>&6 … … 817 830 set dummy perl; ac_word=$2 818 831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 819 echo "configure:8 20: checking for $ac_word" >&5832 echo "configure:833: checking for $ac_word" >&5 820 833 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 821 834 echo $ac_n "(cached) $ac_c" 1>&6 … … 858 871 859 872 echo $ac_n "checking host system type""... $ac_c" 1>&6 860 echo "configure:8 61: checking host system type" >&5873 echo "configure:874: checking host system type" >&5 861 874 862 875 host_alias=$host … … 881 894 882 895 echo $ac_n "checking build system type""... $ac_c" 1>&6 883 echo "configure:8 84: checking build system type" >&5896 echo "configure:897: checking build system type" >&5 884 897 885 898 build_alias=$build … … 907 920 set dummy ${ac_tool_prefix}ar; ac_word=$2 908 921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 909 echo "configure:9 10: checking for $ac_word" >&5922 echo "configure:923: checking for $ac_word" >&5 910 923 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 911 924 echo $ac_n "(cached) $ac_c" 1>&6 … … 940 953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 941 954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 942 echo "configure:9 43: checking for $ac_word" >&5955 echo "configure:956: checking for $ac_word" >&5 943 956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 944 957 echo $ac_n "(cached) $ac_c" 1>&6 … … 973 986 set dummy ranlib; ac_word=$2 974 987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 975 echo "configure:9 76: checking for $ac_word" >&5988 echo "configure:989: checking for $ac_word" >&5 976 989 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 977 990 echo $ac_n "(cached) $ac_c" 1>&6 … … 1011 1024 set dummy gcc; ac_word=$2 1012 1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1013 echo "configure:10 14: checking for $ac_word" >&51026 echo "configure:1027: checking for $ac_word" >&5 1014 1027 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1015 1028 echo $ac_n "(cached) $ac_c" 1>&6 … … 1042 1055 set dummy cc; ac_word=$2 1043 1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1044 echo "configure:10 45: checking for $ac_word" >&51057 echo "configure:1058: checking for $ac_word" >&5 1045 1058 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 1046 1059 echo $ac_n "(cached) $ac_c" 1>&6 … … 1093 1106 1094 1107 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 1095 echo "configure:1 096: checking whether we are using GNU C" >&51108 echo "configure:1109: checking whether we are using GNU C" >&5 1096 1109 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 1097 1110 echo $ac_n "(cached) $ac_c" 1>&6 … … 1102 1115 #endif 1103 1116 EOF 1104 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:11 05: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then1117 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1118: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 1105 1118 ac_cv_prog_gcc=yes 1106 1119 else … … 1118 1131 CFLAGS= 1119 1132 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1120 echo "configure:11 21: checking whether ${CC-cc} accepts -g" >&51133 echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5 1121 1134 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1122 1135 echo $ac_n "(cached) $ac_c" 1>&6 … … 1148 1161 1149 1162 1163 if test "x$CC" != xcc; then 1164 echo $ac_n "checking whether $CC and cc understand -c and -o together""... $ac_c" 1>&6 1165 echo "configure:1166: checking whether $CC and cc understand -c and -o together" >&5 1166 else 1167 echo $ac_n "checking whether cc understands -c and -o together""... $ac_c" 1>&6 1168 echo "configure:1169: checking whether cc understands -c and -o together" >&5 1169 fi 1170 set dummy $CC; ac_cc="`echo $2 | 1171 sed -e 's/[^a-zA-Z0-9_]/_/g' -e 's/^[0-9]/_/'`" 1172 if eval "test \"`echo '$''{'ac_cv_prog_cc_${ac_cc}_c_o'+set}'`\" = set"; then 1173 echo $ac_n "(cached) $ac_c" 1>&6 1174 else 1175 echo 'foo(){}' > conftest.c 1176 # Make sure it works both with $CC and with simple cc. 1177 # We do the test twice because some compilers refuse to overwrite an 1178 # existing .o file with -o, though they will create one. 1179 ac_try='${CC-cc} -c conftest.c -o conftest.o 1>&5' 1180 if { (eval echo configure:1181: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1181 test -f conftest.o && { (eval echo configure:1182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1182 then 1183 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 1184 if test "x$CC" != xcc; then 1185 # Test first that cc exists at all. 1186 if { ac_try='cc -c conftest.c 1>&5'; { (eval echo configure:1187: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; }; then 1187 ac_try='cc -c conftest.c -o conftest.o 1>&5' 1188 if { (eval echo configure:1189: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } && 1189 test -f conftest.o && { (eval echo configure:1190: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; 1190 then 1191 # cc works too. 1192 : 1193 else 1194 # cc exists but doesn't like -o. 1195 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1196 fi 1197 fi 1198 fi 1199 else 1200 eval ac_cv_prog_cc_${ac_cc}_c_o=no 1201 fi 1202 rm -f conftest* 1203 1204 fi 1205 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = yes"; then 1206 echo "$ac_t""yes" 1>&6 1207 else 1208 echo "$ac_t""no" 1>&6 1209 cat >> confdefs.h <<\EOF 1210 #define NO_MINUS_C_MINUS_O 1 1211 EOF 1212 1213 fi 1214 1215 # autoconf is lame and doesn't give us any substitution variable for this. 1216 if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" = no"; then 1217 NO_MINUS_C_MINUS_O=yes 1218 else 1219 OUTPUT_OPTION='-o $@' 1220 fi 1221 1222 1223 1150 1224 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1151 echo "configure:1 152: checking for POSIXized ISC" >&51225 echo "configure:1226: checking for POSIXized ISC" >&5 1152 1226 if test -d /etc/conf/kconfig.d && 1153 1227 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 1170 1244 1171 1245 echo $ac_n "checking for working const""... $ac_c" 1>&6 1172 echo "configure:1 173: checking for working const" >&51246 echo "configure:1247: checking for working const" >&5 1173 1247 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1174 1248 echo $ac_n "(cached) $ac_c" 1>&6 1175 1249 else 1176 1250 cat > conftest.$ac_ext <<EOF 1177 #line 1 178"configure"1251 #line 1252 "configure" 1178 1252 #include "confdefs.h" 1179 1253 … … 1224 1298 ; return 0; } 1225 1299 EOF 1226 if { (eval echo configure:1 227: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1300 if { (eval echo configure:1301: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1227 1301 rm -rf conftest* 1228 1302 ac_cv_c_const=yes … … 1245 1319 1246 1320 echo $ac_n "checking for inline""... $ac_c" 1>&6 1247 echo "configure:1 248: checking for inline" >&51321 echo "configure:1322: checking for inline" >&5 1248 1322 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1249 1323 echo $ac_n "(cached) $ac_c" 1>&6 … … 1252 1326 for ac_kw in inline __inline__ __inline; do 1253 1327 cat > conftest.$ac_ext <<EOF 1254 #line 1 255"configure"1328 #line 1329 "configure" 1255 1329 #include "confdefs.h" 1256 1330 … … 1259 1333 ; return 0; } 1260 1334 EOF 1261 if { (eval echo configure:1 262: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1335 if { (eval echo configure:1336: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1262 1336 rm -rf conftest* 1263 1337 ac_cv_c_inline=$ac_kw; break … … 1302 1376 # ./install, which can be erroneously created by make from ./install.sh. 1303 1377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1304 echo "configure:13 05: checking for a BSD compatible install" >&51378 echo "configure:1379: checking for a BSD compatible install" >&5 1305 1379 if test -z "$INSTALL"; then 1306 1380 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1365 1439 # something. 1366 1440 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1367 echo "configure:1 368: checking how to run the C preprocessor" >&51441 echo "configure:1442: checking how to run the C preprocessor" >&5 1368 1442 # On Suns, sometimes $CPP names a directory. 1369 1443 if test -n "$CPP" && test -d "$CPP"; then … … 1381 1455 cat > conftest.$ac_ext <<EOF 1382 1456 #include <sys/types.h> 1383 #line 1 384"configure"1457 #line 1458 "configure" 1384 1458 #include "confdefs.h" 1385 1459 #include <assert.h> … … 1387 1461 EOF 1388 1462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1389 { (eval echo configure:1 390: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1463 { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1390 1464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1391 1465 if test -z "$ac_err"; then … … 1399 1473 cat > conftest.$ac_ext <<EOF 1400 1474 #include <sys/types.h> 1401 #line 14 02"configure"1475 #line 1476 "configure" 1402 1476 #include "confdefs.h" 1403 1477 #include <assert.h> … … 1405 1479 EOF 1406 1480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1407 { (eval echo configure:14 08: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1481 { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1408 1482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1409 1483 if test -z "$ac_err"; then … … 1417 1491 cat > conftest.$ac_ext <<EOF 1418 1492 #include <sys/types.h> 1419 #line 14 20"configure"1493 #line 1494 "configure" 1420 1494 #include "confdefs.h" 1421 1495 #include <assert.h> … … 1423 1497 EOF 1424 1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1425 { (eval echo configure:1 426: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1426 1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1427 1501 if test -z "$ac_err"; then … … 1447 1521 echo "$ac_t""$CPP" 1>&6 1448 1522 1449 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h1523 for ac_hdr in sys/file.h sys/param.h limits.h stdlib.h malloc.h string.h unistd.h strings.h sys/time.h time.h sys/resource.h sys/stat.h sys/mman.h fcntl.h alloca.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h 1450 1524 do 1451 1525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1452 1526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1453 echo "configure:1 454: checking for $ac_hdr" >&51527 echo "configure:1528: checking for $ac_hdr" >&5 1454 1528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1455 1529 echo $ac_n "(cached) $ac_c" 1>&6 … … 1457 1531 cat > conftest.$ac_ext <<EOF 1458 1532 #include <sys/types.h> 1459 #line 1 460"configure"1533 #line 1534 "configure" 1460 1534 #include "confdefs.h" 1461 1535 #include <$ac_hdr> 1462 1536 EOF 1463 1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1464 { (eval echo configure:1 465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1465 1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1466 1540 if test -z "$ac_err"; then … … 1489 1563 1490 1564 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1491 echo "configure:1 492: checking for sys/wait.h that is POSIX.1 compatible" >&51565 echo "configure:1566: checking for sys/wait.h that is POSIX.1 compatible" >&5 1492 1566 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1493 1567 echo $ac_n "(cached) $ac_c" 1>&6 1494 1568 else 1495 1569 cat > conftest.$ac_ext <<EOF 1496 #line 1 497"configure"1570 #line 1571 "configure" 1497 1571 #include "confdefs.h" 1498 1572 #include <sys/types.h> … … 1510 1584 ; return 0; } 1511 1585 EOF 1512 if { (eval echo configure:15 13: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1586 if { (eval echo configure:1587: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1513 1587 rm -rf conftest* 1514 1588 ac_cv_header_sys_wait_h=yes … … 1531 1605 1532 1606 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1533 echo "configure:1 534: checking whether time.h and sys/time.h may both be included" >&51607 echo "configure:1608: checking whether time.h and sys/time.h may both be included" >&5 1534 1608 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1535 1609 echo $ac_n "(cached) $ac_c" 1>&6 1536 1610 else 1537 1611 cat > conftest.$ac_ext <<EOF 1538 #line 1 539"configure"1612 #line 1613 "configure" 1539 1613 #include "confdefs.h" 1540 1614 #include <sys/types.h> … … 1545 1619 ; return 0; } 1546 1620 EOF 1547 if { (eval echo configure:1 548: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1621 if { (eval echo configure:1622: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1548 1622 rm -rf conftest* 1549 1623 ac_cv_header_time=yes … … 1567 1641 1568 1642 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 1569 echo "configure:1 570: checking whether errno must be declared" >&51643 echo "configure:1644: checking whether errno must be declared" >&5 1570 1644 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then 1571 1645 echo $ac_n "(cached) $ac_c" 1>&6 1572 1646 else 1573 1647 cat > conftest.$ac_ext <<EOF 1574 #line 1 575"configure"1648 #line 1649 "configure" 1575 1649 #include "confdefs.h" 1576 1650 #include <errno.h> … … 1579 1653 ; return 0; } 1580 1654 EOF 1581 if { (eval echo configure:1 582: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1655 if { (eval echo configure:1656: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1582 1656 rm -rf conftest* 1583 1657 libiberty_cv_declare_errno=no … … 1601 1675 1602 1676 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1603 echo "configure:16 04: checking for ANSI C header files" >&51677 echo "configure:1678: checking for ANSI C header files" >&5 1604 1678 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1605 1679 echo $ac_n "(cached) $ac_c" 1>&6 … … 1607 1681 cat > conftest.$ac_ext <<EOF 1608 1682 #include <sys/types.h> 1609 #line 16 10"configure"1683 #line 1684 "configure" 1610 1684 #include "confdefs.h" 1611 1685 #include <stdlib.h> … … 1615 1689 EOF 1616 1690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1617 { (eval echo configure:16 18: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1691 { (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1618 1692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1619 1693 if test -z "$ac_err"; then … … 1632 1706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1633 1707 cat > conftest.$ac_ext <<EOF 1634 #line 1 635"configure"1708 #line 1709 "configure" 1635 1709 #include "confdefs.h" 1636 1710 #include <string.h> … … 1650 1724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1651 1725 cat > conftest.$ac_ext <<EOF 1652 #line 1 653"configure"1726 #line 1727 "configure" 1653 1727 #include "confdefs.h" 1654 1728 #include <stdlib.h> … … 1671 1745 else 1672 1746 cat > conftest.$ac_ext <<EOF 1673 #line 1 674"configure"1747 #line 1748 "configure" 1674 1748 #include "confdefs.h" 1675 1749 #include <ctype.h> … … 1682 1756 1683 1757 EOF 1684 if { (eval echo configure:1 685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1685 1759 then 1686 1760 : … … 1706 1780 1707 1781 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 1708 echo "configure:17 09: checking for uintptr_t" >&51782 echo "configure:1783: checking for uintptr_t" >&5 1709 1783 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 1710 1784 echo $ac_n "(cached) $ac_c" 1>&6 1711 1785 else 1712 1786 cat > conftest.$ac_ext <<EOF 1713 #line 17 14"configure"1787 #line 1788 "configure" 1714 1788 #include "confdefs.h" 1715 1789 #include <sys/types.h> … … 1738 1812 fi 1739 1813 1740 1741 if test $ac_cv_type_uintptr_t = yes 1742 then 1814 # Given the above check, we always have uintptr_t or a fallback 1815 # definition. So define HAVE_UINTPTR_T in case any imported code 1816 # relies on it. 1817 cat >> confdefs.h <<\EOF 1818 #define HAVE_UINTPTR_T 1 1819 EOF 1820 1821 1822 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 1823 echo "configure:1824: checking for pid_t" >&5 1824 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 1825 echo $ac_n "(cached) $ac_c" 1>&6 1826 else 1827 cat > conftest.$ac_ext <<EOF 1828 #line 1829 "configure" 1829 #include "confdefs.h" 1830 #include <sys/types.h> 1831 #if STDC_HEADERS 1832 #include <stdlib.h> 1833 #include <stddef.h> 1834 #endif 1835 EOF 1836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1837 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1838 rm -rf conftest* 1839 ac_cv_type_pid_t=yes 1840 else 1841 rm -rf conftest* 1842 ac_cv_type_pid_t=no 1843 fi 1844 rm -f conftest* 1845 1846 fi 1847 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 1848 if test $ac_cv_type_pid_t = no; then 1743 1849 cat >> confdefs.h <<\EOF 1744 #define HAVE_UINTPTR_T 1 1745 EOF 1746 1747 fi 1850 #define pid_t int 1851 EOF 1852 1853 fi 1854 1748 1855 1749 1856 # This is the list of functions which libiberty will provide if they … … 1797 1904 1798 1905 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 1906 checkfuncs="$checkfuncs realpath canonicalize_file_name" 1907 checkfuncs="$checkfuncs pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl" 1799 1908 1800 1909 # These are neither executed nor required, but they help keep … … 1804 1913 do 1805 1914 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1806 echo "configure:1 807: checking for $ac_func" >&51915 echo "configure:1916: checking for $ac_func" >&5 1807 1916 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1808 1917 echo $ac_n "(cached) $ac_c" 1>&6 1809 1918 else 1810 1919 cat > conftest.$ac_ext <<EOF 1811 #line 1 812"configure"1920 #line 1921 "configure" 1812 1921 #include "confdefs.h" 1813 1922 /* System header to define __stub macros and hopefully few prototypes, … … 1832 1941 ; return 0; } 1833 1942 EOF 1834 if { (eval echo configure:1 835: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1943 if { (eval echo configure:1944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1835 1944 rm -rf conftest* 1836 1945 eval "ac_cv_func_$ac_func=yes" … … 1859 1968 do 1860 1969 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1861 echo "configure:1 862: checking for $ac_func" >&51970 echo "configure:1971: checking for $ac_func" >&5 1862 1971 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1863 1972 echo $ac_n "(cached) $ac_c" 1>&6 1864 1973 else 1865 1974 cat > conftest.$ac_ext <<EOF 1866 #line 1 867"configure"1975 #line 1976 "configure" 1867 1976 #include "confdefs.h" 1868 1977 /* System header to define __stub macros and hopefully few prototypes, … … 1887 1996 ; return 0; } 1888 1997 EOF 1889 if { (eval echo configure:1 890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1998 if { (eval echo configure:1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1890 1999 rm -rf conftest* 1891 2000 eval "ac_cv_func_$ac_func=yes" … … 1914 2023 do 1915 2024 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1916 echo "configure: 1917: checking for $ac_func" >&52025 echo "configure:2026: checking for $ac_func" >&5 1917 2026 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1918 2027 echo $ac_n "(cached) $ac_c" 1>&6 1919 2028 else 1920 2029 cat > conftest.$ac_ext <<EOF 1921 #line 1922"configure"2030 #line 2031 "configure" 1922 2031 #include "confdefs.h" 1923 2032 /* System header to define __stub macros and hopefully few prototypes, … … 1942 2051 ; return 0; } 1943 2052 EOF 1944 if { (eval echo configure: 1945: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2053 if { (eval echo configure:2054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1945 2054 rm -rf conftest* 1946 2055 eval "ac_cv_func_$ac_func=yes" … … 1969 2078 do 1970 2079 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1971 echo "configure: 1972: checking for $ac_func" >&52080 echo "configure:2081: checking for $ac_func" >&5 1972 2081 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1973 2082 echo $ac_n "(cached) $ac_c" 1>&6 1974 2083 else 1975 2084 cat > conftest.$ac_ext <<EOF 1976 #line 1977"configure"2085 #line 2086 "configure" 1977 2086 #include "confdefs.h" 1978 2087 /* System header to define __stub macros and hopefully few prototypes, … … 1997 2106 ; return 0; } 1998 2107 EOF 1999 if { (eval echo configure:2 000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2108 if { (eval echo configure:2109: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2000 2109 rm -rf conftest* 2001 2110 eval "ac_cv_func_$ac_func=yes" … … 2024 2133 do 2025 2134 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2026 echo "configure:2 027: checking for $ac_func" >&52135 echo "configure:2136: checking for $ac_func" >&5 2027 2136 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2028 2137 echo $ac_n "(cached) $ac_c" 1>&6 2029 2138 else 2030 2139 cat > conftest.$ac_ext <<EOF 2031 #line 2 032"configure"2140 #line 2141 "configure" 2032 2141 #include "confdefs.h" 2033 2142 /* System header to define __stub macros and hopefully few prototypes, … … 2052 2161 ; return 0; } 2053 2162 EOF 2054 if { (eval echo configure:2 055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2163 if { (eval echo configure:2164: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2055 2164 rm -rf conftest* 2056 2165 eval "ac_cv_func_$ac_func=yes" … … 2079 2188 do 2080 2189 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2081 echo "configure:2 082: checking for $ac_func" >&52190 echo "configure:2191: checking for $ac_func" >&5 2082 2191 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2083 2192 echo $ac_n "(cached) $ac_c" 1>&6 2084 2193 else 2085 2194 cat > conftest.$ac_ext <<EOF 2086 #line 2 087"configure"2195 #line 2196 "configure" 2087 2196 #include "confdefs.h" 2088 2197 /* System header to define __stub macros and hopefully few prototypes, … … 2107 2216 ; return 0; } 2108 2217 EOF 2109 if { (eval echo configure:2 110: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2218 if { (eval echo configure:2219: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2110 2219 rm -rf conftest* 2111 2220 eval "ac_cv_func_$ac_func=yes" … … 2134 2243 do 2135 2244 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2136 echo "configure:2 137: checking for $ac_func" >&52245 echo "configure:2246: checking for $ac_func" >&5 2137 2246 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2138 2247 echo $ac_n "(cached) $ac_c" 1>&6 2139 2248 else 2140 2249 cat > conftest.$ac_ext <<EOF 2141 #line 2 142"configure"2250 #line 2251 "configure" 2142 2251 #include "confdefs.h" 2143 2252 /* System header to define __stub macros and hopefully few prototypes, … … 2162 2271 ; return 0; } 2163 2272 EOF 2164 if { (eval echo configure:2 165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2165 2274 rm -rf conftest* 2166 2275 eval "ac_cv_func_$ac_func=yes" … … 2186 2295 done 2187 2296 2297 for ac_func in realpath canonicalize_file_name 2298 do 2299 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2300 echo "configure:2301: checking for $ac_func" >&5 2301 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2302 echo $ac_n "(cached) $ac_c" 1>&6 2303 else 2304 cat > conftest.$ac_ext <<EOF 2305 #line 2306 "configure" 2306 #include "confdefs.h" 2307 /* System header to define __stub macros and hopefully few prototypes, 2308 which can conflict with char $ac_func(); below. */ 2309 #include <assert.h> 2310 /* Override any gcc2 internal prototype to avoid an error. */ 2311 /* We use char because int might match the return type of a gcc2 2312 builtin and then its argument prototype would still apply. */ 2313 char $ac_func(); 2314 2315 int main() { 2316 2317 /* The GNU C library defines this for functions which it implements 2318 to always fail with ENOSYS. Some functions are actually named 2319 something starting with __ and the normal name is an alias. */ 2320 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2321 choke me 2322 #else 2323 $ac_func(); 2324 #endif 2325 2326 ; return 0; } 2327 EOF 2328 if { (eval echo configure:2329: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2329 rm -rf conftest* 2330 eval "ac_cv_func_$ac_func=yes" 2331 else 2332 echo "configure: failed program was:" >&5 2333 cat conftest.$ac_ext >&5 2334 rm -rf conftest* 2335 eval "ac_cv_func_$ac_func=no" 2336 fi 2337 rm -f conftest* 2338 fi 2339 2340 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2341 echo "$ac_t""yes" 1>&6 2342 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2343 cat >> confdefs.h <<EOF 2344 #define $ac_tr_func 1 2345 EOF 2346 2347 else 2348 echo "$ac_t""no" 1>&6 2349 fi 2350 done 2351 2352 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl 2353 do 2354 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2355 echo "configure:2356: checking for $ac_func" >&5 2356 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2357 echo $ac_n "(cached) $ac_c" 1>&6 2358 else 2359 cat > conftest.$ac_ext <<EOF 2360 #line 2361 "configure" 2361 #include "confdefs.h" 2362 /* System header to define __stub macros and hopefully few prototypes, 2363 which can conflict with char $ac_func(); below. */ 2364 #include <assert.h> 2365 /* Override any gcc2 internal prototype to avoid an error. */ 2366 /* We use char because int might match the return type of a gcc2 2367 builtin and then its argument prototype would still apply. */ 2368 char $ac_func(); 2369 2370 int main() { 2371 2372 /* The GNU C library defines this for functions which it implements 2373 to always fail with ENOSYS. Some functions are actually named 2374 something starting with __ and the normal name is an alias. */ 2375 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2376 choke me 2377 #else 2378 $ac_func(); 2379 #endif 2380 2381 ; return 0; } 2382 EOF 2383 if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2384 rm -rf conftest* 2385 eval "ac_cv_func_$ac_func=yes" 2386 else 2387 echo "configure: failed program was:" >&5 2388 cat conftest.$ac_ext >&5 2389 rm -rf conftest* 2390 eval "ac_cv_func_$ac_func=no" 2391 fi 2392 rm -f conftest* 2393 fi 2394 2395 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2396 echo "$ac_t""yes" 1>&6 2397 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2398 cat >> confdefs.h <<EOF 2399 #define $ac_tr_func 1 2400 EOF 2401 2402 else 2403 echo "$ac_t""no" 1>&6 2404 fi 2405 done 2406 2188 2407 cat >> confdefs.h <<\EOF 2189 2408 #define HAVE_SYS_ERRLIST 1 … … 2206 2425 setobjs= 2207 2426 CHECK= 2427 target_header_dir= 2208 2428 if test -n "${with_target_subdir}"; then 2209 2429 … … 2246 2466 fi 2247 2467 2468 # We may wish to install the target headers somewhere. 2469 # Check whether --enable-install-libiberty or --disable-install-libiberty was given. 2470 if test "${enable_install_libiberty+set}" = set; then 2471 enableval="$enable_install_libiberty" 2472 enable_install_libiberty=$enableval 2473 else 2474 enable_install_libiberty=no 2475 fi 2476 2477 # Option parsed, now set things appropriately. 2478 case x"$enable_install_libiberty" in 2479 xyes|x) 2480 target_header_dir=libiberty 2481 ;; 2482 xno) 2483 target_header_dir= 2484 ;; 2485 *) 2486 # This could be sanity-checked in various ways... 2487 target_header_dir="${enable_install_libiberty}" 2488 ;; 2489 esac 2490 2491 2248 2492 else 2249 2493 … … 2252 2496 2253 2497 fi 2498 2254 2499 2255 2500 … … 2366 2611 # tests. This will only work if the compiler works. 2367 2612 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2368 echo "configure:2 369: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52613 echo "configure:2614: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2369 2614 2370 2615 ac_ext=c … … 2377 2622 cat > conftest.$ac_ext << EOF 2378 2623 2379 #line 2 380"configure"2624 #line 2625 "configure" 2380 2625 #include "confdefs.h" 2381 2626 2382 2627 main(){return(0);} 2383 2628 EOF 2384 if { (eval echo configure:2 385: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2629 if { (eval echo configure:2630: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2385 2630 ac_cv_prog_cc_works=yes 2386 2631 # If we can't run a trivial program, we are probably using a cross compiler. … … 2408 2653 fi 2409 2654 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2410 echo "configure:2 411: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52655 echo "configure:2656: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2411 2656 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2412 2657 cross_compiling=$ac_cv_prog_cc_cross … … 2415 2660 do 2416 2661 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2417 echo "configure:2 418: checking for $ac_func" >&52662 echo "configure:2663: checking for $ac_func" >&5 2418 2663 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2419 2664 echo $ac_n "(cached) $ac_c" 1>&6 2420 2665 else 2421 2666 cat > conftest.$ac_ext <<EOF 2422 #line 2 423"configure"2667 #line 2668 "configure" 2423 2668 #include "confdefs.h" 2424 2669 /* System header to define __stub macros and hopefully few prototypes, … … 2443 2688 ; return 0; } 2444 2689 EOF 2445 if { (eval echo configure:2 446: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2690 if { (eval echo configure:2691: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2446 2691 rm -rf conftest* 2447 2692 eval "ac_cv_func_$ac_func=yes" … … 2470 2715 2471 2716 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2472 echo "configure:2 473: checking whether alloca needs Cray hooks" >&52717 echo "configure:2718: checking whether alloca needs Cray hooks" >&5 2473 2718 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2474 2719 echo $ac_n "(cached) $ac_c" 1>&6 2475 2720 else 2476 2721 cat > conftest.$ac_ext <<EOF 2477 #line 2 478"configure"2722 #line 2723 "configure" 2478 2723 #include "confdefs.h" 2479 2724 #if defined(CRAY) && ! defined(CRAY2) … … 2500 2745 for ac_func in _getb67 GETB67 getb67; do 2501 2746 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2502 echo "configure:2 503: checking for $ac_func" >&52747 echo "configure:2748: checking for $ac_func" >&5 2503 2748 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2504 2749 echo $ac_n "(cached) $ac_c" 1>&6 2505 2750 else 2506 2751 cat > conftest.$ac_ext <<EOF 2507 #line 2 508"configure"2752 #line 2753 "configure" 2508 2753 #include "confdefs.h" 2509 2754 /* System header to define __stub macros and hopefully few prototypes, … … 2528 2773 ; return 0; } 2529 2774 EOF 2530 if { (eval echo configure:2 531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2775 if { (eval echo configure:2776: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2531 2776 rm -rf conftest* 2532 2777 eval "ac_cv_func_$ac_func=yes" … … 2554 2799 2555 2800 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2556 echo "configure:2 557: checking stack direction for C alloca" >&52801 echo "configure:2802: checking stack direction for C alloca" >&5 2557 2802 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2558 2803 echo $ac_n "(cached) $ac_c" 1>&6 … … 2562 2807 else 2563 2808 cat > conftest.$ac_ext <<EOF 2564 #line 2 565"configure"2809 #line 2810 "configure" 2565 2810 #include "confdefs.h" 2566 2811 find_stack_direction () … … 2581 2826 } 2582 2827 EOF 2583 if { (eval echo configure:2 584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2828 if { (eval echo configure:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2584 2829 then 2585 2830 ac_cv_c_stack_direction=1 … … 2601 2846 2602 2847 2603 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2604 echo "configure:2605: checking for pid_t" >&5 2605 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2606 echo $ac_n "(cached) $ac_c" 1>&6 2607 else 2608 cat > conftest.$ac_ext <<EOF 2609 #line 2610 "configure" 2610 #include "confdefs.h" 2611 #include <sys/types.h> 2612 #if STDC_HEADERS 2613 #include <stdlib.h> 2614 #include <stddef.h> 2615 #endif 2616 EOF 2617 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2618 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2619 rm -rf conftest* 2620 ac_cv_type_pid_t=yes 2621 else 2622 rm -rf conftest* 2623 ac_cv_type_pid_t=no 2624 fi 2625 rm -f conftest* 2626 2627 fi 2628 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2629 if test $ac_cv_type_pid_t = no; then 2630 cat >> confdefs.h <<\EOF 2631 #define pid_t int 2632 EOF 2633 2634 fi 2635 2636 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2848 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2637 2849 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2638 echo "configure:2 639: checking for vfork.h" >&52850 echo "configure:2851: checking for vfork.h" >&5 2639 2851 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2640 2852 echo $ac_n "(cached) $ac_c" 1>&6 … … 2642 2854 cat > conftest.$ac_ext <<EOF 2643 2855 #include <sys/types.h> 2644 #line 2 645"configure"2856 #line 2857 "configure" 2645 2857 #include "confdefs.h" 2646 2858 #include <vfork.h> 2647 2859 EOF 2648 2860 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2649 { (eval echo configure:2 650: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2861 { (eval echo configure:2862: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2650 2862 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2651 2863 if test -z "$ac_err"; then … … 2672 2884 2673 2885 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2674 echo "configure:2 675: checking for working vfork" >&52886 echo "configure:2887: checking for working vfork" >&5 2675 2887 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2676 2888 echo $ac_n "(cached) $ac_c" 1>&6 … … 2678 2890 if test "$cross_compiling" = yes; then 2679 2891 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2680 echo "configure:2 681: checking for vfork" >&52892 echo "configure:2893: checking for vfork" >&5 2681 2893 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2682 2894 echo $ac_n "(cached) $ac_c" 1>&6 2683 2895 else 2684 2896 cat > conftest.$ac_ext <<EOF 2685 #line 2 686"configure"2897 #line 2898 "configure" 2686 2898 #include "confdefs.h" 2687 2899 /* System header to define __stub macros and hopefully few prototypes, … … 2706 2918 ; return 0; } 2707 2919 EOF 2708 if { (eval echo configure:2 709: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2709 2921 rm -rf conftest* 2710 2922 eval "ac_cv_func_vfork=yes" … … 2728 2940 else 2729 2941 cat > conftest.$ac_ext <<EOF 2730 #line 2 731"configure"2942 #line 2943 "configure" 2731 2943 #include "confdefs.h" 2732 2944 /* Thanks to Paul Eggert for this test. */ … … 2823 3035 } 2824 3036 EOF 2825 if { (eval echo configure: 2826: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3037 if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2826 3038 then 2827 3039 ac_cv_func_vfork_works=yes … … 2855 3067 do 2856 3068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2857 echo "configure: 2858: checking for $ac_func" >&53069 echo "configure:3070: checking for $ac_func" >&5 2858 3070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2859 3071 echo $ac_n "(cached) $ac_c" 1>&6 2860 3072 else 2861 3073 cat > conftest.$ac_ext <<EOF 2862 #line 2863"configure"3074 #line 3075 "configure" 2863 3075 #include "confdefs.h" 2864 3076 /* System header to define __stub macros and hopefully few prototypes, … … 2883 3095 ; return 0; } 2884 3096 EOF 2885 if { (eval echo configure: 2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3097 if { (eval echo configure:3098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2886 3098 rm -rf conftest* 2887 3099 eval "ac_cv_func_$ac_func=yes" … … 2913 3125 do 2914 3126 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2915 echo "configure: 2916: checking for $ac_func" >&53127 echo "configure:3128: checking for $ac_func" >&5 2916 3128 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2917 3129 echo $ac_n "(cached) $ac_c" 1>&6 2918 3130 else 2919 3131 cat > conftest.$ac_ext <<EOF 2920 #line 2921"configure"3132 #line 3133 "configure" 2921 3133 #include "confdefs.h" 2922 3134 /* System header to define __stub macros and hopefully few prototypes, … … 2941 3153 ; return 0; } 2942 3154 EOF 2943 if { (eval echo configure: 2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3155 if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2944 3156 rm -rf conftest* 2945 3157 eval "ac_cv_func_$ac_func=yes" … … 2969 3181 for v in $vars; do 2970 3182 echo $ac_n "checking for $v""... $ac_c" 1>&6 2971 echo "configure: 2972: checking for $v" >&53183 echo "configure:3184: checking for $v" >&5 2972 3184 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 2973 3185 echo $ac_n "(cached) $ac_c" 1>&6 2974 3186 else 2975 3187 cat > conftest.$ac_ext <<EOF 2976 #line 2977"configure"3188 #line 3189 "configure" 2977 3189 #include "confdefs.h" 2978 3190 int *p; … … 2981 3193 ; return 0; } 2982 3194 EOF 2983 if { (eval echo configure: 2984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3195 if { (eval echo configure:3196: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2984 3196 rm -rf conftest* 2985 3197 eval "libiberty_cv_var_$v=yes" … … 3004 3216 fi 3005 3217 done 3218 3219 # special check for _system_configuration because AIX <4.3.2 do not 3220 # contain the `physmem' member. 3221 echo $ac_n "checking for external symbol _system_configuration""... $ac_c" 1>&6 3222 echo "configure:3223: checking for external symbol _system_configuration" >&5 3223 cat > conftest.$ac_ext <<EOF 3224 #line 3225 "configure" 3225 #include "confdefs.h" 3226 #include <sys/systemcfg.h> 3227 int main() { 3228 double x = _system_configuration.physmem; 3229 ; return 0; } 3230 EOF 3231 if { (eval echo configure:3232: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3232 rm -rf conftest* 3233 echo "$ac_t""yes" 1>&6 3234 cat >> confdefs.h <<\EOF 3235 #define HAVE__SYSTEM_CONFIGURATION 1 3236 EOF 3237 3238 else 3239 echo "configure: failed program was:" >&5 3240 cat conftest.$ac_ext >&5 3241 rm -rf conftest* 3242 echo "$ac_t""no" 1>&6 3243 fi 3244 rm -f conftest* 3245 3246 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 3247 echo "configure:3248: checking whether canonicalize_file_name must be declared" >&5 3248 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then 3249 echo $ac_n "(cached) $ac_c" 1>&6 3250 else 3251 cat > conftest.$ac_ext <<EOF 3252 #line 3253 "configure" 3253 #include "confdefs.h" 3254 3255 #include "confdefs.h" 3256 #include <stdio.h> 3257 #ifdef HAVE_STRING_H 3258 #include <string.h> 3259 #else 3260 #ifdef HAVE_STRINGS_H 3261 #include <strings.h> 3262 #endif 3263 #endif 3264 #ifdef HAVE_STDLIB_H 3265 #include <stdlib.h> 3266 #endif 3267 #ifdef HAVE_UNISTD_H 3268 #include <unistd.h> 3269 #endif 3270 int main() { 3271 char *(*pfn) = (char *(*)) canonicalize_file_name 3272 ; return 0; } 3273 EOF 3274 if { (eval echo configure:3275: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3275 rm -rf conftest* 3276 libiberty_cv_decl_needed_canonicalize_file_name=no 3277 else 3278 echo "configure: failed program was:" >&5 3279 cat conftest.$ac_ext >&5 3280 rm -rf conftest* 3281 libiberty_cv_decl_needed_canonicalize_file_name=yes 3282 fi 3283 rm -f conftest* 3284 fi 3285 3286 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6 3287 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 3288 cat >> confdefs.h <<\EOF 3289 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 3290 EOF 3291 3292 fi 3293 3006 3294 for ac_func in $checkfuncs 3007 3295 do 3008 3296 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3009 echo "configure:3 010: checking for $ac_func" >&53297 echo "configure:3298: checking for $ac_func" >&5 3010 3298 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3011 3299 echo $ac_n "(cached) $ac_c" 1>&6 3012 3300 else 3013 3301 cat > conftest.$ac_ext <<EOF 3014 #line 3 015"configure"3302 #line 3303 "configure" 3015 3303 #include "confdefs.h" 3016 3304 /* System header to define __stub macros and hopefully few prototypes, … … 3035 3323 ; return 0; } 3036 3324 EOF 3037 if { (eval echo configure:3 038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3038 3326 rm -rf conftest* 3039 3327 eval "ac_cv_func_$ac_func=yes" … … 3065 3353 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3066 3354 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3067 echo "configure:3 068: checking for $ac_hdr" >&53355 echo "configure:3356: checking for $ac_hdr" >&5 3068 3356 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3069 3357 echo $ac_n "(cached) $ac_c" 1>&6 … … 3071 3359 cat > conftest.$ac_ext <<EOF 3072 3360 #include <sys/types.h> 3073 #line 3 074"configure"3361 #line 3362 "configure" 3074 3362 #include "confdefs.h" 3075 3363 #include <$ac_hdr> 3076 3364 EOF 3077 3365 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3078 { (eval echo configure:3 079: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3366 { (eval echo configure:3367: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3079 3367 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3080 3368 if test -z "$ac_err"; then … … 3105 3393 do 3106 3394 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3107 echo "configure:3 108: checking for $ac_func" >&53395 echo "configure:3396: checking for $ac_func" >&5 3108 3396 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3109 3397 echo $ac_n "(cached) $ac_c" 1>&6 3110 3398 else 3111 3399 cat > conftest.$ac_ext <<EOF 3112 #line 3 113"configure"3400 #line 3401 "configure" 3113 3401 #include "confdefs.h" 3114 3402 /* System header to define __stub macros and hopefully few prototypes, … … 3133 3421 ; return 0; } 3134 3422 EOF 3135 if { (eval echo configure:3 136: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3423 if { (eval echo configure:3424: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3136 3424 rm -rf conftest* 3137 3425 eval "ac_cv_func_$ac_func=yes" … … 3158 3446 3159 3447 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 3160 echo "configure:3 161: checking for working mmap" >&53448 echo "configure:3449: checking for working mmap" >&5 3161 3449 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 3162 3450 echo $ac_n "(cached) $ac_c" 1>&6 … … 3166 3454 else 3167 3455 cat > conftest.$ac_ext <<EOF 3168 #line 3 169"configure"3456 #line 3457 "configure" 3169 3457 #include "confdefs.h" 3170 3458 … … 3306 3594 3307 3595 EOF 3308 if { (eval echo configure:3 309: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3596 if { (eval echo configure:3597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3309 3597 then 3310 3598 ac_cv_func_mmap_fixed_mapped=yes … … 3330 3618 3331 3619 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 3332 echo "configure:3 333: checking for working strncmp" >&53620 echo "configure:3621: checking for working strncmp" >&5 3333 3621 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then 3334 3622 echo $ac_n "(cached) $ac_c" 1>&6 … … 3338 3626 else 3339 3627 cat > conftest.$ac_ext <<EOF 3340 #line 3 341"configure"3628 #line 3629 "configure" 3341 3629 #include "confdefs.h" 3342 3630 … … 3402 3690 3403 3691 EOF 3404 if { (eval echo configure:3 405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3405 3693 then 3406 3694 ac_cv_func_strncmp_works=yes … … 3594 3882 s%@CC@%$CC%g 3595 3883 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g 3884 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g 3885 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g 3596 3886 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3597 3887 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3601 3891 s%@CPP@%$CPP%g 3602 3892 s%@CHECK@%$CHECK%g 3893 s%@target_header_dir@%$target_header_dir%g 3603 3894 s%@LIBOBJS@%$LIBOBJS%g 3604 3895 s%@INSTALL_DEST@%$INSTALL_DEST%g … … 3819 4110 target=${target} 3820 4111 with_target_subdir=${with_target_subdir} 4112 with_build_subdir=${with_build_subdir} 3821 4113 with_multisubdir=${with_multisubdir} 3822 4114 ac_configure_args="--enable-multilib ${ac_configure_args}" 3823 4115 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 4116 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 3824 4117 libiberty_topdir=${libiberty_topdir} 3825 4118 … … 3828 4121 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3829 4122 if test -n "$CONFIG_FILES"; then 3830 if test -n "${with_ target_subdir}"; then4123 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 3831 4124 # FIXME: We shouldn't need to set ac_file 3832 4125 ac_file=Makefile -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.