summaryrefslogtreecommitdiff
path: root/morphlib/buildsystem.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-08-08 15:18:53 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-08-08 15:18:53 +0100
commit635057a7f9cf8252dd6fa5cbce4588aa3ca11373 (patch)
treec2e809cf618577f53c03033585fde6f80498a8a3 /morphlib/buildsystem.py
parentaa513b7c9eebeef622571cf153e68a187c914cbe (diff)
downloadmorph-635057a7f9cf8252dd6fa5cbce4588aa3ca11373.tar.gz
Add support for autogen in addition to autogen.sh
This is needed to support Colin Walters's suggested build API (http://people.gnome.org/~walters/docs/build-api.txt). In fact, it's all we need to support it, I think. Reviewed-By: Richard Maw (on irc)
Diffstat (limited to 'morphlib/buildsystem.py')
-rw-r--r--morphlib/buildsystem.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/morphlib/buildsystem.py b/morphlib/buildsystem.py
index 0efd8e73..8e213b75 100644
--- a/morphlib/buildsystem.py
+++ b/morphlib/buildsystem.py
@@ -100,7 +100,8 @@ class AutotoolsBuildSystem(BuildSystem):
def __init__(self):
self.configure_commands = [
'export NOCONFIGURE=1; ' +
- 'if [ -e autogen.sh ]; then ./autogen.sh; ' +
+ 'if [ -e autogen ]; then ./autogen; ' +
+ 'elif [ -e autogen.sh ]; then ./autogen.sh; ' +
'elif [ ! -e ./configure ]; then autoreconf -ivf; fi',
'./configure --prefix="$PREFIX"',
]
@@ -115,6 +116,7 @@ class AutotoolsBuildSystem(BuildSystem):
def used_by_project(self, exists):
indicators = [
+ 'autogen',
'autogen.sh',
'configure',
'configure.ac',