Automatically call srand() before rand() if user didn't
[p5sagit/p5-mst-13.2.git] / hints / ultrix_4.sh
CommitLineData
f4cb4c40 1# hints/ultrix_4.sh
2# Last updated by Andy Dougherty <doughera@lafcol.lafayette.edu>
fed7345c 3# Fri Feb 10 10:04:51 EST 1995
4#
5# Use Configure -Dcc=gcc to use gcc.
f4cb4c40 6#
6b61c4b9 7# This used to use -g, but that pulls in -DDEBUGGING by default.
f4cb4c40 8case "$optimize" in
6b61c4b9 9'') optimize='none' ;;
f4cb4c40 10esac
fed7345c 11
4633a7c4 12# Some users have reported Configure runs *much* faster if you
13# replace all occurences of /bin/sh by /bin/sh5
14# Something like:
15# sed 's!/bin/sh!/bin/sh5!g' Configure > Configure.sh5
16# Then run "sh5 Configure.sh5 [your options]"
17
f4cb4c40 18case "$myuname" in
19*risc*) cat <<EOF
d48672a2 20Note that there is a bug in some versions of NFS on the DECStation that
21may cause utime() to work incorrectly. If so, regression test io/fs
22may fail if run under NFS. Ignore the failure.
23EOF
fed7345c 24esac
25
26# Compiler flags that depend on osversion:
27case "$cc" in
28*gcc*) ;;
29*)
f4cb4c40 30 case "$osvers" in
fed7345c 31 *4.1*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" ;;
32 *4.2*) ccflags="$ccflags -DLANGUAGE_C -Olimit 2900"
8e07c86e 33 # Prototypes sometimes cause compilation errors in 4.2.
34 prototype=undef
fed7345c 35 case "$myuname" in
36 *risc*) d_volatile=undef ;;
37 esac
38 ;;
39 *4.3*) ccflags="$ccflags -std1 -DLANGUAGE_C -Olimit 2900" ;;
40 *) ccflags="$ccflags -std -Olimit 2900" ;;
de3bb511 41 esac
f4cb4c40 42 ;;
d48672a2 43esac
fed7345c 44
45# Other settings that depend on $osvers:
f4cb4c40 46case "$osvers" in
fed7345c 47*4.1*) ;;
48*4.2*) libswanted=`echo $libswanted | sed 's/ malloc / /'` ;;
49*4.3*) ;;
50*) ranlib='ranlib' ;;
d48672a2 51esac
fed7345c 52
02b32252 53# Settings that don't depend on $osvers:
54
55util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"'
a0d0e21e 56groupstype='int'