| | |
| | | CFLAGS_CRC |
| | | LIBOBJS |
| | | OPENSSL |
| | | PCRE2 |
| | | ZSTD |
| | | LZ4 |
| | | UUID_LIBS |
| | |
| | | STRIP |
| | | LDFLAGS_SL |
| | | LDFLAGS_EX |
| | | PCRE2_LIBS |
| | | PCRE2_CFLAGS |
| | | with_pcre2 |
| | | ZSTD_LIBS |
| | | ZSTD_CFLAGS |
| | | with_zstd |
| | |
| | | with_zlib |
| | | with_lz4 |
| | | with_zstd |
| | | with_pcre2 |
| | | with_ssl |
| | | with_openssl |
| | | enable_largefile |
| | |
| | | LZ4_LIBS |
| | | ZSTD_CFLAGS |
| | | ZSTD_LIBS |
| | | PCRE2_CFLAGS |
| | | PCRE2_LIBS |
| | | LDFLAGS_EX |
| | | LDFLAGS_SL |
| | | PERL |
| | |
| | | --without-zlib do not use Zlib |
| | | --with-lz4 build with LZ4 support |
| | | --with-zstd build with ZSTD support |
| | | --with-pcre2 build with PCRE2 support |
| | | --with-ssl=LIB use LIB for SSL/TLS support (openssl) |
| | | --with-openssl obsolete spelling of --with-ssl=openssl |
| | | |
| | |
| | | LZ4_LIBS linker flags for LZ4, overriding pkg-config |
| | | ZSTD_CFLAGS C compiler flags for ZSTD, overriding pkg-config |
| | | ZSTD_LIBS linker flags for ZSTD, overriding pkg-config |
| | | PCRE2_CFLAGS |
| | | C compiler flags for PCRE2, overriding pkg-config |
| | | PCRE2_LIBS linker flags for PCRE2, overriding pkg-config |
| | | LDFLAGS_EX extra linker flags for linking executables only |
| | | LDFLAGS_SL extra linker flags for linking shared libraries only |
| | | PERL Perl program |
| | |
| | | esac |
| | | done |
| | | fi |
| | | |
| | | # |
| | | # PCRE2 |
| | | # |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with PCRE2 support" >&5 |
| | | $as_echo_n "checking whether to build with PCRE2 support... " >&6; } |
| | | |
| | | |
| | | |
| | | # Check whether --with-pcre2 was given. |
| | | if test "${with_pcre2+set}" = set; then : |
| | | withval=$with_pcre2; |
| | | case $withval in |
| | | yes) |
| | | |
| | | $as_echo "#define USE_PCRE2 1" >>confdefs.h |
| | | |
| | | ;; |
| | | no) |
| | | : |
| | | ;; |
| | | *) |
| | | as_fn_error $? "no argument expected for --with-pcre2 option" "$LINENO" 5 |
| | | ;; |
| | | esac |
| | | |
| | | else |
| | | with_pcre2=no |
| | | |
| | | fi |
| | | |
| | | |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_pcre2" >&5 |
| | | $as_echo "$with_pcre2" >&6; } |
| | | |
| | | if test "$with_pcre2" = yes; then |
| | | |
| | | pkg_failed=no |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libpcre2-8" >&5 |
| | | $as_echo_n "checking for libpcre2-8... " >&6; } |
| | | |
| | | if test -n "$PCRE2_CFLAGS"; then |
| | | pkg_cv_PCRE2_CFLAGS="$PCRE2_CFLAGS" |
| | | elif test -n "$PKG_CONFIG"; then |
| | | if test -n "$PKG_CONFIG" && \ |
| | | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5 |
| | | ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5 |
| | | ac_status=$? |
| | | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| | | test $ac_status = 0; }; then |
| | | pkg_cv_PCRE2_CFLAGS=`$PKG_CONFIG --cflags "libpcre2-8" 2>/dev/null` |
| | | test "x$?" != "x0" && pkg_failed=yes |
| | | else |
| | | pkg_failed=yes |
| | | fi |
| | | else |
| | | pkg_failed=untried |
| | | fi |
| | | if test -n "$PCRE2_LIBS"; then |
| | | pkg_cv_PCRE2_LIBS="$PCRE2_LIBS" |
| | | elif test -n "$PKG_CONFIG"; then |
| | | if test -n "$PKG_CONFIG" && \ |
| | | { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpcre2-8\""; } >&5 |
| | | ($PKG_CONFIG --exists --print-errors "libpcre2-8") 2>&5 |
| | | ac_status=$? |
| | | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| | | test $ac_status = 0; }; then |
| | | pkg_cv_PCRE2_LIBS=`$PKG_CONFIG --libs "libpcre2-8" 2>/dev/null` |
| | | test "x$?" != "x0" && pkg_failed=yes |
| | | else |
| | | pkg_failed=yes |
| | | fi |
| | | else |
| | | pkg_failed=untried |
| | | fi |
| | | |
| | | |
| | | |
| | | if test $pkg_failed = yes; then |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | $as_echo "no" >&6; } |
| | | |
| | | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
| | | _pkg_short_errors_supported=yes |
| | | else |
| | | _pkg_short_errors_supported=no |
| | | fi |
| | | if test $_pkg_short_errors_supported = yes; then |
| | | PCRE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpcre2-8" 2>&1` |
| | | else |
| | | PCRE2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpcre2-8" 2>&1` |
| | | fi |
| | | # Put the nasty error message in config.log where it belongs |
| | | echo "$PCRE2_PKG_ERRORS" >&5 |
| | | |
| | | as_fn_error $? "Package requirements (libpcre2-8) were not met: |
| | | |
| | | $PCRE2_PKG_ERRORS |
| | | |
| | | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
| | | installed software in a non-standard prefix. |
| | | |
| | | Alternatively, you may set the environment variables PCRE2_CFLAGS |
| | | and PCRE2_LIBS to avoid the need to call pkg-config. |
| | | See the pkg-config man page for more details." "$LINENO" 5 |
| | | elif test $pkg_failed = untried; then |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | $as_echo "no" >&6; } |
| | | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| | | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| | | as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it |
| | | is in your PATH or set the PKG_CONFIG environment variable to the full |
| | | path to pkg-config. |
| | | |
| | | Alternatively, you may set the environment variables PCRE2_CFLAGS |
| | | and PCRE2_LIBS to avoid the need to call pkg-config. |
| | | See the pkg-config man page for more details. |
| | | |
| | | To get pkg-config, see <http://pkg-config.freedesktop.org/>. |
| | | See \`config.log' for more details" "$LINENO" 5; } |
| | | else |
| | | PCRE2_CFLAGS=$pkg_cv_PCRE2_CFLAGS |
| | | PCRE2_LIBS=$pkg_cv_PCRE2_LIBS |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| | | $as_echo "yes" >&6; } |
| | | |
| | | fi |
| | | # We only care about -I, -D, and -L switches; |
| | | # note that -lpcre2-8 will be added by AC_CHECK_LIB below. |
| | | for pgac_option in $PCRE2_CFLAGS; do |
| | | case $pgac_option in |
| | | -I*|-D*) INCLUDES="$INCLUDES $pgac_option";; |
| | | esac |
| | | done |
| | | INCLUDES="$INCLUDES -DPCRE2_CODE_UNIT_WIDTH=8" |
| | | for pgac_option in $PCRE2_LIBS; do |
| | | case $pgac_option in |
| | | -L*) LIBDIRS="$LIBDIRS $pgac_option";; |
| | | esac |
| | | done |
| | | fi |
| | | |
| | | # |
| | | # Assignments |
| | | # |
| | |
| | | |
| | | fi |
| | | |
| | | if test "$with_pcre2" = yes ; then |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre2_compile_8 in -lpcre2-8" >&5 |
| | | $as_echo_n "checking for pcre2_compile_8 in -lpcre2-8... " >&6; } |
| | | if ${ac_cv_lib_pcre2_8_pcre2_compile_8+:} false; then : |
| | | $as_echo_n "(cached) " >&6 |
| | | else |
| | | ac_check_lib_save_LIBS=$LIBS |
| | | LIBS="-lpcre2-8 $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 pcre2_compile_8 (); |
| | | int |
| | | main () |
| | | { |
| | | return pcre2_compile_8 (); |
| | | ; |
| | | return 0; |
| | | } |
| | | _ACEOF |
| | | if ac_fn_c_try_link "$LINENO"; then : |
| | | ac_cv_lib_pcre2_8_pcre2_compile_8=yes |
| | | else |
| | | ac_cv_lib_pcre2_8_pcre2_compile_8=no |
| | | fi |
| | | rm -f core conftest.err conftest.$ac_objext \ |
| | | conftest$ac_exeext conftest.$ac_ext |
| | | LIBS=$ac_check_lib_save_LIBS |
| | | fi |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre2_8_pcre2_compile_8" >&5 |
| | | $as_echo "$ac_cv_lib_pcre2_8_pcre2_compile_8" >&6; } |
| | | if test "x$ac_cv_lib_pcre2_8_pcre2_compile_8" = xyes; then : |
| | | cat >>confdefs.h <<_ACEOF |
| | | #define HAVE_LIBPCRE2_8 1 |
| | | _ACEOF |
| | | |
| | | LIBS="-lpcre2-8 $LIBS" |
| | | |
| | | else |
| | | as_fn_error $? "library 'pcre2-8' is required for PCRE2 support" "$LINENO" 5 |
| | | fi |
| | | |
| | | fi |
| | | |
| | | # Note: We can test for libldap_r only after we know PTHREAD_LIBS |
| | | if test "$with_ldap" = yes ; then |
| | | _LIBS="$LIBS" |
| | |
| | | |
| | | fi |
| | | |
| | | if test -z "$PCRE2"; then |
| | | for ac_prog in pcre2 |
| | | do |
| | | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| | | set dummy $ac_prog; ac_word=$2 |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| | | $as_echo_n "checking for $ac_word... " >&6; } |
| | | if ${ac_cv_path_PCRE2+:} false; then : |
| | | $as_echo_n "(cached) " >&6 |
| | | else |
| | | case $PCRE2 in |
| | | [\\/]* | ?:[\\/]*) |
| | | ac_cv_path_PCRE2="$PCRE2" # Let the user override the test with a path. |
| | | ;; |
| | | *) |
| | | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| | | for as_dir in $PATH |
| | | do |
| | | IFS=$as_save_IFS |
| | | test -z "$as_dir" && as_dir=. |
| | | for ac_exec_ext in '' $ac_executable_extensions; do |
| | | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| | | ac_cv_path_PCRE2="$as_dir/$ac_word$ac_exec_ext" |
| | | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| | | break 2 |
| | | fi |
| | | done |
| | | done |
| | | IFS=$as_save_IFS |
| | | |
| | | ;; |
| | | esac |
| | | fi |
| | | PCRE2=$ac_cv_path_PCRE2 |
| | | if test -n "$PCRE2"; then |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2" >&5 |
| | | $as_echo "$PCRE2" >&6; } |
| | | else |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| | | $as_echo "no" >&6; } |
| | | fi |
| | | |
| | | |
| | | test -n "$PCRE2" && break |
| | | done |
| | | |
| | | else |
| | | # Report the value of PCRE2 in configure's output in all cases. |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCRE2" >&5 |
| | | $as_echo_n "checking for PCRE2... " >&6; } |
| | | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCRE2" >&5 |
| | | $as_echo "$PCRE2" >&6; } |
| | | fi |
| | | |
| | | if test "$with_pcre2" = yes; then |
| | | ac_fn_c_check_header_mongrel "$LINENO" "pcre2.h" "ac_cv_header_pcre2_h" "$ac_includes_default" |
| | | if test "x$ac_cv_header_pcre2_h" = xyes; then : |
| | | |
| | | else |
| | | as_fn_error $? "pcre2.h header file is required for PCRE2" "$LINENO" 5 |
| | | fi |
| | | |
| | | |
| | | fi |
| | | |
| | | if test "$with_gssapi" = yes ; then |
| | | for ac_header in gssapi/gssapi.h |
| | | do : |