aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2006-12-10 16:24:36 +0000
committerAndreas Schwab2006-12-10 16:24:36 +0000
commit41de5de6c6bb1b93f58ed8579d65f8b864a9142b (patch)
tree7e2bdef57b224a1f8c442aa21964d11a2a8197f4
parent4c3384fa02f3d2358290994a697df345982eac12 (diff)
downloademacs-41de5de6c6bb1b93f58ed8579d65f8b864a9142b.tar.gz
emacs-41de5de6c6bb1b93f58ed8579d65f8b864a9142b.zip
Remove check for struct timezone, its result is never used.
-rw-r--r--configure.in32
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
2651 fi 2651 fi
2652fi 2652fi
2653 2653
2654# This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
2655AC_STRUCT_TIMEZONE
2656
2657dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect.
2658if test "$ac_cv_func_gettimeofday" = yes; then
2659 AC_CACHE_CHECK([for struct timezone], emacs_cv_struct_timezone,
2660 [AC_TRY_COMPILE([#include <sys/time.h>],
2661 [struct timezone tz;],
2662 dnl It may be that we can't call gettimeofday with a non-null pointer,
2663 dnl even though we have struct timezone (e.g. HPUX). In that case
2664 dnl we'll lie about struct timezone.
2665 [AC_TRY_RUN([
2666#ifdef TIME_WITH_SYS_TIME
2667#include <sys/time.h>
2668#include <time.h>
2669#else
2670#ifdef HAVE_SYS_TIME_H
2671#include <sys/time.h>
2672#else
2673#include <time.h>
2674#endif
2675#endif
2676main () {
2677 struct timeval time;
2678 struct timezone dummy;
2679 exit (gettimeofday (&time, &dummy));
2680}],
2681 emacs_cv_struct_timezone=yes,
2682 emacs_cv_struct_timezone=no, emacs_cv_struct_timezone=yes)],
2683 emacs_cv_struct_timezone=no)])
2684fi
2685
2686ok_so_far=yes 2654ok_so_far=yes
2687AC_CHECK_FUNC(socket, , ok_so_far=no) 2655AC_CHECK_FUNC(socket, , ok_so_far=no)
2688if test $ok_so_far = yes; then 2656if test $ok_so_far = yes; then