diff options
author | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-12-18 22:01:27 +0300 |
---|---|---|
committer | Gonzalo Paniagua Javier <gonzalo.mono@gmail.com> | 2002-12-18 22:01:27 +0300 |
commit | ce46a3e791923ffb33f406a7413064d1e80ad7fe (patch) | |
tree | f3a71bb8021366022d5b4cc46280d9e6d4299c45 /configure.in | |
parent | 1c256c7686d4d31f43110eaca09d0036c2b38a9c (diff) |
2002-12-18 Gonzalo Paniagua Javier <gonzalo@ximian.com>
* configure.in: moved struct tm field tm_gmtoff check before the check
for timezone global variable. This makes Timezone work for me (debian
sid, linux, x86, which has both the field and the global variables).
svn path=/trunk/mono/; revision=9749
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/configure.in b/configure.in index fb0289737e3..d5b43f2b7dd 100644 --- a/configure.in +++ b/configure.in @@ -369,24 +369,24 @@ if test x$platform_win32 = xno; then dnl ******************************** dnl *** Checks for timezone stuff ** dnl ******************************** - AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone, + AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, AC_TRY_COMPILE([ #include <time.h> - ], [ - timezone = 1; - ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no)) - if test $ac_cv_var_timezone = yes; then - AC_DEFINE(HAVE_TIMEZONE) + ], [ + 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) else - AC_CACHE_CHECK(for tm_gmtoff in struct tm, ac_cv_struct_tm_gmtoff, + AC_CACHE_CHECK(for timezone variable, ac_cv_var_timezone, 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) + ], [ + timezone = 1; + ], ac_cv_var_timezone=yes, ac_cv_var_timezone=no)) + if test $ac_cv_var_timezone = yes; then + AC_DEFINE(HAVE_TIMEZONE) else AC_ERROR(unable to find a way to determine timezone) fi |