way to detect to xserver-xorg version

Jay Cotton jay.cotton at oracle.com
Mon Aug 16 10:09:28 PDT 2010


  xdpyinfo can get the version of the server.  look at the source for 
that and do likewise.

jc

On 08/14/10 01:53, Tias wrote:
> Hey,
>
> In my program, I want to check that the xserver-xorg version is >= 
> 1.8.0. What way to do this is advised:
>
> At runtime using XVendorRelease(), or do there exist different 
> releases with inconsistent numbering ? And should this be combined 
> with a literal match on XServerVendor() ?
>
> At configuration time, PKG_CHECK_MODULES(XSERVER18, [xorg-server >= 
> 1.8.0], FOO=bar, FOO=baz). But what if you want to discriminate 
> different versions, multiple PKG_CHECK_MODULES ? This would swamp the 
> number of _LIBS and _CFLAGS options...
> Also, PKG_CHECK_EXSISTS() seems to ignore the version I provided, and 
> always sets FOO=bar.
>
>
> Thanks,
> Tias
> _______________________________________________
> xorg at lists.freedesktop.org: X.Org support
> Archives: http://lists.freedesktop.org/archives/xorg
> Info: http://lists.freedesktop.org/mailman/listinfo/xorg
> Your subscription address: jay.cotton at sun.com




More information about the xorg mailing list