common/autoconf/basics_windows.m4

changeset 2210
a05ed58d5ae0
parent 1395
ff2690c06dd8
child 2219
cb1203f48728
equal deleted inserted replaced
2209:cddffb220808 2210:a05ed58d5ae0
319 fi 319 fi
320 if test "x$CYGPATH" = x; then 320 if test "x$CYGPATH" = x; then
321 AC_MSG_ERROR([Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path]) 321 AC_MSG_ERROR([Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path])
322 fi 322 fi
323 AC_MSG_CHECKING([cygwin root directory as unix-style path]) 323 AC_MSG_CHECKING([cygwin root directory as unix-style path])
324 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 324 # The cmd output ends with Windows line endings (CR/LF)
325 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 325 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'`
326 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 326 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again.
327 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 327 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "`
328 AC_MSG_RESULT([$CYGWIN_ROOT_PATH]) 328 AC_MSG_RESULT([$CYGWIN_ROOT_PATH])
329 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 329 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH"
330 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 330 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/`

mercurial