pl2bat.bat -> pl2bat.pl change in win32/pod.mak
[p5sagit/p5-mst-13.2.git] / hints / svr4.sh
index f4664d9..922736a 100644 (file)
@@ -26,6 +26,47 @@ if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library:
 fi
 d_suidsafe='define'    # "./Configure -d" can't figure this out easilly
 usevfork='false'
+
+# Configure may fail to find lstat() since it's a static/inline
+# function in <sys/stat.h> on Unisys U6000 SVR4, and possibly
+# other SVR4 derivatives.
+d_lstat=define
+
+# UnixWare has a broken csh.  The undocumented -X argument to uname is probably
+# a reasonable way of detecting UnixWare.  Also in 2.1.1 the fields in
+# FILE* got renamed!
+uw_ver=`uname -v`
+uw_isuw=`uname -X 2>&1 | grep Release`
+if [ "$uw_isuw" = "Release = 4.2MP" ]; then
+   case $uw_ver in
+   2.1)
+      d_csh='undef'
+      ;;
+   2.1.*)
+      d_csh='undef'
+      stdio_cnt='((fp)->__cnt)'
+      d_stdio_cnt_lval='define'
+      stdio_ptr='((fp)->__ptr)'
+      d_stdio_ptr_lval='define'
+      ;;
+   esac
+fi
+
+# DDE SMES Supermax Enterprise Server
+case "`uname -sm`" in
+"UNIX_SV SMES")
+       if test "$cc" = '/bin/cc' -o "$gccversion" = ""
+       then
+               # for cc we need -K PIC (not -K pic)
+               cccdlflags="$cccdlflags -K PIC"
+       fi
+       # the *grent functions are in libgen.
+       libswanted="$libswanted gen"
+       # csh is broken (also) in SMES
+       d_csh='undef'
+       ;;
+esac
+
 cat <<'EOM' >&4
 
 If you wish to use dynamic linking, you must use