Overview
Comment: | Add flags for blocks to objfw-config. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
cc3239f5f79a9466a8a2870b8599cba1 |
User & Date: | js on 2010-09-06 15:39:24 |
Other Links: | manifest | tags |
Context
2010-09-06
| ||
20:27 | Blocks can be used like normal ObjC objects now. check-in: ccf87e1ffb user: js tags: trunk | |
15:39 | Add flags for blocks to objfw-config. check-in: cc3239f5f7 user: js tags: trunk | |
14:52 | Add a blocks runtime. check-in: 490cbb8e60 user: js tags: trunk | |
Changes
Modified configure.ac from [a3c471e387] to [4c20212f8e].
︙ | ︙ | |||
65 66 67 68 69 70 71 72 73 74 75 76 77 78 | old_OBJCFLAGS="$OBJCFLAGS" 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_MSG_RESULT(yes) ], [ AC_MSG_RESULT(no) OBJCFLAGS="$old_OBJCFLAGS" ]) AC_CHECK_FUNC(_Block_copy,, AC_SUBST(BLOCK_M, "block.m")) | > | 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 | old_OBJCFLAGS="$OBJCFLAGS" 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_FUNC(_Block_copy,, AC_SUBST(BLOCK_M, "block.m")) |
︙ | ︙ |
Modified utils/objfw-config.in from [af945753ec] to [1dc0842083].
1 2 3 4 5 6 7 8 9 10 | #!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@" CXXFLAGS="" OBJC="@OBJC@" OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstString" | | | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #!/bin/sh prefix="@prefix@" exec_prefix="@exec_prefix@" libdir="@libdir@" CFLAGS="" CPPFLAGS="-I@includedir@" CXXFLAGS="" OBJC="@OBJC@" OBJCFLAGS="@GNU_RUNTIME@ -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstString" OBJCFLAGS="$OBJCFLAGS @NO_CONST_CFSTRINGS@ @BLOCKS_FLAGS@ @NO_WARN_UNUSED@" LDFLAGS="" LDFLAGS_REEXPORT="@LDFLAGS_REEXPORT@" LDFLAGS_RPATH="@LDFLAGS_RPATH@" LIBS="-L${libdir} -lobjfw @LIBS@" VERSION="0.4-dev" show_help() { |
︙ | ︙ |