blob: 0a548eaa2fbebb28e0c647c9d368465108da5686 [file] [log] [blame]
Marc Slemkob09f5882006-08-23 22:03:34 +00001#!/bin/sh
2
David Reiss832b2622007-12-28 18:25:33 +00003subdirs=" if"
Marc Slemkob09f5882006-08-23 22:03:34 +00004
Mark Sleeeb0d0242007-01-25 07:58:55 +00005./cleanup.sh
Marc Slemkob09f5882006-08-23 22:03:34 +00006
David Reiss832b2622007-12-28 18:25:33 +00007autoscan || exit 1
8autoheader || exit 1
9aclocal -I ./aclocal || exit 1
10
11if libtoolize --version 1 >/dev/null 2>/dev/null; then
12 libtoolize --automake || exit 1
13elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
14 glibtoolize --automake || exit 1
15fi
16
17autoconf || exit 1
18automake -ac --add-missing --foreign || exit 1
Marc Slemkob09f5882006-08-23 22:03:34 +000019
20for subdir in ${subdirs}; do
21 if [ -x "${subdir}/bootstrap.sh" ]; then
David Reiss832b2622007-12-28 18:25:33 +000022 cwd="`pwd`"
23 cd "${subdir}"
24 ./bootstrap.sh
25 cd "${cwd}"
Marc Slemkob09f5882006-08-23 22:03:34 +000026 fi
27done
28