--- libaitio/configure 2013/12/18 12:41:02 1.50.2.1 +++ libaitio/configure 2014/02/08 22:06:15 1.51 @@ -694,6 +694,7 @@ ac_user_opts=' enable_option_checking enable_debug enable_aio +enable_zcpy_buffer ' ac_precious_vars='build_alias host_alias @@ -1320,6 +1321,7 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug Build library with debug information and additional messages --enable-aio Build library with AIO operations + --enable-zcpy-buffer Build library with zero-copy buffer Some influential environment variables: CC C compiler command @@ -3242,8 +3244,8 @@ fi -CFLAGS="-Wall -O2 -fPIC -I/usr/local/include ${CFLAGS}" -LDFLAGS="-L/usr/local/lib ${LDFLAGS}" +CFLAGS="-Wall -O2 -fPIC ${CFLAGS}" +LDFLAGS="${LDFLAGS}" { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EVP_CipherInit_ex in -lcrypto" >&5 @@ -4286,6 +4288,26 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5 $as_echo "$AIO" >&6; } + +ZCBUF=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Zero-copy buffer Build" >&5 +$as_echo_n "checking Zero-copy buffer Build... " >&6; } +# Check whether --enable-zcpy-buffer was given. +if test "${enable_zcpy_buffer+set}" = set; then : + enableval=$enable_zcpy_buffer; ZCBUF=$enableval + case "$enableval" in + yes) + +$as_echo "#define ZCBUF_ENABLE /**/" >>confdefs.h + + ;; + *) + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZCBUF" >&5 +$as_echo "$ZCBUF" >&6; } ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"