test_summary (configflags): Compute correctly with both autoconfiscated and Cygnus-style top-level.

* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level.

From-SVN: r60991
This commit is contained in:
Alexandre Oliva 2003-01-07 11:56:25 +00:00 committed by Alexandre Oliva
parent 83282119ef
commit ce985125f5
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2003-01-07 Alexandre Oliva <aoliva@redhat.com>
* test_summary (configflags): Compute correctly with both
autoconfiscated and Cygnus-style top-level.
2003-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc_update (files_and_dependencies): Add gcc/cp/cfns.h depends

View File

@ -94,16 +94,19 @@ BEGIN {
print "cat <<'"'"'EOF'"'"' |";
'${prepend_logs+" system(\"cat $prepend_logs\"); "}'
}
$1 ~ /\/configure$/ {
srcdir = $1;
gsub(/\/configure$/, "", srcdir);
$0 ~ /^(|# )[^ ]*\/configure / {
configflags = $0 " ";
gsub(/^# /, "", configflags);
srcdir = configflags;
gsub(/\/configure .*/, "", srcdir);
printf "LAST_UPDATED: ";
system("tail -1 " srcdir "/LAST_UPDATED");
print "";
$1 = "configure flags:"; configflags = $0;
gsub(/--with-gcc-version-trigger=[^ ]* /, "", configflags);
gsub(/ --norecursion/, "", configflags)
gsub(/^[^ ]*\/configure /, "configure flags: ", configflags);
gsub(/ --with-gcc-version-trigger=[^ ]* /, " ", configflags);
gsub(/ --norecursion /, " ", configflags);
gsub(/ $/, "", configflags);
}
/^Running target / { print ""; print; }
/^Target / { if (host != "") next; else host = $3; }