comparison configure.in @ 551:e9a3f8b4de53

[xemacs-hg @ 2001-05-21 05:26:06 by martinb] realloc() handling on sunos4; remove lwlib-config kludge
author martinb
date Mon, 21 May 2001 05:26:51 +0000
parents 836d476763d0
children 5c6dc7d576ad
comparison
equal deleted inserted replaced
550:1638aacf421d 551:e9a3f8b4de53
2302 - Using Doug Lea's new malloc from the Linux C Library." 2302 - Using Doug Lea's new malloc from the Linux C Library."
2303 AC_DEFINE(_NO_MALLOC_WARNING_) 2303 AC_DEFINE(_NO_MALLOC_WARNING_)
2304 fi 2304 fi
2305 fi 2305 fi
2306 2306
2307 define([XE_REALLOC_NULLPTR_BUG],[
2308 AC_MSG_CHECKING(whether realloc accepts null pointers)
2309 AC_TRY_RUN([int main ()
2310 { char *x = 0;
2311 x = realloc (x, 16); if (!x) return 1; x[15] = 'y';
2312 x = realloc (x, 64); if (!x) return 1; x[63] = 'z';
2313 return 0;
2314 }],
2315 [AC_MSG_RESULT(yes)],
2316 [AC_MSG_RESULT(no); AC_DEFINE(REALLOC_NULLPTR_BUG) ])])
2317
2318 XE_REALLOC_NULLPTR_BUG
2319
2320 dnl #### mcheck is broken in all versions of Linux libc and glibc. 2307 dnl #### mcheck is broken in all versions of Linux libc and glibc.
2321 dnl Try this again when 2.1 hits the streets. 2308 dnl Try this again when 2.1 hits the streets.
2322 dnl Avoid using free-hook.c if support exists for malloc debugging in libc 2309 dnl Avoid using free-hook.c if support exists for malloc debugging in libc
2323 dnl have_libmcheck=no 2310 dnl have_libmcheck=no
2324 dnl if test "$error_check_malloc" = "yes" -a \ 2311 dnl if test "$error_check_malloc" = "yes" -a \