]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
build: drop AC_FUNC_MALLOC/REALLOC
authorFlorian Westphal <fw@strlen.de>
Thu, 10 Apr 2014 10:27:07 +0000 (12:27 +0200)
committerFlorian Westphal <fw@strlen.de>
Thu, 10 Apr 2014 10:27:07 +0000 (12:27 +0200)
Two issues with these:
1. They compile & run a test program, which won't work when cross-compiling
2. When libnftnl has just been installed and is not (yet) in linker path, the
test fails since loader won't find libnftnl.

In that case configure will succeed without obvious errors, but config.h
re-defines malloc/realloc with rpl_ prefix, which then results in a
linker error ("undefined reference to `rpl_realloc'") on 'make'.

These macros are only useful to check that malloc(0) returns non-NULL
and that realloc(NULL, ... works.

For nftables the former is irrelevant and the latter a safe assumption,
so lets just remove them.

Signed-off-by: Florian Westphal <fw@strlen.de>
configure.ac

index b91bbac1a7364e9da0afae56c6a483826f14b8a1..6a5e4ce62d1a889460ada60a6ead42a343e7265b 100644 (file)
@@ -88,8 +88,6 @@ AC_TYPE_UINT32_T
 AC_TYPE_UINT64_T
 
 # Checks for library functions.
-AC_FUNC_MALLOC
-AC_FUNC_REALLOC
 AC_CHECK_FUNCS([memmove memset strchr strdup strerror strtoull])
 
 AC_CONFIG_FILES([Makefile Makefile.defs Makefile.rules])