Changeset 6acb5a5 in git


Ignore:
Timestamp:
Aug 16, 2000, 2:55:48 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', '4a9821a93ffdc22a6696668bd4f6b8c9de3e6c5f')
Children:
4949013aab1d55dfee7b4c883643d1680260f389
Parents:
b98efa9343dc4a1c3148508b85d31c7b3c049f1d
Message:
HP bug fixes


git-svn-id: file:///usr/local/Singular/svn/trunk@4534 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
omalloc
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • omalloc/configure

    rb98efa r6acb5a5  
    13571357
    13581358fi
    1359 # Extract the first word of "nm", so it can be a program name with args.
    1360 set dummy nm; ac_word=$2
    1361 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
    1362 echo "configure:1363: checking for $ac_word" >&5
    1363 if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
    1364   echo $ac_n "(cached) $ac_c" 1>&6
    1365 else
    1366   if test -n "$NM"; then
    1367   ac_cv_prog_NM="$NM" # Let the user override the test.
    1368 else
    1369   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
    1370   ac_dummy="$PATH"
    1371   for ac_dir in $ac_dummy; do
    1372     test -z "$ac_dir" && ac_dir=.
    1373     if test -f $ac_dir/$ac_word; then
    1374       ac_cv_prog_NM="nm"
    1375       break
    1376     fi
    1377   done
    1378   IFS="$ac_save_ifs"
    1379   test -z "$ac_cv_prog_NM" && ac_cv_prog_NM="no"
    1380 fi
    1381 fi
    1382 NM="$ac_cv_prog_NM"
    1383 if test -n "$NM"; then
    1384   echo "$ac_t""$NM" 1>&6
    1385 else
    1386   echo "$ac_t""no" 1>&6
    1387 fi
    1388 
    1389 if test "$ac_cv_prog_NM" = nm; then
    1390   cat >> confdefs.h <<EOF
    1391 #define OM_PROG_NM "$ac_cv_prog_NM"
    1392 EOF
    1393 
    1394 fi
    13951359
    13961360echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
    1397 echo "configure:1398: checking for ANSI C header files" >&5
     1361echo "configure:1362: checking for ANSI C header files" >&5
    13981362if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
    13991363  echo $ac_n "(cached) $ac_c" 1>&6
    14001364else
    14011365  cat > conftest.$ac_ext <<EOF
    1402 #line 1403 "configure"
     1366#line 1367 "configure"
    14031367#include "confdefs.h"
    14041368#include <stdlib.h>
     
    14081372EOF
    14091373ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1410 { (eval echo configure:1411: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1374{ (eval echo configure:1375: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    14111375ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    14121376if test -z "$ac_err"; then
     
    14251389  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
    14261390cat > conftest.$ac_ext <<EOF
    1427 #line 1428 "configure"
     1391#line 1392 "configure"
    14281392#include "confdefs.h"
    14291393#include <string.h>
     
    14431407  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
    14441408cat > conftest.$ac_ext <<EOF
    1445 #line 1446 "configure"
     1409#line 1410 "configure"
    14461410#include "confdefs.h"
    14471411#include <stdlib.h>
     
    14641428else
    14651429  cat > conftest.$ac_ext <<EOF
    1466 #line 1467 "configure"
     1430#line 1431 "configure"
    14671431#include "confdefs.h"
    14681432#include <ctype.h>
     
    14751439
    14761440EOF
    1477 if { (eval echo configure:1478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1441if { (eval echo configure:1442: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    14781442then
    14791443  :
     
    15021466ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    15031467echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1504 echo "configure:1505: checking for $ac_hdr" >&5
     1468echo "configure:1469: checking for $ac_hdr" >&5
    15051469if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    15061470  echo $ac_n "(cached) $ac_c" 1>&6
    15071471else
    15081472  cat > conftest.$ac_ext <<EOF
    1509 #line 1510 "configure"
     1473#line 1474 "configure"
    15101474#include "confdefs.h"
    15111475#include <$ac_hdr>
    15121476EOF
    15131477ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1514 { (eval echo configure:1515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1478{ (eval echo configure:1479: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15151479ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15161480if test -z "$ac_err"; then
     
    15391503done
    15401504
    1541 for ac_hdr in unistd.h sys/mman.h fcntl.h
     1505for ac_hdr in unistd.h sys/mman.h fcntl.h /usr/include/malloc.h
    15421506do
    15431507ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
    15441508echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
    1545 echo "configure:1546: checking for $ac_hdr" >&5
     1509echo "configure:1510: checking for $ac_hdr" >&5
    15461510if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
    15471511  echo $ac_n "(cached) $ac_c" 1>&6
    15481512else
    15491513  cat > conftest.$ac_ext <<EOF
    1550 #line 1551 "configure"
     1514#line 1515 "configure"
    15511515#include "confdefs.h"
    15521516#include <$ac_hdr>
    15531517EOF
    15541518ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
    1555 { (eval echo configure:1556: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
     1519{ (eval echo configure:1520: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
    15561520ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
    15571521if test -z "$ac_err"; then
     
    15831547do
    15841548echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
    1585 echo "configure:1586: checking for $ac_func" >&5
     1549echo "configure:1550: checking for $ac_func" >&5
    15861550if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
    15871551  echo $ac_n "(cached) $ac_c" 1>&6
    15881552else
    15891553  cat > conftest.$ac_ext <<EOF
    1590 #line 1591 "configure"
     1554#line 1555 "configure"
    15911555#include "confdefs.h"
    15921556/* System header to define __stub macros and hopefully few prototypes,
     
    16111575; return 0; }
    16121576EOF
    1613 if { (eval echo configure:1614: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
     1577if { (eval echo configure:1578: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
    16141578  rm -rf conftest*
    16151579  eval "ac_cv_func_$ac_func=yes"
     
    16391603# sizes
    16401604echo $ac_n "checking size of long""... $ac_c" 1>&6
    1641 echo "configure:1642: checking size of long" >&5
     1605echo "configure:1606: checking size of long" >&5
    16421606if eval "test \"`echo '$''{'ac_cv_sizeof_long'+set}'`\" = set"; then
    16431607  echo $ac_n "(cached) $ac_c" 1>&6
     
    16471611else
    16481612  cat > conftest.$ac_ext <<EOF
    1649 #line 1650 "configure"
     1613#line 1614 "configure"
    16501614#include "confdefs.h"
    16511615#include <stdio.h>
     
    16581622}
    16591623EOF
    1660 if { (eval echo configure:1661: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1624if { (eval echo configure:1625: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    16611625then
    16621626  ac_cv_sizeof_long=`cat conftestval`
     
    16781642
    16791643echo $ac_n "checking size of void*""... $ac_c" 1>&6
    1680 echo "configure:1681: checking size of void*" >&5
     1644echo "configure:1645: checking size of void*" >&5
    16811645if eval "test \"`echo '$''{'ac_cv_sizeof_voidp'+set}'`\" = set"; then
    16821646  echo $ac_n "(cached) $ac_c" 1>&6
     
    16861650else
    16871651  cat > conftest.$ac_ext <<EOF
    1688 #line 1689 "configure"
     1652#line 1653 "configure"
    16891653#include "confdefs.h"
    16901654#include <stdio.h>
     
    16971661}
    16981662EOF
    1699 if { (eval echo configure:1700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1663if { (eval echo configure:1664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17001664then
    17011665  ac_cv_sizeof_voidp=`cat conftestval`
     
    17171681
    17181682echo $ac_n "checking size of double""... $ac_c" 1>&6
    1719 echo "configure:1720: checking size of double" >&5
     1683echo "configure:1684: checking size of double" >&5
    17201684if eval "test \"`echo '$''{'ac_cv_sizeof_double'+set}'`\" = set"; then
    17211685  echo $ac_n "(cached) $ac_c" 1>&6
     
    17251689else
    17261690  cat > conftest.$ac_ext <<EOF
    1727 #line 1728 "configure"
     1691#line 1692 "configure"
    17281692#include "confdefs.h"
    17291693#include <stdio.h>
     
    17361700}
    17371701EOF
    1738 if { (eval echo configure:1739: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1702if { (eval echo configure:1703: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17391703then
    17401704  ac_cv_sizeof_double=`cat conftestval`
     
    17561720
    17571721echo $ac_n "checking size of size_t""... $ac_c" 1>&6
    1758 echo "configure:1759: checking size of size_t" >&5
     1722echo "configure:1723: checking size of size_t" >&5
    17591723if eval "test \"`echo '$''{'ac_cv_sizeof_size_t'+set}'`\" = set"; then
    17601724  echo $ac_n "(cached) $ac_c" 1>&6
     
    17641728else
    17651729  cat > conftest.$ac_ext <<EOF
    1766 #line 1767 "configure"
     1730#line 1731 "configure"
    17671731#include "confdefs.h"
    17681732#include <stdio.h>
     
    17751739}
    17761740EOF
    1777 if { (eval echo configure:1778: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1741if { (eval echo configure:1742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    17781742then
    17791743  ac_cv_sizeof_size_t=`cat conftestval`
     
    18061770
    18071771echo $ac_n "checking size of system page""... $ac_c" 1>&6
    1808 echo "configure:1809: checking size of system page" >&5
     1772echo "configure:1773: checking size of system page" >&5
    18091773if eval "test \"`echo '$''{'ac_cv_pagesize'+set}'`\" = set"; then
    18101774  echo $ac_n "(cached) $ac_c" 1>&6
     
    18141778else
    18151779  cat > conftest.$ac_ext <<EOF
    1816 #line 1817 "configure"
     1780#line 1781 "configure"
    18171781#include "confdefs.h"
    18181782#include <stdio.h>
     
    18271791}
    18281792EOF
    1829 if { (eval echo configure:1830: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1793if { (eval echo configure:1794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18301794then
    18311795  ac_cv_pagesize=`cat conftestval`
     
    18531817if test "$ac_cv_func_mmap" = yes; then
    18541818echo $ac_n "checking whether mmap works""... $ac_c" 1>&6
    1855 echo "configure:1856: checking whether mmap works" >&5
     1819echo "configure:1820: checking whether mmap works" >&5
    18561820if eval "test \"`echo '$''{'ac_cv_working_mmap'+set}'`\" = set"; then
    18571821  echo $ac_n "(cached) $ac_c" 1>&6
     
    18611825else
    18621826  cat > conftest.$ac_ext <<EOF
    1863 #line 1864 "configure"
     1827#line 1828 "configure"
    18641828#include "confdefs.h"
    18651829
     
    18731837}
    18741838EOF
    1875 if { (eval echo configure:1876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1839if { (eval echo configure:1840: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    18761840then
    18771841  ac_cv_working_mmap=yes
     
    18971861
    18981862echo $ac_n "checking whether alignment needs to be strict""... $ac_c" 1>&6
    1899 echo "configure:1900: checking whether alignment needs to be strict" >&5
     1863echo "configure:1864: checking whether alignment needs to be strict" >&5
    19001864if eval "test \"`echo '$''{'ac_cv_align_need_strict'+set}'`\" = set"; then
    19011865  echo $ac_n "(cached) $ac_c" 1>&6
     
    19051869else
    19061870  cat > conftest.$ac_ext <<EOF
    1907 #line 1908 "configure"
     1871#line 1872 "configure"
    19081872#include "confdefs.h"
    19091873 
     
    19201884
    19211885EOF
    1922 if { (eval echo configure:1923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1886if { (eval echo configure:1887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    19231887then
    19241888  ac_cv_align_need_strict=no
     
    19371901
    19381902echo $ac_n "checking for external config files""... $ac_c" 1>&6
    1939 echo "configure:1940: checking for external config files" >&5
     1903echo "configure:1904: checking for external config files" >&5
    19401904if test "${with_external_config_h+set}" = set; then
    19411905    cat >> confdefs.h <<\EOF
     
    19631927
    19641928echo $ac_n "checking which malloc to use""... $ac_c" 1>&6
    1965 echo "configure:1966: checking which malloc to use" >&5
     1929echo "configure:1930: checking which malloc to use" >&5
    19661930if test "${with_malloc}" = system; then
    19671931  OM_MALLOC_HEADER=omMallocSystem.h
     
    20001964
    20011965echo $ac_n "checking whether malloc provides SizeOfAddr""... $ac_c" 1>&6
    2002 echo "configure:2003: checking whether malloc provides SizeOfAddr" >&5
     1966echo "configure:1967: checking whether malloc provides SizeOfAddr" >&5
    20031967if test "${ac_cv_malloc_sizeof_addr}" = no; then
    20041968  echo "$ac_t""(cached) no" 1>&6
     
    20101974else
    20111975  cat > conftest.$ac_ext <<EOF
    2012 #line 2013 "configure"
     1976#line 1977 "configure"
    20131977#include "confdefs.h"
    20141978
     
    20271991
    20281992EOF
    2029 if { (eval echo configure:2030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     1993if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    20301994then
    20311995  ac_cv_malloc_sizeof_addr="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    20752039
    20762040echo $ac_n "checking whether working valloc exists""... $ac_c" 1>&6
    2077 echo "configure:2078: checking whether working valloc exists" >&5
     2041echo "configure:2042: checking whether working valloc exists" >&5
    20782042if test "${ac_cv_working_valloc}" = no; then
    20792043  echo "$ac_t""(cached) no" 1>&6
     
    20852049else
    20862050  cat > conftest.$ac_ext <<EOF
    2087 #line 2088 "configure"
     2051#line 2052 "configure"
    20882052#include "confdefs.h"
    20892053
     
    21032067
    21042068EOF
    2105 if { (eval echo configure:2106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2069if { (eval echo configure:2070: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    21062070then
    21072071  ac_cv_working_valloc="${OM_MALLOC_HEADER}_${OM_MALLOC_SOURCE}"
     
    21232087
    21242088echo $ac_n "checking which valloc to use""... $ac_c" 1>&6
    2125 echo "configure:2126: checking which valloc to use" >&5
     2089echo "configure:2090: checking which valloc to use" >&5
    21262090if test "${with_valloc+set}" != set || test "${with_valloc}" = mmap; then
    21272091  if test "${ac_cv_working_mmap}" = yes; then
     
    21482112
    21492113echo $ac_n "checking whether to emulate omalloc""... $ac_c" 1>&6
    2150 echo "configure:2151: checking whether to emulate omalloc" >&5
     2114echo "configure:2115: checking whether to emulate omalloc" >&5
    21512115if test "${with_emulate_omalloc}" = yes; then
    21522116  cat >> confdefs.h <<\EOF
     
    21602124
    21612125echo $ac_n "checking how to align""... $ac_c" 1>&6
    2162 echo "configure:2163: checking how to align" >&5
     2126echo "configure:2127: checking how to align" >&5
    21632127if test "$with_align" = 8 || test "$ac_cv_sizeof_long" = 8; then
    21642128  ac_cv_align=8
     
    21812145
    21822146echo $ac_n "checking whether to use dense bins""... $ac_c" 1>&6
    2183 echo "configure:2184: checking whether to use dense bins" >&5
     2147echo "configure:2148: checking whether to use dense bins" >&5
    21842148if test "$with_dense_bins" = yes; then
    21852149echo "$ac_t""yes" 1>&6
     
    21932157
    21942158echo $ac_n "checking whether to disable debugging""... $ac_c" 1>&6
    2195 echo "configure:2196: checking whether to disable debugging" >&5
     2159echo "configure:2160: checking whether to disable debugging" >&5
    21962160if test "$with_debug" != no; then
    21972161echo "$ac_t""no" 1>&6
     
    22062170
    22072171echo $ac_n "checking whether to have tracking debug functionality""... $ac_c" 1>&6
    2208 echo "configure:2209: checking whether to have tracking debug functionality" >&5
     2172echo "configure:2173: checking whether to have tracking debug functionality" >&5
    22092173if test "$with_track" != no; then
    22102174echo "$ac_t""yes" 1>&6
     
    22182182
    22192183echo $ac_n "checking whether to use internal debug""... $ac_c" 1>&6
    2220 echo "configure:2221: checking whether to use internal debug" >&5
     2184echo "configure:2185: checking whether to use internal debug" >&5
    22212185if test "$with_internal_debug" = yes; then
    22222186echo "$ac_t""yes" 1>&6
     
    22312195
    22322196echo $ac_n "checking whether to inline""... $ac_c" 1>&6
    2233 echo "configure:2234: checking whether to inline" >&5
     2197echo "configure:2198: checking whether to inline" >&5
    22342198if test "$ac_cv_c_inline" != no && test "$with_inline" != no; then
    22352199  cat >> confdefs.h <<EOF
     
    22672231
    22682232echo $ac_n "checking whether GET_RET_ADDR works""... $ac_c" 1>&6
    2269 echo "configure:2270: checking whether GET_RET_ADDR works" >&5
     2233echo "configure:2234: checking whether GET_RET_ADDR works" >&5
    22702234if eval "test \"`echo '$''{'ac_cv_get_return_addr_works'+set}'`\" = set"; then
    22712235  echo $ac_n "(cached) $ac_c" 1>&6
     
    22752239else
    22762240  cat > conftest.$ac_ext <<EOF
    2277 #line 2278 "configure"
     2241#line 2242 "configure"
    22782242#include "confdefs.h"
    22792243
     
    22912255
    22922256EOF
    2293 if { (eval echo configure:2294: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2257if { (eval echo configure:2258: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    22942258then
    22952259  ac_cv_get_return_addr_works=yes
     
    23142278
    23152279echo $ac_n "checking whether omGetBackTrace works""... $ac_c" 1>&6
    2316 echo "configure:2317: checking whether omGetBackTrace works" >&5
     2280echo "configure:2281: checking whether omGetBackTrace works" >&5
    23172281if eval "test \"`echo '$''{'ac_cv_get_backtrace_works'+set}'`\" = set"; then
    23182282  echo $ac_n "(cached) $ac_c" 1>&6
     
    23222286else
    23232287  cat > conftest.$ac_ext <<EOF
    2324 #line 2325 "configure"
     2288#line 2289 "configure"
    23252289#include "confdefs.h"
    23262290
     
    23432307
    23442308EOF
    2345 if { (eval echo configure:2346: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2309if { (eval echo configure:2310: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    23462310then
    23472311  ac_cv_get_backtrace_works=yes
     
    23662330
    23672331echo $ac_n "checking whether addr2line works""... $ac_c" 1>&6
    2368 echo "configure:2369: checking whether addr2line works" >&5
     2332echo "configure:2333: checking whether addr2line works" >&5
    23692333if eval "test \"`echo '$''{'ac_cv_prog_addr2line_works'+set}'`\" = set"; then
    23702334  echo $ac_n "(cached) $ac_c" 1>&6
     
    23742338else
    23752339  cat > conftest.$ac_ext <<EOF
    2376 #line 2377 "configure"
     2340#line 2341 "configure"
    23772341#include "confdefs.h"
    23782342
     
    24072371
    24082372EOF
    2409 if { (eval echo configure:2410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
     2373if { (eval echo configure:2374: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
    24102374then
    24112375  ac_cv_prog_addr2line_works=yes
     
    24242388 
    24252389echo $ac_n "checking whether to track return addresses""... $ac_c" 1>&6
    2426 echo "configure:2427: checking whether to track return addresses" >&5
     2390echo "configure:2391: checking whether to track return addresses" >&5
    24272391if test "$with_track_return" = no || test "$ac_cv_get_return_addr_works" = no || test "$ac_cv_prog_addr2line_works" != yes; then
    24282392  with_track_return=no
     
    24372401
    24382402echo $ac_n "checking whether to track files and line numbers""... $ac_c" 1>&6
    2439 echo "configure:2440: checking whether to track files and line numbers" >&5
     2403echo "configure:2404: checking whether to track files and line numbers" >&5
    24402404if test "$with_track_fl" = no && test "$with_track_return" = no; then
    24412405  with_track_fl=yes
     
    24572421
    24582422echo $ac_n "checking whether to track stack backtraces""... $ac_c" 1>&6
    2459 echo "configure:2460: checking whether to track stack backtraces" >&5
     2423echo "configure:2424: checking whether to track stack backtraces" >&5
    24602424if test "$with_track" != no && test "$ac_cv_get_backtrace_works" = yes && test "$with_track_backtrace" != no && test "$ac_cv_prog_addr2line_works" = yes; then
    24612425  with_track_backtrace=yes
     
    26172581s%@PERL@%$PERL%g
    26182582s%@ADDR2LINE@%$ADDR2LINE%g
    2619 s%@NM@%$NM%g
    26202583s%@EXTERNAL_CONFIG_HEADER@%$EXTERNAL_CONFIG_HEADER%g
    26212584s%@EXTERNAL_CONFIG_SOURCE@%$EXTERNAL_CONFIG_SOURCE%g
  • omalloc/configure.in

    rb98efa r6acb5a5  
    44dnl Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55dnl Created: 11/99
    6 dnl Version: $Id: configure.in,v 1.5 2000-08-16 12:06:10 obachman Exp $
     6dnl Version: $Id: configure.in,v 1.6 2000-08-16 12:55:45 obachman Exp $
    77dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
    88
     
    112112  AC_DEFINE_UNQUOTED(OM_PROG_ADDR2LINE, "$ac_cv_prog_ADDR2LINE")
    113113fi
    114 AC_CHECK_PROG(NM, nm, nm, no)
    115 if test "$ac_cv_prog_NM" = nm; then
    116   AC_DEFINE_UNQUOTED(OM_PROG_NM, "$ac_cv_prog_NM")
    117 fi
    118114
    119115dnl lllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
     
    123119AC_CHECK_HEADERS(limits.h,,
    124120  AC_MSG_ERROR(Can not compile without limits.h))
    125 AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h)
     121AC_CHECK_HEADERS(unistd.h sys/mman.h fcntl.h /usr/include/malloc.h)
    126122
    127123AC_CHECK_FUNCS(popen readlink getcwd getwd mmap sbrk)
  • omalloc/dlmalloc.h

    rb98efa r6acb5a5  
    44 *  This was obtained by taking cutting out the beginning of malloc.c
    55 *
    6  *  Version: $Id: dlmalloc.h,v 1.4 2000-08-14 12:36:59 obachman Exp $
     6 *  Version: $Id: dlmalloc.h,v 1.5 2000-08-16 12:55:46 obachman Exp $
    77 *******************************************************************/
    88#ifndef DL_MALLOC_H
     
    1515#endif
    1616
     17#ifndef HAVE__USR_INCLUDE_MALLOC_H
     18#undef  HAVE__USR_INCLUDE_MALLOC_H
     19#endif
     20
     21#ifdef HAVE__USR_INCLUDE_MALLOC_H
     22#define HAVE_USR_INCLUDE_MALLOC_H 1
     23#endif
    1724
    1825#define OM_MALLOC_MALLOC   mALLOc
  • omalloc/omAllocDecl.h

    rb98efa r6acb5a5  
    44 *  Author:  obachman (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omAllocDecl.h,v 1.3 2000-08-14 12:26:39 obachman Exp $
     6 *  Version: $Id: omAllocDecl.h,v 1.4 2000-08-16 12:55:46 obachman Exp $
    77 *******************************************************************/
    88#ifndef OM_ALLOC_DECL_H
     
    1010
    1111
    12 #ifndef OMALLOC_C
     12#if !defined(OMALLOC_C) && !defined(OM_NO_MALLOC_MACROS)
    1313#define calloc      omcalloc
    1414#define malloc      omalloc
  • omalloc/omAllocSystem.c

    rb98efa r6acb5a5  
    44 *  Author:  obachman@mathematik.uni-kl.de (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omAllocSystem.c,v 1.3 2000-08-14 12:26:40 obachman Exp $
     6 *  Version: $Id: omAllocSystem.c,v 1.4 2000-08-16 12:55:47 obachman Exp $
    77 *******************************************************************/
    88#ifndef OM_ALLOC_SYSTEM_C
     
    1111#include <unistd.h>
    1212#include <limits.h>
     13/* disable our malloc macros */
     14#define OM_NO_MALLOC_MACROS
    1315#include "omAlloc.h"
    1416#include "omDefaultConfig.h"
  • omalloc/omStats.c

    rb98efa r6acb5a5  
    44 *  Author:  obachman (Olaf Bachmann)
    55 *  Created: 11/99
    6  *  Version: $Id: omStats.c,v 1.3 2000-08-14 12:26:49 obachman Exp $
     6 *  Version: $Id: omStats.c,v 1.4 2000-08-16 12:55:47 obachman Exp $
    77 *******************************************************************/
    88#include <unistd.h>
     9#define OM_NO_MALLOC_MACROS
    910#include "omAlloc.h"
    1011#include "omMalloc.h"
  • omalloc/omtTest.c

    rb98efa r6acb5a5  
    148148int MyRandSpec()
    149149{
    150   int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) rand())/(RAND_MAX + 1.0));
    151  
     150#if 0
     151  /* This behaves badly on the HP's, because RAND_MAX == 32767 */
     152  int spec = 1 + (int) ( ((double) SPEC_MAX)* ((double) random())/(RAND_MAX + 1.0));
     153#else
     154  int spec = random() + 1;
     155#endif 
    152156  if (! size_range_number)
    153157  {
     
    280284  if (argc > 1) sscanf(argv[1], "%d", &error_test);
    281285  if (argc > 2) sscanf(argv[2], "%d", &seed);
    282   srand(seed);
     286  srandom(seed);
    283287
    284288  if (argc > 3) sscanf(argv[3], "%d", &n);
  • omalloc/omtTest.h

    rb98efa r6acb5a5  
    66// #define MAX_CELLS  500000   
    77#define MAX_CELLS     100000
    8 // #define MAX_CELLS     10000
     8// #define MAX_CELLS     1000
    99#define KEEP_ADDR     100
    1010#define END_CHECK_LEVEL 5
Note: See TracChangeset for help on using the changeset viewer.