This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] cleanup targargs in toplevel configure.in
- From: Nathanael Nerode <neroden at doctormoo dot dyndns dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dj at redhat dot com
- Date: Sat, 4 May 2002 00:53:57 -0400
- Subject: [PATCH] cleanup targargs in toplevel configure.in
This small patch to top level configure.in removes the --srcdir argument from
'targargs' and 'buildargs', since it's already overridden in the Makefile.
This will also make configuring 'host' subdirectories in the Makefile (rather
than the configure file) an easier task. There's also a small rearrangment
of the affected code for clarity.
2002-05-04 Nathanael Nerode <neroden@twcny.rr.com>
* configure.in : remove --srcdir argument from targargs and buildargs
(it's always overridden in the Makefile anyway). Rearrange a bit.
*** configure.in Sat May 4 00:22:01 2002
--- configure.in.new Sat May 4 00:48:14 2002
*************** if test "${shared}" = "yes" ; then
*** 1401,1412 ****
esac
fi
! # Record target_configdirs and the configure arguments for target and
! # build configuration in Makefile.
! target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
! targargs=`echo "${arguments}" | \
sed -e 's/--no[^ ]*//' \
-e 's/--cache[a-z-]*=[^ ]*//' \
-e 's/--ho[a-z-]*=[^ ]*//' \
-e 's/--bu[a-z-]*=[^ ]*//' \
-e 's/--ta[a-z-]*=[^ ]*//'`
--- 1401,1412 ----
esac
fi
! # Base args. Strip norecursion, cache-file, srcdir, host, build, target.
! # These are the ones we might not want to pass down to subconfigures.
! baseargs=`echo "${arguments}" | \
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-]*=[^ ]*//'`
*************** targargs=`echo "${arguments}" | \
*** 1414,1420 ****
# 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
# desired.
! buildargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${targargs}"
# Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built
--- 1414,1425 ----
# 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
# desired.
! buildargs="--cache-file=../config.cache --build=${build_alias} --host=${build_alias} ${baseargs}"
!
! # Record target_configdirs and the configure arguments for target and
! # build configuration in Makefile.
! target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
! targargs=${baseargs}
# Passing a --with-cross-host argument lets the target libraries know
# whether they are being built with a cross-compiler or being built