aboutsummaryrefslogtreecommitdiff
blob: a5bd48a6e7da40263bcc915c258d578d3132c320 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Breaks cross-compilation

--- a/configure.ac
+++ b/configure.ac
@@ -154,15 +154,16 @@ AC_FUNC_CLOSEDIR_VOID
 AC_FUNC_CHOWN
 AC_FUNC_FORK
 AC_FUNC_LSTAT
-AC_FUNC_MALLOC
 AC_FUNC_MEMCMP
 AC_FUNC_MKTIME
 AC_FUNC_MMAP
-AC_FUNC_REALLOC
 AC_FUNC_STAT
 AC_FUNC_STRTOD
 AC_FUNC_VPRINTF
 
+# Optional functions
+AC_CHECK_FUNCS([malloc realloc])
+
 ################################################################################
 dnl -- Disable dependency tracking
 AC_MSG_CHECKING(whether to enable dependency tracking)