Modernise autoconf
Modernise automake
Fix some tab and space issues for consistency.