ObjFW  Check-in [79b09ea934]

Overview
Comment:Fix libobjc version check.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 79b09ea934b68870843ef09050e15c1a892314ab1f8c688b31510305e08a9d15
User & Date: js on 2011-10-22 17:06:07
Other Links: manifest | tags
Context
2011-10-24
15:00
Don't use a spinlock for reference counting if we have no threads. check-in: 9454c38313 user: js tags: trunk
2011-10-22
17:06
Fix libobjc version check. check-in: 79b09ea934 user: js tags: trunk
16:57
Indentation fix. check-in: 7da45d5ccf user: js tags: trunk
Changes

Modified configure.ac from [28a776e349] to [fb7f68dd03].

119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

AC_MSG_CHECKING(which Objective C runtime we use)
AS_IF([test x"$ac_cv_header_objc_objc_h" = x"yes"], [
	dnl Only accept it if it's from gcc >= 4.7, as the one in 4.6 is buggy
	dnl when using the new API.
	AC_EGREP_CPP(yes, [
		#import <objc/objc.h>
		#ifdef __GNU_LIBOBJC__ >= 20110608
		yes
		#endif
	], [
		test x"$objc_runtime" = x"" && objc_runtime="GNU"
	], [
		dnl TODO: This is ugly. Let's think of a better check.
		AC_EGREP_CPP(yes, [







|







119
120
121
122
123
124
125
126
127
128
129
130
131
132
133

AC_MSG_CHECKING(which Objective C runtime we use)
AS_IF([test x"$ac_cv_header_objc_objc_h" = x"yes"], [
	dnl Only accept it if it's from gcc >= 4.7, as the one in 4.6 is buggy
	dnl when using the new API.
	AC_EGREP_CPP(yes, [
		#import <objc/objc.h>
		#if defined(__GNU_LIBOBJC__) && __GNU_LIBOBJC__ >= 20110608
		yes
		#endif
	], [
		test x"$objc_runtime" = x"" && objc_runtime="GNU"
	], [
		dnl TODO: This is ugly. Let's think of a better check.
		AC_EGREP_CPP(yes, [