configure.in: Warn that MPFR 2.2.0 is buggy.

* configure.in: Warn that MPFR 2.2.0 is buggy.
	* configure: Regenerate.

From-SVN: r120262
This commit is contained in:
Kaveh R. Ghazi 2006-12-29 15:06:55 +00:00 committed by Kaveh Ghazi
parent b4d30aab66
commit a3993f3350
3 changed files with 164 additions and 147 deletions

View File

@ -1,3 +1,8 @@
2006-12-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in: Warn that MPFR 2.2.0 is buggy.
* configure: Regenerate.
2006-12-27 Ian Lance Taylor <iant@google.com>
* configure.in: When removing Makefiles to force a reconfigure, also

294
configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -1117,14 +1117,22 @@ choke me
if test x"$have_gmp" = xyes; then
saved_LIBS="$LIBS"
LIBS="$LIBS $gmplibs"
dnl MPFR 2.2.0 is acceptable but buggy, MPFR 2.2.1 is better.
AC_MSG_CHECKING([for correct version of mpfr.h])
AC_TRY_LINK([#include <gmp.h>
#include <mpfr.h>],[
#if MPFR_VERSION_MAJOR < 2 || (MPFR_VERSION_MAJOR == 2 && MPFR_VERSION_MINOR < 2)
#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
choke me
#endif
mpfr_t n; mpfr_init(n);
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([no]); have_gmp=no])
], [AC_TRY_LINK([#include <gmp.h>
#include <mpfr.h>],[
#if MPFR_VERSION < MPFR_VERSION_NUM(2,2,1)
choke me
#endif
mpfr_t n; mpfr_init(n);
], [AC_MSG_RESULT([yes])], [AC_MSG_RESULT([buggy but acceptable])])],
[AC_MSG_RESULT([no]); have_gmp=no])
LIBS="$saved_LIBS"
fi
CFLAGS="$saved_CFLAGS"