------------------------------------------------------------------------
*** BUILDING CLX R4 FOR NEXT ***

Keith Hall
hall@eclipse.stanford.edu

Wed/1990-Jan-31
------------------------------------------------------------------------
After untaring clxOnNext.tar you should have a directory clxOnNext with
three files:
  this README file
  Xmd.h
  Xos.h
  Xproto.h
  Xprotostr.h

You should have already built "cl" by running "config" in /usr/cl/build

Grab CLX sources from your favorite X-Windows source (such as
expo.lcs.mit.edu):
  ftp expo.lcs.mit.edu
    login ftp
    password guest
    cd contrib
    bin
    get CLX.R4.tar.Z
    bye
  zcat CLX.R4.tar.Z | tar xf -
  rm CLX.R4.tar.Z

Set up files:
  foreach x (*.l)
    mv $x $x:r.cl
  end
  mkdir MIT
  mv defsystem.cl MIT
  mv excldefsys.cl defsystem.cl
  mv exclMakefile Makefile

mv Makefile Makefile.orig
cp Makefile.orig Makefile
Edit Makefile:
  line 9: CL = /usr/bin/cl

mv socket.c socket.c.orig
cp socket.c.orig socket.c
Edit socket.c:
  line 12: change <X11/Xos.h> to "Xos.h"
  line 13: change <X11/Xproto.h> to "Xproto.h"
  line 32: comment out "void bcopy();"

Make CLX.fasl:
  make >& makeLog.txt &
  (this will crunch for quite a while; makeLog.txt will grow to 46K)

Make binaries accessible to cl:
  mv CLX.fasl /usr/cl/lib/code/clx.fasl
  mv *.o /usr/cl/lib/code

Congratulations.  You have build CLX.  You can now remove all the CLX
source files or just remove the derived files with "make clean".

Load CLX into a running cl by entering "(require :clx)".  You may wish
to use "dumplisp" to save this image with CLX loaded, or even rebuild
cl with the line "(require :clx)" added to /usr/cl/build/custom.cl
(which is what I did).
------------------------------------------------------------------------
