170 lines
4.2 KiB
Diff
170 lines
4.2 KiB
Diff
--- a/nginx-1.22.0/auto/types/sizeof
|
|
+++ b/nginx-1.22.0/auto/types/sizeof
|
|
@@ -12,38 +12,10 @@
|
|
|
|
END
|
|
|
|
-ngx_size=
|
|
-
|
|
-cat << END > $NGX_AUTOTEST.c
|
|
-
|
|
-#include <sys/types.h>
|
|
-#include <sys/time.h>
|
|
-$NGX_INCLUDE_UNISTD_H
|
|
-#include <signal.h>
|
|
-#include <stdio.h>
|
|
-#include <sys/resource.h>
|
|
-$NGX_INCLUDE_INTTYPES_H
|
|
-$NGX_INCLUDE_AUTO_CONFIG_H
|
|
-
|
|
-int main(void) {
|
|
- printf("%d", (int) sizeof($ngx_type));
|
|
- return 0;
|
|
-}
|
|
-
|
|
-END
|
|
-
|
|
-
|
|
-ngx_test="$CC $CC_TEST_FLAGS $CC_AUX_FLAGS \
|
|
- -o $NGX_AUTOTEST $NGX_AUTOTEST.c $NGX_LD_OPT $ngx_feature_libs"
|
|
-
|
|
-eval "$ngx_test >> $NGX_AUTOCONF_ERR 2>&1"
|
|
-
|
|
-
|
|
-if [ -x $NGX_AUTOTEST ]; then
|
|
- ngx_size=`$NGX_AUTOTEST`
|
|
- echo " $ngx_size bytes"
|
|
-fi
|
|
+var="\${NGX_$(echo "$ngx_type" | tr ' ' '_' | tr '*' 'p' | tr 'a-z' 'A-Z' )}_SIZE"
|
|
+ngx_size=$(eval echo $var)
|
|
|
|
+echo " $ngx_size bytes"
|
|
|
|
case $ngx_size in
|
|
4)
|
|
--- a/nginx-1.22.0/auto/unix
|
|
+++ b/nginx-1.22.0/auto/unix
|
|
@@ -805,7 +805,7 @@
|
|
|
|
ngx_feature="mmap(MAP_ANON|MAP_SHARED)"
|
|
ngx_feature_name="NGX_HAVE_MAP_ANON"
|
|
-ngx_feature_run=
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/mman.h>"
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
@@ -818,7 +818,7 @@
|
|
|
|
ngx_feature='mmap("/dev/zero", MAP_SHARED)'
|
|
ngx_feature_name="NGX_HAVE_MAP_DEVZERO"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/mman.h>
|
|
#include <sys/stat.h>
|
|
#include <fcntl.h>"
|
|
@@ -833,7 +833,7 @@
|
|
|
|
ngx_feature="System V shared memory"
|
|
ngx_feature_name="NGX_HAVE_SYSVSHM"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/ipc.h>
|
|
#include <sys/shm.h>"
|
|
ngx_feature_path=
|
|
@@ -847,7 +847,7 @@
|
|
|
|
ngx_feature="POSIX semaphores"
|
|
ngx_feature_name="NGX_HAVE_POSIX_SEM"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <semaphore.h>"
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
--- a/nginx-1.22.0/auto/cc/conf
|
|
+++ b/nginx-1.22.0/auto/cc/conf
|
|
@@ -183,7 +183,7 @@
|
|
else
|
|
ngx_feature="gcc builtin atomic operations"
|
|
ngx_feature_name=NGX_HAVE_GCC_ATOMIC
|
|
- ngx_feature_run=yes
|
|
+ ngx_feature_run=
|
|
ngx_feature_incs=
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
@@ -204,7 +204,7 @@
|
|
else
|
|
ngx_feature="C99 variadic macros"
|
|
ngx_feature_name="NGX_HAVE_C99_VARIADIC_MACROS"
|
|
- ngx_feature_run=yes
|
|
+ ngx_feature_run=no
|
|
ngx_feature_incs="#include <stdio.h>
|
|
#define var(dummy, ...) sprintf(__VA_ARGS__)"
|
|
ngx_feature_path=
|
|
@@ -218,7 +218,7 @@
|
|
|
|
ngx_feature="gcc variadic macros"
|
|
ngx_feature_name="NGX_HAVE_GCC_VARIADIC_MACROS"
|
|
- ngx_feature_run=yes
|
|
+ ngx_feature_run=no
|
|
ngx_feature_incs="#include <stdio.h>
|
|
#define var(dummy, args...) sprintf(args)"
|
|
ngx_feature_path=
|
|
--- a/nginx-1.22.0/auto/cc/name
|
|
+++ b/nginx-1.22.0/auto/cc/name
|
|
@@ -7,7 +7,7 @@
|
|
|
|
ngx_feature="C compiler"
|
|
ngx_feature_name=
|
|
- ngx_feature_run=yes
|
|
+ ngx_feature_run=
|
|
ngx_feature_incs=
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
--- a/nginx-1.22.0/auto/os/linux
|
|
+++ b/nginx-1.22.0/auto/os/linux
|
|
@@ -36,7 +36,7 @@
|
|
|
|
ngx_feature="epoll"
|
|
ngx_feature_name="NGX_HAVE_EPOLL"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/epoll.h>"
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
@@ -135,7 +135,7 @@
|
|
CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE"
|
|
ngx_feature="sendfile()"
|
|
ngx_feature_name="NGX_HAVE_SENDFILE"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/sendfile.h>
|
|
#include <errno.h>"
|
|
ngx_feature_path=
|
|
@@ -156,7 +156,7 @@
|
|
CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
ngx_feature="sendfile64()"
|
|
ngx_feature_name="NGX_HAVE_SENDFILE64"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/sendfile.h>
|
|
#include <errno.h>"
|
|
ngx_feature_path=
|
|
@@ -174,7 +174,7 @@
|
|
|
|
ngx_feature="prctl(PR_SET_DUMPABLE)"
|
|
ngx_feature_name="NGX_HAVE_PR_SET_DUMPABLE"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/prctl.h>"
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|
|
@@ -186,7 +186,7 @@
|
|
|
|
ngx_feature="prctl(PR_SET_KEEPCAPS)"
|
|
ngx_feature_name="NGX_HAVE_PR_SET_KEEPCAPS"
|
|
-ngx_feature_run=yes
|
|
+ngx_feature_run=no
|
|
ngx_feature_incs="#include <sys/prctl.h>"
|
|
ngx_feature_path=
|
|
ngx_feature_libs=
|