configure: Make sure timezone and daylight are variables.

This commit is contained in:
Alexandre Julliard 2006-08-25 13:23:29 +02:00
parent 182d150aa9
commit ff2bd66137
2 changed files with 4 additions and 4 deletions

4
configure vendored
View File

@ -23652,7 +23652,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
timezone;
timezone = 1
;
return 0;
}
@ -23727,7 +23727,7 @@ cat >>conftest.$ac_ext <<_ACEOF
int
main ()
{
daylight;
daylight = 1
;
return 0;
}

View File

@ -1435,14 +1435,14 @@ AC_CHECK_MEMBERS([ns_msg._msg_ptr],,,
dnl Check for the external timezone variables timezone and daylight
AC_CACHE_CHECK([for timezone variable], ac_cv_have_timezone,
AC_TRY_LINK([#include <time.h>],[timezone;],
AC_TRY_LINK([#include <time.h>],[timezone = 1],
ac_cv_have_timezone="yes", ac_cv_have_timezone="no"))
if test "$ac_cv_have_timezone" = "yes"
then
AC_DEFINE(HAVE_TIMEZONE, 1, [Define if you have the timezone variable])
fi
AC_CACHE_CHECK([for daylight variable], ac_cv_have_daylight,
AC_TRY_LINK([#include <time.h>],[daylight;],
AC_TRY_LINK([#include <time.h>],[daylight = 1],
ac_cv_have_daylight="yes", ac_cv_have_daylight="no"))
if test "$ac_cv_have_daylight" = "yes"
then