… | |
… | |
2863 | cat >>confdefs.h <<\_ACEOF |
2863 | cat >>confdefs.h <<\_ACEOF |
2864 | #define HAVE_PREADWRITE 1 |
2864 | #define HAVE_PREADWRITE 1 |
2865 | _ACEOF |
2865 | _ACEOF |
2866 | |
2866 | |
2867 | |
2867 | |
2868 | { echo "$as_me:$LINENO: checking for readdir_r" >&5 |
|
|
2869 | echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; } |
|
|
2870 | if test "${ac_cv_readdir_r+set}" = set; then |
|
|
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2872 | else |
|
|
2873 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2874 | |
|
|
2875 | #include <dirent.h> |
|
|
2876 | int main(void) |
|
|
2877 | { |
|
|
2878 | DIR *dir = 0; |
|
|
2879 | struct dirent ent, *eres; |
|
|
2880 | int res = readdir_r (dir, &ent, &eres); |
|
|
2881 | return 0; |
|
|
2882 | } |
|
|
2883 | |
|
|
2884 | _ACEOF |
|
|
2885 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2886 | if { (ac_try="$ac_link" |
|
|
2887 | case "(($ac_try" in |
|
|
2888 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2889 | *) ac_try_echo=$ac_try;; |
|
|
2890 | esac |
|
|
2891 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
|
|
2892 | (eval "$ac_link") 2>conftest.er1 |
|
|
2893 | ac_status=$? |
|
|
2894 | grep -v '^ *+' conftest.er1 >conftest.err |
|
|
2895 | rm -f conftest.er1 |
|
|
2896 | cat conftest.err >&5 |
|
|
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
|
|
2898 | (exit $ac_status); } && { |
|
|
2899 | test -z "$ac_c_werror_flag" || |
|
|
2900 | test ! -s conftest.err |
|
|
2901 | } && test -s conftest$ac_exeext && |
|
|
2902 | $as_test_x conftest$ac_exeext; then |
|
|
2903 | ac_cv_readdir_r=yes |
|
|
2904 | else |
|
|
2905 | echo "$as_me: failed program was:" >&5 |
|
|
2906 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2907 | |
|
|
2908 | ac_cv_readdir_r=no |
|
|
2909 | fi |
|
|
2910 | |
|
|
2911 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2912 | conftest$ac_exeext conftest.$ac_ext |
|
|
2913 | fi |
|
|
2914 | { echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5 |
|
|
2915 | echo "${ECHO_T}$ac_cv_readdir_r" >&6; } |
|
|
2916 | test $ac_cv_readdir_r = yes && |
|
|
2917 | cat >>confdefs.h <<\_ACEOF |
|
|
2918 | #define HAVE_READDIR_R 1 |
|
|
2919 | _ACEOF |
|
|
2920 | |
|
|
2921 | |
|
|
2922 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2868 | { echo "$as_me:$LINENO: checking for sendfile" >&5 |
2923 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |
2869 | echo $ECHO_N "checking for sendfile... $ECHO_C" >&6; } |
2924 | if test "${ac_cv_sendfile+set}" = set; then |
2870 | if test "${ac_cv_sendfile+set}" = set; then |
2925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2926 | else |
2872 | else |
… | |
… | |
2986 | { echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 |
2932 | { echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 |
2987 | echo "${ECHO_T}$ac_cv_sendfile" >&6; } |
2933 | echo "${ECHO_T}$ac_cv_sendfile" >&6; } |
2988 | test $ac_cv_sendfile = yes && |
2934 | test $ac_cv_sendfile = yes && |
2989 | cat >>confdefs.h <<\_ACEOF |
2935 | cat >>confdefs.h <<\_ACEOF |
2990 | #define HAVE_SENDFILE 1 |
2936 | #define HAVE_SENDFILE 1 |
|
|
2937 | _ACEOF |
|
|
2938 | |
|
|
2939 | |
|
|
2940 | { echo "$as_me:$LINENO: checking for sync_file_range" >&5 |
|
|
2941 | echo $ECHO_N "checking for sync_file_range... $ECHO_C" >&6; } |
|
|
2942 | if test "${ac_cv_sync_file_range+set}" = set; then |
|
|
2943 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
|
|
2944 | else |
|
|
2945 | cat >conftest.$ac_ext <<_ACEOF |
|
|
2946 | |
|
|
2947 | #include <fcntl.h> |
|
|
2948 | int 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 |
|
|
2960 | rm -f conftest.$ac_objext conftest$ac_exeext |
|
|
2961 | if { (ac_try="$ac_link" |
|
|
2962 | case "(($ac_try" in |
|
|
2963 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
|
|
2964 | *) ac_try_echo=$ac_try;; |
|
|
2965 | esac |
|
|
2966 | eval "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 |
|
|
2979 | else |
|
|
2980 | echo "$as_me: failed program was:" >&5 |
|
|
2981 | sed 's/^/| /' conftest.$ac_ext >&5 |
|
|
2982 | |
|
|
2983 | ac_cv_sync_file_range=no |
|
|
2984 | fi |
|
|
2985 | |
|
|
2986 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
|
|
2987 | conftest$ac_exeext conftest.$ac_ext |
|
|
2988 | fi |
|
|
2989 | { echo "$as_me:$LINENO: result: $ac_cv_sync_file_range" >&5 |
|
|
2990 | echo "${ECHO_T}$ac_cv_sync_file_range" >&6; } |
|
|
2991 | test $ac_cv_sync_file_range = yes && |
|
|
2992 | cat >>confdefs.h <<\_ACEOF |
|
|
2993 | #define HAVE_SYNC_FILE_RANGE 1 |
2991 | _ACEOF |
2994 | _ACEOF |
2992 | |
2995 | |
2993 | |
2996 | |
2994 | |
2997 | |
2995 | |
2998 | |