summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Hopf <mhopf@suse.de>2007-04-11 17:31:31 +0200
committerMatthias Hopf <mhopf@suse.de>2007-04-11 17:31:31 +0200
commit3abd41625c7d6db6d01f3167d6bac2b7481965cf (patch)
treecbba7657807a8e014a06b733415fe24330def4ee
parenteaa380efefd347abcd11a6c24c008686beaf8257 (diff)
Update autogen.sh to one that does objdir != 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 "$@"