comparison configure.in @ 74553:0c93767fd6a6

Remove check for struct timezone, its result is never used.
author Andreas Schwab <schwab@suse.de>
date Sun, 10 Dec 2006 16:24:36 +0000
parents 7bb7864abd11
children 8a1893a214bd 6588c6259dfb
comparison
equal deleted inserted replaced
74552:f43c6119c6c4 74553:0c93767fd6a6
2649 [Define to 1 if gettimeofday accepts only one argument.]) 2649 [Define to 1 if gettimeofday accepts only one argument.])
2650 fi 2650 fi
2651 fi 2651 fi
2652 fi 2652 fi
2653 2653
2654 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
2655 AC_STRUCT_TIMEZONE
2656
2657 dnl Note that AC_STRUCT_TIMEZONE doesn't do what you might expect.
2658 if 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
2676 main () {
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)])
2684 fi
2685
2686 ok_so_far=yes 2654 ok_so_far=yes
2687 AC_CHECK_FUNC(socket, , ok_so_far=no) 2655 AC_CHECK_FUNC(socket, , ok_so_far=no)
2688 if test $ok_so_far = yes; then 2656 if test $ok_so_far = yes; then
2689 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no) 2657 AC_CHECK_HEADER(netinet/in.h, , ok_so_far=no)
2690 fi 2658 fi