It is perhaps more autoconfy to have AM_CONDITIONAL evaluate a variable rather than call it with what are essentially constants representing either true or false. It might be even more autoconfy to use AC_CHECK_PROG here instead; I don't know if there's a good reason why that wasn't already done here.master
AC_MSG_CHECKING([for gradle]) | AC_MSG_CHECKING([for gradle]) | ||||
if command -v "$GRADLE" >/dev/null; then | if command -v "$GRADLE" >/dev/null; then | ||||
AC_MSG_RESULT([$GRADLE]) | AC_MSG_RESULT([$GRADLE]) | ||||
AM_CONDITIONAL(HAVE_GRADLE, [test 1 = 1]) | |||||
else | else | ||||
GRADLE= | GRADLE= | ||||
AC_MSG_RESULT([no]) | AC_MSG_RESULT([no]) | ||||
AM_CONDITIONAL(HAVE_GRADLE, [test 1 = 0]) | |||||
fi | fi | ||||
AM_CONDITIONAL(HAVE_GRADLE, [test x"$GRADLE" != x]) | |||||
AC_SUBST(GRADLE) | AC_SUBST(GRADLE) | ||||