Reworked to use the GNU autoconf and automake tools.