ObjFW  Check-in [5eaa7705ef]

Overview
Comment:configure: Only do objc_* checks for Apple runtime

Otherwise it will pull in autorelease.m / instance.m twice (once in
ObjFW, and once in the runtime).

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 5eaa7705ef210b9739c9f909ee9ce15f20b2b68b3750c3af65fd3906050d12c6
User & Date: js on 2020-09-27 03:34:32
Other Links: manifest | tags
Context
2020-09-27
03:37
Update buildsys check-in: a7cc717161 user: js tags: trunk
03:34
configure: Only do objc_* checks for Apple runtime check-in: 5eaa7705ef user: js tags: trunk
03:28
OFMethodSignatureTests: Fix typo check-in: 2a02eed3df user: js tags: trunk
Changes

Modified configure.ac from [3cacc2a328] to [4baa567a0a].

631
632
633
634
635
636
637







638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649







650
651
652
653
654
655
656







+
+
+
+
+
+
+





-
-
-
-
-
-
-








		AC_CHECK_LIB(objc, objc_msgSend, [
			AC_SUBST(RUNTIME_LIBS, "-lobjc")
			AC_SUBST(RUNTIME_FRAMEWORK_LIBS, "-lobjc")
		], [
			AC_MSG_ERROR([libobjc not found!])
		])

		AC_CHECK_FUNC(objc_autoreleasePoolPush, [], [
			AC_SUBST(RUNTIME_AUTORELEASE_M, "runtime/autorelease.m")
		])
		AC_CHECK_FUNC(objc_constructInstance, [], [
			AC_SUBST(RUNTIME_INSTANCE_M, "runtime/instance.m")
		])
		;;
esac

AC_CHECK_FUNCS(_Unwind_Backtrace)

AC_CHECK_FUNC(objc_autoreleasePoolPush, [], [
	AC_SUBST(RUNTIME_AUTORELEASE_M, "runtime/autorelease.m")
])
AC_CHECK_FUNC(objc_constructInstance, [], [
	AC_SUBST(RUNTIME_INSTANCE_M, "runtime/instance.m")
])

case "$host_os" in
	darwin*)
		AC_SUBST(LDFLAGS_REEXPORT, ["-Wl,-reexport-lobjfw"])
		AS_IF([test x"$objc_runtime" = x"Apple runtime"], [
			AC_SUBST(REEXPORT_RUNTIME, ["-Wl,-reexport-lobjc"])
			AC_SUBST(REEXPORT_RUNTIME_FRAMEWORK,
				["-Wl,-reexport-lobjc"])