summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-02 16:01:25 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-02 16:01:25 -0400
commit9c499f6db327d82d8cc4a5af757912b2787a8ff5 (patch)
tree8b446a189c0827315dc8161b8382381d19e03db1
parentc1cb06e00922ba5c15c128bab05c71220077fdce (diff)
downloadfork-ledger-9c499f6db327d82d8cc4a5af757912b2787a8ff5.tar.gz
fork-ledger-9c499f6db327d82d8cc4a5af757912b2787a8ff5.tar.bz2
fork-ledger-9c499f6db327d82d8cc4a5af757912b2787a8ff5.zip
Updated configure.ac to check for MPFR 2.4.0 or higher.
-rw-r--r--configure.ac4
1 files changed, 3 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 3f42d55b..55fbefbd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -124,6 +124,8 @@ AC_CACHE_CHECK(
AC_LANG_PUSH(C++)
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <mpfr.h>]], [[mpfr_t bar;
mpfr_init(bar);
+ char * buf = NULL;
+ mpfr_asprintf(&buf, "%Rf", bar);
mpfr_clear(bar);]])],[libmpfr_avail_cv_=true],[libmpfr_avail_cv_=false])
AC_LANG_POP
LIBS=$libmpfr_save_libs])
@@ -131,7 +133,7 @@ AC_CACHE_CHECK(
if [test x$libmpfr_avail_cv_ = xtrue ]; then
LIBS="-lmpfr $LIBS"
else
- AC_MSG_FAILURE("Could not find mpfr library (set CPPFLAGS and LDFLAGS?)")
+ AC_MSG_FAILURE("Could not find mpfr library 2.4.0 or higher (set CPPFLAGS and LDFLAGS?)")
fi
# check for boost_regex