autoconf
[Top][All Lists]
Advanced

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

Re: Checking lib requires include


From: Paulo Jorge Matos
Subject: Re: Checking lib requires include
Date: Thu, 10 Nov 2005 17:42:00 +0000

Oh well, this is a quite nice trick.
Checking for main, i.e.
AC_CHECK_LIB(glpk, main)
works but its evil!

:)

On 10/11/05, Paulo Jorge Matos <address@hidden> wrote:
> Hi all,
>
> This is the first time I'm serious in using autoconf.
> The problem is I'm checking for a library using AC_CHECK_LIB and I was
> expecting to be able to say: (glpk - gnu linear programming kit)
> AC_CHECK_LIB(glpk)
> and that's it. However, I need to also give a function name. Why?
> I imagine this is the only way to check if the library is linkable...
> so, I asked for lpx_create_prob. (does this function need any
> particular feature?)
> Still config.log says it does not work because the test program needs
> to include glpk.h.
> How can I tell that to autoconf?
>
> Thanks,
> --
> Paulo Jorge Matos - pocm at sat inesc-id pt
> Web: http://sat.inesc-id.pt/~pocm
> Computer and Software Engineering
> INESC-ID - SAT Group
>


--
Paulo Jorge Matos - pocm at sat inesc-id pt
Web: http://sat.inesc-id.pt/~pocm
Computer and Software Engineering
INESC-ID - SAT Group




reply via email to

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