diff --git a/configure b/configure
index e1e455eeafe3751c0a97c03460fb076ec31382f8..8c6e8ef1f56c58b7138cf3034cc3e5a5cfd496a0 100755
--- a/configure
+++ b/configure
@@ -446,6 +446,8 @@ if [ "$OSTYPE" = "msys" ]; then
     BUILD_ON_MSYS=yes
     DEV_NULL=/tmp/empty-file
     echo "" > $DEV_NULL
+    relpath=`(cd "$relpath"; pwd -W)`
+    outpath=`pwd -W`
 fi
 
 #-------------------------------------------------------------------------------