home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky comp.windows.x:15150 comp.windows.open-look:3430
- Path: sparky!uunet!caen!uakari.primate.wisc.edu!bin
- From: bin@primate.wisc.edu (Brain in Neutral)
- Newsgroups: comp.windows.x,comp.windows.open-look
- Subject: Re: Looking for Imake expert who also knows OpenWindows
- Message-ID: <6556@uakari.primate.wisc.edu>
- Date: 12 Aug 92 16:05:55 GMT
- References: <1992Aug12.084601.23431@fulcrum.oz.au>
- Sender: bin@primate.wisc.edu
- Reply-To: bin@primate.wisc.edu
- Lines: 53
-
- re: patching OW config files 'n' such so they actually work, there's
- a patch to xmkmf that's supposed to help (excerpt below). I have a
- question about it at the end.
- -----------------------------
- | Being an internet squirrel :-), I have it right here. Thanks go to Greg, of
- | course, for writing it.
-
- | -PaulR.
-
- | Message follows:
-
- | Assuming you want to maintain an OpenWindows environment (i.e., if you run
- | "xmkmf" and then "make" and then "make install", you expect the final product
- | to get installed in $OPENWINHOME/bin et al.), here's a solution that should
- | also work for sources that expect X11 R5 (i.e., they have R5-ish Imakefiles).
- |
- | Just cd to $OPENWINHOME and apply these simple patches:
- |
- | --snip-snip---------------------------------------------------------------------
- | *** bin/xmkmf.orig Wed Sep 18 07:02:02 1991
- | --- bin/xmkmf Tue Aug 6 00:39:20 1991
- | ***************
- | *** 30,34 ****
- |
- | elif [ -n "$OPENWINHOME" ]; then
- | ! args="-DUseInstalled "$OPENWINHOME/lib/config
- |
- | else
- | --- 30,34 ----
- |
- | elif [ -n "$OPENWINHOME" ]; then
- | ! args="-I$OPENWINHOME/lib/config -DUseInstalled -DXCOMM="/**/#" "$OPENWINHOME/lib/config
-
- --------------------
-
- My question: just what exactly is that last argument in "args" supposed
- to do? Stock X11R4/X11R5 xmkmf.cpp sets args to
-
- "-DUseInstalled "CONFIGDIRSPEC
-
- which turns into
-
- "-DUseInstalled "-I/usr/lib/X11/config
-
- if you use the default configuration file install directory.
-
- It looks to me like the OW xmkmf (both the original and the patched
- versions) are broken - i.e., like someone changed the /usr/lib/X11/config
- to $OPENWINHOME/lib/config, but ALSO took out the -I. That could be kind
- of important for telling imake where to look for config files...
-
- Paul DuBois
- dubois@primate.wisc.edu
-