common/autoconf/basics_windows.m4

changeset 2219
cb1203f48728
parent 2210
a05ed58d5ae0
child 2224
20daa32eec6f
     1.1 --- a/common/autoconf/basics_windows.m4	Wed Apr 18 12:37:18 2018 -0700
     1.2 +++ b/common/autoconf/basics_windows.m4	Tue Apr 17 09:33:36 2018 -0700
     1.3 @@ -266,6 +266,14 @@
     1.4      BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(new_path)
     1.5  
     1.6      new_path=`$WHICH "$new_path" 2> /dev/null`
     1.7 +    # bat and cmd files are not always considered executable in MSYS causing which
     1.8 +    # to not find them
     1.9 +    if test "x$new_path" = x \
    1.10 +        && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
    1.11 +        && test "x`$LS \"$path\" 2>/dev/null`" != x; then
    1.12 +      new_path="$path"
    1.13 +      BASIC_WINDOWS_REWRITE_AS_UNIX_PATH(new_path)
    1.14 +    fi
    1.15  
    1.16      if test "x$new_path" = x; then
    1.17        # It's still not found. Now this is an unrecoverable error.

mercurial