Kalle Olavi Niemitalo <[EMAIL PROTECTED]> writes:
> lsh-snapshot-1998-12-28/bignum.h uses <gmp.h>, but that file doesn't
> exist in Debian GNU/Linux. Instead, there is <gmp2/gmp.h>.
>
> I could write a configure test to detect this. Should it add
> -I/usr/include/gmp2 to CPPFLAGS or rename bignum.h to bignum.h.in and
> process that with AC_SUBST(INCLUDE_GMP_H)?
I think the standard way is to add something like
#ifdef HAVE_GMP2_H
#include <gmp2.h>
#else
#ifdef HAVE_GMP_H
#include <gmp.h>
#endif
to bignum.h, and add the corresponding tests to configure.in (it
includes a test for the library "gmp2" already, but appearantly not
for the header file).
As I was just hacking in that part of the configure.in (I want it to
fail with an error message if gmp is not found), I'm afraid it would
be inconvenient to integrate patches against the latest snapshot.
I just checked in a new configure.in and bignum.h
(http://www.lysator.liu.se/~nisse/lsh/configure.in and
http://www.lysator.liu.se/~nisse/lsh/bignum.h). Could you try to see
if they work better, and if not, send me patches against those
versions?
Regards,
/Niels
PS. I really don't understand why debian installs gmp that way. GMP-2
has been out for a few years now, and should work much better than
GMP-1.x.