Fixed configure.in to fail the __thread check with clang
authorJeffrey Stedfast <jeff@xamarin.com>
Tue, 13 Aug 2013 19:33:38 +0000 (15:33 -0400)
committerJeffrey Stedfast <jeff@xamarin.com>
Tue, 13 Aug 2013 19:34:12 +0000 (15:34 -0400)
configure.in

index dd967ba7b350c1033da6e5b46b7fc154be3f26ad..6ff0a7551c63a0ad87c9b4800ef34852d8f5faa9 100755 (executable)
@@ -1575,6 +1575,10 @@ if test x$target_win32 = xno; then
                AC_MSG_RESULT(disabled)
        else
                AC_TRY_RUN([
+                       #ifdef __clang__
+                       #error "__thread does not currently work with clang"
+                       #endif
+                       
                        #include <pthread.h>
                        __thread int i;
                        static int res1, res2;