Update to autotools files and replacement of m4/ directory