# $Id: bootstrap 29355 2009-11-17 12:21:50Z joostvb $
# $URL: https://infix.uvt.nl/its-id/trunk/sources/aselect-php/bootstrap $

# bootstrap - script to bootstrap the distribution rolling engine

# usage:
# ./bootstrap && ./configure && make distcheck
#
# this yields a tarball which one can install doing
#
# $ tar zxf PACKAGENAME-*.tar.gz
# $ cd PACKAGENAME-*
# $ ./configure
# $ make
# # make install

# requirements:
#  GNU autoconf, from e.g. ftp.gnu.org:/pub/gnu/autoconf/
#  GNU automake, from e.g. http://ftp.gnu.org/gnu/automake/

# hack by Joost van Baal
if test -f acinclude.m4
then
	:
else
	if test -f /usr/share/autoconf-archive/ac_define_dir.m4
	then
		ln -s /usr/share/autoconf-archive/ac_define_dir.m4 acinclude.m4
	elif test -f /usr/share/aclocal/ac_define_dir.m4
	then
		ln -s /usr/share/aclocal/ac_define_dir.m4 acinclude.m4
	else
		cat <<EOT
You need the autoconf-archive Debian package, version >= 20031029-1.
Alternatively, you could please install the GNU Autoconf Macro Archive's
http://www.gnu.org/software/ac-archive/htmldoc/ac_define_dir.html as
acinclude.m4.
EOT
	fi
fi

svn2cl

# Debian automake package installs as automake-version.
# Use this to make sure the right automake is being used.
# If not installed, run: apt-get install automake1.9

autoreconf --install --symlink --make

# autoreconf should run something like:
#
# aclocal-1.9 &&
#	automake-1.9 --add-missing --verbose --gnu &&
#	autoconf
