Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame^] | 3 | subdirs=" if" |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 4 | |
Mark Slee | eb0d024 | 2007-01-25 07:58:55 +0000 | [diff] [blame] | 5 | ./cleanup.sh |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 6 | |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame^] | 7 | autoscan || exit 1 |
| 8 | autoheader || exit 1 |
| 9 | aclocal -I ./aclocal || exit 1 |
| 10 | |
| 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 |
| 15 | fi |
| 16 | |
| 17 | autoconf || exit 1 |
| 18 | automake -ac --add-missing --foreign || exit 1 |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 19 | |
| 20 | for subdir in ${subdirs}; do |
| 21 | if [ -x "${subdir}/bootstrap.sh" ]; then |
David Reiss | 832b262 | 2007-12-28 18:25:33 +0000 | [diff] [blame^] | 22 | cwd="`pwd`" |
| 23 | cd "${subdir}" |
| 24 | ./bootstrap.sh |
| 25 | cd "${cwd}" |
Marc Slemko | b09f588 | 2006-08-23 22:03:34 +0000 | [diff] [blame] | 26 | fi |
| 27 | done |
| 28 | |