Subject: [clisp-list] [PATCH] mac osx installation instructions

From: Ben Hyde <[email-masked]>
Date: 8 Jun 2001 22:59:28 -0000

Below are patches to the installation instructions against HEAD at the
time I did them.  They explain how to build on Mac OSX.  They worked for
me done on a fresh cvs checkout.  They reflect what I know, which ain't 
much :-).  Do with them what you will.  - ben

Index: INSTALL
===================================================================
RCS file: /cvsroot/clisp/clisp/INSTALL,v
retrieving revision 1.15
diff -u -3 -r1.15 INSTALL
--- INSTALL	2000/04/01 00:17:50	1.15
+++ INSTALL	2001/06/08 22:53:32
@@ -8,7 +8,7 @@
 
 Documentation:
 
-      INSTALL            this text
+      INSTALL            this text, see also Installation below
       SUMMARY            description, summary
       ANNOUNCE           announcement
       COPYRIGHT          copyright notice
@@ -32,7 +32,7 @@
       src/machine.*      auxiliary program
       src/*.in           auxiliary files
       utils/*            auxiliary programs
-      unix/              installing on Unix 
+      unix/              installing on Unix (including Mac OSX)
       os2/               installing on OS/2
       win32msvc/         installing on Win32, using MSVC
       win32bc/           installing on Win32, using Borland C/C++
Index: unix/INSTALL
===================================================================
RCS file: /cvsroot/clisp/clisp/unix/INSTALL,v
retrieving revision 1.4
diff -u -3 -r1.4 INSTALL
--- unix/INSTALL	2000/10/31 17:34:10	1.4
+++ unix/INSTALL	2001/06/08 22:53:32
@@ -1,7 +1,7 @@
 Installation on Unix:
 ---------------------
 
-This file describes the standard installation procedure. Special hints for
+This file describes the standard installation procedure.  Critical hints for
 some platforms can be found in file unix/PLATFORMS.
 
 1. (Optional)
Index: unix/PLATFORMS
===================================================================
RCS file: /cvsroot/clisp/clisp/unix/PLATFORMS,v
retrieving revision 1.11
diff -u -3 -r1.11 PLATFORMS
--- unix/PLATFORMS	2001/01/31 11:57:33	1.11
+++ unix/PLATFORMS	2001/06/08 22:53:33
@@ -718,18 +718,38 @@
 undefined, add -Dn_long='unsigned long' to the CFLAGS in the Makefile.

-On Apple PowerPC running MacOS X Server:
+On Apple Macintosh PowerPC running MacOS X Server:
 
+This port and platform are not perfect yet.
+This is one example way to do "the build".
+  bash
+  ulimit -S -s 8192
+  export CONFIG_SHELL=`which bash`
+  $CONFIG_SHELL ./configure the-build
+  cd the-build
+  ./makemake --with-readline --withgettext | sed -e 's/ -O / /' -e 's/ -O2 / /' > Makefile
+  make config.lisp
+  ... make hand edits to config.lisp ...
+  make
+  make check
+  sudo make install
+
 The /bin/sh shell has at least two bugs which make it unusable for the
-configuration scripts. As a workaround, you have to set the environment
-variable CONFIG_SHELL to "/bin/bash", and start "$CONFIG_SHELL ./configure ..."
-instead of "./configure ...".
+configuration scripts.  As a work around you will need to install
+the bash shell and then set the environment variable CONFIG_SHELL
+to "/usr/local/bin/bash" (or where ever your bash
+actually was installed) and start "$CONFIG_SHELL ./configure ..." instead
+of "./configure ...".  
 
 The default stack size limit is 512 KB, which is too small for bootstrapping
 CLISP. Even 1 MB is too small. Try "ulimit -S -s 8192" before starting "make".
 
 Remove all optimization options ("-O", "-O2") from the CC and CFLAGS variables
 in the Makefile. Apple's cc crashes when compiling eval.d with optimization.
+
+FFI (Foreign Function Interfacing) is not working, yet.  Consequentially,
+late in the ./configure phase you will get a torrent of errors involving the
+file avcall-rs6000.c.  These errors maybe ignored.

 On AIX: