diff --git a/ChangeLog b/ChangeLog index 67dc8ba..806fb38 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-03-20 Ralf Wildenhues + + * m4/gmp.m4 (CL_GMP_CHECK): Do not lose LIBS setting with config.cache + enabled. + 2004-03-08 Bruno Haible * src/float/lfloat/elem/cl_LF_mul.cc (operator*): Fix the second diff --git a/autoconf/aclocal.m4 b/autoconf/aclocal.m4 index 28c5d3f..3163e27 100644 --- a/autoconf/aclocal.m4 +++ b/autoconf/aclocal.m4 @@ -4517,8 +4517,12 @@ AC_DEFUN([CL_GMP_CHECK], SAVELIBS=$LIBS LIBS="$LIBS -lgmp" AC_TRY_LINK([#include ],[mpn_divexact_by3(0,0,0)], -cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) -])]) +cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no") + LIBS=$SAVELIBS]) + if test x"$cl_cv_new_libgmp" = xyes; then + LIBS="$LIBS -lgmp" + fi +]) dnl What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) AC_DEFUN([CL_GMP_SET_UINTD], diff --git a/m4/gmp.m4 b/m4/gmp.m4 index 1fb0db9..93bdc5d 100644 --- a/m4/gmp.m4 +++ b/m4/gmp.m4 @@ -26,8 +26,12 @@ AC_DEFUN([CL_GMP_CHECK], SAVELIBS=$LIBS LIBS="$LIBS -lgmp" AC_TRY_LINK([#include ],[mpn_divexact_by3(0,0,0)], -cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no"; LIBS=$SAVELIBS) -])]) +cl_cv_new_libgmp="yes", cl_cv_new_libgmp="no") + LIBS=$SAVELIBS]) + if test x"$cl_cv_new_libgmp" = xyes; then + LIBS="$LIBS -lgmp" + fi +]) dnl What is sizeof(mp_limb_t)? (It has to match sizeof(uintD) later.) AC_DEFUN([CL_GMP_SET_UINTD],