diff -r cddffb220808 -r a05ed58d5ae0 common/autoconf/basics_windows.m4 --- a/common/autoconf/basics_windows.m4 Fri Apr 06 04:20:26 2018 -0700 +++ b/common/autoconf/basics_windows.m4 Sat Apr 07 03:28:39 2018 -0700 @@ -321,8 +321,8 @@ AC_MSG_ERROR([Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path]) fi AC_MSG_CHECKING([cygwin root directory as unix-style path]) - # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away - cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` + # The cmd output ends with Windows line endings (CR/LF) + cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` AC_MSG_RESULT([$CYGWIN_ROOT_PATH])