From 705dcb6483726f6991f81a5b88827fd0d48d83fc Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Sat, 17 Mar 2012 02:58:34 -0400 Subject: [PATCH] configure.ac: Don't check for malloc, realloc When cross-compiling for Android, configure (erroneously?) decides we don't have a GNU-compatible malloc, and tries to #define malloc rpl_malloc We don't define rpl_malloc, and it's not clear it would work with the C++ header, anyway. See http://nerdland.net/unstumping-the-internet/malloc-has-not-been-declared/ If we aren't using malloc(0), it should be safe to use malloc without the check. --- configure.ac | 2 -- 1 file changed, 2 deletions(-) diff --git a/configure.ac b/configure.ac index 8a14d44..29e505b 100644 --- a/configure.ac +++ b/configure.ac @@ -110,9 +110,7 @@ AC_TYPE_UINT8_T # Checks for library functions. AC_FUNC_FORK -AC_FUNC_MALLOC AC_FUNC_MBRTOWC -AC_FUNC_REALLOC AC_CHECK_FUNCS([gettimeofday setrlimit inet_ntoa iswprint memchr memset nl_langinfo posix_memalign setenv setlocale sigaction socket strchr strdup strerror strtol wcwidth]) AC_SEARCH_LIBS([clock_gettime], [rt], [AC_DEFINE([HAVE_CLOCK_GETTIME], [1], [Define if clock_gettime is available.])])