summaryrefslogtreecommitdiff
path: root/autogen.sh
blob: d9cbcfcaa56367f7585f388a92cd7ed469a4a7e1 (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 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 "$@"