aboutsummaryrefslogtreecommitdiffstats
path: root/configure.pl
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-10-01 17:53:14 +0000
committerlloyd <[email protected]>2008-10-01 17:53:14 +0000
commit7f7827b694044d9394fb45c18c6fe518a477fc0b (patch)
treedc06c7aed2c153e49911b934328da6c4ed6dddb5 /configure.pl
parent285024f5adfa70a17ac83f7187c8f1aaa1f38ec3 (diff)
Don't generate the makefile until after we have processed build.h.in
Markus Wanner noted on the mailing list that build.h was not being installed. That is because it was not included in the HEADERS variable in the Makefile, and build.h did not yet exist when configure.pl scanned the source and include directories. Rearrange the order of operations in configure.pl a bit so first build.h is generated and then the makefile is.
Diffstat (limited to 'configure.pl')
-rwxr-xr-xconfigure.pl12
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.pl b/configure.pl
index 17cadccc1..f6177de18 100755
--- a/configure.pl
+++ b/configure.pl
@@ -145,13 +145,15 @@ sub main {
write_pkg_config($config);
- generate_makefile($config);
+ determine_config($config);
process_template(File::Spec->catfile($$config{'config-dir'}, 'buildh.in'),
File::Spec->catfile($$config{'build-dir'}, 'build.h'),
$config);
$$config{'includes'}{'build.h'} = $$config{'build-dir'};
+ generate_makefile($config);
+
copy_include_files($config);
}
@@ -1759,11 +1761,9 @@ sub build_cmds {
return join("\n\n", @output_lines);
}
-sub generate_makefile {
+sub determine_config {
my ($config) = @_;
- trace('entering');
-
sub os_ar_command {
return os_info_for(shift, 'ar_command');
}
@@ -1879,6 +1879,10 @@ sub generate_makefile {
'install_cmd_exec' => os_info_for($os, 'install_cmd_exec'),
'install_cmd_data' => os_info_for($os, 'install_cmd_data'),
});
+}
+
+sub generate_makefile {
+ my ($config) = @_;
my $is_in_doc_dir =
sub { -e File::Spec->catfile($$config{'doc-dir'}, $_[0]) };