1.1 --- a/common/autoconf/basics_windows.m4 Fri Jan 18 11:31:33 2013 -0800 1.2 +++ b/common/autoconf/basics_windows.m4 Mon Jan 28 14:23:20 2013 +0100 1.3 @@ -175,7 +175,7 @@ 1.4 # bat and cmd files are not always considered executable in cygwin causing which 1.5 # to not find them 1.6 if test "x$new_path" = x \ 1.7 - && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 1.8 + && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 1.9 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 1.10 new_path=`$CYGPATH -u "$path"` 1.11 fi 1.12 @@ -191,7 +191,7 @@ 1.13 # bat and cmd files are not always considered executable in cygwin causing which 1.14 # to not find them 1.15 if test "x$new_path" = x \ 1.16 - && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 1.17 + && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 1.18 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 1.19 new_path=`$CYGPATH -u "$path"` 1.20 fi