Skip to content

Commit

Permalink
fix: make libcheck fatal if missing with --with-check
Browse files Browse the repository at this point in the history
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
  • Loading branch information
robbat2 committed Jan 3, 2025
1 parent 5ef8642 commit 9b9f173
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,12 @@ AM_CONDITIONAL(HAVE_STACK_PROTECTOR, test x"$with_stack_protector" = xyes)
AC_ARG_WITH([check], AS_HELP_STRING([--without-check], [Build without check unit testing framework]),[],[with_check=no])
AS_IF([test "x$with_check" = "xyes"], [
AS_IF([test "x$arch" = "xlinux"], [
PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
check_version=0.9.4
# only check_all gets linked; NOT radvd / radvdump
PKG_CHECK_MODULES([CHECK], [check >= ${check_version}], [found_yes=yes],[found_check=no])
if test "x$found_check" = xno; then
AC_MSG_ERROR("check >= ${check_version} required but not found")
fi
])
])
AM_CONDITIONAL(HAVE_CHECK, test x"$with_check" = xyes)
Expand Down

0 comments on commit 9b9f173

Please sign in to comment.