Add GpgME module and improve autotools support

When a configure.ac or configure.in file exists in the source
dir but no configure file and an autogen.sh script exists this
will now run ./autogen.sh in the source dir to hopefully
create the configure file and then use that in the actual configure
step.

This is required for all GnuPG Libraries and so also for GPGME.

REVIEW: 129070
wilder
Andre Heinecke 10 years ago
parent c8b6869f55
commit 63adc7bb61
  1. 6
      kf5-frameworks-build-include
  2. 19
      modules/ksb/BuildSystem/Autotools.pm

@ -77,3 +77,9 @@ module grantlee
repository https://github.com/steveire/grantlee.git
branch master
end module
module gpgme
repository git://git.gnupg.org/gpgme.git
branch master
configure-flags --enable-maintainer-mode --enable-languages=cpp,qt
end module

@ -34,12 +34,27 @@ sub configureInternal
my @bootstrapOptions = split_quoted_on_whitespace(
$module->getOption('configure-flags', 'module') // '');
p_chdir($module->fullpath('build'));
my $configureCommand = first { -e "$sourcedir/$_" } qw(configure autogen.sh);
my $configureInFile = first { -e "$sourcedir/$_" } qw(configure.in configure.ac);
# If we have a configure.in or configure.ac but configureCommand is autogen.sh
# we assume that configure is created by autogen.sh as usual in some GNU Projects.
# So we run autogen.sh first to create the configure command and
# recheck for that.
if ($configureInFile && $configureCommand eq 'autogen.sh')
{
p_chdir($sourcedir);
my $err = log_command($module, 'autogen', ["$sourcedir/$configureCommand"]);
return 0 if $err != 0;
# Now recheck
$configureCommand = first { -e "$sourcedir/$_" } qw(configure autogen.sh);
}
croak_internal("No configure command available") unless $configureCommand;
p_chdir($module->fullpath('build'));
return log_command($module, 'configure', [
"$sourcedir/$configureCommand", "--prefix=$installdir",
@bootstrapOptions

Loading…
Cancel
Save