Updated to use autotools.