diff --git a/configure.ac b/configure.ac index 02f9d638..700b14dc 100644 --- a/configure.ac +++ b/configure.ac @@ -518,9 +518,14 @@ if test "${enable_notify}" = "yes"; then fi fi -PKG_CHECK_MODULES( [CMOCKA], [cmocka], - [ have_cmocka="yes" ], - [ have_cmocka="no" ]) +have_cmocka="yes" +PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.1.0],,[have_cmocka="no"]) +AC_CHECK_HEADER([setjmp.h]) +AC_CHECK_HEADER([cmocka.h],, [have_cmocka="no"], +[#include +#include +#include +]) if test "${enable_tests}" = "detect"; then if test "${have_cmocka}" = "yes"; then