| # run to generate needed files not in CVS |
| # NB: if you run this file with AUTOMAKE, AUTOCONF, etc. environment |
| # variables set, you *must* run "configure" with the same variables |
| # set. this is because "configure" will embed the values of these variables |
| # into the generated Makefiles, as @AUTOMAKE@, @AUTOCONF@ etc. and it will |
| # trigger regeneration of configuration state using those programs when any |
| # of Makefile.am etc. change. |
| ACLOCAL=${ACLOCAL:-aclocal} |
| AUTOHEADER=${AUTOHEADER:-autoheader} |
| AUTOMAKE=${AUTOMAKE:-automake} |
| AUTOCONF=${AUTOCONF:-autoconf} |
| if $AUTOMAKE --version | grep -q 1.4 |
| echo "Automake 1.4 not supported. please set \$AUTOMAKE" |
| echo "to point to a newer automake, or upgrade." |
| echo "autogen.sh doesn't take any options" >&2 |
| run "$AUTOMAKE --foreign --add-missing --copy" |