This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
amigaos4: add amigaos the glue code
[perl5.git] / hints / ultrix_4.sh
CommitLineData
f4cb4c40 1# hints/ultrix_4.sh
1973dd96 2# Last updated by Andy Dougherty <doughera@lafayette.edu>
fed7345c
AD
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
3a9ed036
SB
9'')
10 # recent versions have a working compiler.
11 case "$osvers" in
12 *4.[45]*) optimize='-O2' ;;
13 *) optimize='none' ;;
14 esac
15 ;;
f4cb4c40 16esac
fed7345c 17
4633a7c4 18# Some users have reported Configure runs *much* faster if you
fb8eeed8 19# replace all occurrences of /bin/sh by /bin/sh5
4633a7c4
LW
20# Something like:
21# sed 's!/bin/sh!/bin/sh5!g' Configure > Configure.sh5
22# Then run "sh5 Configure.sh5 [your options]"
23
f4cb4c40 24case "$myuname" in
68dc0745 25*risc*) cat <<EOF >&4
d48672a2
LW
26Note that there is a bug in some versions of NFS on the DECStation that
27may cause utime() to work incorrectly. If so, regression test io/fs
28may fail if run under NFS. Ignore the failure.
29EOF
fed7345c
AD
30esac
31
32# Compiler flags that depend on osversion:
33case "$cc" in
34*gcc*) ;;
35*)
f4cb4c40 36 case "$osvers" in
073bda64
SB
37 *4.1*) ccflags="$ccflags -DLANGUAGE_C -Olimit 3800" ;;
38 *4.2*) ccflags="$ccflags -DLANGUAGE_C -Olimit 3800"
8e07c86e
AD
39 # Prototypes sometimes cause compilation errors in 4.2.
40 prototype=undef
fed7345c
AD
41 case "$myuname" in
42 *risc*) d_volatile=undef ;;
43 esac
44 ;;
073bda64
SB
45 *4.3*) ccflags="$ccflags -std1 -DLANGUAGE_C -Olimit 3800" ;;
46 *) ccflags="$ccflags -std -Olimit 3800" ;;
de3bb511 47 esac
f4cb4c40 48 ;;
d48672a2 49esac
fed7345c
AD
50
51# Other settings that depend on $osvers:
f4cb4c40 52case "$osvers" in
fed7345c
AD
53*4.1*) ;;
54*4.2*) libswanted=`echo $libswanted | sed 's/ malloc / /'` ;;
55*4.3*) ;;
56*) ranlib='ranlib' ;;
d48672a2 57esac
fed7345c 58
02b32252
CS
59# Settings that don't depend on $osvers:
60
61util_cflags='ccflags="$ccflags -DLOCALE_ENVIRON_REQUIRED"'
a0d0e21e 62groupstype='int'
7d4724f9 63# The configure test should be beefed up to try using the field when
3a9ed036
SB
64# it can't find any of the standardly-named fields.
65d_dirnamlen='define'
469bf437
JH
66
67# Ultrix can mmap only character devices, not regular files,
68# which is rather useless state of things for Perl.
69d_mmap='undef'
397cf4b7 70
01757a36
JH
71# There simply isn't dynaloading in Ultrix.
72usedl='undef'
73