Enable building as autoconf subdirectory

Use new automake init syntax
Homogeneize autogen with other tools