Upgraded configure script to use autoconf 2.50 features, and renamed to configure.ac. Changed a few things to better follow the autoconf guidelines.