Modernized configure.ac a bit and added a rule to Makefile.am to