configure.ac: warn if TLS is not available

This commit is contained in:
Simon Ruderich
2014-05-13 18:32:56 +02:00
parent b6d1dc09b6
commit 24ead2ee7f

View File

@@ -92,3 +92,8 @@ AM_CONDITIONAL([HAVE_VFORK],[test "x$ac_cv_func_vfork_works" = xyes])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile])
AC_OUTPUT
if test x"$ac_cv_tls" != x"none"; then
AC_MSG_WARN([thread-local storage not supported by compiler, \
possible race condition in threaded programs])
fi