This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: autoconf 2.61 on debian etch and GCC


* Andreas Schwab wrote on Tue, Jul 03, 2007 at 06:58:56PM CEST:
> To avoid expanding $progname twice:
> 
> eval "set x \"\$progname\" $ac_configure_args"

Indeed; thanks!  Updated proposed patch (I have no maintainer privs).

:ADDPATCH configure:

ChangeLog:
2007-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>

	* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Use
	$ac_configure_args, not "$@".  Do not use `set --'.
	(baseargs): Likewise.
	* configure: Regenerate.

Index: configure.ac
===================================================================
--- configure.ac	(revision 126264)
+++ configure.ac	(working copy)
@@ -88,7 +88,8 @@
 # Export original configure arguments for use by sub-configures.
 # Quote arguments with shell meta charatcers.
 TOPLEVEL_CONFIGURE_ARGUMENTS=
-set -- "$progname" "$@"
+eval "set x \"\$progname\" $ac_configure_args"
+shift
 for ac_arg
 do
   case "$ac_arg" in
@@ -2090,7 +2091,8 @@
 baseargs=
 keep_next=no
 skip_next=no
-eval "set -- $ac_configure_args"
+eval "set x $ac_configure_args"
+shift
 for ac_arg
 do
   if test X"$skip_next" = X"yes"; then


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]