Skip to content

Commit

Permalink
Merge bitcoin#398: Test whether ECDH and Schnorr are enabled for JNI
Browse files Browse the repository at this point in the history
eee808d Test whether ECDH and Schnorr are enabled for JNI (Pieter Wuille)
  • Loading branch information
sipa committed May 30, 2016
2 parents 7b0fb18 + eee808d commit b3be852
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions configure.ac
Expand Up @@ -338,11 +338,21 @@ fi

if test x"$use_jni" != x"no"; then
AX_JNI_INCLUDE_DIR
have_jni_dependencies=yes
if test x"$enable_module_schnorr" = x"no"; then
have_jni_dependencies=no
fi
if test x"$enable_module_ecdh" = x"no"; then
have_jni_dependencies=no
fi
if test "x$JNI_INCLUDE_DIRS" = "x"; then
have_jni_dependencies=no
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 were not found])
AC_MSG_ERROR([jni support explicitly requested but headers/dependencies were not found. Enable ECDH and Schnorr and try again.])
fi
AC_MSG_WARN([jni headers not found. jni support disabled])
AC_MSG_WARN([jni headers/dependencies not found. jni support disabled])
use_jni=no
else
use_jni=yes
Expand Down

0 comments on commit b3be852

Please sign in to comment.