X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fsvr4.sh;h=cbc2d9549f392e00dc2f54de344b76d4d3299a55;hb=1694bc1323f3c2ea90d7478c304c5f10b28e69f3;hp=8109b3975287dfefcc890a49181edfbb964e7f25;hpb=5cf1d1f16c1401220ecaa7b3127343c7c6c095d2;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/svr4.sh b/hints/svr4.sh index 8109b39..cbc2d95 100644 --- a/hints/svr4.sh +++ b/hints/svr4.sh @@ -23,7 +23,7 @@ libswanted=`echo " $libswanted " | sed -e 's/ malloc / /'` # -e 's/ ucb / /'` # it is needed for ODBM_File and NDBM_File extensions. if [ -r /usr/ucblib/libucb.a ]; then # If using BSD-compat. library: - d_Gconvert='gcvt((x),(n),(b))' # Try gcvt() before gconvert(). + gconvert_preference='gcvt sprintf' # Try gcvt() before gconvert(). # Use the "native" counterparts, not the BSD emulation stuff: d_bcmp='undef' d_bcopy='undef' d_bzero='undef' d_safebcpy='undef' d_index='undef' d_killpg='undef' d_getprior='undef' d_setprior='undef' @@ -135,6 +135,38 @@ case "`uname -sm`" in ;; esac +# NCR MP-RAS. Thanks to Doug Hendricks for this info. +# The output of uname -a looks like this +# foo foo 4.0 3.0 3441 Pentium III(TM)-ISA/PCI +# Similar errors reported for +# foo foo 4.0 3.0 4400 pentium ii(tm)-isapci ' +# and also for +# foo foo 4.2 1.1.2 shg2 386at +# W. Geoffrey Rommel, 2003-09-09 reported: +# I have talked to a developer at NCR, and there seems to be no +# reliable way to make sure that this is really MP-RAS. It's not +# in uname, it's not in the kernel, it's not in sysinfo ... +# However, the files /etc/issue and /etc/.relid are present in MP-RAS. +# +# Other System V-derived systems may have /etc/issue, but /etc/.relid +# may well be unique. Configure-time tests for the POSIX +# _mwoflocheckl issue (see ext/POSIX/hints/svr4.pl) would be appreciated. +# +if test -f /etc/issue -a -f /etc/.relid; then + # libcrypt contains nothing libc wouldn't have. + libswanted=`echo " $libswanted " | sed -e 's/ crypt / /'` + # With the NCR High Performance C Compiler R3.0c, miniperl fails + # t/op/regexp.t test 461 unless we compile with optimize=-O0. + # Volunteers are needed to determine just which files need special + # treatment. For now, use optimize=-O0 for everything. + # + d_usleep='undef' + d_ualarm='undef' + case "$optimize" in + '') optimize='-O0' ;; + esac +fi + # Configure may fail to find lstat() since it's a static/inline function # in on Unisys U6000 SVR4, UnixWare 2.x, and possibly other # SVR4 derivatives. (Though UnixWare has it in /usr/ccs/lib/libc.so.)