[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to add a library if it exists
From: |
Eric Blake |
Subject: |
Re: how to add a library if it exists |
Date: |
Mon, 06 Nov 2006 21:13:24 -0700 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Andrew Makhorin on 11/6/2006 5:39 AM:
>
> I need to include a check in configure.am 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.
You may be interested in seeing how CVS head of M4 checks for, and uses,
- -lgmp:
http://cvs.savannah.gnu.org/viewcvs/m4/ltdl/m4/gmp.m4?rev=1.2&root=m4&view=auto
- --
Life is short - so eat dessert first!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFUAfj84KuGfSFAYARAkCoAJ4k42H2jSgNv3atxIMUjavyK5IP3gCgwH2z
QEIDewJxB/1Kfv67TIeJeR0=
=5soh
-----END PGP SIGNATURE-----