Ran configure.ac through autoupdate (2.68) and fixed all obsolete function calls and cleaned up configure.