Re: Problem with tests for GSL

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

 



Am Montag, den 29.10.2007, 14:18 +0100 schrieb Laurence Finston:

> I'd like to start using the GNU Scientific Library (GSL) with my package, 
> GNU 3DLDF, but I haven't been able to figure out how to get Autoconf to 
> find the library in order to set the values of preprocessor macros 
> correctly in `config.h'.  I had a look through the manual and the
> mailing list archives, but I didn't find a solution to my specific
> problem.
[snip]
> Is there a way of getting Autoconf to use the `-I' and `-L' options 
> above when testing for the presence and usability of the library?
> Or is there some other simple solution?

gsl ships a program gsl-config, which very probably will give you the
necessary information. I would test for it with a combination of

AC_ARG_VAR(GSL_CONFIG, ...)
AC_PATH_PROGS(GSL_CONFIG, gsl-config, ...)

and then get the flags by running $(GSL_CONFIG) with the appropriate
options.

> While I have read the M4 manual, I really don't feel up to writing my
> own tests for this.

At least the Debian packages contains an M4 macro (gsl.m4) written by
the GNU Scientific Library project. Did you check it out? It maybe
already contains pre-defined tests, that offer the functionality you are
looking for.

Regards, Daniel



_______________________________________________
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