]> git.ipfire.org Git - thirdparty/lldpd.git/blob - autogen.sh
build: use a simplified autogen.sh script
[thirdparty/lldpd.git] / autogen.sh
1 #!/bin/sh
2
3 set -e
4
5 [ ! -d .gitmodules ] || {
6 echo "autogen.sh: updating git submodules"
7 git submodule init
8 git submodule update
9 }
10
11 echo "autogen.sh: start libtoolize to get ltmain.sh"
12 libtoolize --copy --force
13 echo "autogen.sh: reconfigure with autoreconf"
14 autoreconf -vif -I m4 || {
15 echo "autogen.sh: autoreconf has failed ($?), let's do it manually"
16 for dir in . libevent; do
17 echo "autogen.sh: configure `basename \`readlink -f $dir\``"
18 (cd $dir && aclocal -I m4)
19 (cd $dir && libtoolize --automake --copy --force)
20 (cd $dir && aclocal -I m4)
21 (cd $dir && autoconf --force)
22 (cd $dir && autoheader)
23 (cd $dir && automake --add-missing --copy --force-missing)
24 done
25 }
26
27 echo "autogen.sh: for the next step, run ./configure"
28
29 exit 0