GNU autoconf
The Towers of Hanoi implemented using the GNU autoconf configuration tool. The file configure.in is read by autoconf and a configure script is generated. Now, running the following command lists the moves for a Towers of Hanoi problem with N disks:
./configure --with-disks=N
GNU autoconf is an extensible package of m4 macros that produce shell scripts to automatically configure software source code packages.
hanoi-autoconf.tar.gz