allow setting $OBJ_DIR to specify building in a subdir
authorElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:44 +0000 (04:21 +0000)
committerElliot Lee <sopwith@src.gnome.org>
Fri, 20 Nov 1998 04:21:44 +0000 (04:21 +0000)
autogen.sh

index 662d6001de8156ac9054b63d74ff5eb10545ed71..ea216789acf7e3540328970d8171c65ecf473c9f 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."