fix build with automake 1.14

apparently automake 1.14 doesn't like multiple calls AM_INIT_AUTOMAKE in configure.ac and aborts on the second call with an error.