r1460@opsdev009 (orig r77478): dreiss | 2008-01-11 12:59:12 -0800
[amiethrift.git] / bootstrap.sh
blob3f4602c087629f63cbca12924c3b3df6ed3b2775
1 #!/bin/sh
3 subdirs=" if"
5 ./cleanup.sh
7 autoscan || exit 1
8 autoheader || exit 1
9 aclocal -I ./aclocal || exit 1
11 if libtoolize --version 1 >/dev/null 2>/dev/null; then
12 libtoolize --automake || exit 1
13 elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
14 glibtoolize --automake || exit 1
17 autoconf
18 automake -ac --add-missing --foreign || exit 1
20 for subdir in ${subdirs}; do
21 if [ -x "${subdir}/bootstrap.sh" ]; then
22 cwd="`pwd`"
23 cd "${subdir}"
24 ./bootstrap.sh
25 cd "${cwd}"
27 done