From cdb49f39d11028bd99a0e4b0aa02d3ac956982fe Mon Sep 17 00:00:00 2001 From: "Pshyk, SerhiyX" Date: Thu, 29 Dec 2016 15:46:47 +0000 Subject: [PATCH] intel_rdt: check libpqos library version. Change-Id: I83d42b63873569445d4c6339d7a69761e16ead14 Signed-off-by: Serhiy Pshyk --- configure.ac | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index 993e319e..ab6f2298 100644 --- a/configure.ac +++ b/configure.ac @@ -4235,6 +4235,16 @@ then 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" BUILD_WITH_LIBPQOS_LIBS="-lpqos" -- 2.11.0