[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Adding the right flags to a program which dlopens
From: |
Albert Chin |
Subject: |
Re: Adding the right flags to a program which dlopens |
Date: |
Mon, 7 Jun 2004 11:43:11 -0500 |
User-agent: |
Mutt/1.5.6i |
On Sat, Jun 05, 2004 at 09:54:03PM +0200, Stephane Bortzmeyer wrote:
> On Wed, Jun 02, 2004 at 12:51:31PM -0500,
> Albert Chin <address@hidden> wrote
> a message of 21 lines which said:
>
> > Does this work:
> > AC_SEARCH_LIBS(dlopen, [-ldl])
> >
> > This will add -ldl to $LIBS if needed. I think $LIBS is automatically
> > linked into the main program.
>
> It does but it tests dlopen once more, while it was already tested for
> libtool. So, it is a small waste.
But autoconf caches the test. It's better to use a duplicate test than
some internal variable.
--
albert chin (address@hidden)
Re: Adding the right flags to a program which dlopens, Gary V. Vaughan, 2004/06/03