Use modern autoconf idioms.

Autoconf 2.59 says that AC_OUTPUT with arguments is obsolete
Rewrite to use AC_CONFIG_FILES.
Rebuild configure.