On Tue, 25 Nov 2008, Martin Pitt wrote:
Makefile:override CPPFLAGS += -DR_HOME_DEFAULT=\"$(rhomedef)\"
That looks interesting! Maybe setting $rhomedef during build will
already exactly do what we need?
pg_userfuncs.c: unsetenv("R_HOME");
plr.c: r_home = getenv("R_HOME");
plr.c: size_t rh_len = strlen(R_HOME_DEFAULT);
This seems to be the important code, indeed. If $R_HOME_DEFAULT isn't
already a fallback, then having something like
r_home = getenv("R_HOME");
if (!r_home)
r_home = "/usr/lib/R";
should do the trick?
I will give it a try, but it might last 2 weeks + x because I'm offline
for the next week and have to prepare something in advance.
Kind regards
Andreas.
--
http://fam-tille.de
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]