more HPUX patches

From: Clifford Beshers <beshers_at_cs.columbia.edu>
Date: Sun, 22 Oct 1995 01:00:48 -0400

Unfortunately, HPUX does things just slightly differently from
everybody else. The most recent problem is that shared libraries have
a .sl suffix.

Current STk files all use the ".so" suffix explicitly. For code to be
portable, the suffix should really be eliminated, e.g., (load "hash").

Also, the current configuration script does not update Lib/init.stk to
have the correct set of default suffixes for HPUX.

I include a script for HPUX users to patch their existing 3.0b1
installations. Put the script in STk-3.0b1, execute it and then do a
'make isntall'.

Erick, the script is divided into two parts. The change to init.stk
is system dependent and should be added to the configuration (sorry, I
haven't deciphered autoconf yet). The second part just removes the
.so from all the load commands in relevant files. I suggest applying
it to the source tree for the next distribution.


Cliff
-- 
Clifford Beshers                Office:  (212) 939-7087   Lab: (212) 939-7101
Columbia University             Fax:     (212) 666-0140   
500 West 12Oth St., Room 450    WWW:     http://www.cs.columbia.edu/~beshers
New York, NY 10027              Email:   beshers_at_cs.columbia.edu
****************************************************************
#!/bin/sh
cd Lib
echo 'Setting the shared library extension.'
for i in init.stk
do
	echo "Converting $i"
	sed -e 's/\"so\"/\"sl\"/g' $i >TMPFILE
	mv -f $i ${i}.orig
	mv -f TMPFILE $i
done
cd ..
echo 'Changes from here should be made permanently.'
echo 'That is, for code to be portable, the shared library'
echo 'suffix should be omitted so the default is chosen.'
echo 'Converting all files in Lib'
cd Lib
for i in *.stk
do
	grep 'load \".*.so\"' $i || continue
	echo "Converting $i"
	sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
	mv -f $i ${i}.orig
	mv  -f TMPFILE $i
done
cd ..
# These changes should be done permanently.
echo 'Converting all files in STklos'
cd STklos
for i in *.stk
do
	grep 'load \".*.so\"' $i || continue
	echo "Converting $i"
	sed -e 's/\(load \".*\).so\"/\1\"/g' $i >TMPFILE
	mv -f $i ${i}.orig
	mv -f TMPFILE $i
done
cd ..
Received on Sun Oct 22 1995 - 06:02:30 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST