This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
5.004 removed deprecated %OVERLOAD support silently
[perl5.git] / hints / sunos_4_1.sh
CommitLineData
0093f865 1# hints/sunos_4_1.sh
2# Last modified: Thu Feb 8 11:46:05 EST 1996
3# Andy Dougherty <doughera@lafcol.lafayette.edu>
4
a0d0e21e 5case "$cc" in
54000519 6*gcc*) usevfork=false
7 # GNU as and GNU ld might not work. See the INSTALL file.
8 ;;
a0d0e21e
LW
9*) usevfork=true ;;
10esac
0093f865 11
12# Configure will issue a WHOA warning. The problem is that
13# Configure finds getzname, not tzname. If you're in the System V
14# environment, you can set d_tzname='define' since tzname[] is
15# available in the System V environment.
a0d0e21e 16d_tzname='undef'
0093f865 17
54000519 18# Configure will issue a WHOA warning. The problem is that unistd.h
19# contains incorrect prototypes for some functions in the usual
20# BSD-ish environment. In particular, it has
21# extern int getgroups(/* int gidsetsize, gid_t grouplist[] */);
22# but groupslist[] ought to be of type int, not gid_t.
23# This is only really a problem for perl if the
24# user is using gcc, and not running in the SysV environment.
25# The gcc fix-includes script exposes those incorrect prototypes.
26# There may be other examples as well. Volunteers are welcome to
27# track them all down :-). In the meantime, we'll just skip unistd.h
28# for SunOS.
29i_unistd='undef'
30
31cat << 'EOM' >&4
32
33You will probably see *** WHOA THERE!!! *** messages from Configure for
34d_tzname and i_unistd. Keep the recommended values. See
35hints/sunos_4_1.sh for more information.
36EOM
37
0093f865 38# SunOS 4.1.3 has two extra fields in struct tm. This works around
39# the problem. Other BSD platforms may have similar problems.
40POSIX_cflags='ccflags="$ccflags -DSTRUCT_TM_HASZONE"'
41
a0d0e21e
LW
42# check if user is in a bsd or system 5 type environment
43if cat -b /dev/null 2>/dev/null
44then # bsd
45 groupstype='int'
46else # sys5
47 groupstype='gid_t'
48fi
77c65e92 49
50# If you get the message "unresolved symbol '__lib_version' " while
51# linking, your system probably has the optional 'acc' compiler (and
52# libraries) installed, but you are using the bundled 'cc' compiler with
53# the unbundled libraries. The solution is either to use 'acc' and the
54# unbundled libraries (specifically /lib/libm.a), or 'cc' and the bundled
55# library.
56#
57# Thanks to William Setzer <William_Setzer@ncsu.edu> for this info.