Commit ff2bd661 authored by Alexandre Julliard's avatar Alexandre Julliard

configure: Make sure timezone and daylight are variables.

parent 182d150a
......@@ -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;
}
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment