Skip to content

Commit

Permalink
Merge pull request #7 from City-busz/autotools
Browse files Browse the repository at this point in the history
Remove auto-generated content, add autogen.sh
  • Loading branch information
stevenhoneyman committed Jul 5, 2015
2 parents c1bbbea + 18139e1 commit 663e594
Show file tree
Hide file tree
Showing 19 changed files with 33 additions and 8,393 deletions.
33 changes: 33 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#! /bin/sh
AC_VERSION=

AUTOMAKE=${AUTOMAKE:-automake}
AM_INSTALLED_VERSION=$($AUTOMAKE --version | sed -e '2,$ d' -e 's/.* \([0-9]*\.[0-9]*\).*/\1/')

# FIXME: we need a better way for version check later.
case "$AM_INSTALLED_VERSION" in
1.1[1-9])
;;
*)
echo
echo "You must have automake >= 1.11 installed."
echo "Install the appropriate package for your distribution,"
echo "or get the source tarball at http://ftp.gnu.org/gnu/automake/"
exit 1
;;
esac


if [ "x${ACLOCAL_DIR}" != "x" ]; then
ACLOCAL_ARG="-I ${ACLOCAL_DIR}"
fi

set -x

${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
${AUTOHEADER:-autoheader$AC_VERSION} --force
AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
$AUTOMAKE --add-missing --copy --include-deps
${AUTOCONF:-autoconf$AC_VERSION}

rm -rf autom4te.cache
Loading

0 comments on commit 663e594

Please sign in to comment.