Skip to content
Snippets Groups Projects
Commit b1137d3b authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[gmp.m4] Add support for configure caching.

[[Imported from SVN: r7058]]
parent f6ed06cb
No related branches found
No related tags found
No related merge requests found
...@@ -30,15 +30,29 @@ AC_DEFUN([DUNE_PATH_GMP],[ ...@@ -30,15 +30,29 @@ AC_DEFUN([DUNE_PATH_GMP],[
AS_IF([test x"$with_gmp" = x"no"], [ AS_IF([test x"$with_gmp" = x"no"], [
AC_MSG_NOTICE([skipping check for GMP]) AC_MSG_NOTICE([skipping check for GMP])
], [ ], [
AS_IF([test x"$with_gmp" = x || test x"$with_gmp" = xyes], [ AC_CACHE_CHECK([for GMP], dune_cv_gmp_path, [
for d in /usr /usr/local; do dune_cv_gmp_path=no
AC_MSG_NOTICE([searching for GMP in $d...]) AS_IF([test x"$with_gmp" = x || test x"$with_gmp" = xyes], [
DUNE_CHECK_PATH_GMP($d) for d in /usr /usr/local; do
AS_IF([test $HAVE_GMP = yes],[break]) AC_MSG_NOTICE([searching for GMP in $d...])
done],[ DUNE_CHECK_PATH_GMP($d)
DUNE_CHECK_PATH_GMP($with_gmp) AS_IF([test $HAVE_GMP = yes],[
dune_cv_gmp_path=$d
break
])
done],[
DUNE_CHECK_PATH_GMP($with_gmp)
AS_IF([test $HAVE_GMP = yes],[
dune_cv_gmp_path=$with_gmp
])
])
]) ])
if test "x$dune_cv_gmp_path" != xno; then
HAVE_GMP=yes
GMP_CPPFLAGS="-I$dune_cv_gmp_path/include -DENABLE_GMP=1"
GMP_LIBS="-L$dune_cv_gmp_path/lib -lgmpxx -lgmp"
fi
]) ])
AS_IF([test $HAVE_GMP = yes],[ AS_IF([test $HAVE_GMP = yes],[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment