Lines 113-119
AC_DEFUN([AC_CHECK_SOCKS5],
Link Here
|
113 |
|
113 |
|
114 |
dnl Check if struct tm contains long int tm_gmtoff |
114 |
dnl Check if struct tm contains long int tm_gmtoff |
115 |
AC_DEFUN([LICQ_CHECK_GMTOFF], |
115 |
AC_DEFUN([LICQ_CHECK_GMTOFF], |
116 |
[AC_CACHE_CHECK(for tm_gmtoff, licq_tm_gmtoff, |
116 |
[AC_CACHE_CHECK(for tm_gmtoff, licq_cv_member_tm_gmtoff, |
117 |
[ AC_TRY_COMPILE([ |
117 |
[ AC_TRY_COMPILE([ |
118 |
#include <time.h> |
118 |
#include <time.h> |
119 |
], [ |
119 |
], [ |
Lines 121-151
long int foo;
Link Here
|
121 |
struct tm bar; |
121 |
struct tm bar; |
122 |
foo = bar.tm_gmtoff; |
122 |
foo = bar.tm_gmtoff; |
123 |
], [ |
123 |
], [ |
124 |
licq_tm_gmtoff=yes |
124 |
licq_cv_member_tm_gmtoff=yes |
125 |
], [ |
125 |
], [ |
126 |
licq_tm_gmtoff=no |
126 |
licq_cv_member_tm_gmtoff=no |
127 |
]) |
127 |
]) |
128 |
]) |
128 |
]) |
129 |
if test $licq_tm_gmtoff = yes; then |
129 |
if test $licq_cv_member_tm_gmtoff = yes; then |
130 |
AC_DEFINE(USE_GMTOFF, 1, [Define if struct tm has gmtoff]) |
130 |
AC_DEFINE(USE_GMTOFF, 1, [Define if struct tm has gmtoff]) |
131 |
fi |
131 |
fi |
132 |
]) |
132 |
]) |
133 |
|
133 |
|
134 |
dnl Check if long timezone is somewhere defined (i.e. AIX) |
134 |
dnl Check if long timezone is somewhere defined (i.e. AIX) |
135 |
AC_DEFUN([LICQ_CHECK_TIMEZONE], |
135 |
AC_DEFUN([LICQ_CHECK_TIMEZONE], |
136 |
[AC_CACHE_CHECK(for extern long timezone, licq_extern_timezone, |
136 |
[AC_CACHE_CHECK(for extern long timezone, licq_cv_var_timezone, |
137 |
[ AC_TRY_LINK([ |
137 |
[ AC_TRY_LINK([ |
138 |
#include <time.h> |
138 |
#include <time.h> |
139 |
], [ |
139 |
], [ |
140 |
long foo; |
140 |
long foo; |
141 |
foo = timezone; |
141 |
foo = timezone; |
142 |
], [ |
142 |
], [ |
143 |
licq_extern_timezone=yes |
143 |
licq_cv_var_timezone=yes |
144 |
], [ |
144 |
], [ |
145 |
licq_extern_timezone=no |
145 |
licq_cv_var_timezone=no |
146 |
]) |
146 |
]) |
147 |
]) |
147 |
]) |
148 |
if test $licq_extern_timezone = yes; then |
148 |
if test $licq_cv_var_timezone = yes; then |
149 |
AC_DEFINE(USE_TIMEZONE, 1, [Define if global variable timezone exists]) |
149 |
AC_DEFINE(USE_TIMEZONE, 1, [Define if global variable timezone exists]) |
150 |
fi |
150 |
fi |
151 |
]) |
151 |
]) |