1 dnl See whether we have struct timezone
2 dnl LIBU77_HAVE_STRUCT_TIMEZONE
3 AC_DEFUN(LIBU77_HAVE_STRUCT_TIMEZONE,
4 [AC_MSG_CHECKING([whether struct timezone exists])
5 AC_CACHE_VAL(libu77_cv_have_struct_timezone,
6 [AC_TRY_COMPILE([#include <sys/time.h>],
8 libu77_ac_have_struct_timezone=yes, libu77_ac_have_struct_timezone=no)])
9 if test $libu77_ac_have_struct_timezone = yes; then
11 AC_DEFINE_UNQUOTED(HAVE_STRUCT_TIMEZONE)