summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-12-08 19:25:46 +0000
committerChristian Grothoff <christian@grothoff.org>2013-12-08 19:25:46 +0000
commit026db9217d89c7cc7069d663ec4ec1860c15fc39 (patch)
tree9ab5837577c95707c5babca0bd538e522bced2da /configure.ac
parent6878c22ebb835969239cf1792133118ccfd1afdc (diff)
-test for tm_gmtoff and use it instead of 'timezone' as suggested by GNU libc manual
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 4ae54482d..d901efc4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -203,6 +203,13 @@ AC_CHECK_LIB(socket, socket)
AC_CHECK_LIB(m, log)
AC_CHECK_LIB(c, getloadavg, AC_DEFINE(HAVE_GETLOADAVG,1,[getloadavg supported]))
+
+AC_CHECK_MEMBER(struct tm.tm_gmtoff,
+ [AC_DEFINE(HAVE_TM_GMTOFF, 1,
+ [Define if struct tm has the tm_gmtoff member.])],
+ ,
+ [#include <time.h>])
+
# 'save' libs; only those libs found so far will be
# linked against _everywhere_. For the others, we
# will be more selective!