emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r115531: * configure.ac (srcdir) [MINGW32]: Yet anot


From: Dani Moncayo
Subject: [Emacs-diffs] trunk r115531: * configure.ac (srcdir) [MINGW32]: Yet another tweak to avoid failure
Date: Sat, 14 Dec 2013 23:02:07 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 115531
revision-id: address@hidden
parent: address@hidden
committer: Dani Moncayo <address@hidden>
branch nick: trunk
timestamp: Sat 2013-12-14 23:59:20 +0100
message:
  * configure.ac (srcdir) [MINGW32]: Yet another tweak to avoid failure
    when srcdir is ".".  Fix also the indentation.
modified:
  configure.ac                   
configure.in-20091113204419-o5vbwnq5f7feedwu-783
=== modified file 'configure.ac'
--- a/configure.ac      2013-12-14 22:06:30 +0000
+++ b/configure.ac      2013-12-14 22:59:20 +0000
@@ -26,16 +26,17 @@
 
 if test "x$MSYSTEM" = "xMINGW32"
 then
-   . $srcdir/nt/mingw-cfg.site
+  . $srcdir/nt/mingw-cfg.site
 
-   if test ${srcdir:0:1} = "/" -o ${srcdir:1:1} = ":"
-   then
-       # srcdir is an absolute path.  In this case, force the format
-       # "/c/foo/bar", to simplify later conversions to native Windows
-       # format ("c:/foo/bar")
-       srcdir=`cd "${srcdir}" && pwd -W`
-       srcdir="/${srcdir:0:1}${srcdir:2}"
-   fi
+  case $srcdir in
+    /* | ?:*)
+      # srcdir is an absolute path.  In this case, force the format
+      # "/c/foo/bar", to simplify later conversions to native Windows
+      # format ("c:/foo/bar")
+      srcdir=`cd "${srcdir}" && pwd -W`
+      srcdir="/${srcdir:0:1}${srcdir:2}"
+      ;;
+  esac
 fi
 
 dnl Set emacs_config_options to the options of 'configure', quoted for the 
shell,


reply via email to

[Prev in Thread] Current Thread [Next in Thread]