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
commit7f5b57bfb9a61ce0ba3fbc74f1775ace2d8ec6ec (patch)
tree37f69782ab933eb36d305d8d3e6e90c42417a711 /auto/options
parent9aaa7d8c20e58ed380225cbbbd05248539d2f500 (diff)
downloadunit-7f5b57bfb9a61ce0ba3fbc74f1775ace2d8ec6ec.tar.gz
unit-7f5b57bfb9a61ce0ba3fbc74f1775ace2d8ec6ec.tar.bz2
Added configure and command line option --modules.
Diffstat (limited to 'auto/options')
-rw-r--r--auto/options12
1 files changed, 12 insertions, 0 deletions
diff --git a/auto/options b/auto/options
index bcf9e17a..b013a7ae 100644
--- a/auto/options
+++ b/auto/options
@@ -15,6 +15,7 @@ NXT_LD_OPT=
NXT_PREFIX=
NXT_PID="nginext.pid"
NXT_LOG="nginext.log"
+NXT_MODULES="modules"
NXT_USER="nobody"
NXT_GROUP=
@@ -64,6 +65,7 @@ do
--prefix=*) NXT_PREFIX="$value" ;;
--pid=*) NXT_PID="$value" ;;
--log=*) NXT_LOG="$value" ;;
+ --modules=*) NXT_MODULES="$value" ;;
--user=*) NXT_USER="$value" ;;
--group=*) NXT_GROUP="$value" ;;
@@ -124,3 +126,13 @@ case "$NXT_LOG" in
/*) ;;
*) NXT_LOG="$NXT_PREFIX$NXT_LOG" ;;
esac
+
+case "$NXT_MODULES" in
+ ""|*/) ;;
+ *) NXT_MODULES="$NXT_MODULES/" ;;
+esac
+
+case "$NXT_MODULES" in
+ /*) ;;
+ *) NXT_MODULES="$NXT_PREFIX$NXT_MODULES" ;;
+esac