wcslen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:20:06 +0000 (18:20 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:08 +0000 (00:07 +0200)
* m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
* modules/wcslen (configure.ac): ... to here.

ChangeLog
m4/wcslen.m4
modules/wcslen

index d197038..eb91252 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wcslen: Move AC_LIBOBJ invocations to module description.
+       * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
+       * modules/wcslen (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcsdup: Move AC_LIBOBJ invocations to module description.
        * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
        * modules/wcsdup (configure.ac): ... to here.
index 1f74aaf..d5edf9a 100644 (file)
@@ -1,4 +1,4 @@
-# wcslen.m4 serial 1
+# wcslen.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@ AC_DEFUN([gl_FUNC_WCSLEN],
   AC_CHECK_FUNCS_ONCE([wcslen])
   if test $ac_cv_func_wcslen = no; then
     HAVE_WCSLEN=0
-    AC_LIBOBJ([wcslen])
   fi
 ])
index 2dc00a6..d6c2026 100644 (file)
@@ -17,6 +17,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCSLEN
+if test $HAVE_WCSLEN = 0; then
+  AC_LIBOBJ([wcslen])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcslen])
 
 Makefile.am: