autotools: switch to autotools buildsystem
Merge pull request #2943 from theuni/autotools-final

Autotools buildsystem