configure{,.ac}, Makefile.in: added support for out-of-source builds