Commit b348267b by Geoffrey Keating Committed by Geoffrey Keating

configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS): Quote properly for make, shell, etc.

	* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS): Quote properly for
	make, shell, etc.
	(baseargs): Likewise.
	* configure: Regenerate.

From-SVN: r70633
parent bab4470d
2003-08-20 Geoffrey Keating <geoffk@apple.com>
* configure.in (TOPLEVEL_CONFIGURE_ARGUMENTS): Quote properly for
make, shell, etc.
(baseargs): Likewise.
* configure: Regenerate.
2003-08-20 Bernardo Innocenti <bernie@develer.com>
* MAINTAINERS (Write After Approval): Add myself.
......
......@@ -66,8 +66,19 @@ progname=$0
# if PWD already has a value, it is probably wrong.
if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
# Export original configure arguments for use by sub-configures.
TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@"
# Export original configure arguments for use by sub-configures. These
# will be expanded once by make, and once by the shell, so they need to
# have '$' quoted for make, and then each argument quoted for the shell.
# What's more, the 'echo' below might expand backslashes.
cat <<\EOF_SED > conftestsed
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
tmp="'$progname'"
for ac_arg ; do
tmp="$tmp '"`echo "$ac_arg" | sed -fconftestsed`
done
rm -f conftestsed
TOPLEVEL_CONFIGURE_ARGUMENTS="$tmp"
AC_SUBST(TOPLEVEL_CONFIGURE_ARGUMENTS)
moveifchange=${srcdir}/move-if-change
......@@ -1754,20 +1765,24 @@ AC_SUBST_FILE(serialization_dependencies)
# Base args. Strip norecursion, cache-file, srcdir, host, build,
# target and nonopt. These are the ones we might not want to pass
# down to subconfigures.
baseargs=`echo " ${ac_configure_args} " | \
sed -e 's/ --no[[^ ]]* / /' \
-e 's/ --c[[a-z-]]*[[= ]][[^ ]]* / /' \
-e 's/ --sr[[a-z-]]*[[= ]][[^ ]]* / /' \
-e 's/ --ho[[a-z-]]*[[= ]][[^ ]]* / /' \
-e 's/ --bu[[a-z-]]*[[= ]][[^ ]]* / /' \
-e 's/ --t[[a-z-]]*[[= ]][[^ ]]* / /' \
-e 's/ -cache-file[[= ]][[^ ]]* / /' \
-e 's/ -srcdir[[= ]][[^ ]]* / /' \
-e 's/ -host[[= ]][[^ ]]* / /' \
-e 's/ -build[[= ]][[^ ]]* / /' \
-e 's/ -target[[= ]][[^ ]]* / /' \
-e "s/ [[^' -][^ ]*] / /" \
-e 's/^ *//;s/ *$//'`
cat <<\EOF_SED > conftestsed
s/ --no[[^ ]]* / /
s/ --c[[a-z-]]*[[= ]][[^ ]]* / /
s/ --sr[[a-z-]]*[[= ]][[^ ]]* / /
s/ --ho[[a-z-]]*[[= ]][[^ ]]* / /
s/ --bu[[a-z-]]*[[= ]][[^ ]]* / /
s/ --t[[a-z-]]*[[= ]][[^ ]]* / /
s/ -cache-file[[= ]][[^ ]]* / /
s/ -srcdir[[= ]][[^ ]]* / /
s/ -host[[= ]][[^ ]]* / /
s/ -build[[= ]][[^ ]]* / /
s/ -target[[= ]][[^ ]]* / /
s/ [[^' -][^ ]*] / /
s/^ *//;s/ *$//
s,\\,\\\\,g; s,\$,$$,g
EOF_SED
baseargs=`echo " ${ac_configure_args} " | sed -fconftestsed`
rm -f conftestsed
# For the build-side libraries, we just need to pretend we're native,
# and not use the same cache file. Multilibs are neither needed nor
......
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