changeset 15165:2f44e6e0e98b

wctrans: Move AC_LIBOBJ invocations to module description. * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ invocation from here... * modules/wctrans (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 18:51:09 +0200
parents 5132e2d88ade
children e657c0244ac1
files ChangeLog m4/wctrans.m4 modules/wctrans
diffstat 3 files changed, 12 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wctrans: Move AC_LIBOBJ invocations to module description.
+	* m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
+	invocation from here...
+	* modules/wctrans (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wctomb: Move AC_LIBOBJ invocations to module description.
--- a/m4/wctrans.m4
+++ b/m4/wctrans.m4
@@ -1,4 +1,4 @@
-# wctrans.m4 serial 1
+# wctrans.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_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
-  if test $HAVE_WCTRANS_T = 0; then
-    AC_LIBOBJ([wctrans])
-  fi
+  HAVE_WCTRANS=$HAVE_WCTRANS_T
 ])
--- a/modules/wctrans
+++ b/modules/wctrans
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_WCTRANS
+if test $HAVE_WCTRANS = 0; then
+  AC_LIBOBJ([wctrans])
+fi
 gl_WCTYPE_MODULE_INDICATOR([wctrans])
 
 Makefile.am: