[Spice-devel] [PATCH 4/4] Add check for Perl::Text::CSV

Christophe Fergeau cfergeau at redhat.com
Tue Jan 24 09:03:26 PST 2012


This check is only added to configure.ac contrary to the pyparsing
patch.
---
 configure.ac |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 7ed01c2..2874cac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -78,6 +78,16 @@ if test ! -e "$srcdir/gtk/generated_marshallers.c"; then
   AC_MSG_RESULT([found])
 fi
 
+if test ! -e "$srcdir/gtk/vncdisplaykeymap_osx2xtkbd.c"; then
+  AC_MSG_CHECKING([for Text::CSV Perl module])
+  perl -MText::CSV -e "" >/dev/null 2>&1
+  if test $? -ne 0 ; then
+    AC_MSG_RESULT([not found])
+    AC_MSG_ERROR([Text::CSV Perl module is required to compile this package])
+  fi
+  AC_MSG_RESULT([found])
+fi
+
 SPICE_GLIB_REQUIRES=""
 SPICE_GTK_REQUIRES=""
 
-- 
1.7.7.6



More information about the Spice-devel mailing list