--- libaitsched/configure 2012/07/22 21:50:37 1.11 +++ libaitsched/configure 2012/08/02 12:58:02 1.12.2.2 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libaitsched 2.4. +# Generated by GNU Autoconf 2.69 for libaitsched 2.6. # # Report bugs to . # @@ -580,8 +580,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libaitsched' PACKAGE_TARNAME='libaitsched' -PACKAGE_VERSION='2.4' -PACKAGE_STRING='libaitsched 2.4' +PACKAGE_VERSION='2.6' +PACKAGE_STRING='libaitsched 2.6' PACKAGE_BUGREPORT='misho@openbsd-bg.org' PACKAGE_URL='' @@ -693,6 +693,7 @@ ac_subst_files='' ac_user_opts=' enable_option_checking enable_debug +enable_aio ' ac_precious_vars='build_alias host_alias @@ -1243,7 +1244,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures libaitsched 2.4 to adapt to many kinds of systems. +\`configure' configures libaitsched 2.6 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1309,7 +1310,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libaitsched 2.4:";; + short | recursive ) echo "Configuration of libaitsched 2.6:";; esac cat <<\_ACEOF @@ -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 @@ -1395,7 +1397,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libaitsched configure 2.4 +libaitsched configure 2.6 generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -1818,7 +1820,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by libaitsched $as_me 2.4, which was +It was created by libaitsched $as_me 2.6, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -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' @@ -4008,6 +4055,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" cat >confcache <<\_ACEOF @@ -4516,7 +4583,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by libaitsched $as_me 2.4, which was +This file was extended by libaitsched $as_me 2.6, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -4578,7 +4645,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -libaitsched config.status 2.4 +libaitsched config.status 2.6 configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\"