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

ChangeLog
m4/wcscmp.m4
modules/wcscmp

index 9d721c7..ce8f20c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wcscmp: Move AC_LIBOBJ invocations to module description.
+       * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
+       * modules/wcscmp (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wcschr: Move AC_LIBOBJ invocations to module description.
        * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
        * modules/wcschr (configure.ac): ... to here.
index 376965f..bbcfa42 100644 (file)
@@ -1,4 +1,4 @@
-# wcscmp.m4 serial 1
+# wcscmp.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_WCSCMP],
   AC_CHECK_FUNCS_ONCE([wcscmp])
   if test $ac_cv_func_wcscmp = no; then
     HAVE_WCSCMP=0
-    AC_LIBOBJ([wcscmp])
   fi
 ])
index 27c1621..d1ae964 100644 (file)
@@ -17,6 +17,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCSCMP
+if test $HAVE_WCSCMP = 0; then
+  AC_LIBOBJ([wcscmp])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcscmp])
 
 Makefile.am: