autoconf-patches
[Top][All Lists]
Advanced

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

Re: AC_SEARCH_LIBS optimization


From: Stepan Kasal
Subject: Re: AC_SEARCH_LIBS optimization
Date: Wed, 7 Sep 2005 10:52:40 +0200
User-agent: Mutt/1.4.1i

Hello,

On Tue, Sep 06, 2005 at 02:53:54PM -0700, Noah Misch wrote:
> > +  AC_LINK_IFELSE([], [AS_VAR_SET(ac_Search, [$ac_res])])
> > +  AS_VAR_SET_IF(ac_Search, [break])dnl
> 
> Here and throughout your patch, the first argument is constant, so these
> uses do not improve the code.

I think that my patch enables this:

for func in f1 f2 f3; do
   AC_SEARCH_LIBS([$func], [foo bar baz])
done

Autoconf itself doesn't make use of it, but it could come handy
to someone.

> This chunk just splits the old test case into two test cases, right?

Yes.  Previously, the problem was hidden, because the second call of
AC_SEARCH_LIBS cleaned up the trash which remained after the first one.

Stepan




reply via email to

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