autoupdate
[gnulib.git] / modules / timegm
index 91623cf..0ec9d65 100644 (file)
@@ -7,12 +7,16 @@ lib/timegm.c
 m4/timegm.m4
 
 Depends-on:
-mktime
 time
-time_r
+mktime-internal [test $HAVE_TIMEGM = 0 || test $REPLACE_TIMEGM = 1]
+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: