aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2010-11-20 15:18:55 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2010-11-20 15:18:55 +0000
commit107480646e30614e046a10230c99a376be69100b (patch)
treed6626738920e9db1c64597c8b78f4d965cd610df
parentef043d3d788fa7e6597eb210fc398251b99daf6d (diff)
Fixed out-of-directory build support to not get confused by Eclipse. #713
-rwxr-xr-xconfigure5
1 files changed, 3 insertions, 2 deletions
diff --git a/configure b/configure
index eeadcb85..cd492b98 100755
--- a/configure
+++ b/configure
@@ -128,8 +128,9 @@ LFLAGS=
EFLAGS=
EOF
-srcdir="$(dirname $0)"
-if [ "$srcdir" != "." ]; then
+srcdir=$(cd $(dirname $0);pwd)
+currdir=$(pwd)
+if [ "$srcdir" != "$currdir" ]; then
echo
echo "configure script run from a different directory. Will create some symlinks..."
if [ ! -e Makefile -o -L Makefile ]; then