Do not check for JDK headers if Java bindings are disabled.

This removes an unnecessary build dependency on JDK and fixes
build troubles on systems where javac is present but JDK is not
installed and Java bindings are disabled by ./configure --disable-java.
This commit is contained in:
Jiří Pinkava 2014-11-23 17:38:28 +01:00 committed by Uwe Hermann
parent 2f004b4bc1
commit 84b448ee06
1 changed files with 1 additions and 1 deletions

View File

@ -434,7 +434,7 @@ CXXFLAGS="$CXXFLAGS -Iinclude/libsigrok -I${srcdir}/include -Ibindings/cxx -Ibin
# Find Java compiler and JNI includes for Java bindings.
AC_CHECK_PROG([HAVE_JAVAC], [javac], [yes], [no])
if test "x$HAVE_JAVAC" = "xyes"; then
if test "x$HAVE_JAVAC" = "xyes" && test "x$BINDINGS_JAVA" = "xyes"; then
AX_PROG_JAVAC
if test "x$JNI_INCLUDE_DIRS" = "xauto"; then
if test "x$cross_compiling" = "xyes"; then