[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gnulib] How do malloc.c and realloc.c get used?
From: |
Paul Eggert |
Subject: |
Re: [Bug-gnulib] How do malloc.c and realloc.c get used? |
Date: |
09 Sep 2003 16:12:43 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 |
"Gary V.Vaughan" <address@hidden> writes:
> but while adding the xalloc module I noticed something odd: Despite
> the fact the modules/xalloc file declares reliance on both malloc.c
> and realloc.c, there doesn't appear to be anyway rpl_malloc or
> rpl_realloc can be called.
xalloc doesn't depend on malloc.c or realloc.c directly; it depends
on the malloc and realloc modules. If you include the malloc and
realloc modules, you should get a working program.
> My guess is something like the following is missing?
>
> malloc.m4 (jm_FUNC_MALLOC):
> if test X"$ac_cv_func_malloc_0_nonnull" = Xno || test
> X"$ac_cv_func_malloc_works" = Xno; then
> gl_PREREQ_MALLOC
> AC_DEFINE(NEED_RPL_MALLOC, 1,
> [Define to 1 if system malloc cant handle 0 sized mallocations])
> fi
It shouldn't be needed, because AC_FUNC_MALLOC does that.
(This changed in Autoconf 2.55; perhaps your Autoconf is old?)