summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-11-20 04:21:44 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-11-20 04:21:44 +0000
commit0eb4b182e7b428d3e00b4a84cb67cb8e83d612e6 (patch)
tree48fb5b785817a44959c7bc80fe3a401e6ce6b702 /autogen.sh
parent4d8c3570b9416caaf5d03d37a8b1feb4e1384915 (diff)
downloadglib-0eb4b182e7b428d3e00b4a84cb67cb8e83d612e6.tar.gz
allow setting $OBJ_DIR to specify building in a subdir
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."