setlocale: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 22:08:39 +0000 (00:08 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:46 +0000 (00:06 +0200)
* m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
gl_PREREQ_SETLOCALE invocations from here...
* modules/setlocale (configure.ac): ... to here.

ChangeLog
m4/setlocale.m4
modules/setlocale

index 5fe5fce..b02cc3e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       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  <bruno@clisp.org>
+
        unsetenv: Move AC_LIBOBJ invocations to module description.
        * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
        and gl_PREREQ_UNSETENV invocations from here...
index 92f76f4..d64780d 100644 (file)
@@ -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.
index 918a037..1d8f997 100644 (file)
@@ -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: