blob: 35b9be5b5fdc441669dec404fb5eb89790c23032 [file] [log] [blame]
Marc Slemkob09f5882006-08-23 22:03:34 +00001#!/bin/sh
2
mvaradacharib216c032008-01-18 01:00:18 +00003##
4
David Reiss832b2622007-12-28 18:25:33 +00005subdirs=" if"
Marc Slemkob09f5882006-08-23 22:03:34 +00006
Mark Sleeeb0d0242007-01-25 07:58:55 +00007./cleanup.sh
Marc Slemkob09f5882006-08-23 22:03:34 +00008
David Reiss832b2622007-12-28 18:25:33 +00009autoscan || exit 1
10autoheader || exit 1
11aclocal -I ./aclocal || exit 1
12
13if libtoolize --version 1 >/dev/null 2>/dev/null; then
14 libtoolize --automake || exit 1
15elif glibtoolize --version 1 >/dev/null 2>/dev/null; then
16 glibtoolize --automake || exit 1
17fi
18
mvaradacharifbc91142008-01-01 04:51:24 +000019autoconf
David Reiss832b2622007-12-28 18:25:33 +000020automake -ac --add-missing --foreign || exit 1
Marc Slemkob09f5882006-08-23 22:03:34 +000021
22for subdir in ${subdirs}; do
23 if [ -x "${subdir}/bootstrap.sh" ]; then
David Reiss832b2622007-12-28 18:25:33 +000024 cwd="`pwd`"
25 cd "${subdir}"
26 ./bootstrap.sh
27 cd "${cwd}"
Marc Slemkob09f5882006-08-23 22:03:34 +000028 fi
29done
30