Ninja: Record showIncludes detection in configure log

Also avoid running the detection multiple times.
1 file changed