THRIFT-199: integrate perl into automake
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@739697 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index cc9d05f..7411bc8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -66,6 +66,12 @@
fi
AM_CONDITIONAL(WITH_PYTHON, [test -n "$PYTHON" -a "$PYTHON" != ":"])
+AX_THRIFT_LIB(perl, [Perl], yes)
+if test "$with_perl" = "yes"; then
+ AC_PATH_PROG([PERL], [perl])
+fi
+AM_CONDITIONAL(WITH_PERL, [test -n "$PERL"])
+
AX_THRIFT_LIB(ruby, [Ruby], yes)
if test "$with_ruby" = "yes"; then
AC_PATH_PROG([RUBY], [ruby])
@@ -177,6 +183,8 @@
lib/cpp/thrift-z.pc
lib/csharp/Makefile
lib/java/Makefile
+ lib/perl/Makefile
+ lib/perl/test/Makefile
lib/py/Makefile
lib/rb/Makefile
if/Makefile