From: Pshyk, SerhiyX Date: Thu, 29 Dec 2016 15:46:47 +0000 (+0000) Subject: intel_rdt: check libpqos library version. X-Git-Tag: collectd-5.7.1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cdb49f39d11028bd99a0e4b0aa02d3ac956982fe;p=collectd.git intel_rdt: check libpqos library version. Change-Id: I83d42b63873569445d4c6339d7a69761e16ead14 Signed-off-by: Serhiy Pshyk --- diff --git a/configure.ac b/configure.ac index 993e319e..ab6f2298 100644 --- a/configure.ac +++ b/configure.ac @@ -4234,6 +4234,16 @@ then LDFLAGS="$SAVE_LDFLAGS" fi if test "x$with_libpqos" = "xyes" +then + SAVE_CPPFLAGS="$CPPFLAGS" + CPPFLAGS="$CPPFLAGS $with_libpqos_cppflags" + AC_RUN_IFELSE([AC_LANG_PROGRAM( + [[#include ]], + [[return !(PQOS_VERSION >= 106)]])], + [with_libpqos="yes"], [with_libpqos="no (pqos library version 1.06 or higher is required)"]) + CPPFLAGS="$SAVE_CPPFLAGS" +fi +if test "x$with_libpqos" = "xyes" then BUILD_WITH_LIBPQOS_CPPFLAGS="$with_libpqos_cppflags" BUILD_WITH_LIBPQOS_LDFLAGS="$with_libpqos_ldflags"