--- a/configure.in Sat May 04 02:06:24 2002 +0000 +++ b/configure.in Sat May 04 03:34:46 2002 +0000 @@ -257,6 +257,18 @@ fi AC_SUBST(XSS_LIBS) +AC_DEFUN(GC_TM_GMTOFF, +[AC_REQUIRE([AC_STRUCT_TM])dnl +AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, +[AC_TRY_COMPILE([#include <sys/types.h> +#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;], + ac_cv_struct_tm_gmtoff=yes, ac_cv_struct_tm_gmtoff=no)]) +if test "$ac_cv_struct_tm_gmtoff" = yes; then + AC_DEFINE(HAVE_TM_GMTOFF) +fi +]) + +GC_TM_GMTOFF dnl This was taken straight from X-Chat.