--- parser3/configure 2026/10/07 21:51:17 1.243 +++ parser3/configure 2026/10/29 10:25:00 1.249 @@ -6512,6 +6512,73 @@ then : fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5 +printf %s "checking for library containing timer_create... " >&6; } +if test ${ac_cv_search_timer_create+y} +then : + printf %s "(cached) " >&6 +else case e in #( + e) 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. + The 'extern "C"' is for builds by C++ compilers; + although this is not generally supported in C code supporting it here + has little cost and some practical benefit (sr 110532). */ +#ifdef __cplusplus +extern "C" +#endif +char timer_create (void); +int +main (void) +{ +return timer_create (); + ; + return 0; +} +_ACEOF +for ac_lib in '' rt +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_c_try_link "$LINENO" +then : + ac_cv_search_timer_create=$ac_res +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext + if test ${ac_cv_search_timer_create+y} +then : + break +fi +done +if test ${ac_cv_search_timer_create+y} +then : + +else case e in #( + e) ac_cv_search_timer_create=no ;; +esac +fi +rm conftest.$ac_ext +LIBS=$ac_func_search_save_LIBS ;; +esac +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5 +printf "%s\n" "$ac_cv_search_timer_create" >&6; } +ac_res=$ac_cv_search_timer_create +if test "$ac_res" != no +then : + test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" + +fi + @@ -7047,10 +7114,19 @@ then : AMQP_LIBS="-lrabbitmq" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5 printf "%s\n" "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;} + + ac_fn_c_check_header_compile "$LINENO" "amqp_ssl_socket.h" "ac_cv_header_amqp_ssl_socket_h" "$ac_includes_default" +if test "x$ac_cv_header_amqp_ssl_socket_h" = xyes +then : + +printf "%s\n" "#define WITH_AMQP_SSL /**/" >>confdefs.h + +fi + else AMQP_INCLUDES="-I$AMQP/include" - if test -f $AMQP/lib/librabbitmq.la; then - AMQP_LIBS="$AMQP/lib/librabbitmq.la" + if test -f $AMQP/lib/librabbitmq.a; then + AMQP_LIBS="$AMQP/lib/librabbitmq.a" else AMQP_LIBS="-L$AMQP/lib -lrabbitmq" fi @@ -7094,22 +7170,6 @@ rm -f core conftest.err conftest.$ac_obj LIBS=$SAVE_LIBS - SAVE_CPPFLAGS=$CPPFLAGS - CPPFLAGS="$CPPFLAGS $AMQP_INCLUDES" - ac_fn_c_check_header_compile "$LINENO" "amqp_ssl_socket.h" "ac_cv_header_amqp_ssl_socket_h" "$ac_includes_default" -if test "x$ac_cv_header_amqp_ssl_socket_h" = xyes -then : - -else case e in #( - e) -printf "%s\n" "#define WITHOUT_AMQP_SSL /**/" >>confdefs.h - ;; -esac -fi - - CPPFLAGS=$SAVE_CPPFLAGS - - printf "%s\n" "#define WITH_AMQP /**/" >>confdefs.h @@ -7132,6 +7192,19 @@ then : REDIS_LIBS="-lhiredis" { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --with-redis value was not specified, hoping linker would find it" >&5 printf "%s\n" "$as_me: WARNING: --with-redis value was not specified, hoping linker would find it" >&2;} + + ac_fn_c_check_header_compile "$LINENO" "hiredis/hiredis_ssl.h" "ac_cv_header_hiredis_hiredis_ssl_h" "#include +" +if test "x$ac_cv_header_hiredis_hiredis_ssl_h" = xyes +then : + + +printf "%s\n" "#define WITH_REDIS_SSL /**/" >>confdefs.h + + REDIS_LIBS="-lhiredis_ssl $REDIS_LIBS" + +fi + else REDIS_INCLUDES="-I$REDIS/include" if test -f $REDIS/lib/libhiredis.a; then @@ -22819,6 +22892,7 @@ printf %s "checking for gettid... " >&6; /* end confdefs.h. */ #include +#include #include int @@ -22843,6 +22917,37 @@ fi rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_getthreadid_np" >&5 +printf %s "checking for pthread_getthreadid_np... " >&6; } + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main (void) +{ +unsigned int tid=pthread_getthreadid_np(); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + printf "%s\n" "#define HAVE_PTHREAD_GETTHREADID_NP 1" >>confdefs.h + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } +else case e in #( + e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 printf %s "checking for TLS... " >&6; } @@ -22914,6 +23019,7 @@ fi +