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

Comparing IO-AIO/configure (file contents):
Revision 1.5 by root, Fri May 30 04:54:13 2008 UTC vs.
Revision 1.6 by root, Wed Oct 22 18:15:36 2008 UTC

2932{ echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 2932{ echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5
2933echo "${ECHO_T}$ac_cv_sendfile" >&6; } 2933echo "${ECHO_T}$ac_cv_sendfile" >&6; }
2934test $ac_cv_sendfile = yes && 2934test $ac_cv_sendfile = yes &&
2935cat >>confdefs.h <<\_ACEOF 2935cat >>confdefs.h <<\_ACEOF
2936#define HAVE_SENDFILE 1 2936#define HAVE_SENDFILE 1
2937_ACEOF
2938
2939
2940{ echo "$as_me:$LINENO: checking for sync_file_range" >&5
2941echo $ECHO_N "checking for sync_file_range... $ECHO_C" >&6; }
2942if test "${ac_cv_sync_file_range+set}" = set; then
2943 echo $ECHO_N "(cached) $ECHO_C" >&6
2944else
2945 cat >conftest.$ac_ext <<_ACEOF
2946
2947#include <fcntl.h>
2948int main(void)
2949{
2950 int fd = 0;
2951 off64_t offset = 1;
2952 off64_t nbytes = 1;
2953 unsigned int flags = SYNC_FILE_RANGE_WAIT_BEFORE|SYNC_FILE_RANGE_WRITE|SYNC_FILE_RANGE_WAIT_AFTER;
2954 ssize_t res;
2955 res = sync_file_range (fd, offset, nbytes, flags);
2956 return 0;
2957}
2958
2959_ACEOF
2960rm -f conftest.$ac_objext conftest$ac_exeext
2961if { (ac_try="$ac_link"
2962case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2965esac
2966eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_link") 2>conftest.er1
2968 ac_status=$?
2969 grep -v '^ *+' conftest.er1 >conftest.err
2970 rm -f conftest.er1
2971 cat conftest.err >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); } && {
2974 test -z "$ac_c_werror_flag" ||
2975 test ! -s conftest.err
2976 } && test -s conftest$ac_exeext &&
2977 $as_test_x conftest$ac_exeext; then
2978 ac_cv_sync_file_range=yes
2979else
2980 echo "$as_me: failed program was:" >&5
2981sed 's/^/| /' conftest.$ac_ext >&5
2982
2983 ac_cv_sync_file_range=no
2984fi
2985
2986rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
2987 conftest$ac_exeext conftest.$ac_ext
2988fi
2989{ echo "$as_me:$LINENO: result: $ac_cv_sync_file_range" >&5
2990echo "${ECHO_T}$ac_cv_sync_file_range" >&6; }
2991test $ac_cv_sync_file_range = yes &&
2992cat >>confdefs.h <<\_ACEOF
2993#define HAVE_SYNC_FILE_RANGE 1
2937_ACEOF 2994_ACEOF
2938 2995
2939 2996
2940 2997
2941 2998

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines