Releasing debian version 0.2.5-1.
[debian/lxlauncher.git] / autogen.sh
CommitLineData
2e45236b
DB
1#! /bin/sh
2AC_VERSION=
3
4AUTOMAKE=${AUTOMAKE:-automake}
5AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
6
4390d73f
AG
7# FIXME: we need a better way for version check later.
8case "$AM_INSTALLED_VERSION" in
9 1.1[1-9])
10 ;;
11 *)
2e45236b 12 echo
4390d73f 13 echo "You must have automake >= 1.11 installed."
2e45236b
DB
14 echo "Install the appropriate package for your distribution,"
15 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
16 exit 1
4390d73f
AG
17 ;;
18esac
1090c2af 19
1090c2af 20
2e45236b 21if [ "x${ACLOCAL_DIR}" != "x" ]; then
4390d73f 22 ACLOCAL_ARG=-I ${ACLOCAL_DIR}
1090c2af
DB
23fi
24
4390d73f
AG
25set -x
26
2e45236b
DB
27${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
28${AUTOHEADER:-autoheader$AC_VERSION} --force
2e45236b
DB
29AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
30$AUTOMAKE --add-missing --copy --include-deps
31${AUTOCONF:-autoconf$AC_VERSION}
1090c2af 32
2e45236b 33rm -rf autom4te.cache