Changeset f8dcbcb in git
- Timestamp:
- Jan 27, 2001, 6:04:59 PM (23 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- 995ba8e72c52d5e7ce134eb888bb7682e01af581
- Parents:
- d83977461ed45e8d1baf489f2bd39e88bd603aa3
- Location:
- Singular
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.in
rd83977 rf8dcbcb 60 60 LD_LIBC = -lc 61 61 STATIC_LDFLAGS = @STATIC_LDFLAGS@ 62 # under cygwin, do not explicitly link against -lm, for it is the cygwin 63 # lib -- if you really want to do this, use -lm as the _last_ thing on the 64 # arguments to link 65 ifneq ($(SINGUNAME),ix86-Win) 62 66 LIBS = -lm @NEED_LIBS@ 67 else 68 LIBS = @NEED_LIBS@ 69 endif 63 70 MP_LIBS = @MP_LIBS@ 64 71 DL_KERNEL = @DL_KERNEL@ -
Singular/configure
rd83977 rf8dcbcb 1634 1634 1635 1635 # lib checks 1636 # under cygwin, we should not explicitly link with -lm, except for 1637 # it reallz is the last thing to link with 1638 if test "$ac_cv_singuname" != ix86-Win; then 1636 1639 echo $ac_n "checking for atof in -lm""... $ac_c" 1>&6 1637 echo "configure:16 38: checking for atof in -lm" >&51640 echo "configure:1641: checking for atof in -lm" >&5 1638 1641 ac_lib_var=`echo m'_'atof | sed 'y%./+-%__p_%'` 1639 1642 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1643 1646 LIBS="-lm $LIBS" 1644 1647 cat > conftest.$ac_ext <<EOF 1645 #line 164 6"configure"1648 #line 1649 "configure" 1646 1649 #include "confdefs.h" 1647 1650 /* Override any gcc2 internal prototype to avoid an error. */ … … 1654 1657 ; return 0; } 1655 1658 EOF 1656 if { (eval echo configure:16 57: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1659 if { (eval echo configure:1660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1657 1660 rm -rf conftest* 1658 1661 eval "ac_cv_lib_$ac_lib_var=yes" … … 1681 1684 fi 1682 1685 1686 fi 1683 1687 SAVE_LIBS=${LIBS} 1684 1688 LIBS= … … 1688 1692 HPUX*) 1689 1693 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6 1690 echo "configure:169 1: checking for shl_load in -ldld" >&51694 echo "configure:1695: checking for shl_load in -ldld" >&5 1691 1695 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'` 1692 1696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1696 1700 LIBS="-ldld $LIBS" 1697 1701 cat > conftest.$ac_ext <<EOF 1698 #line 1 699"configure"1702 #line 1703 "configure" 1699 1703 #include "confdefs.h" 1700 1704 /* Override any gcc2 internal prototype to avoid an error. */ … … 1707 1711 ; return 0; } 1708 1712 EOF 1709 if { (eval echo configure:171 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1713 if { (eval echo configure:1714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1710 1714 rm -rf conftest* 1711 1715 eval "ac_cv_lib_$ac_lib_var=yes" … … 1743 1747 *Linux*) 1744 1748 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6 1745 echo "configure:17 46: checking for dlopen in -ldl" >&51749 echo "configure:1750: checking for dlopen in -ldl" >&5 1746 1750 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'` 1747 1751 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 1751 1755 LIBS="-ldl $LIBS" 1752 1756 cat > conftest.$ac_ext <<EOF 1753 #line 175 4"configure"1757 #line 1758 "configure" 1754 1758 #include "confdefs.h" 1755 1759 /* Override any gcc2 internal prototype to avoid an error. */ … … 1762 1766 ; return 0; } 1763 1767 EOF 1764 if { (eval echo configure:176 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then1768 if { (eval echo configure:1769: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 1765 1769 rm -rf conftest* 1766 1770 eval "ac_cv_lib_$ac_lib_var=yes" … … 1809 1813 # heder file checks 1810 1814 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6 1811 echo "configure:181 2: checking for ANSI C header files" >&51815 echo "configure:1816: checking for ANSI C header files" >&5 1812 1816 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then 1813 1817 echo $ac_n "(cached) $ac_c" 1>&6 1814 1818 else 1815 1819 cat > conftest.$ac_ext <<EOF 1816 #line 18 17"configure"1820 #line 1821 "configure" 1817 1821 #include "confdefs.h" 1818 1822 #include <stdlib.h> … … 1822 1826 EOF 1823 1827 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1824 { (eval echo configure:182 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1828 { (eval echo configure:1829: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1825 1829 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1826 1830 if test -z "$ac_err"; then … … 1839 1843 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 1840 1844 cat > conftest.$ac_ext <<EOF 1841 #line 184 2"configure"1845 #line 1846 "configure" 1842 1846 #include "confdefs.h" 1843 1847 #include <string.h> … … 1857 1861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 1858 1862 cat > conftest.$ac_ext <<EOF 1859 #line 186 0"configure"1863 #line 1864 "configure" 1860 1864 #include "confdefs.h" 1861 1865 #include <stdlib.h> … … 1878 1882 else 1879 1883 cat > conftest.$ac_ext <<EOF 1880 #line 188 1"configure"1884 #line 1885 "configure" 1881 1885 #include "confdefs.h" 1882 1886 #include <ctype.h> … … 1889 1893 1890 1894 EOF 1891 if { (eval echo configure:189 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null1895 if { (eval echo configure:1896: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 1892 1896 then 1893 1897 : … … 1916 1920 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1917 1921 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1918 echo "configure:19 19: checking for $ac_hdr" >&51922 echo "configure:1923: checking for $ac_hdr" >&5 1919 1923 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1920 1924 echo $ac_n "(cached) $ac_c" 1>&6 1921 1925 else 1922 1926 cat > conftest.$ac_ext <<EOF 1923 #line 192 4"configure"1927 #line 1928 "configure" 1924 1928 #include "confdefs.h" 1925 1929 #include <$ac_hdr> 1926 1930 EOF 1927 1931 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1928 { (eval echo configure:19 29: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1932 { (eval echo configure:1933: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1929 1933 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1930 1934 if test -z "$ac_err"; then … … 1958 1962 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 1959 1963 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 1960 echo "configure:196 1: checking for $ac_hdr" >&51964 echo "configure:1965: checking for $ac_hdr" >&5 1961 1965 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 1962 1966 echo $ac_n "(cached) $ac_c" 1>&6 1963 1967 else 1964 1968 cat > conftest.$ac_ext <<EOF 1965 #line 19 66"configure"1969 #line 1970 "configure" 1966 1970 #include "confdefs.h" 1967 1971 #include <$ac_hdr> 1968 1972 EOF 1969 1973 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 1970 { (eval echo configure:197 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }1974 { (eval echo configure:1975: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 1971 1975 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 1972 1976 if test -z "$ac_err"; then … … 1997 2001 # typedefs, structures 1998 2002 echo $ac_n "checking for working const""... $ac_c" 1>&6 1999 echo "configure:200 0: checking for working const" >&52003 echo "configure:2004: checking for working const" >&5 2000 2004 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then 2001 2005 echo $ac_n "(cached) $ac_c" 1>&6 2002 2006 else 2003 2007 cat > conftest.$ac_ext <<EOF 2004 #line 200 5"configure"2008 #line 2009 "configure" 2005 2009 #include "confdefs.h" 2006 2010 … … 2051 2055 ; return 0; } 2052 2056 EOF 2053 if { (eval echo configure:205 4: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2057 if { (eval echo configure:2058: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2054 2058 rm -rf conftest* 2055 2059 ac_cv_c_const=yes … … 2072 2076 2073 2077 echo $ac_n "checking for inline""... $ac_c" 1>&6 2074 echo "configure:207 5: checking for inline" >&52078 echo "configure:2079: checking for inline" >&5 2075 2079 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then 2076 2080 echo $ac_n "(cached) $ac_c" 1>&6 … … 2079 2083 for ac_kw in inline __inline__ __inline; do 2080 2084 cat > conftest.$ac_ext <<EOF 2081 #line 208 2"configure"2085 #line 2086 "configure" 2082 2086 #include "confdefs.h" 2083 2087 … … 2086 2090 ; return 0; } 2087 2091 EOF 2088 if { (eval echo configure:20 89: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2092 if { (eval echo configure:2093: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2089 2093 rm -rf conftest* 2090 2094 ac_cv_c_inline=$ac_kw; break … … 2112 2116 2113 2117 echo $ac_n "checking for size_t""... $ac_c" 1>&6 2114 echo "configure:211 5: checking for size_t" >&52118 echo "configure:2119: checking for size_t" >&5 2115 2119 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then 2116 2120 echo $ac_n "(cached) $ac_c" 1>&6 2117 2121 else 2118 2122 cat > conftest.$ac_ext <<EOF 2119 #line 212 0"configure"2123 #line 2124 "configure" 2120 2124 #include "confdefs.h" 2121 2125 #include <sys/types.h> … … 2145 2149 2146 2150 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6 2147 echo "configure:21 48: checking whether time.h and sys/time.h may both be included" >&52151 echo "configure:2152: checking whether time.h and sys/time.h may both be included" >&5 2148 2152 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then 2149 2153 echo $ac_n "(cached) $ac_c" 1>&6 2150 2154 else 2151 2155 cat > conftest.$ac_ext <<EOF 2152 #line 215 3"configure"2156 #line 2157 "configure" 2153 2157 #include "confdefs.h" 2154 2158 #include <sys/types.h> … … 2159 2163 ; return 0; } 2160 2164 EOF 2161 if { (eval echo configure:216 2: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2165 if { (eval echo configure:2166: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2162 2166 rm -rf conftest* 2163 2167 ac_cv_header_time=yes … … 2180 2184 2181 2185 echo $ac_n "checking whether struct tm is in sys/time.h or time.h""... $ac_c" 1>&6 2182 echo "configure:218 3: checking whether struct tm is in sys/time.h or time.h" >&52186 echo "configure:2187: checking whether struct tm is in sys/time.h or time.h" >&5 2183 2187 if eval "test \"`echo '$''{'ac_cv_struct_tm'+set}'`\" = set"; then 2184 2188 echo $ac_n "(cached) $ac_c" 1>&6 2185 2189 else 2186 2190 cat > conftest.$ac_ext <<EOF 2187 #line 21 88"configure"2191 #line 2192 "configure" 2188 2192 #include "confdefs.h" 2189 2193 #include <sys/types.h> … … 2193 2197 ; return 0; } 2194 2198 EOF 2195 if { (eval echo configure:2 196: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2199 if { (eval echo configure:2200: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2196 2200 rm -rf conftest* 2197 2201 ac_cv_struct_tm=time.h … … 2218 2222 # for constant arguments. Useless! 2219 2223 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6 2220 echo "configure:222 1: checking for working alloca.h" >&52224 echo "configure:2225: checking for working alloca.h" >&5 2221 2225 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then 2222 2226 echo $ac_n "(cached) $ac_c" 1>&6 2223 2227 else 2224 2228 cat > conftest.$ac_ext <<EOF 2225 #line 22 26"configure"2229 #line 2230 "configure" 2226 2230 #include "confdefs.h" 2227 2231 #include <alloca.h> … … 2230 2234 ; return 0; } 2231 2235 EOF 2232 if { (eval echo configure:223 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2236 if { (eval echo configure:2237: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2233 2237 rm -rf conftest* 2234 2238 ac_cv_header_alloca_h=yes … … 2251 2255 2252 2256 echo $ac_n "checking for alloca""... $ac_c" 1>&6 2253 echo "configure:225 4: checking for alloca" >&52257 echo "configure:2258: checking for alloca" >&5 2254 2258 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then 2255 2259 echo $ac_n "(cached) $ac_c" 1>&6 2256 2260 else 2257 2261 cat > conftest.$ac_ext <<EOF 2258 #line 22 59"configure"2262 #line 2263 "configure" 2259 2263 #include "confdefs.h" 2260 2264 … … 2284 2288 ; return 0; } 2285 2289 EOF 2286 if { (eval echo configure:22 87: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2290 if { (eval echo configure:2291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2287 2291 rm -rf conftest* 2288 2292 ac_cv_func_alloca_works=yes … … 2316 2320 2317 2321 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6 2318 echo "configure:23 19: checking whether alloca needs Cray hooks" >&52322 echo "configure:2323: checking whether alloca needs Cray hooks" >&5 2319 2323 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then 2320 2324 echo $ac_n "(cached) $ac_c" 1>&6 2321 2325 else 2322 2326 cat > conftest.$ac_ext <<EOF 2323 #line 232 4"configure"2327 #line 2328 "configure" 2324 2328 #include "confdefs.h" 2325 2329 #if defined(CRAY) && ! defined(CRAY2) … … 2346 2350 for ac_func in _getb67 GETB67 getb67; do 2347 2351 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2348 echo "configure:23 49: checking for $ac_func" >&52352 echo "configure:2353: checking for $ac_func" >&5 2349 2353 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2350 2354 echo $ac_n "(cached) $ac_c" 1>&6 2351 2355 else 2352 2356 cat > conftest.$ac_ext <<EOF 2353 #line 235 4"configure"2357 #line 2358 "configure" 2354 2358 #include "confdefs.h" 2355 2359 /* System header to define __stub macros and hopefully few prototypes, … … 2374 2378 ; return 0; } 2375 2379 EOF 2376 if { (eval echo configure:23 77: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2377 2381 rm -rf conftest* 2378 2382 eval "ac_cv_func_$ac_func=yes" … … 2401 2405 2402 2406 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6 2403 echo "configure:240 4: checking stack direction for C alloca" >&52407 echo "configure:2408: checking stack direction for C alloca" >&5 2404 2408 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then 2405 2409 echo $ac_n "(cached) $ac_c" 1>&6 … … 2409 2413 else 2410 2414 cat > conftest.$ac_ext <<EOF 2411 #line 241 2"configure"2415 #line 2416 "configure" 2412 2416 #include "confdefs.h" 2413 2417 find_stack_direction () … … 2428 2432 } 2429 2433 EOF 2430 if { (eval echo configure:243 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2434 if { (eval echo configure:2435: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2431 2435 then 2432 2436 ac_cv_c_stack_direction=1 … … 2451 2455 if test $ac_cv_prog_gcc = yes; then 2452 2456 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6 2453 echo "configure:245 4: checking whether ${CC-cc} needs -traditional" >&52457 echo "configure:2458: checking whether ${CC-cc} needs -traditional" >&5 2454 2458 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then 2455 2459 echo $ac_n "(cached) $ac_c" 1>&6 … … 2457 2461 ac_pattern="Autoconf.*'x'" 2458 2462 cat > conftest.$ac_ext <<EOF 2459 #line 246 0"configure"2463 #line 2464 "configure" 2460 2464 #include "confdefs.h" 2461 2465 #include <sgtty.h> … … 2475 2479 if test $ac_cv_prog_gcc_traditional = no; then 2476 2480 cat > conftest.$ac_ext <<EOF 2477 #line 24 78"configure"2481 #line 2482 "configure" 2478 2482 #include "confdefs.h" 2479 2483 #include <termio.h> … … 2500 2504 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 2501 2505 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 2502 echo "configure:250 3: checking for $ac_hdr" >&52506 echo "configure:2507: checking for $ac_hdr" >&5 2503 2507 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 2504 2508 echo $ac_n "(cached) $ac_c" 1>&6 2505 2509 else 2506 2510 cat > conftest.$ac_ext <<EOF 2507 #line 25 08"configure"2511 #line 2512 "configure" 2508 2512 #include "confdefs.h" 2509 2513 #include <$ac_hdr> 2510 2514 EOF 2511 2515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 2512 { (eval echo configure:251 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }2516 { (eval echo configure:2517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 2513 2517 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 2514 2518 if test -z "$ac_err"; then … … 2539 2543 do 2540 2544 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2541 echo "configure:254 2: checking for $ac_func" >&52545 echo "configure:2546: checking for $ac_func" >&5 2542 2546 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2543 2547 echo $ac_n "(cached) $ac_c" 1>&6 2544 2548 else 2545 2549 cat > conftest.$ac_ext <<EOF 2546 #line 25 47"configure"2550 #line 2551 "configure" 2547 2551 #include "confdefs.h" 2548 2552 /* System header to define __stub macros and hopefully few prototypes, … … 2567 2571 ; return 0; } 2568 2572 EOF 2569 if { (eval echo configure:257 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2573 if { (eval echo configure:2574: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2570 2574 rm -rf conftest* 2571 2575 eval "ac_cv_func_$ac_func=yes" … … 2592 2596 2593 2597 echo $ac_n "checking for working mmap""... $ac_c" 1>&6 2594 echo "configure:259 5: checking for working mmap" >&52598 echo "configure:2599: checking for working mmap" >&5 2595 2599 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then 2596 2600 echo $ac_n "(cached) $ac_c" 1>&6 … … 2600 2604 else 2601 2605 cat > conftest.$ac_ext <<EOF 2602 #line 260 3"configure"2606 #line 2607 "configure" 2603 2607 #include "confdefs.h" 2604 2608 … … 2740 2744 2741 2745 EOF 2742 if { (eval echo configure:274 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null2746 if { (eval echo configure:2747: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 2743 2747 then 2744 2748 ac_cv_func_mmap_fixed_mapped=yes … … 2763 2767 2764 2768 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6 2765 echo "configure:27 66: checking return type of signal handlers" >&52769 echo "configure:2770: checking return type of signal handlers" >&5 2766 2770 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then 2767 2771 echo $ac_n "(cached) $ac_c" 1>&6 2768 2772 else 2769 2773 cat > conftest.$ac_ext <<EOF 2770 #line 277 1"configure"2774 #line 2775 "configure" 2771 2775 #include "confdefs.h" 2772 2776 #include <sys/types.h> … … 2785 2789 ; return 0; } 2786 2790 EOF 2787 if { (eval echo configure:27 88: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then2791 if { (eval echo configure:2792: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 2788 2792 rm -rf conftest* 2789 2793 ac_cv_type_signal=void … … 2804 2808 2805 2809 echo $ac_n "checking for vprintf""... $ac_c" 1>&6 2806 echo "configure:28 07: checking for vprintf" >&52810 echo "configure:2811: checking for vprintf" >&5 2807 2811 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then 2808 2812 echo $ac_n "(cached) $ac_c" 1>&6 2809 2813 else 2810 2814 cat > conftest.$ac_ext <<EOF 2811 #line 281 2"configure"2815 #line 2816 "configure" 2812 2816 #include "confdefs.h" 2813 2817 /* System header to define __stub macros and hopefully few prototypes, … … 2832 2836 ; return 0; } 2833 2837 EOF 2834 if { (eval echo configure:283 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2838 if { (eval echo configure:2839: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2835 2839 rm -rf conftest* 2836 2840 eval "ac_cv_func_vprintf=yes" … … 2856 2860 if test "$ac_cv_func_vprintf" != yes; then 2857 2861 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6 2858 echo "configure:28 59: checking for _doprnt" >&52862 echo "configure:2863: checking for _doprnt" >&5 2859 2863 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then 2860 2864 echo $ac_n "(cached) $ac_c" 1>&6 2861 2865 else 2862 2866 cat > conftest.$ac_ext <<EOF 2863 #line 286 4"configure"2867 #line 2868 "configure" 2864 2868 #include "confdefs.h" 2865 2869 /* System header to define __stub macros and hopefully few prototypes, … … 2884 2888 ; return 0; } 2885 2889 EOF 2886 if { (eval echo configure:28 87: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2890 if { (eval echo configure:2891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2887 2891 rm -rf conftest* 2888 2892 eval "ac_cv_func__doprnt=yes" … … 2910 2914 2911 2915 echo $ac_n "checking for library containing setenv""... $ac_c" 1>&6 2912 echo "configure:291 3: checking for library containing setenv" >&52916 echo "configure:2917: checking for library containing setenv" >&5 2913 2917 if eval "test \"`echo '$''{'ac_cv_search_setenv'+set}'`\" = set"; then 2914 2918 echo $ac_n "(cached) $ac_c" 1>&6 … … 2917 2921 ac_cv_search_setenv="no" 2918 2922 cat > conftest.$ac_ext <<EOF 2919 #line 292 0"configure"2923 #line 2924 "configure" 2920 2924 #include "confdefs.h" 2921 2925 /* Override any gcc2 internal prototype to avoid an error. */ … … 2928 2932 ; return 0; } 2929 2933 EOF 2930 if { (eval echo configure:293 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2934 if { (eval echo configure:2935: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2931 2935 rm -rf conftest* 2932 2936 ac_cv_search_setenv="none required" … … 2939 2943 LIBS="-l$i $ac_func_search_save_LIBS" 2940 2944 cat > conftest.$ac_ext <<EOF 2941 #line 294 2"configure"2945 #line 2946 "configure" 2942 2946 #include "confdefs.h" 2943 2947 /* Override any gcc2 internal prototype to avoid an error. */ … … 2950 2954 ; return 0; } 2951 2955 EOF 2952 if { (eval echo configure:295 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then2956 if { (eval echo configure:2957: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 2953 2957 rm -rf conftest* 2954 2958 ac_cv_search_setenv="-l$i" … … 2973 2977 do 2974 2978 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6 2975 echo "configure:29 76: checking for $ac_func" >&52979 echo "configure:2980: checking for $ac_func" >&5 2976 2980 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then 2977 2981 echo $ac_n "(cached) $ac_c" 1>&6 2978 2982 else 2979 2983 cat > conftest.$ac_ext <<EOF 2980 #line 298 1"configure"2984 #line 2985 "configure" 2981 2985 #include "confdefs.h" 2982 2986 /* System header to define __stub macros and hopefully few prototypes, … … 3001 3005 ; return 0; } 3002 3006 EOF 3003 if { (eval echo configure:300 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3007 if { (eval echo configure:3008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3004 3008 rm -rf conftest* 3005 3009 eval "ac_cv_func_$ac_func=yes" … … 3030 3034 # arithmetic shifts 3031 3035 echo $ac_n "checking whether your machine has correct arithmetic shifts""... $ac_c" 1>&6 3032 echo "configure:303 3: checking whether your machine has correct arithmetic shifts" >&53036 echo "configure:3037: checking whether your machine has correct arithmetic shifts" >&5 3033 3037 if eval "test \"`echo '$''{'ac_cv_shift'+set}'`\" = set"; then 3034 3038 echo $ac_n "(cached) $ac_c" 1>&6 … … 3043 3047 else 3044 3048 cat > conftest.$ac_ext <<EOF 3045 #line 30 46"configure"3049 #line 3050 "configure" 3046 3050 #include "confdefs.h" 3047 3051 int main() { if (-2 >> 1 == -1) exit(0); else exit(1); } 3048 3052 EOF 3049 if { (eval echo configure:305 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3053 if { (eval echo configure:3054: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3050 3054 then 3051 3055 ac_cv_shift=yes … … 3072 3076 # check for a peculiar constructor initialization 3073 3077 echo $ac_n "checking whether explicit C++ constructor calls are allowed""... $ac_c" 1>&6 3074 echo "configure:307 5: checking whether explicit C++ constructor calls are allowed" >&53078 echo "configure:3079: checking whether explicit C++ constructor calls are allowed" >&5 3075 3079 3076 3080 ac_ext=C … … 3085 3089 else 3086 3090 cat > conftest.$ac_ext <<EOF 3087 #line 30 88"configure"3091 #line 3092 "configure" 3088 3092 #include "confdefs.h" 3089 3093 … … 3103 3107 ; return 0; } 3104 3108 EOF 3105 if { (eval echo configure:31 06: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3109 if { (eval echo configure:3110: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3106 3110 rm -rf conftest* 3107 3111 ac_cv_explicit_const=yes … … 3132 3136 # sprintf returns number of printed chars 3133 3137 echo $ac_n "checking whether vsprintf returns number of printed chars""... $ac_c" 1>&6 3134 echo "configure:313 5: checking whether vsprintf returns number of printed chars" >&53138 echo "configure:3139: checking whether vsprintf returns number of printed chars" >&5 3135 3139 if eval "test \"`echo '$''{'ac_cv_returns_n_of_chars'+set}'`\" = set"; then 3136 3140 echo $ac_n "(cached) $ac_c" 1>&6 … … 3140 3144 else 3141 3145 cat > conftest.$ac_ext <<EOF 3142 #line 314 3"configure"3146 #line 3147 "configure" 3143 3147 #include "confdefs.h" 3144 3148 #include <stdio.h> 3145 3149 main() { char *str=(char*)malloc(20); if (((int) sprintf(str,"123456789")) == 9) exit(0); else exit(1); } 3146 3150 EOF 3147 if { (eval echo configure:31 48: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3151 if { (eval echo configure:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3148 3152 then 3149 3153 ac_cv_returns_n_of_chars=yes … … 3171 3175 # determine ALIGN_8 3172 3176 echo $ac_n "checking size of char""... $ac_c" 1>&6 3173 echo "configure:317 4: checking size of char" >&53177 echo "configure:3178: checking size of char" >&5 3174 3178 if eval "test \"`echo '$''{'ac_cv_sizeof_char'+set}'`\" = set"; then 3175 3179 echo $ac_n "(cached) $ac_c" 1>&6 … … 3179 3183 else 3180 3184 cat > conftest.$ac_ext <<EOF 3181 #line 318 2"configure"3185 #line 3186 "configure" 3182 3186 #include "confdefs.h" 3183 3187 #include <stdio.h> … … 3190 3194 } 3191 3195 EOF 3192 if { (eval echo configure:319 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3196 if { (eval echo configure:3197: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3193 3197 then 3194 3198 ac_cv_sizeof_char=`cat conftestval` … … 3210 3214 3211 3215 echo $ac_n "checking size of short""... $ac_c" 1>&6 3212 echo "configure:321 3: checking size of short" >&53216 echo "configure:3217: checking size of short" >&5 3213 3217 if eval "test \"`echo '$''{'ac_cv_sizeof_short'+set}'`\" = set"; then 3214 3218 echo $ac_n "(cached) $ac_c" 1>&6 … … 3218 3222 else 3219 3223 cat > conftest.$ac_ext <<EOF 3220 #line 322 1"configure"3224 #line 3225 "configure" 3221 3225 #include "confdefs.h" 3222 3226 #include <stdio.h> … … 3229 3233 } 3230 3234 EOF 3231 if { (eval echo configure:323 2: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3235 if { (eval echo configure:3236: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3232 3236 then 3233 3237 ac_cv_sizeof_short=`cat conftestval` … … 3249 3253 3250 3254 echo $ac_n "checking size of int""... $ac_c" 1>&6 3251 echo "configure:325 2: checking size of int" >&53255 echo "configure:3256: checking size of int" >&5 3252 3256 if eval "test \"`echo '$''{'ac_cv_sizeof_int'+set}'`\" = set"; then 3253 3257 echo $ac_n "(cached) $ac_c" 1>&6 … … 3257 3261 else 3258 3262 cat > conftest.$ac_ext <<EOF 3259 #line 326 0"configure"3263 #line 3264 "configure" 3260 3264 #include "confdefs.h" 3261 3265 #include <stdio.h> … … 3268 3272 } 3269 3273 EOF 3270 if { (eval echo configure:327 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3271 3275 then 3272 3276 ac_cv_sizeof_int=`cat conftestval` … … 3288 3292 3289 3293 echo $ac_n "checking size of long""... $ac_c" 1>&6 3290 echo "configure:329 1: checking size of long" >&53294 echo "configure:3295: checking size of long" >&5 3291 3295 if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then 3292 3296 echo $ac_n "(cached) $ac_c" 1>&6 … … 3296 3300 else 3297 3301 cat > conftest.$ac_ext <<EOF 3298 #line 3 299"configure"3302 #line 3303 "configure" 3299 3303 #include "confdefs.h" 3300 3304 #include <stdio.h> … … 3307 3311 } 3308 3312 EOF 3309 if { (eval echo configure:331 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3313 if { (eval echo configure:3314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3310 3314 then 3311 3315 ac_cv_sizeof_long=`cat conftestval` … … 3327 3331 3328 3332 echo $ac_n "checking size of void*""... $ac_c" 1>&6 3329 echo "configure:333 0: checking size of void*" >&53333 echo "configure:3334: checking size of void*" >&5 3330 3334 if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then 3331 3335 echo $ac_n "(cached) $ac_c" 1>&6 … … 3335 3339 else 3336 3340 cat > conftest.$ac_ext <<EOF 3337 #line 33 38"configure"3341 #line 3342 "configure" 3338 3342 #include "confdefs.h" 3339 3343 #include <stdio.h> … … 3346 3350 } 3347 3351 EOF 3348 if { (eval echo configure:33 49: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3352 if { (eval echo configure:3353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3349 3353 then 3350 3354 ac_cv_sizeof_voidp=`cat conftestval` … … 3366 3370 3367 3371 echo $ac_n "checking size of double""... $ac_c" 1>&6 3368 echo "configure:33 69: checking size of double" >&53372 echo "configure:3373: checking size of double" >&5 3369 3373 if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then 3370 3374 echo $ac_n "(cached) $ac_c" 1>&6 … … 3374 3378 else 3375 3379 cat > conftest.$ac_ext <<EOF 3376 #line 33 77"configure"3380 #line 3381 "configure" 3377 3381 #include "confdefs.h" 3378 3382 #include <stdio.h> … … 3385 3389 } 3386 3390 EOF 3387 if { (eval echo configure:33 88: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3391 if { (eval echo configure:3392: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3388 3392 then 3389 3393 ac_cv_sizeof_double=`cat conftestval` … … 3405 3409 3406 3410 echo $ac_n "checking whether byte ordering is bigendian""... $ac_c" 1>&6 3407 echo "configure:34 08: checking whether byte ordering is bigendian" >&53411 echo "configure:3412: checking whether byte ordering is bigendian" >&5 3408 3412 if eval "test \"`echo '$''{'ac_cv_c_bigendian'+set}'`\" = set"; then 3409 3413 echo $ac_n "(cached) $ac_c" 1>&6 … … 3412 3416 # See if sys/param.h defines the BYTE_ORDER macro. 3413 3417 cat > conftest.$ac_ext <<EOF 3414 #line 341 5"configure"3418 #line 3419 "configure" 3415 3419 #include "confdefs.h" 3416 3420 #include <sys/types.h> … … 3423 3427 ; return 0; } 3424 3428 EOF 3425 if { (eval echo configure:34 26: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3429 if { (eval echo configure:3430: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3426 3430 rm -rf conftest* 3427 3431 # It does; now see whether it defined to BIG_ENDIAN or not. 3428 3432 cat > conftest.$ac_ext <<EOF 3429 #line 343 0"configure"3433 #line 3434 "configure" 3430 3434 #include "confdefs.h" 3431 3435 #include <sys/types.h> … … 3438 3442 ; return 0; } 3439 3443 EOF 3440 if { (eval echo configure:344 1: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then3444 if { (eval echo configure:3445: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then 3441 3445 rm -rf conftest* 3442 3446 ac_cv_c_bigendian=yes … … 3458 3462 else 3459 3463 cat > conftest.$ac_ext <<EOF 3460 #line 346 1"configure"3464 #line 3465 "configure" 3461 3465 #include "confdefs.h" 3462 3466 main () { … … 3471 3475 } 3472 3476 EOF 3473 if { (eval echo configure:347 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null 3474 3478 then 3475 3479 ac_cv_c_bigendian=no … … 3589 3593 3590 3594 echo $ac_n "checking whether to use dynamic linking""... $ac_c" 1>&6 3591 echo "configure:359 2: checking whether to use dynamic linking" >&53595 echo "configure:3596: checking whether to use dynamic linking" >&5 3592 3596 if test "$with_dl" != no && test "$ac_lib_dl" = yes; then 3593 3597 cat >> confdefs.h <<\EOF … … 3602 3606 3603 3607 echo $ac_n "checking for tgetent in -lncurses""... $ac_c" 1>&6 3604 echo "configure:360 5: checking for tgetent in -lncurses" >&53608 echo "configure:3609: checking for tgetent in -lncurses" >&5 3605 3609 ac_lib_var=`echo ncurses'_'tgetent | sed 'y%./+-%__p_%'` 3606 3610 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3610 3614 LIBS="-lncurses $LIBS" 3611 3615 cat > conftest.$ac_ext <<EOF 3612 #line 361 3"configure"3616 #line 3617 "configure" 3613 3617 #include "confdefs.h" 3614 3618 /* Override any gcc2 internal prototype to avoid an error. */ … … 3621 3625 ; return 0; } 3622 3626 EOF 3623 if { (eval echo configure:362 4: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3627 if { (eval echo configure:3628: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3624 3628 rm -rf conftest* 3625 3629 eval "ac_cv_lib_$ac_lib_var=yes" … … 3648 3652 \ 3649 3653 echo $ac_n "checking for tgetent in -lcurses""... $ac_c" 1>&6 3650 echo "configure:365 1: checking for tgetent in -lcurses" >&53654 echo "configure:3655: checking for tgetent in -lcurses" >&5 3651 3655 ac_lib_var=`echo curses'_'tgetent | sed 'y%./+-%__p_%'` 3652 3656 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3656 3660 LIBS="-lcurses $LIBS" 3657 3661 cat > conftest.$ac_ext <<EOF 3658 #line 36 59"configure"3662 #line 3663 "configure" 3659 3663 #include "confdefs.h" 3660 3664 /* Override any gcc2 internal prototype to avoid an error. */ … … 3667 3671 ; return 0; } 3668 3672 EOF 3669 if { (eval echo configure:367 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3673 if { (eval echo configure:3674: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3670 3674 rm -rf conftest* 3671 3675 eval "ac_cv_lib_$ac_lib_var=yes" … … 3694 3698 \ 3695 3699 echo $ac_n "checking for tgetent in -ltermcap""... $ac_c" 1>&6 3696 echo "configure:3 697: checking for tgetent in -ltermcap" >&53700 echo "configure:3701: checking for tgetent in -ltermcap" >&5 3697 3701 ac_lib_var=`echo termcap'_'tgetent | sed 'y%./+-%__p_%'` 3698 3702 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3702 3706 LIBS="-ltermcap $LIBS" 3703 3707 cat > conftest.$ac_ext <<EOF 3704 #line 370 5"configure"3708 #line 3709 "configure" 3705 3709 #include "confdefs.h" 3706 3710 /* Override any gcc2 internal prototype to avoid an error. */ … … 3713 3717 ; return 0; } 3714 3718 EOF 3715 if { (eval echo configure:37 16: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3719 if { (eval echo configure:3720: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3716 3720 rm -rf conftest* 3717 3721 eval "ac_cv_lib_$ac_lib_var=yes" … … 3762 3766 3763 3767 echo $ac_n "checking for rl_abort in -lreadline""... $ac_c" 1>&6 3764 echo "configure:376 5: checking for rl_abort in -lreadline" >&53768 echo "configure:3769: checking for rl_abort in -lreadline" >&5 3765 3769 ac_lib_var=`echo readline'_'rl_abort | sed 'y%./+-%__p_%'` 3766 3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 3770 3774 LIBS="-lreadline $LIBS" 3771 3775 cat > conftest.$ac_ext <<EOF 3772 #line 377 3"configure"3776 #line 3777 "configure" 3773 3777 #include "confdefs.h" 3774 3778 /* Override any gcc2 internal prototype to avoid an error. */ … … 3784 3788 ; return 0; } 3785 3789 EOF 3786 if { (eval echo configure:37 87: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3790 if { (eval echo configure:3791: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3787 3791 rm -rf conftest* 3788 3792 eval "ac_cv_lib_$ac_lib_var=yes" … … 3812 3816 3813 3817 echo $ac_n "checking how to run the C++ preprocessor""... $ac_c" 1>&6 3814 echo "configure:381 5: checking how to run the C++ preprocessor" >&53818 echo "configure:3819: checking how to run the C++ preprocessor" >&5 3815 3819 if test -z "$CXXCPP"; then 3816 3820 if eval "test \"`echo '$''{'ac_cv_prog_CXXCPP'+set}'`\" = set"; then … … 3825 3829 CXXCPP="${CXX-g++} -E" 3826 3830 cat > conftest.$ac_ext <<EOF 3827 #line 38 28"configure"3831 #line 3832 "configure" 3828 3832 #include "confdefs.h" 3829 3833 #include <stdlib.h> 3830 3834 EOF 3831 3835 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3832 { (eval echo configure:383 3: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3836 { (eval echo configure:3837: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3833 3837 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3834 3838 if test -z "$ac_err"; then … … 3858 3862 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 3859 3863 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 3860 echo "configure:386 1: checking for $ac_hdr" >&53864 echo "configure:3865: checking for $ac_hdr" >&5 3861 3865 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 3862 3866 echo $ac_n "(cached) $ac_c" 1>&6 3863 3867 else 3864 3868 cat > conftest.$ac_ext <<EOF 3865 #line 38 66"configure"3869 #line 3870 "configure" 3866 3870 #include "confdefs.h" 3867 3871 #include <$ac_hdr> 3868 3872 EOF 3869 3873 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 3870 { (eval echo configure:387 1: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }3874 { (eval echo configure:3875: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 3871 3875 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 3872 3876 if test -z "$ac_err"; then … … 3897 3901 test "$ac_cv_header_readline_readline_h" = yes; then 3898 3902 echo $ac_n "checking whether readline.h is ok""... $ac_c" 1>&6 3899 echo "configure:390 0: checking whether readline.h is ok" >&53903 echo "configure:3904: checking whether readline.h is ok" >&5 3900 3904 if eval "test \"`echo '$''{'ac_cv_header_readline_readline_h_ok'+set}'`\" = set"; then 3901 3905 echo $ac_n "(cached) $ac_c" 1>&6 3902 3906 else 3903 3907 cat > conftest.$ac_ext <<EOF 3904 #line 390 5"configure"3908 #line 3909 "configure" 3905 3909 #include "confdefs.h" 3906 3910 #include<unistd.h> … … 3927 3931 ; return 0; } 3928 3932 EOF 3929 if { (eval echo configure:393 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3933 if { (eval echo configure:3934: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3930 3934 rm -rf conftest* 3931 3935 ac_cv_header_readline_readline_h_ok="yes" … … 3943 3947 #not ok -- try once more with explicitly declaring everything 3944 3948 echo $ac_n "checking whether or not we nevertheless can use readline""... $ac_c" 1>&6 3945 echo "configure:39 46: checking whether or not we nevertheless can use readline" >&53949 echo "configure:3950: checking whether or not we nevertheless can use readline" >&5 3946 3950 if eval "test \"`echo '$''{'ac_cv_have_readline'+set}'`\" = set"; then 3947 3951 echo $ac_n "(cached) $ac_c" 1>&6 3948 3952 else 3949 3953 cat > conftest.$ac_ext <<EOF 3950 #line 395 1"configure"3954 #line 3955 "configure" 3951 3955 #include "confdefs.h" 3952 3956 #include <stdio.h> … … 3982 3986 ; return 0; } 3983 3987 EOF 3984 if { (eval echo configure:398 5: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then3988 if { (eval echo configure:3989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 3985 3989 rm -rf conftest* 3986 3990 ac_cv_have_readline="yes" … … 4021 4025 4022 4026 echo $ac_n "checking which readline to use""... $ac_c" 1>&6 4023 echo "configure:402 4: checking which readline to use" >&54027 echo "configure:4028: checking which readline to use" >&5 4024 4028 if test "$ac_cv_with_readline" = dynamic; then 4025 4029 echo "$ac_t""dynamic" 1>&6 … … 4039 4043 # gmp, smallgmp, MP, MPT, factory, libfac 4040 4044 echo $ac_n "checking for main in -lgmp""... $ac_c" 1>&6 4041 echo "configure:404 2: checking for main in -lgmp" >&54045 echo "configure:4046: checking for main in -lgmp" >&5 4042 4046 ac_lib_var=`echo gmp'_'main | sed 'y%./+-%__p_%'` 4043 4047 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4047 4051 LIBS="-lgmp $LIBS" 4048 4052 cat > conftest.$ac_ext <<EOF 4049 #line 405 0"configure"4053 #line 4054 "configure" 4050 4054 #include "confdefs.h" 4051 4055 … … 4054 4058 ; return 0; } 4055 4059 EOF 4056 if { (eval echo configure:40 57: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4060 if { (eval echo configure:4061: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4057 4061 rm -rf conftest* 4058 4062 eval "ac_cv_lib_$ac_lib_var=yes" … … 4085 4089 fi 4086 4090 echo $ac_n "checking for main in -lsmallgmp""... $ac_c" 1>&6 4087 echo "configure:40 88: checking for main in -lsmallgmp" >&54091 echo "configure:4092: checking for main in -lsmallgmp" >&5 4088 4092 ac_lib_var=`echo smallgmp'_'main | sed 'y%./+-%__p_%'` 4089 4093 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4093 4097 LIBS="-lsmallgmp $LIBS" 4094 4098 cat > conftest.$ac_ext <<EOF 4095 #line 4 096"configure"4099 #line 4100 "configure" 4096 4100 #include "confdefs.h" 4097 4101 … … 4100 4104 ; return 0; } 4101 4105 EOF 4102 if { (eval echo configure:410 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4106 if { (eval echo configure:4107: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4103 4107 rm -rf conftest* 4104 4108 eval "ac_cv_lib_$ac_lib_var=yes" … … 4129 4133 SAVE_LIBS=$LIBS 4130 4134 echo $ac_n "checking for IMP_PutGmpInt in -lMP""... $ac_c" 1>&6 4131 echo "configure:413 2: checking for IMP_PutGmpInt in -lMP" >&54135 echo "configure:4136: checking for IMP_PutGmpInt in -lMP" >&5 4132 4136 ac_lib_var=`echo MP'_'IMP_PutGmpInt | sed 'y%./+-%__p_%'` 4133 4137 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4137 4141 LIBS="-lMP $MP_LIBS $LIBS" 4138 4142 cat > conftest.$ac_ext <<EOF 4139 #line 414 0"configure"4143 #line 4144 "configure" 4140 4144 #include "confdefs.h" 4141 4145 /* Override any gcc2 internal prototype to avoid an error. */ … … 4148 4152 ; return 0; } 4149 4153 EOF 4150 if { (eval echo configure:415 1: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4154 if { (eval echo configure:4155: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4151 4155 rm -rf conftest* 4152 4156 eval "ac_cv_lib_$ac_lib_var=yes" … … 4176 4180 4177 4181 echo $ac_n "checking for MPT_GetTree in -lMPT""... $ac_c" 1>&6 4178 echo "configure:41 79: checking for MPT_GetTree in -lMPT" >&54182 echo "configure:4183: checking for MPT_GetTree in -lMPT" >&5 4179 4183 ac_lib_var=`echo MPT'_'MPT_GetTree | sed 'y%./+-%__p_%'` 4180 4184 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4184 4188 LIBS="-lMPT $MP_LIBS $LIBS" 4185 4189 cat > conftest.$ac_ext <<EOF 4186 #line 41 87"configure"4190 #line 4191 "configure" 4187 4191 #include "confdefs.h" 4188 4192 /* Override any gcc2 internal prototype to avoid an error. */ … … 4195 4199 ; return 0; } 4196 4200 EOF 4197 if { (eval echo configure:4 198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4201 if { (eval echo configure:4202: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4198 4202 rm -rf conftest* 4199 4203 eval "ac_cv_lib_$ac_lib_var=yes" … … 4224 4228 LIBS=$SAVE_LIBS 4225 4229 echo $ac_n "checking for atof in -lsingcf""... $ac_c" 1>&6 4226 echo "configure:42 27: checking for atof in -lsingcf" >&54230 echo "configure:4231: checking for atof in -lsingcf" >&5 4227 4231 ac_lib_var=`echo singcf'_'atof | sed 'y%./+-%__p_%'` 4228 4232 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4232 4236 LIBS="-lsingcf $LIBS" 4233 4237 cat > conftest.$ac_ext <<EOF 4234 #line 423 5"configure"4238 #line 4239 "configure" 4235 4239 #include "confdefs.h" 4236 4240 /* Override any gcc2 internal prototype to avoid an error. */ … … 4243 4247 ; return 0; } 4244 4248 EOF 4245 if { (eval echo configure:42 46: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4246 4250 rm -rf conftest* 4247 4251 eval "ac_cv_lib_$ac_lib_var=yes" … … 4271 4275 4272 4276 echo $ac_n "checking for atof in -lsingfac""... $ac_c" 1>&6 4273 echo "configure:427 4: checking for atof in -lsingfac" >&54277 echo "configure:4278: checking for atof in -lsingfac" >&5 4274 4278 ac_lib_var=`echo singfac'_'atof | sed 'y%./+-%__p_%'` 4275 4279 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4279 4283 LIBS="-lsingfac $LIBS" 4280 4284 cat > conftest.$ac_ext <<EOF 4281 #line 428 2"configure"4285 #line 4286 "configure" 4282 4286 #include "confdefs.h" 4283 4287 /* Override any gcc2 internal prototype to avoid an error. */ … … 4290 4294 ; return 0; } 4291 4295 EOF 4292 if { (eval echo configure:429 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4296 if { (eval echo configure:4297: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4293 4297 rm -rf conftest* 4294 4298 eval "ac_cv_lib_$ac_lib_var=yes" … … 4318 4322 4319 4323 echo $ac_n "checking for omTestAddr in -lomalloc""... $ac_c" 1>&6 4320 echo "configure:432 1: checking for omTestAddr in -lomalloc" >&54324 echo "configure:4325: checking for omTestAddr in -lomalloc" >&5 4321 4325 ac_lib_var=`echo omalloc'_'omTestAddr | sed 'y%./+-%__p_%'` 4322 4326 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4326 4330 LIBS="-lomalloc $LIBS" 4327 4331 cat > conftest.$ac_ext <<EOF 4328 #line 43 29"configure"4332 #line 4333 "configure" 4329 4333 #include "confdefs.h" 4330 4334 /* Override any gcc2 internal prototype to avoid an error. */ … … 4337 4341 ; return 0; } 4338 4342 EOF 4339 if { (eval echo configure:434 0: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4343 if { (eval echo configure:4344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4340 4344 rm -rf conftest* 4341 4345 eval "ac_cv_lib_$ac_lib_var=yes" … … 4365 4369 4366 4370 echo $ac_n "checking for main in -lomalloc_ndebug""... $ac_c" 1>&6 4367 echo "configure:43 68: checking for main in -lomalloc_ndebug" >&54371 echo "configure:4372: checking for main in -lomalloc_ndebug" >&5 4368 4372 ac_lib_var=`echo omalloc_ndebug'_'main | sed 'y%./+-%__p_%'` 4369 4373 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then … … 4373 4377 LIBS="-lomalloc_ndebug $LIBS" 4374 4378 cat > conftest.$ac_ext <<EOF 4375 #line 43 76"configure"4379 #line 4380 "configure" 4376 4380 #include "confdefs.h" 4377 4381 … … 4380 4384 ; return 0; } 4381 4385 EOF 4382 if { (eval echo configure:438 3: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then4386 if { (eval echo configure:4387: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then 4383 4387 rm -rf conftest* 4384 4388 eval "ac_cv_lib_$ac_lib_var=yes" … … 4412 4416 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'` 4413 4417 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6 4414 echo "configure:441 5: checking for $ac_hdr" >&54418 echo "configure:4419: checking for $ac_hdr" >&5 4415 4419 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then 4416 4420 echo $ac_n "(cached) $ac_c" 1>&6 4417 4421 else 4418 4422 cat > conftest.$ac_ext <<EOF 4419 #line 442 0"configure"4423 #line 4424 "configure" 4420 4424 #include "confdefs.h" 4421 4425 #include <$ac_hdr> 4422 4426 EOF 4423 4427 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out" 4424 { (eval echo configure:442 5: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }4428 { (eval echo configure:4429: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; } 4425 4429 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"` 4426 4430 if test -z "$ac_err"; then … … 4491 4495 4492 4496 echo $ac_n "checking which apint package to use""... $ac_c" 1>&6 4493 echo "configure:449 4: checking which apint package to use" >&54497 echo "configure:4498: checking which apint package to use" >&5 4494 4498 if test "${with_apint}" != gmp && test "${with_apint}" != smallgmp; then 4495 4499 if test "$ac_gmp_ok" = yes || test "$enable_gmp" = yes; then … … 4533 4537 # 4534 4538 echo $ac_n "checking whether to have MP""... $ac_c" 1>&6 4535 echo "configure:45 36: checking whether to have MP" >&54539 echo "configure:4540: checking whether to have MP" >&5 4536 4540 if test "${with_MP}" != yes && test "${with_MP}" != no; then 4537 4541 if (test "${will_have_gmp}" = yes) && \ … … 4568 4572 4569 4573 echo $ac_n "checking whether to have factory""... $ac_c" 1>&6 4570 echo "configure:457 1: checking whether to have factory" >&54574 echo "configure:4575: checking whether to have factory" >&5 4571 4575 if test "${with_factory}" != yes && test "${with_factory}" != no; then 4572 4576 if test "$ac_factory_ok" = yes || test "$enable_factory" = yes; then … … 4599 4603 4600 4604 echo $ac_n "checking whether to have libfac""... $ac_c" 1>&6 4601 echo "configure:460 2: checking whether to have libfac" >&54605 echo "configure:4606: checking whether to have libfac" >&5 4602 4606 if test "${with_libfac}" != yes && test "${with_libfac}" != no; then 4603 4607 if (test "${will_have_factory}" = yes) && \ … … 4633 4637 4634 4638 echo $ac_n "checking whether to have dbm links""... $ac_c" 1>&6 4635 echo "configure:46 36: checking whether to have dbm links" >&54639 echo "configure:4640: checking whether to have dbm links" >&5 4636 4640 if test "$with_dbm" != no; then 4637 4641 cat >> confdefs.h <<\EOF … … 4645 4649 4646 4650 echo $ac_n "checking whether to have namespaces""... $ac_c" 1>&6 4647 echo "configure:46 48: checking whether to have namespaces" >&54651 echo "configure:4652: checking whether to have namespaces" >&5 4648 4652 if test "$with_namespaces" != yes; then 4649 4653 echo "$ac_t""no" 1>&6 … … 4657 4661 4658 4662 echo $ac_n "checking whether to have dynamic modules""... $ac_c" 1>&6 4659 echo "configure:466 0: checking whether to have dynamic modules" >&54663 echo "configure:4664: checking whether to have dynamic modules" >&5 4660 4664 if test "$with_dynamic_modules" != yes || test "$ac_have_dl" != yes; then 4661 4665 echo "$ac_t""no" 1>&6 … … 4669 4673 4670 4674 echo $ac_n "checking whether to have dynamic kernel""... $ac_c" 1>&6 4671 echo "configure:467 2: checking whether to have dynamic kernel" >&54675 echo "configure:4676: checking whether to have dynamic kernel" >&5 4672 4676 if test "$with_dynamic_kernel" != no && test "$ac_lib_dl" = yes; then 4673 4677 DL_KERNEL=1 4674 4678 4675 4679 echo "$ac_t""yes" 1>&6 4680 else 4681 echo "$ac_t""no" 1>&6 4676 4682 fi 4677 4683 4678 4684 echo $ac_n "checking whether to have Plural""... $ac_c" 1>&6 4679 echo "configure:468 0: checking whether to have Plural" >&54685 echo "configure:4686: checking whether to have Plural" >&5 4680 4686 if test "$with_plural" != yes; then 4681 4687 echo "$ac_t""no" 1>&6 -
Singular/configure.in
rd83977 rf8dcbcb 281 281 dnl 282 282 # lib checks 283 # under cygwin, we should not explicitly link with -lm, except for 284 # it reallz is the last thing to link with 285 if test "$ac_cv_singuname" != ix86-Win; then 283 286 AC_CHECK_LIB(m, atof) 287 fi 284 288 SAVE_LIBS=${LIBS} 285 289 LIBS= … … 804 808 AC_SUBST(DL_KERNEL) 805 809 AC_MSG_RESULT(yes) 810 else 811 AC_MSG_RESULT(no) 806 812 fi 807 813 -
Singular/mmalloc.cc
rd83977 rf8dcbcb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmalloc.cc,v 1. 2 2000-11-20 10:18:55 hannesExp $ */4 /* $Id: mmalloc.cc,v 1.3 2001-01-27 17:04:59 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: standard version of C++-memory management alloc func … … 10 10 #include "mod2.h" 11 11 12 #if 0 12 13 #include <omalloc.h> 13 14 … … 40 41 omfree( block ); 41 42 } 43 44 #endif -
Singular/mminit.cc
rd83977 rf8dcbcb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mminit.cc,v 1.2 1 2000-09-18 09:19:17obachman Exp $ */4 /* $Id: mminit.cc,v 1.22 2001-01-27 17:04:59 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT: init of memory management … … 13 13 #include "mmalloc.h" 14 14 #include "structs.h" 15 // this prevents the definition of malloc/free a d macros15 // this prevents the definition of malloc/free and macros 16 16 // by omalloc 17 17 #define OMALLOC_C … … 41 41 if(mmIsInitialized==0) 42 42 { 43 #ifdef OMALLOC_USES_MALLOC 44 mp_set_memory_functions(omMallocFunc,omReallocSizeFunc,omFreeSizeFunc); 45 #else 43 46 mp_set_memory_functions(malloc,reallocSize,freeSize); 47 #endif 44 48 om_Opts.OutOfMemoryFunc = omSingOutOfMemoryFunc; 45 49 #ifndef OM_NDEBUG -
Singular/mmstd.c
rd83977 rf8dcbcb 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mmstd.c,v 1. 2 2001-01-24 16:54:04 levandovExp $ */4 /* $Id: mmstd.c,v 1.3 2001-01-27 17:04:59 obachman Exp $ */ 5 5 /* 6 * ABSTRACT: standard version of C-memory management alloc func 6 * ABSTRACT: standard version of C-memory management alloc func 7 * i.e. (malloc/realloc/free) 7 8 */ 8 9 9 10 #include "mod2.h" 10 11 11 /* We define those, so that our values of 12 OM_TRACK and OM_CHECK are used */ 12 #define OM_NO_MALLOC_MACROS 13 #include "omalloc.h" 14 15 // we provide these functions, so that the settings of OM_CHECK 16 // and OM_TRACK are used, but only provide them if omalloc is not based 17 // on them 18 #ifndef OMALLOC_USES_MALLOC 13 19 14 20 // define this so that all addr allocated there are marked 15 21 // as static, i.e. not metioned by omPrintUsedAddr 16 #ifndef ix86_Win17 22 #define OM_MALLOC_MARK_AS_STATIC 18 23 #include <omalloc.c> 19 #else20 #include <stdlib.h>21 void freeSize(void* addr, size_t size)22 {23 if (addr) free(addr);24 }25 26 void* reallocSize(void* old_addr, size_t old_size, size_t new_size)27 {28 if (old_addr && new_size)29 {30 return realloc(old_addr, new_size);31 }32 else33 {34 freeSize(old_addr, old_size);35 return malloc(new_size);36 }37 }38 24 #endif
Note: See TracChangeset
for help on using the changeset viewer.