From 64e13d308b5004abd50ea7fc8c5a3066976f8afd Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 15:07:41 +0200 Subject: [PATCH] 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... * modules/time_r (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/time_r.m4 | 4 ---- modules/time_r | 4 ++++ 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43ee29ebb..dbc4f5789 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + 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... + * modules/time_r (configure.ac): ... to here. + +2011-05-22 Bruno Haible + timegm: Move AC_LIBOBJ invocations to module description. * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM invocations from here... diff --git a/m4/time_r.m4 b/m4/time_r.m4 index 9bb28005f..d646edc2d 100644 --- a/m4/time_r.m4 +++ b/m4/time_r.m4 @@ -50,10 +50,6 @@ AC_DEFUN([gl_TIME_R], else HAVE_LOCALTIME_R=0 fi - if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then - AC_LIBOBJ([time_r]) - gl_PREREQ_TIME_R - fi ]) # Prerequisites of lib/time_r.c. diff --git a/modules/time_r b/modules/time_r index c7874a91d..c235e08bb 100644 --- a/modules/time_r +++ b/modules/time_r @@ -11,6 +11,10 @@ time configure.ac: gl_TIME_R +if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then + AC_LIBOBJ([time_r]) + gl_PREREQ_TIME_R +fi gl_TIME_MODULE_INDICATOR([time_r]) Makefile.am: -- 2.11.0