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

if [ -e INSTALL ]; then
    have_INSTALL=true
else
    have_INSTALL=false
fi

mkdir -p autotools

aclocal
autoheader
automake -ac
autoconf
automake

# The INSTALL file is autogenerated, so it isn't stored in version control.
# As the file isn't present, automake's -a option will install generic
# install instructions.  So remove INSTALL if automake installed one.

if ! $have_INSTALL; then
    rm -f INSTALL
fi

./configure "$@"