From: Krisztian Litkey Date: Thu, 21 Aug 2014 14:22:57 +0000 (+0300) Subject: build-sys: check for malloc only if we're not cross-compiling. X-Git-Tag: v0.0.54~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7ec0b80bf6123fcec74526245d0661187c25ab26;p=profile%2Fivi%2Fmurphy.git build-sys: check for malloc only if we're not cross-compiling. --- diff --git a/configure.ac b/configure.ac index f6e37ea..e31240c 100644 --- a/configure.ac +++ b/configure.ac @@ -108,7 +108,9 @@ AC_CHECK_TYPES([ptrdiff_t]) # Checks for library functions. AC_FUNC_ERROR_AT_LINE AC_HEADER_MAJOR -AC_FUNC_MALLOC +if test "$cross_compiling" = "no"; then + AC_FUNC_MALLOC +fi AC_FUNC_STRTOD AC_CHECK_FUNCS([clock_gettime memmove memset regcomp strcasecmp strchr strdup strrchr strtol strtoul])