[JDEV] Porting to hp-ux
DJ Adams
dj.adams at pobox.com
Sun Jun 17 02:03:28 CDT 2001
On Sat, Jun 16, 2001 at 09:35:51PM -0700, Doug Claar wrote:
>
> In jabberd/jabberd.c, there is the line:
>
> if((home = ghash_get(cmd__line,"H")) == NULL)
> home = pstrdup(jabberd__runtime, HOME);
>
> I think this is trying to get the HOME environment variable? If so, then
I think it may be correct as it is; HOME is set in the Makefile:
ifeq ($(ISSINGLE),1)
DEFINES=-DHOME="\"$(JHOME)\"" -DSINGLE -DSTATIC
else
DEFINES=-DHOME="\"$(JHOME)\"" -DCONFIGXML="\"jabber.xml\""
endif
and JHOME comes from the platform-settings:
JHOME=/usr/local/jabber/jabber-1.4.1 (or whatever)
The relationship between HOME/JHOME and the -H switch is so that if you
move the installation lock stock to somewhere else, you can reflect this
in startup with the -H switch specifying the new 'home'.
dj
More information about the JDev
mailing list