It seems that in lsh-0.9.9, the gmp-3 fixes to the configure scripts broke support for the debian gmp2 (dis)organization. The broken macro is defined in acinclude.m4. This is anattempt to fix it. Please test it and tell me if it works, and if not, how it can be improved: diff -u -a -r1.4 acinclude.m4 --- acinclude.m4 2000/05/08 19:03:40 1.4 +++ acinclude.m4 2000/05/21 19:13:01 @@ -54,7 +54,11 @@ [ac_save_libs="$LIBS" LIBS="-l$1 $LIBS" AC_TRY_LINK(dnl -[#include <gmp.h> +[#if HAVE_GMP_H +#include <gmp.h> +#elif HAVE_GMP2_GMP_H +#include <gmp2/gmp.h> +#endif ], [mpz_get_d(0);], ac_cv_lib_$1_mpz_get_d=yes, @@ -80,9 +84,13 @@ [ac_search_save_LIBS="$LIBS" ac_cv_search_mpz_get_d="no" for i in $1; do -LIBS="-l$i $LIBS" +LIBS="-l$i $ac_search_save_LIBS" AC_TRY_LINK(dnl -[#include <gmp.h> +[#if HAVE_GMP_H +#include <gmp.h> +#elif HAVE_GMP2_GMP_H +#include <gmp2/gmp.h> +#endif ], [mpz_get_d(0);], [ac_cv_search_mpz_get_d=-l$i Regards, /Niels
