From: Bruno Haible Date: Sat, 21 May 2011 12:15:13 +0000 (+0200) Subject: mbrtowc: Respect rules for use of AC_LIBOBJ. X-Git-Tag: v0.1~2497 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a19f3c61749d1f59e65c177098c0ffa4106ef65e;p=gnulib.git mbrtowc: Respect rules for use of AC_LIBOBJ. * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC invocations from here... * modules/mbrtowc (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 11a1b8b8e..791f4a49e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-21 Bruno Haible + mbrtowc: Respect rules for use of AC_LIBOBJ. + * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC + invocations from here... + * modules/mbrtowc (configure.ac): ... to here. + +2011-05-21 Bruno Haible + malloc-*: Move AC_LIBOBJ invocations to module description. * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro. (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move diff --git a/m4/mbrtowc.m4 b/m4/mbrtowc.m4 index b5b6aaa03..b9e01e7a0 100644 --- a/m4/mbrtowc.m4 +++ b/m4/mbrtowc.m4 @@ -1,4 +1,4 @@ -# mbrtowc.m4 serial 23 +# mbrtowc.m4 serial 24 dnl Copyright (C) 2001-2002, 2004-2005, 2008-2011 Free Software Foundation, dnl Inc. dnl This file is free software; the Free Software Foundation @@ -53,10 +53,6 @@ AC_DEFUN([gl_FUNC_MBRTOWC], esac fi fi - if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then - AC_LIBOBJ([mbrtowc]) - gl_PREREQ_MBRTOWC - fi ]) dnl Test whether mbsinit() and mbrtowc() need to be overridden in a way that diff --git a/modules/mbrtowc b/modules/mbrtowc index 85cde1e39..42e8de4d9 100644 --- a/modules/mbrtowc +++ b/modules/mbrtowc @@ -20,6 +20,10 @@ verify [test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1] configure.ac: gl_FUNC_MBRTOWC +if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then + AC_LIBOBJ([mbrtowc]) + gl_PREREQ_MBRTOWC +fi gl_WCHAR_MODULE_INDICATOR([mbrtowc]) Makefile.am: