Use AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER
AM_CONFIG_HEADER is removed in automake 1.13