In this code block:
AC_PATH_PROG(GAPI_PARSER, gapi3-parser, no)
if test "x$GAPI_PARSER" = "xno"; then
AC_MSG_CHECKING(for gapi3-parser.exe)
GAPI_PARSER=which gapi3-parser.exe 2> /dev/null
if test "x$GAPI_PARSER" = "xno" ; then
AC_MSG_ERROR(['gapi3_parser'/'gapi3-parser.exe' not found.])
fi
AC_MSG_RESULT($GAPI_PARSER)
GAPI_PARSER="$MONO $GAPI_PARSER"
fi
AC_SUBST(GAPI_PARSER)
If gapi3-parser is missing it will look for gapi3-parser.exe but then the check is wrong because if it's missing $GAPI_PARSER won't be "no" but empty string.
In this code block: AC_PATH_PROG(GAPI_PARSER, gapi3-parser, no) if test "x$GAPI_PARSER" = "xno"; then AC_MSG_CHECKING(for gapi3-parser.exe) GAPI_PARSER=
which gapi3-parser.exe 2> /dev/null
if test "x$GAPI_PARSER" = "xno" ; then AC_MSG_ERROR(['gapi3_parser'/'gapi3-parser.exe' not found.]) fi AC_MSG_RESULT($GAPI_PARSER) GAPI_PARSER="$MONO $GAPI_PARSER" fi AC_SUBST(GAPI_PARSER)If gapi3-parser is missing it will look for gapi3-parser.exe but then the check is wrong because if it's missing $GAPI_PARSER won't be "no" but empty string.