summaryrefslogtreecommitdiff
path: root/aclocal.in
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1997-10-21 06:52:08 +0000
committerTom Tromey <tromey@redhat.com>1997-10-21 06:52:08 +0000
commitb5e750197e42441370a2c39aa2d3c7b48d50e051 (patch)
tree09bff4757daa71839d42e693991bf2b2c361e62a /aclocal.in
parentac4023d124e2a0a0bb3426f7996c766672fa2096 (diff)
downloadautomake-b5e750197e42441370a2c39aa2d3c7b48d50e051.tar.gz
aclocal fix
Diffstat (limited to 'aclocal.in')
-rw-r--r--aclocal.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/aclocal.in b/aclocal.in
index 5b1141568..e14a8a331 100644
--- a/aclocal.in
+++ b/aclocal.in
@@ -207,8 +207,13 @@ sub scan_configure
}
# Search for things we know about. The "search" sub is
- # constructed dynamically, above.
- &search;
+ # constructed dynamically by scan_m4_files.
+ if (! &search && /(AM_[A-Z_]+)/)
+ {
+ # Macro not found, but AM_ prefix found.
+ warn "aclocal: configure.in: $.: macro \`$1' not found in library\n";
+ $exit_status = 1;
+ }
}
close (CONFIGURE);
@@ -273,8 +278,10 @@ sub scan_m4_files
{
# EXPR is a regexp matching the name of the macro.
($expr = $key) =~ s/(\W)/\\$1/g;
- $search .= "&add_macro ('" . $key . "') if /" . $expr . "/;\n";
+ $search .= ("if (/" . $expr "/) { & add_macro (" . $key
+ . "); return 1; }\n");
}
+ $search .= "return 0;\n";
eval 'sub search { ' . $search . '};';
die "internal error: $@\n search is $search " if $@;
}