[comp.windows.x] rgb/Imakefile patch

mark@zok.UUCP (Mark W. Snitily) (01/09/90)

The X11R4 mit/rgb/Imakefile has a glitch similar to the one in
mit/lib/Xt/Imakefile pointed out by Isaac Salzman (salzman@rand.org).

If the rgb database is not installed in /usr/lib/X11 the new destination
directory is not compiled into to rgb and showrgb.  Here's a patch to
mit/rgb/Imakefile that fixes the problem:

*** Imakefile.org	Sat Nov 18 12:44:51 1989
--- Imakefile	Mon Jan  8 13:28:56 1990
***************
*** 1,5 ****
        DEPLIBS = 
!       DEFINES = NdbmDefines
       INCLUDES = -I$(TOP) -I$(SERVERSRC)/include
   INSTALLFLAGS = $(INSTLIBFLAGS)
          SRCS1 = rgb.c
--- 1,11 ----
+ #ifdef DefaultRGBDatabase
+    SITE_RGB_DB = -DRGB_DB=\"DefaultRGBDatabase\"
+ #else
+    SITE_RGB_DB = /* as nothing */
+ #endif
+ 
        DEPLIBS = 
!       DEFINES = NdbmDefines $(SITE_RGB_DB)
       INCLUDES = -I$(TOP) -I$(SERVERSRC)/include
   INSTALLFLAGS = $(INSTLIBFLAGS)
          SRCS1 = rgb.c

-- Mark

Mark W. Snitily                 Consulting Services:
894 Brookgrove Lane             Graphics, Operating Systems, Compilers
Cupertino, CA 95014             (408) 252-0456
mark@zok.uucp