Commit f5fa9a5b by Phil Edwards Committed by Richard Henderson

configure: Save configure arguments to gcc/configargs.h.

        * configure: Save configure arguments to gcc/configargs.h.

        * gcc.c (main): Include generated configargs.h header
        and use arguments in '-v' output.

From-SVN: r36734
parent cfa82f4d
2000-10-05 Phil Edwards <pme@gcc.gnu.org>
* configure: Save configure arguments to gcc/configargs.h.
2000-10-04 Philipp Thomas <pthomas@suse.de> 2000-10-04 Philipp Thomas <pthomas@suse.de>
* config.guess: Import CVS version 1.157. * config.guess: Import CVS version 1.157.
......
...@@ -88,7 +88,7 @@ subdirs= ...@@ -88,7 +88,7 @@ subdirs=
target_alias=NOTARGET target_alias=NOTARGET
target_makefile_frag= target_makefile_frag=
undefs=NOUNDEFS undefs=NOUNDEFS
version="$Revision: 1.27 $" version="$Revision: 1.28 $"
x11=default x11=default
bindir='${exec_prefix}/bin' bindir='${exec_prefix}/bin'
sbindir='${exec_prefix}/sbin' sbindir='${exec_prefix}/sbin'
...@@ -400,6 +400,10 @@ do ...@@ -400,6 +400,10 @@ do
esac esac
done 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 # process host and target
# Do some error checking and defaulting for the host and target type. # Do some error checking and defaulting for the host and target type.
...@@ -1600,6 +1604,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then ...@@ -1600,6 +1604,12 @@ if [ -z "${norecursion}" ] && [ -n "${configdirs}" ] ; then
done done
fi 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, # Perform the same cleanup as the trap handler, minus the "exit 1" of course,
# and reset the trap handler. # and reset the trap handler.
rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos rm -f ${tmpfile}.com ${tmpfile}.tgt ${tmpfile}.hst ${tmpfile}.pos
......
2000-10-05 Phil Edwards <pme@gcc.gnu.org>
* gcc.c (main): Include generated configargs.h header
and use arguments in '-v' output.
Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Thu Oct 5 16:16:57 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* gcc.c: Move data on prefixes forward in file and reorganize. * gcc.c: Move data on prefixes forward in file and reorganize.
......
...@@ -100,6 +100,9 @@ static char dir_separator_str[] = { DIR_SEPARATOR, 0 }; ...@@ -100,6 +100,9 @@ static char dir_separator_str[] = { DIR_SEPARATOR, 0 };
to the calling program. */ to the calling program. */
static int pass_exit_codes; static int pass_exit_codes;
/* Definition of string containing the arguments given to configure. */
#include "configargs.h"
/* Flag saying to print the directories gcc will search through looking for /* Flag saying to print the directories gcc will search through looking for
programs, libraries, etc. */ programs, libraries, etc. */
...@@ -5505,6 +5508,8 @@ main (argc, argv) ...@@ -5505,6 +5508,8 @@ main (argc, argv)
{ {
int n; int n;
notice ("Configured with: %s\n", configuration_arguments);
/* compiler_version is truncated at the first space when initialized /* compiler_version is truncated at the first space when initialized
from version string, so truncate version_string at the first space from version string, so truncate version_string at the first space
before comparing. */ before comparing. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment