Moved the auto-configuration stage before the analyse stage, improved in-source builds.

Signed-off-by: Frank Mertens <frank@cyblogic.de>