Add automake support for running the Java tests.


git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665496 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/Makefile.am b/test/Makefile.am
index 07c2e77..db31738 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -1,5 +1,9 @@
 SUBDIRS = py
 
+if ENABLE_JAVA
+SUBDIRS += java
+endif
+
 check_PROGRAMS = \
 	DebugProtoTest \
 	JSONProtoTest \