Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!SHIRE.CS.PSU.EDU!ehrlich From: ehrlich@SHIRE.CS.PSU.EDU (Daniel R. Ehrlich) Newsgroups: comp.windows.x Subject: Re: How does one find the X11 minor release number? Message-ID: <8905081317.AA18050@shire.cs.psu.edu> Date: 8 May 89 13:17:56 GMT References: <8905061635.AA12413@expire.lcs.mit.edu> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 28 > It sure would be nice if xrdb would define > a symbol like X11R2 or X11R3 based on which version was actually in > use. > >It sounds pretty hard to decide what you really mean here. We are running a mix of both X11R2 (mostly on RTs) and X11R3 (mostly on Suns). I would like to be able to put something like: #ifdef X11R3 #define big_font courr18 #define normal_font courr14 #define bold_font courb14 #else X11R3 #define big_font 9x15 #define normal_font 8x13 #define bold_font 8x13bold #endif X11R3 at the beginning of the .X{default,resources} files so as to not need the old fonts when we switch completely over the X11R3. At the moment this is done in the script we start X with by looking at the type of machine we are running on. I.E. if a Sun then X11R3 else X11R2. This information is then communicated to xrdb with -DX11R? when the file is loaded into the resource manager. I was just looking for a cleaner way of doing this. --Dan