common/autoconf/basics_windows.m4
changeset 15071 7c0db7980274
parent 14280 7d8ad47b2dbf
child 17662 8cae100e6f14
equal deleted inserted replaced
15069:c6dab988d808 15071:7c0db7980274
   173   # Now try to locate executable using which
   173   # Now try to locate executable using which
   174   new_path=`$WHICH "$new_path" 2> /dev/null`
   174   new_path=`$WHICH "$new_path" 2> /dev/null`
   175   # bat and cmd files are not always considered executable in cygwin causing which
   175   # bat and cmd files are not always considered executable in cygwin causing which
   176   # to not find them
   176   # to not find them
   177   if test "x$new_path" = x \
   177   if test "x$new_path" = x \
   178            && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
   178            && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
   179            && test "x`$LS \"$path\" 2>/dev/null`" != x; then
   179            && test "x`$LS \"$path\" 2>/dev/null`" != x; then
   180     new_path=`$CYGPATH -u "$path"`
   180     new_path=`$CYGPATH -u "$path"`
   181   fi
   181   fi
   182   if test "x$new_path" = x; then
   182   if test "x$new_path" = x; then
   183     # Oops. Which didn't find the executable.
   183     # Oops. Which didn't find the executable.
   189     new_path=`$CYGPATH -u "$path"`
   189     new_path=`$CYGPATH -u "$path"`
   190     new_path=`$WHICH "$new_path" 2> /dev/null`
   190     new_path=`$WHICH "$new_path" 2> /dev/null`
   191     # bat and cmd files are not always considered executable in cygwin causing which
   191     # bat and cmd files are not always considered executable in cygwin causing which
   192     # to not find them
   192     # to not find them
   193     if test "x$new_path" = x \
   193     if test "x$new_path" = x \
   194              && test "x`$ECHO \"$path\" | $GREP -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
   194              && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \
   195              && test "x`$LS \"$path\" 2>/dev/null`" != x; then
   195              && test "x`$LS \"$path\" 2>/dev/null`" != x; then
   196       new_path=`$CYGPATH -u "$path"`
   196       new_path=`$CYGPATH -u "$path"`
   197     fi
   197     fi
   198     if test "x$new_path" = x; then
   198     if test "x$new_path" = x; then
   199       # It's still not found. Now this is an unrecoverable error.
   199       # It's still not found. Now this is an unrecoverable error.