Skip to content

Commit 397a078

Browse files
committed
build: Print versions of various libraries being used
Useful for troubleshooting. (cherry picked from virt-v2v commit f31e5602ecc8ee613fdf8b6415d07fefde932969)
1 parent e2574c6 commit 397a078

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

m4/guestfs-libraries.m4

+5
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ dnl Of course we need libguestfs.
2121
dnl
2222
dnl We need libguestfs 1.55.6 for guestfs_sh_out.
2323
PKG_CHECK_MODULES([LIBGUESTFS], [libguestfs >= 1.55.6])
24+
printf "libguestfs version is "; $PKG_CONFIG --modversion libguestfs
2425

2526
dnl Test if it's GNU or XSI strerror_r.
2627
AC_FUNC_STRERROR_R
@@ -143,6 +144,7 @@ AS_IF([test "$with_libvirt" != "no"],[
143144
AC_SUBST([LIBVIRT_CFLAGS])
144145
AC_SUBST([LIBVIRT_LIBS])
145146
AC_DEFINE([HAVE_LIBVIRT],[1],[libvirt found at compile time.])
147+
printf "libvirt version is "; $PKG_CONFIG --modversion libvirt
146148
],[
147149
if test "$DEFAULT_BACKEND" = "libvirt"; then
148150
AC_MSG_ERROR([Please install the libvirt devel package])
@@ -158,16 +160,19 @@ AC_SUBST([libvirt_ro_uri])
158160

159161
dnl libxml2 (required)
160162
PKG_CHECK_MODULES([LIBXML2], [libxml-2.0])
163+
printf "libxml2 version is "; $PKG_CONFIG --modversion libxml-2.0
161164
old_LIBS="$LIBS"
162165
LIBS="$LIBS $LIBXML2_LIBS"
163166
AC_CHECK_FUNCS([xmlBufferDetach])
164167
LIBS="$old_LIBS"
165168

166169
dnl Check for JSON-C library (required).
167170
PKG_CHECK_MODULES([JSON_C], [json-c >= 0.14])
171+
printf "json-c version is "; $PKG_CONFIG --modversion json-c
168172

169173
dnl Check for libosinfo (mandatory)
170174
PKG_CHECK_MODULES([LIBOSINFO], [libosinfo-1.0])
175+
printf "libosinfo version is "; $PKG_CONFIG --modversion libosinfo-1.0
171176

172177
dnl Check for hwdata directory (containing pci.ids) (optional, for virt-drivers)
173178
PKG_CHECK_VAR([HWDATA_PKGDATADIR], [hwdata], [pkgdatadir])

0 commit comments

Comments
 (0)