Klaus Demo nginx / c0399e2
r2756 merge: add quotes for configure options with spaces Igor Sysoev 10 years ago
3 changed file(s) with 8 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
11
22 # Copyright (C) Igor Sysoev
33
4
5 NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'`
64
75 . auto/options
86 . auto/init
118118
119119 NGX_CPU_CACHE_LINE=
120120
121 opt=
121122
122123 for option
123124 do
125 opt="$opt `echo $option | sed -e \"s/\(--[^=]*=\)\(.* .*\)/\1'\2'/\"`"
126
124127 case "$option" in
125128 -*=*) value=`echo "$option" | sed -e 's/[-_a-zA-Z0-9]*=//'` ;;
126129 *) value="" ;;
247250 done
248251
249252
253 NGX_CONFIGURE="$opt"
254
255
250256 if [ $help = yes ]; then
251257
252258 cat << END
260260 }
261261 #endif
262262
263 p = "configure arguments: " NGX_CONFIGURE CRLF;
264 n = sizeof("configure arguments :" NGX_CONFIGURE CRLF) - 1;
263 p = "configure arguments:" NGX_CONFIGURE CRLF;
264 n = sizeof("configure arguments:" NGX_CONFIGURE CRLF) - 1;
265265
266266 if (ngx_write_fd(ngx_stderr_fileno, p, n) != n) {
267267 return 1;