This article is from the GNU Chess and XBoard FAQ, by Tim Mann firstname.lastname@example.org with numerous contributions by others.
The first step to building GNU Chess is to get the distribution file and
unpack it. See topic [A.3] for places you can ftp the distribution from.
To unpack the gnuchess distribution, gnuchess-*.tar.gz, put it into a
new, empty directory, cd there, and give this Unix command:
gzip -cd gnuchess-*.tar.gz | tar -xvf -
If this command fails because you don't have gzip, see topic [A.3] , and
ask a local Unix expert if you need more help.
The above command will unpack all the files into a new directory. Next,
cd into this new directory.
Decide what directory tree you are going to install GNU Chess in. The
default is /usr/local. If you have write access to this directory tree,
make sure that it contains subdirectories bin, lib, and man. (If you
must "su" to get write access to /usr/local, you don't need to do so
until just before the "make install" below.) Type the following:
If you are going to install GNU Chess under your home directory for
personal use, do this instead:
mkdir $HOME/bin $HOME/lib $HOME/man
If you have problems or special requirements, see the files README,
INSTALL, Makefile.in, and configure.in for more information.
You don't need to have gcc to build GNU Chess. However, GNU Chess is
written in ANSI C. If you have only an old K&R C compiler, be sure you
have the current patchlevel of GNU Chess, and get "unproto" by:
Mathematics and Computing Science
Eindhoven University of Technology
It was released in comp.sources.misc Vol 27 with patches in vol 28 and
vol 38. Among other places, it can be found on unix.hensa.ac.uk in
Compile it and copy the cpp it produces into the gnuchess src directory
before you type "make" there.