summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2018-02-20 22:46:54 +0100
committerMax Kellermann <max@musicpd.org>2018-02-20 22:46:54 +0100
commit992c52ce7f2b6527b23922b26e256564373a73a6 (patch)
tree8fc6f2936764d86990b0b76450a413cfd6d6da77 /python
parent026aef7465506429ee94e7b5b68e36ab8ed5a849 (diff)
python/build/autotools.py: add autoreconf support
Diffstat (limited to 'python')
-rw-r--r--python/build/autotools.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/python/build/autotools.py b/python/build/autotools.py
index 58d5d8c54..9abd418ff 100644
--- a/python/build/autotools.py
+++ b/python/build/autotools.py
@@ -5,6 +5,7 @@ from build.makeproject import MakeProject
class AutotoolsProject(MakeProject):
def __init__(self, url, md5, installed, configure_args=[],
autogen=False,
+ autoreconf=False,
cppflags='',
ldflags='',
libs='',
@@ -13,6 +14,7 @@ class AutotoolsProject(MakeProject):
MakeProject.__init__(self, url, md5, installed, **kwargs)
self.configure_args = configure_args
self.autogen = autogen
+ self.autoreconf = autoreconf
self.cppflags = cppflags
self.ldflags = ldflags
self.libs = libs
@@ -28,6 +30,8 @@ class AutotoolsProject(MakeProject):
subprocess.check_call(['aclocal'], cwd=src)
subprocess.check_call(['automake', '--add-missing', '--force-missing', '--foreign'], cwd=src)
subprocess.check_call(['autoconf'], cwd=src)
+ if self.autoreconf:
+ subprocess.check_call(['autoreconf', '-vif'], cwd=src)
build = self.make_build_path(toolchain)