adjust searchdict.t for EBCDIC (still needs documenting)
[p5sagit/p5-mst-13.2.git] / hints / dec_osf.sh
index d50c4c6..a531ea8 100644 (file)
@@ -86,7 +86,7 @@ esac
 
 # be nauseatingly ANSI
 case "$cc" in
-gcc)   ccflags="$ccflags -ansi"
+*gcc*) ccflags="$ccflags -ansi"
        ;;
 *)     ccflags="$ccflags -std"
        ;;
@@ -102,7 +102,9 @@ case "$optimize" in
        *gcc*)  
                optimize='-O3'                          ;;
        *)      case "$_DEC_cc_style" in
-               new)    optimize='-O4'                  ;;
+               new)    optimize='-O4'
+                       ccflags="$ccflags -fprm d -ieee"
+                       ;;
                old)    optimize='-O2 -Olimit 3200'     ;;
                esac
                ccflags="$ccflags -D_INTRINSICS"
@@ -111,12 +113,26 @@ case "$optimize" in
        ;;
 esac
 
+# Make glibpth agree with the compiler suite.  Note that /shlib
+# is not here.  That's on purpose.  Even though that's where libc
+# really lives from V4.0 on, the linker (and /sbin/loader) won't
+# look there by default.  The sharable /sbin utilities were all
+# built with "-Wl,-rpath,/shlib" to get around that.  This makes
+# no attempt to figure out the additional location(s) searched by
+# gcc, since not all versions of gcc are easily coerced into
+# revealing that information.
+glibpth="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc"
+glibpth="$glibpth /usr/lib /usr/local/lib /var/shlib"
+
 # dlopen() is in libc
 libswanted="`echo $libswanted | sed -e 's/ dl / /'`"
 
 # libPW contains nothing useful for perl
 libswanted="`echo $libswanted | sed -e 's/ PW / /'`"
 
+# libnet contains nothing useful for perl here, and doesn't work
+libswanted="`echo $libswanted | sed -e 's/ net / /'`"
+
 # libbsd contains nothing used by perl that is not already in libc
 libswanted="`echo $libswanted | sed -e 's/ bsd / /'`"
 
@@ -161,6 +177,31 @@ case "$optimize" in
        ;;
 esac
 
+if [ "X$usethreads" = "X$define" ]; then
+    # Threads interfaces changed with V4.0.
+    case "$_DEC_uname_r" in
+    *[123].*)  libswanted="$libswanted pthreads mach exc c_r"
+               ccflags="-threads $ccflags"
+               ;;
+    *)         libswanted="$libswanted pthread exc"
+               ccflags="-pthread $ccflags"
+               ;;
+    esac
+    usemymalloc='n'
+fi
+
+#
+# Make embedding in things like INN and Apache more memory friendly.
+# Keep it overridable on the Configure command line, though, so that
+# "-Uuseshrplib" prevents this default.
+#
+
+# This or the glibpth change above breaks the build. Commented out
+# for this snapshot.
+#case "$_DEC_cc_style.$useshrplib" in
+#      new.)   useshrplib="$define"    ;;
+#esac
+
 #
 # Unset temporary variables no more needed.
 #
@@ -171,6 +212,29 @@ unset _DEC_uname_r
 #
 # History:
 #
+# perl5.004_57:
+#
+#      19-Dec-1997 Spider Boardman <spider@Orb.Nashua.NH.US>
+#
+#      * Newer Digial UNIX compilers enforce signaling for NaN without
+#        -ieee.  Added -fprm d at the same time since it's friendlier for
+#        embedding.
+#
+#      * Fixed the library search path to match cc, ld, and /sbin/loader.
+#
+#      * Default to building -Duseshrplib on newer systems.  -Uuseshrplib
+#        still overrides.
+#
+#      * Fix -pthread additions for useshrplib.  ld has no -pthread option.
+#
+#
+# perl5.004_04:
+#
+#       19-Sep-1997 Spider Boardman <spider@Orb.Nashua.NH.US>
+#
+#      * libnet on Digital UNIX is for JAVA, not for sockets.
+#
+#
 # perl5.003_28:
 #
 #       22-Feb-1997 Jarkko Hietaniemi <jhi@iki.fi>