1 --- configure.in.orig 2012-02-01 13:56:49.000000000 +0100
2 +++ configure.in 2012-02-23 18:57:32.000000000 +0100
4 [AC_MSG_ERROR(commons-logging.jar not found.)], [])
7 + # hamcrest is a dependency of junit, add it to the classpath if
9 + if test -e /usr/share/java/hamcrest-core.jar; then
10 + OOO_JUNIT_JAR=$OOO_JUNIT_JAR:/usr/share/java/hamcrest-core.jar
13 AC_MSG_RESULT([internal])
14 SYSTEM_APACHE_COMMONS=NO
16 if test $? -eq 0; then
17 # check if either class-path entry is available for hamcrest or
19 - if "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" |$GREP -q hamcrest || \
20 + if "$JAVA_HOME/bin/jar" tf /usr/share/java/hamcrest-core.jar |$GREP -q hamcrest || \
21 "$UNZIP" -c "$OOO_JUNIT_JAR" META-INF/MANIFEST.MF |$GREP 'Class-Path:' | $GREP -q 'hamcrest'; then
22 AC_MSG_RESULT([$OOO_JUNIT_JAR])