From c3277ff9919c900609595d1a80928697f13823b9 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Tue, 4 Oct 2016 04:00:46 +0000 Subject: [PATCH] ICU-12774 tzname/timezone checks on cygwin, merge r39416 X-SVN-Rev: 39421 --- icu4c/source/aclocal.m4 | 4 ++-- icu4c/source/configure | 25 +++++-------------------- icu4c/source/configure.ac | 11 ++++------- 3 files changed, 11 insertions(+), 29 deletions(-) diff --git a/icu4c/source/aclocal.m4 b/icu4c/source/aclocal.m4 index 1b2e0303101..413f50971a5 100644 --- a/icu4c/source/aclocal.m4 +++ b/icu4c/source/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.14.1 -*- Autoconf -*- +# generated automatically by aclocal 1.15 -*- Autoconf -*- -# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Copyright (C) 1996-2014 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, diff --git a/icu4c/source/configure b/icu4c/source/configure index a71f995d19e..29732a1448a 100755 --- a/icu4c/source/configure +++ b/icu4c/source/configure @@ -752,7 +752,6 @@ infodir docdir oldincludedir includedir -runstatedir localstatedir sharedstatedir sysconfdir @@ -856,7 +855,6 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' -runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1109,15 +1107,6 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; - -runstatedir | --runstatedir | --runstatedi | --runstated \ - | --runstate | --runstat | --runsta | --runst | --runs \ - | --run | --ru | --r) - ac_prev=runstatedir ;; - -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ - | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ - | --run=* | --ru=* | --r=*) - runstatedir=$ac_optarg ;; - -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1255,7 +1244,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir runstatedir + libdir localedir mandir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1408,7 +1397,6 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] - --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -6888,8 +6876,8 @@ if ${ac_cv_var_tzname+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __USE_POSIX -#define __USE_POSIX +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE #endif #include #include @@ -6963,11 +6951,8 @@ if ${ac_cv_var_timezone+:} false; then : else cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#ifndef __USE_POSIX -#define __USE_POSIX -#endif -#ifndef __USE_XOPEN -#define __USE_XOPEN +#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE #endif #include diff --git a/icu4c/source/configure.ac b/icu4c/source/configure.ac index 44503623fbd..eb62936565b 100644 --- a/icu4c/source/configure.ac +++ b/icu4c/source/configure.ac @@ -834,8 +834,8 @@ AC_SUBST(U_TZSET) U_HAVE_TZNAME=0 AC_CACHE_CHECK(for tzname,ac_cv_var_tzname, -[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifndef __USE_POSIX -#define __USE_POSIX +[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE #endif #include #include @@ -861,11 +861,8 @@ AC_SUBST(U_HAVE_TZNAME) AC_SUBST(U_TZNAME) AC_CACHE_CHECK(for timezone,ac_cv_var_timezone, -[AC_LINK_IFELSE([AC_LANG_PROGRAM([#ifndef __USE_POSIX -#define __USE_POSIX -#endif -#ifndef __USE_XOPEN -#define __USE_XOPEN +[AC_LINK_IFELSE([AC_LANG_PROGRAM([#ifndef _XOPEN_SOURCE +#define _XOPEN_SOURCE #endif #include ], [[timezone = 1;]])],[ac_cv_var_timezone=yes],[ac_cv_var_timezone=no])]) -- 2.40.0