use $srcdir instead of the $OBJ_DIR hack
This commit is contained in:
13
autogen.sh
13
autogen.sh
@ -1,6 +1,10 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# Run this to generate all the initial makefiles, etc.
|
# Run this to generate all the initial makefiles, etc.
|
||||||
|
|
||||||
|
srcdir=`dirname $0`
|
||||||
|
test -z "$srcdir" && srcdir=.
|
||||||
|
|
||||||
|
pushd $srcdir
|
||||||
PROJECT=Gtk+
|
PROJECT=Gtk+
|
||||||
TEST_TYPE=-d
|
TEST_TYPE=-d
|
||||||
FILE=gdk
|
FILE=gdk
|
||||||
@ -56,14 +60,9 @@ aclocal $ACLOCAL_FLAGS
|
|||||||
|
|
||||||
automake $am_opt
|
automake $am_opt
|
||||||
autoconf
|
autoconf
|
||||||
|
popd
|
||||||
|
|
||||||
if [ -z "$OBJ_DIR" ]; then
|
$srcdir/configure "$@"
|
||||||
./configure "$@"
|
|
||||||
else
|
|
||||||
mkdir -p "$OBJ_DIR"
|
|
||||||
cd "$OBJ_DIR"
|
|
||||||
../configure "$@"
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "Now type 'make' to compile $PROJECT."
|
echo "Now type 'make' to compile $PROJECT."
|
||||||
|
Reference in New Issue
Block a user