README File.
This file contains detailed instructions for compilation of POV-Ray 3.5 Windows
source code with Inprise (Borland's) free command line tools v. 5.5

1. unpack 3.5 source to some directory
2. create directory BORLAND under POV-Ray source code windows directory.
3. copy pvengine.mak to this borland directory
4. modify files, as indicated in POV-Ray readme.txt file (pvengine.c,
pvengine.h, optout.h)
5. make following source code changes:
5.1. in windows/pvbmp.c change line 688 to following:
  for (int i = 0 ; i < pad; i++)
5.2 comment out line 73 in windows/config.h:
//  #define PRECISION_TIMER_AVAILABLE           1
5.3 in file windows/pvengine.rc remove last 3 parameters from lines, starting 
with word FONT. E.g. line
FONT 8, "Helv", 0, 0, 0x1
should be replaced with
FONT 8, "Helv"
5.4 in source/renderio.cpp add following include directive:
#include <dir.h>
5.5 copy files hmath.h and hmath.cpp to source directory.
5.6 add hmath.h include directive
#include "hmath.h"
to following files in source directory:
express.cpp fnpovfpu.cpp fnsyntax.cpp 

6. adjust BORLANDPATH macro to correct install directory  of borland c++ in
file pvengine.mak, if necessary.

7. start command shell, which is initialized for borland compiler. I use
following command file:
set path=d:\borland\bcc55\bin;d:\borland\bcc55;%path%

8. go to windows/borland directory and invoke following command:
make -f pvengine.mak init
to create directories for obj files.
9. invoke following command:
make -f pvengine.mak
to compile executable and wait until make says:
Done pvengine2.exe Happy rendering.
then copy file pvengine2.exe from borland directory to directory, where 
POV-Ray is installed and start it.
10. start implementing your patch/fix/whatever :-)

NOTE: POV-Ray uses MS htmlhelp for help displaying. Unfortunately MS htmlhelp
package, which is downloadable from MS site, could not be used with inprise
linker:  lib file htmlhelp.lib is in coff format and inprise's coff2omf.exe 
program, which is intended for such situations, could not extract required
export symbols. (curiously inprise installation has htmlhelp.h file, but no
htmlhelp.lib??) I hacked htmlhelp.lib by using implib to extract required
symbols from hhctrl.ocx file, it may not work in other computers (I have W2k).
This hack is in makefile, so there is no need to do it manually, but path
to hhctrl.ocx file might be wrong in some computers or this file may be 
missing altogether, so be ready to hack around this problem!


Files in this package created by Vahur Krouverk
Feel free to use them as you see suitable, no limitations, no warranties!

contact: vkrouverk@starman.ee
Creation date: 2002-10-04

