Skip to content

Commit

Permalink
configure: Don't check for malloc hooks that we no longer use.
Browse files Browse the repository at this point in the history
Commit 825da1c (leak-checker: Remove because it cannot be made
thread-safe.) removed the only uses of these hooks but neglected to remove
the test for them.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Justin Pettit <[email protected]>
  • Loading branch information
blp committed Jul 22, 2014
1 parent 639b6d9 commit 5a80e60
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ OVS_CHECK_PKIDIR
OVS_CHECK_RUNDIR
OVS_CHECK_DBDIR
OVS_CHECK_BACKTRACE
OVS_CHECK_MALLOC_HOOKS
OVS_CHECK_VALGRIND
OVS_CHECK_SOCKET_LIBS
OVS_CHECK_XENSERVER_VERSION
Expand Down
20 changes: 0 additions & 20 deletions m4/openvswitch.m4
Original file line number Diff line number Diff line change
Expand Up @@ -192,26 +192,6 @@ AC_DEFUN([OVS_CHECK_BACKTRACE],
[AC_DEFINE([HAVE_BACKTRACE], [1],
[Define to 1 if you have backtrace(3).])])])

dnl Checks for __malloc_hook, etc., supported by glibc.
AC_DEFUN([OVS_CHECK_MALLOC_HOOKS],
[AC_CACHE_CHECK(
[whether libc supports hooks for malloc and related functions],
[ovs_cv_malloc_hooks],
[AC_COMPILE_IFELSE(
[AC_LANG_PROGRAM(
[#include <malloc.h>
],
[(void) __malloc_hook;
(void) __realloc_hook;
(void) __free_hook;])],
[ovs_cv_malloc_hooks=yes],
[ovs_cv_malloc_hooks=no])])
if test $ovs_cv_malloc_hooks = yes; then
AC_DEFINE([HAVE_MALLOC_HOOKS], [1],
[Define to 1 if you have __malloc_hook, __realloc_hook, and
__free_hook in <malloc.h>.])
fi])

dnl Checks for valgrind/valgrind.h.
AC_DEFUN([OVS_CHECK_VALGRIND],
[AC_CHECK_HEADERS([valgrind/valgrind.h])])
Expand Down

0 comments on commit 5a80e60

Please sign in to comment.