ObjFW  Check-in [8321c1a567]

Overview
Comment:configure.ac: Show a note about old compilers.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 8321c1a56769d35215ca7808d624465a931a47dd02898b694c1bbe70b5c250ea
User & Date: js on 2012-10-23 09:17:01
Other Links: manifest | tags
Context
2012-10-25
18:43
PLATFORMS.md: Add Windows 8. check-in: 69a81995bf user: js tags: trunk
2012-10-23
09:17
configure.ac: Show a note about old compilers. check-in: 8321c1a567 user: js tags: trunk
2012-10-22
20:12
Allocate space for sockaddr_storage, not sockaddr. check-in: c9f2fe558e user: js tags: trunk
Changes

Modified configure.ac from [00551e1e1c] to [30254b5fb3].

166
167
168
169
170
171
172

173
174
175
176
177
178
179
		], [
			RUNTIME_FLAGS="-fobjc-runtime=objfw"
			AC_MSG_RESULT(yes)
		], [
			RUNTIME_FLAGS="-fgnu-runtime"
			OBJCFLAGS="$old_OBJCFLAGS -fgnu-runtime"
			AC_MSG_RESULT(no)


			AX_CHECK_COMPILER_FLAGS(-fno-objc-nonfragile-abi, [
				flag="-fno-objc-nonfragile-abi"
				OBJCFLAGS="$OBJCFLAGS $flag"
				RUNTIME_FLAGS="$RUNTIME_FLAGS $flag"
			])
		])







>







166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
		], [
			RUNTIME_FLAGS="-fobjc-runtime=objfw"
			AC_MSG_RESULT(yes)
		], [
			RUNTIME_FLAGS="-fgnu-runtime"
			OBJCFLAGS="$old_OBJCFLAGS -fgnu-runtime"
			AC_MSG_RESULT(no)
			old_compiler="yes"

			AX_CHECK_COMPILER_FLAGS(-fno-objc-nonfragile-abi, [
				flag="-fno-objc-nonfragile-abi"
				OBJCFLAGS="$OBJCFLAGS $flag"
				RUNTIME_FLAGS="$RUNTIME_FLAGS $flag"
			])
		])
726
727
728
729
730
731
732










dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
AC_SUBST(CPP)
AC_SUBST(CPPFLAGS)

AC_CONFIG_FILES([buildsys.mk extra.mk utils/objfw-config Info.plist])
AC_CONFIG_HEADERS([config.h src/objfw-defs.h])
AC_OUTPUT

















>
>
>
>
>
>
>
>
>
>
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
dnl and add OBJCPPFLAGS to CPPFLAGS, thus we need to AC_SUBST these ourself.
AC_SUBST(CPP)
AC_SUBST(CPPFLAGS)

AC_CONFIG_FILES([buildsys.mk extra.mk utils/objfw-config Info.plist])
AC_CONFIG_HEADERS([config.h src/objfw-defs.h])
AC_OUTPUT

AS_IF([test x"$old_compiler" = x"yes"], [
	echo
	printf "  ** Note: Your compiler does not seem to "
	echo "accept -fobjc-runtime=objfw."
	printf "  ** To get optimal performance and be able to use all "
	echo "features, you should "
	echo "  ** install Clang >= 3.2."
	echo
])