]> git.kaiwu.me - nginx.git/commitdiff
r2756 merge:
authorIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 16:17:51 +0000 (16:17 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 18 May 2009 16:17:51 +0000 (16:17 +0000)
add quotes for configure options with spaces

auto/configure
auto/options
src/core/nginx.c

index 00a7f48722ced335529786265cb1736b1bcad4fe..8cef6df369b46a242592596bcf092ab58bb7ef54 100755 (executable)
@@ -3,8 +3,6 @@
 # Copyright (C) Igor Sysoev
 
 
-NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`
-
 . auto/options
 . auto/init
 . auto/sources
index 268ece99ca527b7a8753195b8c7c1c73f2221371..8a1b8b25e1668ff389463f1523f0c9f2b6b1b3bc 100644 (file)
@@ -119,9 +119,12 @@ NGX_GOOGLE_PERFTOOLS=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="" ;;
@@ -248,6 +251,9 @@ do
 done
 
 
+NGX_CONFIGURE="$opt"
+
+
 if [ $help = yes ]; then
 
 cat << END
index 28624db764afc4c73b3651f47139cf94ffed4d05..05d26eefcdc1548f7cf9bb8a4ec36e8b713f2d47 100644 (file)
@@ -261,8 +261,8 @@ main(int argc, char *const *argv)
             }
 #endif
 
-            p = "configure arguments: " NGX_CONFIGURE CRLF;
-            n = sizeof("configure arguments :" NGX_CONFIGURE CRLF) - 1;
+            p = "configure arguments:" NGX_CONFIGURE CRLF;
+            n = sizeof("configure arguments:" NGX_CONFIGURE CRLF) - 1;
 
             if (ngx_write_fd(ngx_stderr_fileno, p, n) != n) {
                 return 1;