summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 0969fc149a8c5ad54b196ccd85497460d91d922f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/sh
set -e

mkdir -p m4
rm -f m4/libtool.m4  m4/ltoptions.m4  m4/ltsugar.m4  m4/ltversion.m4  m4/lt~obsolete.m4

if test -n "$AUTOMAKE"; then
    : # don't override an explicit user request
elif automake-1.9 --version >/dev/null 2>/dev/null && \
     aclocal-1.9 --version >/dev/null 2>/dev/null; then
    # If we have automake-1.9, use it. This helps to ensure that our build
    # system doesn't accidentally grow automake-1.10 dependencies.
    AUTOMAKE=automake-1.9
    export AUTOMAKE
    ACLOCAL=aclocal-1.9
    export ACLOCAL
fi

autoreconf -i -f