From: Simon Ruderich Date: Tue, 13 May 2014 16:32:56 +0000 (+0200) Subject: configure.ac: warn if TLS is not available X-Git-Tag: 0.2~5 X-Git-Url: https://ruderich.org/simon/gitweb/?p=coloredstderr%2Fcoloredstderr.git;a=commitdiff_plain;h=24ead2ee7fc7509afe4bfcc15b1c1b06177cf1f3 configure.ac: warn if TLS is not available --- diff --git a/configure.ac b/configure.ac index 6ef50f4..469df07 100644 --- a/configure.ac +++ b/configure.ac @@ -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