diff --git a/autogen.sh b/autogen.sh index 7c148da2d2..68f8996a3e 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,3 +1,9 @@ #!/bin/sh -${AUTORECONF:-autoreconf} --install $* +PWD= +case "$0" in +*/*) srcdir="${0%/*}/";; +*) srcdir="";; +esac + +exec ${AUTORECONF:-autoreconf} --install --symlink "$@" ${srcdir:+"$srcdir"}