X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=hints%2Fultrix_4.sh;h=cc494cbd111338316f168ba57c672b131e33233c;hb=7ca4b19ac3a324a55438434cebf9e27504201570;hp=826cb34c197e03044e5258bd1f54abadacfe84c3;hpb=02b32252cb5781c70cbc96b7697e4796f3e60cd9;p=p5sagit%2Fp5-mst-13.2.git diff --git a/hints/ultrix_4.sh b/hints/ultrix_4.sh index 826cb34..cc494cb 100644 --- a/hints/ultrix_4.sh +++ b/hints/ultrix_4.sh @@ -1,22 +1,28 @@ # hints/ultrix_4.sh -# Last updated by Andy Dougherty +# Last updated by Andy Dougherty # Fri Feb 10 10:04:51 EST 1995 # # Use Configure -Dcc=gcc to use gcc. # # This used to use -g, but that pulls in -DDEBUGGING by default. case "$optimize" in -'') optimize='none' ;; +'') + # recent versions have a working compiler. + case "$osvers" in + *4.[45]*) optimize='-O2' ;; + *) optimize='none' ;; + esac + ;; esac # Some users have reported Configure runs *much* faster if you -# replace all occurences of /bin/sh by /bin/sh5 +# replace all occurrences of /bin/sh by /bin/sh5 # Something like: # sed 's!/bin/sh!/bin/sh5!g' Configure > Configure.sh5 # Then run "sh5 Configure.sh5 [your options]" case "$myuname" in -*risc*) cat <&4 Note that there is a bug in some versions of NFS on the DECStation that may cause utime() to work incorrectly. If so, regression test io/fs may fail if run under NFS. Ignore the failure. @@ -28,16 +34,16 @@ case "$cc" in *gcc*) ;; *) case "$osvers" in - *4.1*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" ;; - *4.2*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" + *4.1*) ccflags="$ccflags -DLANGUAGE_C -Olimit 3800" ;; + *4.2*) ccflags="$ccflags -DLANGUAGE_C -Olimit 3800" # Prototypes sometimes cause compilation errors in 4.2. prototype=undef case "$myuname" in *risc*) d_volatile=undef ;; esac ;; - *4.3*) ccflags="$ccflags -std1 -DLANGUAGE_C -Olimit 2900" ;; - *) ccflags="$ccflags -std -Olimit 2900" ;; + *4.3*) ccflags="$ccflags -std1 -DLANGUAGE_C -Olimit 3800" ;; + *) ccflags="$ccflags -std -Olimit 3800" ;; esac ;; esac @@ -54,3 +60,11 @@ esac util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"' groupstype='int' +# This will cause a WHOA THERE warning, but it's accurate. The +# configure test should be beefed up to try using the field when +# it can't find any of the standardly-named fields. +d_dirnamlen='define' + +# Ultrix can mmap only character devices, not regular files, +# which is rather useless state of things for Perl. +d_mmap='undef'