diff options
author | lloyd <[email protected]> | 2008-09-06 23:04:12 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-06 23:04:12 +0000 |
commit | 5222834ee1feadffc5ba01a0bb972b08d542ed02 (patch) | |
tree | 90a2f4438f6aa9a2157090d8d56b450b5f648640 /configure.pl | |
parent | 2c39ad817ed4ec734684553a5e474f1c8f6da932 (diff) |
Include a comment in the generated build.h stating that the file was
automatically generated, along with the time, the command line arguments,
the target compiler/CPU, and the enabled modules.
Diffstat (limited to 'configure.pl')
-rwxr-xr-x | configure.pl | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/configure.pl b/configure.pl index a9251cd62..8cd3adbfb 100755 --- a/configure.pl +++ b/configure.pl @@ -48,6 +48,9 @@ sub main { $$config{'checks-dir'} = File::Spec->catdir($base_dir, 'checks'); $$config{'doc-dir'} = File::Spec->catdir($base_dir, 'doc'); + $$config{'command-line'} = $0 . ' ' . join(' ', @ARGV); + $$config{'timestamp'} = gmtime; + %CPU = read_info_files($config, 'arch', \&get_arch_info); %OPERATING_SYSTEM = read_info_files($config, 'os', \&get_os_info); %COMPILER = read_info_files($config, 'cc', \&get_cc_info); @@ -944,6 +947,8 @@ sub realname { sub load_modules { my ($config) = @_; + my @mod_names; + foreach my $mod (sort keys %{$$config{'modules'}}) { load_module($config, $mod); @@ -955,8 +960,10 @@ sub load_modules { } } + push @mod_names, $mod; } + $$config{'mod-list'} = join("\n", @mod_names); my $gen_defines = sub { my $defines = ''; |