[Top][All Lists]

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

Re: Changing prefix for recursive autoconf subprojects

From: Peter Johansson
Subject: Re: Changing prefix for recursive autoconf subprojects
Date: Thu, 28 Jan 2010 14:29:45 -0500
User-agent: Thunderbird (X11/20090105)

Hi Ralf, Michael,

Ralf Corsepius wrote:
c) There is a hidden feature in autoconf's AC_CONFIG_SUBDIR (cf. _AC_CONFIG_SUBDIRS in /usr/share/autoconf/status.m4 for details): If a toplevel configure finds a file called "configure.gnu" inside of a CONFIG_SUBDIR, it invokes "configure.gnu" instead of "configure". I.e. theoretically one could add a "configure.gnu" script, which would act as a wrapper script to "configure", i.e. receive the original arguments, would parse/process them and invoke the real "configure"-script in the end.

I've never tried this approach, but ... it could be worth a try.

I actually tried that approach a month (or two) ago, and it seems to work alright. It was a bit tricky with the dependency because I wanted to avoid modifying the sub-projects. Please find attached the macro I created at that time. I haven't used/tested it very much but at least you can use for inspiration. Note that in contrast with AC_CONFIG_SUBDIR, $1 cannot contain several subdirs but if you have several subdirs you need to call the macro several times. A shortcoming that should be easily fixed. Also it depends on a AX_PRINT_TO_FILE that can be found at


Peter Johansson

svndigest maintainer,
yat maintainer,

Attachment: my_config_subdir_option.m4
Description: application/m4

reply via email to

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