perl5.001 patch.1d
[p5sagit/p5-mst-13.2.git] / hints / freebsd.sh
1 # Original based on info from
2 # Carl M. Fongheiser <cmf@ins.infonet.net>
3 # Date: Thu, 28 Jul 1994 19:17:05 -0500 (CDT)
4 #
5 # Additional 1.1.5 defines from 
6 # Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
7 # Date: Wed, 28 Sep 1994 00:37:46 +0100 (MET)
8 #
9 # Additional 2.* defines from
10 # Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net>
11 # Date: Sat, 8 Apr 1995 20:53:41 +0200 (MET DST)
12 #
13 # FreeBSD has the dynamic loading dl*() functions in /usr/lib/crt0.o,
14 # so Configure doesn't find them (unless you abandon the nm scan).
15 #
16 # The two flags "-fpic -DPIC" are used to indicate a
17 # will-be-shared object.  Configure will guess the -fpic, (and the
18 # -DPIC is not used by perl proper) but the full define is included to 
19 # be consistent with the FreeBSD general shared libs building process.
20 #
21 # setreuid and friends are inherently broken in all versions of FreeBSD.
22 #
23
24 case "$osvers" in
25 0.*|1.0*)
26         usedl="$undef"
27         ;;
28 1.1*)   d_dlopen="$define"
29         cccdlflags='-DPIC -fpic'
30         lddlflags='-Bshareable $lddlflags'
31         malloctype='void *'
32         groupstype='int'
33         d_setregid='undef'
34         d_setreuid='undef'
35         d_setrgid='undef'
36         d_setruid='undef'
37         ;;
38 *)
39         d_dlopen="$define"
40         cccdlflags='-DPIC -fpic'
41         lddlflags='-Bshareable $lddlflags'
42         d_setregid='undef'
43         d_setreuid='undef'
44         d_setrgid='undef'
45         d_setruid='undef'
46         ;;
47 esac
48 # Avoid telldir prototype conflict in pp_sys.c  (FreeBSD uses const DIR *)
49 # Configure should test for this.  Volunteers?
50 pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"'