bug-libtool
[Top][All Lists]
Advanced

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

Re: Adding ACLOCAL_AMFLAGS to Makefile.am break autoreconf


From: Gonsolo
Subject: Re: Adding ACLOCAL_AMFLAGS to Makefile.am break autoreconf
Date: Wed, 28 Jan 2009 22:15:45 +0100
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

Mike Frysinger schrieb:
On Wednesday 28 January 2009 05:08:45 Gonsolo wrote:
Mike Frysinger schrieb:
On Monday 26 January 2009 07:48:37 Gonsolo wrote:
1. Get new package
2. autoreconf -i

Ok.

3. Add ACLOCAL_AMFLAGS= -I m4 to Makefile.am as libtoolize suggests
4. Remove all generated files
5. Run autoreconf -i again

Breaks with: aclocal can't find directory "m4"
well, if you dont have a "m4" directory, then it doesnt make much sense
to add an -I for it
Well, before running autoreconf, I don't have one. But autoreconf calls
libtoolize which adds the "m4" directory.

eh ? it doesnt add a m4 dir for me. maybe you added AC_CONFIG_MACRO_DIR([m4]) to your configure.ac ? in which case, you need to make sure the dir exists first otherwise using that doesnt make much sense.

Libtoolize also complains that I should add the directory.

it's a suggestion, not a compliant. the behavior you're describing sounds correct to me. i imagine you'd prefer libtoolize to shut the hell up if there arent any actual problems.

I tried again:

1.

No m4 directory, no AC_CONFIG_MACRO_DIR([m4]) in configure.ac, no ACLOCAL_AMFLAGS in Makefile.am, running autoreconf:

Everything works, except libtool suggests:

libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.

2. If I do _exactly_ this:

diff --git a/configure.ac b/configure.ac
index 6e2051f..dd1cb85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,5 @@
 AC_INIT([something],[0.1])
 AC_CONFIG_SRCDIR([src/something.c])
-AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([--warnings=no-portability])

diff --git a/Makefile.am b/Makefile.am
index c26032e..a3db5a5 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,5 +1,6 @@
 .SILENT:

+ACLOCAL_AMFLAGS = -I m4
 export AM_LIBTOOLFLAGS = --silent

The next run of autoreconf fails with:

aclocal: couldn't open directory `m4': No such file or directory
autoreconf: aclocal failed with exit status: 1


So it seems to me libtoolize suggests something that breaks the system.
???

g




reply via email to

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