This is the mail archive of the
automake@gnu.org
mailing list for the automake project.
ACLOCAL_AMFLAGS
- To: Automake List <automake at gnu dot org>
- Subject: ACLOCAL_AMFLAGS
- From: Ralf Corsepius <corsepiu at faw dot uni-ulm dot de>
- Date: Wed, 31 Jan 2001 22:35:06 +0100
- CC: Pavel Roskin <proski at gnu dot org>
- List-Id: Discussion list for automake <automake.gnu.org><mailto:automake-request@gnu.org?subject=unsubscribe>
- Organization: Ralf Corsepius
- Reply-To: corsepiu at faw dot uni-ulm dot de
ACLOCAL_AMFLAGS are broken w/ cvs/automake
Example:
Given this excerpt of a sourcetree:
aclocal/x.m4
a/b/configure.in
a/b/Makefile.am
cat a/b/Makefile.am
..
ACLOCAL_AMFLAGS = -I ../../aclocal
..
The generated Makefile.in will contain
..
$(ACLOCAL_M4): configure.in \
./../aclocal/x.m4 \
AFAIS, the "strip "./"" from this patch is to blame for this:
revision 1.799
date: 2000/10/18 03:26:55; author: proski; state: Exp; lines: +7
-1
* automake.in (handle_aclocal_m4): exclude aclocal.m4 and
acinclude.m4 from the dependencies of aclocal.m4 to avoid
circular and duplicated dependencies. Strip "./" from the
dependencies.
--- automake.in 2000/10/16 09:01:35 1.798
+++ automake.in 2000/10/18 03:26:55 1.799
@@ -3189,7 +3189,13 @@
$examine_next = 0;
if ($amdir !~ /^\// && -d $amdir)
{
- push (@ac_deps, &my_glob ($amdir .
'/*.m4'));
+ foreach $ac_dep (&my_glob ($amdir .
'/*.m4'))
+ {
+ $ac_dep =~ s/^\.\/*//;
+ push (@ac_deps, $ac_dep)
+ unless $ac_dep eq "aclocal.m4"
+ || $ac_dep eq "acinclude.m4";
+ }
}
}
elsif ($amdir eq '-I')
Ralf
--
Ralf Corsepius
Forschungsinstitut fuer Anwendungsorientierte Wissensverarbeitung
(FAW)
Helmholtzstr. 16, 89081 Ulm, Germany Tel: +49/731/501-8690
mailto:corsepiu@faw.uni-ulm.de FAX: +49/731/501-999
http://www.faw.uni-ulm.de