wcsrtombs: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:35:00 +0000 (18:35 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:11 +0000 (00:07 +0200)
* m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
gl_PREREQ_WCSRTOMBS invocations from here...
* modules/wcsrtombs (configure.ac): ... to here.

ChangeLog
m4/wcsrtombs.m4
modules/wcsrtombs

index 8b306c4..1f4f321 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wcsrtombs: Move AC_LIBOBJ invocations to module description.
+       * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
+       gl_PREREQ_WCSRTOMBS invocations from here...
+       * modules/wcsrtombs (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcsrchr: Move AC_LIBOBJ invocations to module description.
        * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
        here...
index cd51506..7ce5759 100644 (file)
@@ -1,4 +1,4 @@
-# wcsrtombs.m4 serial 9
+# wcsrtombs.m4 serial 10
 dnl Copyright (C) 2008-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,
@@ -34,11 +34,6 @@ AC_DEFUN([gl_FUNC_WCSRTOMBS],
       esac
     fi
   fi
-  if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
-    AC_LIBOBJ([wcsrtombs])
-    AC_LIBOBJ([wcsrtombs-state])
-    gl_PREREQ_WCSRTOMBS
-  fi
 ])
 
 dnl Test whether the wcsrtombs implementation stores a non-NULL source pointer
index 49c0503..b61ac34 100644 (file)
@@ -20,6 +20,11 @@ wcrtomb         [test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1]
 
 configure.ac:
 gl_FUNC_WCSRTOMBS
+if test $HAVE_WCSRTOMBS = 0 || test $REPLACE_WCSRTOMBS = 1; then
+  AC_LIBOBJ([wcsrtombs])
+  AC_LIBOBJ([wcsrtombs-state])
+  gl_PREREQ_WCSRTOMBS
+fi
 gl_WCHAR_MODULE_INDICATOR([wcsrtombs])
 
 Makefile.am: