Move lxtask.desktop.in into data/ subdirectory.
[lxde/lxtask.git] / autogen.sh
CommitLineData
580e78c2 1#! /bin/sh
580e78c2
HJYP
2AC_VERSION=
3
910ae56d 4AUTOMAKE=${AUTOMAKE:-automake}
5AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')
6
3824bf37
JL
7# FIXME: we need a better way for version check later.
8case "$AM_INSTALLED_VERSION" in
9 1.1[1-9])
10 ;;
11 *)
910ae56d 12 echo
3824bf37 13 echo "You must have automake >= 1.11 installed."
910ae56d 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
3824bf37
JL
17 ;;
18esac
910ae56d 19
580e78c2
HJYP
20
21if [ "x${ACLOCAL_DIR}" != "x" ]; then
8c702d71 22 ACLOCAL_ARG="-I ${ACLOCAL_DIR}"
3824bf37
JL
23fi
24
3824bf37
JL
25set -x
26
580e78c2 27${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
910ae56d 28${AUTOHEADER:-autoheader$AC_VERSION} --force
910ae56d 29AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
30$AUTOMAKE --add-missing --copy --include-deps
580e78c2
HJYP
31${AUTOCONF:-autoconf$AC_VERSION}
32
580e78c2 33rm -rf autom4te.cache