summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorRico Tzschichholz <ricotz@ubuntu.com>2016-09-04 22:23:21 +0200
committerRico Tzschichholz <ricotz@ubuntu.com>2016-09-04 22:32:33 +0200
commite39408f558d7b1e8a0f2ca729b1f319d6ae5008f (patch)
tree2e7fcdc0b4d956911fa9d2a7ddf0ac8df8179c5e /autogen.sh
parent675628d79bc9816573b9dc21d734894ed465c122 (diff)
downloadzeitgeist-e39408f558d7b1e8a0f2ca729b1f319d6ae5008f.tar.gz
Drop dependency on gnome-common
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh33
1 files changed, 31 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 7c71cf1e..634216fe 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -4,6 +4,35 @@
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
-PKG_NAME="zeitgeist"
+(test -f $srcdir/configure.ac) || {
+ echo "**Error**: Directory "\`$srcdir\'" does not look like the top-level project directory"
+ exit 1
+}
+
+PKG_NAME=`autoconf --trace 'AC_INIT:$1' "$srcdir/configure.ac"`
+
+if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
+ echo "**Warning**: I am going to run \`configure' with no arguments." >&2
+ echo "If you wish to pass any to it, please specify them on the" >&2
+ echo \`$0\'" command line." >&2
+ echo "" >&2
+fi
+
+set -x
+aclocal --install || exit 1
+intltoolize --force --copy --automake || exit 1
+autoreconf --verbose --force --install -Wno-portability || exit 1
+set +x
+
+if [ "$NOCONFIGURE" = "" ]; then
+ set -x
+ $srcdir/configure "$@" || exit 1
+ set +x
+
+ if [ "$1" = "--help" ]; then exit 0 else
+ echo "Now type \`make\' to compile $PKG_NAME" || exit 1
+ fi
+else
+ echo "Skipping configure process."
+fi
-. gnome-autogen.sh