allow setting $OBJ_DIR to specify building in a subdir

This commit is contained in:
Elliot Lee 1998-11-20 04:21:48 +00:00
parent 45c02db925
commit 14f08e6a93

View File

@ -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."