summaryrefslogtreecommitdiff
path: root/modules/localtime
diff options
context:
space:
mode:
Diffstat (limited to 'modules/localtime')
-rw-r--r--modules/localtime7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/localtime b/modules/localtime
index 5da46a9550..99a2d00dcd 100644
--- a/modules/localtime
+++ b/modules/localtime
@@ -10,12 +10,13 @@ time
configure.ac:
gl_FUNC_LOCALTIME
-if test $REPLACE_LOCALTIME = 1; then
- AC_LIBOBJ([localtime])
-fi
+gl_CONDITIONAL([GL_COND_OBJ_LOCALTIME], [test $REPLACE_LOCALTIME = 1])
gl_TIME_MODULE_INDICATOR([localtime])
Makefile.am:
+if GL_COND_OBJ_LOCALTIME
+lib_SOURCES += localtime.c
+endif
Include:
<time.h>