Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!elroy.jpl.nasa.gov!decwrl!pa.dec.com!wsl.dec.com!klee From: klee@wsl.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Finding out X version and patch level Message-ID: <1991Mar20.154517@wsl.dec.com> Date: 20 Mar 91 23:45:17 GMT References: <22440@unix.SRI.COM> Sender: news@pa.dec.com (News) Reply-To: klee@wsl.dec.com Organization: DEC Western Software Laboratory Lines: 24 In article <22440@unix.SRI.COM>, ric@ace.sri.com (Richard Steinberger) writes: |> |> I apologize if this question has been asked recently and I missed |> it. I tend to work on a variety of computers that all have some version |> of X11 available. Can someone suggest an easy way to figure out what |> version a machine is running (R3 or R4, for instance) and what patchlevel |> it's at. Some of these machines have vendor supplied X11 This may not be possible (or useful). Most vendor implementations differ significantly from the MIT sample code. Also, some vendors ship different versions of different components (e.g., libraries based on X11R4 with servers based on X11R3). Your best bet is to use the officially supported interfaces for version identification. This includes the ProtocolRevision Xlib macro and XtSpecificationRelease Xt macro. Also check the documentation that comes with the product. Most vendors will advertise something like "conforms to *X Window System, 2nd Edition* by Scheifler & Gettys", which tells you what interfaces and semantics you can expect. -- Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@wsl.dec.com uucp: uunet!decwrl!klee