[Devel] [PATCH 5/8] configure.ac: checks for ploop
Kir Kolyshkin
kir at openvz.org
Tue Jun 2 15:50:23 PDT 2015
Add checks for ploop library and header. Define and use PLOOP_LIBS.
Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
configure.ac | 7 +++++++
lib/Makefile.am | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/configure.ac b/configure.ac
index b02f611..b7dc54b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -75,6 +75,13 @@ AC_CHECK_HEADER([vz/vzevent.h], ,
AC_CHECK_LIB([vzevent], [vzevt_register], ,
AC_MSG_ERROR([Please install libvzevent devel package]))
+# Checks for ploop lib
+AC_CHECK_HEADER([ploop/libploop.h], ,
+ AC_MSG_ERROR([Please install ploop devel package]))
+AC_CHECK_LIB([ploop], [ploop_replace_image], PLOOP_LIBS="-lploop",
+ AC_MSG_ERROR([Please install ploop package]))
+AC_SUBST(PLOOP_LIBS)
+
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_INLINE
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 6ae06c7..328f864 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -71,5 +71,5 @@ libvzctl2_la_SOURCES = bitmap.c \
# 5. If any interfaces have been added since the last public release, then increment age.
# 6. If any interfaces have been removed since the last public release, then set age to 0.
libvzctl2_la_LDFLAGS = -version-info 2:1:0 -Wl,--version-script=version.map
-libvzctl2_la_LIBADD = $(XML_LIBS) -lutil -lploop -lcrypt $(UUID_LIBS)
+libvzctl2_la_LIBADD = $(XML_LIBS) -lutil $(PLOOP_LIBS) -lcrypt $(UUID_LIBS)
--
1.9.3
More information about the Devel
mailing list