changeset 15129:9d42c63bc50d

towctrans: Move AC_LIBOBJ invocations to module description. * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move AC_LIBOBJ invocation from here... * modules/towctrans (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 17:06:26 +0200
parents c7623a5ec63d
children 34dd4b9c2452
files ChangeLog m4/towctrans.m4 modules/towctrans
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>
+
+	towctrans: Move AC_LIBOBJ invocations to module description.
+	* m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
+	AC_LIBOBJ invocation from here...
+	* modules/towctrans (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	tmpfile: Move AC_LIBOBJ invocations to module description.
--- a/m4/towctrans.m4
+++ b/m4/towctrans.m4
@@ -1,4 +1,4 @@
-# towctrans.m4 serial 1
+# towctrans.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([towctrans])
-  fi
+  HAVE_TOWCTRANS=$HAVE_WCTRANS_T
 ])
--- a/modules/towctrans
+++ b/modules/towctrans
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_TOWCTRANS
+if test $HAVE_TOWCTRANS = 0; then
+  AC_LIBOBJ([towctrans])
+fi
 gl_WCTYPE_MODULE_INDICATOR([towctrans])
 
 Makefile.am: