+
+ # Apache 2.4 wants to fully-parse a config file when running -V,
+ # because the MPM is no longer compiled-in. Provide a trivial one.
+ require File::Temp;
+ my $tmp = File::Temp->new;
+ my ($mpm) = grep {/^mpm_/} @{$MODULES{$res{version}}{$res{variant}}};
+ print $tmp "LoadModule ${mpm}_module $apache_module_prefix/mod_${mpm}.so\n"
+ if $mpm;
+ print $tmp "ErrorLog /dev/null\n";
+ print $tmp "TransferLog /dev/null\n";
+ close $tmp;
+ $info = `$res{executable} -V -f $tmp`;
+ my %opts = ($info =~ m/^\s*-D\s+([A-Z_]+?)(?:="(.*)")$/mg);
+ %res = (%res, %opts);