Cosmetic changes to configure.ac, and change a few [main] in
AC_CHECK_LIB() to something relevant.