fixed a segfault bug in mysql::stmt_init(), raising the version to 0.9.8
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-25 15:21:53 +09:00
parent be43c289b6
commit d6ac0010d3
11 changed files with 184 additions and 27 deletions

120
configure vendored
View File

@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for hawk 0.9.7.
# Generated by GNU Autoconf 2.71 for hawk 0.9.8.
#
# Report bugs to <Chung, Hyung-Hwan (hyunghwan.chung@gmail.com)>.
#
@ -621,8 +621,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='hawk'
PACKAGE_TARNAME='hawk'
PACKAGE_VERSION='0.9.7'
PACKAGE_STRING='hawk 0.9.7'
PACKAGE_VERSION='0.9.8'
PACKAGE_STRING='hawk 0.9.8'
PACKAGE_BUGREPORT='Chung, Hyung-Hwan (hyunghwan.chung@gmail.com)'
PACKAGE_URL='https://code.miflux.net/hyung-hwan/hawk'
@ -664,6 +664,8 @@ LTLIBOBJS
LIBOBJS
HAWK_PROJECT_URL
HAWK_PROJECT_AUTHOR
ENABLE_MOD_MEMC_FALSE
ENABLE_MOD_MEMC_TRUE
ENABLE_MOD_UCI_FALSE
ENABLE_MOD_UCI_TRUE
ENABLE_MOD_SED_FALSE
@ -692,6 +694,7 @@ PACKAGE_VERSION_PATCH
PACKAGE_VERSION_MINOR
PACKAGE_VERSION_MAJOR
QUADMATH_LIBS
MEMCACHED_LIBS
HAVE_LIBUCI_FALSE
HAVE_LIBUCI_TRUE
UCI_LIBS
@ -867,6 +870,7 @@ enable_mod_mysql
with_mysql
enable_mod_sed
enable_mod_uci
enable_mod_memc
enable_pthread_flags
'
ac_precious_vars='build_alias
@ -1431,7 +1435,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 hawk 0.9.7 to adapt to many kinds of systems.
\`configure' configures hawk 0.9.8 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@ -1502,7 +1506,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of hawk 0.9.7:";;
short | recursive ) echo "Configuration of hawk 0.9.8:";;
esac
cat <<\_ACEOF
@ -1541,6 +1545,8 @@ Optional Features:
auto)
--enable-mod-sed enable mod/sed. one of yes, no (default. yes)
--enable-mod-uci enable mod/uci. one of auto, yes, no (default. auto)
--enable-mod-memc enable mod/memc. one of auto, yes, no (default.
auto)
--enable-pthread-flags add thread flags to CFLAGS, CXXFLAGS, LIBS(default.
yes)
@ -1641,7 +1647,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
hawk configure 0.9.7
hawk configure 0.9.8
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@ -2370,7 +2376,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 hawk $as_me 0.9.7, which was
It was created by hawk $as_me 0.9.8, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@ -3868,7 +3874,7 @@ fi
# Define the identity of the package.
PACKAGE='hawk'
VERSION='0.9.7'
VERSION='0.9.8'
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@ -20287,6 +20293,12 @@ then :
printf "%s\n" "#define HAVE_UCI_H 1" >>confdefs.h
fi
ac_fn_c_check_header_compile "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
if test "x$ac_cv_header_libmemcached_memcached_h" = xyes
then :
printf "%s\n" "#define HAVE_LIBMEMCACHED_MEMCACHED_H 1" >>confdefs.h
fi
@ -22491,6 +22503,53 @@ else
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memcached in -lmemcached" >&5
printf %s "checking for memcached in -lmemcached... " >&6; }
if test ${ac_cv_lib_memcached_memcached+y}
then :
printf %s "(cached) " >&6
else $as_nop
ac_check_lib_save_LIBS=$LIBS
LIBS="-lmemcached $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. */
char memcached ();
int
main (void)
{
return memcached ();
;
return 0;
}
_ACEOF
if ac_fn_c_try_link "$LINENO"
then :
ac_cv_lib_memcached_memcached=yes
else $as_nop
ac_cv_lib_memcached_memcached=no
fi
rm -f core conftest.err conftest.$ac_objext conftest.beam \
conftest$ac_exeext conftest.$ac_ext
LIBS=$ac_check_lib_save_LIBS
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached" >&5
printf "%s\n" "$ac_cv_lib_memcached_memcached" >&6; }
if test "x$ac_cv_lib_memcached_memcached" = xyes
then :
MEMCACHED_LIBS="-lmemcached"
printf "%s\n" "#define HAVE_MEMCACHED_LIB 1" >>confdefs.h
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for va_copy" >&5
printf %s "checking for va_copy... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@ -26375,6 +26434,42 @@ else
fi
# Check whether --enable-mod-memc was given.
if test ${enable_mod_memc+y}
then :
enableval=$enable_mod_memc; enable_mod_memc_is=$enableval
else $as_nop
enable_mod_memc_is=auto
fi
if test "x${enable_mod_memc_is}" = "xauto"
then
if test "x${ac_cv_header_libmemcached_memcached_h}" != "xyes"
then
enable_mod_memc_is="no"
elif test "x${ac_cv_lib_memcached_memcached}" != "xyes"
then
enable_mod_memc_is="no"
else
enable_mod_memc_is="yes"
fi
fi
if test "x${enable_mod_memc_is}" = "xyes"
then
printf "%s\n" "#define HAWK_ENABLE_MOD_MEMC 1" >>confdefs.h
fi
if test "${enable_mod_memc_is}" = "yes"; then
ENABLE_MOD_MEMC_TRUE=
ENABLE_MOD_MEMC_FALSE='#'
else
ENABLE_MOD_MEMC_TRUE='#'
ENABLE_MOD_MEMC_FALSE=
fi
# Check whether --enable-pthread-flags was given.
if test ${enable_pthread_flags+y}
@ -26602,6 +26697,10 @@ if test -z "${ENABLE_MOD_UCI_TRUE}" && test -z "${ENABLE_MOD_UCI_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_MOD_UCI\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
if test -z "${ENABLE_MOD_MEMC_TRUE}" && test -z "${ENABLE_MOD_MEMC_FALSE}"; then
as_fn_error $? "conditional \"ENABLE_MOD_MEMC\" was never defined.
Usually this means the macro was only invoked conditionally." "$LINENO" 5
fi
: "${CONFIG_STATUS=./config.status}"
ac_write_fail=0
@ -26992,7 +27091,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by hawk $as_me 0.9.7, which was
This file was extended by hawk $as_me 0.9.8, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@ -27061,7 +27160,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
hawk config.status 0.9.7
hawk config.status 0.9.8
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"
@ -29045,6 +29144,7 @@ echo " Math library: ${LIBM}"
echo " Socket library: ${SOCKET_LIBS}"
echo " Native function call library: ${FFI_LIBS}"
echo " Thraed library: ${PTHREAD_LIBS}"
echo " Memcached library: ${MEMCACHED_LIBS}"
echo "-------------------------------------------------------------------------"