X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/2ada05412ca83fce9be76b0f06602d9f79376128..bf998c10baabbd95f2d59d29f9edea0eb107b156:/configure diff --git a/configure b/configure index 4b8170a..ca12353 100755 --- a/configure +++ b/configure @@ -655,6 +655,7 @@ CY_JAVA LTLIBFFI LIBFFI_LIBS LIBFFI_CFLAGS +LTLIBUV CY_EXECUTE_FALSE CY_EXECUTE_TRUE CY_ATTACH_FALSE @@ -669,6 +670,7 @@ PTHREAD_CFLAGS PTHREAD_LIBS PTHREAD_CC ax_pthread_config +LFLAGS GNUTAR GPERF FLEX @@ -849,6 +851,7 @@ BISON FLEX GPERF GNUTAR +LFLAGS WEBKIT_CFLAGS WEBKIT_LIBS LIBFFI_CFLAGS @@ -1530,6 +1533,7 @@ Some influential environment variables: FLEX the fast lexical analyser generator GPERF perfect hash function generator GNUTAR a very sticky lump of files + LFLAGS flex flags WEBKIT_CFLAGS C compiler flags for WEBKIT, overriding pkg-config WEBKIT_LIBS linker flags for WEBKIT, overriding pkg-config @@ -17229,6 +17233,11 @@ fi +if test "x$LFLAGS" = x; then : + LFLAGS="--full --ecs" +fi + + @@ -20178,7 +20187,7 @@ $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } else - for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do + for cy_webkit_pkg in "javascriptcoregtk-4.0"; do pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 @@ -20447,7 +20456,7 @@ $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } else - for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do + for cy_webkit_pkg in "javascriptcoregtk-4.0"; do pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 @@ -20716,7 +20725,7 @@ $as_echo "$ac_cv_framework_JavaScriptCore" >&6; } else - for cy_webkit_pkg in "webkit-1.0" "WebKitGtk"; do + for cy_webkit_pkg in "javascriptcoregtk-4.0"; do pkg_failed=no { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBKIT" >&5 @@ -20893,6 +20902,83 @@ fi case $CY_EXECUTE in #( 1) : + + cy_save=$LIBS + LIBS= + for ac_header in uv.h +do : + ac_fn_cxx_check_header_mongrel "$LINENO" "uv.h" "ac_cv_header_uv_h" "$ac_includes_default" +if test "x$ac_cv_header_uv_h" = xyes; then : + cat >>confdefs.h <<_ACEOF +#define HAVE_UV_H 1 +_ACEOF + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing uv_loop_init" >&5 +$as_echo_n "checking for library containing uv_loop_init... " >&6; } +if ${ac_cv_search_uv_loop_init+:} false; then : + $as_echo_n "(cached) " >&6 +else + ac_func_search_save_LIBS=$LIBS +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +/* Override any GCC internal prototype to avoid an error. + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +#ifdef __cplusplus +extern "C" +#endif +char uv_loop_init (); +int +main () +{ +return uv_loop_init (); + ; + return 0; +} +_ACEOF +for ac_lib in '' uv; do + if test -z "$ac_lib"; then + ac_res="none required" + else + ac_res=-l$ac_lib + LIBS="-l$ac_lib $ac_func_search_save_LIBS" + fi + if ac_fn_cxx_try_link "$LINENO"; then : + ac_cv_search_uv_loop_init=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext + if ${ac_cv_search_uv_loop_init+:} false; then : + break +fi +done +if ${ac_cv_search_uv_loop_init+:} false; then : + +else + ac_cv_search_uv_loop_init=no +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_uv_loop_init" >&5 +$as_echo "$ac_cv_search_uv_loop_init" >&6; } +ac_res=$ac_cv_search_uv_loop_init +if test "$ac_res" != no; then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + + +fi + +done + + LTLIBUV=$LIBS + LIBS=$cy_save + + + for ac_header in ffi.h ffi/ffi.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` @@ -21224,7 +21310,74 @@ fi - ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for framework JavaVM" >&5 +$as_echo_n "checking for framework JavaVM... " >&6; } +if ${ac_cv_framework_JavaVM+:} false; then : + $as_echo_n "(cached) " >&6 +else + + ac_check_framework_save_LIBS=$LIBS + LIBS="-framework JavaVM $LIBS" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + + #include + +int +main () +{ +JNI_GetCreatedJavaVMs(NULL, 0, NULL); + ; + return 0; +} +_ACEOF +if ac_fn_cxx_try_link "$LINENO"; then : + + ac_cv_framework_JavaVM=yes + +else + ac_cv_framework_JavaVM=no +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$ac_check_framework_save_LIBS + +fi +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_JavaVM" >&5 +$as_echo "$ac_cv_framework_JavaVM" >&6; } + if test $ac_cv_framework_JavaVM = yes; then : + + + for element in "-framework JavaVM"; do + haveit= + for x in $LIBS; do + + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + eval x=\"$x\" + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" + + if test "X$x" = "X$element"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + LIBS="${LIBS}${LIBS:+ }$element" + fi + done + + + CY_JAVA=1 + + + +else + ac_fn_cxx_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default" if test "x$ac_cv_header_jni_h" = xyes; then : CY_JAVA=1 @@ -21302,6 +21455,7 @@ else fi +fi ac_ext=mm ac_cpp='$OBJCXXCPP $CPPFLAGS'