configure: add support for pseudo-"in source tree" builds
commitdedad0272052f3d848d6d178b681526b2f313029
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 21 Aug 2020 10:22:04 +0000 (21 12:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 21 Aug 2020 10:29:58 +0000 (21 06:29 -0400)
tree960670050d8f6c13b0cfcfdb551720fa8b991f81
parentbfea7012fe587805db7ee8b1767b3c4695a031fc
configure: add support for pseudo-"in source tree" builds

Meson requires the build dir to be separate from the source tree. Many
people are used to just running "./configure && make" though and the
meson conversion breaks that.

This introduces some backcompat support to make it appear as if an
"in source tree" build is being done, but with the results in the
"build/" directory. This allows "./configure && make" to work as it
did historically, albeit with the output binaries staying under build/.

Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Tested-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
.gitignore
configure