@@ -303,20 +303,20 @@ ], [ AC_MSG_ERROR([libobjc not found!]) ]) ;; esac + +AC_CHECK_FUNC(objc_autoreleasePoolPush, [], [ + AC_SUBST(AUTORELEASE_M, "autorelease.m") +]) 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"], [ AC_SUBST(REEXPORT_LIBOBJC, ["-Wl,-reexport-lobjc"]) @@ -387,24 +387,10 @@ AC_MSG_ERROR( [Floating point implementation does not conform to IEEE 754!])]) AC_CHECK_LIB(m, fmod, LIBS="$LIBS -lm") -AC_MSG_CHECKING(for M_PI) -AC_EGREP_CPP(yes, [ - #include - - #ifdef M_PI - yes - #endif -], [ - AC_MSG_RESULT(yes) -], [ - AC_MSG_RESULT(no) - AC_DEFINE(M_PI, 3.141592653589793238462643, [Precalculated Pi]) -]) - AC_CHECK_FUNC(asprintf, [ case "$host" in *-psp-*) dnl asprintf is broken on the PSP, but snprintf works. have_asprintf="no"