summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorElliot Lee <sopwith@src.gnome.org>1998-11-25 16:34:23 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-11-25 16:34:23 +0000
commit9cb5eb75f8e4e962c2aa829ea2aa2fb0cf91e3be (patch)
tree530fbad18f34b87dd1d77790f3d301c39d15823a /autogen.sh
parenta425e6b5c21e4cfebc6c9aa0b7c5cd277face8a6 (diff)
downloadgtk+-9cb5eb75f8e4e962c2aa829ea2aa2fb0cf91e3be.tar.gz
use $srcdir instead of the $OBJ_DIR hack
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh13
1 files changed, 6 insertions, 7 deletions
diff --git a/autogen.sh b/autogen.sh
index e722403dfe..74950e2564 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -1,6 +1,10 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
+srcdir=`dirname $0`
+test -z "$srcdir" && srcdir=.
+
+pushd $srcdir
PROJECT=Gtk+
TEST_TYPE=-d
FILE=gdk
@@ -56,14 +60,9 @@ aclocal $ACLOCAL_FLAGS
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."