autoconf
[Top][All Lists]
Advanced

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

Re: avoiding AC_DEFINE in AC_RUN_IFELSE for Perl C code


From: Patrice Dumas
Subject: Re: avoiding AC_DEFINE in AC_RUN_IFELSE for Perl C code
Date: Sat, 11 Jan 2025 00:35:37 +0100

On Fri, Jan 10, 2025 at 03:07:15PM -0800, Paul Eggert wrote:
> On 2025-01-10 12:57, Patrice Dumas wrote:
> > To avoid this, the test should instead be performed
> > without the AC_DEFINE results performed previously includes, although
> > this is the default of AC_LANG_CONFTEST, and of AC_LANG_PROGRAM or
> > AC_LINK_IFELSE.  I couldn't find a way to do that.
> 
> How about if you don't use either AC_LANG_PROGRAM or AC_LANG_SOURCE? Just
> use exactly the source code that you want.

confdefs.h is still used in that case.  And it matches the documentation of
AC_LINK_IFELSE that says that AC_LANG_CONFTEST is used in the default
case:

     If INPUT is nonempty use the equivalent of
     ‘AC_LANG_CONFTEST(INPUT)’ to generate the current test source file;

-- 
Pat



reply via email to

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