ObjFW  Check-in [4f8cf7e3ec]

Overview
Comment:Only add -fgnu89-inline if it doesn't generate a warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 4f8cf7e3ec37d169da1384bb80ef18de0a2b2264afdec57adf42c04d47e64df0
User & Date: js on 2011-07-09 21:58:07
Other Links: manifest | tags
Context
2011-07-09
22:03
OFDate: Fix wrong format specifier for microseconds. check-in: 75dde25734 user: js tags: trunk
21:58
Only add -fgnu89-inline if it doesn't generate a warning. check-in: 4f8cf7e3ec user: js tags: trunk
14:45
Cache the length of a string. check-in: 36e8a94f34 user: js tags: trunk
Changes

Modified configure.ac from [d82c9c705b] to [53380efae7].

22
23
24
25
26
27
28

29
30
31
32
33
34
35
36
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"

AX_CHECK_COMPILER_FLAGS(-std=gnu99, [
	OBJCFLAGS="$OBJCFLAGS -std=gnu99"
	AC_SUBST(GNU99, "-std=gnu99")
])

AX_CHECK_COMPILER_FLAGS(-fgnu89-inline, [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")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32,







>
|







22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
OBJCFLAGS="$OBJCFLAGS -Wall -fexceptions -fobjc-exceptions"
OBJCFLAGS="$OBJCFLAGS -fconstant-string-class=OFConstantString"

AX_CHECK_COMPILER_FLAGS(-std=gnu99, [
	OBJCFLAGS="$OBJCFLAGS -std=gnu99"
	AC_SUBST(GNU99, "-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")
])
AX_CHECK_COMPILER_FLAGS(-Wshorten-64-to-32,