Re: [PATCH] strndup: fix m4 usage error

2012-07-15 Thread Bruno Haible
Eric Blake wrote: > Autoconf guarantees that AC_CHECK_DECLS_ONCE always defines the > corresponding HAVE_DECL_*, so checking #ifndef HAVE_DECL_* is bogus. Thanks, Eric. This bug existed since 2006-05-30. Bruno

[PATCH] strndup: fix m4 usage error

2012-07-13 Thread Eric Blake
Autoconf guarantees that AC_CHECK_DECLS_ONCE always defines the corresponding HAVE_DECL_*, so checking #ifndef HAVE_DECL_* is bogus. https://lists.gnu.org/archive/html/coreutils/2012-06/msg00037.html * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always defined, to either 0 or 1. Reported