- Timestamp:
- Sep 12, 2000, 6:02:19 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- efbf544c4a216d0e1e4f4462018152a06d127e68
- Parents:
- a6a2396499d2b156f4ca28edaeb2a93bc1f3e68c
- Location:
- omalloc
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
omalloc/configure
ra6a239 rfe7bd4 56 56 --with-track-backtrace track stack backtraces" 57 57 ac_help="$ac_help 58 " 59 ac_help="$ac_help 58 60 --with-internal-debug 59 61 turn on internal debugging" … … 668 670 fi 669 671 672 # Check whether --with- --with-track-custom track custom values or --without- --with-track-custom track custom values was given. 673 if test "${with_ __with_track_custom track custom values+set}" = set; then 674 withval="$with_ __with_track_custom track custom values" 675 : 676 fi 677 670 678 # Check whether --with-internal_debug or --without-internal_debug was given. 671 679 if test "${with_internal_debug+set}" = set; then … … 676 684 677 685 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6 678 echo "configure:6 79: checking whether ${MAKE-make} sets \${MAKE}" >&5686 echo "configure:687: checking whether ${MAKE-make} sets \${MAKE}" >&5 679 687 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'` 680 688 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then … … 705 713 set dummy gcc; ac_word=$2 706 714 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 707 echo "configure:7 08: checking for $ac_word" >&5715 echo "configure:716: checking for $ac_word" >&5 708 716 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 709 717 echo $ac_n "(cached) $ac_c" 1>&6 … … 735 743 set dummy cc; ac_word=$2 736 744 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 737 echo "configure:7 38: checking for $ac_word" >&5745 echo "configure:746: checking for $ac_word" >&5 738 746 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 739 747 echo $ac_n "(cached) $ac_c" 1>&6 … … 786 794 set dummy cl; ac_word=$2 787 795 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 788 echo "configure:7 89: checking for $ac_word" >&5796 echo "configure:797: checking for $ac_word" >&5 789 797 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then 790 798 echo $ac_n "(cached) $ac_c" 1>&6 … … 818 826 819 827 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6 820 echo "configure:82 1: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5828 echo "configure:829: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5 821 829 822 830 ac_ext=c … … 829 837 cat > conftest.$ac_ext << EOF 830 838 831 #line 8 32"configure"839 #line 840 "configure" 832 840 #include "confdefs.h" 833 841 834 842 main(){return(0);} 835 843 EOF 836 if { (eval echo configure:8 37: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then844 if { (eval echo configure:845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 837 845 ac_cv_prog_cc_works=yes 838 846 # If we can't run a trivial program, we are probably using a cross compiler. … … 860 868 fi 861 869 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6 862 echo "configure:8 63: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5870 echo "configure:871: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5 863 871 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6 864 872 cross_compiling=$ac_cv_prog_cc_cross 865 873 866 874 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6 867 echo "configure:8 68: checking whether we are using GNU C" >&5875 echo "configure:876: checking whether we are using GNU C" >&5 868 876 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then 869 877 echo $ac_n "(cached) $ac_c" 1>&6 … … 874 882 #endif 875 883 EOF 876 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:8 77: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then884 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then 877 885 ac_cv_prog_gcc=yes 878 886 else … … 893 901 CFLAGS= 894 902 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6 895 echo "configure: 896: checking whether ${CC-cc} accepts -g" >&5903 echo "configure:904: checking whether ${CC-cc} accepts -g" >&5 896 904 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then 897 905 echo $ac_n "(cached) $ac_c" 1>&6 … … 925 933 926 934 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6 927 echo "configure:9 28: checking how to run the C preprocessor" >&5935 echo "configure:936: checking how to run the C preprocessor" >&5 928 936 # On Suns, sometimes $CPP names a directory. 929 937 if test -n "$CPP" && test -d "$CPP"; then … … 940 948 # not just through cpp. 941 949 cat > conftest.$ac_ext <<EOF 942 #line 9 43"configure"950 #line 951 "configure" 943 951 #include "confdefs.h" 944 952 #include <assert.h> … … 946 954 EOF 947 955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 948 { (eval echo configure:9 49: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }956 { (eval echo configure:957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 949 957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 950 958 if test -z "$ac_err"; then … … 957 965 CPP="${CC-cc} -E -traditional-cpp" 958 966 cat > conftest.$ac_ext <<EOF 959 #line 96 0"configure"967 #line 968 "configure" 960 968 #include "confdefs.h" 961 969 #include <assert.h> … … 963 971 EOF 964 972 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 965 { (eval echo configure:9 66: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }973 { (eval echo configure:974: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 966 974 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 967 975 if test -z "$ac_err"; then … … 974 982 CPP="${CC-cc} -nologo -E" 975 983 cat > conftest.$ac_ext <<EOF 976 #line 9 77"configure"984 #line 985 "configure" 977 985 #include "confdefs.h" 978 986 #include <assert.h> … … 980 988 EOF 981 989 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 982 { (eval echo configure:9 83: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }990 { (eval echo configure:991: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 983 991 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 984 992 if test -z "$ac_err"; then … … 1007 1015 set dummy ranlib; ac_word=$2 1008 1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1009 echo "configure:101 0: checking for $ac_word" >&51017 echo "configure:1018: checking for $ac_word" >&5 1010 1018 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then 1011 1019 echo $ac_n "(cached) $ac_c" 1>&6 … … 1035 1043 1036 1044 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6 1037 echo "configure:10 38: checking whether ln -s works" >&51045 echo "configure:1046: checking whether ln -s works" >&5 1038 1046 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then 1039 1047 echo $ac_n "(cached) $ac_c" 1>&6 … … 1086 1094 # ./install, which can be erroneously created by make from ./install.sh. 1087 1095 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6 1088 echo "configure:10 89: checking for a BSD compatible install" >&51096 echo "configure:1097: checking for a BSD compatible install" >&5 1089 1097 if test -z "$INSTALL"; then 1090 1098 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then … … 1139 1147 1140 1148 echo $ac_n "checking for working const""... $ac_c" 1>&6 1141 echo "configure:11 42: checking for working const" >&51149 echo "configure:1150: checking for working const" >&5 1142 1150 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 1143 1151 echo $ac_n "(cached) $ac_c" 1>&6 1144 1152 else 1145 1153 cat > conftest.$ac_ext <<EOF 1146 #line 11 47"configure"1154 #line 1155 "configure" 1147 1155 #include "confdefs.h" 1148 1156 … … 1193 1201 ; return 0; } 1194 1202 EOF 1195 if { (eval echo configure:1 196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1203 if { (eval echo configure:1204: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1196 1204 rm -rf conftest* 1197 1205 ac_cv_c_const=yes … … 1214 1222 1215 1223 echo $ac_n "checking for inline""... $ac_c" 1>&6 1216 echo "configure:12 17: checking for inline" >&51224 echo "configure:1225: checking for inline" >&5 1217 1225 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 1218 1226 echo $ac_n "(cached) $ac_c" 1>&6 … … 1221 1229 for ac_kw in inline __inline__ __inline; do 1222 1230 cat > conftest.$ac_ext <<EOF 1223 #line 12 24"configure"1231 #line 1232 "configure" 1224 1232 #include "confdefs.h" 1225 1233 … … 1228 1236 ; return 0; } 1229 1237 EOF 1230 if { (eval echo configure:123 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then1238 if { (eval echo configure:1239: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 1231 1239 rm -rf conftest* 1232 1240 ac_cv_c_inline=$ac_kw; break … … 1257 1265 set dummy ar; ac_word=$2 1258 1266 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1259 echo "configure:126 0: checking for $ac_word" >&51267 echo "configure:1268: checking for $ac_word" >&5 1260 1268 if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then 1261 1269 echo $ac_n "(cached) $ac_c" 1>&6 … … 1292 1300 set dummy $ac_prog; ac_word=$2 1293 1301 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1294 echo "configure:1 295: checking for $ac_word" >&51302 echo "configure:1303: checking for $ac_word" >&5 1295 1303 if eval "test \"`echo '$''{'ac_cv_prog_PERL'+set}'`\" = set"; then 1296 1304 echo $ac_n "(cached) $ac_c" 1>&6 … … 1329 1337 set dummy addr2line; ac_word=$2 1330 1338 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6 1331 echo "configure:13 32: checking for $ac_word" >&51339 echo "configure:1340: checking for $ac_word" >&5 1332 1340 if eval "test \"`echo '$''{'ac_cv_prog_ADDR2LINE'+set}'`\" = set"; then 1333 1341 echo $ac_n "(cached) $ac_c" 1>&6 … … 1364 1372 1365 1373 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1366 echo "configure:13 67: checking for ANSI C header files" >&51374 echo "configure:1375: checking for ANSI C header files" >&5 1367 1375 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1368 1376 echo $ac_n "(cached) $ac_c" 1>&6 1369 1377 else 1370 1378 cat > conftest.$ac_ext <<EOF 1371 #line 13 72"configure"1379 #line 1380 "configure" 1372 1380 #include "confdefs.h" 1373 1381 #include <stdlib.h> … … 1377 1385 EOF 1378 1386 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1379 { (eval echo configure:138 0: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1387 { (eval echo configure:1388: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1380 1388 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1381 1389 if test -z "$ac_err"; then … … 1394 1402 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1395 1403 cat > conftest.$ac_ext <<EOF 1396 #line 1 397"configure"1404 #line 1405 "configure" 1397 1405 #include "confdefs.h" 1398 1406 #include <string.h> … … 1412 1420 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1413 1421 cat > conftest.$ac_ext <<EOF 1414 #line 14 15"configure"1422 #line 1423 "configure" 1415 1423 #include "confdefs.h" 1416 1424 #include <stdlib.h> … … 1433 1441 else 1434 1442 cat > conftest.$ac_ext <<EOF 1435 #line 14 36"configure"1443 #line 1444 "configure" 1436 1444 #include "confdefs.h" 1437 1445 #include <ctype.h> … … 1444 1452 1445 1453 EOF 1446 if { (eval echo configure:14 47: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1454 if { (eval echo configure:1455: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1447 1455 then 1448 1456 : … … 1471 1479 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1472 1480 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1473 echo "configure:14 74: checking for $ac_hdr" >&51481 echo "configure:1482: checking for $ac_hdr" >&5 1474 1482 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1475 1483 echo $ac_n "(cached) $ac_c" 1>&6 1476 1484 else 1477 1485 cat > conftest.$ac_ext <<EOF 1478 #line 14 79"configure"1486 #line 1487 "configure" 1479 1487 #include "confdefs.h" 1480 1488 #include <$ac_hdr> 1481 1489 EOF 1482 1490 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1483 { (eval echo configure:14 84: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1491 { (eval echo configure:1492: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1484 1492 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1485 1493 if test -z "$ac_err"; then … … 1512 1520 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1513 1521 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1514 echo "configure:15 15: checking for $ac_hdr" >&51522 echo "configure:1523: checking for $ac_hdr" >&5 1515 1523 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1516 1524 echo $ac_n "(cached) $ac_c" 1>&6 1517 1525 else 1518 1526 cat > conftest.$ac_ext <<EOF 1519 #line 152 0"configure"1527 #line 1528 "configure" 1520 1528 #include "confdefs.h" 1521 1529 #include <$ac_hdr> 1522 1530 EOF 1523 1531 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1524 { (eval echo configure:15 25: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1532 { (eval echo configure:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1525 1533 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1526 1534 if test -z "$ac_err"; then … … 1549 1557 1550 1558 1551 for ac_func in popen readlink getcwd getwd mmap sbrk 1559 for ac_func in popen readlink getcwd getwd mmap sbrk random 1552 1560 do 1553 1561 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 1554 echo "configure:15 55: checking for $ac_func" >&51562 echo "configure:1563: checking for $ac_func" >&5 1555 1563 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 1556 1564 echo $ac_n "(cached) $ac_c" 1>&6 1557 1565 else 1558 1566 cat > conftest.$ac_ext <<EOF 1559 #line 156 0"configure"1567 #line 1568 "configure" 1560 1568 #include "confdefs.h" 1561 1569 /* System header to define __stub macros and hopefully few prototypes, … … 1580 1588 ; return 0; } 1581 1589 EOF 1582 if { (eval echo configure:15 83: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1590 if { (eval echo configure:1591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1583 1591 rm -rf conftest* 1584 1592 eval "ac_cv_func_$ac_func=yes" … … 1608 1616 # sizes 1609 1617 echo $ac_n "checking size of long""... $ac_c" 1>&6 1610 echo "configure:161 1: checking size of long" >&51618 echo "configure:1619: checking size of long" >&5 1611 1619 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 1612 1620 echo $ac_n "(cached) $ac_c" 1>&6 … … 1616 1624 else 1617 1625 cat > conftest.$ac_ext <<EOF 1618 #line 16 19"configure"1626 #line 1627 "configure" 1619 1627 #include "confdefs.h" 1620 1628 #include <stdio.h> … … 1627 1635 } 1628 1636 EOF 1629 if { (eval echo configure:163 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1637 if { (eval echo configure:1638: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1630 1638 then 1631 1639 ac_cv_sizeof_long=`cat conftestval` … … 1647 1655 1648 1656 echo $ac_n "checking size of void*""... $ac_c" 1>&6 1649 echo "configure:165 0: checking size of void*" >&51657 echo "configure:1658: checking size of void*" >&5 1650 1658 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 1651 1659 echo $ac_n "(cached) $ac_c" 1>&6 … … 1655 1663 else 1656 1664 cat > conftest.$ac_ext <<EOF 1657 #line 16 58"configure"1665 #line 1666 "configure" 1658 1666 #include "confdefs.h" 1659 1667 #include <stdio.h> … … 1666 1674 } 1667 1675 EOF 1668 if { (eval echo configure:16 69: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1676 if { (eval echo configure:1677: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1669 1677 then 1670 1678 ac_cv_sizeof_voidp=`cat conftestval` … … 1686 1694 1687 1695 echo $ac_n "checking size of double""... $ac_c" 1>&6 1688 echo "configure:16 89: checking size of double" >&51696 echo "configure:1697: checking size of double" >&5 1689 1697 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 1690 1698 echo $ac_n "(cached) $ac_c" 1>&6 … … 1694 1702 else 1695 1703 cat > conftest.$ac_ext <<EOF 1696 #line 1 697"configure"1704 #line 1705 "configure" 1697 1705 #include "confdefs.h" 1698 1706 #include <stdio.h> … … 1705 1713 } 1706 1714 EOF 1707 if { (eval echo configure:17 08: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1708 1716 then 1709 1717 ac_cv_sizeof_double=`cat conftestval` … … 1725 1733 1726 1734 echo $ac_n "checking size of size_t""... $ac_c" 1>&6 1727 echo "configure:17 28: checking size of size_t" >&51735 echo "configure:1736: checking size of size_t" >&5 1728 1736 if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then 1729 1737 echo $ac_n "(cached) $ac_c" 1>&6 … … 1733 1741 else 1734 1742 cat > conftest.$ac_ext <<EOF 1735 #line 17 36"configure"1743 #line 1744 "configure" 1736 1744 #include "confdefs.h" 1737 1745 #include <stdio.h> … … 1744 1752 } 1745 1753 EOF 1746 if { (eval echo configure:17 47: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1747 1755 then 1748 1756 ac_cv_sizeof_size_t=`cat conftestval` … … 1775 1783 1776 1784 echo $ac_n "checking size of system page""... $ac_c" 1>&6 1777 echo "configure:17 78: checking size of system page" >&51785 echo "configure:1786: checking size of system page" >&5 1778 1786 if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then 1779 1787 echo $ac_n "(cached) $ac_c" 1>&6 … … 1783 1791 else 1784 1792 cat > conftest.$ac_ext <<EOF 1785 #line 17 86"configure"1793 #line 1794 "configure" 1786 1794 #include "confdefs.h" 1787 1795 #include <stdio.h> … … 1796 1804 } 1797 1805 EOF 1798 if { (eval echo configure:1 799: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1799 1807 then 1800 1808 ac_cv_pagesize=`cat conftestval` … … 1822 1830 if test "$ac_cv_func_mmap" = yes; then 1823 1831 echo $ac_n "checking whether mmap works""... $ac_c" 1>&6 1824 echo "configure:18 25: checking whether mmap works" >&51832 echo "configure:1833: checking whether mmap works" >&5 1825 1833 if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then 1826 1834 echo $ac_n "(cached) $ac_c" 1>&6 … … 1830 1838 else 1831 1839 cat > conftest.$ac_ext <<EOF 1832 #line 18 33"configure"1840 #line 1841 "configure" 1833 1841 #include "confdefs.h" 1834 1842 … … 1842 1850 } 1843 1851 EOF 1844 if { (eval echo configure:18 45: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1852 if { (eval echo configure:1853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1845 1853 then 1846 1854 ac_cv_working_mmap=yes … … 1866 1874 1867 1875 echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6 1868 echo "configure:18 69: checking whether alignment needs to be strict" >&51876 echo "configure:1877: checking whether alignment needs to be strict" >&5 1869 1877 if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then 1870 1878 echo $ac_n "(cached) $ac_c" 1>&6 … … 1874 1882 else 1875 1883 cat > conftest.$ac_ext <<EOF 1876 #line 18 77"configure"1884 #line 1885 "configure" 1877 1885 #include "confdefs.h" 1878 1886 … … 1889 1897 1890 1898 EOF 1891 if { (eval echo configure:1 892: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1899 if { (eval echo configure:1900: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1892 1900 then 1893 1901 ac_cv_align_need_strict=no … … 1906 1914 1907 1915 echo $ac_n "checking for external config files""... $ac_c" 1>&6 1908 echo "configure:19 09: checking for external config files" >&51916 echo "configure:1917: checking for external config files" >&5 1909 1917 if test "${with_external_config_h+set}" = set; then 1910 1918 cat >> confdefs.h <<\EOF … … 1932 1940 1933 1941 echo $ac_n "checking which malloc to use""... $ac_c" 1>&6 1934 echo "configure:19 35: checking which malloc to use" >&51942 echo "configure:1943: checking which malloc to use" >&5 1935 1943 if test "${with_malloc}" = system; then 1936 1944 OM_MALLOC_HEADER=omMallocSystem.h … … 1969 1977 1970 1978 echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6 1971 echo "configure:19 72: checking whether malloc provides SizeOfAddr" >&51979 echo "configure:1980: checking whether malloc provides SizeOfAddr" >&5 1972 1980 if test "${ac_cv_malloc_sizeof_addr}" = no; then 1973 1981 echo "$ac_t""(cached) no" 1>&6 … … 1979 1987 else 1980 1988 cat > conftest.$ac_ext <<EOF 1981 #line 19 82"configure"1989 #line 1990 "configure" 1982 1990 #include "confdefs.h" 1983 1991 … … 1996 2004 1997 2005 EOF 1998 if { (eval echo configure: 1999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1999 2007 then 2000 2008 ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2044 2052 2045 2053 echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6 2046 echo "configure:20 47: checking whether working valloc exists" >&52054 echo "configure:2055: checking whether working valloc exists" >&5 2047 2055 if test "${ac_cv_working_valloc}" = no; then 2048 2056 echo "$ac_t""(cached) no" 1>&6 … … 2054 2062 else 2055 2063 cat > conftest.$ac_ext <<EOF 2056 #line 20 57"configure"2064 #line 2065 "configure" 2057 2065 #include "confdefs.h" 2058 2066 … … 2072 2080 2073 2081 EOF 2074 if { (eval echo configure:20 75: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2082 if { (eval echo configure:2083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2075 2083 then 2076 2084 ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}" … … 2092 2100 2093 2101 echo $ac_n "checking which valloc to use""... $ac_c" 1>&6 2094 echo "configure:2 095: checking which valloc to use" >&52102 echo "configure:2103: checking which valloc to use" >&5 2095 2103 if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then 2096 2104 if test "${ac_cv_working_mmap}" = yes; then … … 2117 2125 2118 2126 echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6 2119 echo "configure:212 0: checking whether to emulate omalloc" >&52127 echo "configure:2128: checking whether to emulate omalloc" >&5 2120 2128 if test "${with_emulate_omalloc}" = yes; then 2121 2129 cat >> confdefs.h <<\EOF … … 2129 2137 2130 2138 echo $ac_n "checking how to align""... $ac_c" 1>&6 2131 echo "configure:21 32: checking how to align" >&52139 echo "configure:2140: checking how to align" >&5 2132 2140 if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then 2133 2141 ac_cv_align=8 … … 2150 2158 2151 2159 echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6 2152 echo "configure:21 53: checking whether to use dense bins" >&52160 echo "configure:2161: checking whether to use dense bins" >&5 2153 2161 if test "$with_dense_bins" = yes; then 2154 2162 echo "$ac_t""yes" 1>&6 … … 2162 2170 2163 2171 echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6 2164 echo "configure:21 65: checking whether to disable debugging" >&52172 echo "configure:2173: checking whether to disable debugging" >&5 2165 2173 if test "$with_debug" != no; then 2166 2174 echo "$ac_t""no" 1>&6 … … 2175 2183 2176 2184 echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6 2177 echo "configure:21 78: checking whether to have tracking debug functionality" >&52185 echo "configure:2186: checking whether to have tracking debug functionality" >&5 2178 2186 if test "$with_track" != no; then 2179 2187 echo "$ac_t""yes" 1>&6 … … 2187 2195 2188 2196 echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6 2189 echo "configure:219 0: checking whether to use internal debug" >&52197 echo "configure:2198: checking whether to use internal debug" >&5 2190 2198 if test "$with_internal_debug" = yes; then 2191 2199 echo "$ac_t""yes" 1>&6 … … 2200 2208 2201 2209 echo $ac_n "checking whether to inline""... $ac_c" 1>&6 2202 echo "configure:22 03: checking whether to inline" >&52210 echo "configure:2211: checking whether to inline" >&5 2203 2211 if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then 2204 2212 cat >> confdefs.h <<EOF … … 2236 2244 2237 2245 echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6 2238 echo "configure:22 39: checking whether GET_RET_ADDR works" >&52246 echo "configure:2247: checking whether GET_RET_ADDR works" >&5 2239 2247 if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then 2240 2248 echo $ac_n "(cached) $ac_c" 1>&6 … … 2244 2252 else 2245 2253 cat > conftest.$ac_ext <<EOF 2246 #line 22 47"configure"2254 #line 2255 "configure" 2247 2255 #include "confdefs.h" 2248 2256 … … 2260 2268 2261 2269 EOF 2262 if { (eval echo configure:22 63: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2270 if { (eval echo configure:2271: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2263 2271 then 2264 2272 ac_cv_get_return_addr_works=yes … … 2283 2291 2284 2292 echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6 2285 echo "configure:22 86: checking whether omGetBackTrace works" >&52293 echo "configure:2294: checking whether omGetBackTrace works" >&5 2286 2294 if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then 2287 2295 echo $ac_n "(cached) $ac_c" 1>&6 … … 2291 2299 else 2292 2300 cat > conftest.$ac_ext <<EOF 2293 #line 2 294"configure"2301 #line 2302 "configure" 2294 2302 #include "confdefs.h" 2295 2303 … … 2312 2320 2313 2321 EOF 2314 if { (eval echo configure:23 15: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2322 if { (eval echo configure:2323: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2315 2323 then 2316 2324 ac_cv_get_backtrace_works=yes … … 2335 2343 2336 2344 echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6 2337 echo "configure:23 38: checking whether addr2line works" >&52345 echo "configure:2346: checking whether addr2line works" >&5 2338 2346 if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then 2339 2347 echo $ac_n "(cached) $ac_c" 1>&6 … … 2343 2351 else 2344 2352 cat > conftest.$ac_ext <<EOF 2345 #line 23 46"configure"2353 #line 2354 "configure" 2346 2354 #include "confdefs.h" 2347 2355 … … 2376 2384 2377 2385 EOF 2378 if { (eval echo configure:23 79: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2386 if { (eval echo configure:2387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2379 2387 then 2380 2388 ac_cv_prog_addr2line_works=yes … … 2393 2401 2394 2402 echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6 2395 echo "configure:2 396: checking whether to track return addresses" >&52403 echo "configure:2404: checking whether to track return addresses" >&5 2396 2404 if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then 2397 2405 with_track_return=no … … 2406 2414 2407 2415 echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6 2408 echo "configure:24 09: checking whether to track files and line numbers" >&52416 echo "configure:2417: checking whether to track files and line numbers" >&5 2409 2417 if test "$with_track_fl" = no && test "$with_track_return" = no; then 2410 2418 with_track_fl=yes … … 2426 2434 2427 2435 echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6 2428 echo "configure:24 29: checking whether to track stack backtraces" >&52436 echo "configure:2437: checking whether to track stack backtraces" >&5 2429 2437 if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then 2430 2438 with_track_backtrace=yes … … 2437 2445 fi 2438 2446 echo "$ac_t""$with_track_backtrace" 1>&6 2439 2447 2448 echo $ac_n "checking whether to track custom values""... $ac_c" 1>&6 2449 echo "configure:2450: checking whether to track custom values" >&5 2450 if test "$with_track" != no && test "$with_track_custom" = yes; then 2451 cat >> confdefs.h <<\EOF 2452 #define OM_TRACK_CUSTOM 1 2453 EOF 2454 2455 else 2456 with_track_custom=no 2457 fi 2458 echo "$ac_t""$with_track_custom" 1>&6 2459 2440 2460 2441 2461 -
omalloc/configure.in
ra6a239 rfe7bd4 4 4 dnl Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 dnl Created: 11/99 6 dnl Version: $Id: configure.in,v 1. 7 2000-08-18 09:02:01obachman Exp $6 dnl Version: $Id: configure.in,v 1.8 2000-09-12 16:02:17 obachman Exp $ 7 7 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 8 8 … … 74 74 track-backtrace, 75 75 [ --with-track-backtrace track stack backtraces]) 76 AC_ARG_WITH( 77 [ --with-track-custom track custom values]) 76 78 AC_ARG_WITH( 77 79 internal_debug, … … 556 558 fi 557 559 AC_MSG_RESULT($with_track_backtrace) 558 560 561 AC_MSG_CHECKING(whether to track custom values) 562 if test "$with_track" != no && test "$with_track_custom" = yes; then 563 AC_DEFINE(OM_TRACK_CUSTOM) 564 else 565 with_track_custom=no 566 fi 567 AC_MSG_RESULT($with_track_custom) 568 559 569 dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll 560 570 dnl wrap it up -
omalloc/omBinPage.c
ra6a239 rfe7bd4 4 4 * Author: obachman (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omBinPage.c,v 1. 3 2000-08-14 12:26:41obachman Exp $6 * Version: $Id: omBinPage.c,v 1.4 2000-09-12 16:02:17 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <limits.h> … … 323 323 om_Info.MaxRegionsAlloc = om_Info.CurrentRegionsAlloc; 324 324 325 /* Update info so that max fields can be updated */326 omUpdateInfo();327 328 325 return region; 329 326 } -
omalloc/omConfig.h.in
ra6a239 rfe7bd4 5 5 * Author: obachman (Olaf Bachmann) 6 6 * Created: 11/99 7 * Version: $Id: omConfig.h.in,v 1. 5 2000-08-14 12:37:00obachman Exp $7 * Version: $Id: omConfig.h.in,v 1.6 2000-09-12 16:02:18 obachman Exp $ 8 8 *******************************************************************/ 9 9 #ifndef OM_CONFIG_H … … 162 162 #undef OM_TRACK_BACKTRACE 163 163 #endif 164 /* define to enable tracking of custom value */ 165 #ifndef OM_TRACK_CUSTOM 166 #undef OM_TRACK_CUSTOM 167 #endif 164 168 /* define to enable internal debugging */ 165 169 #ifndef OM_INTERNAL_DEBUG -
omalloc/omDebug.c
ra6a239 rfe7bd4 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 7/00 6 * Version: $Id: omDebug.c,v 1. 7 2000-08-18 09:05:51obachman Exp $6 * Version: $Id: omDebug.c,v 1.8 2000-09-12 16:02:18 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <limits.h> … … 225 225 track = MAX(track, om_Opts.MinTrack); 226 226 227 #if 0 228 // this breaks if SizeOfAddr(addr) > PAGESIZE 227 229 if (omIsBinPageAddr(addr)) 228 230 { … … 230 232 } 231 233 else 234 #endif 232 235 { 233 236 size = ULONG_MAX; 234 237 } 235 236 238 while (addr[i] != '\0' && i < size) i++; 237 239 if (i == size) -
omalloc/omDebug.h
ra6a239 rfe7bd4 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 7/00 6 * Version: $Id: omDebug.h,v 1. 7 2000-08-18 09:05:51obachman Exp $6 * Version: $Id: omDebug.h,v 1.8 2000-09-12 16:02:18 obachman Exp $ 7 7 *******************************************************************/ 8 8 #ifndef OM_DEBUG_H … … 65 65 void omUnMarkMemoryAsStatic(); 66 66 #endif /* ! OM_NDEBUG */ 67 68 69 #ifdef OM_TRACK_CUSTOM 70 #ifdef OM_NDEBUG 71 #define omSetCustomOfAddr(addr) ((void)0) 72 #define omGetCustomOfAddr(addr) ((void*)0) 73 #define omSetCustomOfTrackAddr(addr) ((void)0) 74 #define omGetCustomOfTrackAddr(addr) ((void*)0) 75 #else 76 void omSetCustomOfTrackAddr(void* addr, void* value); 77 void* omGetCustomOfTrackAddr(void* addr); 78 #define omSetCustomOfAddr(addr,value) \ 79 do{if (omIsTrackAddr(addr)) omSetCustomOfTrackAddr(addr,value);}while(0) 80 #define omGetCustomOfAddr(addr) \ 81 (omIsTrackAddr(addr) ? omGetCustomOfTrackAddr(addr) : NULL) 82 #endif /* OM_NDEBUG */ 83 #endif /* OM_TRACK_CUSTOM */ 67 84 68 85 /*BEGINPRIVATE*/ -
omalloc/omDebugTrack.c
ra6a239 rfe7bd4 4 4 * Author: obachman@mathematik.uni-kl.de (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omDebugTrack.c,v 1. 5 2000-08-24 14:07:10obachman Exp $6 * Version: $Id: omDebugTrack.c,v 1.6 2000-09-12 16:02:18 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <limits.h> … … 58 58 /* track > 2 */ 59 59 void* bin_size; 60 #ifdef OM_TRACK_CUSTOM 61 void* custom; 62 #endif 60 63 #ifdef OM_TRACK_FILE_LINE 61 64 #define OM_TRACK_ADDR_MEM_3 free_line … … 649 652 } 650 653 654 #ifdef OM_TRACK_CUSTOM 655 void omSetCustomOfTrackAddr(void* addr, void* value) 656 { 657 omTrackAddr d_addr = omOutAddr_2_TrackAddr(addr); 658 omAssume(omIsTrackAddr(addr)); 659 660 if (d_addr->track > 2) 661 { 662 d_addr->custom = value; 663 } 664 } 665 666 void* omGetCustomOfTrackAddr(void* addr) 667 { 668 omTrackAddr d_addr = omOutAddr_2_TrackAddr(addr); 669 omAssume(omIsTrackAddr(addr)); 670 671 if (d_addr->track > 2) 672 { 673 return d_addr->custom; 674 } 675 else 676 { 677 return NULL; 678 } 679 } 680 #endif 681 651 682 #endif /* OM_HAVE_TRACK */ -
omalloc/omRet2Info.c
ra6a239 rfe7bd4 4 4 * Author: obachman (Olaf Bachmann) 5 5 * Created: 11/99 6 * Version: $Id: omRet2Info.c,v 1. 4 2000-08-16 12:06:11obachman Exp $6 * Version: $Id: omRet2Info.c,v 1.5 2000-09-12 16:02:19 obachman Exp $ 7 7 *******************************************************************/ 8 8 #include <stdio.h> … … 181 181 omRetInfo_t info[OM_MAX_BACKTRACE_DEPTH]; 182 182 if (max > OM_MAX_BACKTRACE_DEPTH) max = OM_MAX_BACKTRACE_DEPTH; 183 183 for (i=0; i<max; i++) 184 { 185 if (bt[i] == NULL) 186 { 187 max = i+1; 188 break; 189 } 190 } 184 191 i = omBackTrace_2_RetInfo(bt, info, max); 185 192 #ifdef OM_TRACK_RETURN
Note: See TracChangeset
for help on using the changeset viewer.