--- parser3/configure 2025/01/25 15:51:11 1.231 +++ parser3/configure 2026/04/25 14:17:35 1.236 @@ -688,6 +688,8 @@ COMPILE_APACHE_MODULE_TRUE APACHE_CFLAGS APACHE_INC APACHE +AMQP_LIBS +AMQP_INCLUDES MIME_LIBS MIME_INCLUDES XML_LIBS @@ -814,6 +816,7 @@ with_gc with_pcre with_xml with_mailreceive +with_amqp with_sendmail with_apache with_pic @@ -1510,6 +1513,8 @@ Optional Packages: Gnome XML libraries are installed --with-mailreceive=DIR is the directory where Gnome MIME library is installed + --with-amqp=DIR DIR is the directory where + RabbitMQ C library (librabbitmq) is installed \"--with-sendmail=COMMAND\" forces this command to send mail. example: \"--with-sendmail=/usr/sbin/sendmail -t\" (makes parser ignore user-defined sendmail commands) @@ -2159,6 +2164,82 @@ $as_echo "$ac_res" >&6; } } # ac_fn_c_find_uintX_t +# ac_fn_c_find_intX_t LINENO BITS VAR +# ----------------------------------- +# Finds a signed integer type with width BITS, setting cache variable VAR +# accordingly. +ac_fn_c_find_intX_t () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5 +$as_echo_n "checking for int$2_t... " >&6; } +if eval \${$3+:} false; then : + $as_echo_n "(cached) " >&6 +else + eval "$3=no" + # Order is important - never check a type that is potentially smaller + # than half of the expected target width. + for ac_type in int$2_t 'int' 'long int' \ + 'long long int' 'short int' 'signed char'; do + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + enum { N = $2 / 2 - 1 }; +int +main () +{ +static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +$ac_includes_default + enum { N = $2 / 2 - 1 }; +int +main () +{ +static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1) + < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))]; +test_array [0] = 0; +return test_array [0]; + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + +else + case $ac_type in #( + int$2_t) : + eval "$3=yes" ;; #( + *) : + eval "$3=\$ac_type" ;; +esac +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + if eval test \"x\$"$3"\" = x"no"; then : + +else + break +fi + done +fi +eval ac_res=\$$3 + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 +$as_echo "$ac_res" >&6; } + eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno + +} # ac_fn_c_find_intX_t + # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES # ---------------------------------------------------- # Tries to find if the field MEMBER exists in type AGGR, after including @@ -5370,6 +5451,71 @@ fi +# Check whether --with-amqp was given. +if test "${with_amqp+set}" = set; then : + withval=$with_amqp; + AMQP=$withval + + if test -z "$AMQP" -o "$AMQP" = "yes"; then + AMQP_INCLUDES="" + AMQP_LIBS="-lrabbitmq" + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-amqp value was not specified, hoping linker would find it" >&5 +$as_echo "$as_me: WARNING: --with-amqp value was not specified, hoping linker would find it" >&2;} + else + AMQP_INCLUDES="-I$AMQP/include" + if test -f $AMQP/lib/librabbitmq.la; then + AMQP_LIBS="$AMQP/lib/librabbitmq.la" + else + AMQP_LIBS="-L$AMQP/lib -lrabbitmq" + fi + fi + + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librabbitmq" >&5 +$as_echo_n "checking for librabbitmq... " >&6; } + SAVE_LIBS=$LIBS + LIBS="$LIBS $AMQP_LIBS $AMQP_INCLUDES" + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #include +int +main () +{ + amqp_connection_state_t c = 0; + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO"; then : + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +$as_echo "yes" >&6; } + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + if test -z "$AMQP"; then + as_fn_error $? "please specify path to librabbitmq: --with-amqp=DIR" "$LINENO" 5 + else + as_fn_error $? "$AMQP does not seem to be valid librabbitmq installation directory" "$LINENO" 5 + fi + + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + + LIBS=$SAVE_LIBS + +$as_echo "#define WITH_AMQP /**/" >>confdefs.h + + +fi + + + + + + # Check whether --with-sendmail was given. if test "${with_sendmail+set}" = set; then : withval=$with_sendmail; @@ -17810,6 +17956,17 @@ _ACEOF ;; esac +ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t" +case $ac_cv_c_int64_t in #( + no|yes) ;; #( + *) + +cat >>confdefs.h <<_ACEOF +#define int64_t $ac_cv_c_int64_t +_ACEOF +;; +esac + ac_header_dirent=no for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do