diff --git a/aclocal.m4 b/aclocal.m4 index 86c1553f683e723da3b13e4ca5fcbc668ff863c3..c56a7b98d040f0cf2175d70e053c30f329e1a37f 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -1,19 +1,17 @@ -# FP_DECL_ALTZONE -# --------------- -# Defines HAVE_DECL_ALTZONE to 1 if declared, 0 otherwise. -# -# Used by base package. -AC_DEFUN([FP_DECL_ALTZONE], -[AC_REQUIRE([AC_HEADER_TIME])dnl -AC_CHECK_HEADERS([sys/time.h]) -AC_CHECK_DECLS([altzone], [], [],[#if TIME_WITH_SYS_TIME -# include <sys/time.h> -# include <time.h> -#else -# if HAVE_SYS_TIME_H -# include <sys/time.h> -# else -# include <time.h> -# endif -#endif]) -])# FP_DECL_ALTZONE +# FP_DECL_ALTZONE +# --------------- +# Defines HAVE_DECL_ALTZONE to 1 if declared, 0 otherwise. +# +# Used by base package. +AC_DEFUN([FP_DECL_ALTZONE], +[ + AC_CHECK_HEADERS_ONCE([sys/time.h]) + + AC_CHECK_HEADERS([sys/time.h]) + AC_CHECK_DECLS([altzone], [], [],[ + #if HAVE_SYS_TIME_H + #include <sys/time.h> + #endif + #include <time.h> + ]) +])# FP_DECL_ALTZONE