THRIFT-450. java: Check for Apache Commons Lang also

I forgot that we use the hashcode option when building the tests.
We therefore need to check for HashCodeBuilder before disabling Ivy.

git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@777676 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index 2c53ca0..4a88cd8 100644
--- a/configure.ac
+++ b/configure.ac
@@ -72,7 +72,9 @@
   AC_PATH_PROG([ANT], [ant])
   AX_CHECK_JAVA_CLASS(org.apache.log4j.Logger)
   have_log4j="$success"
-  if test "x$have_log4j" = "xyes" ; then
+  AX_CHECK_JAVA_CLASS(org.apache.commons.lang.builder.HashCodeBuilder)
+  have_hashcode="$success"
+  if test "x$have_log4j" = "xyes" && test "x$have_hashcode" = "xyes" ; then
     ANT_FLAGS="$ANT_FLAGS -Dnoivy="
   fi
   AC_SUBST(ANT_FLAGS)