wxTimer/timercmn.cpp change

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4528 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
1999-11-12 19:19:38 +00:00
parent 97d3f0eee6
commit 0470b1e6fe
15 changed files with 480 additions and 388 deletions

View File

@@ -2386,9 +2386,30 @@ dnl time/date functions
dnl ------------------------------------------------------------------------
if test "$wxUSE_TIMEDATE" = "yes"; then
AC_CHECK_FUNCS(gettimeofday localtime ftime)
dnl check for localtime (POSIX), gettimeofday (SVr4, BSD 4.3) and ftime
dnl (V7, BSD 4.3)
AC_CHECK_FUNCS(localtime gettimeofday ftime, break)
if test "$ac_cv_func_gettimeofday" = "yes"; then
if test "$ac_cv_func_localtime" = "yes"; then
AC_CACHE_CHECK(for tm_gmtoff in struct tm,
wx_cv_struct_tm_has_gmtoff,
[
AC_TRY_COMPILE(
[
#include <time.h>
],
[
struct tm tm;
tm.tm_gmtoff++;
],
[
wx_cv_struct_tm_has_gmtoff=yes,
AC_DEFINE(WX_GMTOFF_IN_TM)
],
wx_cv_struct_tm_has_gmtoff=no
)
])
elif test "$ac_cv_func_gettimeofday" = "yes"; then
AC_CACHE_CHECK([whether gettimeofday takes two arguments],
wx_cv_func_gettimeofday_has_2_args,
[