configure: add a verbose mode

Required for Fedora infrastructure so that the commands used to build
ninja are logged.

-------
Port of #265 to the new `configure.py` script.