https://en.wikipedia.org/wiki/Autoconf

Tutorials