]> granicus.if.org Git - apache/blobdiff - configure.in
Fix RedirectMatch so it won't emit invalid Location fields.
[apache] / configure.in
index f4e6fda0f7acddb3f36c8269c91e1d3c3508c226..285d6464f2ae05d83ef07fef5cf9d9d52c8c087d 100644 (file)
@@ -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 <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
 
 case $host in