ObjFW  Check-in [1823d543f3]

Overview
Comment:Define OF_ATOMIC_OPS if we don't have threads.
Without threads, we just don't care about atomicity.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1823d543f3a92f3b0e3d7e86ea0ce1c26f9d3dde94dc42a785cd7f6911c7d2cc
User & Date: js on 2010-01-30 00:45:20
Other Links: manifest | tags
Context
2010-01-30
00:50
Add -[tryLock] to OFMutex. check-in: 20e1c0e24b user: js tags: trunk
00:45
Define OF_ATOMIC_OPS if we don't have threads.
Without threads, we just don't care about atomicity.
check-in: 1823d543f3 user: js tags: trunk
2010-01-29
19:31
Add OF_ATOMIC_OPS define to work around missing atomic ops if needed. check-in: 953895c116 user: js tags: trunk
Changes

Modified configure.ac from [a3adc0bcd8] to [9eadb6c419].

214
215
216
217
218
219
220



221
222
223
224
225
226
227
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230







+
+
+







	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
else
	dnl We can only have one thread - therefore everything is atomic
	AC_DEFINE(OF_ATOMIC_OPS, 1, [Whether we have atomic operations])
fi

AC_CHECK_LIB(socket, socket, LIBS="$LIBS -lsocket")
AC_CHECK_LIB(ws2_32, main, LIBS="$LIBS -lws2_32")

AC_MSG_CHECKING(for getaddrinfo)
AC_TRY_COMPILE([