On 2012-08-22 20:26 +0200, Brice Goglin wrote: > Le 22/08/2012 19:44, Nick Bowler a écrit : > > On 2012-08-22 18:32 +0200, Brice Goglin wrote: > >> Le 22/08/2012 16:32, Nick Bowler a écrit : [...] > > Other than adding -I$(top_builddir) to CPPFLAGS, as a workaround you > > could probably add something like this just before AC_OUTPUT (untested): > > > > LT_CONFIG_H=`expr "$LT_CONFIG_H" : '.*/\(.*\)'` > > > > Your analysis looks correct but the workaround doesn't seem to work. It > looks like LT_CONFIG_H is set inside AC_OUTPUT.
Indeed, it looks like LT_CONFIG_H is set using AC_CONFIG_COMMANDS_PRE, so it does in fact get set "inside" AC_OUTPUT. I guess you could write AC_CONFIG_COMMANDS_PRE([LT_CONFIG_H=`expr "$LT_CONFIG_H" : '.*/\(.*\)'`]) and hope that it runs after libltdl's registration. Unfortunately, the autoconf manual does not appear to specify the order in which multiple AC_CONFIG_COMMANDS_PRE registrations are run, so this might not be the most robust approach. Perhaps someone on the autoconf list can clarify. It would be prudent to report the issue to the bug-libt...@gnu.org mailing list, ideally with a small test case. Obviously if you can wait for an upstream fix and avoid any hack workarounds for old versions that'd be ideal... Cheers, -- Nick Bowler, Elliptic Technologies (http://www.elliptictech.com/) _______________________________________________ https://lists.gnu.org/mailman/listinfo/libtool