Common Lisp X11 interface
Common Lisp Makefile C
Latest commit f49260e Sep 30, 2016 Duane Rettig committed with dklayer bug24252: Fix clx build on MacOSX 10.11
%Bootstrapping: none
%Testing: [from cl/src] cd ..; make clean_build_addons

Fix path to include files for all macs

Change-Id: I3786dee34fd25b549dfd7f8a5f28a4756a14e0ee
Reviewed-on: https://gerrit.franz.com:9080/6419
Reviewed-by: Duane Rettig <duane@franz.com>
Reviewed-by: Martin Mikelsons <mm@franz.com>
Tested-by: Kevin Layer <layer@franz.com>
Reviewed-by: Kevin Layer <layer@franz.com>
Permalink
Failed to load latest commit information.
MITdist Fix warning counts May 11, 2009
debug see ACL #15 entry for Tue Sep 29 10:55:59 1998 Sep 29, 1998
demo Initial revision May 17, 1993
doc Initial revision May 17, 1993
test Initial revision May 17, 1993
.cvsignore 5.0.pre-beta.29 Nov 17, 1997
.gitignore add ignored files Jul 1, 2009
CHANGES Initial revision Mar 19, 1993
Makefile bug24252: Fix clx build on MacOSX 10.11 Oct 1, 2016
NEWCHANGES updated for 4.1 Mips May 4, 1992
README see ChangeLog for Wed Oct 01 17:56:10 1997 Tom McClure <tomj@falcon> Oct 2, 1997
attributes.cl prepare ofor smp [bug18657] Dec 15, 2009
buffer.cl prepare ofor smp [bug18657] Dec 15, 2009
bufmac.cl Initial revision Mar 19, 1993
clx0.cl revise and cleanup earlier smp mods [made as bug18657] Jun 29, 2011
defsystem.cl 2009-05-04 Duane Rettig <duane@franz.com> May 5, 2009
depdefs.cl MIT R5.0, ACL #4 Oct 20, 1997
dependent.cl revise and cleanup earlier smp mods [made as bug18657] Jun 29, 2011
display.cl Initial revision Mar 19, 1993
doc.cl Initial revision Mar 19, 1993
exclcmac.cl Fix warning counts May 11, 2009
excldep.c see ACL #8 changelog entry for Tue Dec 23 14:43:20 1997 Dec 23, 1997
excldep.cl revise and cleanup earlier smp mods [made as bug18657] Jun 29, 2011
fonts.cl Initial revision Mar 19, 1993
gcontext.cl fix incorrect uses of sharable-lock macros [bug20514] Oct 12, 2011
generalock.cl Initial revision Mar 19, 1993
graphics.cl Initial revision Mar 19, 1993
image.cl Initial revision Mar 19, 1993
input.cl prepare ofor smp [bug18657] Dec 15, 2009
keysyms.cl Initial revision Mar 19, 1993
macros.cl prepare ofor smp [bug18657] Dec 15, 2009
makeclx.cl see ChangeLog for Wed Oct 01 17:56:10 1997 Tom McClure <tomj@falcon> Oct 2, 1997
manager.cl Initial revision Mar 19, 1993
ms-patch.uu Initial revision Mar 19, 1993
package.cl bug22677: add defpatch for clx rebuild Mar 28, 2015
provide.cl Initial revision Mar 19, 1993
requests.cl Initial revision Mar 19, 1993
resource.cl Initial revision Mar 19, 1993
sockcl.cl see ACL #15 entry for Tue Sep 29 10:55:59 1998 Sep 29, 1998
socket.c see 4.3.devel.12 changelog entry for Mon Jan 22 22:06:56 1996 Duane R… Jan 23, 1996
text.cl fix incorrect uses of sharable-lock macros [bug20514] Oct 12, 2011
translate.cl Initial revision Mar 19, 1993

README

     This file contains instructions on how to make CLX work with Franz
Allegro Common Lisp.  CLX should work on any machine that supports
ACL version 3.1.10 or greater.  For running on Windows NT with X display
software such as Hummingbird's Exceed or StarNet's XWin32, skip to the
bottom.

 ******************************************************************************
 NOTE:  Normally you will not need to follow the instructions in this file.
	We supply a pre-built copy of CLX with your Allegro CL tape.  You
	should only need to rebuild CLX if you make changes to the source,
	or load patches that change the behaviour of the Allegro compiler.
	(If we send you any such patches, we will let you know so that you
	can recompile your application).
 ******************************************************************************

 ******************************************************************************
 NOTE:  We now include the TI CLX documentation -- see the doc/ directory.
 ******************************************************************************

 ******************************************************************************
 NOTE:  This distribution is not exactly the same as the one provided by MIT.
	Specifically, this distribution will *ONLY* work with Allegro versions
	greater than 3.1.10 (includes most released versions of 3.1, 4.0, and
	4.1).  If you need CLX for an older version of Allegro, please use
	the one available from the X Consortium at MIT.
 ******************************************************************************

     There are two steps to compile and install CLX.  The first is compiling
the source files into fasl files.  The fasl files will be combined into one
big fasl file, CLX.fasl.  This file is then installed in your Common Lisp
library directory in the next step.  You may need to edit the Makefile to
select the proper CFLAGS for your machine -- look in Makefile for examples.
Then just:

% make

     Now you must move the CLX.fasl file into the standard CL library.
This is normally "/usr/local/lib/cl/code", but you can find out for sure
by typing:

<cl> (directory-namestring excl::*library-code-pathname*)

to a running Lisp.  If it prints something other than "/usr/local/lib/cl/code"
substitute what it prints in the below instructions.

% mv CLX.fasl /usr/local/lib/cl/code/clx.fasl
% mv *.o /usr/local/lib/cl/code

Now you can just start up Lisp and type:

<cl> (load "clx")

to load in CLX.  You may want to dump a lisp at this point since CLX is a large
package and can take some time to load into Lisp.  You probably also want to
set the :generation-spread to 1 while loading CLX.  Please see your Allegro CL
User Guide for more information on :generation-spread.


     Sophisticated users may wish to peruse the Makefile and defsystem.cl
and note how things are set up.  For example we hardwire the compiler
interrupt check switch on, so that CL can still be interrupted while it
is reading from the X11 socket.  Please see chapter 7 of the CL User's
guide for more information on compiler switches and their effects.


Please report Franz specific CLX bugs to:

	 bugs@Franz.COM
	       or
	ucbvax!franz!bugs



Building and running on Windows NT

(1) With ACL 4.3.2 or later, :cd to the directory containing the clx
sources.

(2) :ld makeclx.cl - this should create winclx.fasl in that
directory.  Feel free to move winclx.fasl to a convenient location.

(3) In a fresh lisp, :ld winclx.fasl.  You should now be able to
open your display, assuming your X display software is running and
tcp/ip is installed, with: (xlib:open-display "localhost")