diff auto/options @ 2755:a65976a205a5

add quotes for configure options with spaces
author Igor Sysoev <igor@sysoev.ru>
date Sun, 26 Apr 2009 19:37:38 +0000
parents 3a8a53c0c42f
children 77264e0157ad
line wrap: on
line diff
--- a/auto/options
+++ b/auto/options
@@ -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