Compiling gpc from sources.

gpc is compiled as a member of the Gnu Compiler Collection (gcc)

The present archive enables you to compile gpc from original gnu sources.

It contains

- the gpc sources obtained from the gpc main site:
  http://gnu-pascal.de/alpha/gpc-20030507.tar.gz
  (you can replace it with a more recent alpha: the most recent is the best)

- the content of gcc322s2.zip with changes to enable gpc compilation:
  gpc specific diffs (if any), 
  changes in build.gcc\djbuild.sh build.gcc\djconfig.sh and install.gcc\makepkg.sh
    to compile only gpc and gcc (which is required as part of compilation of gpc)
   (the change to djconfig.sh can be reverted to compile the whole gcc collection)
    
You need in addition the gnu gcc sources (obtained from any gnu mirror) gcc-3.2.2.tar.gz

It can be compiled only with LFN=y (e.g. W9X dos box).

You need a fairly complete and working djgpp setup: 
see gcc322.README and notice that acnf213b and amake14b are needed.

Suppose your djgpp root dir is c:\djgpp, and you have put the sources in c:\temp
Type:

cd c:\djgpp
unzip32 c:\temp\gpc322s.zip

(LFN aware and preserving directory structure) 
will create a directory c:\djgpp\build and unzip files into it. Then

cd build
cp c:\temp\gcc-3.2.2.tar.gz .
sh build gpc-NNNNNNNN.tar.gz

will untar and patch the sources, and compile gcc and gpc (three stages build)

At the end you get the binary gpc322b.zip in the directory
c:\build\gnu\install.gcc\
(together with irrelevant files and zips)

You install this binary in the usual way (it contains a file 
gnu\gcc-3.22\gcc\p\readme.djgpp which explains what to do).

