Can anybody point me to good documentation on using autoconf and/or automake to produce configure and makefile scripts for my open source project?

I currently have a small C++ project that needs to determine where the MySQL includes are as well as handle a few dependencies. Pretty easy stuff. I'm currently using a Makefile but its hardcoded to the location where I have installed MySQL (not very flexible).

I've tried with not much luck:

GNU autoconf
Learning Autoconf and Automake