]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
configure.ac: Fix JUnit 4 detection on Fedora 22. 4990/head
authorIra Cooper <ira@samba.org>
Wed, 17 Jun 2015 16:45:29 +0000 (12:45 -0400)
committerIra Cooper <ira@samba.org>
Wed, 17 Jun 2015 17:09:44 +0000 (13:09 -0400)
This allows the build to detect JUnit 4 on Fedora 22, by adding
junit.jar as a valid jar name for JUnit 4.

Signed-off-by: Ira Cooper <ira@samba.org>
configure.ac

index 20e47cd38df99a021db4ffa6abe3ff66d0e4efd9..f912aa430929a6a406771f24fb84b0933476136f 100644 (file)
@@ -629,9 +629,9 @@ if test "x$enable_cephfs_java" = "xyes"; then
         # the search path.
         AS_IF([test "x$with_debug" = "xyes"], [
                dir='/usr/share/java'
-               junit4_jar=`find $dir -name junit4.jar | head -n 1`
+               junit4_jar=`find $dir -name junit4.jar -o -name junit.jar | head -n 1`
                AS_IF([test -r "$junit4_jar"], [
-                     EXTRA_CLASSPATH_JAR=`dirname $junit4_jar`/junit4.jar
+                     EXTRA_CLASSPATH_JAR=$junit4_jar
                      AC_SUBST(EXTRA_CLASSPATH_JAR)
                      [have_junit4=1]], [
                      AC_MSG_NOTICE([Cannot find junit4.jar (apt-get install junit4)])