Commit | Line | Data |
5d94fbed |
1 | # Original based on info from |
a0d0e21e |
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 | # |
5d94fbed |
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 | # |
16d20bd9 |
13 | # Additional 2.0.5 and 2.1 defined from |
14 | # Ollivier Robert <Ollivier.Robert@keltia.frmug.fr.net> |
15 | # Date: Fri, 12 May 1995 14:30:38 +0200 (MET DST) |
16 | # |
5d94fbed |
17 | # The two flags "-fpic -DPIC" are used to indicate a |
18 | # will-be-shared object. Configure will guess the -fpic, (and the |
19 | # -DPIC is not used by perl proper) but the full define is included to |
20 | # be consistent with the FreeBSD general shared libs building process. |
21 | # |
16d20bd9 |
22 | # setreuid and friends are inherently broken in all versions of FreeBSD |
23 | # before 2.1-current (before approx date 4/15/95). It is fixed in 2.0.5 |
24 | # and what-will-be-2.1 |
5d94fbed |
25 | # |
26 | |
a0d0e21e |
27 | case "$osvers" in |
28 | 0.*|1.0*) |
29 | usedl="$undef" |
30 | ;; |
e50aee73 |
31 | 1.1*) |
a0d0e21e |
32 | malloctype='void *' |
33 | groupstype='int' |
34 | d_setregid='undef' |
35 | d_setreuid='undef' |
36 | d_setrgid='undef' |
37 | d_setruid='undef' |
5d94fbed |
38 | ;; |
e50aee73 |
39 | 2.0-release*) |
5d94fbed |
40 | d_setregid='undef' |
41 | d_setreuid='undef' |
42 | d_setrgid='undef' |
43 | d_setruid='undef' |
a0d0e21e |
44 | ;; |
16d20bd9 |
45 | # |
46 | # Trying to cover 2.0.5, 2.1-current and future 2.1 |
47 | # It does not covert all 2.1-current versions as the output of uname |
48 | # changed a few times. |
49 | # |
e50aee73 |
50 | 2.0.5*|2.0-built*|2.1*) |
51 | usevfork='true' |
52 | d_dosuid='define' |
53 | ;; |
54 | # |
55 | # Guesses at what will be needed after 2.1 |
56 | *) usevfork='true' |
57 | d_dosuid='define' |
58 | ;; |
59 | esac |
60 | |
61 | # Dynamic Loading flags have not changed much, so they are separated |
62 | # out here to avoid duplicating them everywhere. |
63 | case "$osvers" in |
64 | 0.*|1.0*) ;; |
65 | *) cccdlflags='-DPIC -fpic' |
c2960299 |
66 | lddlflags="-Bshareable $lddlflags" |
e50aee73 |
67 | ;; |
a0d0e21e |
68 | esac |
e50aee73 |
69 | |
a0d0e21e |
70 | # Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *) |
5d94fbed |
71 | # Configure should test for this. Volunteers? |
a0d0e21e |
72 | pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' |
4633a7c4 |
73 | |
74 | cat <<'EOM' |
75 | |
76 | Some users have reported that Configure halts when testing for |
77 | the O_NONBLOCK symbol with a syntax error. This is apparently a |
78 | sh error. Rerunning Configure with ksh apparently fixes the |
79 | problem. Try |
80 | ksh Configure [your options] |
81 | |
82 | EOM |
83 | |