Drop use of deprecated 'AM_PROG_MKDIR_P' macro

Reported as deprecated by automake (GNU automake) 1.13.3
Distcheck builddir is readonly, no tmpfile.
Always output failed tests.
testsuite: do not use tempfile anymore. Support distcheck readonly directories.
testsuite: fix distcheck timing issues match.
Merge remote-tracking branch 'gnu/master'