From 46806eb257a174bd245758d0d724a26416254479 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 00:08:39 +0200 Subject: [PATCH] setlocale: Move AC_LIBOBJ invocations to module description. * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and gl_PREREQ_SETLOCALE invocations from here... * modules/setlocale (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/setlocale.m4 | 6 +----- modules/setlocale | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5fe5fcef23..b02cc3e576 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + setlocale: Move AC_LIBOBJ invocations to module description. + * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and + gl_PREREQ_SETLOCALE invocations from here... + * modules/setlocale (configure.ac): ... to here. + 2011-05-21 Bruno Haible unsetenv: Move AC_LIBOBJ invocations to module description. diff --git a/m4/setlocale.m4 b/m4/setlocale.m4 index 92f76f433c..d64780d166 100644 --- a/m4/setlocale.m4 +++ b/m4/setlocale.m4 @@ -1,4 +1,4 @@ -# setlocale.m4 serial 3 +# setlocale.m4 serial 4 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, @@ -20,10 +20,6 @@ AC_DEFUN([gl_FUNC_SETLOCALE], esac ;; esac - if test $REPLACE_SETLOCALE = 1; then - AC_LIBOBJ([setlocale]) - gl_PREREQ_SETLOCALE - fi ]) # Prerequisites of lib/setlocale.c. diff --git a/modules/setlocale b/modules/setlocale index 918a037da3..1d8f9975fd 100644 --- a/modules/setlocale +++ b/modules/setlocale @@ -11,6 +11,10 @@ localename [test $REPLACE_SETLOCALE = 1] configure.ac: gl_FUNC_SETLOCALE +if test $REPLACE_SETLOCALE = 1; then + AC_LIBOBJ([setlocale]) + gl_PREREQ_SETLOCALE +fi gl_LOCALE_MODULE_INDICATOR([setlocale]) Makefile.am: -- 2.30.2