summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2019-01-30 15:10:56 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-01-30 20:32:18 +0100
commit191966900865bd720f356941cb392abf3538df31 (patch)
treebbf307fe8813e7cd6435a817706dfa91b8cf26b7 /autogen.sh
parentfb3c3216ba1a6fc978176eebcef0cab4599a39e7 (diff)
don't require /autoconf/ to be 2.68 (also allow e.g. autoconf268)
partially reverts 182f5a0f34fa45d2f74ba22eda41d4e39dca93e5 in the sense that configure still insists on autoconf 2.68, but in a way that allows to specify an already installed copy (that the libnumbertext build already picked up successfully) While there is autoconf268 package, it gets installed as autoconf268, but aclocal doesn't provide a way to use something else than "autoconf" In the spirit of "keeping it simple", no conditional check is done whether libnumbertext is actually enabled or not. Change-Id: Ice05a70ef56a4ed3428c74d15d6aeeaa54f71c0b Reviewed-on: https://gerrit.libreoffice.org/67159 Reviewed-by: Michael Stahl <Michael.Stahl@cib.de> Tested-by: Jenkins
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 6 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 8c0bb0ade4ba..0ac16f1f9779 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -39,6 +39,7 @@ sub clean()
}
my $aclocal;
+my $autoconf;
# check we have various vital tools
sub sanity_checks($)
@@ -48,7 +49,7 @@ sub sanity_checks($)
my %required =
(
'pkg-config' => "pkg-config is required to be installed",
- 'autoconf' => "autoconf is required",
+ $autoconf => "autoconf is required",
$aclocal => "$aclocal is required",
);
@@ -135,6 +136,9 @@ die "\$src_path must not contain spaces, but it is '$src_path'." if ($src_path =
# Alloc $ACLOCAL to specify which aclocal to use
$aclocal = $ENV{ACLOCAL} ? $ENV{ACLOCAL} : 'aclocal';
+# Alloc $AUTOCONF to specify which autoconf to use
+# (e.g. autoconf268 from a backports repo)
+$autoconf = $ENV{AUTOCONF} ? $ENV{AUTOCONF} : 'autoconf';
my $system = `uname -s`;
chomp $system;
@@ -191,7 +195,7 @@ if ($src_path ne $build_path)
}
system ("$aclocal $aclocal_flags") && die "Failed to run aclocal";
unlink ("configure");
-system ("autoconf -I ${src_path}") && die "Failed to run autoconf";
+system ("$autoconf -I ${src_path}") && die "Failed to run autoconf";
die "Failed to generate the configure script" if (! -f "configure");
# Handle help arguments first, so we don't clobber autogen.lastrun