Changed the makefile system to autoconf/automake.