Autotools magic that works