Index: autogen.sh
===================================================================
--- autogen.sh	(revision 698)
+++ autogen.sh	(working copy)
@@ -1,4 +1,7 @@
 # Calls gnome-autogen to build Makefiles and run configure
 
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
 REQUIRED_AUTOMAKE_VERSION=1.7.2
 USE_GNOME2_MACROS=1 USE_COMMON_DOC_BUILD=yes . gnome-autogen.sh
