From c0399e22bb3f1ec7b7074cf078b0146cbb57d448 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 18 May 2009 16:17:51 +0000 Subject: r2756 merge: add quotes for configure options with spaces --- auto/configure | 2 -- auto/options | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'auto') diff --git a/auto/configure b/auto/configure index 00a7f4872..8cef6df36 100755 --- a/auto/configure +++ b/auto/configure @@ -3,8 +3,6 @@ # Copyright (C) Igor Sysoev -NGX_CONFIGURE=`echo $@ | sed 's/"/\\\\"/g'` - . auto/options . auto/init . auto/sources diff --git a/auto/options b/auto/options index 268ece99c..8a1b8b25e 100644 --- a/auto/options +++ b/auto/options @@ -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 -- cgit