Differences From Artifact [759504b92f]:
- File
configure.ac
— part of check-in
[4285aea3c6]
at
2010-11-12 16:00:09
on branch trunk
— Always use our _Block_copy.
The reason is that the _Block_copy from libSystem references the wrong
_NSConcreteMallocBlock. (user: js, size: 11460) [annotate] [blame] [check-ins using]
To Artifact [9f7c24e610]:
- File configure.ac — part of check-in [d7c2d46b2b] at 2010-11-12 20:13:20 on branch trunk — Add tests for blocks. (user: js, size: 11504) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
66 67 68 69 70 71 72 73 74 75 76 77 78 79 | OBJCFLAGS="$OBJCFLAGS -fblocks" AC_TRY_COMPILE([], [ int (^foo)(int bar); foo = ^(int bar) { return 0; } ], [ 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_HEADERS([objfw-rt.h objc/objc.h]) | > | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 | OBJCFLAGS="$OBJCFLAGS -fblocks" AC_TRY_COMPILE([], [ int (^foo)(int bar); foo = ^(int bar) { return 0; } ], [ AC_DEFINE(OF_HAVE_BLOCKS, 1, [Compiler support for blocks]) AC_SUBST(BLOCKS_FLAGS, "-fblocks") AC_SUBST(OFBLOCKTESTS_M, "OFBlockTests.m") AC_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) OBJCFLAGS="$old_OBJCFLAGS" ]) AC_CHECK_HEADERS([objfw-rt.h objc/objc.h]) |
︙ | ︙ |