ObjFW  Diff

Differences From Artifact [5314e34ab4]:

To Artifact [a3adc0bcd8]:


205
206
207
208
209
210
211

212
213

214
215
216
217
218
219
220
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222







+


+







			have_libkern_osatomic_h="yes"
			AC_DEFINE(OF_HAVE_LIBKERN_OSATOMIC_H, 1,
				[Whether we have libkern/OSAtomic.h])])
	fi

	AC_MSG_CHECKING(for atomic operations)
	if test x"$have_gcc_atomic_ops" = x"yes"; then
		AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations])
		AC_MSG_RESULT(gcc builtins)
	elif test x"$have_libkern_osatomic_h" = x"yes"; then
		AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations])
		AC_MSG_RESULT(libkern/OSAtomic.h)
	else
		AC_MSG_RESULT(none)
		AC_MSG_ERROR(No atomic operations found! Try --disable-threads.)
	fi
fi