Update autogen.sh to one that does objdir != srcdir.
authorMatthias Hopf <mhopf@suse.de>
Wed, 11 Apr 2007 15:23:44 +0000 (17:23 +0200)
committerMatthias Hopf <mhopf@suse.de>
Wed, 11 Apr 2007 15:23:44 +0000 (17:23 +0200)
autogen.sh

index d68a142..904cd67 100755 (executable)
@@ -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 "$@"