diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-05 22:55:19 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-05 22:55:19 +0000 |
commit | 4a0e2d42652a3252dd5830e43b43d312e6568a99 (patch) | |
tree | 8dd4b247d2357803a65553c78f9a78399de88075 /configure | |
parent | 3fdf0a02ca043cc722cd4800e7c77c8302e93abd (diff) | |
download | gcc-4a0e2d42652a3252dd5830e43b43d312e6568a99.tar.gz |
* configure: Save configure arguments to gcc/configargs.h.
* gcc.c (main): Include generated configargs.h header
and use arguments in '-v' output.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36734 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/configure b/configure index e0d60261c70..70dcb5bb04e 100755 --- a/configure +++ b/configure @@ -88,7 +88,7 @@ subdirs= target_alias=NOTARGET target_makefile_frag= undefs=NOUNDEFS -version="$Revision: 1.27 $" +version="$Revision: 1.28 $" x11=default bindir='${exec_prefix}/bin' sbindir='${exec_prefix}/sbin' @@ -400,6 +400,10 @@ 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. @@ -1600,6 +1604,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then done fi +# Remember configure arguments for later. +cat > gcc/configargs.h <<EOF +/* Generated automatically. */ +static const char configuration_arguments[] = "$original_arguments"; +EOF + # 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 |