--- libaitio/configure.in 2014/01/21 15:59:44 1.51.2.2 +++ libaitio/configure.in 2014/02/08 22:06:16 1.52 @@ -1,6 +1,6 @@ # # $Author: misho $ -# $Id: configure.in,v 1.51.2.2 2014/01/21 15:59:44 misho Exp $ +# $Id: configure.in,v 1.52 2014/02/08 22:06:16 misho Exp $ # AC_INIT(libaitio, 6.9, misho@elwix.org) AC_CONFIG_SRCDIR([src/aitio.c]) @@ -83,6 +83,20 @@ AC_ARG_ENABLE(aio, ;; esac ],) AC_MSG_RESULT($AIO) + +ZCBUF=no +AC_MSG_CHECKING(Zero-copy buffer Build) +AC_ARG_ENABLE(zcpy-buffer, + [ --enable-zcpy-buffer Build library with zero-copy buffer ], + [ ZCBUF=$enableval + case "$enableval" in + yes) + AC_DEFINE(ZCBUF_ENABLE,, [Build library with zero-copy buffer]) + ;; + *) + ;; + esac ],) +AC_MSG_RESULT($ZCBUF) AC_CONFIG_FILES([Makefile inc/Makefile