From 707dcb0c448ecf255a58b3318d571de24832f75a Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Thu, 18 Apr 2013 10:37:32 +0200 Subject: [PATCH] Check if we need -lm for fe[gs]etenv() --- configure.ac | 1 + src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/configure.ac b/configure.ac index d1d47f8d..c43769ff 100644 --- a/configure.ac +++ b/configure.ac @@ -169,6 +169,7 @@ return sizeof(x) / CHAR_BIT != 16U dnl Checks for functions and headers AC_CHECK_FUNC(clock_gettime, , [AC_CHECK_LIB(rt, clock_gettime)]) +AC_CHECK_FUNC(fegetenv, , [AC_CHECK_LIB(m, fegetenv)]) AC_CHECK_FUNCS([SecureZeroMemory]) diff --git a/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305.c b/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305.c index d7cf4982..1861abe6 100644 --- a/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305.c +++ b/src/libsodium/crypto_onetimeauth/poly1305/53/auth_poly1305.c @@ -10,6 +10,8 @@ Public domain. #include "crypto_onetimeauth.h" +#pragma STDC FENV_ACCESS ON + typedef uint8_t uchar; typedef int32_t int32; typedef uint32_t uint32;