From: David Reiss Date: Fri, 22 May 2009 19:50:29 +0000 (+0000) Subject: THRIFT-450. java: Check for Apache Commons Lang also X-Git-Tag: 0.2.0~102 X-Git-Url: https://source.supwisdom.com/gerrit/gitweb?a=commitdiff_plain;h=fdfcebda522c4c84f9c81cebdfb43d878d37a35a;p=common%2Fthrift.git 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 2c53ca0a..4a88cd80 100644 --- a/configure.ac +++ b/configure.ac @@ -72,7 +72,9 @@ if test "$with_java" = "yes"; then 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)