aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
blob: 9b13ad9ec2ccecbe0426ad0e7f423e44bc4e0bbf (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
#!/bin/sh

if command -v hall &>/dev/null; then
    hall build -x
fi

command -v autoreconf &>/dev/null
HAS_AUTORECONF=$?
command -v autoconf &>/dev/null
HAS_AUTOCONF=$?
command -v automake &>/dev/null
HAS_AUTOMAKE=$?
command -v make &>/dev/null
HAS_MAKE=$?
command -v guile &>/dev/null
HAS_GUILE=$?

if ! [ $HAS_AUTORECONF = 0 \
       -a $HAS_AUTOCONF = 0 \
       -a $HAS_AUTOMAKE = 0 \
       -a $HAS_MAKE = 0 \
       -a $HAS_GUILE = 0 ]
then
    echo "A build system consisting at least of GNU Autotools,"
    echo "guile 3, and make is required for building reading-heap."
    echo ""
    echo "Please install these and try again."
    exit 1;
fi

autoreconf --install || exit 1