resources when it runs.])])
dnl Check new enough libguestfs.
-PKG_CHECK_MODULES([GUESTFS], [libguestfs >= 1.28])
+PKG_CHECK_MODULES([GUESTFS], [libguestfs >= 1.29.11])
dnl We need some new APIs which were added specifically for virt-bmap:
AC_CHECK_LIB([guestfs], [guestfs_blockdev_setra], [], [
- AC_MSG_ERROR([you need libguestfs >= 1.29.10 which has `guestfs_blockdev_setra'])
-])
-AC_CHECK_LIB([guestfs], [guestfs_bmap], [], [
- AC_MSG_ERROR([you need libguestfs >= 1.29.10 which has `guestfs_bmap'])
+ AC_MSG_ERROR([you need libguestfs >= 1.29.11 which has new APIs for virt-bmap])
])
dnl Check nbdkit is installed.
AC_MSG_ERROR([you need to install the nbdkit development package])
])
+dnl Get nbdkit plugin directory.
+AC_MSG_CHECKING([for nbdkit plugin directory])
+eval `$NBDKIT --dump-config`
+if test "x$plugindir" = "x"; then
+ AC_MSG_ERROR([something went wrong getting nbdkit plugin directory])
+fi
+nbdkitplugindir="$plugindir"
+AC_SUBST([nbdkitplugindir])
+AC_MSG_RESULT([$nbdkitplugindir])
+
dnl Check for C++ boost library with interval_map.hpp
AC_LANG_PUSH([C++])
AC_CHECK_HEADERS([boost/icl/interval_map.hpp], [],