2 # Check if we have a libaio.h installed
4 AC_DEFUN([AC_PACKAGE_WANT_AIO],
5 [ AC_CHECK_HEADERS(libaio.h, [ have_aio=true ], [ have_aio=false ])
10 # Check if we have an aio.h installed
12 AC_DEFUN([AC_PACKAGE_NEED_AIO_H],
13 [ AC_CHECK_HEADERS(aio.h)
14 if test $ac_cv_header_aio_h = no; then
16 echo 'FATAL ERROR: could not find a valid <aio.h> header.'
22 # Check if we have the lio_listio routine in either libc/librt
24 AC_DEFUN([AC_PACKAGE_NEED_LIO_LISTIO],
25 [ AC_CHECK_FUNCS(lio_listio)
26 if test $ac_cv_func_lio_listio = yes; then
29 AC_CHECK_LIB(rt, lio_listio,, [
31 echo 'FATAL ERROR: could not find a library with lio_listio.'