Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nginx/nginx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/auto
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2004-06-10 22:36:57 +0400
committerIgor Sysoev <igor@sysoev.ru>2004-06-10 22:36:57 +0400
commit0ed19ccad12727d477069a0413b051ef5c269c15 (patch)
tree055ed91c94d9683584a009beb0ecea2944595bcf /auto
parent5428ae74c0d0c74ea407208ffb45ea80f167b0fd (diff)
nginx-0.0.4-2004-06-10-22:36:57 import
Diffstat (limited to 'auto')
-rw-r--r--auto/os/linux25
1 files changed, 16 insertions, 9 deletions
diff --git a/auto/os/linux b/auto/os/linux
index 4a9823dd9..6fcd7647b 100644
--- a/auto/os/linux
+++ b/auto/os/linux
@@ -9,6 +9,22 @@ PIPE="-pipe"
CC_TEST_FLAGS="-D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
+# Linux kernel version
+
+version=`grep "#define LINUX_VERSION_CODE" /usr/include/linux/version.h \
+ | sed -e 's/^.* \(.*\)$/\1/'`
+
+
+# enable rt signals on Linux 2.4.x
+
+if [ $version -ge 132096 -o $EVENT_RTSIG = YES ]; then
+ echo " + using rt signals"
+ have=HAVE_RTSIG . auto/have
+ EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
+ CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
+ EVENT_FOUND=YES
+fi
+
# epoll, EPOLLET version
@@ -30,15 +46,6 @@ if [ $ngx_found = yes ]; then
fi
-# rtsig
-
-if [ $EVENT_RTSIG = YES ]; then
- have=HAVE_RTSIG . auto/have
- EVENT_MODULES="$EVENT_MODULES $RTSIG_MODULE"
- CORE_SRCS="$CORE_SRCS $RTSIG_SRCS"
-fi
-
-
# sendfile()
CC_TEST_FLAGS="-D_GNU_SOURCE"