X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fesix4.sh;h=b1d697cccbdfe55dcb75208b447693c4dbb58fab;hb=572149b7587624d5eb3b9ea2a06050a09056385f;hp=6d8f266fd7e1a602433db58560f46abd66223ede;hpb=a0d0e21ea6ea90a22318550944fe6cb09ae10cda;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/esix4.sh b/hints/esix4.sh index 6d8f266..b1d697c 100644 --- a/hints/esix4.sh +++ b/hints/esix4.sh @@ -3,25 +3,27 @@ # 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' - cccdlflags='-Kpic' ;; 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 -lddlflags="-G $ldflags" 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 - cat <esix$$ + if test -s esix$$; then + cat <&2 WARNING: You are likely to have problems compiling the Socket extension unless you fix the unterminated comment for AF_OSI in the file @@ -29,11 +31,6 @@ unless you fix the unterminated comment for AF_OSI in the file EOM fi - rm -f /tmp/esix$$ + rm -f esix$$ fi -# dlopen routines exist but they don't work with perl. -# The case statement allows experimenters to override hint with -# Configure -D usedl -case "$usedl" in -'') usedl="$undef" ;; -esac +