Update autogen.sh to one that does objdir != srcdir

This commit is contained in:
Matthias Hopf 2007-04-11 17:31:31 +02:00
parent eaa380efef
commit 3abd41625c

View File

@ -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 "$@"