ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/configure
(Generate patch)

Comparing IO-AIO/configure (file contents):
Revision 1.3 by root, Sun May 11 19:11:05 2008 UTC vs.
Revision 1.5 by root, Fri May 30 04:54:13 2008 UTC

2708 2708
2709#include <fcntl.h> 2709#include <fcntl.h>
2710int main(void) 2710int main(void)
2711{ 2711{
2712 int fd = 0; 2712 int fd = 0;
2713 off64_t offset = 1;
2714 size_t count = 2; 2713 size_t count = 2;
2715 ssize_t res; 2714 ssize_t res;
2716 res = readahead (fd, offset, count); 2715 res = readahead (fd, 0, count);
2717 return 0; 2716 return 0;
2718} 2717}
2719 2718
2720_ACEOF 2719_ACEOF
2721rm -f conftest.$ac_objext conftest$ac_exeext 2720rm -f conftest.$ac_objext conftest$ac_exeext
2861{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 2860{ echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5
2862echo "${ECHO_T}$ac_cv_preadwrite" >&6; } 2861echo "${ECHO_T}$ac_cv_preadwrite" >&6; }
2863test $ac_cv_preadwrite = yes && 2862test $ac_cv_preadwrite = yes &&
2864cat >>confdefs.h <<\_ACEOF 2863cat >>confdefs.h <<\_ACEOF
2865#define HAVE_PREADWRITE 1 2864#define HAVE_PREADWRITE 1
2866_ACEOF
2867
2868
2869{ echo "$as_me:$LINENO: checking for readdir_r" >&5
2870echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
2871if test "${ac_cv_readdir_r+set}" = set; then
2872 echo $ECHO_N "(cached) $ECHO_C" >&6
2873else
2874 cat >conftest.$ac_ext <<_ACEOF
2875
2876#include <dirent.h>
2877int main(void)
2878{
2879 DIR *dir = 0;
2880 struct dirent ent, *eres;
2881 int res = readdir_r (dir, &ent, &eres);
2882 return 0;
2883}
2884
2885_ACEOF
2886rm -f conftest.$ac_objext conftest$ac_exeext
2887if { (ac_try="$ac_link"
2888case "(($ac_try" in
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2891esac
2892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_link") 2>conftest.er1
2894 ac_status=$?
2895 grep -v '^ *+' conftest.er1 >conftest.err
2896 rm -f conftest.er1
2897 cat conftest.err >&5
2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2899 (exit $ac_status); } && {
2900 test -z "$ac_c_werror_flag" ||
2901 test ! -s conftest.err
2902 } && test -s conftest$ac_exeext &&
2903 $as_test_x conftest$ac_exeext; then
2904 ac_cv_readdir_r=yes
2905else
2906 echo "$as_me: failed program was:" >&5
2907sed 's/^/| /' conftest.$ac_ext >&5
2908
2909 ac_cv_readdir_r=no
2910fi
2911
2912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2913 conftest$ac_exeext conftest.$ac_ext
2914fi
2915{ echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5
2916echo "${ECHO_T}$ac_cv_readdir_r" >&6; }
2917test $ac_cv_readdir_r = yes &&
2918cat >>confdefs.h <<\_ACEOF
2919#define HAVE_READDIR_R 1
2920_ACEOF 2865_ACEOF
2921 2866
2922 2867
2923{ echo "$as_me:$LINENO: checking for sendfile" >&5 2868{ echo "$as_me:$LINENO: checking for sendfile" >&5
2924echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } 2869echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines