diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-21 16:18:40 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-04-21 16:18:40 +0000 |
commit | fb208c34a09e60f88ffa5e3dbb311567a442bbe1 (patch) | |
tree | 0b79ce14827209d95069a61851071b5bb48daabe /autogen.sh | |
parent | 5e2f2217b52af21e7166f40e27781a610242267f (diff) | |
download | telepathy-salut-fb208c34a09e60f88ffa5e3dbb311567a442bbe1.tar.gz |
Prefer to run under automake-1.8 if available, to avoid automake 1.9 dependencies creeping in while we claim to support 1.8
20080421161840-53eee-2efdc56698a24c917bfcafc8e27d333039df2168.gz
Diffstat (limited to 'autogen.sh')
-rw-r--r-- | autogen.sh | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,9 +1,16 @@ #!/bin/sh set -e -if test -z "$MAKE" -then - MAKE=make +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 |