])])
CY_LT_LIB([LTLIBSQLITE3], [AC_CHECK_HEADERS([sqlite3.h], [
- AC_SEARCH_LIBS([sqlite3_open_v2], [sqlite3])
+ AC_SEARCH_LIBS([sqlite3_open_v2], [sqlite3 sqlite])
])])
AC_CHECK_HEADERS([ffi.h ffi/ffi.h], [break])
AC_SUBST([CY_JAVA], [1])
], [AC_CHECK_HEADER([jni.h], [
AC_SUBST([CY_JAVA], [1])
- AC_SEARCH_LIBS([JNI_GetCreatedJavaVMs], [dvm], [
- ])
], [
AC_SUBST([CY_JAVA], [0])
])])])
CY_LT_LIB([LTOBJECTIVEC], [AC_CHECK_FRAMEWORK([CoreFoundation], [
#include <CoreFoundation/CFBase.h>
], [CFAllocatorGetDefault();], [
- AC_SUBST([CY_OBJECTIVEC])
+ AC_SUBST([CY_OBJECTIVEC], [1])
AC_CHECK_FRAMEWORK([Foundation], [
#include <Foundation/NSObject.h>
AC_CHECK_PROGS([GNUSTEP_CONFIG], [gnustep-config])
AS_IF([test "x$GNUSTEP_CONFIG" != x], [
- AC_SUBST([CY_OBJECTIVEC])
+ AC_SUBST([CY_OBJECTIVEC], [1])
AC_LIB_APPENDTOVAR([OBJCXXFLAGS], [`$GNUSTEP_CONFIG --objc-flags`])
AC_LIB_APPENDTOVAR([LIBS], [`$GNUSTEP_CONFIG --base-libs`])
], [AC_SUBST([CY_OBJECTIVEC], [0])])
])])
+ ], [
+ AC_SUBST([CY_OBJECTIVEC], [0])
])
AC_LANG_POP([Objective C++])
AM_CONDITIONAL([CY_PYTHON], [test "x$CY_PYTHON" = x1])
AM_CONDITIONAL([CY_OBJECTIVEC], [test "x$CY_OBJECTIVEC" = x1])
+AC_COMPILE_IFELSE([AC_LANG_SOURCE([
+#ifndef __ANDROID__
+#error
+#endif
+])], [
+ AC_SUBST([CY_ANDROID], [1])
+], [
+ AC_SUBST([CY_ANDROID], [0])
+])
+
+AM_CONDITIONAL([CY_ANDROID], [test "x$CY_ANDROID" = x1])
+
AC_ARG_WITH([libclang], AS_HELP_STRING([--with-libclang], [build bridge definitions using this libclang]), [], [with_libclang=no])
AS_IF([test "x$with_libclang" != "xno"], [