[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: checking for libraries that link but do not run
From: |
Ben Pfaff |
Subject: |
Re: checking for libraries that link but do not run |
Date: |
Mon, 05 Oct 2009 12:21:10 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Bob Friesenhahn <address@hidden> writes:
> On Mon, 5 Oct 2009, Ben Pfaff wrote:
>>
>> If your advice is correct, then any use of AC_RUN_IFELSE (if any
>> libraries are added to LIBS) must be incorrect, because Autoconf
>> does not have the correct knowledge to run a program. It's hard
>> for me to believe that, because the Autoconf manual only mentions
>> problems with AC_RUN_IFELSE when cross-compiling and doesn't say
>> anything about other pitfalls.
>
> There are many pitfalls associated with running a program. If you do
> choose to validate that a program will actually run from the build
> directory with the currently installed libraries, then you need to be
> prepared for dealing with the pitfalls. :-)
>
> Most configure scripts don't seem to try to run programs. The
> configure script for my package does run a program for one of its
> tests.
I'm not sure what "be prepared for dealing with the pitfalls"
amounts to. Can you point to an example of a correct way to deal
with the pitfalls? What does your package do to deal with them?
Gnulib uses AC_RUN_IFELSE in many places. I suspect that most
programs that use Gnulib will fall afoul of these problems too.
--
Ben Pfaff
http://benpfaff.org
Re: checking for libraries that link but do not run, Richard Ash, 2009/10/05
Re: checking for libraries that link but do not run, Ralf Wildenhues, 2009/10/08