--- config/cf/Imakefile.orig	Thu Apr  5 22:22:54 2001
+++ config/cf/Imakefile	Thu Apr  5 22:23:44 2001
@@ -121,15 +121,15 @@
 QNX.cf \
 xfree86.cf
 
-INSTFILES = $(RULEFILES) $(TMPLFILES) $(DEFFILES) $(CFFILES) $(LOCALFILES)
+/* We only need to install Motif.tmpl, and Motif.rules. */
+INSTFILES = Motif.tmpl Motif.rules
 
 all::
 
 InstallMultipleDestFlags(install,$(INSTFILES),$(CONFIGDIR),$(INSTDATFLAGS))
+#if defined(XFree86Version) && XFree86Version < 4000
 InstallLinkKitMultipleDestFlags($(INSTFILES),$(LINKKITDIR)/config/cf,$(INSTDATFLAGS))
-
-InstallNamedNonExec(Motif.rules,Motif.rules.openmotif,$(CONFIGDIR))
-InstallNamedNonExec(Motif.tmpl,Motif.tmpl.openmotif,$(CONFIGDIR))
+#endif
 
 #ifdef InstallEmptyHostDef
 install::
@@ -140,7 +140,7 @@
 		$(DESTDIR)$(CONFIGDIR)/host.def; \
 	RemoveFile($${TMP}))
 
-#ifdef XFree86Version
+#if defined(XFree86Version) && XFree86Version < 4000
 install.linkkit::
 	@(TMP=/tmp/tmp.$$$$; \
 	RemoveFile($${TMP}); \
