On Thu, Jul 24, 2008 at 11:49:50PM +0200, Jehan wrote:

> there is this dependency "HAVE_LIBX11" which I absolutely cannot see in 
> the configure.ac where it is defined. But it looks like the generated 
> "configure" file set this without much condition:
> 
> #define HAVE_LIBX11 1
> 
> So I am not sure, because all this Makefile/Configure is difficult to 
> understand, but... is it a dummy dependency set anyway on true? I don't 
> have a server without X right here to check whether it will set 
> "HAVE_LIBX11" to 1 anyway...
> 
> And then the real interesting question is: if ever this is a real 
> dependency (or maybe badly set, but meant to be real)... do you mean 
> that when you don't have it, there is still a way to use mrxvt? Has 
> mrxvt been designed to work also on other window systems than X11?
> 
> If not, this should be considered as a mandatory dependency and I could 
> consider all functions from X11 usable in the code, couldn't I?
> 
> This would be really easier and the code would become more clear (all 
> these "#ifdef" get the code really messy...).

The HAVE_LIBX11 is a real dependency. See configure.ac:873 for the lines
that generate it. They die if the library is not found.

Any references to HAVE_LIBX11 in the code can safely be removed, or
replaced with

    #ifdef HAVE_LIBX11
    /* code here */
    #else
    # error "Mrxvt needs libX11 to compile (and run)"
    #endif

Feel free to use any function in libX11. I'm 99% sure you can also use
libXext. At any rate, if there's some library you want to use functions
from (for UTF8 support) feel free -- Just be sure you #ifdef the code,
so that people without the library are not forced into installing it.

GI

-- 
Those who get too big for their britches will be exposed in the end.

Attachment: pgpFcOWkcBQN5.pgp
Description: PGP signature

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Materm-devel mailing list
Materm-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/materm-devel
mrxvt home page: http://materm.sourceforge.net

Reply via email to