summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2005-01-03 05:16:14 +0000
committerDaniel Stone <daniel@fooishbar.org>2005-01-03 05:16:14 +0000
commite86de666f5c9629cd98ed2b0460033da5d89a55b (patch)
tree68102774156836a27684675a7f63bd8fc19354c4
parent648b14e2d0c1222cbe7571443ba00bb777fee2d4 (diff)
New autogen.sh from Thomas Fitzsimmons that works with srcdir != objdir.
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index b1376df..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 --enable-maintainer-mode "$@"
+cd $ORIGDIR || exit $?
+
+$srcdir/configure --enable-maintainer-mode "$@"