ObjFW  Check-in [ec77afb06a]

Overview
Comment:configure: Also check for _Unwind_* in libgcc(_s)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: ec77afb06a6c8b9761259fdeea31b514ca280eed5cf8e996d8688cca9f74723f
User & Date: js on 2020-06-07 11:19:48
Other Links: manifest | tags
Context
2020-06-07
11:55
OFDNSResolverTests: Fix broken format string check-in: 17bd18996f user: js tags: trunk
11:19
configure: Also check for _Unwind_* in libgcc(_s) check-in: ec77afb06a user: js tags: trunk
10:14
Add .cirrus.yml file for Cirrus CI check-in: d214ee0b06 user: js tags: trunk
Changes

Modified configure.ac from [643b664c35] to [91f2d79380].

600
601
602
603
604
605
606
607
608

609

610
611
612
613
614
615
616
617
618
619
620

			AC_MSG_RESULT($exception_type)
		], [
			AC_MSG_RESULT(exceptions unavailable!)
			AC_MSG_ERROR([Exceptions not accepted by compiler!])
		])

		AC_CHECK_FUNC($raise_exception, [], [
			AC_CHECK_LIB(c++, $raise_exception, [

				LIBS="-lc++ -lc++abi -lpthread $LIBS"

			], [
				AC_MSG_ERROR([_Unwind_RaiseException missing!])
			], [-lc++abi -lpthread])
		])

		AC_CHECK_FUNCS(_Unwind_GetDataRelBase _Unwind_GetTextRelBase)
		;;
	"Apple runtime")
		AC_DEFINE(OF_APPLE_RUNTIME, 1,
			[Whether we use the Apple ObjC runtime])








|
|
>
|
>
|
|
|
<







600
601
602
603
604
605
606
607
608
609
610
611
612
613
614

615
616
617
618
619
620
621

			AC_MSG_RESULT($exception_type)
		], [
			AC_MSG_RESULT(exceptions unavailable!)
			AC_MSG_ERROR([Exceptions not accepted by compiler!])
		])

		AC_SEARCH_LIBS($raise_exception, [c++abi gcc_s gcc], [
			dnl c++abi requires pthread on OpenBSD
			AS_IF([test x"$ac_lib" = x"c++abi"], [
				LIBS="$LIBS -lpthread"
			])
		], [
			AC_MSG_ERROR([$raise_exception missing!])
		], [-lpthread])


		AC_CHECK_FUNCS(_Unwind_GetDataRelBase _Unwind_GetTextRelBase)
		;;
	"Apple runtime")
		AC_DEFINE(OF_APPLE_RUNTIME, 1,
			[Whether we use the Apple ObjC runtime])