diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-06-26 12:54:08 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2012-08-07 16:51:53 (GMT) |
commit | ad546a1883d5c82e0ab4c1444d484c011188dc75 (patch) | |
tree | 2833736e5e83563d9c20df01e13b74b470698824 | |
parent | e5e324acd3cf0a120f859ba47a1251f4f29aca6e (diff) |
Allow to build outside the source directory
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@schampijer.de
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,5 +1,14 @@ #!/bin/sh + +test -n "${srcdir}" || srcdir=`dirname "$0"` +test -n "${srcdir}" || srcdir="$(pwd)" + +olddir="$(pwd)" +cd "$srcdir" + export ACLOCAL="aclocal -I m4" autoreconf -i -./configure --enable-maintainer-mode "$@" + +cd "$olddir" +"$srcdir/configure" --enable-maintainer-mode "$@" |