Commit 59faef3a48648be8b2b88868d9897e710ce88a4e
1 parent
1d4db89c
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
Showing
1 changed file
with
8 additions
and
6 deletions
configure
... | ... | @@ -205,15 +205,17 @@ fi |
205 | 205 | |
206 | 206 | # find source path |
207 | 207 | source_path=`dirname "$0"` |
208 | +source_path_used="no" | |
209 | +workdir=`pwd` | |
210 | +workdir=`readlink -f $workdir` | |
208 | 211 | if [ -z "$source_path" ]; then |
209 | - source_path=`pwd` | |
212 | + source_path=$workdir | |
210 | 213 | else |
211 | 214 | source_path=`cd "$source_path"; pwd` |
212 | -fi | |
213 | -if test "$source_path" = `pwd` ; then | |
214 | - source_path_used="no" | |
215 | -else | |
216 | - source_path_used="yes" | |
215 | + source_path=`readlink -f $source_path` | |
216 | + if test "$source_path" != "$workdir" ; then | |
217 | + source_path_used="yes" | |
218 | + fi | |
217 | 219 | fi |
218 | 220 | |
219 | 221 | werror="no" | ... | ... |