Hello,

I just did a commit with a check that links against the Perl interpreter
library:
https://git.savannah.gnu.org/cgit/texinfo.git/commit/?id=694afd4dd7b60bd02beab8501d80a64b55259234

It works correctly on GNU/Linux, but it will fail on platforms where the
Perl headers are incompatible with the Autoconf and Gnulib defines, such
as MingW for example (see Eli reports just before the release).  In the
texi2any C codes, the config.h is not included at all in files where we
include the Perl headers.

The compilation test in configure.ac should therefore also 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 use AC_LANG_PROGRAM.

In AC_LINK_IFELSE documentation, there is hint on how to avoid that
(maybe), but I could not understand how to use that information in
practice:

     If INPUT is nonempty use the equivalent of
     ‘AC_LANG_CONFTEST(INPUT)’ to generate the current test source file;
     otherwise reuse the already-existing test source file.  The INPUT
     can be made by ‘AC_LANG_PROGRAM’ and friends.

So it seems that the "already-existing test source file" can be reused,
which hints that it could be generated differently, but I did not find
anything about that.

Anybody knows something on that?

I'll ask on the autoconf ML if nobody answers.

-- 
Pat

Reply via email to