From 8a75c79c81141e7330c824f7441732d7fc158f54 Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Tue, 11 Apr 2000 23:39:20 +0000 Subject: check for timezone as a variable (as it is in linux, but not in freebsd or * configure.in: check for timezone as a variable (as it is in linux, but not in freebsd or netbsd.) svn path=/trunk/; revision=2398 --- ChangeLog | 5 +++++ configure.in | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/ChangeLog b/ChangeLog index 74b3e458fd..3feb4d7d4f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2000-04-11 Chris Toshok + + * configure.in: check for timezone as a variable (as it is in + linux, but not in freebsd or netbsd.) + 2000-04-11 Larry Ewing * widgets/e-table/e-cell-toggle.c (etog_draw): update for new diff --git a/configure.in b/configure.in index 5fed2fd6e1..e78011ef95 100644 --- a/configure.in +++ b/configure.in @@ -55,6 +55,30 @@ AM_GNOME_GETTEXT GNOME_X_CHECKS +dnl * Time zone stuff +AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone, + AC_TRY_COMPILE([ + #include + ], [ + timezone = 1; + ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no)) +if test $ac_cv_var_timezone = yes; then + AC_DEFUN(HAVE_TIMEZONE) +else + AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, + AC_TRY_COMPILE([ + #include + ], [ + struct tm tm; + tm.tm_gmtoff = 1; + ], ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)) + if test $ac_cv_struct_tm_gmtoff = yes; then + AC_DEFUN(HAVE_TM_GMTOFF) + else + AC_ERROR(unable to find a way to determine timezone) + fi +fi + AC_CHECK_FUNCS(mkstemp) dnl ************************************************** @@ -272,6 +296,7 @@ camel/providers/Makefile camel/providers/MH/Makefile camel/providers/maildir/Makefile camel/providers/mbox/Makefile +camel/providers/nntp/Makefile camel/providers/pop3/Makefile camel/providers/sendmail/Makefile camel/providers/smtp/Makefile -- cgit v1.2.3