Merging upstream version 0.2.0.
[debian/lxsession-edit.git] / autogen.sh
CommitLineData
2532e841
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
7if [ "$AM_INSTALLED_VERSION" != "1.10" \
8 -a "$AM_INSTALLED_VERSION" != "1.11" ];then
9 echo
10 echo "You must have automake > 1.10 or 1.11 installed to compile lxsession-edit."
11 echo "Install the appropriate package for your distribution,"
12 echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
13 exit 1
b67758d2
DB
14fi
15
2532e841 16set -x
b67758d2 17
2532e841
DB
18if [ "x${ACLOCAL_DIR}" != "x" ]; then
19 ACLOCAL_ARG=-I ${ACLOCAL_DIR}
b67758d2
DB
20fi
21
2532e841
DB
22${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
23${AUTOHEADER:-autoheader$AC_VERSION} --force
24AUTOMAKE=$AUTOMAKE libtoolize -c --automake --force
25AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
26$AUTOMAKE --add-missing --copy --include-deps
27${AUTOCONF:-autoconf$AC_VERSION}
b67758d2 28
2532e841 29rm -rf autom4te.cache