configure.ac: Drop AC_FUNC_MALLOC/REALLOC and use AC_CHECK_FUNCS instead to allow cross compiliation
diff --git a/configure.ac b/configure.ac
index e3cb042..7743241 100644
--- a/configure.ac
+++ b/configure.ac
@@ -64,9 +64,7 @@
 AC_TYPE_UINT8_T
 
 # Checks for library functions.
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
-AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy sleep])
+AC_CHECK_FUNCS([strcasecmp strdup strerror stpncpy sleep malloc realloc])
 
 # Check for operating system
 AC_MSG_CHECKING([for platform-specific build settings])