X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/def9084602162fbc6081fadd247ad50a78ad0bce..5f6902c29e9bba2538e729694ec7c8ced38bf9ec:/configure diff --git a/configure b/configure index c5f9a0f..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`