summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartyn Russell <martyn@lanedo.com>2014-12-12 12:55:55 +0000
committerMartyn Russell <martyn@lanedo.com>2014-12-12 12:59:51 +0000
commit30f23cb63deacea9d868c73435b0491b9d36f321 (patch)
tree5e13f2fdfa8717b837246cd555d2d05a63e7533a
parentebfac417e719c77db0a39c8ac7eefd18d13f5ddb (diff)
downloadtracker-30f23cb63deacea9d868c73435b0491b9d36f321.tar.gz
build: Make life easier with autogen by adding args if none are provided
This patch does 3 things: 1. Fix the --with-enca (which should have been --enable-enca and was failing) 2. If JHBUILD_PREFIX is set, use that when no args are given 3. If no args are given, use the make distcheck default args in place This will ensure documentation and unit tests are build most of the time and things don't break so often :)
-rw-r--r--Makefile.am2
-rwxr-xr-xautogen.sh36
2 files changed, 37 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 5791a0811..d2976726f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -117,6 +117,6 @@ DISTCHECK_CONFIGURE_FLAGS = \
--enable-libgsf \
--enable-playlist \
--enable-tracker-preferences \
- --with-enca
+ --enable-enca
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
diff --git a/autogen.sh b/autogen.sh
index e5de9f63d..d1aaf3665 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -21,4 +21,40 @@ if ! which gnome-autogen.sh ; then
exit 1
fi
+# If no arguments are given, use those used with distcheck
+# equally, use the JHBuild prefix if it is available otherwise fall
+# back to the default (/usr/local)
+if [ $# -eq 0 ] ; then
+ echo "Using distcheck arguments, none were supplied..."
+
+ if test -n "$JHBUILD_PREFIX" ; then
+ echo "Using JHBuild prefix ('$JHBUILD_PREFIX')"
+ NEW_PREFIX="--prefix $JHBUILD_PREFIX"
+ fi
+
+ NEW_ARGS="\
+ --disable-nautilus-extension \
+ --enable-unit-tests \
+ --enable-functional-tests \
+ --enable-gtk-doc \
+ --enable-introspection \
+ --disable-miner-rss \
+ --disable-miner-evolution \
+ --disable-miner-thunderbird \
+ --disable-miner-firefox \
+ --enable-poppler \
+ --enable-exempi \
+ --enable-libiptcdata \
+ --enable-libjpeg \
+ --enable-libtiff \
+ --enable-libvorbis \
+ --enable-libflac \
+ --enable-libgsf \
+ --enable-playlist \
+ --enable-tracker-preferences \
+ --enable-enca"
+
+ set -- $NEW_PREFIX $NEW_ARGS
+fi
+
. gnome-autogen.sh