From af2808859e7a98666785752b8069c473dda94a1f Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 15 Jun 2012 11:16:44 +0200 Subject: Add support for building against libmysqlclient that lacks THR_KEY_mysys In certain distributions (specifically Fedora 15 and later), maintainers limit the number of visible symbols. If THR_KEY_mysys is hidden, then we try to create the TLS keys in such an order that it results in the correct behavior. And then hope for the best. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 01cf652..0902700 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,10 @@ case $libmysqlclient_include in ;; esac +if test x"$libmysqlclient_thr_key_visible" = xyes; then + AC_DEFINE([LIBODB_MYSQL_THR_KEY_VISIBLE], [1], ["THR_KEY_mysys is visible."]) +fi + # Check for libodb. # LIBODB([],[AC_MSG_ERROR([libodb is not found; consider using --with-libodb=DIR])]) -- cgit v1.1