2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
CORE_INCS="$UNIX_INCS"
|
|
|
|
CORE_DEPS="$UNIX_DEPS $FREEBSD_DEPS"
|
2004-01-23 03:26:18 -06:00
|
|
|
CORE_SRCS="$UNIX_SRCS $FREEBSD_SRCS"
|
2003-11-25 14:44:56 -06:00
|
|
|
|
|
|
|
|
|
|
|
version=`grep "#define __FreeBSD_version" /usr/include/osreldate.h \
|
|
|
|
| sed -e 's/^.* \(.*\)$/\1/'`
|
|
|
|
|
|
|
|
|
|
|
|
# sendfile
|
|
|
|
|
|
|
|
if [ $version -gt 300007 ]; then
|
2004-02-02 15:19:52 -06:00
|
|
|
have=HAVE_SENDFILE . auto/have
|
2003-11-25 14:44:56 -06:00
|
|
|
CORE_SRCS="$CORE_SRCS $FREEBSD_SENDFILE_SRCS"
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# kqueue
|
|
|
|
|
|
|
|
if [ \( $version -lt 500000 -a $version -ge 410000 \) \
|
|
|
|
-o $version -ge 500011 ]
|
|
|
|
then
|
2004-02-02 15:19:52 -06:00
|
|
|
have=HAVE_KQUEUE . auto/have
|
|
|
|
have=HAVE_CLEAR_EVENT . auto/have
|
2003-11-25 14:44:56 -06:00
|
|
|
CORE_SRCS="$CORE_SRCS $KQUEUE_SRCS"
|
|
|
|
EVENT_MODULES="$EVENT_MODULES $KQUEUE_MODULE"
|
2004-02-02 15:19:52 -06:00
|
|
|
EVENT_FOUND=YES
|
2003-11-25 14:44:56 -06:00
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
# kqueue's NOTE_LAWAT
|
|
|
|
|
|
|
|
if [ \( $version -lt 500000 -a $version -ge 430000 \) \
|
|
|
|
-o $version -ge 500018 ]
|
|
|
|
then
|
2004-02-02 15:19:52 -06:00
|
|
|
have=HAVE_LOWAT_EVENT . auto/have
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
if [ $EVENT_AIO = YES ]; then
|
|
|
|
CORE_SRCS="$CORE_SRCS $AIO_SRCS"
|
|
|
|
EVENT_MODULES="$EVENT_MODULES $AIO_MODULE"
|
2003-11-25 14:44:56 -06:00
|
|
|
fi
|