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# 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# 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# 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 25# 26 27case "$osvers" in 280.*|1.0*) 29 usedl="$undef" 30 ;; 311.1*) 32 malloctype='void *' 33 groupstype='int' 34 d_setregid='undef' 35 d_setreuid='undef' 36 d_setrgid='undef' 37 d_setruid='undef' 38 ;; 392.0-release*) 40 d_setregid='undef' 41 d_setreuid='undef' 42 d_setrgid='undef' 43 d_setruid='undef' 44 ;; 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# 502.0.5*|2.0-built*|2.1*) 51 usevfork='true' 52 ;; 53# 54# Guesses at what will be needed after 2.1 55*) usevfork='true' 56 ;; 57esac 58 59# Dynamic Loading flags have not changed much, so they are separated 60# out here to avoid duplicating them everywhere. 61case "$osvers" in 620.*|1.0*) ;; 63*) cccdlflags='-DPIC -fpic' 64 lddlflags="-Bshareable $lddlflags" 65 ;; 66esac 67 68# Avoid telldir prototype conflict in pp_sys.c (FreeBSD uses const DIR *) 69# Configure should test for this. Volunteers? 70pp_sys_cflags='ccflags="$ccflags -DHAS_TELLDIR_PROTOTYPE"' 71 72cat <<'EOM' 73 74Some users have reported that Configure halts when testing for 75the O_NONBLOCK symbol with a syntax error. This is apparently a 76sh error. Rerunning Configure with ksh apparently fixes the 77problem. Try 78 ksh Configure [your options] 79 80EOM 81 82