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

subdirs=" if"

./cleanup.sh

autoscan || exit 1
autoheader || exit 1
aclocal -I ./aclocal || exit 1

if libtoolize --version 1 >/dev/null 2>/dev/null; then
  libtoolize --automake || exit 1
elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
  glibtoolize --automake || exit 1
fi

autoconf
automake -ac --add-missing --foreign || exit 1

for subdir in ${subdirs}; do 
    if [ -x "${subdir}/bootstrap.sh" ]; then 
      cwd="`pwd`"
      cd "${subdir}"
      ./bootstrap.sh
      cd "${cwd}"
    fi
done