ObjFW  Check-in [063aa98136]

Overview
Comment:configure.ac: Nicer way to check for Apple runtime
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 063aa98136422341071e6ffa15e3a24b53a587266f4394a11549ce5293c3c791
User & Date: js on 2015-04-12 15:30:49
Other Links: manifest | tags
Context
2015-04-12
20:04
Add OFObserveFailedException check-in: 97da88f926 user: js tags: trunk
15:30
configure.ac: Nicer way to check for Apple runtime check-in: 063aa98136 user: js tags: trunk
2015-04-11
16:18
PLATFORMS.md: Add Solaris check-in: f13dfb45a8 user: js tags: trunk
Changes

Modified configure.ac from [1833208dd2] to [626f7189d6].

213
214
215
216
217
218
219
220
221
222
223


224
225
226
227

228
229
230


231
232
233
234
235
236
237
213
214
215
216
217
218
219

220
221

222
223
224
225
226

227

228

229
230
231
232
233
234
235
236
237







-


-
+
+



-
+
-

-
+
+







AC_ARG_ENABLE(runtime,
	AS_HELP_STRING([--enable-runtime], [use the included runtime]))
AC_ARG_ENABLE(seluid24,
	AS_HELP_STRING([--enable-seluid24],
		[use 24 bit instead of 16 bit for selectors UIDs]))
AS_IF([test x"$enable_runtime" != x"yes"], [
	AS_IF([test x"$ac_cv_header_objc_objc_h" = x"yes"], [
		dnl TODO: This is ugly. Let's think of a better check.
		AC_EGREP_CPP(yes, [
			#import <objc/objc.h>
			#ifdef __objc_INCLUDE_GNU

			#ifdef OBJC_BOOL_DEFINED
			yes
			#endif
		], [
			dnl We don't want the GNU runtime
			objc_runtime="Apple runtime"
			true
		], [
			objc_runtime="Apple runtime"
			dnl We don't want the GNU runtime
			:
		])
	])
])
AC_MSG_RESULT($objc_runtime)

case "$objc_runtime" in
	"ObjFW runtime")