Updated configure.ac to support automake 1.14
Updated configure.ac to support older automake after previous commit