@@ -282,10 +282,14 @@ AC_CHECK_FUNC(objc_enumerationMutation, [ AC_DEFINE(HAVE_OBJC_ENUMERATIONMUTATION, 1, [Whether we have objc_enumerationMutation]) ]) + +AC_CHECK_FUNC(objc_autoreleasePoolPush, [], [ + AC_SUBST(AUTORELEASE_M, "autorelease.m") +]) case "$host_os" in darwin*) AC_SUBST(LDFLAGS_REEXPORT, ["-Wl,-reexport-lobjfw"]) AS_IF([test x"$objc_runtime" = x"Apple runtime"], [