Use the proper $srcdir method instead of the $OBJ_DIR hack for allowing
separate build dirs.
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+pushd $srcdir
PROJECT=GLib
TEST_TYPE=-f
FILE=glib.h
automake $am_opt
autoconf
+popd
-if [ -z "$OBJ_DIR" ]; then
- ./configure "$@"
-else
- mkdir -p "$OBJ_DIR"
- cd "$OBJ_DIR"
- ../configure "$@"
-fi
+$srcdir/configure "$@"
echo
echo "Now type 'make' to compile $PROJECT."