]> git.kaiwu.me - nginx.git/commitdiff
add quotes for configure options with spaces
authorIgor Sysoev <igor@sysoev.ru>
Sun, 26 Apr 2009 19:37:38 +0000 (19:37 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Sun, 26 Apr 2009 19:37:38 +0000 (19:37 +0000)
auto/configure
auto/options
src/core/nginx.c

index fa52ad90d59879458099225b281fa7eb293d520f..333b1626b09ddf911c7c7ae382e80d1d049ab9a1 100755 (executable)
@@ -3,8 +3,6 @@
 # Copyright (C) Igor Sysoev
 
 
-NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`
-
 . auto/options
 . auto/init
 . auto/sources
index 8ec692e7d9d58b836b2fa549d596097cd68f5e82..0901fcd20a9f84475f1a52d65b343c18a41da920 100644 (file)
@@ -129,9 +129,12 @@ NGX_CPP_TEST=NO
 
 NGX_CPU_CACHE_LINE=
 
+opt=
 
 for option
 do
+     opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
+
     case "$option" in
         -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
            *) value="" ;;
@@ -267,6 +270,9 @@ do
 done
 
 
+NGX_CONFIGURE="$opt"
+
+
 if [ $help = yes ]; then
 
 cat << END
index f08af79dedaa3c65942f20c295dfb201b4a1aa9f..bf2f38db8d8a6b9d9afee73ccf18661aceeb2b4e 100644 (file)
@@ -232,7 +232,7 @@ main(int argc, char *const *argv)
 #ifdef NGX_COMPILER
             ngx_log_stderr(0, "built by " NGX_COMPILER);
 #endif
-            ngx_log_stderr(0, "configure arguments: " NGX_CONFIGURE);
+            ngx_log_stderr(0, "configure arguments:" NGX_CONFIGURE);
         }
 
         if (!ngx_test_config) {