summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 16751d686e731e6d86989f9d308bd1fcf9543dfa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh

set -e

LIBTOOLIZE=libtoolize
${LIBTOOLIZE} --version | head -1
echo "libtoolize: minimum version required: 1.4.2"

AUTOCONF=autoconf
${AUTOCONF} --version | head -1
echo "autoconf: minimum version required: 2.59"

# Autoheader is part of autoconf
AUTOHEADER=autoheader
${AUTOHEADER} --version | head -1
echo "autoheader: minimum version required: 2.59"

AUTOMAKE=automake
if test -x /usr/bin/automake-1.8; then
  AUTOMAKE=/usr/bin/automake-1.8
elif test -x /usr/bin/automake-1.7; then
  AUTOMAKE=/usr/bin/automake-1.7
fi
${AUTOMAKE} --version | head -1
echo "automake: minimum version required: 1.7.0"

# Aclocal is part of automake
ACLOCAL=aclocal
if test -x /usr/bin/aclocal-1.8; then
  ACLOCAL=/usr/bin/aclocal-1.8
elif test -x /usr/bin/aclocal-1.7; then
  ACLOCAL=/usr/bin/aclocal-1.7
fi
${ACLOCAL} --version | head -1
echo "aclocal: minimum version required: 1.7.0"

echo "libtoolize ..."
${LIBTOOLIZE} --force --copy

echo "aclocal ..."
${ACLOCAL} -I .

echo "autoheader ..."
${AUTOHEADER} --force

echo "automake ..."
${AUTOMAKE} --add-missing --copy

echo "autoconf ..."
${AUTOCONF} --force

echo "Finished"