|
From: <ev...@us...> - 2006-09-08 01:34:54
|
Revision: 17187
http://svn.sourceforge.net/gaim/?rev=17187&view=rev
Author: evands
Date: 2006-09-07 18:34:46 -0700 (Thu, 07 Sep 2006)
Log Message:
-----------
At least one place (oscar.c:2294) uses the HAVE_TM_GMTOFF definition, but it was always undefined because the configure.ac did nothing about it. We now check for the tm_gmtoff member of struct tm and set the define appropriately.
The block added to configure.ac was taken from KDE Kopete's configure.ac.
This was particularly a problem for me because while OS X has timezone such that HAVE_TIMEZONE is defined, it's also a function, char * timezone(int zone, int dst), which wrecks havoc.
Modified Paths:
--------------
trunk/configure.ac
Modified: trunk/configure.ac
===================================================================
--- trunk/configure.ac 2006-09-07 23:26:55 UTC (rev 17186)
+++ trunk/configure.ac 2006-09-08 01:34:46 UTC (rev 17187)
@@ -1771,6 +1771,17 @@
AC_CHECK_HEADERS(termios.h)
AC_VAR_TIMEZONE_EXTERNALS
+AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff,
+ AC_TRY_COMPILE([
+ #include <time.h>
+ ], [
+ struct tm tm;
+ tm.tm_gmtoff = 1;
+ ], 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, 1, [Define if you have a tm_gmtoff member in struct tm])
+fi
+
dnl #######################################################################
dnl # Check for Doxygen and dot (part of GraphViz)
dnl #######################################################################
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|