71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
-
+
+
|
AC_DEFINE(OF_HAVE_BLOCKS, 1, [Compiler support for blocks])
AC_SUBST(BLOCKS_FLAGS, "-fblocks")
AC_MSG_RESULT(yes)
], [
AC_MSG_RESULT(no)
OBJCFLAGS="$old_OBJCFLAGS"
])
AC_CHECK_FUNC(_Block_copy,, AC_SUBST(OFBLOCK_M, "OFBlock.m"))
AC_CHECK_FUNC(_Block_copy,,
AC_DEFINE(HAVE_BLOCK_COPY, 1, [Whether we have _Block_copy]))
AC_CHECK_HEADERS([objfw-rt.h objc/objc.h])
test x"$ac_cv_header_objfw_rt_h" = x"yes" && objc_runtime="ObjFW-RT"
if test x"$ac_cv_header_objc_objc_h" = x"yes"; then
dnl TODO: This is ugly. Let's think of a better check.
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
|
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
+
|
AC_SUBST(OFPLUGINS_DEF, "-DOF_PLUGINS")
fi
case "$host_os" in
darwin*)
AC_SUBST(REEXPORT_LIBOBJC, [-Wl,-reexport-lobjc])
AC_SUBST(LDFLAGS_REEXPORT, [-Wl,-reexport-lobjfw])
AC_SUBST(MACH_ALIAS_LIST, [-Wl,-alias_list,mach_alias_list])
;;
esac
AC_C_BIGENDIAN([
AC_DEFINE(OF_BIG_ENDIAN, 1, [Whether we are big endian])
AC_SUBST(ENDIANESS_DEF, "-DOF_BIG_ENDIAN")])
|