Check for __malloc_hook and define MALLOC_FAIL appropriately.
authorRalph Giles <giles@thaumas.net>
Fri, 28 Oct 2011 14:14:58 +0000 (07:14 -0700)
committerRalph Giles <giles@mozilla.com>
Fri, 28 Oct 2011 17:20:16 +0000 (10:20 -0700)
commitc19bc346386544574bae65e7979ae94603688496
treeb69990557e57a086b278efcdaa0ee88b323e7e66
parented90cdc36903796752a89a789ef21f38306f230f
Check for __malloc_hook and define MALLOC_FAIL appropriately.

The glibc 2.14 NEWS file says __malloc_hook will be removed
in the next release, so future-proof our use by checking
for this symbol at configure time and only compiling the
malloc failure tests if it is present.
configure.ac
tests/test_opus_api.c