diff src/core/nginx.h @ 5701:1209b8a7b077

Configure: the --build= option. If set, its value is output in "nginx -v" and in the error log.
author Ruslan Ermilov <ru@nginx.com>
date Tue, 20 May 2014 16:10:07 +0400
parents 1710bf72243e
children 9b0c92f22bbf
line wrap: on
line diff
--- a/src/core/nginx.h
+++ b/src/core/nginx.h
@@ -13,6 +13,12 @@
 #define NGINX_VERSION      "1.7.1"
 #define NGINX_VER          "nginx/" NGINX_VERSION
 
+#ifdef NGX_BUILD
+#define NGINX_VER_BUILD    NGINX_VER " (" NGX_BUILD ")"
+#else
+#define NGINX_VER_BUILD    NGINX_VER
+#endif
+
 #define NGINX_VAR          "NGINX"
 #define NGX_OLDPID_EXT     ".oldbin"