cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomidnl * do we have tm_gmtoff
cca227d2929386ee11e4aa23464681ef35eb9679Aki TuomiAC_DEFUN([DOVECOT_TM_GMTOFF], [
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_MSG_CHECKING([for tm_gmtoff])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_CACHE_VAL(i_cv_field_tm_gmtoff,
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi #include <time.h>]],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [[struct tm *tm; return tm->tm_gmtoff;]])],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [i_cv_field_tm_gmtoff=yes],
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi [i_cv_field_tm_gmtoff=no])])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi if test $i_cv_field_tm_gmtoff = yes; then
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_DEFINE(HAVE_TM_GMTOFF,, [Define if you have struct tm->tm_gmtoff])
cca227d2929386ee11e4aa23464681ef35eb9679Aki Tuomi AC_MSG_RESULT($i_cv_field_tm_gmtoff)