Mercurial > hg > xemacs-beta
comparison configure.in @ 537:836d476763d0
[xemacs-hg @ 2001-05-14 06:27:03 by martinb]
Fix for crash in make TAGS on SunOS 4
author | martinb |
---|---|
date | Mon, 14 May 2001 06:27:10 +0000 |
parents | c69610198c35 |
children | e9a3f8b4de53 |
comparison
equal
deleted
inserted
replaced
536:8f3fb4fd879b | 537:836d476763d0 |
---|---|
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 | |
2307 dnl #### mcheck is broken in all versions of Linux libc and glibc. | 2320 dnl #### mcheck is broken in all versions of Linux libc and glibc. |
2308 dnl Try this again when 2.1 hits the streets. | 2321 dnl Try this again when 2.1 hits the streets. |
2309 dnl Avoid using free-hook.c if support exists for malloc debugging in libc | 2322 dnl Avoid using free-hook.c if support exists for malloc debugging in libc |
2310 dnl have_libmcheck=no | 2323 dnl have_libmcheck=no |
2311 dnl if test "$error_check_malloc" = "yes" -a \ | 2324 dnl if test "$error_check_malloc" = "yes" -a \ |