From: Bruno Haible Date: Sun, 22 May 2011 15:06:26 +0000 (+0200) Subject: towctrans: Move AC_LIBOBJ invocations to module description. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17b5862b0e85fe341d9e7cd5bb959f17156d0cab;p=pspp 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. --- diff --git a/ChangeLog b/ChangeLog index 08aa6a4a24..5e3863c593 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + 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 tmpfile: Move AC_LIBOBJ invocations to module description. diff --git a/m4/towctrans.m4 b/m4/towctrans.m4 index 2c6c2988de..dec97679b3 100644 --- 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_DEFUN([gl_FUNC_TOWCTRANS], [ 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 ]) diff --git a/modules/towctrans b/modules/towctrans index 3ad100d405..df66882df9 100644 --- a/modules/towctrans +++ b/modules/towctrans @@ -11,6 +11,9 @@ wctype-h configure.ac: gl_FUNC_TOWCTRANS +if test $HAVE_TOWCTRANS = 0; then + AC_LIBOBJ([towctrans]) +fi gl_WCTYPE_MODULE_INDICATOR([towctrans]) Makefile.am: