Skip to content

Commit

Permalink
add quotes for configure options with spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
igorsysoev committed Apr 26, 2009
1 parent 43e1b88 commit 0e60e4f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions auto/configure
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
# Copyright (C) Igor Sysoev


NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`

. auto/options
. auto/init
. auto/sources
Expand Down
6 changes: 6 additions & 0 deletions auto/options
Original file line number Diff line number Diff line change
Expand Up @@ -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="" ;;
Expand Down Expand Up @@ -267,6 +270,9 @@ do
done


NGX_CONFIGURE="$opt"


if [ $help = yes ]; then

cat << END
Expand Down
2 changes: 1 addition & 1 deletion src/core/nginx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 0e60e4f

Please sign in to comment.