From 7f5b57bfb9a61ce0ba3fbc74f1775ace2d8ec6ec Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Sat, 26 Aug 2017 13:37:44 +0300 Subject: Added configure and command line option --modules. --- auto/options | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'auto') 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 -- cgit