diff options
author | Jon TURNEY <jon.turney@dronecode.org.uk> | 2009-10-20 18:17:46 +0100 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2009-10-20 14:39:01 -0700 |
commit | 81714f3dc155e036461d0c0a2a2de33360c6b795 (patch) | |
tree | 071e06ca78000e10529d3212b499f4b08ca67b6f | |
parent | 67b66df68e237a1f88912c88e4c5653fb7957757 (diff) |
Update autogen.sh to one that does builddir != srcdir
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -1,3 +1,12 @@ #! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + autoreconf -v --install || exit 1 -./configure "$@" +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" |