For the running Xserver, use xdpyinfo(1) first.
But it's output is not obvious on all platforms, f.i. SunOS5.5:
version number: 11.0
vendor string: Sun Microsystems, Inc.
vendor release number: 3510
it's a modified MIT X11R5, (patchlevel?)
See also:
From: Pete Forman
Newsgroups: comp.windows.x.intrinsics,comp.windows.x.apps
Subject: Re: Need help figuring out X release version
Date: 02 Dec 1999 13:40:25 +0000
Message-ID: <tuvh6hh...@kryten.bedford.waii.com>
Available via <URL:http://www.deja.com/forms/mid.shtml>
The posting contains C source.
Sample output on above SunOS5.5
Header information:
XlibSpecificationRelease = 5
X_PROTOCOL = 11
X_PROTOCOL_REVISION = 0
XtSpecificationRelease = 5
XT_VERSION = 11
XT_REVISION = 5
XtVersion = 11005
XtCompositeExtensionVersion = 1
XtObjectExtensionVersion undefined
XtShellExtensionVersion = 1
XmVERSION = 1
XmREVISION = 2
XmUPDATE_LEVEL = 3
XmVersion = 1002
XmVERSION_STRING = "@(#)OSF/Motif Version 1.2.3"
Library information:
Xt library version = 11005
Xm linked with Xt library version = 11005
Xm library version = 1002
f'up c.w.x
Sven
Try this:
-- snip --
% strings /usr/lib/libXm.so | grep -i "motif version"
@(#)Motif Version 2.1.0
-- snip --
Sometimes /usr/lib/libXm.so links to older Motif V1.2 instead of (the
far more advanced) V2.1. Check for all variants of /usr/lib/libXm.so*
----
Bye,
Roland
--
__ . . __
(o.\ \/ /.o) Roland...@informatik.med.uni-giessen.de
\__\/\/__/ gis...@informatik.med.uni-giessen.de
/O /==\ O\ MPEG specialist, C&&JAVA&&Sun&&Unix programmer
(;O/ \/ \O;) TEL +49 641 99-41370 FAX +49 641 99-41359
Subject 17 in the Motif FAQ. My web site has a copy of the FAQ.
--
Ken Lee, http://www.rahul.net/kenton/
Here's what I use:
# $/bin/sh
# A little script to display the Motif version number (and LessTIF
# version if available)
cpp -P -imacros /usr/local/include/Xm/Xm.h <<-ENDOFITALL
Motif version XmVERSION.XmREVISION(XmUPDATE_LEVEL) [XmVERSION_STRING]
ENDOFITALL
--
Mark H. Wood, Lead System Programmer mw...@IUPUI.Edu
The AVR menu said, "if you are running Novell, press 4." Eric Schmidt
is running Novell; the rest of us are running Netware.