upated configure.ac to set with_mysql automatically if enable-mod-mysql is set
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2023-10-22 22:03:41 +09:00
parent 1fc2c0eb12
commit 4492889ab4
2 changed files with 293 additions and 274 deletions

View File

@ -380,9 +380,6 @@ AC_CHECK_LIB([uci], [uci_alloc_context], [UCI_LIBS="-luci"])
AC_SUBST(UCI_LIBS)
AM_CONDITIONAL(HAVE_LIBUCI, test "x${ac_cv_lib_uci_uci_alloc_context}" = "xyes" -a "x${ac_cv_header_uci_h}" = "xyes")
dnl libmysqlclient
AX_LIB_MYSQL()
AC_MSG_CHECKING([for va_copy])
AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <stdarg.h>]], [[
va_list x, y;
@ -995,6 +992,18 @@ AC_ARG_ENABLE([mod-mysql],
enable_mod_mysql_is=$enableval,
enable_mod_mysql_is=auto
)
if test "x${enable_mod_mysql_is}" = "xauto" || test "x${enable_mod_mysql_is}" = "xyes"
then
if test ${with_mysql+y}
then
## as if --with-mysql is specified for AX_LIB_MYSQL below
with_mysql=yes
fi
AX_LIB_MYSQL()
fi
if test "x${enable_mod_mysql_is}" = "xauto"
then
if test "x${found_mysql}" != "xyes"