times: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 13:09:59 +0000 (15:09 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:00 +0000 (00:07 +0200)
* m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
* modules/times (configure.ac): ... to here.

ChangeLog
m4/times.m4
modules/times

index dbc4f57..2f4ce70 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       times: Move AC_LIBOBJ invocations to module description.
+       * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
+       * modules/times (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        time_r: Move AC_LIBOBJ invocations to module description.
        * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
        invocations from here...
index 8f22f46..76f7cdc 100644 (file)
@@ -1,4 +1,4 @@
-# times.m4 serial 1
+# times.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@ AC_DEFUN([gl_FUNC_TIMES],
   AC_CHECK_FUNCS_ONCE([times])
   if test $ac_cv_func_times = no; then
     HAVE_TIMES=0
-    AC_LIBOBJ([times])
   fi
 ])
index dad7eb9..aab3703 100644 (file)
@@ -10,6 +10,9 @@ sys_times
 
 configure.ac:
 gl_FUNC_TIMES
+if test $HAVE_TIMES = 0; then
+  AC_LIBOBJ([times])
+fi
 gl_SYS_TIMES_MODULE_INDICATOR([times])
 
 Makefile.am: