Commit 1722c704 by Andreas Schwab Committed by Jeff Law

* configure: Fix quoting inside arguments of eval.

From-SVN: r30179
parent 92bcb380
1999-10-25 Andreas Schwab <schwab@suse.de>
* configure: Fix quoting inside arguments of eval.
1999-10-21 Nick Clifton <nickc@cygnus.com> 1999-10-21 Nick Clifton <nickc@cygnus.com>
* config-ml.in: Allow suppression of some ARM multilibs. * config-ml.in: Allow suppression of some ARM multilibs.
......
...@@ -86,7 +86,7 @@ subdirs= ...@@ -86,7 +86,7 @@ subdirs=
target_alias=NOTARGET target_alias=NOTARGET
target_makefile_frag= target_makefile_frag=
undefs=NOUNDEFS undefs=NOUNDEFS
version="$Revision: 1.22 $" version="$Revision: 1.23 $"
x11=default x11=default
bindir='${exec_prefix}/bin' bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin' sbindir='${exec_prefix}/sbin'
...@@ -237,7 +237,7 @@ do ...@@ -237,7 +237,7 @@ do
esac esac
enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` enableopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
eval "$enableopt='$optarg'" eval "$enableopt=\$optarg"
enableoptions="$enableoptions '$option'" enableoptions="$enableoptions '$option'"
;; ;;
--exec-prefix* | --ex*) --exec-prefix* | --ex*)
...@@ -370,7 +370,7 @@ do ...@@ -370,7 +370,7 @@ do
esac esac
withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'` withopt=`echo ${option} | sed 's:^--::;s:=.*$::;s:-:_:g'`
eval $withopt="$optarg" eval $withopt="\$optarg"
withoptions="$withoptions $option" withoptions="$withoptions $option"
;; ;;
--without-*) --without-*)
...@@ -913,7 +913,7 @@ if [ "${build}" != "${host}" ]; then ...@@ -913,7 +913,7 @@ if [ "${build}" != "${host}" ]; then
tools="${tools} WINDRES WINDRES_FOR_TARGET YACC" tools="${tools} WINDRES WINDRES_FOR_TARGET YACC"
for var in ${tools}; do for var in ${tools}; do
if [ -z "`eval 'echo $'"${var}"`" ] && [ -r Makefile ]; then if eval [ -z \"\$${var}\" ] && [ -r Makefile ]; then
sed -n -e ':loop sed -n -e ':loop
/\\$/ N /\\$/ N
s/\\\n//g s/\\\n//g
...@@ -922,7 +922,7 @@ t loop ...@@ -922,7 +922,7 @@ t loop
< Makefile > Makefile.v < Makefile > Makefile.v
t=`tail -1 Makefile.v` t=`tail -1 Makefile.v`
if [ -n "${t}" ]; then if [ -n "${t}" ]; then
eval "${var}='${t}'" eval "${var}=\${t}"
fi fi
rm -f Makefile.v rm -f Makefile.v
fi fi
...@@ -1420,7 +1420,7 @@ EOF ...@@ -1420,7 +1420,7 @@ EOF
# tools. # tools.
if [ "${build}" != "${host}" ]; then if [ "${build}" != "${host}" ]; then
for var in ${tools}; do for var in ${tools}; do
val=`eval 'echo $'"${var}"` eval val=\$${var}
sed -e "/^${var}[ ]*=/{ sed -e "/^${var}[ ]*=/{
:loop1 :loop1
/\\\\$/ N /\\\\$/ N
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment