* lib/Autom4te/General.pm (&find_file): Browse the includes in the

inverse order.
This commit is contained in:
Akim Demaille 2001-08-31 13:35:39 +00:00
parent daa8455624
commit f66f5d6077
4 changed files with 13 additions and 20 deletions

21
BUGS
View File

@ -35,21 +35,6 @@ address them.
* Status
/*------------------------------------------------------------------.
| Do not use without perfect knowledge of AC_CHECK_HEADER changes. |
`------------------------------------------------------------------*/
** AC_CHECK_HEADER
The handling is being revamped, and has not been tested enough to be
trusted. We are *extremely* interested in your comments and
experience with this being-built new semantics. Nonetheless it is way
too soon to use this version even for beta releases.
** make distcheck
Always fails. Don't even try. But once installed Autoconf is usable.
** make check
Might fail if you have an old version of 2.52c installed on your
machine. Please, then run make install before. But once installed
Autoconf is usable.
/*--------------------------.
| Sane for full scale use. |
`--------------------------*/

View File

@ -1,3 +1,8 @@
2001-08-31 Akim Demaille <akim@epita.fr>
* lib/Autom4te/General.pm (&find_file): Browse the includes in the
inverse order.
2001-08-31 Akim Demaille <akim@epita.fr>
* bin/autoupdate.in (@include): `installcheck' revealed the path

View File

@ -1153,7 +1153,8 @@ Remake @file{configure} even if newer than its input files.
@item --include=@var{dir}
@itemx -I @var{dir}
Also look for input files in @var{dir}. Multiple invocations accumulate.
Also look for input files in @var{dir}. Multiple invocations
accumulate. Latest directories are looking in first.
@item --output=@var{file}
@itemx -o @var{file}
@ -2510,6 +2511,7 @@ Remake the template file even if newer than its input files.
@item --include=@var{dir}
@itemx -I @var{dir}
Also look for input files in @var{dir}. Multiple invocations accumulate.
Latest directories are looking in first.
@item --warnings=@var{category}
@itemx -W @var{category}
@ -10073,6 +10075,7 @@ Force the update even if the file has not changed. Disregard the cache.
@item --include=@var{dir}
@itemx -I @var{dir}
Also look for input files in @var{dir}. Multiple invocations accumulate.
Latest directories are looking in first.
@end table
@node Obsolete Macros

View File

@ -140,7 +140,7 @@ sub find_file ($@)
return undef;
}
foreach my $path (@include)
foreach my $path (reverse @include)
{
return File::Spec->canonpath (File::Spec->catfile ($path, $filename))
if -e File::Spec->catfile ($path, $filename)