summaryrefslogtreecommitdiffhomepage
path: root/auto
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@nginx.com>2014-05-20 16:10:07 +0400
committerRuslan Ermilov <ru@nginx.com>2014-05-20 16:10:07 +0400
commit1736c180f4683d57d175b98d5596b779bab950d4 (patch)
tree0bdf61366c6dbc9232a40ac0c77b59ba4d1f6127 /auto
parent27899a923a36c877cd3307dd054b501789764bcf (diff)
downloadnginx-1736c180f4683d57d175b98d5596b779bab950d4.tar.gz
nginx-1736c180f4683d57d175b98d5596b779bab950d4.tar.bz2
Configure: the --build= option.
If set, its value is output in "nginx -v" and in the error log.
Diffstat (limited to 'auto')
-rwxr-xr-xauto/configure4
-rw-r--r--auto/options3
2 files changed, 7 insertions, 0 deletions
diff --git a/auto/configure b/auto/configure
index d7d8189af..e8929b8f0 100755
--- a/auto/configure
+++ b/auto/configure
@@ -108,4 +108,8 @@ have=NGX_HTTP_SCGI_TEMP_PATH value="\"$NGX_HTTP_SCGI_TEMP_PATH\""
have=NGX_USER value="\"$NGX_USER\"" . auto/define
have=NGX_GROUP value="\"$NGX_GROUP\"" . auto/define
+if [ ".$NGX_BUILD" != "." ]; then
+ have=NGX_BUILD value="\"$NGX_BUILD\"" . auto/define
+fi
+
. auto/summary
diff --git a/auto/options b/auto/options
index 6cea8c7c2..010a6bbe2 100644
--- a/auto/options
+++ b/auto/options
@@ -14,6 +14,7 @@ NGX_PID_PATH=
NGX_LOCK_PATH=
NGX_USER=
NGX_GROUP=
+NGX_BUILD=
CC=${CC:-cc}
CPP=
@@ -178,6 +179,7 @@ do
--crossbuild=*) NGX_PLATFORM="$value" ;;
+ --build=*) NGX_BUILD="$value" ;;
--builddir=*) NGX_OBJS="$value" ;;
--with-rtsig_module) EVENT_RTSIG=YES ;;
@@ -341,6 +343,7 @@ cat << END
--group=GROUP set non-privileged group for
worker processes
+ --build=NAME set build name
--builddir=DIR set build directory
--with-rtsig_module enable rtsig module