[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AC_CONFIG_SUBDIRS but immediately
From: |
Stefan Husmann |
Subject: |
Re: AC_CONFIG_SUBDIRS but immediately |
Date: |
Thu, 12 Nov 2015 09:38:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
Am 11.11.2015 um 17:51 schrieb Gavin Smith:
> I would like to configure in a subdirectory of a project.
> AC_CONFIG_SUBDIRS accumulates its arguments and does them all at the
> end, but I'd like it to be done right away.
>
> I searched the archives of the mailing list and found a few
> discussions, e.g.
> http://lists.gnu.org/archive/html/autoconf/2008-05/msg00066.html.
>
> What I have currently is
>
> subdirs=tp/Texinfo/Convert/XSParagraph
> _AC_OUTPUT_SUBDIRS
>
> which uses an internal Autoconf macro. Obviously this is not ideal
> because it could break for different versions of Autoconf.
>
> Copying the code out of Autoconf to use isn't ideal either. if there
> isn't an easy way to do this with public macros, could I add my
> support for such a thing?
>
> The reason I want to do this is to be able to test the subdirectory in
> the configure script to see if building and running it worked, and to
> be able to disable it if it didn't. The subdirectory contains a Perl
> extension module that is to be dynamically linked into the Perl
> interpreter. If it's detected that this doesn't work, the use of the
> extension module will be disabled and a module written in interpreted
> Perl will be used instead.
>
> It also needs to be resilient against failure of the subsidiary
> configure script. This happened due to the AC_PROG_CC macro
> discovering that the C compiler didn't exist, or didn't work. This
> compiler was the one that that Perl said it was compiled with (output
> of "perl -V:cc"), so it's quite possible for it not to exist or not
> work.
>
> Advice welcome on how this could be accomplished.
>
> (CC to Texinfo list)
>
Sorry that I cannot really help, but are you aware that --libexec does not get
honored anymore after recent commits?
Best regards
Stefan