Allegedly "which" is not portable. I don't believe that is true for
any of the supported platforms (except for Win32 where you don't even
have sh). Also note that "config" even uses awk.
Anyway, I wonder if this would work?
Index: config
===================================================================
RCS file: /e/openssl/cvs/openssl/config,v
retrieving revision 1.4
diff -u -r1.4 config
--- config 1999/03/27 13:03:37 1.4
+++ config 1999/03/29 23:35:33
@@ -332,10 +332,25 @@
OUT="$CC"
fi
+for i in `echo $PATH | tr ':' ' '`
+do
+ if [ "$PERL" = "" -a -s $i/perl5 ] ; then
+ PERL=$i/perl5
+ fi
+done
+
+for i in `echo $PATH | tr ':' ' '`
+do
+ if [ "$PERL" = "" -a -s $i/perl ] ; then
+ PERL=$i/perl
+ fi
+done
+
# run Configure to check to see if we need to specify the
# compiler for the platform ... in which case we add it on
# the end ... otherwise we leave it off
-perl ./Configure 2>&1 | grep "$OUT-$CC" > /dev/null
+
+$PERL ./Configure 2>&1 | grep "$OUT-$CC" > /dev/null
if [ $? = "0" ]; then
OUT="$OUT-$CC"
fi
@@ -348,9 +363,9 @@
echo Configuring for $OUT
if [ "$TEST" = "true" ]; then
- echo ./Configure $OUT $options
+ echo $PERL ./Configure $OUT $options
else
- perl ./Configure $OUT $options
+ $PERL ./Configure $OUT $options
fi
)
Index: util/ranlib.sh
===================================================================
RCS file: /e/openssl/cvs/openssl/util/ranlib.sh,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 ranlib.sh
--- util/ranlib.sh 1998/12/21 10:52:46 1.1.1.1
+++ util/ranlib.sh 1999/03/29 23:36:58
@@ -3,13 +3,14 @@
cwd=`pwd`
cd /tmp
-if [ -s /bin/ranlib ] ; then
- RL=/bin/ranlib
-else if [ -s /usr/bin/ranlib ] ; then
- RL=/usr/bin/ranlib
-fi
-fi
+for i in `echo $PATH | tr ':' ' '`
+do
+ if [ "$RL" = "" -a -s $i/ranlib ] ; then
+ RL=$i/ranlib
+ fi
+done
+
if [ "x$RL" != "x" ]
then
case "$1" in
@@ -21,3 +22,4 @@
;;
esac
fi
+
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]