diff options
author | Bruno Haible <bruno@clisp.org> | 2011-05-22 16:39:23 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-05-22 16:39:23 +0200 |
commit | 10b0d383559211c30490a72f2f2d3973dc60bf19 (patch) | |
tree | 2815d52970749d3b30ebdeb3b4d5edc26d409647 /m4/timegm.m4 | |
parent | 60b73b0521f30d7c9b99fb98e09077376abee49a (diff) | |
download | gnulib-10b0d383559211c30490a72f2f2d3973dc60bf19.tar.gz |
New module 'mktime-internal'.
* modules/mktime-internal: New file.
* m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
* m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
mktime_internal as a C macro if libc has __mktime_internal.
* modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
conditions.
* MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
Diffstat (limited to 'm4/timegm.m4')
-rw-r--r-- | m4/timegm.m4 | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/m4/timegm.m4 b/m4/timegm.m4 index 62e76b4437..ca97eb2529 100644 --- a/m4/timegm.m4 +++ b/m4/timegm.m4 @@ -26,13 +26,5 @@ AC_DEFUN([gl_FUNC_TIMEGM], # Prerequisites of lib/timegm.c. AC_DEFUN([gl_PREREQ_TIMEGM], [ - AC_REQUIRE([gl_FUNC_MKTIME]) - if test $ac_cv_func_working_mktime = yes; then - AC_CHECK_FUNC([__mktime_internal], , - [# mktime works but it doesn't export __mktime_internal, - # so we need to substitute our own mktime implementation. - AC_LIBOBJ([mktime]) - REPLACE_MKTIME=1 - gl_PREREQ_MKTIME]) - fi + : ]) |