Rework autotools chain.