From: Martin Kraemer Date: Thu, 31 Jan 2002 14:51:37 +0000 (+0000) Subject: Check for timegm() and for tm_gmtoff in struct tm. X-Git-Tag: 2.0.32~177 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b68a8205e8eae0ddfde736140fc022396fdf9a46;p=apache Check for timegm() and for tm_gmtoff in struct tm. These are used for the USE_MDTM case in proxy_ftp. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93129 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/acconfig.h b/acconfig.h new file mode 100644 index 0000000000..31ad39f7a7 --- /dev/null +++ b/acconfig.h @@ -0,0 +1,2 @@ +/* Define this if struct tm has a field tm_gmtoff */ +#undef HAVE_GMTOFF diff --git a/configure.in b/configure.in index f4e6fda0f7..285d6464f2 100644 --- a/configure.in +++ b/configure.in @@ -239,8 +239,18 @@ getpwnam \ getgrnam \ initgroups \ bindprocessor \ +timegm \ ) +dnl ## Check for the tm_gmtoff field in struct tm to get the timezone diffs +AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff, +[AC_TRY_COMPILE([#include +#include ], [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_GMTOFF) +fi + dnl ## Set up any appropriate OS-specific environment variables for apachectl case $host in