2010-05-31 Robert Jordan <robertj@gmx.net>
[mono.git] / configure.in
index e02f7e92f8c9f4c0bb08dcc2f2f589bfbbdf5da7..1b90ba5114e246e292ac6b748813f8a136597ce3 100644 (file)
@@ -478,10 +478,14 @@ mcs_topdir=$(cd "$srcdir/$mcsdir" && pwd)
 mcs_topdir_from_srcdir='$(top_builddir)'/$mcsdir
 fi
 
-# Convert paths to Windows syntax.
+# Convert mcs_topdir* paths to Windows syntax.
 if test x$cross_compiling$host_win32 = xnoyes; then
-  mcs_topdir=$(cygpath -m -a $mcs_topdir)
-  mcs_topdir_from_srcdir=$(cygpath -m -a $mcs_topdir_from_srcdir)
+  mcs_topdir=$(cygpath -m $mcs_topdir)
+  case $mcs_topdir_from_srcdir in
+    /cygdrive/*)
+       mcs_topdir_from_srcdir=$(cygpath -m $mcs_topdir_from_srcdir)
+       ;;
+  esac
 fi
 
 ## Maybe should also disable if mcsdir is invalid.  Let's punt the issue for now.