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

ChangeLog
m4/wcsrchr.m4
modules/wcsrchr

index 0b8ae99..8b306c4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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...
+       * modules/wcsrchr (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcspbrk: Move AC_LIBOBJ invocations to module description.
        * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
        here...
index 06c446e..eedc402 100644 (file)
@@ -1,4 +1,4 @@
-# wcsrchr.m4 serial 1
+# wcsrchr.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_WCSRCHR],
   AC_CHECK_FUNCS_ONCE([wcsrchr])
   if test $ac_cv_func_wcsrchr = no; then
     HAVE_WCSRCHR=0
-    AC_LIBOBJ([wcsrchr])
   fi
 ])
index 903abba..639fe54 100644 (file)
@@ -17,6 +17,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCSRCHR
+if test $HAVE_WCSRCHR = 0; then
+  AC_LIBOBJ([wcsrchr])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcsrchr])
 
 Makefile.am: