summaryrefslogtreecommitdiffhomepage
path: root/auto/options
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-08-26 13:37:44 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-08-26 13:37:44 +0300
commitd3a6d7805f9f869f3a786080a9e0586b4844034f (patch)
tree5eb2c583830e70f4acb8f45a5059676f4784d38a /auto/options
parent897b860e832c9eba67ba7d01d0775f64ade132f6 (diff)
downloadunit-d3a6d7805f9f869f3a786080a9e0586b4844034f.tar.gz
unit-d3a6d7805f9f869f3a786080a9e0586b4844034f.tar.bz2
Added configure options --prefix=PATH and --log=FILE.
A prefix is prepended to all relative names at configure stage. There is no prefix by default. A log file name can be relative. The default log file name is "nginext.log".
Diffstat (limited to 'auto/options')
-rw-r--r--auto/options17
1 files changed, 17 insertions, 0 deletions
diff --git a/auto/options b/auto/options
index 57d8038f..7bd4606a 100644
--- a/auto/options
+++ b/auto/options
@@ -12,6 +12,9 @@ NXT_CFLAGS=
NXT_CC_OPT=
NXT_LD_OPT=
+NXT_PREFIX=
+NXT_LOG="nginext.log"
+
NXT_DEBUG=NO
NXT_INET6=YES
@@ -54,6 +57,9 @@ do
--build-dir=*) NXT_BUILD_DIR="$value" ;;
+ --prefix=*) NXT_PREFIX="$value" ;;
+ --log=*) NXT_LOG="$value" ;;
+
--debug) NXT_DEBUG=YES ;;
--no-ipv6) NXT_INET6=NO ;;
@@ -94,3 +100,14 @@ do
NXT_CONFIGURE_OPTIONS="$NXT_CONFIGURE_OPTIONS $nxt_opt"
done
+
+
+case "$NXT_PREFIX" in
+ ""|*/) ;;
+ *) NXT_PREFIX="$NXT_PREFIX/" ;;
+esac
+
+case "$NXT_LOG" in
+ /*) ;;
+ *) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;;
+esac