Blame SOURCES/autoconf-2.13-autoscan.patch
|
|
303bdf |
--- autoconf-2.13/autoscan.pl~ Tue Jul 10 19:00:10 2001
|
|
|
303bdf |
+++ autoconf-2.13/autoscan.pl Tue Jul 10 19:00:10 2001
|
|
|
303bdf |
@@ -123,14 +123,33 @@
|
|
|
303bdf |
# Called by &find on each file.
|
|
|
303bdf |
sub wanted
|
|
|
303bdf |
{
|
|
|
303bdf |
- if (/^.*\.[chlymC]$/ || /^.*\.cc$/) {
|
|
|
303bdf |
- $name =~ s?^\./??; push(@cfiles, $name);
|
|
|
303bdf |
- }
|
|
|
303bdf |
- elsif (/^[Mm]akefile$/ || /^[Mm]akefile\.in$/ || /^GNUmakefile$/) {
|
|
|
303bdf |
- $name =~ s?^\./??; push(@makefiles, $name);
|
|
|
303bdf |
- }
|
|
|
303bdf |
- elsif (/^.*\.sh$/) {
|
|
|
303bdf |
- $name =~ s?^\./??; push(@shfiles, $name);
|
|
|
303bdf |
+ # Wanted only if there is no corresponding FILE.in.
|
|
|
303bdf |
+ return
|
|
|
303bdf |
+ if -f "$_.in";
|
|
|
303bdf |
+
|
|
|
303bdf |
+ # Strip a useless leading `./'.
|
|
|
303bdf |
+ $name =~ s,^\./,,;
|
|
|
303bdf |
+
|
|
|
303bdf |
+ if (/^.*\.[chlymC](\.in)?$/)
|
|
|
303bdf |
+ {
|
|
|
303bdf |
+ push (@cfiles, $name);
|
|
|
303bdf |
+ $programs{cc}++;
|
|
|
303bdf |
+ }
|
|
|
303bdf |
+ elsif (/^.*\.(cc|cpp|cxx|CC|C|hh|hpp|hxx|HH|H|yy|ypp|ll|lpp)(\.in)?$/)
|
|
|
303bdf |
+ {
|
|
|
303bdf |
+ push (@cfiles, $name);
|
|
|
303bdf |
+ $programs{CC}++;
|
|
|
303bdf |
+ }
|
|
|
303bdf |
+ elsif (/^[Mm]akefile(\.in)?$/ || /^GNUmakefile$/)
|
|
|
303bdf |
+ {
|
|
|
303bdf |
+ # Wanted only if there is no corresponding Makefile.in.
|
|
|
303bdf |
+ # Using Find, $_ contains the current filename with the current
|
|
|
303bdf |
+ # directory of the walk through.
|
|
|
303bdf |
+ push (@makefiles, $name);
|
|
|
303bdf |
+ }
|
|
|
303bdf |
+ elsif (/^.*\.sh(\.in)?$/)
|
|
|
303bdf |
+ {
|
|
|
303bdf |
+ push (@shfiles, $name);
|
|
|
303bdf |
}
|
|
|
303bdf |
}
|
|
|
303bdf |
|
|
|
303bdf |
@@ -244,7 +263,7 @@
|
|
|
303bdf |
$libraries{$1}++;
|
|
|
303bdf |
}
|
|
|
303bdf |
# Tokens in the code.
|
|
|
303bdf |
- while (s/\W([a-zA-Z_]\w*)\W/ /) {
|
|
|
303bdf |
+ while (s/\W([a-zA-Z_][\w\+\.-]*)\W/ /) {
|
|
|
303bdf |
$programs{$1}++;
|
|
|
303bdf |
}
|
|
|
303bdf |
}
|