ObjFW  Diff

Differences From Artifact [eea9d480d8]:

To Artifact [b749be0f9f]:

  • File configure.ac — part of check-in [8602025532] at 2013-12-05 21:26:32 on branch trunk — Check for iOS in configure instead of macros.h.

    The initial reason to do this in macros.h was that it would be
    theoretically possible to do a universal build targeting OS X and iOS,
    but in practice, they are too different as they use a different SDK,
    therefore this does not make much sense. (user: js, size: 23265) [annotate] [blame] [check-ins using]


761
762
763
764
765
766
767






768
769
770
771
772
773
774
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780







+
+
+
+
+
+







		])
		AS_IF([test x"$enable_static" = x"yes" \
		    -o x"$enable_shared" = x"no"], [
			AC_SUBST(OBJFW_BRIDGE_STATIC_LIB, "libobjfw-bridge.a")
		])
	])
])

case "$host" in
	arm-apple-darwin*)
		AC_DEFINE(OF_IOS, 1, [Whether we compile for iOS])
		;;
esac

AS_IF([test x"$GOBJC" = x"yes"], [
	OBJCFLAGS="$OBJCFLAGS -Wwrite-strings -Wpointer-arith -Werror"

	AC_MSG_CHECKING(whether we have gcc bug objc/27438)
	AC_TRY_COMPILE([
		@interface OFConstantString