common/autoconf/toolchain_windows.m4
changeset 14562 ab12d5824d04
parent 14111 2a82ecb35fc7
child 14565 c499bdf08f27
equal deleted inserted replaced
14559:17820b958ae8 14562:ab12d5824d04
   198     if test "x$INCLUDE" = x || test "x$LIB" = x; then
   198     if test "x$INCLUDE" = x || test "x$LIB" = x; then
   199       AC_MSG_RESULT([present but broken])
   199       AC_MSG_RESULT([present but broken])
   200       AC_MSG_ERROR([Your VC command prompt seems broken, INCLUDE and/or LIB is missing.])
   200       AC_MSG_ERROR([Your VC command prompt seems broken, INCLUDE and/or LIB is missing.])
   201     else
   201     else
   202       AC_MSG_RESULT([ok])
   202       AC_MSG_RESULT([ok])
   203       VS_INCLUDE="$INCLUDE"
   203       # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk.
   204       VS_LIB="$LIB"
   204       VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'`
       
   205       VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'`
   205       VS_PATH="$PATH"
   206       VS_PATH="$PATH"
   206       AC_SUBST(VS_INCLUDE)
   207       AC_SUBST(VS_INCLUDE)
   207       AC_SUBST(VS_LIB)
   208       AC_SUBST(VS_LIB)
   208       AC_SUBST(VS_PATH)
   209       AC_SUBST(VS_PATH)
   209     fi
   210     fi