From: Matthias Hopf Date: Wed, 11 Apr 2007 15:23:44 +0000 (+0200) Subject: Update autogen.sh to one that does objdir != srcdir. X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cb188ab9d7afb737a459d4d8105ce15fa00fdf0d;p=free-sw%2Fxcb%2Fproto Update autogen.sh to one that does objdir != srcdir. --- 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 "$@"