From: Michael Jeanson Date: Mon, 27 Jun 2016 18:54:20 +0000 (-0400) Subject: Fix: remove AC_FUNC_MALLOC from configure.ac X-Git-Tag: v0.9.3~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=d5469bf4c08169f8b2d8dc136c8c350528041271;p=userspace-rcu.git Fix: remove AC_FUNC_MALLOC from configure.ac AC_FUNC_MALLOC fails cross-compile builds and is only used to detect non-standard glibc behavior where malloc(0) does not return a null pointer. We don't depend on that behavior since we would have to ship a compat implementation of malloc() for this macro to be of any use. Keep it commented because autoscan will report it as missing and it might get re-introduced. Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers --- diff --git a/configure.ac b/configure.ac index d31f576..7341aa0 100644 --- a/configure.ac +++ b/configure.ac @@ -85,7 +85,6 @@ CFLAGS="$CFLAGS $PTHREAD_CFLAGS" CC="$PTHREAD_CC" # Checks for library functions. -AC_FUNC_MALLOC AC_FUNC_MMAP AC_FUNC_FORK AC_CHECK_FUNCS([ \ @@ -102,6 +101,9 @@ AC_CHECK_FUNCS([ \ sysconf \ ]) +# AC_FUNC_MALLOC causes problems when cross-compiling. +#AC_FUNC_MALLOC + # Check for headers AC_HEADER_STDBOOL AC_CHECK_HEADERS([ \