From 7870ba32ecda55b7b885b779da15263ec7631465 Mon Sep 17 00:00:00 2001 From: Florent 'Skia' Jacquet Date: Wed, 18 Jun 2025 11:37:41 +0200 Subject: [PATCH] configure: hint that 'mysqlclient' can provide the 'mysql_init' symbol Ubuntu has 'default-libmysqlclient-dev' pointing to mysql instead of mariadb. This additional hint helps the build system figure out how to link table-mysql. For some reason, the mysql_config based fallback ended up providing the right arguments, but at the wrong place (before the objects files in the command line). I did not investigate further how to fix that fallback mode. --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 5f9af11..747bb48 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ AC_REPLACE_FUNCS([ \ strtonum \ ]) -AC_SEARCH_LIBS([mysql_init], [mariadb], [], [ +AC_SEARCH_LIBS([mysql_init], [mariadb mysqlclient], [], [ AS_IF([command -v mysql_config >/dev/null], [ AC_MSG_RESULT([autodetect with mysql_config]) CFLAGS="$CFLAGS $(mysql_config --cflags)"