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.8.10~5 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6303a62a6f1d8879b64986328a6c4d051c919b77;p=urcu.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 6d8c15f..1f41cf3 100644 --- a/configure.ac +++ b/configure.ac @@ -54,10 +54,12 @@ AC_TYPE_PID_T AC_TYPE_SIZE_T # Checks for library functions. -AC_FUNC_MALLOC AC_FUNC_MMAP AC_CHECK_FUNCS([bzero gettimeofday munmap sched_getcpu strtoul sysconf]) +# AC_FUNC_MALLOC causes problems when cross-compiling. +#AC_FUNC_MALLOC + # Find arch type AS_CASE([$host_cpu], [i386], [ARCHTYPE="x86" && SUBARCHTYPE="x86compat"],