diff options
author | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-13 13:39:36 +0000 |
---|---|---|
committer | jsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-11-13 13:39:36 +0000 |
commit | 9371935c7b577de774e27b01074de1aed9d90684 (patch) | |
tree | 4de78c5fbd017387a57f042285b8db8deb8e326f /configure | |
parent | f3751ef0be33148e3a5435722c822bed24db8062 (diff) | |
download | gcc-9371935c7b577de774e27b01074de1aed9d90684.tar.gz |
* configure: Provide the original toplevel configure arguments
(including $0) to subprocesses in the environment rather than
through gcc/configargs.h.
gcc:
* configure.in: Take toplevel configure arguments from the
environment to create configargs.h and substitute
gcc_config_arguments, taking account of any existing configargs.h
if reconfiguring.
* configure: Regenerate.
* gccbug.in: Include toplevel configure arguments in gccbug.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@37423 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/configure b/configure index 8698c45f730..55c5ca44c2a 100755 --- a/configure +++ b/configure @@ -89,7 +89,7 @@ subdirs= target_alias=NOTARGET target_makefile_frag= undefs=NOUNDEFS -version="$Revision: 1.30 $" +version="$Revision: 1.31 $" x11=default bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' @@ -162,6 +162,10 @@ case "${progname}" in ;; esac +# Export original configure arguments for use by sub-configures. +TOPLEVEL_CONFIGURE_ARGUMENTS="$progname $@" +export TOPLEVEL_CONFIGURE_ARGUMENTS + # Loop over all args while : @@ -401,10 +405,6 @@ do esac done -# Remember the pristine configure arguments for later. $arguments gets -# built up with further defaults in preparation for recursion. -original_arguments=$arguments - # process host and target # Do some error checking and defaulting for the host and target type. @@ -1605,14 +1605,6 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then done fi -# Remember configure arguments for later. -if [ -d gcc ]; then - cat > gcc/configargs.h <<EOF -/* Generated automatically. */ -static const char configuration_arguments[] = "$original_arguments"; -EOF -fi - # Perform the same cleanup as the trap handler, minus the "exit 1" of course, # and reset the trap handler. rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos |