Allow to build outside source directory

Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@schampijer.de>
This commit is contained in:
Daniel Narvaez 2012-06-26 13:14:10 +00:00 committed by Simon Schampijer
parent 6438c89dea
commit 80c6028ddd

View File

@ -1,6 +1,15 @@
#!/bin/sh #!/bin/sh
test -n "${srcdir}" || srcdir=`dirname "$0"`
test -n "${srcdir}" || srcdir="$(pwd)"
olddir="$(pwd)"
cd "$srcdir"
export ACLOCAL="aclocal -I m4" export ACLOCAL="aclocal -I m4"
intltoolize intltoolize
autoreconf -i autoreconf -i
./configure --enable-maintainer-mode "$@"
cd "$olddir"
"$srcdir/configure" --enable-maintainer-mode "$@"