From: Brent Putman Date: Wed, 16 Aug 2006 23:59:22 +0000 (+0000) Subject: Add autoconf test for timegm to set HAVE_TIMEGM appropriately. This resolves build... X-Git-Tag: 1.0-alpha1~198 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fcpp-xmltooling.git;a=commitdiff_plain;h=140ea7f150ca4282dfed27df05e087da48f69fd2 Add autoconf test for timegm to set HAVE_TIMEGM appropriately. This resolves build errors for util/DateTime.cpp on Mac OS X. --- diff --git a/configure.ac b/configure.ac index 8fdc692..31b2d1c 100644 --- a/configure.ac +++ b/configure.ac @@ -205,6 +205,9 @@ AC_TRY_LINK( [Define if you have an STL implementation that supports useful string specialization.])], ) +# check for timegm() support +AC_CHECK_FUNC(timegm, AC_DEFINE(HAVE_TIMEGM,1,[Define to 1 if timegm is available])) + # Check for unit test support CXXTEST="/usr/bin/cxxtestgen.pl" CXXTESTFLAGS=""