mbrlen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 12:17:23 +0000 (14:17 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:26 +0000 (00:06 +0200)
* m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
invocations from here...
* modules/mbrlen (configure.ac): ... to here.

ChangeLog
m4/mbrlen.m4
modules/mbrlen

index 791f4a4..60ce43d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       mbrlen: Move AC_LIBOBJ invocations to module description.
+       * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
+       invocations from here...
+       * modules/mbrlen (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        mbrtowc: Respect rules for use of AC_LIBOBJ.
        * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
        invocations from here...
index 8f55e36..884f8cd 100644 (file)
@@ -1,4 +1,4 @@
-# mbrlen.m4 serial 6
+# mbrlen.m4 serial 7
 dnl Copyright (C) 2008, 2010-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -22,10 +22,6 @@ AC_DEFUN([gl_FUNC_MBRLEN],
       REPLACE_MBRLEN=1
     fi
   fi
-  if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
-    AC_LIBOBJ([mbrlen])
-    gl_PREREQ_MBRLEN
-  fi
 ])
 
 dnl Test whether mbrlen puts the state into non-initial state when parsing an
index 5bc9f29..2c589e9 100644 (file)
@@ -13,6 +13,10 @@ mbrtowc         [test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1]
 
 configure.ac:
 gl_FUNC_MBRLEN
+if test $HAVE_MBRLEN = 0 || test $REPLACE_MBRLEN = 1; then
+  AC_LIBOBJ([mbrlen])
+  gl_PREREQ_MBRLEN
+fi
 gl_WCHAR_MODULE_INDICATOR([mbrlen])
 
 Makefile.am: