configure: don't modify .status on error
commitdc655404659def26fbcd66583ca61575af9da8b9
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 9 Mar 2014 15:37:49 +0000 (9 17:37 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 11 Mar 2014 11:27:26 +0000 (11 13:27 +0200)
tree26626c68c9fd99adf423aadfb287321d92131326
parentac41881b48858b279960a17c07f0b159af91e75a
configure: don't modify .status on error

./configure --help
make

will try to re-run configure with --help
which isn't what was intended.

The reason is that config.status was written
even on configure error.
Defer writing config.status until configure
has completed successfully.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
configure