summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2009-10-20 18:17:46 +0100
committerJamey Sharp <jamey@minilop.net>2009-10-20 14:39:01 -0700
commit81714f3dc155e036461d0c0a2a2de33360c6b795 (patch)
tree071e06ca78000e10529d3212b499f4b08ca67b6f
parent67b66df68e237a1f88912c88e4c5653fb7957757 (diff)
Update autogen.sh to one that does builddir != srcdir
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index d68a142..904cd67 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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 "$@"