X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=eglib%2Fconfigure.ac;h=92cd6156f94a94c466ada7cc817befedab309b57;hb=ae1822075d7c697ec4d96f9be96e9b62a7adf386;hp=7622701ef455e81d8ce977db10503d84da267ba9;hpb=ee5a06c1a0467518249a67fd900c62b9bb8f25d3;p=mono.git diff --git a/eglib/configure.ac b/eglib/configure.ac index 7622701ef45..92cd6156f94 100644 --- a/eglib/configure.ac +++ b/eglib/configure.ac @@ -94,6 +94,9 @@ arm*-darwin*|aarch64*-*) i*86-*-darwin*) ORDER=G_LITTLE_ENDIAN ;; +*-*-haiku*) + LDFLAGS="$LDFLAGS -ltextencoding" + ;; *-*-openbsd*) CFLAGS="$CFLAGS -pthread" LDFLAGS="$LDFLAGS -pthread" @@ -130,6 +133,10 @@ AM_CONDITIONAL(TARGET_WIN32, test x$OS = xWIN32) AM_CONDITIONAL(PLATFORM_DARWIN, test x$platform_darwin = xyes) AM_CONDITIONAL(PLATFORM_ANDROID, test x$platform_android = xyes) +# Defined for all targets/platforms using classic Windows API support. +AC_DEFINE(HAVE_CLASSIC_WINAPI_SUPPORT, 1, [Use classic Windows API support]) +AC_DEFINE(HAVE_UWP_WINAPI_SUPPORT, 0, [Don't use UWP Windows API support]) + AC_CHECK_SIZEOF(int) AC_CHECK_SIZEOF(void *) AC_CHECK_SIZEOF(long) @@ -138,6 +145,15 @@ AC_CHECK_FUNCS(strlcpy stpcpy strtok_r rewinddir vasprintf) AC_CHECK_FUNCS(getrlimit) AC_CHECK_FUNCS(fork execv execve) +AC_ARG_WITH([overridable-allocators], [ --with-overridable-allocators allow g_*alloc/g_free to call custom allocators set via g_mem_set_vtable]) + +if test x$with_overridable_allocators = xyes; then + AC_DEFINE(ENABLE_OVERRIDABLE_ALLOCATORS,1,[Overridable allocator support enabled]) + AC_MSG_NOTICE([Overridable allocator support enabled]) +else + AC_MSG_NOTICE([Overridable allocator support disabled]) +fi + # # Mono currently supports 10.6, but strndup is not available prior to 10.7; avoiding # the detection of strndup on OS X so Mono built on 10.7+ still runs on 10.6. This can be @@ -151,7 +167,7 @@ elif test x$target_ios = xno; then AC_CHECK_FUNCS(strndup getpwuid_r) fi -AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno ) +AM_CONDITIONAL(NEED_VASPRINTF, test x$ac_cv_func_vasprintf = xno || test x$with_overridable_allocators = xyes) AM_ICONV() AC_SEARCH_LIBS(sqrtf, m)