From: Miroslav Lichvar Date: Thu, 7 Aug 2014 12:11:17 +0000 (+0200) Subject: configure: check for 64-bit time_t X-Git-Tag: 1.31-pre1~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=36b25cbd2b5f4616c1df6a0f7c0555779d490877;p=thirdparty%2Fchrony.git configure: check for 64-bit time_t --- diff --git a/configure b/configure index 9a41d15d..cde0e17f 100755 --- a/configure +++ b/configure @@ -376,6 +376,13 @@ case $SYSTEM in ;; esac +if test_code '64-bit time_t' 'time.h' '' '' ' + char x[sizeof(time_t) > 4 ? 1 : -1] = {0}; + return x[0];' +then + add_def HAVE_LONG_TIME_T 1 +fi + MATHCODE='return (int) pow(2.0, log(sqrt((double)argc)));' if test_code 'math' 'math.h' '' '' "$MATHCODE"; then LIBS=""