timegm: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 13:06:04 +0000 (15:06 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:00 +0000 (00:07 +0200)
* m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
invocations from here...
* modules/timegm (configure.ac): ... to here.

ChangeLog
m4/timegm.m4
modules/timegm

index fb057cf..43ee29e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       timegm: Move AC_LIBOBJ invocations to module description.
+       * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
+       invocations from here...
+       * modules/timegm (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        tcgetsid: Move AC_LIBOBJ invocations to module description.
        * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
        and gl_PREREQ_TCGETSID invocations from here...
index f18568c..caabc86 100644 (file)
@@ -1,4 +1,4 @@
-# timegm.m4 serial 10
+# timegm.m4 serial 11
 dnl Copyright (C) 2003, 2007, 2009-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,
@@ -18,10 +18,6 @@ AC_DEFUN([gl_FUNC_TIMEGM],
   else
     HAVE_TIMEGM=0
   fi
-  if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
-    AC_LIBOBJ([timegm])
-    gl_PREREQ_TIMEGM
-  fi
 ])
 
 # Prerequisites of lib/timegm.c.
index ade3475..0ec9d65 100644 (file)
@@ -13,6 +13,10 @@ time_r          [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1]
 
 configure.ac:
 gl_FUNC_TIMEGM
+if test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1; then
+  AC_LIBOBJ([timegm])
+  gl_PREREQ_TIMEGM
+fi
 gl_TIME_MODULE_INDICATOR([timegm])
 
 Makefile.am: