summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/autogen.sh b/autogen.sh
index 662d6001d..ea216789a 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -57,7 +57,13 @@ aclocal $ACLOCAL_FLAGS
automake $am_opt
autoconf
-./configure "$@"
+if [ -z "$OBJ_DIR" ]; then
+ ./configure "$@"
+else
+ mkdir -p "$OBJ_DIR"
+ cd "$OBJ_DIR"
+ ../configure "$@"
+fi
echo
echo "Now type 'make' to compile $PROJECT."