From aae8acb2db6210911f809e857eebfd4d1c765ac2 Mon Sep 17 00:00:00 2001 From: Roger Meier Date: Wed, 15 Jan 2014 13:55:09 +0100 Subject: [PATCH] THRIFT-2318 perl: dependency Class::Accessor not checked Patch: Roger Meier --- .travis.yml | 2 +- configure.ac | 6 +++++- contrib/Vagrantfile | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4f8115e4..06f57c2f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -37,7 +37,7 @@ before_install: # Python - sudo apt-get install -qq python-all python-all-dev python-all-dbg # Perl - - sudo apt-get install -qq libbit-vector-perl + - sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl # PHP - sudo apt-get install -qq php5-dev php5-cli phpunit - sudo apt-get upgrade pear diff --git a/configure.ac b/configure.ac index 0bcf8075..593b66cf 100755 --- a/configure.ac +++ b/configure.ac @@ -195,9 +195,13 @@ if test "$with_perl" = "yes"; then if test -n "$PERL" ; then AC_PROG_PERL_MODULES([Bit::Vector], success="yes", success="no") have_perl_bit_vector="$success" + AC_PROG_PERL_MODULES([Class::Accessor], success="yes", success="no") + have_perl_class_accessor="$success" fi if test -n "$PERL" -a "$have_perl_bit_vector" = "yes" ; then - have_perl="yes" + if test -n "$PERL" -a "$have_perl_class_accessor" = "yes" ; then + have_perl="yes" + fi fi fi AM_CONDITIONAL(WITH_PERL, [test "$have_perl" = "yes"]) diff --git a/contrib/Vagrantfile b/contrib/Vagrantfile index 5a99127c..cc8bcdfa 100644 --- a/contrib/Vagrantfile +++ b/contrib/Vagrantfile @@ -41,7 +41,7 @@ sudo apt-get install -qq ruby rubygems sudo gem install bundler rake # Perl dependencies -sudo apt-get install -qq libbit-vector-perl +sudo apt-get install -qq libbit-vector-perl libclass-accessor-class-perl # Php dependencies sudo apt-get install -qq php5 php5-dev php5-cli php-pear -- 2.17.1