summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1999-03-16 03:46:18 +0000
committerElliot Lee <sopwith@src.gnome.org>1999-03-16 03:46:18 +0000
commitf87ca72bef8ceaac1e2219fcb38175d51f8c177c (patch)
tree510a61fb70c2fb589219c495592e23ebf3fac92f /autogen.sh
parent4d395a68a9e41cff6415954bb308cb24769e37b4 (diff)
downloadgtk-doc-f87ca72bef8ceaac1e2219fcb38175d51f8c177c.tar.gz
Fix builddir != srcdir.
Fix builddir != srcdir.
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh11
1 files changed, 10 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 0fc1d6d..d9cc315 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -7,6 +7,13 @@ FILE=gtk-doc.dsl.in
DIE=0
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+THEDIR="`pwd`"
+
+cd "$srcdir"
+
(autoconf --version) < /dev/null > /dev/null 2>&1 || {
echo
echo "You must have autoconf installed to compile $PROJECT."
@@ -57,7 +64,9 @@ aclocal $ACLOCAL_FLAGS
automake --add-missing $am_opt
autoconf
-./configure "$@"
+cd "$THEDIR"
+
+$srcdir/configure "$@"
echo
echo "Now type 'make install' to install $PROJECT."