pavenis@lanet.lv wrote:
On 18 Jun 2001, at 16:52, Maurice Lombardi wrote:
Mariano Alvarez Fernandez wrote:
Hi all:
I'm pleased to announce GRX 2.4.2
I have checked it with djgpp v2. Everything works except that it is not possible in makedefs.grx to break the line giving -DGRX_DEFAULT_FONT_PATH. the diff is
Patch is not correct (similary as the current version) as it's not permitted to modify value returned by getenv() (try 'info libc a getenv')
No this patch is correct, at least for a standard implementation of djgpp: the value returned by getenv("DJDIR"), which is the actual DJGPP base directory, is not modified, it is simply concatenated by strcat() with the directory /contrib/grx242/fonts. I have checked that this works by running fonttest <some non default fonts> from a directory outside of the djgpp tree: GRXFONT was not set, neither in the environment nor in djgpp.env, so that it can be found only with GRX_DEFAULT_FONT_PATH.
One can add code to expand $DJDIR to it real contents at run time
this is exactly what is done by getenv("DJDIR"): this environment variable is set by the startup code within any djgpp running program, if DJGPP=c:\djgpp\djgpp.env has ben set, as mandatory in a djgpp setup.
or it's also possible to use /dev/env/DJDIR/... (beginning from DJGPP v2.03).
However I would recommend to change this default to $DJDIR/share/grxfonts and install them there by 'make install'
No objection, this is an other possibility, which makes easier to delete the source tree once grx has been properly installed. Maurice