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> 2003-01-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* gcc_update (files_and_dependencies): Add gcc/cp/cfns.h depends * gcc_update (files_and_dependencies): Add gcc/cp/cfns.h depends

View file

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