"Justin Wetherell" wrote:
> This check fails on my system because libX11.so is located in
> "/usr/X11R6/lib/libX11.so"
>
> On 2/24/06, Gorka Olaizola <[EMAIL PROTECTED]> wrote:
>>
>> On Fri, Feb 24, 2006 at 12:57:13AM +0100, Lucian Muresan wrote:
>> >
>> > +have_x11 = 1
>> > +try:
>> > +    dl.open('/usr/lib/libX11.so')
>> > +except dl.error, err:
>> > +    print "System without X11 detected"
>> > +    have_x11 = 0
>> > +

I see. Yes, that is a bad way to detect if X is installed or not. But
X has no pkg-config tool to check for it. The correct way of
installing would be to check for libX11.so and after that for the
header files. If both are missing, no X11. If both are there, X11. If
only the header files are missing: big warning!


Dischi

-- 
If the Earth is the size of a pea in New York, then the Sun
is a beachball 50m away, Pluto is 4km away, and the next
nearest star is in Tokyo.  Now shrink Pluto's orbit into a
coffee cup; then our Milky Way Galaxy fills North America.

Attachment: pgp0Mi9bMNo7L.pgp
Description: PGP signature

Reply via email to