]> ruderich.org/simon Gitweb - coloredstderr/coloredstderr.git/commitdiff
configure.ac: warn if TLS is not available
authorSimon Ruderich <simon@ruderich.org>
Tue, 13 May 2014 16:32:56 +0000 (18:32 +0200)
committerSimon Ruderich <simon@ruderich.org>
Tue, 13 May 2014 16:32:56 +0000 (18:32 +0200)
configure.ac

index 6ef50f4c04c4f9bed0be53bf99bba3d779482176..469df07ca67e1c18bbd40a0f84e5d8e035ecc60d 100644 (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