Changeset 619 for trunk/src/binutils/libiberty/configure
- Timestamp:
- Aug 16, 2003, 11:56:50 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/binutils/libiberty/configure
-
Property cvs2svn:cvs-rev
changed from
1.2
to1.3
r618 r619 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" 18 20 ac_help="$ac_help 19 21 --with-newlib Configuring with newlib" 22 ac_help="$ac_help 23 --enable-maintainer-mode 24 enable make rules and dependencies not useful 25 (and sometimes confusing) to the casual installer" 26 ac_help="$ac_help 27 --enable-install-libiberty Install headers for end users" 20 28 21 29 # Initialize some variables set by options. … … 458 466 # A filename unique to this package, relative to the directory that 459 467 # configure is in, which we can look for to find out if srcdir is correct. 460 ac_unique_file= pexecute.c468 ac_unique_file=xmalloc.c 461 469 462 470 # Find the source files, if location was not specified. … … 528 536 529 537 echo $ac_n "checking for path separator""... $ac_c" 1>&6 530 echo "configure:53 1: checking for path separator" >&5538 echo "configure:539: checking for path separator" >&5 531 539 # Filter path to get backslahes into forwardslashes 532 540 case "`uname -s 2> /dev/null`" in … … 542 550 543 551 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6 544 echo "configure:5 45: checking for Cygwin environment" >&5552 echo "configure:553: checking for Cygwin environment" >&5 545 553 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then 546 554 echo $ac_n "(cached) $ac_c" 1>&6 547 555 else 548 556 cat > conftest.$ac_ext <<EOF 549 #line 55 0"configure"557 #line 558 "configure" 550 558 #include "confdefs.h" 551 559 … … 558 566 ; return 0; } 559 567 EOF 560 if { (eval echo configure:56 1: \"$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 561 569 rm -rf conftest* 562 570 ac_cv_cygwin=yes … … 575 583 test "$ac_cv_cygwin" = yes && CYGWIN=yes 576 584 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6 577 echo "configure:5 78: checking for mingw32 environment" >&5585 echo "configure:586: checking for mingw32 environment" >&5 578 586 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then 579 587 echo $ac_n "(cached) $ac_c" 1>&6 580 588 else 581 589 cat > conftest.$ac_ext <<EOF 582 #line 5 83"configure"590 #line 591 "configure" 583 591 #include "confdefs.h" 584 592 … … 587 595 ; return 0; } 588 596 EOF 589 if { (eval echo configure:59 0: \"$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 590 598 rm -rf conftest* 591 599 ac_cv_mingw32=yes … … 604 612 test "$ac_cv_mingw32" = yes && MINGW32=yes 605 613 echo $ac_n "checking for EMX/OS2 environment""... $ac_c" 1>&6 606 echo "configure:6 07: checking for EMX/OS2 environment" >&5614 echo "configure:615: checking for EMX/OS2 environment" >&5 607 615 if eval "test \"`echo '$''{'ac_cv_emxos2'+set}'`\" = set"; then 608 616 echo $ac_n "(cached) $ac_c" 1>&6 … … 610 618 : ${CC=gcc.exe} 611 619 cat > conftest.$ac_ext <<EOF 612 #line 6 13"configure"620 #line 621 "configure" 613 621 #include "confdefs.h" 614 622 … … 617 625 ; return 0; } 618 626 EOF 619 if { (eval echo configure:62 0: \"$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 620 628 rm -rf conftest* 621 629 ac_cv_emxos2=yes … … 648 656 649 657 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6 650 echo "configure:65 1: checking for executable suffix" >&5658 echo "configure:659: checking for executable suffix" >&5 651 659 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then 652 660 echo $ac_n "(cached) $ac_c" 1>&6 … … 658 666 echo 'int main () { return 0; }' > conftest.$ac_ext 659 667 ac_cv_exeext= 660 if { (eval echo configure:66 1: \"$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 661 669 for file in conftest.*; do 662 670 case $file in … … 680 688 681 689 690 # This works around the fact that libtool configuration may change LD 691 # for this particular configuration, but some shells, instead of 692 # keeping the changes in LD private, export them just because LD is 693 # exported. We don't use libtool yet, but some day we might, so... 694 ORIGINAL_LD_FOR_MULTILIBS=$LD 695 682 696 # Check whether --with-target-subdir or --without-target-subdir was given. 683 697 if test "${with_target_subdir+set}" = set; then … … 686 700 fi 687 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 688 708 # Check whether --with-cross-host or --without-cross-host was given. 689 709 if test "${with_cross_host+set}" = set; then … … 700 720 701 721 if test "${srcdir}" = "."; then 702 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 703 726 libiberty_topdir="${srcdir}/.." 704 727 else … … 712 735 libiberty_topdir="${srcdir}/.." 713 736 fi 737 714 738 ac_aux_dir= 715 739 for ac_dir in $libiberty_topdir $srcdir/$libiberty_topdir; do … … 733 757 734 758 759 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6 760 echo "configure:761: checking whether to enable maintainer-specific portions of Makefiles" >&5 761 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 762 if test "${enable_maintainer_mode+set}" = set; then 763 enableval="$enable_maintainer_mode" 764 maintainer_mode=$enableval 765 else 766 maintainer_mode=no 767 fi 768 769 770 echo "$ac_t""$maintainer_mode" 1>&6 771 772 if test "$maintainer_mode" = "yes"; then 773 MAINT='' 774 NOTMAINT='#' 775 else 776 MAINT='#' 777 NOTMAINT='' 778 fi 779 780 # Do we have a single-tree copy of texinfo? Even if we do, we can't 781 # rely on it - libiberty is built before texinfo. 782 # Extract the first word of "makeinfo", so it can be a program name with args. 783 set dummy makeinfo; ac_word=$2 784 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 785 echo "configure:786: checking for $ac_word" >&5 786 if eval "test \"`echo '$''{'ac_cv_prog_MAKEINFO'+set}'`\" = set"; then 787 echo $ac_n "(cached) $ac_c" 1>&6 788 else 789 if test -n "$MAKEINFO"; then 790 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 791 else 792 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" 793 ac_dummy="$PATH" 794 for ac_dir in $ac_dummy; do 795 test -z "$ac_dir" && ac_dir=. 796 if test -f $ac_dir/$ac_word -o \ 797 -f $ac_dir/$ac_word$ac_exeext ; then 798 ac_cv_prog_MAKEINFO="makeinfo" 799 break 800 fi 801 done 802 IFS="$ac_save_ifs" 803 fi 804 fi 805 MAKEINFO="$ac_cv_prog_MAKEINFO" 806 if test -n "$MAKEINFO"; then 807 echo "$ac_t""$MAKEINFO" 1>&6 808 else 809 echo "$ac_t""no" 1>&6 810 fi 811 812 if test "x$MAKEINFO" = "x"; then 813 MAKEINFO="@echo makeinfo missing; true" 814 BUILD_INFO= 815 else 816 BUILD_INFO=info 817 case x"`$MAKEINFO --version | grep 'GNU texinfo'`" in 818 x*\ [1-3].* ) 819 MAKEINFO="@echo $MAKEINFO is too old, 4.0 or newer required; true" 820 BUILD_INFO= 821 echo "configure: warning: 822 *** Makeinfo is too old. Info documentation will not be built." 1>&2 823 ;; 824 esac 825 fi 826 827 828 829 # Extract the first word of "perl", so it can be a program name with args. 830 set dummy perl; ac_word=$2 831 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 832 echo "configure:833: checking for $ac_word" >&5 833 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 834 echo $ac_n "(cached) $ac_c" 1>&6 835 else 836 if test -n "$PERL"; then 837 ac_cv_prog_PERL="$PERL" # Let the user override the test. 838 else 839 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="$PATH_IFS" 840 ac_dummy="$PATH" 841 for ac_dir in $ac_dummy; do 842 test -z "$ac_dir" && ac_dir=. 843 if test -f $ac_dir/$ac_word -o \ 844 -f $ac_dir/$ac_word$ac_exeext ; then 845 ac_cv_prog_PERL="perl" 846 break 847 fi 848 done 849 IFS="$ac_save_ifs" 850 fi 851 fi 852 PERL="$ac_cv_prog_PERL" 853 if test -n "$PERL"; then 854 echo "$ac_t""$PERL" 1>&6 855 else 856 echo "$ac_t""no" 1>&6 857 fi 858 859 if test x"$PERL" = x""; then 860 HAVE_PERL='#' 861 else 862 HAVE_PERL='' 863 fi 864 865 866 735 867 # Make sure we can run config.sub. 736 868 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then : … … 739 871 740 872 echo $ac_n "checking host system type""... $ac_c" 1>&6 741 echo "configure: 742: checking host system type" >&5873 echo "configure:874: checking host system type" >&5 742 874 743 875 host_alias=$host … … 762 894 763 895 echo $ac_n "checking build system type""... $ac_c" 1>&6 764 echo "configure: 765: checking build system type" >&5896 echo "configure:897: checking build system type" >&5 765 897 766 898 build_alias=$build … … 788 920 set dummy ${ac_tool_prefix}ar; ac_word=$2 789 921 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 790 echo "configure: 791: checking for $ac_word" >&5922 echo "configure:923: checking for $ac_word" >&5 791 923 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 792 924 echo $ac_n "(cached) $ac_c" 1>&6 … … 821 953 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 822 954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 823 echo "configure: 824: checking for $ac_word" >&5955 echo "configure:956: checking for $ac_word" >&5 824 956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 825 957 echo $ac_n "(cached) $ac_c" 1>&6 … … 854 986 set dummy ranlib; ac_word=$2 855 987 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 856 echo "configure: 857: checking for $ac_word" >&5988 echo "configure:989: checking for $ac_word" >&5 857 989 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 858 990 echo $ac_n "(cached) $ac_c" 1>&6 … … 892 1024 set dummy gcc; ac_word=$2 893 1025 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 894 echo "configure: 895: checking for $ac_word" >&51026 echo "configure:1027: checking for $ac_word" >&5 895 1027 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 896 1028 echo $ac_n "(cached) $ac_c" 1>&6 … … 923 1055 set dummy cc; ac_word=$2 924 1056 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 925 echo "configure: 926: checking for $ac_word" >&51057 echo "configure:1058: checking for $ac_word" >&5 926 1058 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 927 1059 echo $ac_n "(cached) $ac_c" 1>&6 … … 974 1106 975 1107 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 976 echo "configure: 977: checking whether we are using GNU C" >&51108 echo "configure:1109: checking whether we are using GNU C" >&5 977 1109 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 978 1110 echo $ac_n "(cached) $ac_c" 1>&6 … … 983 1115 #endif 984 1116 EOF 985 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure: 986: \"$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 986 1118 ac_cv_prog_gcc=yes 987 1119 else … … 999 1131 CFLAGS= 1000 1132 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 1001 echo "configure:1 002: checking whether ${CC-cc} accepts -g" >&51133 echo "configure:1134: checking whether ${CC-cc} accepts -g" >&5 1002 1134 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 1003 1135 echo $ac_n "(cached) $ac_c" 1>&6 … … 1029 1161 1030 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 1031 1224 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6 1032 echo "configure:1 033: checking for POSIXized ISC" >&51225 echo "configure:1226: checking for POSIXized ISC" >&5 1033 1226 if test -d /etc/conf/kconfig.d && 1034 1227 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1 … … 1051 1244 1052 1245 echo $ac_n "checking for working const""... $ac_c" 1>&6 1053 echo "configure:1 054: checking for working const" >&51246 echo "configure:1247: checking for working const" >&5 1054 1247 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1055 1248 echo $ac_n "(cached) $ac_c" 1>&6 1056 1249 else 1057 1250 cat > conftest.$ac_ext <<EOF 1058 #line 1 059"configure"1251 #line 1252 "configure" 1059 1252 #include "confdefs.h" 1060 1253 … … 1105 1298 ; return 0; } 1106 1299 EOF 1107 if { (eval echo configure:1 108: \"$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 1108 1301 rm -rf conftest* 1109 1302 ac_cv_c_const=yes … … 1126 1319 1127 1320 echo $ac_n "checking for inline""... $ac_c" 1>&6 1128 echo "configure:1 129: checking for inline" >&51321 echo "configure:1322: checking for inline" >&5 1129 1322 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1130 1323 echo $ac_n "(cached) $ac_c" 1>&6 … … 1133 1326 for ac_kw in inline __inline__ __inline; do 1134 1327 cat > conftest.$ac_ext <<EOF 1135 #line 1 136"configure"1328 #line 1329 "configure" 1136 1329 #include "confdefs.h" 1137 1330 … … 1140 1333 ; return 0; } 1141 1334 EOF 1142 if { (eval echo configure:1 143: \"$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 1143 1336 rm -rf conftest* 1144 1337 ac_cv_c_inline=$ac_kw; break … … 1183 1376 # ./install, which can be erroneously created by make from ./install.sh. 1184 1377 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1185 echo "configure:1 186: checking for a BSD compatible install" >&51378 echo "configure:1379: checking for a BSD compatible install" >&5 1186 1379 if test -z "$INSTALL"; then 1187 1380 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1246 1439 # something. 1247 1440 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 1248 echo "configure:1 249: checking how to run the C preprocessor" >&51441 echo "configure:1442: checking how to run the C preprocessor" >&5 1249 1442 # On Suns, sometimes $CPP names a directory. 1250 1443 if test -n "$CPP" && test -d "$CPP"; then … … 1262 1455 cat > conftest.$ac_ext <<EOF 1263 1456 #include <sys/types.h> 1264 #line 1 265"configure"1457 #line 1458 "configure" 1265 1458 #include "confdefs.h" 1266 1459 #include <assert.h> … … 1268 1461 EOF 1269 1462 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1270 { (eval echo configure:1 271: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1463 { (eval echo configure:1464: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1271 1464 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1272 1465 if test -z "$ac_err"; then … … 1280 1473 cat > conftest.$ac_ext <<EOF 1281 1474 #include <sys/types.h> 1282 #line 1 283"configure"1475 #line 1476 "configure" 1283 1476 #include "confdefs.h" 1284 1477 #include <assert.h> … … 1286 1479 EOF 1287 1480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1288 { (eval echo configure:1 289: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1481 { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1289 1482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1290 1483 if test -z "$ac_err"; then … … 1298 1491 cat > conftest.$ac_ext <<EOF 1299 1492 #include <sys/types.h> 1300 #line 1 301"configure"1493 #line 1494 "configure" 1301 1494 #include "confdefs.h" 1302 1495 #include <assert.h> … … 1304 1497 EOF 1305 1498 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1306 { (eval echo configure:1 307: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1499 { (eval echo configure:1500: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1307 1500 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1308 1501 if test -z "$ac_err"; then … … 1328 1521 echo "$ac_t""$CPP" 1>&6 1329 1522 1330 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 1523 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.h sys/pstat.h sys/sysmp.h sys/sysinfo.h machine/hal_sysinfo.h sys/table.h sys/sysctl.h sys/systemcfg.h 1331 1524 do 1332 1525 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1333 1526 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1334 echo "configure:1 335: checking for $ac_hdr" >&51527 echo "configure:1528: checking for $ac_hdr" >&5 1335 1528 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1336 1529 echo $ac_n "(cached) $ac_c" 1>&6 … … 1338 1531 cat > conftest.$ac_ext <<EOF 1339 1532 #include <sys/types.h> 1340 #line 1 341"configure"1533 #line 1534 "configure" 1341 1534 #include "confdefs.h" 1342 1535 #include <$ac_hdr> 1343 1536 EOF 1344 1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1345 { (eval echo configure:1 346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1346 1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1347 1540 if test -z "$ac_err"; then … … 1370 1563 1371 1564 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6 1372 echo "configure:1 373: 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 1373 1566 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then 1374 1567 echo $ac_n "(cached) $ac_c" 1>&6 1375 1568 else 1376 1569 cat > conftest.$ac_ext <<EOF 1377 #line 1 378"configure"1570 #line 1571 "configure" 1378 1571 #include "confdefs.h" 1379 1572 #include <sys/types.h> … … 1391 1584 ; return 0; } 1392 1585 EOF 1393 if { (eval echo configure:1 394: \"$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 1394 1587 rm -rf conftest* 1395 1588 ac_cv_header_sys_wait_h=yes … … 1412 1605 1413 1606 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 1414 echo "configure:1 415: 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 1415 1608 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 1416 1609 echo $ac_n "(cached) $ac_c" 1>&6 1417 1610 else 1418 1611 cat > conftest.$ac_ext <<EOF 1419 #line 1 420"configure"1612 #line 1613 "configure" 1420 1613 #include "confdefs.h" 1421 1614 #include <sys/types.h> … … 1426 1619 ; return 0; } 1427 1620 EOF 1428 if { (eval echo configure:1 429: \"$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 1429 1622 rm -rf conftest* 1430 1623 ac_cv_header_time=yes … … 1448 1641 1449 1642 echo $ac_n "checking whether errno must be declared""... $ac_c" 1>&6 1450 echo "configure:1 451: checking whether errno must be declared" >&51643 echo "configure:1644: checking whether errno must be declared" >&5 1451 1644 if eval "test \"`echo '$''{'libiberty_cv_declare_errno'+set}'`\" = set"; then 1452 1645 echo $ac_n "(cached) $ac_c" 1>&6 1453 1646 else 1454 1647 cat > conftest.$ac_ext <<EOF 1455 #line 1 456"configure"1648 #line 1649 "configure" 1456 1649 #include "confdefs.h" 1457 1650 #include <errno.h> … … 1460 1653 ; return 0; } 1461 1654 EOF 1462 if { (eval echo configure:1 463: \"$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 1463 1656 rm -rf conftest* 1464 1657 libiberty_cv_declare_errno=no … … 1476 1669 then cat >> confdefs.h <<\EOF 1477 1670 #define NEED_DECLARATION_ERRNO 1 1671 EOF 1672 1673 fi 1674 1675 1676 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1677 echo "configure:1678: checking for ANSI C header files" >&5 1678 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1679 echo $ac_n "(cached) $ac_c" 1>&6 1680 else 1681 cat > conftest.$ac_ext <<EOF 1682 #include <sys/types.h> 1683 #line 1684 "configure" 1684 #include "confdefs.h" 1685 #include <stdlib.h> 1686 #include <stdarg.h> 1687 #include <string.h> 1688 #include <float.h> 1689 EOF 1690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1691 { (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1693 if test -z "$ac_err"; then 1694 rm -rf conftest* 1695 ac_cv_header_stdc=yes 1696 else 1697 echo "$ac_err" >&5 1698 echo "configure: failed program was:" >&5 1699 cat conftest.$ac_ext >&5 1700 rm -rf conftest* 1701 ac_cv_header_stdc=no 1702 fi 1703 rm -f conftest* 1704 1705 if test $ac_cv_header_stdc = yes; then 1706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1707 cat > conftest.$ac_ext <<EOF 1708 #line 1709 "configure" 1709 #include "confdefs.h" 1710 #include <string.h> 1711 EOF 1712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1713 egrep "memchr" >/dev/null 2>&1; then 1714 : 1715 else 1716 rm -rf conftest* 1717 ac_cv_header_stdc=no 1718 fi 1719 rm -f conftest* 1720 1721 fi 1722 1723 if test $ac_cv_header_stdc = yes; then 1724 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1725 cat > conftest.$ac_ext <<EOF 1726 #line 1727 "configure" 1727 #include "confdefs.h" 1728 #include <stdlib.h> 1729 EOF 1730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1731 egrep "free" >/dev/null 2>&1; then 1732 : 1733 else 1734 rm -rf conftest* 1735 ac_cv_header_stdc=no 1736 fi 1737 rm -f conftest* 1738 1739 fi 1740 1741 if test $ac_cv_header_stdc = yes; then 1742 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 1743 if test "$cross_compiling" = yes; then 1744 : 1745 else 1746 cat > conftest.$ac_ext <<EOF 1747 #line 1748 "configure" 1748 #include "confdefs.h" 1749 #include <ctype.h> 1750 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 1751 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 1752 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 1753 int main () { int i; for (i = 0; i < 256; i++) 1754 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 1755 exit (0); } 1756 1757 EOF 1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1759 then 1760 : 1761 else 1762 echo "configure: failed program was:" >&5 1763 cat conftest.$ac_ext >&5 1764 rm -fr conftest* 1765 ac_cv_header_stdc=no 1766 fi 1767 rm -fr conftest* 1768 fi 1769 1770 fi 1771 fi 1772 1773 echo "$ac_t""$ac_cv_header_stdc" 1>&6 1774 if test $ac_cv_header_stdc = yes; then 1775 cat >> confdefs.h <<\EOF 1776 #define STDC_HEADERS 1 1777 EOF 1778 1779 fi 1780 1781 echo $ac_n "checking for uintptr_t""... $ac_c" 1>&6 1782 echo "configure:1783: checking for uintptr_t" >&5 1783 if eval "test \"`echo '$''{'ac_cv_type_uintptr_t'+set}'`\" = set"; then 1784 echo $ac_n "(cached) $ac_c" 1>&6 1785 else 1786 cat > conftest.$ac_ext <<EOF 1787 #line 1788 "configure" 1788 #include "confdefs.h" 1789 #include <sys/types.h> 1790 #if STDC_HEADERS 1791 #include <stdlib.h> 1792 #include <stddef.h> 1793 #endif 1794 EOF 1795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 1796 egrep "(^|[^a-zA-Z_0-9])uintptr_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 1797 rm -rf conftest* 1798 ac_cv_type_uintptr_t=yes 1799 else 1800 rm -rf conftest* 1801 ac_cv_type_uintptr_t=no 1802 fi 1803 rm -f conftest* 1804 1805 fi 1806 echo "$ac_t""$ac_cv_type_uintptr_t" 1>&6 1807 if test $ac_cv_type_uintptr_t = no; then 1808 cat >> confdefs.h <<\EOF 1809 #define uintptr_t unsigned long 1810 EOF 1811 1812 fi 1813 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 1849 cat >> confdefs.h <<\EOF 1850 #define pid_t int 1478 1851 EOF 1479 1852 … … 1493 1866 funcs="$funcs calloc" 1494 1867 funcs="$funcs clock" 1868 funcs="$funcs ffs" 1495 1869 funcs="$funcs getcwd" 1496 1870 funcs="$funcs getpagesize" … … 1501 1875 funcs="$funcs memcpy" 1502 1876 funcs="$funcs memmove" 1877 funcs="$funcs mempcpy" 1503 1878 funcs="$funcs memset" 1504 1879 funcs="$funcs mkstemps" … … 1508 1883 funcs="$funcs rindex" 1509 1884 funcs="$funcs setenv" 1885 funcs="$funcs snprintf" 1510 1886 funcs="$funcs sigsetmask" 1887 funcs="$funcs stpcpy" 1888 funcs="$funcs stpncpy" 1511 1889 funcs="$funcs strcasecmp" 1512 1890 funcs="$funcs strchr" … … 1522 1900 funcs="$funcs vfprintf" 1523 1901 funcs="$funcs vprintf" 1902 funcs="$funcs vsnprintf" 1524 1903 funcs="$funcs vsprintf" 1525 1904 funcs="$funcs waitpid" … … 1527 1906 # Also in the old function.def file: alloca, vfork, getopt. 1528 1907 1529 vars="sys_errlist sys_nerr sys_siglist "1908 vars="sys_errlist sys_nerr sys_siglist _system_configuration" 1530 1909 1531 1910 checkfuncs="getrusage on_exit psignal strerror strsignal sysconf times sbrk gettimeofday" 1911 checkfuncs="$checkfuncs realpath canonicalize_file_name pstat_getstatic pstat_getdynamic sysmp" 1912 checkfuncs="$checkfuncs getsysinfo table sysctl" 1532 1913 1533 1914 # These are neither executed nor required, but they help keep … … 1537 1918 do 1538 1919 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1539 echo "configure:1 540: checking for $ac_func" >&51920 echo "configure:1921: checking for $ac_func" >&5 1540 1921 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1541 1922 echo $ac_n "(cached) $ac_c" 1>&6 1542 1923 else 1543 1924 cat > conftest.$ac_ext <<EOF 1544 #line 1 545"configure"1925 #line 1926 "configure" 1545 1926 #include "confdefs.h" 1546 1927 /* System header to define __stub macros and hopefully few prototypes, … … 1565 1946 ; return 0; } 1566 1947 EOF 1567 if { (eval echo configure:1 568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1948 if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1568 1949 rm -rf conftest* 1569 1950 eval "ac_cv_func_$ac_func=yes" … … 1592 1973 do 1593 1974 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1594 echo "configure:1 595: checking for $ac_func" >&51975 echo "configure:1976: checking for $ac_func" >&5 1595 1976 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1596 1977 echo $ac_n "(cached) $ac_c" 1>&6 1597 1978 else 1598 1979 cat > conftest.$ac_ext <<EOF 1599 #line 1 600"configure"1980 #line 1981 "configure" 1600 1981 #include "confdefs.h" 1601 1982 /* System header to define __stub macros and hopefully few prototypes, … … 1620 2001 ; return 0; } 1621 2002 EOF 1622 if { (eval echo configure: 1623: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2003 if { (eval echo configure:2004: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1623 2004 rm -rf conftest* 1624 2005 eval "ac_cv_func_$ac_func=yes" … … 1644 2025 done 1645 2026 1646 for ac_func in memmove mem set putenv random rename rindex sigsetmask2027 for ac_func in memmove mempcpy memset putenv random rename rindex sigsetmask 1647 2028 do 1648 2029 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1649 echo "configure: 1650: checking for $ac_func" >&52030 echo "configure:2031: checking for $ac_func" >&5 1650 2031 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1651 2032 echo $ac_n "(cached) $ac_c" 1>&6 1652 2033 else 1653 2034 cat > conftest.$ac_ext <<EOF 1654 #line 1655"configure"2035 #line 2036 "configure" 1655 2036 #include "confdefs.h" 1656 2037 /* System header to define __stub macros and hopefully few prototypes, … … 1675 2056 ; return 0; } 1676 2057 EOF 1677 if { (eval echo configure: 1678: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2058 if { (eval echo configure:2059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1678 2059 rm -rf conftest* 1679 2060 eval "ac_cv_func_$ac_func=yes" … … 1699 2080 done 1700 2081 1701 for ac_func in strcasecmp setenv st rchr strdup strncasecmp strrchr strstr2082 for ac_func in strcasecmp setenv stpcpy stpncpy strchr strdup strncasecmp strrchr strstr 1702 2083 do 1703 2084 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1704 echo "configure: 1705: checking for $ac_func" >&52085 echo "configure:2086: checking for $ac_func" >&5 1705 2086 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1706 2087 echo $ac_n "(cached) $ac_c" 1>&6 1707 2088 else 1708 2089 cat > conftest.$ac_ext <<EOF 1709 #line 1710"configure"2090 #line 2091 "configure" 1710 2091 #include "confdefs.h" 1711 2092 /* System header to define __stub macros and hopefully few prototypes, … … 1730 2111 ; return 0; } 1731 2112 EOF 1732 if { (eval echo configure: 1733: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2113 if { (eval echo configure:2114: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1733 2114 rm -rf conftest* 1734 2115 eval "ac_cv_func_$ac_func=yes" … … 1757 2138 do 1758 2139 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1759 echo "configure: 1760: checking for $ac_func" >&52140 echo "configure:2141: checking for $ac_func" >&5 1760 2141 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1761 2142 echo $ac_n "(cached) $ac_c" 1>&6 1762 2143 else 1763 2144 cat > conftest.$ac_ext <<EOF 1764 #line 1765"configure"2145 #line 2146 "configure" 1765 2146 #include "confdefs.h" 1766 2147 /* System header to define __stub macros and hopefully few prototypes, … … 1785 2166 ; return 0; } 1786 2167 EOF 1787 if { (eval echo configure: 1788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2168 if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1788 2169 rm -rf conftest* 1789 2170 eval "ac_cv_func_$ac_func=yes" … … 1812 2193 do 1813 2194 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1814 echo "configure: 1815: checking for $ac_func" >&52195 echo "configure:2196: checking for $ac_func" >&5 1815 2196 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1816 2197 echo $ac_n "(cached) $ac_c" 1>&6 1817 2198 else 1818 2199 cat > conftest.$ac_ext <<EOF 1819 #line 1820"configure"2200 #line 2201 "configure" 1820 2201 #include "confdefs.h" 1821 2202 /* System header to define __stub macros and hopefully few prototypes, … … 1840 2221 ; return 0; } 1841 2222 EOF 1842 if { (eval echo configure: 1843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2223 if { (eval echo configure:2224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1843 2224 rm -rf conftest* 1844 2225 eval "ac_cv_func_$ac_func=yes" … … 1864 2245 done 1865 2246 1866 for ac_func in sysconf times sbrk gettimeofday 2247 for ac_func in sysconf times sbrk gettimeofday ffs snprintf vsnprintf 1867 2248 do 1868 2249 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1869 echo "configure: 1870: checking for $ac_func" >&52250 echo "configure:2251: checking for $ac_func" >&5 1870 2251 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1871 2252 echo $ac_n "(cached) $ac_c" 1>&6 1872 2253 else 1873 2254 cat > conftest.$ac_ext <<EOF 1874 #line 1875"configure"2255 #line 2256 "configure" 1875 2256 #include "confdefs.h" 1876 2257 /* System header to define __stub macros and hopefully few prototypes, … … 1895 2276 ; return 0; } 1896 2277 EOF 1897 if { (eval echo configure: 1898: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2278 if { (eval echo configure:2279: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1898 2279 rm -rf conftest* 1899 2280 eval "ac_cv_func_$ac_func=yes" … … 1919 2300 done 1920 2301 2302 for ac_func in pstat_getstatic pstat_getdynamic sysmp getsysinfo table sysctl 2303 do 2304 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2305 echo "configure:2306: checking for $ac_func" >&5 2306 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2307 echo $ac_n "(cached) $ac_c" 1>&6 2308 else 2309 cat > conftest.$ac_ext <<EOF 2310 #line 2311 "configure" 2311 #include "confdefs.h" 2312 /* System header to define __stub macros and hopefully few prototypes, 2313 which can conflict with char $ac_func(); below. */ 2314 #include <assert.h> 2315 /* Override any gcc2 internal prototype to avoid an error. */ 2316 /* We use char because int might match the return type of a gcc2 2317 builtin and then its argument prototype would still apply. */ 2318 char $ac_func(); 2319 2320 int main() { 2321 2322 /* The GNU C library defines this for functions which it implements 2323 to always fail with ENOSYS. Some functions are actually named 2324 something starting with __ and the normal name is an alias. */ 2325 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2326 choke me 2327 #else 2328 $ac_func(); 2329 #endif 2330 2331 ; return 0; } 2332 EOF 2333 if { (eval echo configure:2334: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2334 rm -rf conftest* 2335 eval "ac_cv_func_$ac_func=yes" 2336 else 2337 echo "configure: failed program was:" >&5 2338 cat conftest.$ac_ext >&5 2339 rm -rf conftest* 2340 eval "ac_cv_func_$ac_func=no" 2341 fi 2342 rm -f conftest* 2343 fi 2344 2345 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2346 echo "$ac_t""yes" 1>&6 2347 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2348 cat >> confdefs.h <<EOF 2349 #define $ac_tr_func 1 2350 EOF 2351 2352 else 2353 echo "$ac_t""no" 1>&6 2354 fi 2355 done 2356 2357 for ac_func in realpath canonicalize_file_name 2358 do 2359 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2360 echo "configure:2361: checking for $ac_func" >&5 2361 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2362 echo $ac_n "(cached) $ac_c" 1>&6 2363 else 2364 cat > conftest.$ac_ext <<EOF 2365 #line 2366 "configure" 2366 #include "confdefs.h" 2367 /* System header to define __stub macros and hopefully few prototypes, 2368 which can conflict with char $ac_func(); below. */ 2369 #include <assert.h> 2370 /* Override any gcc2 internal prototype to avoid an error. */ 2371 /* We use char because int might match the return type of a gcc2 2372 builtin and then its argument prototype would still apply. */ 2373 char $ac_func(); 2374 2375 int main() { 2376 2377 /* The GNU C library defines this for functions which it implements 2378 to always fail with ENOSYS. Some functions are actually named 2379 something starting with __ and the normal name is an alias. */ 2380 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 2381 choke me 2382 #else 2383 $ac_func(); 2384 #endif 2385 2386 ; return 0; } 2387 EOF 2388 if { (eval echo configure:2389: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2389 rm -rf conftest* 2390 eval "ac_cv_func_$ac_func=yes" 2391 else 2392 echo "configure: failed program was:" >&5 2393 cat conftest.$ac_ext >&5 2394 rm -rf conftest* 2395 eval "ac_cv_func_$ac_func=no" 2396 fi 2397 rm -f conftest* 2398 fi 2399 2400 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 2401 echo "$ac_t""yes" 1>&6 2402 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2403 cat >> confdefs.h <<EOF 2404 #define $ac_tr_func 1 2405 EOF 2406 2407 else 2408 echo "$ac_t""no" 1>&6 2409 fi 2410 done 2411 1921 2412 cat >> confdefs.h <<\EOF 1922 2413 #define HAVE_SYS_ERRLIST 1 … … 1931 2422 EOF 1932 2423 2424 cat >> confdefs.h <<\EOF 2425 #define HAVE__SYSTEM_CONFIGURATION 1 2426 EOF 2427 1933 2428 fi 1934 2429 1935 2430 # For each of these functions, if the host does not provide the 1936 2431 # function we want to put FN.o in LIBOBJS, and if the host does 1937 # provide the function, we want to define HAVE_FN in config.h. Also, 1938 # if the host does not provide alloca, we set ALLOCA to alloca.o 2432 # provide the function, we want to define HAVE_FN in config.h. 1939 2433 1940 2434 setobjs= 1941 2435 CHECK= 2436 target_header_dir= 1942 2437 if test -n "${with_target_subdir}"; then 1943 2438 … … 1951 2446 1952 2447 if test "x${with_newlib}" = "xyes"; then 1953 ALLOCA="alloca.o"1954 2448 LIBOBJS="asprintf.o basename.o insque.o random.o strdup.o vasprintf.o" 1955 2449 … … 1981 2475 fi 1982 2476 2477 # We may wish to install the target headers somewhere. 2478 # Check whether --enable-install-libiberty or --disable-install-libiberty was given. 2479 if test "${enable_install_libiberty+set}" = set; then 2480 enableval="$enable_install_libiberty" 2481 enable_install_libiberty=$enableval 2482 else 2483 enable_install_libiberty=no 2484 fi 2485 2486 # Option parsed, now set things appropriately. 2487 case x"$enable_install_libiberty" in 2488 xyes|x) 2489 target_header_dir=libiberty 2490 ;; 2491 xno) 2492 target_header_dir= 2493 ;; 2494 *) 2495 # This could be sanity-checked in various ways... 2496 target_header_dir="${enable_install_libiberty}" 2497 ;; 2498 esac 2499 2500 1983 2501 else 1984 2502 … … 1989 2507 1990 2508 2509 2510 2511 case "${host}" in 2512 *-*-cygwin* | *-*-mingw*) 2513 cat >> confdefs.h <<\EOF 2514 #define HAVE_SYS_ERRLIST 1 2515 EOF 2516 2517 cat >> confdefs.h <<\EOF 2518 #define HAVE_SYS_NERR 1 2519 EOF 2520 2521 ;; 2522 esac 1991 2523 1992 2524 if test -z "${setobjs}"; then … … 2076 2608 ;; 2077 2609 2610 *-*-*vms*) 2611 # Under VMS, vfork works very different than on Unix. The standard test 2612 # won't work, and it isn't easily adaptable. It makes more sense to 2613 # just force it. 2614 ac_cv_func_vfork_works=yes 2615 ;; 2616 2078 2617 esac 2079 2618 … … 2081 2620 # tests. This will only work if the compiler works. 2082 2621 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 2083 echo "configure:2 084: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&52622 echo "configure:2623: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 2084 2623 2085 2624 ac_ext=c … … 2092 2631 cat > conftest.$ac_ext << EOF 2093 2632 2094 #line 2 095"configure"2633 #line 2634 "configure" 2095 2634 #include "confdefs.h" 2096 2635 2097 2636 main(){return(0);} 2098 2637 EOF 2099 if { (eval echo configure:2 100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2638 if { (eval echo configure:2639: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2100 2639 ac_cv_prog_cc_works=yes 2101 2640 # If we can't run a trivial program, we are probably using a cross compiler. … … 2123 2662 fi 2124 2663 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 2125 echo "configure:2 126: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&52664 echo "configure:2665: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 2126 2665 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 2127 2666 cross_compiling=$ac_cv_prog_cc_cross … … 2130 2669 do 2131 2670 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2132 echo "configure:2 133: checking for $ac_func" >&52671 echo "configure:2672: checking for $ac_func" >&5 2133 2672 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2134 2673 echo $ac_n "(cached) $ac_c" 1>&6 2135 2674 else 2136 2675 cat > conftest.$ac_ext <<EOF 2137 #line 2 138"configure"2676 #line 2677 "configure" 2138 2677 #include "confdefs.h" 2139 2678 /* System header to define __stub macros and hopefully few prototypes, … … 2158 2697 ; return 0; } 2159 2698 EOF 2160 if { (eval echo configure:2 161: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2699 if { (eval echo configure:2700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2161 2700 rm -rf conftest* 2162 2701 eval "ac_cv_func_$ac_func=yes" … … 2184 2723 2185 2724 2186 2187 case "${host}" in 2188 *-*-interix) 2189 # On Interix, it wrongly concludes that the MSVC compiler supports alloca. 2190 # (MSVC does on Win32, not on Interix.) 2191 # This should be temporary. 2192 2193 ac_cv_header_alloca_h=no 2194 ac_cv_func_alloca_works=no 2195 ALLOCA=alloca.o 2196 cat >> confdefs.h <<\EOF 2197 #define C_ALLOCA 1 2198 EOF 2199 cat >> confdefs.h <<EOF 2200 #define STACK_DIRECTION -1 2201 EOF 2202 ;; 2203 *) 2204 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 2205 # for constant arguments. Useless! 2206 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2207 echo "configure:2208: checking for working alloca.h" >&5 2208 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2725 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2726 echo "configure:2727: checking whether alloca needs Cray hooks" >&5 2727 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2209 2728 echo $ac_n "(cached) $ac_c" 1>&6 2210 2729 else 2211 2730 cat > conftest.$ac_ext <<EOF 2212 #line 2213 "configure" 2213 #include "confdefs.h" 2214 #include <alloca.h> 2215 int main() { 2216 char *p = alloca(2 * sizeof(int)); 2217 ; return 0; } 2218 EOF 2219 if { (eval echo configure:2220: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2220 rm -rf conftest* 2221 ac_cv_header_alloca_h=yes 2222 else 2223 echo "configure: failed program was:" >&5 2224 cat conftest.$ac_ext >&5 2225 rm -rf conftest* 2226 ac_cv_header_alloca_h=no 2227 fi 2228 rm -f conftest* 2229 fi 2230 2231 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6 2232 if test $ac_cv_header_alloca_h = yes; then 2233 cat >> confdefs.h <<\EOF 2234 #define HAVE_ALLOCA_H 1 2235 EOF 2236 2237 fi 2238 2239 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2240 echo "configure:2241: checking for alloca" >&5 2241 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2242 echo $ac_n "(cached) $ac_c" 1>&6 2243 else 2244 cat > conftest.$ac_ext <<EOF 2245 #line 2246 "configure" 2246 #include "confdefs.h" 2247 2248 #ifdef __GNUC__ 2249 # define alloca __builtin_alloca 2250 #else 2251 # ifdef _MSC_VER 2252 # include <malloc.h> 2253 # define alloca _alloca 2254 # else 2255 # if HAVE_ALLOCA_H 2256 # include <alloca.h> 2257 # else 2258 # ifdef _AIX 2259 #pragma alloca 2260 # else 2261 # ifndef alloca /* predefined by HP cc +Olibcalls */ 2262 char *alloca (); 2263 # endif 2264 # endif 2265 # endif 2266 # endif 2267 #endif 2268 2269 int main() { 2270 char *p = (char *) alloca(1); 2271 ; return 0; } 2272 EOF 2273 if { (eval echo configure:2274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2274 rm -rf conftest* 2275 ac_cv_func_alloca_works=yes 2276 else 2277 echo "configure: failed program was:" >&5 2278 cat conftest.$ac_ext >&5 2279 rm -rf conftest* 2280 ac_cv_func_alloca_works=no 2281 fi 2282 rm -f conftest* 2283 fi 2284 2285 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6 2286 if test $ac_cv_func_alloca_works = yes; then 2287 cat >> confdefs.h <<\EOF 2288 #define HAVE_ALLOCA 1 2289 EOF 2290 2291 fi 2292 2293 if test $ac_cv_func_alloca_works = no; then 2294 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 2295 # that cause trouble. Some versions do not even contain alloca or 2296 # contain a buggy version. If you still want to use their alloca, 2297 # use ar to extract alloca.o from them instead of compiling alloca.c. 2298 ALLOCA=alloca.${ac_objext} 2299 cat >> confdefs.h <<\EOF 2300 #define C_ALLOCA 1 2301 EOF 2302 2303 2304 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2305 echo "configure:2306: checking whether alloca needs Cray hooks" >&5 2306 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2307 echo $ac_n "(cached) $ac_c" 1>&6 2308 else 2309 cat > conftest.$ac_ext <<EOF 2310 #line 2311 "configure" 2731 #line 2732 "configure" 2311 2732 #include "confdefs.h" 2312 2733 #if defined(CRAY) && ! defined(CRAY2) … … 2331 2752 echo "$ac_t""$ac_cv_os_cray" 1>&6 2332 2753 if test $ac_cv_os_cray = yes; then 2333 for ac_func in _getb67 GETB67 getb67; do2334 echo $ac_n "checking for $ac_func""... $ac_c" 1>&62335 echo "configure:2 336: checking for $ac_func" >&52754 for ac_func in _getb67 GETB67 getb67; do 2755 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2756 echo "configure:2757: checking for $ac_func" >&5 2336 2757 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2337 2758 echo $ac_n "(cached) $ac_c" 1>&6 2338 2759 else 2339 2760 cat > conftest.$ac_ext <<EOF 2340 #line 2 341"configure"2761 #line 2762 "configure" 2341 2762 #include "confdefs.h" 2342 2763 /* System header to define __stub macros and hopefully few prototypes, … … 2361 2782 ; return 0; } 2362 2783 EOF 2363 if { (eval echo configure:2 364: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2784 if { (eval echo configure:2785: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2364 2785 rm -rf conftest* 2365 2786 eval "ac_cv_func_$ac_func=yes" … … 2378 2799 #define CRAY_STACKSEG_END $ac_func 2379 2800 EOF 2380 2381 2801 break 2382 2802 else … … 2384 2804 fi 2385 2805 2386 done2806 done 2387 2807 fi 2388 2808 2389 2809 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2390 echo "configure:2 391: checking stack direction for C alloca" >&52810 echo "configure:2811: checking stack direction for C alloca" >&5 2391 2811 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2392 2812 echo $ac_n "(cached) $ac_c" 1>&6 … … 2396 2816 else 2397 2817 cat > conftest.$ac_ext <<EOF 2398 #line 2 399 "configure"2818 #line 2819 "configure" 2399 2819 #include "confdefs.h" 2400 2820 find_stack_direction () … … 2415 2835 } 2416 2836 EOF 2417 if { (eval echo configure:2 418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2837 if { (eval echo configure:2838: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2418 2838 then 2419 2839 ac_cv_c_stack_direction=1 … … 2434 2854 EOF 2435 2855 2436 fi 2437 2438 ;; 2439 esac 2440 2441 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 2442 echo "configure:2443: checking for ANSI C header files" >&5 2443 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 2856 2857 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2858 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2859 echo "configure:2860: checking for vfork.h" >&5 2860 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2444 2861 echo $ac_n "(cached) $ac_c" 1>&6 2445 2862 else 2446 2863 cat > conftest.$ac_ext <<EOF 2447 2864 #include <sys/types.h> 2448 #line 2449 "configure" 2449 #include "confdefs.h" 2450 #include <stdlib.h> 2451 #include <stdarg.h> 2452 #include <string.h> 2453 #include <float.h> 2865 #line 2866 "configure" 2866 #include "confdefs.h" 2867 #include <vfork.h> 2454 2868 EOF 2455 2869 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2456 { (eval echo configure:2457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2458 if test -z "$ac_err"; then 2459 rm -rf conftest* 2460 ac_cv_header_stdc=yes 2461 else 2462 echo "$ac_err" >&5 2463 echo "configure: failed program was:" >&5 2464 cat conftest.$ac_ext >&5 2465 rm -rf conftest* 2466 ac_cv_header_stdc=no 2467 fi 2468 rm -f conftest* 2469 2470 if test $ac_cv_header_stdc = yes; then 2471 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 2472 cat > conftest.$ac_ext <<EOF 2473 #line 2474 "configure" 2474 #include "confdefs.h" 2475 #include <string.h> 2476 EOF 2477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2478 egrep "memchr" >/dev/null 2>&1; then 2479 : 2480 else 2481 rm -rf conftest* 2482 ac_cv_header_stdc=no 2483 fi 2484 rm -f conftest* 2485 2486 fi 2487 2488 if test $ac_cv_header_stdc = yes; then 2489 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 2490 cat > conftest.$ac_ext <<EOF 2491 #line 2492 "configure" 2492 #include "confdefs.h" 2493 #include <stdlib.h> 2494 EOF 2495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2496 egrep "free" >/dev/null 2>&1; then 2497 : 2498 else 2499 rm -rf conftest* 2500 ac_cv_header_stdc=no 2501 fi 2502 rm -f conftest* 2503 2504 fi 2505 2506 if test $ac_cv_header_stdc = yes; then 2507 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 2508 if test "$cross_compiling" = yes; then 2509 : 2510 else 2511 cat > conftest.$ac_ext <<EOF 2512 #line 2513 "configure" 2513 #include "confdefs.h" 2514 #include <ctype.h> 2515 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 2516 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 2517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 2518 int main () { int i; for (i = 0; i < 256; i++) 2519 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2); 2520 exit (0); } 2521 2522 EOF 2523 if { (eval echo configure:2524: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2524 then 2525 : 2526 else 2527 echo "configure: failed program was:" >&5 2528 cat conftest.$ac_ext >&5 2529 rm -fr conftest* 2530 ac_cv_header_stdc=no 2531 fi 2532 rm -fr conftest* 2533 fi 2534 2535 fi 2536 fi 2537 2538 echo "$ac_t""$ac_cv_header_stdc" 1>&6 2539 if test $ac_cv_header_stdc = yes; then 2540 cat >> confdefs.h <<\EOF 2541 #define STDC_HEADERS 1 2542 EOF 2543 2544 fi 2545 2546 echo $ac_n "checking for pid_t""... $ac_c" 1>&6 2547 echo "configure:2548: checking for pid_t" >&5 2548 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then 2549 echo $ac_n "(cached) $ac_c" 1>&6 2550 else 2551 cat > conftest.$ac_ext <<EOF 2552 #line 2553 "configure" 2553 #include "confdefs.h" 2554 #include <sys/types.h> 2555 #if STDC_HEADERS 2556 #include <stdlib.h> 2557 #include <stddef.h> 2558 #endif 2559 EOF 2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 2561 egrep "(^|[^a-zA-Z_0-9])pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then 2562 rm -rf conftest* 2563 ac_cv_type_pid_t=yes 2564 else 2565 rm -rf conftest* 2566 ac_cv_type_pid_t=no 2567 fi 2568 rm -f conftest* 2569 2570 fi 2571 echo "$ac_t""$ac_cv_type_pid_t" 1>&6 2572 if test $ac_cv_type_pid_t = no; then 2573 cat >> confdefs.h <<\EOF 2574 #define pid_t int 2575 EOF 2576 2577 fi 2578 2579 ac_safe=`echo "vfork.h" | sed 'y%./+-%__p_%'` 2580 echo $ac_n "checking for vfork.h""... $ac_c" 1>&6 2581 echo "configure:2582: checking for vfork.h" >&5 2582 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2583 echo $ac_n "(cached) $ac_c" 1>&6 2584 else 2585 cat > conftest.$ac_ext <<EOF 2586 #include <sys/types.h> 2587 #line 2588 "configure" 2588 #include "confdefs.h" 2589 #include <vfork.h> 2590 EOF 2591 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2592 { (eval echo configure:2593: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2870 { (eval echo configure:2871: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2593 2871 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2594 2872 if test -z "$ac_err"; then … … 2615 2893 2616 2894 echo $ac_n "checking for working vfork""... $ac_c" 1>&6 2617 echo "configure:2 618: checking for working vfork" >&52895 echo "configure:2896: checking for working vfork" >&5 2618 2896 if eval "test \"`echo '$''{'ac_cv_func_vfork_works'+set}'`\" = set"; then 2619 2897 echo $ac_n "(cached) $ac_c" 1>&6 … … 2621 2899 if test "$cross_compiling" = yes; then 2622 2900 echo $ac_n "checking for vfork""... $ac_c" 1>&6 2623 echo "configure:2 624: checking for vfork" >&52901 echo "configure:2902: checking for vfork" >&5 2624 2902 if eval "test \"`echo '$''{'ac_cv_func_vfork'+set}'`\" = set"; then 2625 2903 echo $ac_n "(cached) $ac_c" 1>&6 2626 2904 else 2627 2905 cat > conftest.$ac_ext <<EOF 2628 #line 2 629"configure"2906 #line 2907 "configure" 2629 2907 #include "confdefs.h" 2630 2908 /* System header to define __stub macros and hopefully few prototypes, … … 2649 2927 ; return 0; } 2650 2928 EOF 2651 if { (eval echo configure:2 652: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2929 if { (eval echo configure:2930: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2652 2930 rm -rf conftest* 2653 2931 eval "ac_cv_func_vfork=yes" … … 2671 2949 else 2672 2950 cat > conftest.$ac_ext <<EOF 2673 #line 2 674"configure"2951 #line 2952 "configure" 2674 2952 #include "confdefs.h" 2675 2953 /* Thanks to Paul Eggert for this test. */ … … 2766 3044 } 2767 3045 EOF 2768 if { (eval echo configure: 2769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3046 if { (eval echo configure:3047: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2769 3047 then 2770 3048 ac_cv_func_vfork_works=yes … … 2791 3069 LIBOBJS="$LIBOBJS vfork.o" 2792 3070 fi 2793 for v in $vars; do 2794 echo $ac_n "checking for $v""... $ac_c" 1>&6 2795 echo "configure:2796: checking for $v" >&5 2796 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 2797 echo $ac_n "(cached) $ac_c" 1>&6 2798 else 2799 cat > conftest.$ac_ext <<EOF 2800 #line 2801 "configure" 2801 #include "confdefs.h" 2802 int *p; 2803 int main() { 2804 extern int $v; p = &$v; 2805 ; return 0; } 2806 EOF 2807 if { (eval echo configure:2808: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2808 rm -rf conftest* 2809 eval "libiberty_cv_var_$v=yes" 2810 else 2811 echo "configure: failed program was:" >&5 2812 cat conftest.$ac_ext >&5 2813 rm -rf conftest* 2814 eval "libiberty_cv_var_$v=no" 2815 fi 2816 rm -f conftest* 2817 fi 2818 2819 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then 2820 echo "$ac_t""yes" 1>&6 2821 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 2822 cat >> confdefs.h <<EOF 2823 #define $n 1 2824 EOF 2825 2826 else 2827 echo "$ac_t""no" 1>&6 2828 fi 2829 done 2830 for ac_func in $checkfuncs 3071 # We only need _doprnt if we might use it to implement v*printf. 3072 if test $ac_cv_func_vprintf != yes \ 3073 || test $ac_cv_func_vfprintf != yes \ 3074 || test $ac_cv_func_vsprintf != yes; then 3075 for ac_func in _doprnt 2831 3076 do 2832 3077 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2833 echo "configure: 2834: checking for $ac_func" >&53078 echo "configure:3079: checking for $ac_func" >&5 2834 3079 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2835 3080 echo $ac_n "(cached) $ac_c" 1>&6 2836 3081 else 2837 3082 cat > conftest.$ac_ext <<EOF 2838 #line 2839"configure"3083 #line 3084 "configure" 2839 3084 #include "confdefs.h" 2840 3085 /* System header to define __stub macros and hopefully few prototypes, … … 2859 3104 ; return 0; } 2860 3105 EOF 2861 if { (eval echo configure: 2862: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3106 if { (eval echo configure:3107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2862 3107 rm -rf conftest* 2863 3108 eval "ac_cv_func_$ac_func=yes" … … 2880 3125 else 2881 3126 echo "$ac_t""no" 1>&6 3127 LIBOBJS="$LIBOBJS ${ac_func}.${ac_objext}" 2882 3128 fi 2883 3129 done 2884 3130 2885 fi 2886 2887 for ac_hdr in unistd.h 2888 do 2889 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2890 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2891 echo "configure:2892: checking for $ac_hdr" >&5 2892 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2893 echo $ac_n "(cached) $ac_c" 1>&6 2894 else 2895 cat > conftest.$ac_ext <<EOF 2896 #include <sys/types.h> 2897 #line 2898 "configure" 2898 #include "confdefs.h" 2899 #include <$ac_hdr> 2900 EOF 2901 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2902 { (eval echo configure:2903: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2903 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2904 if test -z "$ac_err"; then 2905 rm -rf conftest* 2906 eval "ac_cv_header_$ac_safe=yes" 2907 else 2908 echo "$ac_err" >&5 2909 echo "configure: failed program was:" >&5 2910 cat conftest.$ac_ext >&5 2911 rm -rf conftest* 2912 eval "ac_cv_header_$ac_safe=no" 2913 fi 2914 rm -f conftest* 2915 fi 2916 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 2917 echo "$ac_t""yes" 1>&6 2918 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 2919 cat >> confdefs.h <<EOF 2920 #define $ac_tr_hdr 1 2921 EOF 2922 2923 else 2924 echo "$ac_t""no" 1>&6 2925 fi 2926 done 2927 2928 for ac_func in getpagesize 3131 3132 else 3133 for ac_func in _doprnt 2929 3134 do 2930 3135 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2931 echo "configure: 2932: checking for $ac_func" >&53136 echo "configure:3137: checking for $ac_func" >&5 2932 3137 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2933 3138 echo $ac_n "(cached) $ac_c" 1>&6 2934 3139 else 2935 3140 cat > conftest.$ac_ext <<EOF 2936 #line 2937"configure"3141 #line 3142 "configure" 2937 3142 #include "confdefs.h" 2938 3143 /* System header to define __stub macros and hopefully few prototypes, … … 2957 3162 ; return 0; } 2958 3163 EOF 2959 if { (eval echo configure: 2960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3164 if { (eval echo configure:3165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2960 3165 rm -rf conftest* 2961 3166 eval "ac_cv_func_$ac_func=yes" … … 2981 3186 done 2982 3187 3188 fi 3189 3190 for v in $vars; do 3191 echo $ac_n "checking for $v""... $ac_c" 1>&6 3192 echo "configure:3193: checking for $v" >&5 3193 if eval "test \"`echo '$''{'libiberty_cv_var_$v'+set}'`\" = set"; then 3194 echo $ac_n "(cached) $ac_c" 1>&6 3195 else 3196 cat > conftest.$ac_ext <<EOF 3197 #line 3198 "configure" 3198 #include "confdefs.h" 3199 int *p; 3200 int main() { 3201 extern int $v []; p = $v; 3202 ; return 0; } 3203 EOF 3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3205 rm -rf conftest* 3206 eval "libiberty_cv_var_$v=yes" 3207 else 3208 echo "configure: failed program was:" >&5 3209 cat conftest.$ac_ext >&5 3210 rm -rf conftest* 3211 eval "libiberty_cv_var_$v=no" 3212 fi 3213 rm -f conftest* 3214 fi 3215 3216 if eval "test \"`echo '$libiberty_cv_var_'$v`\" = yes"; then 3217 echo "$ac_t""yes" 1>&6 3218 n=HAVE_`echo $v | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3219 cat >> confdefs.h <<EOF 3220 #define $n 1 3221 EOF 3222 3223 else 3224 echo "$ac_t""no" 1>&6 3225 fi 3226 done 3227 for ac_func in $checkfuncs 3228 do 3229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3230 echo "configure:3231: checking for $ac_func" >&5 3231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3232 echo $ac_n "(cached) $ac_c" 1>&6 3233 else 3234 cat > conftest.$ac_ext <<EOF 3235 #line 3236 "configure" 3236 #include "confdefs.h" 3237 /* System header to define __stub macros and hopefully few prototypes, 3238 which can conflict with char $ac_func(); below. */ 3239 #include <assert.h> 3240 /* Override any gcc2 internal prototype to avoid an error. */ 3241 /* We use char because int might match the return type of a gcc2 3242 builtin and then its argument prototype would still apply. */ 3243 char $ac_func(); 3244 3245 int main() { 3246 3247 /* The GNU C library defines this for functions which it implements 3248 to always fail with ENOSYS. Some functions are actually named 3249 something starting with __ and the normal name is an alias. */ 3250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3251 choke me 3252 #else 3253 $ac_func(); 3254 #endif 3255 3256 ; return 0; } 3257 EOF 3258 if { (eval echo configure:3259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3259 rm -rf conftest* 3260 eval "ac_cv_func_$ac_func=yes" 3261 else 3262 echo "configure: failed program was:" >&5 3263 cat conftest.$ac_ext >&5 3264 rm -rf conftest* 3265 eval "ac_cv_func_$ac_func=no" 3266 fi 3267 rm -f conftest* 3268 fi 3269 3270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3271 echo "$ac_t""yes" 1>&6 3272 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3273 cat >> confdefs.h <<EOF 3274 #define $ac_tr_func 1 3275 EOF 3276 3277 else 3278 echo "$ac_t""no" 1>&6 3279 fi 3280 done 3281 3282 echo $ac_n "checking whether canonicalize_file_name must be declared""... $ac_c" 1>&6 3283 echo "configure:3284: checking whether canonicalize_file_name must be declared" >&5 3284 if eval "test \"`echo '$''{'libiberty_cv_decl_needed_canonicalize_file_name'+set}'`\" = set"; then 3285 echo $ac_n "(cached) $ac_c" 1>&6 3286 else 3287 cat > conftest.$ac_ext <<EOF 3288 #line 3289 "configure" 3289 #include "confdefs.h" 3290 3291 #include "confdefs.h" 3292 #include <stdio.h> 3293 #ifdef HAVE_STRING_H 3294 #include <string.h> 3295 #else 3296 #ifdef HAVE_STRINGS_H 3297 #include <strings.h> 3298 #endif 3299 #endif 3300 #ifdef HAVE_STDLIB_H 3301 #include <stdlib.h> 3302 #endif 3303 #ifdef HAVE_UNISTD_H 3304 #include <unistd.h> 3305 #endif 3306 int main() { 3307 char *(*pfn) = (char *(*)) canonicalize_file_name 3308 ; return 0; } 3309 EOF 3310 if { (eval echo configure:3311: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3311 rm -rf conftest* 3312 libiberty_cv_decl_needed_canonicalize_file_name=no 3313 else 3314 echo "configure: failed program was:" >&5 3315 cat conftest.$ac_ext >&5 3316 rm -rf conftest* 3317 libiberty_cv_decl_needed_canonicalize_file_name=yes 3318 fi 3319 rm -f conftest* 3320 fi 3321 3322 echo "$ac_t""$libiberty_cv_decl_needed_canonicalize_file_name" 1>&6 3323 if test $libiberty_cv_decl_needed_canonicalize_file_name = yes; then 3324 cat >> confdefs.h <<\EOF 3325 #define NEED_DECLARATION_CANONICALIZE_FILE_NAME 1 3326 EOF 3327 3328 fi 3329 3330 fi 3331 3332 # Figure out which version of pexecute to use. 3333 case "${host}" in 3334 *-*-mingw* | *-*-winnt*) pexecute=pex-win32.o ;; 3335 *-*-msdosdjgpp*) pexecute=pex-djgpp.o ;; 3336 *-*-msdos*) pexecute=pex-msdos.o ;; 3337 *-*-os2-emx*) pexecute=pex-os2.o ;; 3338 *) pexecute=pex-unix.o ;; 3339 esac 3340 3341 3342 for ac_hdr in unistd.h 3343 do 3344 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3345 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3346 echo "configure:3347: checking for $ac_hdr" >&5 3347 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3348 echo $ac_n "(cached) $ac_c" 1>&6 3349 else 3350 cat > conftest.$ac_ext <<EOF 3351 #include <sys/types.h> 3352 #line 3353 "configure" 3353 #include "confdefs.h" 3354 #include <$ac_hdr> 3355 EOF 3356 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3357 { (eval echo configure:3358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3358 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3359 if test -z "$ac_err"; then 3360 rm -rf conftest* 3361 eval "ac_cv_header_$ac_safe=yes" 3362 else 3363 echo "$ac_err" >&5 3364 echo "configure: failed program was:" >&5 3365 cat conftest.$ac_ext >&5 3366 rm -rf conftest* 3367 eval "ac_cv_header_$ac_safe=no" 3368 fi 3369 rm -f conftest* 3370 fi 3371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then 3372 echo "$ac_t""yes" 1>&6 3373 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'` 3374 cat >> confdefs.h <<EOF 3375 #define $ac_tr_hdr 1 3376 EOF 3377 3378 else 3379 echo "$ac_t""no" 1>&6 3380 fi 3381 done 3382 3383 for ac_func in getpagesize 3384 do 3385 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 3386 echo "configure:3387: checking for $ac_func" >&5 3387 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 3388 echo $ac_n "(cached) $ac_c" 1>&6 3389 else 3390 cat > conftest.$ac_ext <<EOF 3391 #line 3392 "configure" 3392 #include "confdefs.h" 3393 /* System header to define __stub macros and hopefully few prototypes, 3394 which can conflict with char $ac_func(); below. */ 3395 #include <assert.h> 3396 /* Override any gcc2 internal prototype to avoid an error. */ 3397 /* We use char because int might match the return type of a gcc2 3398 builtin and then its argument prototype would still apply. */ 3399 char $ac_func(); 3400 3401 int main() { 3402 3403 /* The GNU C library defines this for functions which it implements 3404 to always fail with ENOSYS. Some functions are actually named 3405 something starting with __ and the normal name is an alias. */ 3406 #if defined (__stub_$ac_func) || defined (__stub___$ac_func) 3407 choke me 3408 #else 3409 $ac_func(); 3410 #endif 3411 3412 ; return 0; } 3413 EOF 3414 if { (eval echo configure:3415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3415 rm -rf conftest* 3416 eval "ac_cv_func_$ac_func=yes" 3417 else 3418 echo "configure: failed program was:" >&5 3419 cat conftest.$ac_ext >&5 3420 rm -rf conftest* 3421 eval "ac_cv_func_$ac_func=no" 3422 fi 3423 rm -f conftest* 3424 fi 3425 3426 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then 3427 echo "$ac_t""yes" 1>&6 3428 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 3429 cat >> confdefs.h <<EOF 3430 #define $ac_tr_func 1 3431 EOF 3432 3433 else 3434 echo "$ac_t""no" 1>&6 3435 fi 3436 done 3437 2983 3438 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2984 echo "configure: 2985: checking for working mmap" >&53439 echo "configure:3440: checking for working mmap" >&5 2985 3440 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2986 3441 echo $ac_n "(cached) $ac_c" 1>&6 … … 2990 3445 else 2991 3446 cat > conftest.$ac_ext <<EOF 2992 #line 2993"configure"3447 #line 3448 "configure" 2993 3448 #include "confdefs.h" 2994 3449 … … 3130 3585 3131 3586 EOF 3132 if { (eval echo configure:3 133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3587 if { (eval echo configure:3588: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3133 3588 then 3134 3589 ac_cv_func_mmap_fixed_mapped=yes … … 3154 3609 3155 3610 echo $ac_n "checking for working strncmp""... $ac_c" 1>&6 3156 echo "configure:3 157: checking for working strncmp" >&53611 echo "configure:3612: checking for working strncmp" >&5 3157 3612 if eval "test \"`echo '$''{'ac_cv_func_strncmp_works'+set}'`\" = set"; then 3158 3613 echo $ac_n "(cached) $ac_c" 1>&6 … … 3162 3617 else 3163 3618 cat > conftest.$ac_ext <<EOF 3164 #line 3 165"configure"3619 #line 3620 "configure" 3165 3620 #include "confdefs.h" 3166 3621 … … 3207 3662 MAP_ANON|MAP_PRIVATE, dev_zero, 0); 3208 3663 if (p == (char *)-1) 3664 p = (char *) mmap (0, MAP_LEN, PROT_READ|PROT_WRITE, 3665 MAP_ANON|MAP_PRIVATE, -1, 0); 3666 if (p == (char *)-1) 3209 3667 exit (2); 3210 3668 else … … 3223 3681 3224 3682 EOF 3225 if { (eval echo configure:3 226: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3683 if { (eval echo configure:3684: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3226 3684 then 3227 3685 ac_cv_func_strncmp_works=yes … … 3394 3852 s%@PATH_IFS@%$PATH_IFS%g 3395 3853 s%@EXEEXT@%$EXEEXT%g 3854 s%@libiberty_topdir@%$libiberty_topdir%g 3855 s%@MAINT@%$MAINT%g 3856 s%@NOTMAINT@%$NOTMAINT%g 3857 s%@MAKEINFO@%$MAKEINFO%g 3858 s%@BUILD_INFO@%$BUILD_INFO%g 3859 s%@PERL@%$PERL%g 3860 s%@HAVE_PERL@%$HAVE_PERL%g 3396 3861 s%@host@%$host%g 3397 3862 s%@host_alias@%$host_alias%g … … 3408 3873 s%@CC@%$CC%g 3409 3874 s%@ac_libiberty_warn_cflags@%$ac_libiberty_warn_cflags%g 3875 s%@NO_MINUS_C_MINUS_O@%$NO_MINUS_C_MINUS_O%g 3876 s%@OUTPUT_OPTION@%$OUTPUT_OPTION%g 3410 3877 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g 3411 3878 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g … … 3415 3882 s%@CPP@%$CPP%g 3416 3883 s%@CHECK@%$CHECK%g 3884 s%@target_header_dir@%$target_header_dir%g 3417 3885 s%@LIBOBJS@%$LIBOBJS%g 3418 s%@ ALLOCA@%$ALLOCA%g3886 s%@pexecute@%$pexecute%g 3419 3887 s%@INSTALL_DEST@%$INSTALL_DEST%g 3420 3888 … … 3634 4102 target=${target} 3635 4103 with_target_subdir=${with_target_subdir} 4104 with_build_subdir=${with_build_subdir} 3636 4105 with_multisubdir=${with_multisubdir} 3637 4106 ac_configure_args="--enable-multilib ${ac_configure_args}" 3638 4107 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 4108 ORIGINAL_LD_FOR_MULTILIBS="${ORIGINAL_LD_FOR_MULTILIBS}" 3639 4109 libiberty_topdir=${libiberty_topdir} 3640 4110 … … 3643 4113 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h 3644 4114 if test -n "$CONFIG_FILES"; then 3645 if test -n "${with_ target_subdir}"; then4115 if test -n "${with_build_subdir}" || test -n "${with_target_subdir}"; then 3646 4116 # FIXME: We shouldn't need to set ac_file 3647 4117 ac_file=Makefile 4118 LD="${ORIGINAL_LD_FOR_MULTILIBS}" 3648 4119 . ${libiberty_topdir}/config-ml.in 3649 4120 fi -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.