Updaing configure files to automake 1.12+

This removes some warnings with newer versions of automake. configure.in files are deprecated, so are a couple of macros. Functionality should be the same.