Re: PATCH: cups dynamical dependency

2002-11-11 Thread Marcus Meissner
On Sun, Nov 10, 2002 at 11:18:27PM -0500, Dimitrie O. Paun wrote: On November 10, 2002 02:40 pm, Marcus Meissner wrote: Do not link against -lcups directly, but dynamically load it if present. (just like freetype etc.) [...] +#ifdef HAVE_CUPS + /* dynamically

Re: PATCH: cups dynamical dependency

2002-11-11 Thread Sylvain Petreolle
It is the same for freetype. I can do it the other way easily. I'll send a new patch later this day. Ciao, Marcus Couldn't this be done for all dlls thare loaded inconditionnally by another dlls ? For example comdlg32 loads winspool.drv, even if you don't want to print anything. I

Re: PATCH: cups dynamical dependency

2002-11-11 Thread Marcus Meissner
On Mon, Nov 11, 2002 at 02:26:31PM +0100, Sylvain Petreolle wrote: It is the same for freetype. I can do it the other way easily. I'll send a new patch later this day. Ciao, Marcus Couldn't this be done for all dlls thare loaded inconditionnally by another dlls ? For example

Re: PATCH: cups dynamical dependency

2002-11-11 Thread Alexandre Julliard
Dimitrie O. Paun [EMAIL PROTECTED] writes: Well, if we do this dynamically, why have this HAVE_CUPS check which is a compile time check? IMO we should just include a copy of the CUPS headers that we need, and drop the compile time check altogether. In fact, this check is misleading, as it

Re: PATCH: cups dynamical dependency

2002-11-10 Thread Dimitrie O. Paun
On November 10, 2002 02:40 pm, Marcus Meissner wrote: Do not link against -lcups directly, but dynamically load it if present. (just like freetype etc.) [...] +#ifdef HAVE_CUPS + /* dynamically load CUPS if not yet loaded */ + if (!cupshandle) { +

Re: PATCH: cups dynamical dependency

2002-11-10 Thread Vincent Béron
Le dim 10/11/2002 à 23:18, Dimitrie O. Paun a écrit : On November 10, 2002 02:40 pm, Marcus Meissner wrote: Do not link against -lcups directly, but dynamically load it if present. (just like freetype etc.) [...] +#ifdef HAVE_CUPS + /* dynamically load CUPS if