--- parser3/configure 2020/12/07 16:45:15 1.201 +++ parser3/configure 2024/09/10 19:12:59 1.219 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for parser 3.4.6b. +# Generated by GNU Autoconf 2.69 for parser 3.4.7b. # # # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. @@ -591,8 +591,8 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='parser' PACKAGE_TARNAME='parser' -PACKAGE_VERSION='3.4.6b' -PACKAGE_STRING='parser 3.4.6b' +PACKAGE_VERSION='3.4.7b' +PACKAGE_STRING='parser 3.4.7b' PACKAGE_BUGREPORT='' PACKAGE_URL='' @@ -806,8 +806,7 @@ with_coverage with_profiler with_assertions with_sjlj_exceptions -with_system_config -with_system_log +with_system_cfg enable_safe_mode enable_execs enable_stringstream @@ -1395,7 +1394,7 @@ if test "$ac_init_help" = "long"; then # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures parser 3.4.6b to adapt to many kinds of systems. +\`configure' configures parser 3.4.7b to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1466,7 +1465,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of parser 3.4.6b:";; + short | recursive ) echo "Configuration of parser 3.4.7b:";; esac cat <<\_ACEOF @@ -1503,7 +1502,6 @@ Optional Packages: --with-assertions to enable assertions --with-sjlj-exceptions to enable simple 'throw' from dynamic library --with-system-cfg=FILE to specify system-wide auto.p - --with-system-log=FILE to specify system-wide parser3.log --with-gc=DIR DIR is the directory where Boehm garbage collecting library is installed --with-pcre=DIR DIR is the directory where @@ -1611,7 +1609,7 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -parser configure 3.4.6b +parser configure 3.4.7b generated by GNU Autoconf 2.69 Copyright (C) 2012 Free Software Foundation, Inc. @@ -2308,7 +2306,7 @@ cat >config.log <<_ACEOF This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by parser $as_me 3.4.6b, which was +It was created by parser $as_me 3.4.7b, which was generated by GNU Autoconf 2.69. Invocation command line was $ $0 $@ @@ -2864,12 +2862,7 @@ program_transform_name=`$as_echo "$progr am_aux_dir=`cd "$ac_aux_dir" && pwd` if test x"${MISSING+set}" != xset; then - case $am_aux_dir in - *\ * | *\ *) - MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; - *) - MISSING="\${SHELL} $am_aux_dir/missing" ;; - esac + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then @@ -3174,7 +3167,7 @@ fi # Define the identity of the package. PACKAGE='parser' - VERSION='3.4.6b' + VERSION='3.4.7b' cat >>confdefs.h <<_ACEOF @@ -4967,21 +4960,12 @@ fi -# Check whether --with-system-config was given. -if test "${with_system_config+set}" = set; then : - withval=$with_system_config; -$as_echo "#define SYSTEM_CONFIG_FILE \$withval" >>confdefs.h - - -fi - - - - -# Check whether --with-system-log was given. -if test "${with_system_log+set}" = set; then : - withval=$with_system_log; -$as_echo "#define SYSTEM_LOG_FILE \$withval" >>confdefs.h +# Check whether --with-system-cfg was given. +if test "${with_system_cfg+set}" = set; then : + withval=$with_system_cfg; +cat >>confdefs.h <<_ACEOF +#define SYSTEM_CONFIG_FILE "$withval" +_ACEOF fi @@ -5113,27 +5097,32 @@ fi if test "${with_pcre+set}" = set; then : withval=$with_pcre; PCRE=$withval - PCRE_INCLUDES="-I$PCRE/include" - PCRE_LIBS="$PCRE/lib/libpcre.la" - - if test -f $PCRE/include/pcre.h -a -f $PCRE_LIBS; then - PCRE_OK="yes" - else - PCRE_LIBS="-L$PCRE/lib -lpcre" - fi if test "$PCRE" = "yes"; then PCRE="" - PCRE_LIBS="-lpcre" - PCRE_INCLUDES="" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre value was not specified, hoping linker would find it" >&5 $as_echo "$as_me: WARNING: --with-pcre value was not specified, hoping linker would find it" >&2;} + else + PCRE_INCLUDES="-I$PCRE/include" + + if test -f $PCRE/include/pcre.h -a -f $PCRE/lib/libpcre.la; then + PCRE_OK="yes" + PCRE_LIBS="$PCRE/lib/libpcre.la" + else + if test -f $PCRE/include/pcre2.h -a -f $PCRE/lib/libpcre2-8.la; then + PCRE_OK="yes" + PCRE_LIBS="$PCRE/lib/libpcre2-8.la" + +$as_echo "#define HAVE_PCRE2 /**/" >>confdefs.h + + else + PCRE_LIBS="-L$PCRE/lib" + fi + fi fi else - PCRE_LIBS="-lpcre" - PCRE_INCLUDES="" { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-pcre was not specified, hoping linker would find it" >&5 $as_echo "$as_me: WARNING: --with-pcre was not specified, hoping linker would find it" >&2;} @@ -5141,8 +5130,45 @@ fi if test -z "$PCRE_OK"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prce" >&5 -$as_echo_n "checking for prce... " >&6; } + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2" >&5 +$as_echo_n "checking for pcre2... " >&6; } + SAVE_LIBS=$LIBS + LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES -lpcre2-8" + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + #define PCRE2_CODE_UNIT_WIDTH 8 +#include +int +main () +{ + void *v=pcre2_general_context_create(0,0,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; } + PCRE_LIBS="$PCRE_LIBS -lpcre2-8" + +$as_echo "#define HAVE_PCRE2 /**/" >>confdefs.h + + PCRE_OK="yes" + +else + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 +$as_echo "no" >&6; } + +fi +rm -f core conftest.err conftest.$ac_objext \ + conftest$ac_exeext conftest.$ac_ext + LIBS=$SAVE_LIBS +fi + +if test -z "$PCRE_OK"; then + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre" >&5 +$as_echo_n "checking for pcre... " >&6; } + PCRE_LIBS="$PCRE_LIBS -lpcre" SAVE_LIBS=$LIBS LIBS="$LIBS $PCRE_LIBS $PCRE_INCLUDES" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -18320,7 +18346,7 @@ fi done -for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h +for ac_header in assert.h limits.h ctype.h math.h process.h stdarg.h setjmp.h signal.h pthread.h do : as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" @@ -18900,6 +18926,55 @@ $as_echo "no" >&6; } fi rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettid" >&5 +$as_echo_n "checking for gettid... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main () +{ +uint tid=syscall(__NR_gettid); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + $as_echo "#define HAVE_GETTID 1" >>confdefs.h + { $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; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS" >&5 +$as_echo_n "checking for TLS... " >&6; } +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +__thread int i=0; +int +main () +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO"; then : + $as_echo "#define HAVE_TLS 1" >>confdefs.h + { $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; } +fi +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 0..9999 year date range support" >&5 $as_echo_n "checking for 0..9999 year date range support... " >&6; } if test "$cross_compiling" = yes; then : @@ -18943,6 +19018,8 @@ fi + + ac_config_headers="$ac_config_headers src/include/pa_config_auto.h" @@ -19511,7 +19588,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_wri # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by parser $as_me 3.4.6b, which was +This file was extended by parser $as_me 3.4.7b, which was generated by GNU Autoconf 2.69. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -19577,7 +19654,7 @@ _ACEOF cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -parser config.status 3.4.6b +parser config.status 3.4.7b configured by $0, generated by GNU Autoconf 2.69, with options \\"\$ac_cs_config\\" @@ -20793,7 +20870,9 @@ $as_echo X/"$am_mf" | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} as_fn_error $? "Something went wrong bootstrapping makefile fragments - for automatic dependency tracking. Try re-running configure with the + for automatic dependency tracking. If GNU make was not used, consider + re-running the configure script with MAKE=\"gmake\" (or whatever is + necessary). You can also try re-running configure with the '--disable-dependency-tracking' option to at least be able to build the package (albeit without support for automatic dependency tracking). See \`config.log' for more details" "$LINENO" 5; }