summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-03 04:22:24 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-02-03 04:22:24 +0000
commit59faef3a48648be8b2b88868d9897e710ce88a4e (patch)
tree1fefc95d9f326e0525b1a74ea9e00a3bf99f9e1a /configure
parent1d4db89c09264463ec8d388e84b665f90763b29d (diff)
downloadhqemu-59faef3a48648be8b2b88868d9897e710ce88a4e.zip
hqemu-59faef3a48648be8b2b88868d9897e710ce88a4e.tar.gz
Fix building under paths with symlinks (patch from Richard Purdie).
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3956 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure14
1 files changed, 8 insertions, 6 deletions
diff --git a/configure b/configure
index bcb958d..55f101f 100755
--- a/configure
+++ b/configure
@@ -205,15 +205,17 @@ fi
# find source path
source_path=`dirname "$0"`
+source_path_used="no"
+workdir=`pwd`
+workdir=`readlink -f $workdir`
if [ -z "$source_path" ]; then
- source_path=`pwd`
+ source_path=$workdir
else
source_path=`cd "$source_path"; pwd`
-fi
-if test "$source_path" = `pwd` ; then
- source_path_used="no"
-else
- source_path_used="yes"
+ source_path=`readlink -f $source_path`
+ if test "$source_path" != "$workdir" ; then
+ source_path_used="yes"
+ fi
fi
werror="no"
OpenPOWER on IntegriCloud