diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-10 15:46:48 +0000 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-02-10 15:46:48 +0000 |
commit | 69619ec283c0dc6061a8a4cd2357c45d4d4dcaec (patch) | |
tree | eeec4110e1713c5e676f0ae5f6a8a8b4c96f62de /autogen.sh | |
parent | 9bcf58a830062a3283f325c5bcaa85b8bac9121e (diff) |
Use autogen.sh from telepathy-salut
There is no need to use gnome-autogen.sh for telepathy-logger. Also add the
--no-configure that will be used by Empathy when using tp-logger as a
submodule.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-x | autogen.sh | 41 |
1 files changed, 26 insertions, 15 deletions
@@ -1,20 +1,31 @@ #!/bin/sh -# Run this to generate all the initial makefiles, etc. +set -e -srcdir=`dirname $0` -test -z "$srcdir" && srcdir=. +if test -n "$AUTOMAKE"; then + : # don't override an explicit user request +elif automake-1.9 --version >/dev/null 2>/dev/null && \ + aclocal-1.9 --version >/dev/null 2>/dev/null; then + # If we have automake-1.9, use it. This helps to ensure that our build + # system doesn't accidentally grow automake-1.10 dependencies. + AUTOMAKE=automake-1.9 + export AUTOMAKE + ACLOCAL=aclocal-1.9 + export ACLOCAL +fi -PKG_NAME="TelepathyLogger" -REQUIRED_AUTOMAKE_VERSION=1.9 +autoreconf -i -f -(test -f $srcdir/configure.ac) || { - echo -n "**Error**: Directory "\`$srcdir\'" does not look like the" - echo " top-level gnome directory" - exit 1 -} +run_configure=true +for arg in $*; do + case $arg in + --no-configure) + run_configure=false + ;; + *) + ;; + esac +done -which gnome-autogen.sh || { - echo "You need to install gnome-common from the GNOME CVS" - exit 1 -} -USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh +if test $run_configure = true; then + ./configure "$@" +fi |