From 7bd8a0491055e7ca5709109400459556e870250a Mon Sep 17 00:00:00 2001 From: panne Date: Mon, 18 Aug 2003 11:16:34 +0000 Subject: [PATCH] [project @ 2003-08-18 11:16:33 by panne] Nuked unused tests FPTOOLS_HAVE_TIMEZONE and FPTOOLS_TYPE_TIMEZONE --- acconfig.h | 6 ------ aclocal.m4 | 45 --------------------------------------------- configure.ac | 4 ---- mk/config.h.in | 6 ------ 4 files changed, 61 deletions(-) diff --git a/acconfig.h b/acconfig.h index c6a17ae..4ce9568 100644 --- a/acconfig.h +++ b/acconfig.h @@ -429,9 +429,6 @@ /* Define if you have the sigpoll() function */ #undef HAVE_SIGPOLL -/* Define if time.h or sys/time.h define the timezone variable */ -#undef HAVE_TIMEZONE - /* Define if you support the production (and use) of Win32 DLLs. */ #undef HAVE_WIN32_DLL_SUPPORT @@ -582,9 +579,6 @@ /* Define if C Symbols have a leading underscore added by the compiler */ #undef LEADING_UNDERSCORE -/* Define to the type of the timezone variable (usually long or time_t) */ -#undef TYPE_TIMEZONE - /* Define if signal handlers have type void (*)(int) * (Otherwise, they're assumed to have type int (*)(void).) */ diff --git a/aclocal.m4 b/aclocal.m4 index c99598e..10cd4a7 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -4,51 +4,6 @@ dnl To be a good autoconf citizen, names of local macros have dnl prefixed with FPTOOLS_ to ensure we don't clash dnl with any pre-supplied autoconf ones. -dnl -dnl Is timezone around? (in a header file) -dnl -AC_DEFUN(FPTOOLS_HAVE_TIMEZONE, -[AC_CACHE_CHECK([timezone], fptools_cv_have_timezone, -[AC_TRY_COMPILE([#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif -], [return timezone;], -fptools_cv_have_timezone=yes, fptools_cv_have_timezone=no)]) -if test "$fptools_cv_have_timezone" = yes; then - AC_DEFINE(HAVE_TIMEZONE) -fi -]) - -dnl -dnl Has timezone the type time_t or long (HP-UX 10.20 apparently -dnl has `long'..) -dnl -AC_DEFUN(FPTOOLS_TYPE_TIMEZONE, -[AC_CACHE_CHECK([type of timezone], fptools_cv_type_timezone, -[AC_TRY_COMPILE([#if TIME_WITH_SYS_TIME -# include -# include -#else -# if HAVE_SYS_TIME_H -# include -# else -# include -# endif -#endif - -extern time_t timezone; -], -[int i;], fptools_cv_type_timezone=time_t, fptools_cv_type_timezone=long)]) -AC_DEFINE_UNQUOTED(TYPE_TIMEZONE, $fptools_cv_type_timezone) -]) - dnl *** Is altzone available? *** dnl AC_DEFUN(FPTOOLS_ALTZONE, diff --git a/configure.ac b/configure.ac index b323c80..030e401 100644 --- a/configure.ac +++ b/configure.ac @@ -847,10 +847,6 @@ AC_SUBST(HavePosixRegex) dnl ** how do we get a timezone name, and UTC offset ? AC_STRUCT_TIMEZONE -dnl ** what's the type of timezone? -FPTOOLS_HAVE_TIMEZONE -FPTOOLS_TYPE_TIMEZONE - dnl ** do we have altzone? FPTOOLS_ALTZONE diff --git a/mk/config.h.in b/mk/config.h.in index 8a4bab4..2f1789c 100644 --- a/mk/config.h.in +++ b/mk/config.h.in @@ -429,9 +429,6 @@ /* Define if you have the sigpoll() function */ #undef HAVE_SIGPOLL -/* Define if time.h or sys/time.h define the timezone variable */ -#undef HAVE_TIMEZONE - /* Define if you support the production (and use) of Win32 DLLs. */ #undef HAVE_WIN32_DLL_SUPPORT @@ -582,9 +579,6 @@ /* Define if C Symbols have a leading underscore added by the compiler */ #undef LEADING_UNDERSCORE -/* Define to the type of the timezone variable (usually long or time_t) */ -#undef TYPE_TIMEZONE - /* Define if signal handlers have type void (*)(int) * (Otherwise, they're assumed to have type int (*)(void).) */ -- 1.7.10.4