aboutsummaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 285868c..e0f7942 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -3,11 +3,14 @@
set -e
set -x
-test -f ./Makefile && make distclean
+OLDPWD=$(pwd)
+cd $(dirname $0)
+test -f Makefile && make distclean
aclocal
autoheader
automake --force-missing --add-missing
autoconf
-./configure $@ && make -j${BUILDJOBS:-4} all
+cd ${OLDPWD}
+$(dirname $0)/configure $@ && make -j${BUILDJOBS:-4} all