perlbug -d,-v: fix uninit value warnings
[p5sagit/p5-mst-13.2.git] / hints / sco.sh
index eb59845..18ccc5e 100644 (file)
@@ -9,6 +9,8 @@
 # Mostly rewritten on
 # Tue Jan 19 23:00:00 CET 1999
 # by Francois Desarmenien <desar@club-internet.fr>
+# Modified by Boyd Gerber <gerberb@zenez.com>
+# Tue Sep 21 1999
 ###############################################################
 #
 # To use cc,  use   sh Configure
@@ -82,6 +84,7 @@ case `/bin/uname -X | egrep '3\.2v'` in
    echo "\a" >&4
    echo "\a" >&4
    echo "  For UnixWare, use svr4.sh hints instead" >&4
+   echo "  For UnixWare 7.*, use svr5.sh hints instead" >&4
    echo "\a" >&4
    echo "***********************************************************" >&4
    exit
@@ -102,19 +105,19 @@ if test "$scorls" = "3"
 then 
     dlext=''
     case "$cc" in
-        gcc)    optimize='-O2' ;;
+        *gcc*)  optimize='-O2' ;;
         *)      ccflags="$ccflags -W0 -quiet"
                 optimize='-O' ;;
     esac
 else
     ###############################################################
     # Need this in release 5 because of changed fpu exeption rules
-    ccflags="$ccflags -D PERL_SCO5"
+    ccflags="$ccflags -D HAS_FPSETMASK"
 
     ###############################################################
     # In Release 5, always compile ELF objects
     case "$cc" in
-        gcc)
+        *gcc*)
             ccflags="$ccflags -melf"
             optimize='-O2'
         ;;
@@ -139,13 +142,13 @@ else
     if test "$usedl" != "n"; then
         ld='ld'
         case "$cc" in
-            gcc)
+            *gcc*)
                 ccdlflags='-Xlinker -Bexport -L/usr/local/lib'
                 cccdlflags='-fpic'
                 lddlflags='-G -L/usr/local/lib'
             ;;
             *)
-                ccdlflags='-Bexport -L/usr/local/lib'
+                ccdlflags='-Wl,-Bexport -L/usr/local/lib'
                 cccdlflags='-Kpic'
                 lddlflags='-G -L/usr/local/lib'
             ;;
@@ -178,6 +181,13 @@ shift
 libswanted="$*"
 
 ###############################################################
+# Remove libbind because it conflicts with libsocket.
+libswanted=`echo " $libswanted " | sed -e 's/ bind / /'`
+set X $libswanted
+shift
+libswanted="$*"
+
+###############################################################
 # Try to use libintl.a since it has strcoll and strxfrm
 libswanted="intl $libswanted"
 
@@ -191,6 +201,15 @@ if test -f /usr/lib/libdbm.nfs.a ; then
 fi
 
 ###############################################################
+# At least for ORS5.0.2, prefer sprintf() over gcvt(), since gcvt()
+# used to cause a SIGFPE and a core dump when passed a NaN.
+# This may not be an issue in perl-5.8.x and later since we
+# try to trap SIGFPE.  However, preferring sprintf() should be
+# safe anyway, so let's go ahead and set it.  See the bugs database
+# item [perl #3100].   --A.D. 12/2004.
+       gconvert_preference='sprintf'
+
+###############################################################
 # We disable ODBM_File if OSR5 because it's mostly broken
 # but keep it for ODT3 as it seems to work.
 if test "$scorls" = "5"; then
@@ -225,7 +244,6 @@ nm_opt='-p'
 ###############################################################
 # Perl 5.003_05 and later try to include both <time.h> and <sys/select.h>
 # in pp_sys.c, but that fails due to a redefinition of struct timeval.
-# This will generate a WHOA THERE.  Accept the default.
 i_sysselct=$undef