mirror of
https://github.com/nginx/nginx.git
synced 2025-06-10 11:38:36 +08:00
fail if no file aio was found
This commit is contained in:
parent
3e751480b2
commit
908194eddd
@ -277,6 +277,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if [ $NGX_FILE_AIO = YES ]; then
|
if [ $NGX_FILE_AIO = YES ]; then
|
||||||
|
|
||||||
ngx_feature="kqueue AIO support"
|
ngx_feature="kqueue AIO support"
|
||||||
ngx_feature_name="NGX_HAVE_FILE_AIO"
|
ngx_feature_name="NGX_HAVE_FILE_AIO"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
@ -290,11 +291,9 @@ if [ $NGX_FILE_AIO = YES ]; then
|
|||||||
|
|
||||||
if [ $ngx_found = yes ]; then
|
if [ $ngx_found = yes ]; then
|
||||||
CORE_SRCS="$CORE_SRCS $FILE_AIO_SRCS"
|
CORE_SRCS="$CORE_SRCS $FILE_AIO_SRCS"
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
elif [ $ngx_found = no ]; then
|
||||||
|
|
||||||
if [ $NGX_FILE_AIO = YES ]; then
|
|
||||||
ngx_feature="Linux AIO support"
|
ngx_feature="Linux AIO support"
|
||||||
ngx_feature_name="NGX_HAVE_FILE_AIO"
|
ngx_feature_name="NGX_HAVE_FILE_AIO"
|
||||||
ngx_feature_run=no
|
ngx_feature_run=no
|
||||||
@ -312,5 +311,15 @@ if [ $NGX_FILE_AIO = YES ]; then
|
|||||||
if [ $ngx_found = yes ]; then
|
if [ $ngx_found = yes ]; then
|
||||||
have=NGX_HAVE_EVENTFD . auto/have
|
have=NGX_HAVE_EVENTFD . auto/have
|
||||||
CORE_SRCS="$CORE_SRCS $LINUX_AIO_SRCS"
|
CORE_SRCS="$CORE_SRCS $LINUX_AIO_SRCS"
|
||||||
|
|
||||||
|
else
|
||||||
|
cat << END
|
||||||
|
|
||||||
|
$0: no supported file AIO was found
|
||||||
|
Currently file AIO is supported on FreeBSD 4.3+ and Linux 2.6.22+ only
|
||||||
|
|
||||||
|
END
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user