diff options
author | Daniel Stone <daniel@fooishbar.org> | 2005-07-01 21:13:36 +0000 |
---|---|---|
committer | Daniel Stone <daniel@fooishbar.org> | 2005-07-01 21:13:36 +0000 |
commit | 9a6ec34d2545a23586f11ad51c81f41a940d73d0 (patch) | |
tree | cdb519ea7a846710e78cf1ac2388aebbd40a9e74 | |
parent | 7ecc2d526c4ea5db2589644a2fec0daf71df36da (diff) |
Use canonical autogen.sh, which supports srcdir != objdir autogen.
-rwxr-xr-x | autogen.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh index b1376df5a..904cd6746 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 --enable-maintainer-mode "$@" +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" |