Re: Changing prefix for recursive autoconf subprojects

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

 



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 http://www.nongnu.org/autoconf-archive/

Cheers,
Peter

--
Peter Johansson

svndigest maintainer, http://dev.thep.lu.se/svndigest
yat maintainer,       http://dev.thep.lu.se/yat

Attachment: my_config_subdir_option.m4
Description: application/m4

_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux