Honor '--without-cunit' configure flag

This commit is contained in:
Nicklas Larsson 2023-11-16 15:38:33 +01:00 committed by Sandro Santilli
parent b6f7b134a6
commit e4c6aa14e2

View File

@ -138,7 +138,7 @@ if test "x$CUNITDIR" != "x"; then
CPPFLAGS="${CPPFLAGS_SAVE}"
fi
if test "$FOUND_CUNIT" = "YES"; then
if test "$FOUND_CUNIT" = "YES" && test x${with_cunit} != "xno"; then
AC_DEFINE([HAVE_CUNIT], [1], [Have CUnit])
CUNIT_STATUS="enabled"
if test $CUNITDIR; then