This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Configure stripping off first argument to subdirs
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Cc: aoliva at redhat dot com
- Date: Mon, 30 Dec 2002 21:45:19 -0500
- Subject: Configure stripping off first argument to subdirs
I just spent a little while figuring out why my sysroot patches were broken,
and found that the problem is that configure is stripping out the first
option from ${ac_configure_args}. This seems to be the problem:
baseargs=`echo " ${ac_configure_args} " | \
sed -e 's/ --no[^ ]* / /' \
-e 's/ --cache[a-z-]*=[^ ]* / /' \
-e 's/ --sr[a-z-]*=[^ ]* / /' \
-e 's/ --ho[a-z-]*=[^ ]* / /' \
-e 's/ --bu[a-z-]*=[^ ]* / /' \
-e 's/ --ta[a-z-]*=[^ ]* / /' \
-e 's/ [^-][^ ]* / /' \
-e 's/^ *//;s/ *$//'`
ac_configure_args=" --prefix=blah --with-sysroot=blah" at this point. Note
the leading space. -e 's/ [^-][^ ]* / /' then deletes " --prefix=blah".
Is the leading space the problem, or should that say "[^ -]" instead?
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer