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

ChangeLog
m4/mbsnrtowcs.m4
modules/mbsnrtowcs

index 60f0b8c0b664098dfcb0f695dd715eca031a154f..7a26c22b4fe07363081d28cc64a62461a952f2b5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
+       * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
+       gl_PREREQ_MBSNRTOWCS invocations from here...
+       * modules/mbsnrtowcs (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        mbsinit: Move AC_LIBOBJ invocations to module description.
index d72942f033aa2896d151d685e07b1b1836b5fcb4..28e4921adae359e5454fceea924d06eb971b2063 100644 (file)
@@ -1,4 +1,4 @@
-# mbsnrtowcs.m4 serial 3
+# mbsnrtowcs.m4 serial 4
 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,11 +22,6 @@ AC_DEFUN([gl_FUNC_MBSNRTOWCS],
       REPLACE_MBSNRTOWCS=1
     fi
   fi
-  if test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1; then
-    AC_LIBOBJ([mbsnrtowcs])
-    AC_LIBOBJ([mbsrtowcs-state])
-    gl_PREREQ_MBSNRTOWCS
-  fi
 ])
 
 # Prerequisites of lib/mbsnrtowcs.c.
index a179296810beb26aa27291ba600d2475eaf46edb..35ff363edb02ced6f5cc73faf9317780499e404b 100644 (file)
@@ -17,6 +17,11 @@ strnlen1        [test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1]
 
 configure.ac:
 gl_FUNC_MBSNRTOWCS
+if test $HAVE_MBSNRTOWCS = 0 || test $REPLACE_MBSNRTOWCS = 1; then
+  AC_LIBOBJ([mbsnrtowcs])
+  AC_LIBOBJ([mbsrtowcs-state])
+  gl_PREREQ_MBSNRTOWCS
+fi
 gl_WCHAR_MODULE_INDICATOR([mbsnrtowcs])
 
 Makefile.am: