| 1 | #!/bin/sh |
| 2 | |
| 3 | # Need to use use autoconf >= 2.50 an automake >= 1.5. This allows user to |
| 4 | # set these variables in their environment, or to just use the defaults below. |
| 5 | # This is needed since some systems still use autoconf-2.13 and automake-1.4 as |
| 6 | # the defaults (e.g. debian). |
| 7 | |
| 8 | : ${ACLOCAL=aclocal} |
| 9 | : ${AUTOMAKE=automake} |
| 10 | : ${AUTOCONF=autoconf} |
| 11 | : ${AUTOHEADER=autoheader} |
| 12 | |
| 13 | export ACLOCAL AUTOMAKE AUTOCONF AUTOHEADER |
| 14 | |
| 15 | # Export them in case someone edited the defaults above; automake is |
| 16 | # not happy if it cannot find either ${AUTOCONF} or `autoconf'. |
| 17 | export ACLOCAL AUTOMAKE AUTOCONF AUTOHEADER |
| 18 | |
| 19 | set -e |
| 20 | |
| 21 | set -x |
| 22 | ( |
| 23 | ${ACLOCAL} |
| 24 | ${AUTOHEADER} |
| 25 | ${AUTOCONF} |
| 26 | [ -d config-aux ] || mkdir config-aux |
| 27 | ${AUTOMAKE} -a -c |
| 28 | ) |
| 29 | rm -f config.cache |