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

ChangeLog
m4/wcscspn.m4
modules/wcscspn

index 7ea4b60..e40f752 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wcscspn: Move AC_LIBOBJ invocations to module description.
+       * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
+       here...
+       * modules/wcscspn (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcscpy: Move AC_LIBOBJ invocations to module description.
        * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
        * modules/wcscpy (configure.ac): ... to here.
index f6761fa..cf92282 100644 (file)
@@ -1,4 +1,4 @@
-# wcscspn.m4 serial 1
+# wcscspn.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_WCSCSPN],
   AC_CHECK_FUNCS_ONCE([wcscspn])
   if test $ac_cv_func_wcscspn = no; then
     HAVE_WCSCSPN=0
-    AC_LIBOBJ([wcscspn])
   fi
 ])
index 14b9a24..5f93ee6 100644 (file)
@@ -19,6 +19,9 @@ wcschr          [test $HAVE_WCSCSPN = 0]
 
 configure.ac:
 gl_FUNC_WCSCSPN
+if test $HAVE_WCSCSPN = 0; then
+  AC_LIBOBJ([wcscspn])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcscspn])
 
 Makefile.am: