summaryrefslogtreecommitdiffhomepage
path: root/configure
diff options
context:
space:
mode:
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 10 insertions, 1 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