From 3abd41625c7d6db6d01f3167d6bac2b7481965cf Mon Sep 17 00:00:00 2001 From: Matthias Hopf Date: Wed, 11 Apr 2007 17:31:31 +0200 Subject: Update autogen.sh to one that does objdir != srcdir --- autogen.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 "$@" -- cgit v1.2.3