Backported c436c8

AM_CONFIG_HEADER raises an 'obsolete error' with automake 1.13.