Autoreconf calling order order [WAS FYI: 333-gary-refactor-LTDL_INIT.patch]

"Gary V. Vaughan" <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.patches,gmane.comp.gnu.m4.patches,gmane.comp.gnu.libtool.patches
Message-ID <[email protected]>
Hi Eric,

On 23 Jan 2008, at 22:00, Eric Blake wrote:
> The problem seems to stem from the fact that I had an older version of
> libltdl copied into my M4 tree, and autoreconf runs aclocal prior to
> libtoolize, so it was picking up the old definition of LTDL_INIT which
> conflicted with my new contents of configure.ac.


I haven't picked through the logic inside autoreconf, but it seems
completely wrong to me for it to run any tool that affects the contents
of aclocal.m4 after aclocal itself (unless, perhaps, it reruns aclocal
again later).

 From libtoolize.m4sh(func_scan_files):

# Libtoolize affects the contents of aclocal.m4, and should be run  
before
# aclocal, so we can't use configure --trace which relies on a  
consistent
# configure.(ac|in) and aclocal.m4.

I'm punting this one as an autoreconf bug.

Cheers,
	Gary
-- 
Gary V. Vaughan ([email protected])
PGP.sig (application/pgp-signature, 186 B) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.