Modernize the Autoconf templates a bit. Use the autoconf and automake initialization macros properly. Fold acconfig.h into configure.in using conditionals and AH_BOTTOM(). Fix bsd_getopt.h to get rid of an infinite include loop. Turn on automake warnings, non-fatal because of the configure.in name.