From ae9e3114802d8a758a335df664ddff13f4037e61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Fri, 25 Mar 2016 21:04:13 +0000 Subject: Use AC_STRUCT_TIMEZONE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I96c12dce662691d37d6eb6c1893c5e9d91a8ea6f Reviewed-on: https://code.wireshark.org/review/14753 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: João Valverde --- acinclude.m4 | 34 ---------------------------------- 1 file changed, 34 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index 1ed5f5619a..f62610e3bb 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -97,40 +97,6 @@ AC_DEFUN([AC_WIRESHARK_POP_FLAGS], LDFLAGS="$ac_ws_LDFLAGS_saved" ]) -# -# AC_WIRESHARK_TIMEZONE_ABBREV -# - -AC_DEFUN([AC_WIRESHARK_TIMEZONE_ABBREV], -[ - AC_CACHE_CHECK([for tm_zone in struct tm], - ac_cv_wireshark_have_tm_zone, - [ - AC_TRY_COMPILE( - [#include ], - [struct tm t; t.tm_zone;], - ac_cv_wireshark_have_tm_zone=yes, - ac_cv_wireshark_have_tm_zone=no) - ]) - if test $ac_cv_wireshark_have_tm_zone = yes; then - AC_DEFINE(HAVE_TM_ZONE, 1, [Define if tm_zone field exists in struct tm]) - else - AC_CACHE_CHECK([for tzname], - ac_cv_wireshark_have_tzname, - [ - AC_TRY_LINK( -[#include -#include ], - [printf("%s", tzname[0]);], - ac_cv_wireshark_have_tzname=yes, - ac_cv_wireshark_have_tzname=no) - ]) - if test $ac_cv_wireshark_have_tzname = yes; then - AC_DEFINE(HAVE_TZNAME, 1, [Define if tzname array exists]) - fi - fi -]) - # # AC_WIRESHARK_STRUCT_ST_FLAGS -- cgit v1.2.1