wctype: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:53:14 +0000 (18:53 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:13 +0000 (00:07 +0200)
* m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
invocation from here...
* modules/wctype (configure.ac): ... to here.
(Depends-on): Update conditions.

ChangeLog
m4/wctype.m4
modules/wctype

index 1cd2c4e092375c6e4842bea32d58e2979d3f3872..7d7be3a05a71deb2ef8de738842af69764312228 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       wctype: Move AC_LIBOBJ invocations to module description.
+       * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
+       invocation from here...
+       * modules/wctype (configure.ac): ... to here.
+       (Depends-on): Update conditions.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        wctrans: Move AC_LIBOBJ invocations to module description.
index 93c50d3fa182c9663949afb6ed08bcb869ed9290..f6e85addc324cfcbf5a34f2c14ab72103dab1e85 100644 (file)
@@ -1,4 +1,4 @@
-# wctype.m4 serial 1
+# wctype.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,
@@ -8,7 +8,5 @@ AC_DEFUN([gl_FUNC_WCTYPE],
 [
   AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
-  if test $HAVE_WCTYPE_T = 0; then
-    AC_LIBOBJ([wctype])
-  fi
+  HAVE_WCTYPE=$HAVE_WCTYPE_T
 ])
index ffc76a863e86eec93d758533f6de35506e7cf24e..4a9a004b1653dbe98e5b2e329381b06f203ffd0d 100644 (file)
@@ -14,10 +14,13 @@ m4/wctype.m4
 
 Depends-on:
 wctype-h
-iswblank        [test $HAVE_WCTYPE_T = 0]
+iswblank        [test $HAVE_WCTYPE = 0]
 
 configure.ac:
 gl_FUNC_WCTYPE
+if test $HAVE_WCTYPE = 0; then
+  AC_LIBOBJ([wctype])
+fi
 gl_WCTYPE_MODULE_INDICATOR([wctype])
 
 Makefile.am: