From 3299cd9dfe9fb2b6f171eaf6cc7852efbb140ddb Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Thu, 12 Oct 2006 03:58:05 +0000 Subject: [PATCH] DEVEL15-linux-aio-functions-improved-test-20061011 detect properly if we have nothing (cherry picked from commit d71d42d29f923750be4f4f518b8d0e72dba8fa23) --- src/cf/linux-test4.m4 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/cf/linux-test4.m4 b/src/cf/linux-test4.m4 index 4585ea7d4..469387130 100644 --- a/src/cf/linux-test4.m4 +++ b/src/cf/linux-test4.m4 @@ -650,9 +650,16 @@ AC_DEFUN([LINUX_DO_SYNC_READ], [ AC_CACHE_VAL([ac_cv_linux_do_sync_read], [ AC_TRY_KBUILD( [#include ], +[do_sync_read(NULL, NULL, 0, NULL, 0);], + ac_cv_linux_do_sync_read=no, + ac_cv_linux_do_sync_read=maybe) + if test "x$ac_cv_linux_do_sync_read" = "xmaybe"; then + AC_TRY_KBUILD( +[#include ], [do_sync_read(NULL, NULL, 0, NULL);], ac_cv_linux_do_sync_read=yes, ac_cv_linux_do_sync_read=no)]) + fi AC_MSG_RESULT($ac_cv_linux_do_sync_read) if test "x$ac_cv_linux_do_sync_read" = "xyes"; then AC_DEFINE([DO_SYNC_READ], 1, [define if your kernel has do_sync_read()]) @@ -663,10 +670,18 @@ AC_DEFUN([LINUX_GENERIC_FILE_AIO_READ], [ AC_CACHE_VAL([ac_cv_linux_generic_file_aio_read], [ AC_TRY_KBUILD( [#include ], +[generic_file_aio_read(NULL, NULL, 0, 0, 0);], + ac_cv_linux_generic_file_aio_read=no, + ac_cv_linux_generic_file_aio_read=maybe) + if test "x$ac_cv_linux_generic_file_aio_read" = "xmaybe"; then + AC_TRY_KBUILD( +[#include ], [generic_file_aio_read(NULL, NULL, 0, 0);], ac_cv_linux_generic_file_aio_read=yes, ac_cv_linux_generic_file_aio_read=no)]) + fi AC_MSG_RESULT($ac_cv_linux_generic_file_aio_read) if test "x$ac_cv_linux_generic_file_aio_read" = "xyes"; then AC_DEFINE([GENERIC_FILE_AIO_READ], 1, [define if your kernel has generic_file_aio_read()]) fi]) + -- 2.39.5