diff --git a/configure.ac b/configure.ac index ccc0ffa04..fedc89865 100644 --- a/configure.ac +++ b/configure.ac @@ -217,8 +217,10 @@ CXXFLAGS="$SAVED_FLAGS" AC_SUBST(CXXFLAGS_COMMON) -VPP_LIBS="-lvlibapi -lvapiclient -lvppapiclient -lvlibmemoryclient -lsvm -lvppinfra -lvlib -lvatplugin" -AC_SUBST(VPP_LIBS) +# -lvlibapi -lvapiclient -lvppapiclient -lvlibmemoryclient -lsvm -lvppinfra -lvlib -lvatplugin +# -lvapiclient -lsvm -lvatplugin +AC_CHECK_LIB([vlib], [main], [AC_SUBST(VPP_LIBS, "-lvlib -lvlibapi -lvppapiclient -lvlibmemoryclient -lvppinfra")]) +AM_CONDITIONAL([USE_VPP], [test "x$VPP_LIBS" != "x"]) AC_ARG_WITH(extra-libsai-ldflags, [ --with-extra-libsai-ldflags=FLAGS