This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
The SysV shm*() are in libc but unimplemented.
[perl5.git] / hints / unicosmk.sh
index f0b63cb..1e6f0f0 100644 (file)
@@ -8,3 +8,20 @@ case "$usemymalloc" in
     ccflags="$ccflags -DNO_RCHECK"
     ;;
 esac
     ccflags="$ccflags -DNO_RCHECK"
     ;;
 esac
+# If somebody ignores the Cray PATH.
+case ":$PATH:" in
+*:/opt/ctl/bin:*) ;;
+'') case "$cc" in
+    '') test -x /opt/ctl/bin/cc && cc=/opt/ctl/bin/cc ;;
+    esac
+    ;;
+esac
+# As of UNICOS/mk 2.0.5.24 the shm* are in libc but unimplemented
+# (an attempt to use them causes a runtime error)
+# XXX Configure probe for really functional shm*() is needed XXX
+if test "$d_shm" = ""; then
+    test "$d_shmctl" = "" && d_shmctl="$undef"
+    test "$d_shmget" = "" && d_shmget="$undef"
+    d_shm="$undef"
+fi
+