diff --git a/configure.ac b/configure.ac index e5fcbcb4ed..e4e9d7eadf 100644 --- a/configure.ac +++ b/configure.ac @@ -400,6 +400,9 @@ if test x"$use_jni" != x"no"; then if test "x$JNI_INCLUDE_DIRS" = "x"; then have_jni_dependencies=no fi + if test "x$have_jni_dependencies" = "xno"; then + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]])], [have_jni_dependencies=yes]) + fi if test "x$have_jni_dependencies" = "xno"; then if test x"$use_jni" = x"yes"; then AC_MSG_ERROR([jni support explicitly requested but headers/dependencies were not found. Enable ECDH and try again.])