310 CYGWIN_VERSION=`$UNAME -r` |
310 CYGWIN_VERSION=`$UNAME -r` |
311 AC_MSG_RESULT([$CYGWIN_VERSION]) |
311 AC_MSG_RESULT([$CYGWIN_VERSION]) |
312 WINDOWS_ENV_VENDOR='cygwin' |
312 WINDOWS_ENV_VENDOR='cygwin' |
313 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" |
313 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" |
314 |
314 |
315 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` |
315 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.[0-6]'` |
316 if test "x$CYGWIN_VERSION_OK" = x; then |
316 if test "x$CYGWIN_VERSION_OLD" != x; then |
317 AC_MSG_NOTICE([Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade.]) |
317 AC_MSG_NOTICE([Your cygwin is too old. You are running $CYGWIN_VERSION, but at least cygwin 1.7 is required. Please upgrade.]) |
318 AC_MSG_ERROR([Cannot continue]) |
318 AC_MSG_ERROR([Cannot continue]) |
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]) |