Greetings !

This is a patch file that adds the SVGALIB driver to Ghostscript 3.33. The
previous patch that I had was against Ghostscript 2.6.2 and did not work
with 3.33, or even compile cleanly ! Since I needed the bug fixes in 3.33
and I wanted SVGALIB support I had to do some hacking, and I thought I'd
share it with the net.

The patch modifies gs.c, gs.1 (the manual page) and creates two new files,
gdevlinux.c and Makefile. The changes to gs.c and gs.1 are almost identical
to those in 2.6.2 and gdevlinux.c is very similar to the one for use with
2.6.2, the new Makefile is brand new and is based on unix-gcc.mak in the
3.33 distribution.

So how do you use it ? First unpack the official Ghostscript source file and
the JPEG support stuff if you need it. This is covered in the official
Ghostscript documentation. Then apply the patch file gs-svgalib-3.33.diff
from the archive. To do so use:

patch -p1 -s < gs-svgalib-3.33.diff

when in the gs3.33 directory. Then type "make" and all should be fine. Here
is a list of my changes:

gs.1:
	Added the information about SVGALIB. This is the same as 2.6.2.

gs.c:
	Parse the command line for SVGALIB specific options. This is the
	same as 2.6.2.

gdevlinux.c:
	The properties function names have been changed for those used in
	3.33.

	The device structure makes use of the official helper macros used by
	the other device drivers.

	The initial height and width are set to reasonable values (which are
	overwritten) as nothing was displayed if they started as zeros.

	Removed unused variables.

Makefile:
	The mode of the executable gs is now 4755 instead of 755, it needs
	the setuid bit set since SVGALIB requires it for non root users.

	The base directory for gs is /usr instead of /usr/local.

	Compiler flags of -O2 and -m486 have been added, it seems to make a
	worthwhile difference.

	The default is for A4 paper.

	Added the SVGALIB driver details.

Despite the above work, I know little about either SVGALIB or the internals
of Ghostscript. So if it doesn't work, don't shout at me, it works here.

Jonathan <g4klx@g4klx.demon.co.uk>
