It is used by the generate-p2v-config.pl build script, so make sure to
error out earlier when this Perl module is not found.
Followup of commit 2ac0713900dc60d9f0fbb8e5234ee41254f03e84.
---
m4/p2v-progs.m4 | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/m4/p2v-progs.m4 b/m4/p2v-progs.m4
index d54b391..b3d0ce7 100644
--- a/m4/p2v-progs.m4
+++ b/m4/p2v-progs.m4
@@ -58,6 +58,14 @@ else
AC_MSG_RESULT([yes])
fi
+dnl Check for List::MoreUtils, used by generate-p2v-config.pl
+AC_MSG_CHECKING([for List::MoreUtils])
+if ! $PERL -MList::MoreUtils -e1 >&AS_MESSAGE_LOG_FD 2>&1; then
+ AC_MSG_ERROR([perl List::MoreUtils must be installed])
+else
+ AC_MSG_RESULT([yes])
+fi
+
dnl Define the path to the podwrapper program.
PODWRAPPER="\$(guestfs_am_v_podwrapper)$PERL $(pwd)/podwrapper.pl"
AC_SUBST([PODWRAPPER])
--
2.21.0