aboutsummaryrefslogtreecommitdiff
path: root/m4/libmysqlclient.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/libmysqlclient.m4')
-rw-r--r--m4/libmysqlclient.m422
1 files changed, 22 insertions, 0 deletions
diff --git a/m4/libmysqlclient.m4 b/m4/libmysqlclient.m4
index e08a08e..84b4471 100644
--- a/m4/libmysqlclient.m4
+++ b/m4/libmysqlclient.m4
@@ -82,4 +82,26 @@ else
AC_MSG_RESULT([no])
$3
fi
+
+# Check if the THR_KEY_mysys pthread key symbol is visible.
+#
+libmysqlclient_thr_key_visible=no
+
+if test x"$libmysqlclient_found" = xyes -a x"$1" = xposix; then
+
+CXX_LIBTOOL_LINK_IFELSE(
+AC_LANG_SOURCE([[
+#include <pthread.h>
+extern pthread_key_t THR_KEY_mysys;
+int
+main ()
+{
+ return pthread_getspecific (THR_KEY_mysys) != 0;
+}
+]]),
+[
+libmysqlclient_thr_key_visible=yes
+])
+fi
+
])dnl