autoconf
[Top][All Lists]
Advanced

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

Re: Problem with tests for GSL


From: Daniel Leidert
Subject: Re: Problem with tests for GSL
Date: Mon, 29 Oct 2007 17:41:16 +0100

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]