On Tuesday 05 April 2016 18:47:29 Matteo Cafasso wrote:
Ensure libtsk is available at compile time.
If not, daemon routines depending on it won't be available.
Signed-off-by: Matteo Cafasso <noxdafox(a)gmail.com>
---
Please also add the optional dependency to the documentation, see
docs/guestfs-building.pod.
m4/guestfs_daemon.m4 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/m4/guestfs_daemon.m4 b/m4/guestfs_daemon.m4
index 88936b2..09cfecd 100644
--- a/m4/guestfs_daemon.m4
+++ b/m4/guestfs_daemon.m4
@@ -118,3 +118,11 @@ PKG_CHECK_MODULES([SD_JOURNAL], [libsystemd],[
AC_MSG_WARN([systemd journal library not found, some features will be
disabled])
])
])
+
+dnl libtsk sleuthkit library (optional)
+AC_CHECK_LIB([tsk],[tsk_version_print],[
+ AC_CHECK_HEADER([tsk/libtsk.h],[
+ AC_SUBST([TSK_LIBS], [-ltsk])
+ AC_DEFINE([HAVE_LIBTSK], [1], [Define to 1 if The Sleuth Kit library (libtsk)
is available.])
Extra space here ... ^
Thanks,
--
Pino Toscano