a specific autoconf statistic is useful for diagnostics

This commit is contained in:
Andrew Tridgell 2002-04-10 09:52:52 +02:00
parent 6d5190fb72
commit 7d870180a2
3 changed files with 7 additions and 1 deletions

View File

@ -609,7 +609,11 @@ static void process_args(int argc, char **argv)
if (!found_c_opt) {
cc_log("No -c option found for %s\n", input_file);
stats_update(STATS_LINK);
if (strstr(input_file, "conftest.")) {
stats_update(STATS_CONFTEST);
} else {
stats_update(STATS_LINK);
}
failed();
}

View File

@ -48,6 +48,7 @@ enum stats {
STATS_DEVICE,
STATS_NOINPUT,
STATS_MULTIPLE,
STATS_CONFTEST,
STATS_END
};

View File

@ -50,6 +50,7 @@ static struct {
{ STATS_MISSING, "cache file missing ", NULL, 0 },
{ STATS_ARGS, "bad compiler arguments ", NULL, 0 },
{ STATS_NOTC, "not a C/C++ file ", NULL, 0 },
{ STATS_CONFTEST, "autoconf compile/link ", NULL, 0 },
{ STATS_DEVICE, "output to a non-regular file ", NULL, 0 },
{ STATS_NOINPUT, "no input file ", NULL, 0 },
{ STATS_NUMFILES, "files in cache ", NULL, FLAG_NOZERO|FLAG_ALWAYS },