From 60506cec80376707457a63db42e77617e78dd1e5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 30 Apr 1997 01:46:13 +0000 Subject: [PATCH] aclocal fix --- ChangeLog | 3 +++ aclocal.in | 9 ++++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 570a7adb1..900d5399a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Tue Apr 29 19:11:45 1997 Tom Tromey + * aclocal.in (add_macro): If AC_ macro was defined, then mark it + as seen. Report from Janos Farkas. + * subdirs.am: Clean targets now run in reverse order. From Kevin Dalley. diff --git a/aclocal.in b/aclocal.in index 3b3260262..904e3f5e7 100644 --- a/aclocal.in +++ b/aclocal.in @@ -3,7 +3,7 @@ # @configure_input@ # aclocal - create aclocal.m4 by scanning configure.in -# Copyright (C) 1996 Free Software Foundation, Inc. +# Copyright (C) 1996, 1997 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -227,6 +227,7 @@ sub check_acinclude next unless $map{$key} eq 'acinclude.m4'; if (! $macro_seen{$key}) { + # FIXME: should print line number of acinclude.m4. warn "aclocal: macro \`$key' defined in acinclude.m4 but never used\n"; } } @@ -286,8 +287,10 @@ sub add_macro { local ($macro) = @_; - # Ignore AC_ macros. - return if $macro =~ /^AC_/; + # We want to ignore AC_ macros. However, if an AC_ macro is + # defined in (eg) acinclude.m4, then we want to make sure we mark + # it as seen. + return if $macro =~ /^AC_/ && ! defined $map{$macro}; if (! defined $map{$macro}) { -- 2.47.3