X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=m4%2Fmktime.m4;h=07be5ccc0e2b39a337ba0c0682ad864ef0d768d6;hb=e919c87e296cd1486750079a274e6336cb30810b;hp=739757b6a20ab3ab5efd6f23859e6b9e2e994297;hpb=7b224479dcac36108cbf435aff9b45767143ed25;p=gnulib.git diff --git a/m4/mktime.m4 b/m4/mktime.m4 index 739757b6a..07be5ccc0 100644 --- a/m4/mktime.m4 +++ b/m4/mktime.m4 @@ -1,10 +1,8 @@ -# mktime.m4 serial 3 -dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc. -dnl This file is free software, distributed under the terms of the GNU -dnl General Public License. As a special exception to the GNU General -dnl Public License, this file may be distributed as part of a program -dnl that contains a configuration script generated by Autoconf, under -dnl the same distribution terms as the rest of that program. +#serial 7 +dnl Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. dnl From Jim Meyering. @@ -16,8 +14,8 @@ dnl From Jim Meyering. # -------------- AC_DEFUN([AC_FUNC_MKTIME], [AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CHECK_HEADERS(stdlib.h sys/time.h unistd.h) -AC_CHECK_FUNCS(alarm) +AC_CHECK_HEADERS_ONCE(sys/time.h) +AC_CHECK_FUNCS_ONCE(alarm) AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, [AC_RUN_IFELSE([AC_LANG_SOURCE( [[/* Test program from Paul Eggert and Tony Leneis. */ @@ -32,13 +30,8 @@ AC_CACHE_CHECK([for working mktime], ac_cv_func_working_mktime, # endif #endif -#if HAVE_STDLIB_H -# include -#endif - -#if HAVE_UNISTD_H -# include -#endif +#include +#include #if !HAVE_ALARM # define alarm(X) /* empty */ @@ -199,6 +192,4 @@ AC_DEFUN([gl_FUNC_MKTIME], ]) # Prerequisites of lib/mktime.c. -AC_DEFUN([gl_PREREQ_MKTIME], [ - AC_REQUIRE([AC_HEADER_STDC]) -]) +AC_DEFUN([gl_PREREQ_MKTIME], [:])