summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac4
1 files changed, 2 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 40e8a95..ca9c41a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -255,8 +255,8 @@ AC_SUBST(CSRCFLAG)
: ${MJIT_CC=$CC}
AS_IF([test "x$cross_compiling" = xno], [
AC_PATH_PROG([MJIT_CC], ${MJIT_CC-$CC})
- AS_CASE([$build_os:$host_os],
- [*cygwin*:*mingw*], [MJIT_CC=`cygpath -ma $MJIT_CC`])
+ AS_CASE([$target_os],
+ [*mingw*], [command -v cygpath && MJIT_CC=`cygpath -ma $MJIT_CC`])
shift 2
MJIT_CC="$MJIT_CC${1+ }$*"
])