[njs] Style unification of configure feature tests.

Igor Sysoev igor at sysoev.ru
Mon Oct 24 15:53:47 UTC 2016


details:   http://hg.nginx.org/njs/rev/0fe25989e0a6
branches:  
changeset: 218:0fe25989e0a6
user:      Igor Sysoev <igor at sysoev.ru>
date:      Mon Oct 24 17:29:27 2016 +0300
description:
Style unification of configure feature tests.

diffstat:

 nxt/auto/clang     |  10 +++++-----
 nxt/auto/getrandom |   2 +-
 nxt/auto/time      |   4 ++--
 3 files changed, 8 insertions(+), 8 deletions(-)

diffs (76 lines):

diff -r eef409d1d4be -r 0fe25989e0a6 nxt/auto/clang
--- a/nxt/auto/clang	Mon Oct 24 17:23:00 2016 +0300
+++ b/nxt/auto/clang	Mon Oct 24 17:29:27 2016 +0300
@@ -205,20 +205,20 @@ nxt_feature_test="int main(void) {
 
 nxt_feature="GCC __attribute__ visibility"
 nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_VISIBILITY
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_path=
 nxt_feature_libs=
 nxt_feature_test="int n __attribute__ ((visibility(\"default\")));
 
                   int main(void) {
-                      return 1;
+                      return 0;
                   }"
 . ${NXT_AUTO}feature
 
 
 nxt_feature="GCC __attribute__ malloc"
 nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_MALLOC
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_path=
 nxt_feature_libs=
 nxt_feature_test="#include <stdlib.h>
@@ -251,13 +251,13 @@ else
 
     nxt_feature="GCC __attribute__ aligned"
     nxt_feature_name=NXT_HAVE_GCC_ATTRIBUTE_ALIGNED
-    nxt_feature_run=
+    nxt_feature_run=no
     nxt_feature_path=
     nxt_feature_libs=
     nxt_feature_test="int n __attribute__ ((aligned(64)));
 
                       int main(void) {
-                          return 1;
+                          return 0;
                       }"
     . ${NXT_AUTO}feature
 
diff -r eef409d1d4be -r 0fe25989e0a6 nxt/auto/getrandom
--- a/nxt/auto/getrandom	Mon Oct 24 17:23:00 2016 +0300
+++ b/nxt/auto/getrandom	Mon Oct 24 17:29:27 2016 +0300
@@ -7,7 +7,7 @@
 
 nxt_feature="getrandom()"
 nxt_feature_name=NXT_HAVE_GETRANDOM
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <unistd.h>
diff -r eef409d1d4be -r 0fe25989e0a6 nxt/auto/time
--- a/nxt/auto/time	Mon Oct 24 17:23:00 2016 +0300
+++ b/nxt/auto/time	Mon Oct 24 17:29:27 2016 +0300
@@ -7,7 +7,7 @@
 
 nxt_feature="struct tm.tm_gmtoff"
 nxt_feature_name=NXT_HAVE_TM_GMTOFF
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <time.h>
@@ -27,7 +27,7 @@ nxt_feature_test="#include <time.h>
 
 nxt_feature="altzone"
 nxt_feature_name=NXT_HAVE_ALTZONE
-nxt_feature_run=
+nxt_feature_run=no
 nxt_feature_incs=
 nxt_feature_libs=
 nxt_feature_test="#include <time.h>



More information about the nginx-devel mailing list