Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-06-26 12:26:02 (GMT)
committer Simon Schampijer <simon@schampijer.de>2012-08-07 16:43:40 (GMT)
commit6fbc4188249a6f59cc55381824cf1ec1f90dc5e8 (patch)
treecd9c6d4b6be82290aec65cb2b9d2cfa39d15b09d /autogen.sh
parent3aadf2ba9e79c1ffe246a2fa87e3fe0f4a6047b1 (diff)
Allow to build outside the source directory
This is based on a patch by Marco Pesenti Gritti <marco@marcopg.org>, with reviewer comments addressed. Reviewed-by: James Cameron <quozl@laptop.org> Acked-by: Simon Schampijer <simon@schampijer.de>
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index a71e202..bac5247 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,4 +1,13 @@
#!/bin/sh
+
+test -n "${srcdir}" || srcdir=`dirname "$0"`
+test -n "${srcdir}" || srcdir="$(pwd)"
+
+olddir="$(pwd)"
+cd "$srcdir"
+
intltoolize
autoreconf -i
-./configure --enable-maintainer-mode "$@"
+
+cd "$olddir"
+"$srcdir/configure" --enable-maintainer-mode "$@"