You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ma...@apache.org on 2002/01/31 15:51:37 UTC

cvs commit: httpd-2.0 acconfig.h configure.in

martin      02/01/31 06:51:37

  Modified:    .        configure.in
  Added:       .        acconfig.h
  Log:
  Check for timegm() and for tm_gmtoff in struct tm.
  These are used for the USE_MDTM case in proxy_ftp.
  
  Revision  Changes    Path
  1.199     +10 -0     httpd-2.0/configure.in
  
  Index: configure.in
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/configure.in,v
  retrieving revision 1.198
  retrieving revision 1.199
  diff -u -r1.198 -r1.199
  --- configure.in	19 Jan 2002 05:11:04 -0000	1.198
  +++ configure.in	31 Jan 2002 14:51:36 -0000	1.199
  @@ -239,7 +239,17 @@
   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 <sys/types.h>
  +#include <time.h>], [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
   
  
  
  
  1.1                  httpd-2.0/acconfig.h
  
  Index: acconfig.h
  ===================================================================
  /* Define this if struct tm has a field tm_gmtoff */
  #undef HAVE_GMTOFF