diff options
Diffstat (limited to 'configure.ac')
| -rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 898d8b3b..9e4fa3d3 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,12 @@ CFLAGS="$save_CFLAGS" dnl We check for headers AC_HEADER_STDC +dnl Check flag for accurate arithmetic with Intel compiler. This is +dnl needed to stop the compiler from ignoring parentheses in expressions +dnl like (a + b) + c and from simplifying 0.0 + x to x (which is wrong if +dnl x = -0.0). +AX_CHECK_COMPILE_FLAG([-Werror -fprotect-parens -fsigned-zeros], + [CFLAGS="$CFLAGS -fprotect-parens -fsigned-zeros"]) dnl Check for C99 math functions save_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" |
