ObjFW  Diff

Differences From Artifact [58bf1c6235]:

To Artifact [ac39a0ebce]:


488
489
490
491
492
493
494








495
496










497
498
499
500
501
502
503
		# error buggy
		#endif

		__thread int x = 0;
	], [
		x++;
	], [








		AC_MSG_RESULT(yes)
		AC_DEFINE(OF_HAVE_COMPILER_TLS, 1, [Whether __thread works])










	], [
		AC_MSG_RESULT(no)
	])

	atomic_ops="none"

	AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)







>
>
>
>
>
>
>
>
|
|
>
>
>
>
>
>
>
>
>
>







488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
		# error buggy
		#endif

		__thread int x = 0;
	], [
		x++;
	], [
		AS_IF([test x"$enable_shared" != x"no"], [
			old_OBJCFLAGS="$OBJCFLAGS"
			OBJCFLAGS="$OBJCFLAGS -fPIC"
			AC_TRY_COMPILE([
				__thread int x = 0;
			], [
				x++;
			], [
				AC_MSG_RESULT(yes)
				AC_DEFINE(OF_HAVE_COMPILER_TLS, 1,
					[Whether __thread works])
			], [
				AC_MSG_RESULT(no)
			])
			OBJCFLAGS="$old_OBJCFLAGS"
		], [
			AC_MSG_RESULT(yes)
			AC_DEFINE(OF_HAVE_COMPILER_TLS, 1,
				[Whether __thread works])
		])
	], [
		AC_MSG_RESULT(no)
	])

	atomic_ops="none"

	AC_MSG_CHECKING(whether we have an atomic ops assembly implementation)