From 0d944e0d0f2d02f3fdf37b05e12251e42c11f6d8 Mon Sep 17 00:00:00 2001 From: stbuehler Date: Thu, 5 May 2011 20:06:11 +0000 Subject: Enable linux-aio-sendfile for testing in autotools too git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@2792 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 1 + configure.ac | 15 +++++++++++++++ 2 files changed, 16 insertions(+) diff --git a/NEWS b/NEWS index c5b0a7f2..cc132af0 100644 --- a/NEWS +++ b/NEWS @@ -169,6 +169,7 @@ NEWS * more strict check for server.stat-cache-engine * Read hostname from absolute https:// uris in the request line (patch by Adrian Schröter ) * [ssl/md5] prefix our own md5 implementation with li_ so it doesn't conflict with the openssl one (fixes #2269) + * Enable linux-aio-sendfile for testing in autotools too - 1.5.0-r19.. - * -F option added for spawn-fcgi diff --git a/configure.ac b/configure.ac index dd5e88e2..751c32cf 100644 --- a/configure.ac +++ b/configure.ac @@ -551,6 +551,21 @@ if test x$ipv6 = xtrue; then fi fi +dnl Check for libaio +AC_MSG_CHECKING(for libaio) +AC_ARG_WITH(libaio, AC_HELP_STRING([--with-libaio],[enable libaio network write handlers]), +[WITH_LIBAIO=$withval],[WITH_LIBAIO=no]) +AC_MSG_RESULT([$WITH_LIBAIO]) +if test "$WITH_LIBAIO" != "no"; then + AC_CHECK_LIB(aio, io_getevents, [ + AC_CHECK_HEADERS([libaio.h],[ + AIO_LIB=-laio + AC_DEFINE([HAVE_LIBAIO], [1], [libaio]) + AC_DEFINE([HAVE_LIBAIO_H], [1], [libaio.h]) + ]) + ]) + AC_SUBST(AIO_LIB) +fi AM_CONDITIONAL(CROSS_COMPILING, test "x$cross_compiling" = xyes) -- cgit v1.2.1