diff options
author | Andreas Schwab <schwab@suse.de> | 2006-12-10 16:24:36 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@suse.de> | 2006-12-10 16:24:36 +0000 |
commit | 41de5de6c6bb1b93f58ed8579d65f8b864a9142b (patch) | |
tree | 7e2bdef57b224a1f8c442aa21964d11a2a8197f4 /configure.in | |
parent | 4c3384fa02f3d2358290994a697df345982eac12 (diff) | |
download | emacs-41de5de6c6bb1b93f58ed8579d65f8b864a9142b.tar.gz |
Remove check for struct timezone, its result is never used.
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/configure.in b/configure.in index 427201491f4..93cac35a32c 100644 --- a/configure.in +++ b/configure.in @@ -2651,38 +2651,6 @@ if test "x$HAVE_TIMEVAL" = xyes; then fi fi -# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE. -AC_STRUCT_TIMEZONE - -dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect. -if test "$ac_cv_func_gettimeofday" = yes; then - AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone, - [AC_TRY_COMPILE([#include <sys/time.h>], - [struct timezone tz;], - dnl It may be that we can't call gettimeofday with a non-null pointer, - dnl even though we have struct timezone (e.g. HPUX). In that case - dnl we'll lie about struct timezone. - [AC_TRY_RUN([ -#ifdef TIME_WITH_SYS_TIME -#include <sys/time.h> -#include <time.h> -#else -#ifdef HAVE_SYS_TIME_H -#include <sys/time.h> -#else -#include <time.h> -#endif -#endif -main () { - struct timeval time; - struct timezone dummy; - exit (gettimeofday (&time, &dummy)); -}], - emacs_cv_struct_timezone=yes, - emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)], - emacs_cv_struct_timezone=no)]) -fi - ok_so_far=yes AC_CHECK_FUNC(socket, , ok_so_far=no) if test $ok_so_far = yes; then |