dnl XXX: this is used to support GNU Objective-C struct objc_method
CY_TEST_FLAG([-Wno-deprecated-declarations])
dnl XXX: this is used to support GNU Objective-C struct objc_method
CY_TEST_FLAG([-Wno-deprecated-declarations])
AC_MSG_CHECKING([for -arch $cy_arch])
CY_TRY([CXXFLAGS], ["-arch $cy_arch"], [
AC_TRY_LINK([], [], [CY_SUCCESS], [CY_FAILURE])
AC_MSG_CHECKING([for -arch $cy_arch])
CY_TRY([CXXFLAGS], ["-arch $cy_arch"], [
AC_TRY_LINK([], [], [CY_SUCCESS], [CY_FAILURE])
dnl --enable-javascript {{{
AC_DEFUN([CY_CHECK_JAVASCRIPTCORE], [
dnl --enable-javascript {{{
AC_DEFUN([CY_CHECK_JAVASCRIPTCORE], [
#include <JavaScriptCore/JSBase.h>
], [
JSEvaluateScript(0, 0, 0, 0, 0, 0);
#include <JavaScriptCore/JSBase.h>
], [
JSEvaluateScript(0, 0, 0, 0, 0, 0);
AC_LIB_APPENDTOVAR([LIBS], [`$PKG_CONFIG --libs $cy_webkit_pkg`])
], [:]); if test "x$CY_EXECUTE" = x1; then break; fi
done
AC_LIB_APPENDTOVAR([LIBS], [`$PKG_CONFIG --libs $cy_webkit_pkg`])
], [:]); if test "x$CY_EXECUTE" = x1; then break; fi
done
+AC_ARG_ENABLE([console], AS_HELP_STRING([--disable-console], [disable console]))
+AM_CONDITIONAL([CY_CONSOLE], [test "x$enable_console" != "xno"])
+
+AM_COND_IF([CY_CONSOLE], [
-APR_FIND_APR([], [], [1], [1])
+AS_IF([test "x$LTLIBAPR" != x], [
+ AC_SUBST([LTLIBAPR])
+], [
+ APR_FIND_APR([], [], [1], [1])
AS_CASE([$apr_found], [yes], [
AC_LIB_APPENDTOVAR([CPPFLAGS], [`$apr_config --includes`])
AC_LIB_APPENDTOVAR([LTLIBAPR], [`$apr_config --link-libtool`])
AC_SUBST([LTLIBAPR])
AS_CASE([$apr_found], [yes], [
AC_LIB_APPENDTOVAR([CPPFLAGS], [`$apr_config --includes`])
AC_LIB_APPENDTOVAR([LTLIBAPR], [`$apr_config --link-libtool`])
AC_SUBST([LTLIBAPR])
AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [
PKG_CHECK_MODULES([LIBFFI], [libffi], [
AC_DEFUN([CY_CHECK_PKG_CONFIG_LIBFFI], [
PKG_CHECK_MODULES([LIBFFI], [libffi], [
], [AC_MSG_RESULT([no])])
AS_IF([test "x$CY_OBJECTIVEC" = x1], [
], [AC_MSG_RESULT([no])])
AS_IF([test "x$CY_OBJECTIVEC" = x1], [
#include <CoreFoundation/CFBase.h>
], [CFAllocatorGetDefault();], [
AC_SUBST([CY_OBJECTIVEC])
#include <CoreFoundation/CFBase.h>
], [CFAllocatorGetDefault();], [
AC_SUBST([CY_OBJECTIVEC])
AC_CHECK_FRAMEWORK([Foundation], [
#include <Foundation/NSObject.h>
], [[[[NSObject alloc] init];]])
AC_CHECK_FRAMEWORK([Foundation], [
#include <Foundation/NSObject.h>
], [[[[NSObject alloc] init];]])
], [
AC_ARG_VAR([GNUSTEP_CONFIG], [prints information about the current gnustep installation])
AC_CHECK_PROGS([GNUSTEP_CONFIG], [gnustep-config])
], [
AC_ARG_VAR([GNUSTEP_CONFIG], [prints information about the current gnustep installation])
AC_CHECK_PROGS([GNUSTEP_CONFIG], [gnustep-config])
AC_LIB_APPENDTOVAR([OBJCXXFLAGS], [`$GNUSTEP_CONFIG --objc-flags`])
AC_LIB_APPENDTOVAR([LIBS], [`$GNUSTEP_CONFIG --base-libs`])
], [AC_SUBST([CY_OBJECTIVEC], [0])])
AC_LIB_APPENDTOVAR([OBJCXXFLAGS], [`$GNUSTEP_CONFIG --objc-flags`])
AC_LIB_APPENDTOVAR([LIBS], [`$GNUSTEP_CONFIG --base-libs`])
], [AC_SUBST([CY_OBJECTIVEC], [0])])
CY_LT_LIB([LTLIBREADLINE], [AX_LIB_READLINE])
AS_CASE([$ax_cv_lib_readline], [no], [AC_MSG_ERROR([missing "libreadline"])])
CY_LT_LIB([LTLIBREADLINE], [AX_LIB_READLINE])
AS_CASE([$ax_cv_lib_readline], [no], [AC_MSG_ERROR([missing "libreadline"])])