]> Pileus Git - ~andy/gtk/commitdiff
allow setting $OBJ_DIR to specify building in a subdir
authorElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:48 +0000 (04:21 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:48 +0000 (04:21 +0000)
autogen.sh

index d2c55586db1f708c0a4135ecaa98e599242833ad..e722403dfe0bf25fb1246ffb9fe17085b6627a75 100755 (executable)
@@ -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."