QEMU configure script goes into an infinite error printing loop when in read only directory due to 'build' dir never being created.
1 - Checking if 'mkdir dir' succeeds and if the directory is writeable prevents this error. 2 - Since we exit early on error in (1), code for reading in arguments has been moved before that Changes since v1: - Fix review comments from Peter Maydell Dinah Baum (2): configure: Add 'mkdir build' check configure: './configure --help' should work configure | 691 +++++++++++++++++++++++++++--------------------------- 1 file changed, 348 insertions(+), 343 deletions(-) -- 2.30.2