Hi,

the autoconf script uses

  AC_CHECK_LIB(gmp, __gmpz_init)

which is the recommended way to check for GMP of versions >= 3 according to http://swox.com/gmp/manual/Autoconf.html

Which version of libgmp do you have? and if you write a trivial program like:

  #include <gmp.h>

  int main(){
    mpz_t m;
    mpz_init(m);
    return 0;
  }

does it compile with

  gcc -o delete-me <filename.c> -lgmp

?

In any case, I've pushed a patch that will hopefully make it work for earlier versions of gmp. Let me know if it works :-)

Cheers


Tom

Malcolm Wallace wrote:
I'm having trouble getting started with building yhc on MacOS.
The configure step does not get very far:

$ ./configure --prefix=/sw
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for __gmpz_init in -lgmp... no
configure: error: cannot find libgmp

However, I do have libgmp installed, in /sw/lib, and my LD_LIBRARY_PATH
variable points to that directory.  Any ideas?

Regards,
    Malcolm
_______________________________________________
Yhc mailing list
[email protected]
http://haskell.org/mailman/listinfo/yhc

_______________________________________________
Yhc mailing list
[email protected]
http://haskell.org/mailman/listinfo/yhc

Reply via email to