configure: support Automake 1.12

This pull request adds support for Automake 1.12.

The Fedora distro has been shipping this patch since Fedora 19 included this Automake version.