Code

configure.ac: fix previous change to detect libjvm
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Sat, 5 Dec 2015 21:17:43 +0000 (22:17 +0100)
committerFlorian Forster <octo@collectd.org>
Sat, 5 Dec 2015 22:11:40 +0000 (23:11 +0100)
This worked on OSX but failed on Linux.

Signed-off-by: Florian Forster <octo@collectd.org>
configure.ac

index c9e98e153e33db8d06ec965483cb69aee58fe337..6cdfcd6fb7b22e11dacf86374f5ba5701005d349 100644 (file)
@@ -2185,7 +2185,7 @@ then
                fi
 
                AC_MSG_CHECKING([for libjvm.so])
-               TMPVAR=`find -L "$with_java_home" -type f -name libjvm.so -o -name libjvm.dylib -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
+               TMPVAR=`find -L "$with_java_home" -type f \( -name libjvm.so -o -name libjvm.dylib \) -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
                if test "x$TMPVAR" != "x"
                then
                        AC_MSG_RESULT([found in $TMPVAR])