605 |
`HAVE_STRUCT_TM_TM_ZONE' instead.]) |
`HAVE_STRUCT_TM_TM_ZONE' instead.]) |
606 |
else |
else |
607 |
AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, |
AC_CACHE_CHECK(for tzname, ac_cv_var_tzname, |
608 |
[AC_TRY_LINK( |
[AC_LINK_IFELSE([AC_LANG_PROGRAM( |
609 |
[#include <time.h> |
[[#include <time.h> |
610 |
#ifndef tzname /* For SGI. */ |
#ifndef tzname /* For SGI. */ |
611 |
extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
extern char *tzname[]; /* RS6000 and others reject char **tzname. */ |
612 |
#endif |
#endif |
613 |
], |
]], |
614 |
[atoi(*tzname);], ac_cv_var_tzname=yes, ac_cv_var_tzname=no)]) |
[atoi(*tzname);])], |
615 |
|
[ac_cv_var_tzname=yes], |
616 |
|
[ac_cv_var_tzname=no])]) |
617 |
if test $ac_cv_var_tzname = yes; then |
if test $ac_cv_var_tzname = yes; then |
618 |
AC_DEFINE(HAVE_TZNAME, 1, |
AC_DEFINE(HAVE_TZNAME, 1, |
619 |
[Define to 1 if you don't have `tm_zone' but do have the external |
[Define to 1 if you don't have `tm_zone' but do have the external |