diff --git a/configure b/configure
index 6c2727bc365456a2ad6a09cbd682b7172cba8a4e..1b601dc363dbe6dc6d18f68d3104b62595531310 100755
--- a/configure
+++ b/configure
@@ -377,13 +377,13 @@ TARGET_OS=`( uname -s ) 2>&1`
   esac
 
 # find source path
-# XXX: we assume an absolute path is given when launching configure, 
-# except in './configure' case.
 source_path="`echo $0 | sed -e 's#/configure##'`"
 source_path_used="yes"
 if test -z "$source_path" -o "$source_path" = "." ; then
     source_path=`pwd`
     source_path_used="no"
+else
+    source_path="`cd \"$source_path\"; pwd`"
 fi
 
 FFMPEG_CONFIGURATION=" "