These instructions can also be found in the file INSTALL.
INSTALL
I have tested this on Debian Linux systems (woody and sid), Solaris 2.6 and 2.7. Others have successfully compiled it on Windows and NT.