summaryrefslogtreecommitdiffstats
path: root/contrib/perl5/hints/esix4.sh
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/perl5/hints/esix4.sh')
-rw-r--r--contrib/perl5/hints/esix4.sh23
1 files changed, 9 insertions, 14 deletions
diff --git a/contrib/perl5/hints/esix4.sh b/contrib/perl5/hints/esix4.sh
index 3d3145d..b1d697c 100644
--- a/contrib/perl5/hints/esix4.sh
+++ b/contrib/perl5/hints/esix4.sh
@@ -3,22 +3,26 @@
# Kevin O'Gorman ( kevin@kosman.UUCP, kevin%kosman.uucp@nrc.com )
#
# Use Configure -Dcc=gcc to use gcc.
+
+# Why can't we just use PATH? It contains /usr/ccs/bin.
case "$cc" in
'') cc='/bin/cc'
test -f $cc || cc='/usr/ccs/bin/cc'
;;
esac
-ldflags='-L/usr/ccs/lib -L/usr/ucblib'
+
+ldflags="$ldflags -L/usr/ccs/lib -L/usr/ucblib"
test -d /usr/local/man || mansrc='none'
-ccflags='-I/usr/include -I/usr/ucbinclude'
+# Do we really need to tell cc to look in /usr/include?
+ccflags="$ccflags -I/usr/include -I/usr/ucbinclude"
libswanted=`echo " $libswanted " | sed -e 's/ malloc / /' `
d_index='undef'
d_suidsafe=define
usevfork='false'
if test "$osvers" = "3.0"; then
d_gconvert='undef'
- grep 'define[ ]*AF_OSI[ ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >/tmp/esix$$
- if test -s /tmp/esix$$; then
+ grep 'define[ ]*AF_OSI[ ]' /usr/include/sys/socket.h | grep '/\*[^*]*$' >esix$$
+ if test -s esix$$; then
cat <<EOM >&2
WARNING: You are likely to have problems compiling the Socket extension
@@ -27,15 +31,6 @@ unless you fix the unterminated comment for AF_OSI in the file
EOM
fi
- rm -f /tmp/esix$$
+ rm -f esix$$
fi
-cat <<'EOM' >&4
-
-If you wish to use dynamic linking, you must use
- LD_LIBRARY_PATH=`pwd`; export LD_LIBRARY_PATH
-or
- setenv LD_LIBRARY_PATH `pwd`
-before running make.
-
-EOM
OpenPOWER on IntegriCloud