Lines 105-132
if test -d c:/. || ( uname -a | grep -i 'os\(/\|\)2' ) 2>&1 >/dev/null ; then
Link Here
|
105 |
fi |
105 |
fi |
106 |
fi |
106 |
fi |
107 |
|
107 |
|
108 |
: Proper PATH setting |
|
|
109 |
paths='/bin /usr/bin /usr/local/bin /usr/ucb /usr/local /usr/lbin' |
110 |
paths="$paths /opt/bin /opt/local/bin /opt/local /opt/lbin" |
111 |
paths="$paths /usr/5bin /etc /usr/gnu/bin /usr/new /usr/new/bin /usr/nbin" |
112 |
paths="$paths /opt/gnu/bin /opt/new /opt/new/bin /opt/nbin" |
113 |
paths="$paths /sys5.3/bin /sys5.3/usr/bin /bsd4.3/bin /bsd4.3/usr/ucb" |
114 |
paths="$paths /bsd4.3/usr/bin /usr/bsd /bsd43/bin /opt/ansic/bin /usr/ccs/bin" |
115 |
paths="$paths /etc /usr/lib /usr/ucblib /lib /usr/ccs/lib" |
116 |
paths="$paths /sbin /usr/sbin /usr/libexec" |
117 |
paths="$paths /system/gnu_library/bin" |
118 |
|
119 |
for p in $paths |
120 |
do |
121 |
case "$p_$PATH$p_" in |
122 |
*$p_$p$p_*) ;; |
123 |
*) test -d $p && PATH=$PATH$p_$p ;; |
124 |
esac |
125 |
done |
126 |
|
127 |
PATH=.$p_$PATH |
128 |
export PATH |
129 |
|
130 |
: shall we be using ksh? |
108 |
: shall we be using ksh? |
131 |
inksh='' |
109 |
inksh='' |
132 |
needksh='' |
110 |
needksh='' |
Lines 8500-8559
EOM
Link Here
|
8500 |
;; |
8478 |
;; |
8501 |
esac |
8479 |
esac |
8502 |
|
8480 |
|
8503 |
# How will the perl executable find the installed shared $libperl? |
|
|
8504 |
# Add $xxx to ccdlflags. |
8505 |
# If we can't figure out a command-line option, use $shrpenv to |
8506 |
# set env LD_RUN_PATH. The main perl makefile uses this. |
8507 |
shrpdir=$archlibexp/CORE |
8508 |
xxx='' |
8509 |
tmp_shrpenv='' |
8510 |
if "$useshrplib"; then |
8511 |
case "$osname" in |
8512 |
aix) |
8513 |
# We'll set it in Makefile.SH... |
8514 |
;; |
8515 |
solaris) |
8516 |
xxx="-R $shrpdir" |
8517 |
;; |
8518 |
freebsd|mirbsd|netbsd|openbsd|interix|dragonfly|bitrig) |
8519 |
xxx="-Wl,-R$shrpdir" |
8520 |
;; |
8521 |
bsdos|linux|irix*|dec_osf|gnu*|haiku) |
8522 |
xxx="-Wl,-rpath,$shrpdir" |
8523 |
;; |
8524 |
next) |
8525 |
# next doesn't like the default... |
8526 |
;; |
8527 |
hpux*) |
8528 |
# hpux doesn't like the default, either. |
8529 |
tmp_shrpenv="env LDOPTS=\"+s +b${shrpdir}\"" |
8530 |
;; |
8531 |
cygwin) |
8532 |
# cygwin needs only ldlibpth |
8533 |
;; |
8534 |
*) |
8535 |
tmp_shrpenv="env LD_RUN_PATH=$shrpdir" |
8536 |
;; |
8537 |
esac |
8538 |
case "$xxx" in |
8539 |
'') ;; |
8540 |
*) |
8541 |
# Only add $xxx if it isn't already in ccdlflags. |
8542 |
case " $ccdlflags " in |
8543 |
*" $xxx "*) ;; |
8544 |
*) ccdlflags="$ccdlflags $xxx" |
8545 |
cat <<EOM >&4 |
8546 |
|
8547 |
Adding $xxx to the flags |
8548 |
passed to $ld so that the perl executable will find the |
8549 |
installed shared $libperl. |
8550 |
|
8551 |
EOM |
8552 |
;; |
8553 |
esac |
8554 |
;; |
8555 |
esac |
8556 |
fi |
8557 |
# Fix ccdlflags in AIX for building external extensions. |
8481 |
# Fix ccdlflags in AIX for building external extensions. |
8558 |
# (For building Perl itself bare -bE:perl.exp is needed, |
8482 |
# (For building Perl itself bare -bE:perl.exp is needed, |
8559 |
# Makefile.SH takes care of this.) |
8483 |
# Makefile.SH takes care of this.) |
8560 |
- |
|
|