AS_CASE([$ac_cv_search_ffi_call], [no], [CY_CHECK_PKG_CONFIG_LIBFFI])
]))
- AC_CHECK_HEADER([jni.h], [
+ AC_CHECK_FRAMEWORK([JavaVM], [
+ #include <JavaVM/jni.h>
+ ], [JNI_GetCreatedJavaVMs(NULL, 0, NULL);], [
+ AC_SUBST([CY_JAVA], [1])
+ ], [AC_CHECK_HEADER([jni.h], [
AC_SUBST([CY_JAVA], [1])
CY_LT_LIB([LTJAVA], [AC_SEARCH_LIBS([JNI_GetCreatedJavaVMs], [dvm], [
])])
], [
AC_SUBST([CY_JAVA], [0])
- ])
+ ])])
AC_LANG_PUSH([Objective C++])