[gtk-vnc] check for Text::CVS perl module in configure. closes #634621



commit 753ddcb203fd9ad26829a065fd4d47c82773e849
Author: Jonh Wendell <jwendell gnome org>
Date:   Fri Nov 26 11:42:07 2010 -0300

    check for Text::CVS perl module in configure. closes #634621

 configure.ac |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 781ba2c..7a0cbcf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -344,9 +344,20 @@ if test "x$enable_plugin" = "xyes"; then
     AC_SUBST(FIREFOX_PLUGIN_LIBS)
 fi
 
+AC_PATH_PROGS(PERL, perl5 perl)
+if test -z "$PERL" ; then
+    AC_MSG_ERROR([perl is required for gtk-vnc])
+fi
+
+AC_MSG_CHECKING([for Text::CSV])
+if `$PERL -e "require Text::CSV" 2>/dev/null`; then
+   AC_MSG_RESULT([ok])
+else
+   AC_MSG_ERROR([Text::CSV perl module is required for gtk-vnc])
+fi
+
 dnl define a MAINT-like variable REBUILD which is set
 dnl if Perl, so autogenerated sources can be rebuilt
-AC_PATH_PROGS(PERL, perl5 perl)
 AC_ARG_ENABLE(rebuilds, [  --disable-rebuilds      disable all source autogeneration rules],,enable_rebuilds=yes)
 REBUILD=\#
 if test "x$enable_rebuilds" = "xyes" && \



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]