Call AM_INIT_AUTOMAKE once

It is actually invalid to call AM_INIT_AUTOMAKE several time, and
provokes an error.
Merge pull request #98 from jd/jd/fix-build

Fix AM_INIT_AUTOMAKE call