how to check and add a library if it exists

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I made a mistake in my previous post, sorry.

My question is probably very simple to autoconf experts, however,
I could not find the answer in the autoconf documentation.

I need to include a check in configure.in to see if libgmp.a (the GNU
bignum library) exists. And if it exists, the configure script has to
do the following:

1) change one line in some header file (by sed, for example);

2) add the option '-lgmp' in makefiles, where binaries are compiled.

The trouble is that a check like AC_CHECK_LIB(gmp, mpq_init) fails,
because the header <gmp.h> should be included in a test program.
However, it is unclear how to do that.

Thank you,

Andrew Makhorin



_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux