summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xconfigure11
-rw-r--r--src/nxt_application.c2
-rw-r--r--src/nxt_php_sapi.c2
-rw-r--r--src/nxt_python_wsgi.c2
4 files changed, 13 insertions, 4 deletions
diff --git a/configure b/configure
index e9ae6378..3608130d 100755
--- a/configure
+++ b/configure
@@ -134,9 +134,18 @@ esac
if [ $NXT_DEBUG = YES ]; then
- nxt_have=NXT_DEBUG . auto/have
+ nxt_debug=1
+else
+ nxt_debug=0
fi
+cat << END >> $NXT_AUTO_CONFIG_H
+
+#ifndef NXT_DEBUG
+#define NXT_DEBUG $nxt_debug
+#endif
+
+END
. auto/test_build
. auto/sources
diff --git a/src/nxt_application.c b/src/nxt_application.c
index 9ce6a8ce..8fa03e0e 100644
--- a/src/nxt_application.c
+++ b/src/nxt_application.c
@@ -39,7 +39,7 @@ static nxt_application_module_t *nxt_app;
static uint32_t compat[] = {
- NXT_VERNUM,
+ NXT_VERNUM, NXT_DEBUG,
};
diff --git a/src/nxt_php_sapi.c b/src/nxt_php_sapi.c
index c60a8dab..86b869ed 100644
--- a/src/nxt_php_sapi.c
+++ b/src/nxt_php_sapi.c
@@ -168,7 +168,7 @@ nxt_php_str_trim_lead(nxt_str_t *str, u_char t)
}
static uint32_t compat[] = {
- NXT_VERNUM,
+ NXT_VERNUM, NXT_DEBUG,
};
diff --git a/src/nxt_python_wsgi.c b/src/nxt_python_wsgi.c
index d9f2f376..33d9456a 100644
--- a/src/nxt_python_wsgi.c
+++ b/src/nxt_python_wsgi.c
@@ -92,7 +92,7 @@ nxt_inline nxt_int_t nxt_python_write_py_str(nxt_python_run_ctx_t *ctx,
static uint32_t compat[] = {
- NXT_VERNUM,
+ NXT_VERNUM, NXT_DEBUG,
};