AC_REPLACE_FUNCS and function prototypes

2006-08-18 Thread Masao Yonenaga
Hi, I want to use a non-standard function like memrchr(). So I added: AC_REPLACE_FUNCS(memrchr) in configure.ac, and to prevent warnings, add #ifndef HAVE_MEMRCHR extern void *memrchr(const void *, int, size_t); #endif in a header file. Now, I was able to compile it on platforms

Re: AC_REPLACE_FUNCS and function prototypes

2006-08-20 Thread Masao Yonenaga
Hi, AC_USE_SYSTEM_EXTENSIONS seems to be a reasonable way to me. Thanks! -- Yonenaga Masao On 8/20/06, Paul Eggert <[EMAIL PROTECTED]> wrote: "Masao Yonenaga" <[EMAIL PROTECTED]> writes: > How can I handle this situation properly? AC_CHECK_DECLS should do the