ObjFW  Diff

Differences From Artifact [e96d7e8c11]:

To Artifact [438a9335f1]:


70
71
72
73
74
75
76


77
78
79
80
81
82
83
AC_LANG([Objective C])
AC_PROG_OBJC([clang egcc gcc])
AC_PROG_OBJCPP
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_EGREP



case "$host" in
	dnl OpenBSD 6.2 switched to clang for i386 and AMD64, and clang does no
	dnl longer link in libgcc. Unwinding is unfortunately in libc++abi, so
	dnl we need that. We add -pthread as libc++abi requires threads.
	i386-*-openbsd6.[[23456789]] | i386-*-openbsd[[789]].* | \
	x86_64-*-openbsd6.[[23456789]] | x86_64-*-openbsd[[789]].*)
		case "$OBJC" in







>
>







70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
AC_LANG([Objective C])
AC_PROG_OBJC([clang egcc gcc])
AC_PROG_OBJCPP
AC_PROG_LN_S
AC_PROG_INSTALL
AC_PROG_EGREP

BUILDSYS_CHECK_IOS

case "$host" in
	dnl OpenBSD 6.2 switched to clang for i386 and AMD64, and clang does no
	dnl longer link in libgcc. Unwinding is unfortunately in libc++abi, so
	dnl we need that. We add -pthread as libc++abi requires threads.
	i386-*-openbsd6.[[23456789]] | i386-*-openbsd[[789]].* | \
	x86_64-*-openbsd6.[[23456789]] | x86_64-*-openbsd[[789]].*)
		case "$OBJC" in
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
			AC_SUBST(REEXPORT_RUNTIME_FRAMEWORK,
				["-Wl,-reexport_framework,ObjFW_RT"])
		])

		AC_CHECK_HEADERS(sysdir.h)
		AC_CHECK_FUNCS(sysdir_start_search_path_enumeration)

		AC_MSG_CHECKING(whether host is iOS)
		AC_EGREP_CPP(yes, [
			#include <TargetConditionals.h>

			#if (defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) || \
			    (defined(TARGET_OS_SIMULATOR) && \
			    TARGET_OS_SIMULATOR)
			yes
			#endif
		], [
			AC_MSG_RESULT(yes)
			AC_SUBST(TESTS_STATIC_LIB, tests.a)
			TESTS_LIBS="$TESTS_LIBS -framework CoreFoundation"
		], [
			AC_MSG_RESULT(no)
		])
		;;
esac

AC_C_BIGENDIAN([
	AC_DEFINE(OF_BIG_ENDIAN, 1, [Whether we are big endian])
])







<
<
<
|
<
<
<
<
<
<
<


<
<







486
487
488
489
490
491
492



493







494
495


496
497
498
499
500
501
502
			AC_SUBST(REEXPORT_RUNTIME_FRAMEWORK,
				["-Wl,-reexport_framework,ObjFW_RT"])
		])

		AC_CHECK_HEADERS(sysdir.h)
		AC_CHECK_FUNCS(sysdir_start_search_path_enumeration)




		AS_IF([test x"$host_is_ios" = x"yes"], [







			AC_SUBST(TESTS_STATIC_LIB, tests.a)
			TESTS_LIBS="$TESTS_LIBS -framework CoreFoundation"


		])
		;;
esac

AC_C_BIGENDIAN([
	AC_DEFINE(OF_BIG_ENDIAN, 1, [Whether we are big endian])
])