diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-06 16:20:38 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2016-06-06 16:20:38 +0000 |
commit | 7c540331f0126e634bd24c5d13f77ac1dfd5e862 (patch) | |
tree | 9086c684a73348f0fe02a2152381175e96759a52 | |
parent | 6d78aa901077777cfa346e1b52de79f74241c2bb (diff) | |
parent | 447f45d74a98367210e108ce7bde60c2d945c840 (diff) | |
download | mpfr-7c540331f0126e634bd24c5d13f77ac1dfd5e862.tar.gz |
Merged the latest change from the trunk (r10440).
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/ubf@10441 280ebfd0-de03-0410-8827-d642c229c3f4
-rw-r--r-- | acinclude.m4 | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index be917becb..1fefe840e 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -592,15 +592,17 @@ Please use another compiler or build MPFR without --enable-decimal-float.]) fi]) fi -dnl Check if __float128 is available +dnl Check if __float128 is available. We also require the compiler +dnl to support C99 constants (this prevents the __float128 support +dnl with GCC's -std=c90, but who cares?). if test "$enable_float128" != no; then - AC_MSG_CHECKING(if compiler knows __float128) - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[__float128 x;]])], + AC_MSG_CHECKING(if compiler knows __float128 with C99 constants) + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[__float128 x = 0x1.fp+16383q;]])], [AC_MSG_RESULT(yes) AC_DEFINE([MPFR_WANT_FLOAT128],1,[Build float128 functions])], [AC_MSG_RESULT(no) if test "$enable_float128" = yes; then - AC_MSG_ERROR([compiler doesn't know __float128 + AC_MSG_ERROR([compiler doesn't know __float128 with C99 constants Please use another compiler or build MPFR without --enable-float128.]) fi]) fi |