summaryrefslogtreecommitdiff
path: root/build/apr_hints.m4
diff options
context:
space:
mode:
authorJeff Trawick <trawick@apache.org>2011-04-09 20:07:58 +0000
committerJeff Trawick <trawick@apache.org>2011-04-09 20:07:58 +0000
commitd9e75f0dbcd8f1ce6f2974a6e38a9dcf6c5ec980 (patch)
tree0a4131bbe47f032f5a8c24d2cb0f051221857e3b /build/apr_hints.m4
parent5a103f5f55ddfd7f249aef52731bf5e5d66f5174 (diff)
downloadapr-d9e75f0dbcd8f1ce6f2974a6e38a9dcf6c5ec980.tar.gz
improve sync between apr.h and apr.hw
notably, APR_HAS_SENDFILE and APR_HAS_MMAP are now enabled for MinGW builds git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1090664 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build/apr_hints.m4')
-rw-r--r--build/apr_hints.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/build/apr_hints.m4 b/build/apr_hints.m4
index cd13aaa2d..7f2e53c36 100644
--- a/build/apr_hints.m4
+++ b/build/apr_hints.m4
@@ -457,16 +457,22 @@ dnl # Not a problem in 10.20. Otherwise, who knows?
APR_SETIFNULL(ac_cv_tcp_nodelay_inherited, [yes])
APR_SETIFNULL(ac_cv_file__dev_zero, [no])
APR_SETIFNULL(ac_cv_func_setpgrp_void, [no])
+ APR_SETIFNULL(ac_cv_func_mmap, [yes])
case $host in
*mingw32*)
APR_SETIFNULL(apr_has_xthread_files, [1])
APR_SETIFNULL(apr_has_user, [1])
APR_SETIFNULL(apr_procattr_user_set_requires_password, [1])
+ dnl The real function is TransmitFile(), not sendfile(), but
+ dnl this bypasses the Linux/Solaris/AIX/etc. test and enables
+ dnl the TransmitFile() implementation.
+ APR_SETIFNULL(ac_cv_func_sendfile, [yes])
;;
*mingwce)
APR_SETIFNULL(apr_has_xthread_files, [0])
APR_SETIFNULL(apr_has_user, [0])
APR_SETIFNULL(apr_procattr_user_set_requires_password, [0])
+ APR_SETIFNULL(ac_cv_func_sendfile, [no])
;;
esac
;;