summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-21 12:59:55 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2008-04-21 12:59:55 +0000
commit8da698577d0c23c323b0a1f5b11dd505b1de24e4 (patch)
treedf9734d0b2b1793d7b4d2575bc066021af6b84c6 /autogen.sh
parent81fbc20e2dabb3f59f8d4cb847a99181d3bf6f43 (diff)
autogen.sh: prefer to use automake-1.8 if available (avoids accidentally depending on 1.9 features)
Diffstat (limited to 'autogen.sh')
-rw-r--r--autogen.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d2db5ba25..ce3d8e744 100644
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,7 +3,19 @@ set -e
gtkdocize
-autoreconf -i
+if test -n "$AUTOMAKE"; then
+ : # don't override an explicit user request
+elif automake-1.8 --version &>/dev/null && \
+ aclocal-1.8 --version &>/dev/null; then
+ # If we have automake-1.8, use it. This helps to ensure that our build
+ # system doesn't accidentally grow automake-1.9 dependencies.
+ AUTOMAKE=automake-1.8
+ export AUTOMAKE
+ ACLOCAL=aclocal-1.8
+ export ACLOCAL
+fi
+
+autoreconf -i -f
run_configure=true
for arg in $*; do