--- libaitsched/configure 2012/07/24 14:07:25 1.12.2.1 +++ libaitsched/configure 2012/08/02 12:58:02 1.12.2.2 @@ -693,6 +693,7 @@ ac_subst_files='' ac_user_opts=' enable_option_checking enable_debug +enable_aio ' ac_precious_vars='build_alias host_alias @@ -1318,6 +1319,7 @@ Optional Features: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-debug Build library with debug information and additional messages + --enable-aio Build scheduler library with AIO operations Some influential environment variables: CC C compiler command @@ -3431,7 +3433,52 @@ _ACEOF fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for aio_read in -lrt" >&5 +$as_echo_n "checking for aio_read in -lrt... " >&6; } +if ${ac_cv_lib_rt_aio_read+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_check_lib_save_LIBS=$LIBS +LIBS="-lrt $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char aio_read (); +int +main () +{ +return aio_read (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + ac_cv_lib_rt_aio_read=yes +else + ac_cv_lib_rt_aio_read=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_aio_read" >&5 +$as_echo "$ac_cv_lib_rt_aio_read" >&6; } +if test "x$ac_cv_lib_rt_aio_read" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_LIBRT 1 +_ACEOF + + LIBS="-lrt $LIBS" + +fi + + # Checks for header files. ac_ext=c ac_cpp='$CPP $CPPFLAGS' @@ -4007,6 +4054,26 @@ fi { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5 $as_echo "$DEBUG" >&6; } + +AIO=no +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AIO Builtin support" >&5 +$as_echo_n "checking AIO Builtin support... " >&6; } +# Check whether --enable-aio was given. +if test "${enable_aio+set}" = set; then : + enableval=$enable_aio; AIO=$enableval + case "$enableval" in + yes) + +$as_echo "#define AIO_SUPPORT /**/" >>confdefs.h + + ;; + *) + ;; + esac +fi + +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AIO" >&5 +$as_echo "$AIO" >&6; } ac_config_files="$ac_config_files Makefile inc/Makefile lib/Makefile src/Makefile"