strndup: fix improper m4 caching
authorEric Blake <ebb9@byu.net>
Thu, 10 Sep 2009 03:34:32 +0000 (21:34 -0600)
committerEric Blake <ebb9@byu.net>
Thu, 10 Sep 2009 03:34:32 +0000 (21:34 -0600)
commit587f0edadfcadc708f6144de37a0653e81518484
treed26db92ba9338d645b2922d916685d104acb7b86
parente2b8816f0465fa211eb5b49ecbeb78e9c3cc46b8
strndup: fix improper m4 caching

* m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
(gl_PREREQ_STRNDUP): Delete.
* m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
* modules/string (Makefile.am): Substitute it.
* lib/string.in.h (strndup): Modernize prototype.

Signed-off-by: Eric Blake <ebb9@byu.net>
ChangeLog
lib/string.in.h
m4/string_h.m4
m4/strndup.m4
modules/string