Ultrix setlocale() workaround
[p5sagit/p5-mst-13.2.git] / hints / ultrix_4.sh
1 # hints/ultrix_4.sh
2 # Last updated by Andy Dougherty  <doughera@lafcol.lafayette.edu>
3 # Fri Feb 10 10:04:51 EST 1995
4 #
5 # Use   Configure -Dcc=gcc   to use gcc.
6 #
7 # This used to use -g, but that pulls in -DDEBUGGING by default.
8 case "$optimize" in
9 '') optimize='none' ;;
10 esac
11
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
18 case "$myuname" in
19 *risc*) cat <<EOF
20 Note that there is a bug in some versions of NFS on the DECStation that
21 may cause utime() to work incorrectly.  If so, regression test io/fs
22 may fail if run under NFS.  Ignore the failure.
23 EOF
24 esac
25
26 # Compiler flags that depend on osversion:
27 case "$cc" in
28 *gcc*) ;;
29 *)
30     case "$osvers" in
31     *4.1*)      ccflags="$ccflags -DLANGUAGE_C -Olimit 2900" ;;
32     *4.2*)      ccflags="$ccflags -DLANGUAGE_C -Olimit 2900"
33                 # Prototypes sometimes cause compilation errors in 4.2.
34                 prototype=undef   
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" ;;
41     esac
42     ;;
43 esac
44
45 # Other settings that depend on $osvers:
46 case "$osvers" in
47 *4.1*)  ;;
48 *4.2*)  libswanted=`echo $libswanted | sed 's/ malloc / /'` ;;
49 *4.3*)  ;;
50 *)      ranlib='ranlib' ;;
51 esac
52
53 # Settings that don't depend on $osvers:
54
55 util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"'
56 groupstype='int'