Add a check to provide better information for users who would
try to compile the plugin with the old libjevents version.
Change-Id: I88adb83c8408de4a7972b15003c4dc6fa0d4cdb0
Signed-off-by: Kamil Wiatrowski <kamilx.wiatrowski@intel.com>
LDFLAGS="$SAVE_LDFLAGS"
fi
+if test "x$with_libjevents" = "xyes"; then
+ SAVE_LDFLAGS="$LDFLAGS"
+ LDFLAGS="$LDFLAGS $with_libjevents_ldflags"
+
+ AC_CHECK_LIB([jevents], [event_scaled_value_sum], [with_libjevents="yes"], [with_libjevents="no (libjevents is too old)"])
+
+ LDFLAGS="$SAVE_LDFLAGS"
+fi
if test "x$with_libjevents" = "xyes"; then
BUILD_WITH_LIBJEVENTS_CPPFLAGS="$with_libjevents_cppflags"
BUILD_WITH_LIBJEVENTS_LDFLAGS="$with_libjevents_ldflags"