Differences From Artifact [53380efae7]:
- File configure.ac — part of check-in [4f8cf7e3ec] at 2011-07-09 21:58:07 on branch trunk — Only add -fgnu89-inline if it doesn't generate a warning. (user: js, size: 15682) [annotate] [blame] [check-ins using]
To Artifact [31e53b80c3]:
- File
configure.ac
— part of check-in
[77fe5572fe]
at
2011-07-15 10:30:49
on branch trunk
— Make sure restrict is always defined.
This way, we also don't need -std=gnu99 in objfw-config anymore.
Fixes ObjC++, for which -std=gnu99 is invalid and where there is no
restrict. (user: js, size: 15648) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
18 19 20 21 22 23 24 | AC_PROG_EGREP CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS" OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString" | | < < < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | AC_PROG_EGREP CPP="$OBJCPP" CPPFLAGS="$CPPFLAGS $OBJCPPFLAGS" OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions" OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString" AX_CHECK_COMPILER_FLAGS(-std=gnu99, [OBJCFLAGS="$OBJCFLAGS -std=gnu99"]) AX_CHECK_COMPILER_FLAGS([-fgnu89-inline -Werror], [OBJCFLAGS="$OBJCFLAGS -fgnu89-inline"]) AX_CHECK_COMPILER_FLAGS(-pipe, [OBJCFLAGS="$OBJCFLAGS -pipe"]) AX_CHECK_COMPILER_FLAGS(-fno-common, [OBJCFLAGS="$OBJCFLAGS -fno-common"]) AX_CHECK_COMPILER_FLAGS(-fno-constant-cfstrings, [ OBJCFLAGS="$OBJCFLAGS -fno-constant-cfstrings" AC_SUBST(NO_CONST_CFSTRINGS, "-fno-constant-cfstrings") |
︙ | ︙ |