From 86122fe47e62e03a2a56edc5874978a9b4d7d4f6 Mon Sep 17 00:00:00 2001 From: Theppitak Karoonboonyanan Date: Mon, 21 Jan 2019 15:26:31 +0700 Subject: [PATCH] Fix cross-compiling issue caused by AC_FUNC_MALLOC * configure.ac: - Replace AC_FUNC_MALLOC with AC_CHECK_FUNCS([malloc]), as we don't rely on GNU's malloc(0) behavior. Thanks Vanessa McHale for the report. Closes: #11 --- ChangeLog | 10 ++++++++++ configure.ac | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2619ae89..b9b4395f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2019-01-21 Theppitak Karoonboonyanan + + Fix cross-compiling issue caused by AC_FUNC_MALLOC + + * configure.ac: + - Replace AC_FUNC_MALLOC with AC_CHECK_FUNCS([malloc]), + as we don't rely on GNU's malloc(0) behavior. + + Thanks Vanessa McHale for the report. Closes: #11 + 2018-11-23 Theppitak Karoonboonyanan Fix wrong key listing in byte trie diff --git a/configure.ac b/configure.ac index e477b2ff..f6cabcc0 100644 --- a/configure.ac +++ b/configure.ac @@ -132,7 +132,7 @@ AC_SUBST(htmldocdir) AM_CONDITIONAL(ENABLE_DOXYGEN_DOC,test "x$enable_doxygen_doc" = "xyes") # Checks for library functions. -AC_FUNC_MALLOC +AC_CHECK_FUNCS([malloc]) AC_CONFIG_FILES([Makefile datrie-0.2.pc